ipa: Prevent materialization of clones with removed bodies (PR 92109)
[gcc.git] / gcc / ChangeLog
1 2019-11-25 Martin Jambor <mjambor@suse.cz>
2
3 PR ipa/92109
4 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
5 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
6 (cgraph_materialize_clone): Move removel from clone tree to the
7 the new method and use it instead.
8 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
9 bodies of clones, also remove it from the clone tree.
10
11 2019-11-25 Martin Jambor <mjambor@suse.cz>
12
13 PR ipa/91956
14 * ipa-sra.c (process_isra_node_results): Put the new node to the
15 same comdat group as the original node.
16
17 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
18
19 Build double32 / long-double32 multilibs if needed.
20
21 PR target/92055
22 * config/avr/t-avr:
23 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
24 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
25 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
26 tm_defines and pass to genmultilib.awk.
27 * config/avr/genmultilib.awk: Use these variables to add double32
28 and / or long-double32 multilib(s) as needed.
29 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
30
31 2019-11-25 Richard Biener <rguenther@suse.de>
32
33 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
34 loop body, defaulted to NULL.
35 (single_likely_exit): Add exit vector argument
36 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
37 (number_of_iterations_exit): Likewise.
38 (number_of_iterations_exit_assumptions): Likewise.
39 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
40 if not NULL.
41 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
42 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
43 Compute exit vector around call to single_likely_exit.
44 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
45 loop body to loop_only_exit_p.
46 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
47 caller.
48 (number_of_iterations_exit_assumptions): Get loop body from caller
49 if not NULL.
50 (number_of_iterations_exit): Pass through new loop body arg.
51 (infer_loop_bounds_from_undefined): Get loop body from caller.
52 (estimate_numbers_of_iterations): Compute loop body once.
53
54 2019-11-25 Richard Biener <rguenther@suse.de>
55
56 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
57 auto_bb_flag instead of an sbitmap for visited handling.
58
59 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
60
61 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
62 iterator.
63 (vector_fp_comparison_complex): Likewise.
64 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
65 define_and_split.
66 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
67 Likewise.
68 (vector_lt<mode> for VEC_F): Refactor with
69 vector_fp_comparison_simple.
70 (vector_le<mode> for VEC_F): Likewise.
71 (vector_unge<mode> for VEC_F): Likewise.
72 (vector_unle<mode> for VEC_F): Likewise.
73 (vector_ne<mode> for VEC_F): Likewise.
74 (vector_ungt<mode> for VEC_F): Likewise.
75 (vector_unlt<mode> for VEC_F): Likewise.
76 (vector_ltgt<mode> for VEC_F): Refactor with
77 vector_fp_comparison_complex.
78 (vector_ordered<mode> for VEC_F): Likewise.
79 (vector_uneq<mode> for VEC_F): Likewise.
80 (vector_unordered<mode> for VEC_F): Likewise.
81
82 2019-11-24 Jerry DeLisle <jvdelisle@gcc.ngu.org>
83
84 PR fortran/92100
85 gfortran.dg/streamio_18.f90: New test.
86
87 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
88
89 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
90 COMPARE, representing an overflow detection.
91
92 * combine.c (combine_instructions): Record costs for jumps.
93
94 * combine.c (can_combine_p): Allow autoinc in jumps.
95
96 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
97
98 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
99 * doc/invoke.texi (max-inline-insns-single-O2,
100 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
101 early-inlining-insns-O2): Remove documentation.
102 * ipa-fnsummary.c (analyze_function_body,
103 compute_fn_summary): Use opt_for_fn when accessing parameters.
104 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
105 inline_insns_auto, can_inline_edge_by_limits_p,
106 want_early_inline_function_p, big_speedup_p,
107 want_inline_small_function_p, want_inline_self_recursive_call_p,
108 recursive_inlining, compute_max_insns, inline_small_functions):
109 Likewise.
110 * opts.c (default_options): Add -O3 defaults for
111 OPT__param_early_inlining_insns_,
112 OPT__param_inline_heuristics_hint_percent_,
113 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
114 * params.opt (-param=early-inlining-insns-O2=,
115 -param=inline-heuristics-hint-percent-O2=,
116 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
117 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
118 -param=inline-min-speedup=, -param=inline-unit-growth=,
119 -param=large-function-growth=, -param=large-stack-frame=,
120 -param=large-stack-frame-growth=, -param=large-unit-insns=,
121 -param=max-inline-insns-recursive=,
122 -param=max-inline-insns-recursive-auto=,
123 -param=max-inline-insns-single=,
124 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
125 -param=max-inline-recursive-depth=,
126 -param=max-inline-recursive-depth-auto=,
127 -param=min-inline-recursive-probability=,
128 -param=partial-inlining-entry-probability=,
129 -param=uninlined-function-insns=, -param=uninlined-function-time=,
130 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
131 Optimization.
132
133 2019-11-23 Jakub Jelinek <jakub@redhat.com>
134
135 * ipa-fnsummary.c: Fix comment typos.
136 * ipa-ref.h: Likewise.
137 * ipa-predicate.h: Likewise.
138 * ipa-split.c: Likewise.
139 * ipa-inline-analysis.c: Likewise.
140 * ipa-predicate.c: Likewise.
141 * ipa-devirt.c: Likewise.
142 * ipa-icf.h: Likewise.
143 * profile-count.c: Likewise.
144 * ipa-icf.c: Likewise.
145 (sem_function::equals_wpa): Fix typos in dump messages.
146 * ipa-icf-gimple.h: Fix comment typos.
147 * ipa-inline-transform.c: Likewise.
148 * ipa-polymorphic-call.c: Likewise.
149 * ipa-fnsummary.h: Likewise.
150 * ipa-inline.c: Likewise.
151 (dump_inline_stats): Fix typo in debug dump message.
152 * profile-count.h: Fix comment typos.
153
154 PR target/92615
155 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
156 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
157 register_operand, force x into register before storing it into dest.
158 Formatting fix.
159
160 PR middle-end/83859
161 * doc/extend.texi (attribute access): Fix a typo.
162
163 PR rtl-optimization/92610
164 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
165 cse_cfg_altered is set, even when tem is 0.
166 (rest_of_handle_cse_after_global_opts): Likewise.
167
168 2019-11-22 Jakub Jelinek <jakub@redhat.com>
169
170 PR c++/92458
171 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
172 tree_hash): Move to ...
173 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
174 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
175 types.
176 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
177
178 PR tree-optimization/92618
179 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
180 containing the auto_vec and a tree.
181 (undistribute_bitref_for_vector): Handle the case when element type
182 of vec is not the same as type of the BIT_FIELD_REF. Formatting
183 fixes.
184
185 2019-11-22 Martin Sebor <msebor@redhat.com>
186
187 PR middle-end/83859
188 * attribs.h (struct attr_access): New.
189 * attribs.c (decl_attributes): Add an informational note.
190 * builtins.c (check_access): Make extern. Consistently set no-warning
191 after issuing a warning. Handle calls through function pointers. Set
192 no-warning.
193 * builtins.h (check_access): Declare.
194 * calls.c (rdwr_access_hash): New type.
195 (rdwr_map): Same.
196 (init_attr_rdwr_indices): New function.
197 (maybe_warn_rdwr_sizes): Same.
198 (initialize_argument_information): Call init_attr_rdwr_indices.
199 Call maybe_warn_rdwr_sizes.
200 (get_size_range): Avoid null argument.
201 * doc/extend.texi (attribute access): Document new attribute.
202
203 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
204
205 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
206 (ACC_LDS_SIZE): Define.
207 (OTHER_LDS_SIZE): Define.
208 (LDS_SIZE): Redefine using above.
209 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
210
211 2019-11-22 Martin Sebor <msebor@redhat.com>
212
213 PR middle-end/88226
214 * builtins.c (check_nul_terminated_array): New function.
215 (fold_builtin_0): Remove declaration.
216 (fold_builtin_1): Same.
217 (fold_builtin_2): Same.
218 (fold_builtin_3): Same.
219 (fold_builtin_strpbrk): Add argument.
220 (fold_builtin_strspn): Same.
221 (fold_builtin_strcspn): Same.
222 (expand_builtin_strcat): Call it. Remove unused argument.
223 (expand_builtin_stpncpy): Same.
224 (expand_builtin_strncat): Same.
225 (expand_builtin_strncpy): Same. Adjust indentation.
226 (expand_builtin_strcmp): Same.
227 (expand_builtin_strncmp): Same.
228 (expand_builtin_fork_or_exec): Same.
229 (expand_builtin): Handle more built-ins.
230 (fold_builtin_2): Add argument.
231 (fold_builtin_n): Make static. Add argument.
232 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
233 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
234 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
235 (fold_call_stmt): Pass new argument to fold_builtin_n.
236 * builtins.h: Correct a comment.
237 * gimple-fold.c (gimple_fold_builtin_strchr): Call
238 check_nul_terminated_array.
239 * tree-ssa-strlen.c (handle_builtin_strlen): Call
240 check_nul_terminated_array.
241 (handle_builtin_strchr): Same.
242 (handle_builtin_string_cmp): Same.
243
244 2019-11-22 Martin Sebor <msebor@redhat.com>
245
246 PR tree-optimization/92501
247 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
248 handle unterminated arrays. Rename local variables for clarity.
249
250 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
251
252 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
253 granulated_sgprs according to architecture.
254
255 2019-11-22 Jan Hubicka <jh@suse.cz>
256
257 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
258 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
259 (memory_block_pool::reduce_free_list): ... this one.
260 (memory_block_pool::trim): New static function.
261 * memory-block.h (memory_block_pool::freelist_size): New constant
262 (memory_block_pool::clear_free_list): Rename to ...
263 (memory_block_pool::reduce_free_list): ... this one.
264 (memory_block_pool::trim): Declare.
265
266 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
267
268 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
269 vect_cost_for_stmt.
270 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
271 here rather than...
272 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
273
274 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
275
276 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
277 (bic_cmp0_noout): New pattern.
278 (bic_cmp0): Likewise.
279 (neg_scc_insn): Remove pattern.
280 (not_scc_insn): Likewise.
281
282 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
283
284 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
285
286 2019-11-21 Joseph Myers <joseph@codesourcery.com>
287
288 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
289 pedwarn instead of warning_at for fallthrough not preceding a case
290 or default label.
291
292 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
293
294 PR tree-optimization/92608
295 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
296 of dyn_cast.
297
298 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
299
300 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
301 New predicate.
302 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
303 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
304 special for FP comparisons that need a cror instruction eventually.
305 (rs6000_emit_fp_cror): New function.
306 (rs6000_emit_sCOND): Expand all floating point comparisons to one
307 instruction, for normal FP modes, with HONOR_NANS.
308 (rs6000_emit_cbranch): Reformat.
309 * config/rs6000/rs6000.md (fp_rev): New iterator.
310 (fp_two): New iterator.
311 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
312 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
313 *cbranch_2insn: New define_insn_and_split.
314
315 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
316
317 PR tree-optimization/92526
318 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
319 versioning for alignment if the accesses do not have a consistent
320 mask, rather than asserting that the masks are consistent.
321
322 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
323
324 PR tree-optimization/92595
325 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
326 check.
327 (vectorizable_store, vectorizable_load): Likewise.
328
329 2019-11-21 Jan Hubicka <jh@suse.cz>
330
331 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
332 (resolve_noninline_speculation, inline_small_functions): Avoid
333 redundant updates.
334
335 2019-11-21 Richard Biener <rguenther@suse.de>
336
337 * lra.c (lra_insn_recog_data_pool): New.
338 (free_insn_recog_data): Adjust.
339 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
340 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
341
342 2019-11-21 Richard Biener <rguenther@suse.de>
343
344 PR tree-optimization/92596
345 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
346
347 2019-11-21 Jan Hubicka <jh@suse.cz>
348
349 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
350 ready for some vectors to not be allocated.
351 (evaluate_properties_for_edge): Document better; make
352 known_vals and known_aggs caller allocated; avoid determining
353 values of parameters which are not used.
354 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
355 known_aggs.
356 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
357 (do_estimate_edge_size): Likewise.
358 (do_estimate_edge_hints): Likewise.
359 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
360 values are not known.
361 (ipa_release_agg_values): Add option to not release vector itself.
362 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
363
364 2019-11-21 Richard Biener <rguenther@suse.de>
365
366 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
367 (loop_iterator::to_visit): Use an auto_vec with internal storage.
368 (loop_iterator::loop_iterator): Adjust.
369 * cfganal.c (compute_dominance_frontiers_1): Fold into...
370 (compute_dominance_frontiers): ... this. Hoist invariant
371 get_immediate_dominator call.
372 (compute_idf): Use a work-set instead of a work-list for more
373 optimal iteration order and duplicate avoidance.
374 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
375 the vector all the time, instead pre-allocate the vector only
376 once.
377 (delete_update_ssa): Simplify.
378 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
379
380 2019-11-21 Jakub Jelinek <jakub@redhat.com>
381
382 PR tree-optimization/91355
383 * tree-ssa-sink.c (select_best_block): Use >= rather than >
384 for early_bb scaled count with best_bb count comparison.
385
386 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
387 preffer -> prefer.
388 * ipa-inline.c (edge_badness): Likewise.
389 * lto-streamer.h (class lto_location_cache): Likewise.
390 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
391 gratutious -> gratuitous.
392
393 2019-11-21 Richard Biener <rguenther@suse.de>
394
395 Revert
396 2019-09-17 Richard Biener <rguenther@suse.de>
397
398 PR tree-optimization/91790
399 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
400 use the correct DR for setting up realignment.
401
402 2019-11-21 Richard Biener <rguenther@suse.de>
403
404 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
405 (equiv_class_obstack): New.
406 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
407 (perform_var_substitution): Initialize equiv_class_obstack.
408 (free_var_substitution_info): Free equiv_class_obstack.
409
410 2019-11-20 Jan Hubicka <jh@suse.cz>
411
412 * ipa-inline.c (want_early_inline_function_p): Do not estimate
413 edge growth when callee function is very large.
414 * ipa-inline.h (estimate_min_edge_growth): New.
415
416 2019-11-20 Jan Hubicka <jh@suse.cz>
417
418 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
419 negative time in calls summary; correct roundoff errors
420 leading to negative times.
421 (ipa_merge_fn_summary_after_inlining): Update calls size time table
422 if present.
423 (ipa_update_overall_fn_summary): Add RESET parameter.
424 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
425 * ipa-inline-transform.c (inline_call): Enable incremental updates.
426
427 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
428
429 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
430 def types for two-operation SLP.
431
432 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
433
434 PR testsuite/92366
435 * doc/sourcebuild.texi (vect_char_add): Document.
436
437 2019-11-20 Alexandre Oliva <oliva@adacore.com>
438
439 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
440 * function.c (record_final_call): Record even calls that might
441 have been in the cgraph.
442 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
443 callees.
444
445 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
446
447 * configure.ac: Use https for gcc.gnu.org
448 * configure: Regenerated.
449 * doc/install.texi: Use https for gcc.gnu.org.
450 * doc/sourcebuild.texi: Likewise.
451
452 2019-11-20 Julian Brown <julian@codesourcery.com>
453
454 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
455
456 2019-11-20 Jan Hubicka <jh@suse.cz>
457
458 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
459 parameter and update call_size_time_table.
460 (ipa_fn_summary::max_size_time_table_size): New constant.
461 (estimate_calls_size_and_time_1): Break out from ...
462 (estimate_calls_size_and_time): ... here; implement summary production.
463 (summarize_calls_size_and_time): New function.
464 (ipa_call_context::estimate_size_and_time): Bypass
465 estimate_calls_size_and_time for leaf functions.
466 (ipa_update_overall_fn_summary): Likewise.
467 * ipa-fnsummary.h (call_size_time_table): New.
468 (ipa_fn_summary::account_size_time): Update prototype.
469
470 2019-11-20 Joseph Myers <joseph@codesourcery.com>
471
472 * doc/invoke.texi (-Wc11-c2x-compat): Document.
473
474 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
475
476 PR85678
477 * common.opt (fcommon): Change init to 1.
478 * doc/invoke.texi (-fcommon): Update documentation.
479
480 2019-11-20 Jan Hubicka <jh@suse.cz>
481
482 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
483 to ordinary array.
484
485 2019-11-20 Jan Hubicka <jh@suse.cz>
486
487 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
488 Add allocator parameter.
489 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
490 (fibonacci_heap<K,V>::m_allocator): New.
491 (fibonacci_heap<K,V>::m_own_allocator): New.
492 (fibonacci_heap<K,V>::insert): Use allocator.
493 (fibonacci_heap<K,V>::extract_min): Likewise.
494 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
495 allocator.
496 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
497 on stack.
498 * fibonacci_heap.c: Include alloc-pool
499 (test_empty_heap): Initialize allocator.
500 (test_union): Likewise.
501 * bb-reorder.c: Include alloc-pool.h.
502 * tracer.c: Inlclude alloc-pool.h.
503
504 2019-11-20 Jan Hubicka <jh@suse.cz>
505
506 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
507 Preallocate for 32 entries.
508 (DFS::worklist): Likewise.
509 (DFS::DFS): Do not initialize sccstack and worklist.
510 (DFS::~DFS): Do not release sccstack.
511
512 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
513
514 PR target/92573
515 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
516 Handle UNORDERED if !HONOR_NANS.
517
518 2019-11-20 Jan Hubicka <jh@suse.cz>
519
520 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
521 (edge_badness): ... here.
522 (inline_small_functions): Use monotonicity of badness calculation
523 to avoid redundant updates.
524
525 2019-11-20 Richard Biener <rguenther@suse.de>
526
527 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
528 constructors we are actually analyzing.
529 (vect_slp_check_for_constructors): Do not vectorize uniform
530 constuctors, do not dump here.
531
532 2019-11-20 Richard Biener <rguenther@suse.de>
533
534 PR tree-optimization/92537
535 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
536 vectorization validity check...
537 (vect_slp_analyze_operations): ... here.
538
539 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
540
541 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
542 (make_pass_arc_predicate_delay_insns): Likewise.
543 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
544 method, remove clone.
545 (class pass_arc_predicate_delay_insns): Likewise.
546 (arc_init): Remove registering of ARC specific passes.
547 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
548 * config/arc/arc-passes.def: New file.
549
550 2019-11-20 Jakub Jelinek <jakub@redhat.com>
551
552 PR middle-end/90840
553 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
554 and has a mode that doesn't have corresponding integral type.
555
556 PR target/90867
557 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
558 clear opts->x_ix86_isa_flags{,2} here...
559 (ix86_valid_target_attribute_inner_p): ... but here when seeing
560 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
561
562 PR c/90898
563 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
564 assertion.
565 (insert_clobbers_for_var): Fix a typo in function comment.
566
567 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
568 Jakub Jelinek <jakub@redhat.com>
569
570 PR middle-end/91195
571 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
572 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
573 load.
574
575 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
576
577 Make 0-series device specs work with older versions of avr-gcc.
578
579 PR target/92545
580 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
581 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
582 <*link_pm_base_address>: Don't write spec.
583 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
584
585 2019-11-20 Richard Biener <rguenther@suse.de>
586
587 PR c/92088
588 * builtins.c (compute_objsize): Deal with VLAs.
589
590 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
591
592 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
593 from common code.
594 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
595 call new function.
596 (power9_sched_reorder2): Call new function.
597 (rs6000_sched_reorder2): Likewise.
598
599 2019-11-18 Jan Hubicka <jh@suse.cz>
600
601 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
602 (estimate_calls_size_and_time): Update.
603
604 2019-11-18 Jan Hubicka <jh@suse.cz>
605
606 * ipa-inline.c (inlining_speedup): New function.
607 (edge_badness): Use it.
608
609 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
610 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
611
612 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
613 Mark as not having "likely" version.
614 * config/mips/mips.md (insn_count): The simd_div instruction with
615 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
616 (can_delay): Exclude simd_branch.
617 (defile_delay *): Add simd_branch instructions.
618 They have one regular delay slot.
619
620 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
621
622 Revert:
623 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
624
625 * cse.c (cse_insn): Delete no-op register moves too.
626 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
627 Take a second comparison to control the value for NE.
628 (mask_to_comparison): Handle unsigned comparisons.
629 (simplify_logical_relational_operation): Likewise. Update call
630 to comparison_to_mask. Handle AND if !HONOR_NANs.
631 (simplify_binary_operation_1): Call the above for AND too.
632
633 2019-11-19 Martin Liska <mliska@suse.cz>
634
635 * toplev.c (general_init): Move the call...
636 (toplev::main): ... here as we need init_options_struct
637 being called.
638
639 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
640
641 PR target/79262
642 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
643 vec_to_scalar_cost.
644
645 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
646
647 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
648 (armv7-a): Likewise.
649 (armv7ve): Likewise.
650
651 2019-11-19 Richard Biener <rguenther@suse.de>
652
653 PR tree-optimization/92581
654 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
655 condition reduction chains gather all conditions involved
656 for computing the index reduction vector.
657
658 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
659
660 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
661 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
662 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
663 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
664 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
665 (aarch64_init_memtag_builtins): New.
666 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
667 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
668 (aarch64_expand_builtin_memtag): New.
669 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
670 (AARCH64_BUILTIN_SUBCODE): New macro.
671 (aarch64_resolve_overloaded_memtag): New.
672 (aarch64_resolve_overloaded_builtin_general): New. Call
673 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
674 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
675 __ARM_FEATURE_MEMORY_TAGGING when enabled.
676 (aarch64_resolve_overloaded_builtin): Call
677 aarch64_resolve_overloaded_builtin_general.
678 * config/aarch64/aarch64-protos.h
679 (aarch64_resolve_overloaded_builtin_general): New declaration.
680 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
681 (TARGET_MEMTAG): Likewise.
682 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
683 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
684 (irg, gmi, subp, addg, ldg, stg): New instructions.
685 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
686 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
687 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
688 (__arm_mte_get_tag): Likewise.
689 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
690 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
691 * config/arm/types.md (memtag): New.
692 * doc/invoke.texi (-memtag): Update description.
693
694 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
695
696 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
697 to define __GCC_ASM_FLAG_OUTPUTS__.
698 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
699 (arm_option_params_internal): Swap out targetm.md_asm_adjust
700 depending on TARGET_THUMB1.
701 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
702
703 2019-11-19 Jakub Jelinek <jakub@redhat.com>
704
705 PR target/92549
706 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
707
708 PR middle-end/91450
709 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
710 operand is negative and one non-negative, compare the non-negative
711 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
712 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
713 and s2 == 0, unless one of them is known to be negative. Remove
714 tem2 variable, use tem where tem2 has been used before.
715
716 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
717
718 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
719
720 2019-11-19 Jakub Jelinek <jakub@redhat.com>
721
722 PR tree-optimization/92557
723 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
724 vmode rather than asserting it always is.
725
726 2019-11-19 Richard Biener <rguenther@suse.de>
727
728 PR tree-optimization/92554
729 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
730 for the actual condition stmt and deal with sign-changes.
731
732 2019-11-19 Richard Biener <rguenther@suse.de>
733
734 PR tree-optimization/92555
735 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
736 for non-SLP stmts.
737
738 2019-11-19 Martin Liska <mliska@suse.cz>
739
740 PR bootstrap/92540
741 * config/riscv/riscv.c (riscv_address_insns): Initialize
742 addr in order to remove boostrap -Wmaybe-uninitialized
743 error.
744
745 2019-11-18 Martin Sebor <msebor@redhat.com>
746
747 PR tree-optimization/92493
748 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
749 assignment.
750
751 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
752
753 * cfgloop.c (get_loop_body_in_custom_order): New.
754 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
755 * tree-loop-distribution.c (class loop_distribution): New.
756 (bb_top_order_cmp): Remove.
757 (bb_top_order_cmp_r): New.
758 (create_rdg_vertices): Move into class loop_distribution.
759 (stmts_from_loop): Same as above.
760 (update_for_merge): Same as above.
761 (partition_merge_into): Same as above.
762 (get_data_dependence): Same as above.
763 (data_dep_in_cycle_p): Same as above.
764 (update_type_for_merge): Same as above.
765 (build_rdg_partition_for-vertex): Same as above.
766 (classify_builtin_ldst): Same as above.
767 (classify_partition): Same as above.
768 (share_memory_accesses): Same as above.
769 (rdg_build_partitions): Same as above.
770 (pg_add_dependence_edges): Same as above.
771 (build_partition_graph): Same as above.
772 (merge_dep_scc_partitions): Same as above.
773 (break_alias_scc_partitions): Same as above.
774 (finalize_partitions): Same as above.
775 (distribute_loop): Same as above.
776 (bb_top_order_init): New method
777 (bb_top_order_destroy): New method.
778 (get_bb_top_order_index_size): New method.
779 (get_bb_top_order_index_index): New method.
780 (get_bb_top_order_index_index): New method.
781 (loop_distribution::execute): New method.
782 (pass_loop_distribution::execute): Instantiate loop_distribution.
783
784 2019-11-18 Jan Hubicka <jh@suse.cz>
785
786 PR ipa/92508
787 * ipa-inline.c (inline_small_functions): Add new edges after reseting
788 caches.
789 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
790
791 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
792
793 * doc/sourcebuild.texi (vect_check_ptrs): Document.
794 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
795 * doc/md.texi: Document them.
796 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
797 internal functions.
798 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
799 * internal-fn.c (check_ptrs_direct): New macro.
800 (expand_check_ptrs_optab_fn): Likewise.
801 (direct_check_ptrs_optab_supported_p): Likewise.
802 (internal_check_ptrs_fn_supported_p): New fuction.
803 * tree-data-ref.c: Include internal-fn.h.
804 (create_ifn_alias_checks): New function.
805 (create_intersect_range_checks): Use it.
806 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
807 (optab, cmp_op): Handle it.
808 (raw_war, unspec): New int attributes.
809 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
810 constants.
811 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
812 New predicate.
813 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
814 expander.
815 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
816 pattern.
817
818 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
819
820 * tree.c (build_vector_from_ctor): Directly return a zero vector for
821 empty constructors.
822
823 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
824
825 * cse.c (cse_insn): Delete no-op register moves too.
826 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
827 Take a second comparison to control the value for NE.
828 (mask_to_comparison): Handle unsigned comparisons.
829 (simplify_logical_relational_operation): Likewise. Update call
830 to comparison_to_mask. Handle AND if !HONOR_NANs.
831 (simplify_binary_operation_1): Call the above for AND too.
832
833 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
834
835 * fold-const.c (native_encode_vector): Turn into a wrapper function,
836 splitting the main code out into...
837 (native_encode_vector_part): ...this new function.
838 (native_decode_vector_tree): New function.
839 (fold_view_convert_vector_encoding): Likewise.
840 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
841 to VECTOR_TYPEs.
842
843 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
844
845 * tree-data-ref.c (create_intersect_range_checks_index): If the
846 alias pair describes simple WAW and WAR dependencies, just check
847 whether the first B access overlaps later A accesses.
848 (create_waw_or_war_checks): New function that performs the same
849 optimization on addresses.
850 (create_intersect_range_checks): Call it.
851
852 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
853
854 * lra-constraints.c (valid_address_p): Take the operand and a
855 constraint as argument. If the operand is a MEM and the constraint
856 is a memory constraint, check whether the eliminated form of the
857 MEM already satisfies the constraint.
858 (process_address_1): Update calls accordingly.
859
860 2019-11-18 Tom Tromey <tromey@adacore.com>
861
862 * doc/tm.texi: Rebuild.
863 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
864 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
865
866 2019-11-18 Richard Biener <rguenther@suse.de>
867
868 PR tree-optimization/92516
869 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
870 argument, hoist bst_map creation/destruction to ...
871 (vect_analyze_slp): ... here, forming a true graph with
872 SLP instances being the entries.
873 (vect_detect_hybrid_slp_stmts): Remove wrapper.
874 (vect_detect_hybrid_slp): Use one visited set for all
875 graph entries.
876 (vect_slp_analyze_node_operations): Simplify visited/lvisited
877 to hash-sets of slp_tree.
878 (vect_slp_analyze_operations): Likewise.
879 (vect_bb_slp_scalar_cost): Remove wrapper.
880 (vect_bb_vectorization_profitable_p): Use one visited set for
881 all graph entries.
882 (vect_schedule_slp_instance): Elide bst_map use.
883 (vect_schedule_slp): Likewise.
884
885 2019-11-18 Richard Biener <rguenther@suse.de>
886
887 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
888 was vectorized with just external refs fail.
889
890 2019-11-18 Martin Liska <mliska@suse.cz>
891
892 PR ipa/92525
893 * ipa-icf.c (sem_function::init): Unset m_checker
894 at the end of the function.
895
896 2019-11-18 Richard Biener <rguenther@suse.de>
897
898 PR tree-optimization/92558
899 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
900 reducting the width of a reduction vector def update new_phis.
901
902 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
903
904 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
905 and s390*-*-linux-musl* targets.
906 * configure: Regenerate.
907
908 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
909
910 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
911 (MUSL_DYNAMIC_LINKER64): Define.
912
913 2019-11-18 Martin Liska <mliska@suse.cz>
914
915 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
916 message for an unknown counter.
917 (dbg_cnt_process_single_pair): Support 0 as minimum value.
918 (dbg_cnt_process_opt): Remove unreachable code.
919
920 2019-11-18 Martin Liska <mliska@suse.cz>
921
922 PR ipa/92529
923 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
924 Compare LHS types of NOP_EXPR.
925
926 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
927
928 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
929 "initial_pass_name" argument -- by running "*clean_state" pass.
930 Also free the "initial_pass_name" when done.
931
932 2019-11-18 Richard Biener <rguenther@suse.de>
933
934 PR rtl-optimization/92462
935 * alias.c (find_base_term): Restrict the look through ANDs.
936 (find_base_value): Likewise.
937
938 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
939
940 Add support for AVR devices from the 0-series.
941
942 PR target/92545
943 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
944 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
945 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
946 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
947 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
948 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
949 for spec definitions.
950 * doc/avr-mmcu.texi: Regenerate.
951
952 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
953
954 PR target/92448
955 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
956 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
957 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
958 (ix86_reassociation_width): Ditto.
959 * config/i386/i386-options.c (ix86_option_override_internal):
960 Replace TARGET_AVX128_OPTIAML with
961 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
962 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
963 (TARGET_AVX128_OPTIMAL): Deleted.
964 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
965 DEF_TUNE.
966
967 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
968
969 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
970 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
971 just SI.
972 (cceq_rev_compare): Rename to...
973 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
974 just SI.
975 (define_split for <bd>tf_<mode>): Add SImode first argument to
976 gen_cceq_ior_compare.
977
978 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
979
980 * common/config/powerpcspe: Delete.
981
982 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
983
984 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
985 output in UNSPEC_WRFFR.
986
987 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
988
989 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
990 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
991
992 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
993
994 * tree-data-ref.c (create_intersect_range_checks_index)
995 (create_intersect_range_checks): Print dump messages.
996
997 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
998
999 * tree-data-ref.c (dump_alias_pair): New function.
1000 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
1001
1002 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1003
1004 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
1005 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
1006 merging data references with different steps.
1007 (create_intersect_range_checks_index): Take a
1008 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
1009 Bail out if DR_ALIAS_MIXED_STEPS is set.
1010 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
1011 instead of two dr_with_seg_lens. Update call to
1012 create_intersect_range_checks_index.
1013 (create_runtime_alias_checks): Update call accordingly.
1014
1015 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1016
1017 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
1018 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
1019 (dr_with_seg_len_pair_t::sequencing): New enum.
1020 (dr_with_seg_len_pair_t::flags): New member variable.
1021 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
1022 parameter and initialize the flags member variable.
1023 * tree-loop-distribution.c (compute_alias_check_pairs): Update
1024 call accordingly.
1025 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1026 Ensure the two data references in an alias pair are in statement
1027 order, if there is a defined order.
1028 * tree-data-ref.c (prune_runtime_alias_test_list): Use
1029 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
1030 swapped the references in a dr_with_seg_len_pair_t. OR together
1031 the flags when merging two dr_with_seg_len_pair_ts. After merging,
1032 try to restore the original dr_with_seg_len order, updating the
1033 flags if that fails.
1034
1035 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1036
1037 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
1038 swapping the dr_as based on init values until we've decided
1039 whether to merge them.
1040
1041 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1042
1043 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
1044 two accesses in each dr_with_seg_len_pair_t before trying to
1045 combine separate dr_with_seg_len_pair_ts.
1046 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
1047 that here.
1048 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1049
1050 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1051
1052 * config/aarch64/aarch64-sve.md
1053 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1054 (scatter_store<SVE_24:mode><v_int_container>): ...this.
1055 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1056 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
1057 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1058 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
1059 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
1060 pattern.
1061 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1062 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1063 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1064 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1065
1066 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1067
1068 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
1069 (SVE_4HSI): New mode iterators.
1070 (ANY_EXTEND2): New code iterator.
1071 * config/aarch64/aarch64-sve.md
1072 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
1073 Extend to...
1074 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
1075 ...this, handling extension to partial modes as well as full modes.
1076 Describe the extension as a predicated rather than unpredicated
1077 extension.
1078 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1079 Likewise extend to...
1080 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
1081 ...this, making the same adjustments.
1082 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1083 Likewise extend to...
1084 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
1085 ...this, making the same adjustments.
1086 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1087 Likewise extend to...
1088 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
1089 ...this, making the same adjustments.
1090 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
1091 New pattern.
1092 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
1093 extension predicate.
1094 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1095 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
1096 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1097 Describe the extension as a predicated rather than unpredicated
1098 extension.
1099 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1100 Likewise. Canonicalize to a constant extension predicate.
1101 * config/aarch64/aarch64-sve-builtins-base.cc
1102 (svld1_gather_extend_impl::expand): Add an extra predicate for
1103 the extension.
1104 (svldff1_gather_extend_impl::expand): Likewise.
1105
1106 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1107
1108 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
1109 iterators.
1110 * config/aarch64/aarch64-sve.md
1111 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1112 (gather_load<SVE_24:mode><v_int_container>): ...this.
1113 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1114 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
1115 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1116 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
1117 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
1118 New pattern.
1119 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1120 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1121 Allow the nominal extension predicate to be different from the
1122 load predicate.
1123 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1124 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1125
1126 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1127
1128 * config/aarch64/aarch64-sve.md
1129 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
1130 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
1131 function.
1132 (aarch64_sve_adjust_stmt_cost): Call it.
1133
1134 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1135
1136 * config/aarch64/aarch64-sve.md
1137 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
1138 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1139 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1140 Combine into...
1141 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
1142 ...this new pattern, handling extension to partial modes as well
1143 as full modes. Describe the extension as a predicated rather than
1144 unpredicated extension.
1145 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
1146 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1147 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1148 Combine into...
1149 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
1150 ...this new pattern, handling extension to partial modes as well
1151 as full modes. Describe the extension as a predicated rather than
1152 unpredicated extension.
1153 * config/aarch64/aarch64-sve-builtins.cc
1154 (function_expander::use_contiguous_load_insn): Add an extra
1155 predicate for extending loads.
1156 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
1157 (aarch64_sve_adjust_stmt_cost): Likewise.
1158 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
1159 the cost of SVE vector stmts.
1160
1161 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1162
1163 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
1164 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
1165 * config/aarch64/aarch64-sve.md
1166 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
1167 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
1168 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
1169 comment. Avoid new narrower_mask ambiguity.
1170 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
1171 (*cond_uxt<mode>_2): Update comment.
1172 (*cond_uxt<mode>_any): Likewise.
1173
1174 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1175
1176 * config/aarch64/aarch64-modes.def: Define partial SVE vector
1177 float modes.
1178 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
1179 function.
1180 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
1181 new vector float modes.
1182 (aarch64_sve_container_bits): New function.
1183 (aarch64_sve_pred_mode): Likewise.
1184 (aarch64_get_mask_mode): Use it.
1185 (aarch64_sve_element_int_mode): Handle structure modes and partial
1186 modes.
1187 (aarch64_sve_container_int_mode): New function.
1188 (aarch64_vectorize_related_mode): Return SVE modes when given
1189 SVE modes. Handle partial modes, taking the preferred number
1190 of units from the size of the given mode.
1191 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
1192 in registers.
1193 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
1194 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
1195 (aarch64_split_sve_subreg_move): Use the mode form of
1196 aarch64_sve_pred_mode.
1197 (aarch64_secondary_reload): Handle partial modes in the same way
1198 as full big-endian vectors.
1199 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
1200 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
1201 merging with the Advanced SIMD modes. If two modes have the
1202 same size, try the Advanced SIMD mode first.
1203 (aarch64_simd_valid_immediate): Use the container rather than
1204 the element mode for INDEX constants.
1205 (aarch64_simd_vector_alignment): Make the alignment of partial
1206 SVE vector modes the same as their minimum size.
1207 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
1208 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
1209 (mov<SVE_ALL:mode>): ...this.
1210 (movmisalign<SVE_FULL:mode>): Extend to...
1211 (movmisalign<SVE_ALL:mode>): ...this.
1212 (*aarch64_sve_mov<mode>_le): Rename to...
1213 (*aarch64_sve_mov<mode>_ldr_str): ...this.
1214 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
1215 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
1216 partial modes regardless of endianness.
1217 (aarch64_sve_reload_be): Rename to...
1218 (aarch64_sve_reload_mem): ...this and enable for little-endian.
1219 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
1220 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
1221 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
1222 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
1223 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
1224 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
1225 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
1226 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
1227 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
1228 (maskload<SVE_FULL:mode><vpred>): Extend to...
1229 (maskload<SVE_ALL:mode><vpred>): ...this.
1230 (maskstore<SVE_FULL:mode><vpred>): Extend to...
1231 (maskstore<SVE_ALL:mode><vpred>): ...this.
1232 (vec_duplicate<SVE_FULL:mode>): Extend to...
1233 (vec_duplicate<SVE_ALL:mode>): ...this.
1234 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
1235 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
1236 (sve_ld1r<SVE_FULL:mode>): Extend to...
1237 (sve_ld1r<SVE_ALL:mode>): ...this.
1238 (vec_series<SVE_FULL_I:mode>): Extend to...
1239 (vec_series<SVE_I:mode>): ...this.
1240 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
1241 (*vec_series<SVE_I:mode>_plus): ...this.
1242 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
1243 new VPRED ambiguity.
1244 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
1245 (add<SVE_FULL_I:mode>3): Extend to...
1246 (add<SVE_I:mode>3): ...this.
1247 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
1248 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
1249 (VPRED, vpred): Likewise.
1250 (Vctype): New iterator.
1251 (vw): Remove SVE modes.
1252
1253 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1254
1255 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
1256 (SVE_PARTIAL_I): ...this.
1257 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
1258
1259 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1260
1261 * config/aarch64/iterators.md (SVE_ALL): Rename to...
1262 (SVE_FULL): ...this.
1263 (SVE_I): Rename to...
1264 (SVE_FULL_I): ...this.
1265 (SVE_F): Rename to...
1266 (SVE_FULL_F): ...this.
1267 (SVE_BHSI): Rename to...
1268 (SVE_FULL_BHSI): ...this.
1269 (SVE_HSD): Rename to...
1270 (SVE_FULL_HSD): ...this.
1271 (SVE_HSDI): Rename to...
1272 (SVE_FULL_HSDI): ...this.
1273 (SVE_HSF): Rename to...
1274 (SVE_FULL_HSF): ...this.
1275 (SVE_SD): Rename to...
1276 (SVE_FULL_SD): ...this.
1277 (SVE_SDI): Rename to...
1278 (SVE_FULL_SDI): ...this.
1279 (SVE_SDF): Rename to...
1280 (SVE_FULL_SDF): ...this.
1281 (SVE_S): Rename to...
1282 (SVE_FULL_S): ...this.
1283 (SVE_D): Rename to...
1284 (SVE_FULL_D): ...this.
1285 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
1286 * config/aarch64/aarch64-sve2.md: Likewise.
1287
1288 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1289
1290 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
1291 New option.
1292 * doc/invoke.texi: Document it.
1293 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
1294 By default, return VECT_COMPARE_COSTS for SVE.
1295
1296 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1297
1298 * target.h (VECT_COMPARE_COSTS): New constant.
1299 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
1300 * doc/tm.texi: Regenerate.
1301 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
1302 * targhooks.c (default_autovectorize_vector_modes): Likewise.
1303 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
1304 Likewise.
1305 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
1306 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
1307 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
1308 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
1309 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
1310 (_loop_vec_info::vec_inside_cost): New member variables.
1311 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
1312 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
1313 (vect_analyze_loop): When autovectorize_vector_modes returns
1314 VECT_COMPARE_COSTS, try vectorizing the loop with each available
1315 vector mode and picking the one with the lowest cost.
1316 (vect_estimate_min_profitable_iters): Record the computed costs
1317 in the loop_vec_info.
1318
1319 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1320
1321 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
1322 element type rather than an element mode.
1323 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
1324 Use get_vectype_for_scalar_type to query the natural types
1325 for a given element type rather than basing everything on
1326 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
1327 query to MAX_FIXED_MODE_SIZE.
1328 (duplicate_and_interleave): Update call accordingly.
1329 * tree-vect-loop.c (vectorizable_reduction): Likewise.
1330
1331 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1332
1333 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
1334 optional maximum nunits.
1335 (get_vectype_for_scalar_type): Likewise. Also declare a form that
1336 takes an slp_tree.
1337 (get_mask_type_for_scalar_type): Take an optional slp_tree.
1338 (vect_get_mask_type_for_stmt): Likewise.
1339 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
1340 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
1341 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
1342 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
1343 to get an assumed vector type for data references.
1344 * tree-vect-slp.c (vect_update_shared_vectype): New function.
1345 (vect_update_all_shared_vectypes): Likewise.
1346 (vect_build_slp_tree_1): Pass the group size to
1347 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
1348 for BB vectorization.
1349 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
1350 before building the vectof from scalars.
1351 (vect_analyze_slp_instance): Pass the group size to
1352 get_vectype_for_scalar_type.
1353 (vect_slp_analyze_node_operations_1): Don't recompute the vector
1354 types for BB vectorization here; just handle the case in which
1355 we deferred the choice for booleans.
1356 (vect_get_constant_vectors): Pass the slp_tree to
1357 get_vectype_for_scalar_type.
1358 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
1359 (vectorizable_call): Likewise.
1360 (vectorizable_simd_clone_call): Likewise.
1361 (vectorizable_conversion): Likewise.
1362 (vectorizable_shift): Likewise.
1363 (vectorizable_operation): Likewise.
1364 (vectorizable_comparison): Likewise.
1365 (vect_is_simple_cond): Take the slp_tree as argument and
1366 pass it to get_vectype_for_scalar_type.
1367 (vectorizable_condition): Update call accordingly.
1368 (get_vectype_for_scalar_type): Take a group_size argument.
1369 For BB vectorization, limit the the vector to that number
1370 of elements. Also define an overload that takes an slp_tree.
1371 (get_mask_type_for_scalar_type): Add an slp_tree argument and
1372 pass it to get_vectype_for_scalar_type.
1373 (vect_get_vector_types_for_stmt): Add a group_size argument
1374 and pass it to get_vectype_for_scalar_type. Don't use the
1375 cached vector type for BB vectorization if a group size is given.
1376 Handle data references in that case.
1377 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
1378 pass it to get_mask_type_for_scalar_type.
1379
1380 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
1381
1382 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
1383 parameter.
1384 (estimate_edge_time): Use it.
1385 * ipa-inline-analysis.c (do_estimate_edge_time): Add
1386 ret_nonspec_time parameter.
1387
1388 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
1389
1390 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
1391
1392 2019-11-15 Nick Clifton <nickc@redhat.com>
1393 Szabolcs Nagy <szabolcs.nagy@arm.com>
1394
1395 PR target/65649
1396 * config/microblaze/microblaze.c (print_operand): Print value as long.
1397
1398 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
1399
1400 * ipa-inline.c (edge_badness, inline_small_functions): Revert
1401 accidental commit.
1402
1403 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1404
1405 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
1406 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
1407
1408 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1409
1410 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
1411 (gcn_conditional_register_usage): Use constants in place of hard-coded
1412 values.
1413 (gcn_hsa_declare_function_name): Set lower bound for number of
1414 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
1415 MAX_NORMAL_VGPR_COUNT.
1416
1417 2019-11-15 Martin Jambor <mjambor@suse.cz>
1418
1419 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
1420 declaration.
1421
1422 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1423
1424 * config/gcn/gcn.c (default_requested_args): New.
1425 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
1426 set with default_requested_args.
1427 (gcn_conditional_register_usage): Limit register usage of non-kernel
1428 functions. Reassign fixed registers if a non-standard set of args is
1429 requested.
1430 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
1431
1432 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
1433
1434 PR ipa/92528
1435 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
1436 aggregate jump function when inlined-to caller has no edge summary.
1437
1438 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1439
1440 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
1441
1442 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1443
1444 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
1445 prologue use of v0.
1446 (print_operand_address): Use v1 for zero vector offset.
1447
1448 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
1449
1450 PR tree-optimization/92515
1451 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
1452 types when converting a vector/scalar shift into a vector/vector one,
1453 using tree_nop_conversion_p instead of useless_type_conversion_p.
1454 Move the conversion code to the transform block.
1455
1456 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
1457
1458 * read-rtl-function.c
1459 (function_reader::add_fixup_source_location): Take additional
1460 parameter of a column.
1461 (function_reader::maybe_read_location): Optionally parse column
1462 information and pass to add_fixup_source_location.
1463
1464 2019-11-15 Richard Biener <rguenther@suse.de>
1465
1466 PR tree-optimization/92512
1467 * tree-vect-loop.c (check_reduction_path): Fix operand index
1468 computability check. Add check for second use in COND_EXPRs.
1469
1470 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
1471
1472 PR target/92515
1473 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
1474 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
1475
1476 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1477
1478 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
1479 register class for VCC_LO and VCC_HI.
1480 (gcn_spill_class): Use SGPR_REGS to spill registers in
1481 VCC_CONDITIONAL_REG.
1482
1483 2019-11-15 Richard Biener <rguenther@suse.de>
1484
1485 PR tree-optimization/92324
1486 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
1487 singedness of SLP reduction epilouge operations. Also reduce
1488 the vector width for SLP reductions before doing elementwise
1489 operations if possible.
1490
1491 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
1492
1493 * passes.c (skip_pass): Set epilogue_completed if skipping the
1494 pro_and_epilogue pass.
1495
1496 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
1497
1498 * passes.c (should_skip_pass_p): Always run "dfinish".
1499
1500 2019-11-15 Richard Biener <rguenther@suse.de>
1501
1502 * ipa-inline.c (inline_small_functions): Move assignment
1503 to next before call destroying edge.
1504
1505 2019-11-15 Richard Biener <rguenther@suse.de>
1506
1507 PR tree-optimization/92039
1508 PR tree-optimization/91975
1509 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
1510 previous change, treat invariants consistently as non-constant.
1511 (tree_estimate_loop_size): Ternary ops with just the first op
1512 constant are not optimized away.
1513
1514 2019-11-15 Jakub Jelinek <jakub@redhat.com>
1515
1516 * gimplify.c (gimplify_call_expr): Don't call
1517 omp_resolve_declare_variant after gimplification.
1518 * omp-general.c (omp_context_selector_matches): For isa that might
1519 match in some other function, defer if in declare simd function.
1520 (omp_context_compute_score): Don't look for " score" in construct
1521 trait set. Set *score to -1 if it can't ever match.
1522 (omp_resolve_declare_variant): If any variants need to be deferred,
1523 don't punt immediately, but compute scores of all variants and if
1524 ther eis a score winner that doesn't need to be deferred, return that.
1525
1526 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
1527
1528 * ipa-comdats.c: Fix comments typo.
1529 * ipa-profile.c: Fix comments typo.
1530 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
1531 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
1532 (gimple_gen_ic_func_profiler): Likewise.
1533 (pass_ipa_tree_profile::gate): Fix comments typo.
1534
1535 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
1536
1537 * ipa-inline.c (inline_small_functions): Update iterator of next.
1538
1539 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
1540
1541 * lra-spills.c (assign_spill_hard_regs): Check that the spill
1542 register is suitable for the mode.
1543
1544 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
1545
1546 * range-op.h (range_operator::fold_range): Return a bool.
1547 * range-op.cc (range_operator::wi_fold): Assert supported type.
1548 (range_operator::fold_range): Assert supported type and return true.
1549 (operator_equal::fold_range): Return true.
1550 (operator_not_equal::fold_range): Same.
1551 (operator_lt::fold_range): Same.
1552 (operator_le::fold_range): Same.
1553 (operator_gt::fold_range): Same.
1554 (operator_ge::fold_range): Same.
1555 (operator_plus::op1_range): Adjust call to fold_range.
1556 (operator_plus::op2_range): Same.
1557 (operator_minus::op1_range): Same.
1558 (operator_minus::op2_range): Same.
1559 (operator_exact_divide::op1_range): Same.
1560 (operator_lshift::fold_range): Return true and adjust fold_range call.
1561 (operator_rshift::fold_range): Same.
1562 (operator_cast::fold_range): Return true.
1563 (operator_logical_and::fold_range): Same.
1564 (operator_logical_or::fold_range): Same.
1565 (operator_logical_not::fold_range): Same.
1566 (operator_bitwise_not::fold_range): Adjust call to fold_range.
1567 (operator_bitwise_not::op1_range): Same.
1568 (operator_cst::fold_range): Return true.
1569 (operator_identity::fold_range): Return true.
1570 (operator_negate::fold_range): Return true and adjust fold_range call.
1571 (operator_addr_expr::fold_range): Return true.
1572 (operator_addr_expr::op1_range): Adjust call to fold_range.
1573 (range_cast): Same.
1574 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
1575 (range_fold_unary_symbolics_p): Same.
1576
1577 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
1578
1579 PR tree-optimization/92506
1580 * range-op.cc (range_operator::fold_range): Start with range undefined.
1581 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
1582 overflow is varying.
1583
1584 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
1585
1586 * range-op.cc (*operator*::*range): Remove calls to
1587 range_intersect, range_invert, and range_union in favor of calling
1588 the in-place API methods.
1589 (range_tests): Same.
1590 * range.cc (range_intersect): Remove.
1591 (range_union): Remove.
1592 (range_invert): Remove.
1593 * range.h (range_intersect): Remove.
1594 (range_union): Remove.
1595 (range_intersect): Remove.
1596
1597 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
1598
1599 PR rtl-optimization/92430
1600 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
1601 (pass_jump_after_combine::execute): Perform jump threading
1602 unconditionally.
1603
1604 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
1605 Doug Rupp <rupp@adacore.com>
1606 Olivier Hainque <hainque@adacore.com>
1607
1608 * config.gcc: Collapse the arm-vxworks entries into
1609 a single arm-wrs-vxworks7* one, bpabi based. Update
1610 the default cpu from arm8 to armv7-a
1611 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
1612 we always use ARM_UNWIND_INFO.
1613 (DWARF2_UNWIND_INFO): Remove redefinition.
1614 (ARM_TARGET2_DWARF_FORMAT): Likewise.
1615 (VXWORKS_PERSONALITY): Define, to "llvm".
1616 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
1617
1618 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
1619
1620 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
1621 _VX_CPU instead of CPU and handle arm_arch8.
1622
1623 2019-11-14 Doug Rupp <rupp@adacore.com>
1624 Olivier Hainque <hainque@adacore.com>
1625 Jerome Lambourg <lambourg@adacore.com>
1626
1627 * config.gcc: Handle aarch64*-wrs-vxworks7*.
1628 * config/aarch64/aarch64-vxworks.h: New file.
1629 * config/aarch64/t-aarch64-vxworks: New file.
1630
1631 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
1632 Olivier Hainque <hainque@adacore.com>
1633
1634 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
1635 definition, pointless with a VxWorks specific version
1636 of crtstuff.
1637 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
1638 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
1639 New local macros, controlling the addition of vxworks specific
1640 crtstuff objects depending on the EH mechanism and kind of
1641 module being linked.
1642 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
1643
1644 2019-11-06 Pat Bernardi <bernardi@adacore.com>
1645 Jerome Lambourg <lambourg@adacore.com>
1646 Olivier Hainque <hainque@adacore.com>
1647
1648 * config.gcc: Add comment to introduce the TARGET_VXWORKS
1649 common macro definitions, conveying VXWORKS7 or 64bit general
1650 variations. Add a block to set gcc_cv_initfini_array
1651 unconditionally to "yes" for VxWorks7.
1652 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
1653 by default. Update some comments.
1654 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
1655 default, to be added the end of VXWORKS_LIBS_RTP.
1656 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
1657 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
1658 redefine.
1659 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
1660 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
1661 to account for the now available TLS abilities.
1662 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
1663 (VXWORKS_HAVE_TLS): Likewise.
1664
1665 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1666
1667 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
1668 (vect_slp_convert_to_external): Likewise.
1669 (vect_slp_analyze_node_operations): If analysis fails, try building
1670 the node from scalars instead.
1671
1672 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1673
1674 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
1675 between vector types.
1676 * tree-vect-stmts.c (vectorizable_conversion): Extend the
1677 non-widening and non-narrowing path to handle standard
1678 conversion codes, if the target supports them.
1679 * expr.c (convert_move): Try using the extend and truncate optabs
1680 for vectors.
1681 * optabs-tree.c (supportable_convert_operation): Likewise.
1682 * config/aarch64/iterators.md (Vnarroqw): New iterator.
1683 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
1684 (trunc<mode><Vnarrowq>2): New patterns.
1685
1686 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1687
1688 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
1689 require vectype and nunits_vectype to have the same size;
1690 instead assert that nunits_vectype has at least as many
1691 elements as vectype. Don't compute a separate nunits_vectype
1692 if the scalar type is obviously the same as vectype's.
1693 Tweak dump messages.
1694
1695 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1696
1697 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
1698 function.
1699 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
1700 (TARGET_VECTORIZE_RELATED_MODE): Define.
1701
1702 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1703
1704 * tree-vectorizer.h (vec_info::mode_set): New typedef.
1705 (vec_info::used_vector_mode): New member variable.
1706 (vect_chooses_same_modes_p): Declare.
1707 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
1708 chosen vector mode in vec_info::used_vector_mode.
1709 (vect_chooses_same_modes_p): New function.
1710 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
1711 the same vector statements multiple times.
1712 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
1713
1714 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1715
1716 * machmode.h (opt_machine_mode::operator==): New function.
1717 (opt_machine_mode::operator!=): Likewise.
1718 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
1719 (get_related_vectype_for_scalar_type): Delete.
1720 (get_vectype_for_scalar_type_and_size): Declare.
1721 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
1722 whether analysis passed or failed, and with what vector modes.
1723 Use related_vector_mode to check whether trying a particular
1724 vector mode would be redundant with the autodetected mode,
1725 and print a dump message if we decide to skip it.
1726 * tree-vect-loop.c (vect_analyze_loop): Likewise.
1727 (vect_create_epilog_for_reduction): Use
1728 get_related_vectype_for_scalar_type instead of
1729 get_vectype_for_scalar_type_and_size.
1730 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
1731 with...
1732 (get_related_vectype_for_scalar_type): ...this new function.
1733 Take a starting/"prevailing" vector mode rather than a vector size.
1734 Take an optional nunits argument, with the same meaning as for
1735 related_vector_mode. Use related_vector_mode when not
1736 auto-detecting a mode, falling back to mode_for_vector if no
1737 target mode exists.
1738 (get_vectype_for_scalar_type): Update accordingly.
1739 (get_same_sized_vectype): Likewise.
1740 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
1741
1742 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1743
1744 * tree-vect-stmts.c (vectorizable_call): Require the types
1745 to have the same size.
1746
1747 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1748
1749 * tree-vect-stmts.c (vectorizable_call): If an operand is
1750 constant or external, use get_vectype_for_scalar_type
1751 rather than get_same_sized_vectype to get its vector type.
1752 (vectorizable_conversion, vectorizable_shift): Likewise.
1753 (vectorizable_operation): Likewise.
1754
1755 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1756
1757 * tree-vectorizer.h (vec_info::vector_size): Replace with...
1758 (vec_info::vector_mode): ...this new field.
1759 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
1760 (vect_analyze_loop, vect_transform_loop): Likewise.
1761 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
1762 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
1763 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
1764 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
1765 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
1766
1767 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1768
1769 * target.h (vector_sizes, auto_vector_sizes): Delete.
1770 (vector_modes, auto_vector_modes): New typedefs.
1771 * target.def (autovectorize_vector_sizes): Replace with...
1772 (autovectorize_vector_modes): ...this new hook.
1773 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
1774 Replace with...
1775 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
1776 * doc/tm.texi: Regenerate.
1777 * targhooks.h (default_autovectorize_vector_sizes): Delete.
1778 (default_autovectorize_vector_modes): New function.
1779 * targhooks.c (default_autovectorize_vector_sizes): Delete.
1780 (default_autovectorize_vector_modes): New function.
1781 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
1782 of autovectorize_vector_sizes. Use the number of units in the mode
1783 to calculate the maximum VF.
1784 * omp-low.c (omp_clause_aligned_alignment): Use
1785 autovectorize_vector_modes instead of autovectorize_vector_sizes.
1786 Use a loop based on related_mode to iterate through all supported
1787 vector modes for a given scalar mode.
1788 * optabs-query.c (can_vec_mask_load_store_p): Use
1789 autovectorize_vector_modes instead of autovectorize_vector_sizes.
1790 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
1791 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
1792 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
1793 Replace with...
1794 (aarch64_autovectorize_vector_modes): ...this new function.
1795 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1796 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1797 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
1798 (arc_autovectorize_vector_modes): ...this new function.
1799 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1800 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1801 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
1802 (arm_autovectorize_vector_modes): ...this new function.
1803 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1804 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1805 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
1806 (ix86_autovectorize_vector_modes): ...this new function.
1807 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1808 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1809 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
1810 (mips_autovectorize_vector_modes): ...this new function.
1811 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1812 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1813
1814 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1815
1816 * tree-vect-stmts.c (vectorizable_shift): Check the number
1817 of vector elements as well as the type mode when deciding
1818 whether an op1_vectype is compatible. Reuse the result of
1819 this check when generating vector statements.
1820
1821 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1822
1823 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
1824 targetm.vectorize.preferred_simd_mode returns an integer mode,
1825 use mode_for_vector to decide what the vector type's mode
1826 should actually be. Use build_vector_type_for_mode instead
1827 of build_vector_type.
1828
1829 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1830
1831 * target.def (get_mask_mode): Take a vector mode itself as argument,
1832 instead of properties about the vector mode.
1833 * doc/tm.texi: Regenerate.
1834 * targhooks.h (default_get_mask_mode): Update to reflect new
1835 get_mode_mask interface.
1836 * targhooks.c (default_get_mask_mode): Likewise. Use
1837 related_int_vector_mode.
1838 * optabs-query.c (can_vec_mask_load_store_p): Update call
1839 to get_mask_mode.
1840 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
1841 first that the original mode really is a vector.
1842 * tree.c (build_truth_vector_type_for): Likewise.
1843 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
1844 get_mode_mask interface.
1845 (aarch64_expand_sve_vcond): Update call accordingly.
1846 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
1847 get_mode_mask interface.
1848 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
1849
1850 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1851
1852 * tree.h (build_truth_vector_type): Delete.
1853 (build_same_sized_truth_vector_type): Likewise.
1854 * tree.c (build_truth_vector_type): Rename to...
1855 (build_truth_vector_type_for): ...this. Make static and take
1856 a vector type as argument.
1857 (truth_type_for): Update accordingly.
1858 (build_same_sized_truth_vector_type): Delete.
1859 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
1860 instead of build_same_sized_truth_vector_type.
1861 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
1862 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
1863 * tree-vect-patterns.c (build_mask_conversion): Likeise.
1864 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1865 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
1866 (vect_build_gather_load_calls, vectorizable_call): Likewise.
1867 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
1868 (vectorizable_store, vectorizable_condition): Likewise.
1869 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
1870 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
1871 build_truth_vector_type.
1872 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
1873 Use truth_type_for instead of build_same_sized_truth_vector_type.
1874 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
1875
1876 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1877
1878 * tree.h (build_truth_vector_type_for_mode): Declare.
1879 * tree.c (build_truth_vector_type_for_mode): New function,
1880 split out from...
1881 (build_truth_vector_type): ...here.
1882 (build_opaque_vector_type): Fix head comment.
1883 * tree-vectorizer.h (supportable_narrowing_operation): Remove
1884 vec_info parameter.
1885 (vect_halve_mask_nunits): Replace vec_info parameter with the
1886 mode of the new vector.
1887 (vect_double_mask_nunits): Likewise.
1888 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
1889 (vect_double_mask_nunits): Likewise.
1890 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
1891 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
1892 to vect_halve_mask_nunits, getting the required mode from the unpack
1893 patterns.
1894 (vect_set_loop_condition_masked): Update call accordingly.
1895 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
1896 parameter and update call to vect_double_mask_nunits.
1897 (vectorizable_conversion): Update call accordingly.
1898 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
1899 (vectorizable_call): Update call accordingly.
1900 (supportable_widening_operation): Update call to
1901 vect_halve_mask_nunits.
1902 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
1903 Use build_truth_vector_type_mode instead of build_truth_vector_type.
1904
1905 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1906
1907 * machmode.h (mode_for_int_vector): Delete.
1908 (related_int_vector_mode): Declare.
1909 * stor-layout.c (mode_for_int_vector): Delete.
1910 (related_int_vector_mode): New function.
1911 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
1912 instead of mode_for_int_vector.
1913 (expand_vec_perm_const): Likewise.
1914 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
1915 (aarch64_evpc_sve_tbl): Likewise.
1916 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
1917 (s390_expand_vcond): Likewise.
1918
1919 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1920
1921 * target.def (related_mode): New hook.
1922 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
1923 * doc/tm.texi: Regenerate.
1924 * targhooks.h (default_vectorize_related_mode): Declare.
1925 * targhooks.c (default_vectorize_related_mode): New function.
1926 * machmode.h (related_vector_mode): Declare.
1927 * stor-layout.c (related_vector_mode): New function.
1928 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
1929 * optabs-query.c (qimode_for_vec_perm): Likewise.
1930 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
1931 (vectorizable_store, vectorizable_load): Likewise
1932
1933 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
1934
1935 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
1936 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
1937 * config/arm/arm-c.c (arm_cpu_builtins): Define
1938 __GCC_ASM_FLAG_OUTPUTS__.
1939 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
1940 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
1941 Define __GCC_ASM_FLAG_OUTPUTS__.
1942 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
1943 * doc/extend.texi (FlagOutputOperands): Add documentation
1944 for ARM and AArch64.
1945
1946 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
1947 * config/arm/predicates.md (nz_comparison_operator): Rename
1948 from noov_comparison_operator.
1949 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
1950 (arm_gen_dicompare_reg): Likewise.
1951 (maybe_get_arm_condition_code): Likewise.
1952 (thumb1_final_prescan_insn): Likewise.
1953 (arm_emit_coreregs_64bit_shift): Likewise.
1954 * config/arm/arm.md (addsi3_compare0): Likewise.
1955 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
1956 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
1957 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
1958 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
1959 (*mulsi3addsi_compare0_scratch): Likewise.
1960 (*mulsi3addsi_compare0_scratch_v6): Likewise.
1961 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
1962 (*zeroextractsi_compare0_scratch): Likewise.
1963 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
1964 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
1965 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
1966 (andsi_not_shiftsi_si_scc): Likewise.
1967 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
1968 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
1969 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
1970 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
1971 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
1972 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
1973 (return_addr_mask, *check_arch2): Likewise.
1974 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
1975 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
1976 (compare_scc splitters): Likewise.
1977 (movcond_addsi): Likewise.
1978 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
1979 (*thumb2_addsi3_compare0_scratch): Likewise.
1980 (*thumb2_mulsi_short_compare0): Likewise.
1981 (*thumb2_mulsi_short_compare0_scratch): Likewise.
1982 (compare peephole2s): Likewise.
1983 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
1984 nz_comparison_operator names.
1985 (cbranchsi4_insn): Likewise.
1986
1987 * config/arm/constraints.md (c): Use cc_register predicate.
1988
1989 * config/aarch64/constraints.md (c): New constraint.
1990
1991 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
1992
1993 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
1994 ipa_merge_fn_summary_after_inlining): Micro optimize.
1995
1996 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
1997
1998 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
1999
2000 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2001
2002 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
2003 (ipa_value_range_from_jfunc): New function.
2004 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
2005 known_value_ranges parameter; use it to evalulate conditions.
2006 (evaluate_properties_for_edge): Compute known value ranges.
2007 (ipa_fn_summary_t::duplicate): Update use of
2008 evaluate_conditions_for_known_args.
2009 (estimate_ipcp_clone_size_and_time): Likewise.
2010 (ipa_merge_fn_summary_after_inlining): Likewise.
2011 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
2012
2013 2019-11-14 Martin Liska <mliska@suse.cz>
2014
2015 * ipa-inline.c (want_inline_small_function_p): Use
2016 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
2017 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
2018
2019 2019-11-14 Martin Liska <mliska@suse.cz>
2020
2021 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
2022 of a callee to get value of the param.
2023 * ipa-inline.c (inline_insns_auto): Use proper
2024 opt_for_fn.
2025 * opts.c (maybe_default_option): Do not overwrite param
2026 value if optimization level does not match. Note that
2027 params usually have default value set via Init() keyword.
2028 * params.opt: Remove -param=max-inline-insns-auto-O2.
2029 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
2030 * doc/invoke.texi: Remove documentation of
2031 max-inline-insns-auto-O2.
2032
2033 2019-11-14 Martin Liska <mliska@suse.cz>
2034
2035 * tree-switch-conversion.c (switch_conversion::switch_conversion):
2036 Do not initialize m_other_count.
2037 (switch_conversion::collect): Do not count m_default_count and
2038 m_other_count as we use frequencies for edges.
2039 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
2040
2041 2019-11-14 Martin Liska <mliska@suse.cz>
2042
2043 PR other/92329
2044 * doc/invoke.texi: Document -fallocation-dce.
2045
2046 2019-11-14 Martin Liska <mliska@suse.cz>
2047
2048 PR target/92389
2049 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
2050 PTA_ICELAKE_CLIENT which is later interited by
2051 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
2052
2053 2019-11-14 Martin Liska <mliska@suse.cz>
2054
2055 * ipa-icf.c (sem_item_optimizer::execute): Save
2056 loaded_symbols.
2057 (sem_item_optimizer::parse_nonsingleton_classes):
2058 Return number of loaded symbols.
2059 (sem_item_optimizer::merge_classes): Print
2060 statistics about totally needed symbols.
2061 * ipa-icf.h (parse_nonsingleton_classes): Change return
2062 type.
2063 (merge_classes): Add one argument.
2064
2065 2019-11-14 Martin Liska <mliska@suse.cz>
2066
2067 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
2068 func_checker::hash_operand by handling of FIELD_DECLs.
2069
2070 2019-11-14 Martin Liska <mliska@suse.cz>
2071
2072 * ipa-icf-gimple.h (func_checker::func_checker): Add
2073 default constructor.
2074 * ipa-icf.c (sem_function::init): Make operand_equal_p
2075 and hash_operand public.
2076 (sem_item::add_expr): Remove.
2077 (sem_item::add_type): Remove.
2078 (sem_function::hash_stmt): Use m_checker for hashing
2079 of GIMPLE statements.
2080 (sem_function::parse): Init with checker.
2081 (sem_variable::parse): Pass NULL as checker.
2082 (sem_item_optimizer::parse_funcs_and_vars):
2083 Pass checker to ::parse function.
2084 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
2085 (sem_variable::parse): New function.
2086 (sem_variable::get_hash): Only return computed hash value.
2087 (sem_variable::init): Initialize hash of a variable.
2088 * ipa-icf.h: Remove add_expr, add_type and add func_checker
2089 to couple of functions as a new argument.
2090
2091 2019-11-14 Martin Liska <mliska@suse.cz>
2092
2093 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
2094 bail out reason.
2095 (func_checker::compare_gimple_assign): Likewise.
2096
2097 2019-11-14 Jakub Jelinek <jakub@redhat.com>
2098
2099 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
2100 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
2101 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
2102
2103 * omp-general.c (omp_context_name_list_prop): New function.
2104 (omp_context_selector_matches): Use it. Return 0 if it returns
2105 NULL.
2106 (omp_context_selector_props_compare): Allow equivalency of an
2107 identifier and a string literal containing no embedded zeros.
2108
2109 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2110
2111 * range-op.cc (RANGE3): Remove.
2112 (range_tests): Remove all selftest that check for multi-ranges.
2113 Put tests in namespace selftest.
2114 * selftest.h: Move range_tests into namespace selftest.
2115 * value-range.h (class value_range): Unfriend range_tests.
2116
2117 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2118
2119 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
2120 normalize_symbolics and normalize_addresses working in place.
2121 (range_fold_unary_symbolics_p): Same.
2122 (range_fold_unary_symbolics_p): Same.
2123 * value-range.cc (num_pairs): Same.
2124 (lower_bound): Same.
2125 (upper_bound): Same.
2126 (contains_p): Same.
2127 (normalize_addresses): Same.
2128 (normalize_symbolics): Same.
2129 * value-range.h (normalize_symbolics): Same.
2130 (normalize_addresses): Same.
2131
2132 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
2133
2134 PR ipa/91682
2135 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
2136 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
2137 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
2138 (ipa_agg_jump_function): Remove member function equal_to.
2139 (ipa_agg_jump_function_p): Remove typedef.
2140 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
2141 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
2142 information for aggregate jump function.
2143 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
2144 record last definition statement.
2145 (load_from_unmodified_param_or_agg): New function.
2146 (ipa_known_agg_contents_list): Add new field type and value, remove
2147 field constant.
2148 (build_agg_jump_func_from_list): Rename parameter const_count to
2149 value_count, build aggregate jump function from ipa_load_agg_data.
2150 (analyze_agg_content_value): New function.
2151 (extract_mem_content): Analyze memory store assignment to prepare
2152 information for aggregate jump function generation.
2153 (determine_known_aggregate_parts): Add new parameter fbi, remove
2154 parameter aa_walk_budeget_p.
2155 (update_jump_functions_after_inlining): Update aggregate jump function.
2156 (ipa_find_agg_cst_for_param): Change type of parameter agg.
2157 (try_make_edge_direct_simple_call): Add new parameter new_root.
2158 (try_make_edge_direct_virtual_call): Add new parameter new_root and
2159 new_root_info.
2160 (update_indirect_edges_after_inlining): Pass new argument to
2161 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
2162 (ipa_write_jump_function): Write aggregate jump function to file.
2163 (ipa_read_jump_function): Read aggregate jump function from file.
2164 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
2165 * ipa-cp.c (ipa_get_jf_arith_result): New function.
2166 (ipa_agg_value_from_node): Likewise.
2167 (ipa_agg_value_set_from_jfunc): Likewise.
2168 (propagate_vals_across_arith_jfunc): Likewise.
2169 (propagate_aggregate_lattice): Likewise.
2170 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
2171 (propagate_vals_across_pass_through): Call
2172 propagate_vals_across_arith_jfunc.
2173 (get_clone_agg_value): Move forward.
2174 (propagate_aggs_across_jump_function): Handle value propagation for
2175 aggregate jump function.
2176 (agg_jmp_p_vec_for_t_vec): Remove.
2177 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
2178 with vec<ipa_agg_value>.
2179 (copy_plats_to_inter, intersect_with_plats): Likewise.
2180 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
2181 (intersect_aggregate_with_edge): Likewise.
2182 (find_aggregate_values_for_callers_subset): Likewise.
2183 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
2184 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
2185 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2186 (gather_context_independent_values): Likewise.
2187 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
2188 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
2189 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2190 (evaluate_properties_for_edge): Likewise.
2191 (estimate_edge_devirt_benefit): Likewise.
2192 (estimate_edge_size_and_time): Likewise.
2193 (estimate_calls_size_and_time): Likewise.
2194 (ipa_call_context::ipa_call_context): Likewise.
2195 (estimate_ipcp_clone_size_and_time): Likewise.
2196 * ipa-fnsummary.h (ipa_call_context): Replace
2197 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2198 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
2199 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2200 (do_estimate_edge_size): Likewise.
2201 (do_estimate_edge_hints): Likewise.
2202
2203 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2204
2205 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
2206 binary operations.
2207
2208 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2209
2210 * ipa-profile.c (check_argument_count): Check properly that e_info
2211 is non-NULL; do not check descriptors.
2212
2213 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2214
2215 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
2216 check for ipa profiles.
2217
2218 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2219
2220 PR c++/92421
2221 * ipa-prop.c (update_indirect_edges_after_inlining):
2222 Mark parameter as used.
2223 * ipa-inline.c (recursive_inlining): Reset node cache
2224 after inlining.
2225 (inline_small_functions): Remove checking ifdef.
2226 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
2227 cache consistency.
2228
2229 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2230
2231 PR ipa/92498
2232 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
2233 is NULL.
2234 (ipa_profile): Fix reversed test.
2235
2236 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2237
2238 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
2239 (propagate_constants_topo): Fix typo.
2240
2241 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
2242
2243 * Makefile.in (OBJS): Add value-range.o.
2244 (GTFILES): Add value-range.h.
2245 * gengtype.c (open_base_files): Add value-range.h to list of
2246 header files.
2247 * tree-vrp.c: Move the following value_range related functions:
2248 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
2249 constant_p, set_undefined, set_varying, may_contain_p,
2250 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
2251 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
2252 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
2253 value_inside_range, ranges_from_anti_range, union_ranges,
2254 intersect_ranges, intersect_helper, union_helper, union_,
2255 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
2256 upper_bound, contains_p, invert, intersect...
2257 * value-range.cc: ...to here.
2258 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
2259 associated inline methods from here...
2260 * value-range.h: ...to here.
2261
2262 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2263
2264 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
2265 instead of asserting its value.
2266
2267 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
2268
2269 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
2270 constructors and set methods so value_range_kind is the last
2271 argument and defaults to VR_RANGE.
2272 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
2273 * ipa-cp.c (propagate_vr_across_jump_function): Same.
2274 * ipa-prop.c (ipa_get_value_range): Same.
2275 (ipa_compute_jump_functions_for_edge): Same.
2276 * range-op.cc (value_range_from_overflowed_bounds): Same.
2277 (operator_cast::op1_range): Same.
2278 (range_tests): Same.
2279 * range.cc (range_nonzero): Same.
2280 * tree-ssanames.c (get_range_info): Same.
2281 * tree-vrp.c (value_range_equiv::set): Same.
2282 (value_range::value_range): Same.
2283 (value_range_equiv::value_range_equiv): Same.
2284 (value_range_equiv::update): Same.
2285 (value_range_equiv::deep_copy): Same.
2286 (value_range_equiv::move): Same.
2287 (value_range_equiv::set_undefined): Same.
2288 (value_range::set): Same.
2289 (value_range::set_nonzero): Same.
2290 (ranges_from_anti_range): Same.
2291 (extract_range_from_plus_minus_expr): Same.
2292 (value_range::intersect_helper): Same.
2293 (value_range_equiv::intersect): Same.
2294 (value_range::union_helper): Same.
2295 (value_range_equiv::union_): Same.
2296 (value_range::normalize_symbolics): Same.
2297 (value_range::invert): Same.
2298 (determine_value_range_1): Same.
2299 * tree-vrp.h (class value_range): Same.
2300 (class value_range_equiv): Same.
2301 * vr-values.c (set_value_range_to_nonnegative): Same.
2302 (set_value_range_to_truthvalue): Same.
2303 (vr_values::update_value_range): Same.
2304 (vr_values::extract_range_for_var_from_comparison_expr): Same.
2305 (vr_values::extract_range_from_binary_expr): Same.
2306 (vr_values::extract_range_from_comparison): Same.
2307 (vr_values::extract_range_basic): Same.
2308 (vr_values::adjust_range_with_scev): Same.
2309 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
2310 (vr_values::extract_range_from_phi_node): Same.
2311
2312 2019-11-13 Ulrich Drepper <drepper@redhat.com>
2313
2314 * tree-dump.c (dequeue_and_dump): Print first tree operand
2315 for VIEW_CONVERT_EXPR.
2316
2317 2019-11-13 Joseph Myers <joseph@codesourcery.com>
2318
2319 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
2320 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
2321 * real.c (get_max_float): Add norm_max argument.
2322 * real.h (get_max_float): Update prototype.
2323 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
2324 get_max_float.
2325
2326 2019-11-13 Martin Liska <mliska@suse.cz>
2327
2328 * dbgcnt.c (test_sorted_dbg_counters): New.
2329 (dbgcnt_c_tests): Likewise.
2330 * selftest-run-tests.c (selftest::run_tests): Likewise.
2331 * selftest.h (dbgcnt_c_tests): Likewise.
2332
2333 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2334 Martin Jambor <mjambor@suse.cz>
2335
2336 PR ipa/92454
2337 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
2338 (identify_dead_nodes): Likewise.
2339
2340 2019-11-13 Martin Liska <mliska@suse.cz>
2341
2342 * ipa-icf.c (sem_function::equals_private): Do not overuse
2343 push/pop_cfun functions.
2344
2345 2019-11-13 Martin Liska <mliska@suse.cz>
2346
2347 * common.opt: Document change of -fdbg-cnt option.
2348 * dbgcnt.c (DEBUG_COUNTER): Remove.
2349 (dbg_cnt_is_enabled): Remove.
2350 (dbg_cnt): Work with new intervals.
2351 (dbg_cnt_set_limit_by_index): Set to new
2352 list of intervals.
2353 (dbg_cnt_set_limit_by_name): Likewise.
2354 (dbg_cnt_process_single_pair): Process new format.
2355 (dbg_cnt_process_opt): Likewise.
2356 (dbg_cnt_list_all_counters): Likewise.
2357 * doc/invoke.texi: Document change of -fdbg-cnt option.
2358 (cmp_tuples): New.
2359
2360 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2361
2362 * ipa-inline.c (ipa_inline): Check that function is defined before
2363 flattening.
2364
2365 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2366 Julian Brown <julian@codesourcery.com>
2367
2368 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
2369 flag_worker_partitioning is not set.
2370 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
2371 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
2372
2373 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2374
2375 * config/gcn/gcn-run.c (heap_region): New global variable.
2376 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
2377 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
2378 (get_kernarg_region): Move contents to ....
2379 (get_memory_region): .... here.
2380 (get_heap_region): New function.
2381 (init_device): Initialize the heap_region.
2382 (device_malloc): Add region parameter.
2383 (struct kernargs): Move heap ....
2384 (heap): ... to global scope.
2385 (main): Allocate heap separate to kernargs.
2386
2387 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2388
2389 * ipa-prop.c (ipa_print_node_jump_functions,
2390 ipa_print_node_params): Print info about missing summaries.
2391
2392 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2393
2394 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
2395 the cost of generating loop masks.
2396
2397 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2398
2399 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
2400 New function.
2401 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
2402 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2403 (vect_transform_loop): Likewise.
2404 (vect_analyze_loop_costing): Don't take the cost of versioning
2405 into account for the static profitability threshold if it turns
2406 out that no versioning is needed.
2407
2408 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2409
2410 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
2411 and target_option_default_node to get -fprofile-generate ctors working
2412 right with LTO.
2413
2414 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2415
2416 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
2417 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
2418 (vectorizable_assignment): Don't add a cost for nop conversions.
2419 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
2420 Likewise.
2421 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
2422
2423 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2424
2425 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
2426 number of ncopies as an additional argument.
2427 (vectorizable_conversion): Update call accordingly. Use "modifier"
2428 to check whether a conversion is between vectors with the same
2429 numbers of units.
2430
2431 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2432
2433 * config/aarch64/aarch64-sve-builtins-functions.h
2434 (unary_count::expand): Use aarch64_sve_int_mode instead of
2435 mode_for_int_vector.
2436
2437 2019-11-13 Martin Liska <mliska@suse.cz>
2438
2439 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
2440
2441 2019-11-13 Martin Liska <mliska@suse.cz>
2442
2443 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
2444 Remove call to finalize_options_struct.
2445
2446 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
2447
2448 PR target/92055
2449 * config/avr/t-avr (avr-mcus): Do not depend on
2450 $(srcdir)/config/avr/t-multilib.
2451
2452 2019-11-13 Richard Biener <rguenther@suse.de>
2453
2454 PR tree-optimization/92473
2455 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
2456 direct optab reduction in the correct type.
2457
2458 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
2459
2460 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
2461 hexadecimal literal.
2462
2463 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
2464
2465 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
2466 UNORDERED if !HONOR_NANS (DFmode).
2467 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
2468 if !HONOR_NANS (<MODE>mode).
2469
2470 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
2471
2472 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
2473 (ipcp_verify_propagated_values): Likewise.
2474 (propagate_constants_across_call): Likewise.
2475 (propagate_constants_topo): Likewise.
2476 (ipcp_propagate_stage): Likewise.
2477
2478 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
2479
2480 PR ipa/92471
2481 * ipa-profile.c (check_argument_count): Break out from ...;
2482 watch for missing summaries.
2483 (ipa_profile): Here.
2484
2485 2019-11-12 Martin Sebor <msebor@redhat.com>
2486
2487 PR tree-optimization/92412
2488 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
2489 extern variables.
2490
2491 2019-11-12 Martin Sebor <msebor@redhat.com>
2492
2493 PR middle-end/83688
2494 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
2495 (directive::argno): New member.
2496 (format_result::aliases, format_result::alias_count): New data members.
2497 (format_result::append_alias): New member function.
2498 (fmtresult::dst_offset): New data member.
2499 (pass_sprintf_length::call_info::dst_origin): New data member.
2500 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
2501 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
2502 (get_origin_and_offset): Same.
2503 (format_string): Call it.
2504 (format_directive): Call append_alias and set directive argument
2505 number.
2506 (maybe_warn_overlap): New function.
2507 (pass_sprintf_length::compute_format_length): Call it.
2508 (pass_sprintf_length::handle_gimple_call): Initialize new members.
2509 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
2510
2511 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
2512
2513 PR rtl-optimization/92430
2514 * cfgcleanup.c (pass_jump_after_combine::execute): Free
2515 dominance info at the beginning.
2516
2517 2019-11-12 Richard Biener <rguenther@suse.de>
2518
2519 PR tree-optimization/92460
2520 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
2521 expression before gimplifying.
2522
2523 2019-11-12 Richard Biener <rguenther@suse.de>
2524
2525 PR tree-optimization/92461
2526 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
2527 stmt after propagation.
2528
2529 2019-11-12 Martin Liska <mliska@suse.cz>
2530
2531 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
2532 Use SET_OPTION_IF_UNSET.
2533 (ix86_option_override_internal): Likewise.
2534 * opts.c (default_options_optimization): Likewise.
2535 (finish_options): Likewise.
2536 (enable_fdo_optimizations): Likewise.
2537 (common_handle_option): Likewise.
2538
2539 2019-11-12 Martin Liska <mliska@suse.cz>
2540
2541 * common/common-target.def: Remove option_validate_param and
2542 option_default_params.
2543 * common/common-targhooks.c (default_option_validate_param):
2544 Remove.
2545 * common/common-targhooks.h (default_option_validate_param):
2546 Remove.
2547 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
2548 Remove usage of this.
2549 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
2550 (aarch64_option_validate_param): Likewise.
2551 (aarch64_option_default_params): Likewise
2552 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
2553 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2554 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
2555 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2556 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
2557 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2558 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
2559 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2560 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
2561 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2562 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
2563 guard_size here.
2564 * doc/tm.texi: Remove option_default_params and option_validate_param.
2565 * doc/tm.texi.in: Likewise.
2566
2567 2019-11-12 Martin Liska <mliska@suse.cz>
2568
2569 * common/common-target.def:
2570 Do not mention set_default_param_value
2571 and set_param_value.
2572 * doc/tm.texi: Likewise.
2573
2574 2019-11-12 Martin Liska <mliska@suse.cz>
2575
2576 * common.opt: Remove param_values.
2577 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
2578 Remove finalize_options_struct.
2579 * gcc.c (driver::decode_argv): Do not call global_init_params
2580 and finish_params.
2581 (driver::finalize): Do not call params_c_finalize
2582 and finalize_options_struct.
2583 * opt-suggestions.c (option_proposer::get_completions): Remove
2584 special casing of params.
2585 (option_proposer::find_param_completions): Remove.
2586 (test_completion_partial_match): Update expected output.
2587 * opt-suggestions.h: Remove find_param_completions.
2588 * opts-common.c (add_misspelling_candidates): Add
2589 --param with a space.
2590 * opts.c (handle_param): Remove.
2591 (init_options_struct):. Remove init_options_struct and
2592 similar calls.
2593 (finalize_options_struct): Remove.
2594 (common_handle_option): Use SET_OPTION_IF_UNSET.
2595 * opts.h (finalize_options_struct): Remove.
2596 * toplev.c (general_init): Do not call global_init_params.
2597 (toplev::finalize): Do not call params_c_finalize and
2598 finalize_options_struct.
2599
2600 2019-11-12 Martin Liska <mliska@suse.cz>
2601
2602 * Makefile.in: Remove PARAMS_H and params.list
2603 and params.options.
2604 * params-enum.h: Remove.
2605 * params-list.h: Remove.
2606 * params-options.h: Remove.
2607 * params.c: Remove.
2608 * params.def: Remove.
2609 * params.h: Remove.
2610 * asan.c: Do not include params.h.
2611 * auto-profile.c: Likewise.
2612 * bb-reorder.c: Likewise.
2613 * builtins.c: Likewise.
2614 * cfgcleanup.c: Likewise.
2615 * cfgexpand.c: Likewise.
2616 * cfgloopanal.c: Likewise.
2617 * cgraph.c: Likewise.
2618 * combine.c: Likewise.
2619 * common/config/aarch64/aarch64-common.c: Likewise.
2620 * common/config/gcn/gcn-common.c: Likewise.
2621 * common/config/ia64/ia64-common.c: Likewise.
2622 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
2623 * common/config/rs6000/rs6000-common.c: Likewise.
2624 * common/config/sh/sh-common.c: Likewise.
2625 * config/aarch64/aarch64.c: Likewise.
2626 * config/alpha/alpha.c: Likewise.
2627 * config/arm/arm.c: Likewise.
2628 * config/avr/avr.c: Likewise.
2629 * config/csky/csky.c: Likewise.
2630 * config/i386/i386-builtins.c: Likewise.
2631 * config/i386/i386-expand.c: Likewise.
2632 * config/i386/i386-features.c: Likewise.
2633 * config/i386/i386-options.c: Likewise.
2634 * config/i386/i386.c: Likewise.
2635 * config/ia64/ia64.c: Likewise.
2636 * config/rs6000/rs6000-logue.c: Likewise.
2637 * config/rs6000/rs6000.c: Likewise.
2638 * config/s390/s390.c: Likewise.
2639 * config/sparc/sparc.c: Likewise.
2640 * config/visium/visium.c: Likewise.
2641 * coverage.c: Likewise.
2642 * cprop.c: Likewise.
2643 * cse.c: Likewise.
2644 * cselib.c: Likewise.
2645 * dse.c: Likewise.
2646 * emit-rtl.c: Likewise.
2647 * explow.c: Likewise.
2648 * final.c: Likewise.
2649 * fold-const.c: Likewise.
2650 * gcc.c: Likewise.
2651 * gcse.c: Likewise.
2652 * ggc-common.c: Likewise.
2653 * ggc-page.c: Likewise.
2654 * gimple-loop-interchange.cc: Likewise.
2655 * gimple-loop-jam.c: Likewise.
2656 * gimple-loop-versioning.cc: Likewise.
2657 * gimple-ssa-split-paths.c: Likewise.
2658 * gimple-ssa-sprintf.c: Likewise.
2659 * gimple-ssa-store-merging.c: Likewise.
2660 * gimple-ssa-strength-reduction.c: Likewise.
2661 * gimple-ssa-warn-alloca.c: Likewise.
2662 * gimple-ssa-warn-restrict.c: Likewise.
2663 * graphite-isl-ast-to-gimple.c: Likewise.
2664 * graphite-optimize-isl.c: Likewise.
2665 * graphite-scop-detection.c: Likewise.
2666 * graphite-sese-to-poly.c: Likewise.
2667 * graphite.c: Likewise.
2668 * haifa-sched.c: Likewise.
2669 * hsa-gen.c: Likewise.
2670 * ifcvt.c: Likewise.
2671 * ipa-cp.c: Likewise.
2672 * ipa-fnsummary.c: Likewise.
2673 * ipa-inline-analysis.c: Likewise.
2674 * ipa-inline.c: Likewise.
2675 * ipa-polymorphic-call.c: Likewise.
2676 * ipa-profile.c: Likewise.
2677 * ipa-prop.c: Likewise.
2678 * ipa-split.c: Likewise.
2679 * ipa-sra.c: Likewise.
2680 * ira-build.c: Likewise.
2681 * ira-conflicts.c: Likewise.
2682 * loop-doloop.c: Likewise.
2683 * loop-invariant.c: Likewise.
2684 * loop-unroll.c: Likewise.
2685 * lra-assigns.c: Likewise.
2686 * lra-constraints.c: Likewise.
2687 * modulo-sched.c: Likewise.
2688 * opt-suggestions.c: Likewise.
2689 * opts.c: Likewise.
2690 * postreload-gcse.c: Likewise.
2691 * predict.c: Likewise.
2692 * reload.c: Likewise.
2693 * reorg.c: Likewise.
2694 * resource.c: Likewise.
2695 * sanopt.c: Likewise.
2696 * sched-deps.c: Likewise.
2697 * sched-ebb.c: Likewise.
2698 * sched-rgn.c: Likewise.
2699 * sel-sched-ir.c: Likewise.
2700 * sel-sched.c: Likewise.
2701 * shrink-wrap.c: Likewise.
2702 * stmt.c: Likewise.
2703 * targhooks.c: Likewise.
2704 * toplev.c: Likewise.
2705 * tracer.c: Likewise.
2706 * trans-mem.c: Likewise.
2707 * tree-chrec.c: Likewise.
2708 * tree-data-ref.c: Likewise.
2709 * tree-if-conv.c: Likewise.
2710 * tree-inline.c: Likewise.
2711 * tree-loop-distribution.c: Likewise.
2712 * tree-parloops.c: Likewise.
2713 * tree-predcom.c: Likewise.
2714 * tree-profile.c: Likewise.
2715 * tree-scalar-evolution.c: Likewise.
2716 * tree-sra.c: Likewise.
2717 * tree-ssa-ccp.c: Likewise.
2718 * tree-ssa-dom.c: Likewise.
2719 * tree-ssa-dse.c: Likewise.
2720 * tree-ssa-ifcombine.c: Likewise.
2721 * tree-ssa-loop-ch.c: Likewise.
2722 * tree-ssa-loop-im.c: Likewise.
2723 * tree-ssa-loop-ivcanon.c: Likewise.
2724 * tree-ssa-loop-ivopts.c: Likewise.
2725 * tree-ssa-loop-manip.c: Likewise.
2726 * tree-ssa-loop-niter.c: Likewise.
2727 * tree-ssa-loop-prefetch.c: Likewise.
2728 * tree-ssa-loop-unswitch.c: Likewise.
2729 * tree-ssa-math-opts.c: Likewise.
2730 * tree-ssa-phiopt.c: Likewise.
2731 * tree-ssa-pre.c: Likewise.
2732 * tree-ssa-reassoc.c: Likewise.
2733 * tree-ssa-sccvn.c: Likewise.
2734 * tree-ssa-scopedtables.c: Likewise.
2735 * tree-ssa-sink.c: Likewise.
2736 * tree-ssa-strlen.c: Likewise.
2737 * tree-ssa-structalias.c: Likewise.
2738 * tree-ssa-tail-merge.c: Likewise.
2739 * tree-ssa-threadbackward.c: Likewise.
2740 * tree-ssa-threadedge.c: Likewise.
2741 * tree-ssa-uninit.c: Likewise.
2742 * tree-switch-conversion.c: Likewise.
2743 * tree-vect-data-refs.c: Likewise.
2744 * tree-vect-loop.c: Likewise.
2745 * tree-vect-slp.c: Likewise.
2746 * tree-vrp.c: Likewise.
2747 * tree.c: Likewise.
2748 * value-prof.c: Likewise.
2749 * var-tracking.c: Likewise.
2750
2751 2019-11-12 Martin Liska <mliska@suse.cz>
2752
2753 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
2754 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
2755 macro.
2756 (asan_sanitize_allocas_p): Likewise.
2757 (asan_emit_stack_protection): Likewise.
2758 (asan_protect_global): Likewise.
2759 (instrument_derefs): Likewise.
2760 (instrument_builtin_call): Likewise.
2761 (asan_expand_mark_ifn): Likewise.
2762 * auto-profile.c (auto_profile): Likewise.
2763 * bb-reorder.c (copy_bb_p): Likewise.
2764 (duplicate_computed_gotos): Likewise.
2765 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
2766 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
2767 (try_crossjump_bb): Likewise.
2768 * cfgexpand.c (defer_stack_allocation): Likewise.
2769 (stack_protect_classify_type): Likewise.
2770 (pass_expand::execute): Likewise.
2771 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
2772 (estimate_reg_pressure_cost): Likewise.
2773 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
2774 * combine.c (combine_instructions): Likewise.
2775 (record_value_for_reg): Likewise.
2776 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
2777 (aarch64_option_default_params): Likewise.
2778 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
2779 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
2780 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
2781 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
2782 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
2783 (aarch64_allocate_and_probe_stack_space): Likewise.
2784 (aarch64_expand_epilogue): Likewise.
2785 (aarch64_override_options_internal): Likewise.
2786 * config/alpha/alpha.c (alpha_option_override): Likewise.
2787 * config/arm/arm.c (arm_option_override): Likewise.
2788 (arm_valid_target_attribute_p): Likewise.
2789 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
2790 * config/i386/i386.c (get_probe_interval): Likewise.
2791 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
2792 (ix86_max_noce_ifcvt_seq_cost): Likewise.
2793 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
2794 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
2795 (get_stack_clash_protection_guard_size): Likewise.
2796 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
2797 * config/s390/s390.c (allocate_stack_space): Likewise.
2798 (s390_emit_prologue): Likewise.
2799 (s390_option_override_internal): Likewise.
2800 * config/sparc/sparc.c (sparc_option_override): Likewise.
2801 * config/visium/visium.c (visium_option_override): Likewise.
2802 * coverage.c (get_coverage_counts): Likewise.
2803 (coverage_compute_profile_id): Likewise.
2804 (coverage_begin_function): Likewise.
2805 (coverage_end_function): Likewise.
2806 * cse.c (cse_find_path): Likewise.
2807 (cse_extended_basic_block): Likewise.
2808 (cse_main): Likewise.
2809 * cselib.c (cselib_invalidate_mem): Likewise.
2810 * dse.c (dse_step1): Likewise.
2811 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
2812 (get_max_insn_count): Likewise.
2813 (make_debug_insn_raw): Likewise.
2814 (init_emit): Likewise.
2815 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
2816 * final.c (compute_alignments): Likewise.
2817 * fold-const.c (fold_range_test): Likewise.
2818 (fold_truth_andor): Likewise.
2819 (tree_single_nonnegative_warnv_p): Likewise.
2820 (integer_valued_real_single_p): Likewise.
2821 * gcse.c (want_to_gcse_p): Likewise.
2822 (prune_insertions_deletions): Likewise.
2823 (hoist_code): Likewise.
2824 (gcse_or_cprop_is_too_expensive): Likewise.
2825 * ggc-common.c: Likewise.
2826 * ggc-page.c (ggc_collect): Likewise.
2827 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
2828 (MAX_DATAREFS): Likewise.
2829 (OUTER_STRIDE_RATIO): Likewise.
2830 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
2831 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
2832 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
2833 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
2834 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
2835 (imm_store_chain_info::output_merged_store): Likewise.
2836 (pass_store_merging::process_store): Likewise.
2837 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
2838 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
2839 (scop_to_isl_ast): Likewise.
2840 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
2841 (optimize_isl): Likewise.
2842 * graphite-scop-detection.c (build_scops): Likewise.
2843 * haifa-sched.c (set_modulo_params): Likewise.
2844 (rank_for_schedule): Likewise.
2845 (model_add_to_worklist): Likewise.
2846 (model_promote_insn): Likewise.
2847 (model_choose_insn): Likewise.
2848 (queue_to_ready): Likewise.
2849 (autopref_multipass_dfa_lookahead_guard): Likewise.
2850 (schedule_block): Likewise.
2851 (sched_init): Likewise.
2852 * hsa-gen.c (init_prologue): Likewise.
2853 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
2854 (cond_move_process_if_block): Likewise.
2855 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
2856 (merge_agg_lats_step): Likewise.
2857 (devirtualization_time_bonus): Likewise.
2858 (hint_time_bonus): Likewise.
2859 (incorporate_penalties): Likewise.
2860 (good_cloning_opportunity_p): Likewise.
2861 (ipcp_propagate_stage): Likewise.
2862 * ipa-fnsummary.c (decompose_param_expr): Likewise.
2863 (set_switch_stmt_execution_predicate): Likewise.
2864 (analyze_function_body): Likewise.
2865 (compute_fn_summary): Likewise.
2866 * ipa-inline-analysis.c (estimate_growth): Likewise.
2867 * ipa-inline.c (caller_growth_limits): Likewise.
2868 (inline_insns_single): Likewise.
2869 (inline_insns_auto): Likewise.
2870 (can_inline_edge_by_limits_p): Likewise.
2871 (want_early_inline_function_p): Likewise.
2872 (big_speedup_p): Likewise.
2873 (want_inline_small_function_p): Likewise.
2874 (want_inline_self_recursive_call_p): Likewise.
2875 (edge_badness): Likewise.
2876 (recursive_inlining): Likewise.
2877 (compute_max_insns): Likewise.
2878 (early_inliner): Likewise.
2879 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
2880 * ipa-profile.c (ipa_profile): Likewise.
2881 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
2882 (ipa_analyze_node): Likewise.
2883 (ipcp_transform_function): Likewise.
2884 * ipa-split.c (consider_split): Likewise.
2885 * ipa-sra.c (allocate_access): Likewise.
2886 (process_scan_results): Likewise.
2887 (ipa_sra_summarize_function): Likewise.
2888 (pull_accesses_from_callee): Likewise.
2889 * ira-build.c (loop_compare_func): Likewise.
2890 (mark_loops_for_removal): Likewise.
2891 * ira-conflicts.c (build_conflict_bit_table): Likewise.
2892 * loop-doloop.c (doloop_optimize): Likewise.
2893 * loop-invariant.c (gain_for_invariant): Likewise.
2894 (move_loop_invariants): Likewise.
2895 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
2896 (decide_unroll_runtime_iterations): Likewise.
2897 (decide_unroll_stupid): Likewise.
2898 (expand_var_during_unrolling): Likewise.
2899 * lra-assigns.c (spill_for): Likewise.
2900 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
2901 * modulo-sched.c (sms_schedule): Likewise.
2902 (DFA_HISTORY): Likewise.
2903 * opts.c (default_options_optimization): Likewise.
2904 (finish_options): Likewise.
2905 (common_handle_option): Likewise.
2906 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
2907 (if): Likewise.
2908 * predict.c (get_hot_bb_threshold): Likewise.
2909 (maybe_hot_count_p): Likewise.
2910 (probably_never_executed): Likewise.
2911 (predictable_edge_p): Likewise.
2912 (predict_loops): Likewise.
2913 (expr_expected_value_1): Likewise.
2914 (tree_predict_by_opcode): Likewise.
2915 (handle_missing_profiles): Likewise.
2916 * reload.c (find_equiv_reg): Likewise.
2917 * reorg.c (redundant_insn): Likewise.
2918 * resource.c (mark_target_live_regs): Likewise.
2919 (incr_ticks_for_insn): Likewise.
2920 * sanopt.c (pass_sanopt::execute): Likewise.
2921 * sched-deps.c (sched_analyze_1): Likewise.
2922 (sched_analyze_2): Likewise.
2923 (sched_analyze_insn): Likewise.
2924 (deps_analyze_insn): Likewise.
2925 * sched-ebb.c (schedule_ebbs): Likewise.
2926 * sched-rgn.c (find_single_block_region): Likewise.
2927 (too_large): Likewise.
2928 (haifa_find_rgns): Likewise.
2929 (extend_rgns): Likewise.
2930 (new_ready): Likewise.
2931 (schedule_region): Likewise.
2932 (sched_rgn_init): Likewise.
2933 * sel-sched-ir.c (make_region_from_loop): Likewise.
2934 * sel-sched-ir.h (MAX_WS): Likewise.
2935 * sel-sched.c (process_pipelined_exprs): Likewise.
2936 (sel_setup_region_sched_flags): Likewise.
2937 * shrink-wrap.c (try_shrink_wrapping): Likewise.
2938 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
2939 * toplev.c (print_version): Likewise.
2940 (process_options): Likewise.
2941 * tracer.c (tail_duplicate): Likewise.
2942 * trans-mem.c (tm_log_add): Likewise.
2943 * tree-chrec.c (chrec_fold_plus_1): Likewise.
2944 * tree-data-ref.c (split_constant_offset): Likewise.
2945 (compute_all_dependences): Likewise.
2946 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
2947 * tree-inline.c (remap_gimple_stmt): Likewise.
2948 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
2949 * tree-parloops.c (MIN_PER_THREAD): Likewise.
2950 (create_parallel_loop): Likewise.
2951 * tree-predcom.c (determine_unroll_factor): Likewise.
2952 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
2953 * tree-sra.c (analyze_all_variable_accesses): Likewise.
2954 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2955 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
2956 (dse_optimize_redundant_stores): Likewise.
2957 (dse_classify_store): Likewise.
2958 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
2959 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
2960 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
2961 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
2962 (try_peel_loop): Likewise.
2963 (tree_unroll_loops_completely): Likewise.
2964 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2965 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
2966 (MAX_CONSIDERED_GROUPS): Likewise.
2967 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
2968 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
2969 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
2970 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
2971 (L1_CACHE_SIZE_BYTES): Likewise.
2972 (L2_CACHE_SIZE_BYTES): Likewise.
2973 (should_issue_prefetch_p): Likewise.
2974 (schedule_prefetches): Likewise.
2975 (determine_unroll_factor): Likewise.
2976 (volume_of_references): Likewise.
2977 (add_subscript_strides): Likewise.
2978 (self_reuse_distance): Likewise.
2979 (mem_ref_count_reasonable_p): Likewise.
2980 (insn_to_prefetch_ratio_too_small_p): Likewise.
2981 (loop_prefetch_arrays): Likewise.
2982 (tree_ssa_prefetch_arrays): Likewise.
2983 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
2984 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2985 (convert_mult_to_fma): Likewise.
2986 (math_opts_dom_walker::after_dom_children): Likewise.
2987 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
2988 (hoist_adjacent_loads): Likewise.
2989 (gate_hoist_loads): Likewise.
2990 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
2991 (compute_partial_antic_aux): Likewise.
2992 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
2993 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
2994 (vn_reference_lookup): Likewise.
2995 (do_rpo_vn): Likewise.
2996 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
2997 * tree-ssa-sink.c (select_best_block): Likewise.
2998 * tree-ssa-strlen.c (new_stridx): Likewise.
2999 (new_addr_stridx): Likewise.
3000 (get_range_strlen_dynamic): Likewise.
3001 (class ssa_name_limit_t): Likewise.
3002 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
3003 (create_variable_info_for_1): Likewise.
3004 (init_alias_vars): Likewise.
3005 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
3006 (tail_merge_optimize): Likewise.
3007 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
3008 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
3009 (thread_jumps::find_jump_threads_backwards): Likewise.
3010 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
3011 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
3012 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
3013 (jump_table_cluster::can_be_handled): Likewise.
3014 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
3015 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
3016 (param_switch_conversion_branch_ratio): Likewise.
3017 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
3018 (vect_enhance_data_refs_alignment): Likewise.
3019 (vect_prune_runtime_alias_test_list): Likewise.
3020 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
3021 (vect_get_datarefs_in_loop): Likewise.
3022 (vect_analyze_loop): Likewise.
3023 * tree-vect-slp.c (vect_slp_bb): Likewise.
3024 * tree-vectorizer.h: Likewise.
3025 * tree-vrp.c (find_switch_asserts): Likewise.
3026 (vrp_prop::check_mem_ref): Likewise.
3027 * tree.c (wide_int_to_tree_1): Likewise.
3028 (cache_integer_cst): Likewise.
3029 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
3030 (reverse_op): Likewise.
3031 (vt_find_locations): Likewise.
3032
3033 2019-11-12 Martin Liska <mliska@suse.cz>
3034
3035 * Makefile.in: Include params.opt.
3036 * flag-types.h (enum parloops_schedule_type): Add
3037 parloops_schedule_type used in params.opt.
3038 * params.opt: New file.
3039
3040 2019-11-12 Martin Liska <mliska@suse.cz>
3041
3042 * common.opt: Remove --param and --param= options.
3043 * opt-functions.awk: Mark CL_PARAMS for options
3044 that have Param keyword.
3045 * opts-common.c (decode_cmdline_options_to_array):
3046 Replace --param key=value with --param=key=value.
3047 * opts.c (print_filtered_help): Remove special
3048 printing of params.
3049 (print_specific_help): Update title for params.
3050 (common_handle_option): Do not handle OPT__param.
3051 opts.h (SET_OPTION_IF_UNSET): New macro.
3052 * doc/options.texi: Document Param keyword.
3053
3054 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
3055 Frederik Harwath <frederik@codesourcery.com>
3056 Thomas Schwinge <thomas@codesourcery.com>
3057
3058 gcc/
3059 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
3060 enumeration constant.
3061 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3062 (is_gimple_omp_offloaded): Likewise.
3063 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
3064 constant. Adjust the value of ORT_NONE accordingly.
3065 (is_gimple_stmt): Handle OACC_SERIAL.
3066 (oacc_default_clause): Handle ORT_ACC_SERIAL.
3067 (gomp_needs_data_present): Likewise.
3068 (gimplify_adjust_omp_clauses): Likewise.
3069 (gimplify_omp_workshare): Handle OACC_SERIAL.
3070 (gimplify_expr): Likewise.
3071 * omp-expand.c (expand_omp_target):
3072 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3073 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
3074 * omp-low.c (is_oacc_parallel): Rename function to...
3075 (is_oacc_parallel_or_serial): ... this.
3076 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3077 (scan_sharing_clauses): Adjust accordingly.
3078 (scan_omp_for): Likewise.
3079 (lower_oacc_head_mark): Likewise.
3080 (convert_from_firstprivate_int): Likewise.
3081 (lower_omp_target): Likewise.
3082 (check_omp_nesting_restrictions): Handle
3083 GF_OMP_TARGET_KIND_OACC_SERIAL.
3084 (lower_oacc_reductions): Likewise.
3085 (lower_omp_target): Likewise.
3086 * tree.def (OACC_SERIAL): New tree code.
3087 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
3088
3089 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
3090
3091 2019-11-12 Jakub Jelinek <jakub@redhat.com>
3092
3093 PR target/92449
3094 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
3095 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
3096
3097 PR tree-optimization/92452
3098 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
3099 into NULL_TREE, set up_bound to NULL_TREE instead of computing
3100 MINUS_EXPR on it.
3101
3102 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
3103
3104 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
3105 safelen with 0.
3106
3107 2019-11-12 Alan Modra <amodra@gmail.com>
3108
3109 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
3110 element of unspec vec.
3111 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
3112 PC-relative TLS.
3113 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
3114 (tls_gd_pcrel, tls_ld_pcrel): New insns.
3115 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
3116 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
3117
3118 2019-11-12 Alan Modra <amodra@gmail.com>
3119
3120 * config/rs6000/rs6000.opt (mtls-markers): Delete.
3121 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
3122 (IS_NOMARK_TLSGETADDR): Likewise.
3123 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
3124 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
3125 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
3126 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
3127 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
3128 (rs6000_indirect_call_template_1): Likewise.
3129 (rs6000_pltseq_template): Likewise.
3130 (rs6000_opt_vars): Remove "tls-markers" entry.
3131 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
3132 with TARGET_ELF.
3133 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
3134 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
3135 (pltseq_plt_pcrel<mode>): Likewise.
3136 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
3137 (call_value_local64): Likewise.
3138 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
3139 output and length attribute sub-expression.
3140 (call_value_nonlocal_sysv<mode>),
3141 (call_value_nonlocal_sysv_secure<mode>),
3142 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
3143 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
3144 (call_value_indirect_pcrel<mode>): Likewise.
3145 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
3146 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
3147 * configure: Regenerate.
3148 * config.in: Regenerate.
3149
3150 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
3151
3152 * config/rs6000/predicates.md (prefixed_memory): New predicate.
3153 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
3154 address being a prefixed load/store.
3155 (stack_protect_testdi): Deal with either address being a prefixed
3156 load.
3157
3158 2019-11-11 Jakub Jelinek <jakub@redhat.com>
3159
3160 PR bootstrap/92433
3161 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
3162 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
3163 std::swap.
3164
3165 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
3166
3167 PR tree-optimization/92420
3168 * tree-vect-stmts.c (get_negative_load_store_type): Move further
3169 up file.
3170 (get_group_load_store_type): Use it for reversed SLP accesses.
3171
3172 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
3173
3174 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
3175 summary.
3176 (ipcp_transformation_t::duplicate): Break out from ...
3177 (ipa_node_params_t::duplicate): ... here; add copying of agg
3178 replacements.
3179 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
3180 (ipcp_transformation_t): Add duplicate.
3181
3182 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
3183
3184 PR fortran/91828
3185 * doc/install.texi: Document that the minimum MPFR version is
3186 3.1.0.
3187
3188 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
3189
3190 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
3191 use new register constraint letters.
3192
3193 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
3194
3195 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
3196 as well, if interesting recover the symbol and re-legitimize the
3197 pic address.
3198
3199 2019-11-11 Martin Liska <mliska@suse.cz>
3200
3201 * dbgcnt.def (DEBUG_COUNTER): Sort counters
3202 alphabetically.
3203
3204 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
3205
3206 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
3207 account when checking if there are enough iterations to vectorize
3208 epilogue.
3209
3210 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
3211 Kwok Cheung Yeung <kcy@codesourcery.com>
3212
3213 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
3214 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
3215 (LANG_HOOKS_DECLS): Rename also here.
3216 * langhooks.h (lang_hooks_for_decls): Rename
3217 omp_is_optional_argument to omp_check_optional_argument; take
3218 additional bool argument.
3219 * omp-general.h (omp_check_optional_argument): Likewise.
3220 * omp-general.h (omp_check_optional_argument): Likewise.
3221 * omp-low.c (lower_omp_target): Update calls; handle absent
3222 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
3223
3224 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
3225
3226 PR target/87833
3227 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
3228 -fPIC and -shared the last to create offload image.
3229
3230 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
3231
3232 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
3233 of 'offset'.
3234
3235 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
3236 (config.status): Use/depend on it.
3237 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
3238 * configure: Regenerate.
3239
3240 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
3241
3242 PR tree-optimization/88760
3243 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
3244 * gcc/common/config/rs6000/rs6000-common.c
3245 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
3246 Turn on -funroll-loops and -munroll-only-small-loops.
3247 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
3248 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
3249 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
3250 Turn off -munroll-only-small-loops for explicit -funroll-loops.
3251 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
3252 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
3253
3254 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
3255
3256 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
3257 Make scalar_load, vector_load, unaligned_load and
3258 vector_gather_load cost more to conform hardware latency and
3259 insn cost settings.
3260
3261 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
3262
3263 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
3264 (MACHO_SYMBOL_LINKER_VIS_P): New.
3265
3266 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
3267
3268 * lra-spills.c (assign_spill_hard_regs): Do not spill into
3269 registers in eliminable_regset.
3270
3271 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3272
3273 * ipa-inline.c (compute_uninlined_call_time,
3274 compute_inlined_call_time): Take edge frequency as
3275 parameter rather than computing it by itself.
3276 (big_speedup_p, edge_badness): Manually CSE sreal
3277 frequency calculations.
3278
3279 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3280
3281 * profile-count.c (profile_count::to_sreal_scale): Short circuit
3282 case where profiles are same.
3283
3284 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3285
3286 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
3287
3288 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3289
3290 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
3291 args summaries of inlined edge unless it holds info about
3292 described reference.
3293
3294 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
3295
3296 * config/rs6000/rs6000.md (CC_any): New mode iterator.
3297 (*movcc_internal1): Rename to...
3298 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
3299
3300 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3301
3302 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
3303 (cgraph_node::create_virtual_clone): Copy it.
3304 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
3305 summaries.
3306 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
3307 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
3308 is disabled.
3309 (propagate_constants_across_call): If callee is not analyzed, give up.
3310 (propagate_constants_topo): Lower to bottom latties of all callees of
3311 functions with ipa-cp disabled.
3312 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
3313 (cgraph_edge_brings_value_p): Check for availability first.
3314 (create_specialized_node): Set ipcp_clone.
3315 (ipcp_store_bits_results): Check that info is present.
3316 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
3317 thunks.
3318 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
3319 conservative when callee summary is missing.
3320 (remap_edge_summaries): Lookup call summary only when needed.
3321 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
3322 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
3323 Use get_create.
3324 (ipa_analyze_node): Use get_create.
3325 (propagate_controlled_uses): Do not propagate when function is not
3326 analyzed.
3327 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
3328 (ipa_read_node_info): Use get_create.
3329 * ipa-prop.h (IPA_NODE_REF): Use get.
3330 (IPA_NODE_REF_GET_CREATE): New.
3331
3332 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3333
3334 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
3335 on function symbol.
3336
3337 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3338
3339 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
3340 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
3341 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
3342 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
3343
3344 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3345
3346 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
3347 capping the growth cumulated.
3348 (offline_size): Break out from ...
3349 (estimate_growth): ... here.
3350 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
3351 parameters.
3352 (growth_likely_positive): Turn to ...
3353 (growth_positive_p): Re-implement.
3354 * ipa-inline.h (growth_likely_positive): Remove.
3355 (growth_positive_p): Declare.
3356 * ipa-inline.c (want_inline_small_function_p): Use
3357 growth_positive_p.
3358 (want_inline_function_to_all_callers_p): Likewise.
3359
3360 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3361
3362 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
3363 calculation of min_size.
3364 (ipa_update_overall_fn_summary): Likewise.
3365
3366 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3367
3368 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
3369 estimate_edge_devirt_benefit when not computing hints;
3370 do not compute time when not asked for.
3371 (estimate_calls_size_and_time): Pass NULL hints and time when
3372 these are not computed; do not evaluate hint predicates when these are
3373 not computed.
3374 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
3375 frequency.
3376
3377 2019-11-09 Jakub Jelinek <jakub@redhat.com>
3378
3379 PR tree-optimization/92401
3380 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
3381 if res_op->code is an expression with code length 1.
3382 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
3383 if res_op->code is an expression with code length 2.
3384 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
3385 if res_op->code is an expression with code length 3.
3386
3387 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
3388
3389 * config/darwin.c (machopic_mcount_stub_name): Validate the
3390 symbol stub name when it is created.
3391 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
3392 stub validation.
3393
3394 2019-11-09 Jakub Jelinek <jakub@redhat.com>
3395
3396 * symtab.c: Fix comment typos.
3397 * cgraphunit.c: Likewise.
3398 * cgraph.h: Likewise.
3399 * cgraphclones.c: Likewise.
3400 * cgraph.c: Likewise.
3401 * varpool.c: Likewise.
3402 * tree-ssa-strlen.c: Likewise.
3403 * ipa-sra.c: Likewise.
3404 (scan_expr_access, check_all_callers_for_issues): Fix typo
3405 in a dump message.
3406
3407 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
3408
3409 * config/darwin-protos.h: Add include quard.
3410
3411 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
3412
3413 * range-op.h (range_operator::fold_range): Return result in a
3414 reference parameter instead of by value.
3415 (range_operator::wi_fold): Same.
3416 * range-op.cc (range_operator::wi_fold): Return result in a reference
3417 parameter instead of by value.
3418 (range_operator::fold_range): Same.
3419 (value_range_from_overflowed_bounds): Same.
3420 (value_range_with_overflow): Same
3421 (create_possibly_reversed_range): Same.
3422 (operator_equal::fold_range): Same.
3423 (operator_not_equal::fold_range): Same.
3424 (operator_lt::fold_range): Same.
3425 (operator_le::fold_range): Same.
3426 (operator_gt::fold_range): Same.
3427 (operator_ge::fold_range): Same.
3428 (operator_plus::wi_fold): Same.
3429 (operator_plus::op1_range): Change call to fold_range.
3430 (operator_plus::op2_range): Change call to fold_range.
3431 (operator_minus::wi_fold): Return result via reference parameter.
3432 (operator_minus::op1_range): Change call to fold_range.
3433 (operator_minus::op2_range): Change call to fold_range.
3434 (operator_min::wi_fold): Return result via reference parameter.
3435 (operator_max::wi_fold): Same.
3436 (cross_product_operator::wi_cross_product): Same.
3437 (operator_mult::wi_fold): Same.
3438 (operator_div::wi_fold): Same.
3439 (operator_div op_floor_div): Fix whitespace.
3440 (operator_exact_divide::op1_range): Change call to fold_range.
3441 (operator_lshift::fold_range): Return result via reference parameter.
3442 (operator_lshift::wi_fold): Same.
3443 (operator_rshift::fold_range): Same.
3444 (operator_rshift::wi_fold): Same.
3445 (operator_cast::fold_range): Same.
3446 (operator_cast::op1_range): Change calls to fold_range.
3447 (operator_logical_and::fold_range): Return result via reference.
3448 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
3449 (operator_bitwise_and::wi_fold): Return result via reference.
3450 (operator_logical_or::fold_range): Same.
3451 (operator_bitwise_or::wi_fold): Same.
3452 (operator_bitwise_xor::wi_fold): Same.
3453 (operator_trunc_mod::wi_fold): Same.
3454 (operator_logical_not::fold_range): Same.
3455 (operator_bitwise_not::fold_range): Same.
3456 (operator_bitwise_not::op1_range): Change call to fold_range.
3457 (operator_cst::fold_range): Return result via reference.
3458 (operator_identity::fold_range): Same.
3459 (operator_abs::wi_fold): Same.
3460 (operator_absu::wi_fold): Same.
3461 (operator_negate::fold_range): Same.
3462 (operator_negate::op1_range): Change call to fold_range.
3463 (operator_addr_expr::fold_range): Return result via reference.
3464 (operator_addr_expr::op1_range): Change call to fold_range.
3465 (operator_pointer_plus::wi_fold): Return result via reference.
3466 (operator_pointer_min_max::wi_fold): Same.
3467 (operator_pointer_and::wi_fold): Same.
3468 (operator_pointer_or::wi_fold): Same.
3469 (range_op_handler): Change call to fold_range.
3470 (range_cast): Same.
3471 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
3472 fold_range.
3473 (range_fold_unary_symbolics_p): Same.
3474 (range_fold_binary_expr): Same.
3475 (range_fold_unary_expr): Same.
3476
3477 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3478
3479 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
3480 vector type as an argument rather than reading it from the
3481 stmt_vec_info.
3482 (vect_create_epilog_for_reduction): Update accordingly.
3483 (vectorizable_reduction): Likewise.
3484 (vect_transform_cycle_phi): Likewise.
3485
3486 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
3487
3488 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
3489 the comparison codes that make sense for the mode used, and only the
3490 codes that can be done with a single branch instruction.
3491
3492 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
3493
3494 PR tree-optimization/92351
3495 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
3496 peeling the main loop for alignment, make sure to set the misalignment
3497 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
3498
3499 2019-11-08 Richard Biener <rguenther@suse.de>
3500
3501 * dbgcnt.def (ivopts_loop): Add.
3502 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
3503 ivopts_loop before optimizing a loop.
3504
3505 2019-11-08 Richard Biener <rguenther@suse.de>
3506
3507 PR ipa/92409
3508 * tree-inline.c (declare_return_variable): Properly handle
3509 type mismatches for the return slot.
3510
3511 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
3512
3513 PR target/92095
3514 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
3515 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
3516 change.
3517 (got_helper_needed): New static variable.
3518 (output_load_pcrel_sym): New function.
3519 (get_pc_thunk_name): Remove after inlining...
3520 (load_got_register): ...here. Rework the initialization of the GOT
3521 register and of the GOT helper.
3522 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
3523 (sparc_file_end): Test got_helper_needed to decide whether the GOT
3524 helper must be emitted. Use output_asm_insn instead of fprintf.
3525 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
3526 if optimization is enabled.
3527 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
3528 by calling output_load_pcrel_sym.
3529
3530 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3531
3532 * tree-sra.c (create_access): Delay disqualifying the base
3533 for poly_int values until we know we have a base.
3534
3535 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
3536
3537 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
3538 for loops with SIMDUID set. Enable epilogue vectorization for loops
3539 with SIMDLEN set after finding a main loop with a VF that matches it.
3540
3541 2019-11-08 Jakub Jelinek <jakub@redhat.com>
3542
3543 PR target/92038
3544 * gimple-ssa-store-merging.c (find_constituent_stores): For return
3545 value only, return non-NULL if there is a single non-clobber
3546 constituent store even if there are constituent clobbers and return
3547 one of clobber constituent stores if all constituent stores are
3548 clobbers.
3549 (split_group): Handle clobbers.
3550 (imm_store_chain_info::output_merged_store): When computing
3551 bzero_first, look after all clobbers at the start. Don't count
3552 clobber stmts in orig_num_stmts, except if the first orig store is
3553 a clobber covering the whole area and split_stores cover the whole
3554 area, consider equal number of stmts ok. Punt if split_stores
3555 contains only ->orig stores and their number plus number of original
3556 clobbers is equal to original number of stmts. For ->orig, look past
3557 clobbers in the constituent stores.
3558 (imm_store_chain_info::output_merged_stores): Don't remove clobber
3559 stmts.
3560 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
3561 rhs.
3562 (store_valid_for_store_merging_p): Allow clobber stmts.
3563 (verify_clear_bit_region_be): Fix up a thinko in function comment.
3564
3565 PR c++/92384
3566 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
3567 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
3568 slot.
3569 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
3570 force creation of a unique data.stack_parm slot.
3571
3572 2019-11-08 Richard Biener <rguenther@suse.de>
3573
3574 * genmatch.c (expr::gen_transform): Use the resimplify
3575 member function instead of hard-coding the gimple_resimplifyN variant.
3576 (dt_simplify::gen_1): Likewise.
3577
3578 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3579
3580 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
3581 POLY_INT_CST.
3582
3583 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3584
3585 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
3586 instead of INTEGER_CST.
3587
3588 2019-11-08 Richard Biener <rguenther@suse.de>
3589
3590 PR tree-optimization/92324
3591 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
3592 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
3593 sign-conversions as necessary.
3594 (vectorizable_reduction): Reject conversions in the chain
3595 that are not sign-conversions, base analysis on a non-converting
3596 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
3597 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
3598 for debug stmts.
3599 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
3600 (STMT_VINFO_REDUC_VECTYPE): Likewise.
3601
3602 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
3603
3604 PR target/92055
3605 * config/avr/avr.opt (-mdouble=, -mlong-double=):
3606 Fix a missing '-' when displaying these options in the
3607 help screen.
3608
3609 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3610
3611 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
3612
3613 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3614
3615 * config/aarch64/aarch64-builtins.c
3616 (aarch64_builtin_vectorized_function): Remove bswap handling.
3617
3618 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3619
3620 * tree-core.h (tree_type_common::indivisible_p): New member variable.
3621 * tree.h (TYPE_INDIVISIBLE_P): New macro.
3622 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3623 Treat the vector types as indivisible.
3624
3625 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3626
3627 * optabs.def (gather_load_optab, mask_gather_load_optab)
3628 (scatter_store_optab, mask_scatter_store_optab): Turn into
3629 conversion optabs, with the offset mode given explicitly.
3630 * doc/md.texi: Update accordingly.
3631 * config/aarch64/aarch64-sve-builtins-base.cc
3632 (svld1_gather_impl::expand): Likewise.
3633 (svst1_scatter_impl::expand): Likewise.
3634 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
3635 (expand_scatter_store_optab_fn): Likewise.
3636 (direct_gather_load_optab_supported_p): Likewise.
3637 (direct_scatter_store_optab_supported_p): Likewise.
3638 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
3639 to be argument 4.
3640 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
3641 (internal_gather_scatter_fn_supported_p): Replace the offset sign
3642 argument with the offset vector type. Require the two vector
3643 types to have the same number of elements but allow their element
3644 sizes to be different. Treat the optabs as conversion optabs.
3645 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
3646 prototype accordingly.
3647 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
3648 (supports_vec_convert_optab_p): ...this new function.
3649 (supports_vec_gather_load_p): Update accordingly.
3650 (supports_vec_scatter_store_p): Likewise.
3651 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
3652 Replace the offset sign and bits parameters with a scalar type tree.
3653 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
3654 Pass back the offset vector type instead of the scalar element type.
3655 Allow the offset to be wider than the memory elements. Search for
3656 an offset type that the target supports, stopping once we've
3657 reached the maximum of the element size and pointer size.
3658 Update call to internal_gather_scatter_fn_supported_p.
3659 (vect_check_gather_scatter): Update calls accordingly.
3660 When testing a new scale before knowing the final offset type,
3661 check whether the scale is supported for any signed or unsigned
3662 offset type. Check whether the target supports the source and
3663 target types of a conversion before deciding whether to look
3664 through the conversion. Record the chosen offset_vectype.
3665 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
3666 (vect_recog_gather_scatter_pattern): Get the scalar offset type
3667 directly from the gs_info's offset_vectype instead. Pass a zero
3668 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
3669 * tree-vect-stmts.c (check_load_store_masking): Update call to
3670 internal_gather_scatter_fn_supported_p, passing the offset vector
3671 type recorded in the gs_info.
3672 (vect_truncate_gather_scatter_offset): Update call to
3673 vect_check_gather_scatter, leaving it to search for a valid
3674 offset vector type.
3675 (vect_use_strided_gather_scatters_p): Convert the offset to the
3676 element type of the gs_info's offset_vectype.
3677 (vect_get_gather_scatter_ops): Get the offset vector type directly
3678 from the gs_info.
3679 (vect_get_strided_load_store_ops): Likewise.
3680 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
3681 and IFN_MASK_GATHER_LOAD.
3682 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
3683 (gather_load<mode><v_int_equiv>): ...this.
3684 (mask_gather_load<mode>): Rename to...
3685 (mask_gather_load<mode><v_int_equiv>): ...this.
3686 (scatter_store<mode>): Rename to...
3687 (scatter_store<mode><v_int_equiv>): ...this.
3688 (mask_scatter_store<mode>): Rename to...
3689 (mask_scatter_store<mode><v_int_equiv>): ...this.
3690
3691 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
3692
3693 PR target/92132
3694 * config/rs6000/predicates.md
3695 (signed_or_equality_comparison_operator): New predicate.
3696 (unsigned_or_equality_comparison_operator): Likewise.
3697 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
3698 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
3699 * config/rs6000/vector.md
3700 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
3701 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
3702 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
3703 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
3704 vector modes and same-size integer vector modes.
3705 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
3706 (vector_lt<mode> for VEC_F): New expand.
3707 (vector_le<mode> for VEC_F): Likewise.
3708 (vector_ne<mode> for VEC_F): Likewise.
3709 (vector_unge<mode> for VEC_F): Likewise.
3710 (vector_ungt<mode> for VEC_F): Likewise.
3711 (vector_unle<mode> for VEC_F): Likewise.
3712 (vector_unlt<mode> for VEC_F): Likewise.
3713 (vector_uneq<mode>): Expose name.
3714 (vector_ltgt<mode>): Likewise.
3715 (vector_unordered<mode>): Likewise.
3716 (vector_ordered<mode>): Likewise.
3717
3718 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
3719
3720 PR target/92295
3721 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
3722 Enhance ix86_expand_vector_init_concat.
3723
3724 2019-11-08 Joseph Myers <joseph@codesourcery.com>
3725
3726 * doc/invoke.texi (-Wold-style-definition): Document () not being
3727 considered an old-style definition for C2x.
3728
3729 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
3730
3731 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
3732 Enhance comment.
3733 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
3734 insn patterns using ldcw instruction.
3735 (memory_barrier): Remove insn pattern using sync instruction.
3736 * config/pa/pa.opt (coherent-ldcw): New option.
3737 (ordered): New option.
3738
3739 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3740
3741 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
3742 valid conditions.
3743
3744 2019-11-07 Jakub Jelinek <jakub@redhat.com>
3745
3746 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
3747 typo - mistmatch -> mismatch.
3748 * ipa-profile.c (ipa_profile): Likewise.
3749 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
3750 - mistmatch -> mismatch.
3751
3752 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3753
3754 * simplify-rtx.c (comparison_to_mask): New function.
3755 (mask_to_comparison): New function.
3756 (simplify_logical_relational_operation): New function.
3757 (simplify_binary_operation_1): Call
3758 simplify_logical_relational_operation.
3759
3760 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
3761
3762 PR other/92090
3763 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
3764 modes for integer constants.
3765
3766 2019-11-07 Jan Hubicka <jh@suse.cz>
3767
3768 PR ipa/92406
3769 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
3770 summary.
3771
3772 2019-11-07 Jan Hubicka <jh@suse.cz>
3773
3774 * optc-save-gen.awk: Generate cl_target_option_free
3775 and cl_optimization_option_free.
3776 * opth-en.awk: Declare cl_target_option_free
3777 and cl_optimization_option_free.
3778 * tree.c (free_node): Use it.
3779
3780 2019-11-06 Jan Hubicka <jh@suse.cz>
3781
3782 * lto-streamer-in.c: Include alloc-pool.h.
3783 (freeing_string_slot_hasher): Remove.
3784 (string_slot_allocator): New object allocator.
3785 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
3786 (file_name_obstack): New obstack.
3787 (canon_file_name): Allocate in obstack and allocator.
3788 (lto_reader_init): Initialize obstack and allocator.
3789 (lto_free_file_name_hash): New function.
3790 * lto-streamer.h (lto_free_file_name_hash): New.
3791
3792 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
3793
3794 PR tree-optimization/89134
3795 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
3796 * params.def: Add min-loop-cond-split-prob.
3797 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
3798 outside checks on loop into the function.
3799 (split_info): New class.
3800 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
3801 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
3802 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
3803 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
3804 (stmt_semi_invariant_p, branch_removable_p): Likewise.
3805 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
3806 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
3807 (split_loop_on_cond): Likewise.
3808 (tree_ssa_split_loops): Add loop split on conditional statement.
3809
3810 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
3811
3812 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
3813 pattern.
3814
3815 2019-11-07 Richard Biener <rguenther@suse.de>
3816
3817 PR tree-optimization/92405
3818 * tree-vect-loop.c (vectorizable_reduction): Appropriately
3819 restrict lane-reducing ops to single stmt chains.
3820
3821 2019-11-07 Martin Jambor <mjambor@suse.cz>
3822
3823 PR lto/70929
3824 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
3825 * cgraph.h (gimple_check_call_matching_types): Remove
3826 * cgraph.c (gimple_check_call_args): Likewise.
3827 (gimple_check_call_matching_types): Likewise.
3828 (symbol_table::create_edge): Do not call
3829 gimple_check_call_matching_types.
3830 (cgraph_edge::make_direct): Likewise.
3831 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
3832 * value-prof.h (check_ic_target): Remove.
3833 * value-prof.c (check_ic_target): Remove.
3834 (gimple_ic_transform): Do nat call check_ic_target.
3835 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
3836 (afdo_indirect_call): Likewise.
3837 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
3838 gimple_check_call_matching_types.
3839 * ipa-inline.c (early_inliner): Likewise.
3840
3841 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3842
3843 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
3844 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
3845 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
3846 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3847 * config/arm/iterators.md (USSAT16): New int_iterator.
3848 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
3849 (sup): Likewise.
3850 * config/arm/predicates.md (ssat16_imm): New predicate.
3851 (usat16_imm): Likewise.
3852 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
3853
3854 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3855
3856 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
3857 New define_insns.
3858 (arm_<simd32_op>): New define_expands.
3859 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
3860 __smuad, __smuadx): Define.
3861 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3862 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
3863 (SIMD32_BINOP_Q): Likewise.
3864 (simd32_op): Handle the above.
3865 * config/arm/unspecs.md: Define unspecs for the above.
3866
3867 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3868
3869 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
3870 * config/arm/arm.md (APSRGE_REGNUM): Define.
3871 (arm_<simd32_op>): New define_insn.
3872 (arm_sel): Likewise.
3873 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
3874 (CALL_USED_REGISTERS): Likewise.
3875 (REG_ALLOC_ORDER): Likewise.
3876 (FIRST_PSEUDO_REGISTER): Update value.
3877 (ARM_GE_BITS_READ): Define.
3878 * config/arm/arm.c (arm_conditional_register_usage): Clear
3879 APSRGE_REGNUM from operand_reg_set.
3880 (arm_ge_bits_access): Define.
3881 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
3882 ARM_BUIILTIN_sel.
3883 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
3884 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
3885 FAIL if ARM_GE_BITS_READ.
3886 (*arm_add<mode>3): New define_insn.
3887 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
3888 (*arm_sub<mode>3): New define_insn.
3889 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
3890 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
3891 __usub16): Define.
3892 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3893 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
3894 (simd32_op): Handle the above.
3895 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
3896 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
3897 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
3898 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
3899
3900 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3901
3902 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
3903 (arm_smlabb): New define_expand.
3904 (*maddhisi4tb): Rename to...
3905 (maddhisi4tb): ... This.
3906 (*maddhisi4tt): Rename to...
3907 (maddhisi4tt): ... This.
3908 (arm_smlatb_setq): New define_insn.
3909 (arm_smlatb): New define_expand.
3910 (arm_smlatt_setq): New define_insn.
3911 (arm_smlatt): New define_expand.
3912 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
3913 (arm_<smlaw_op>): New define_expand.
3914 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
3915 __smlawb, __smlawt): Define.
3916 * config/arm_acle_builtins.def: Define builtins for the above.
3917 * config/arm/iterators.md (SMLAWBT): New int_iterator.
3918 (slaw_op): New int_attribute.
3919 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
3920
3921 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3922
3923 * config/arm/arm.md (arm_<ss_op>): New define_expand.
3924 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
3925 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
3926 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
3927 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
3928 (ss_op): New code_attr.
3929
3930 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3931
3932 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
3933 * config/arm/arm.md (APSRQ_REGNUM): Define.
3934 (add_setq): New define_subst.
3935 (add_clobber_q_name): New define_subst_attr.
3936 (add_clobber_q_pred): Likewise.
3937 (maddhisi4): Change to define_expand. Split into mult and add if
3938 ARM_Q_BIT_READ.
3939 (arm_maddhisi4): New define_insn.
3940 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
3941 (*maddhisi4tt): Likewise.
3942 (arm_ssat): New define_expand.
3943 (arm_usat): Likewise.
3944 (arm_get_apsr): New define_insn.
3945 (arm_set_apsr): Likewise.
3946 (arm_saturation_occurred): New define_expand.
3947 (arm_set_saturation): Likewise.
3948 (*satsi_<SAT:code>): Rename to...
3949 (satsi_<SAT:code><add_clobber_q_name>): ... This.
3950 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
3951 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
3952 (CALL_USED_REGISTERS): Mark apsrq.
3953 (FIRST_PSEUDO_REGISTER): Update value.
3954 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
3955 (machine_function): Add q_bit_access.
3956 (ARM_Q_BIT_READ): Define.
3957 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
3958 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
3959 operand_reg_set.
3960 (arm_q_bit_access): Define.
3961 * config/arm/arm-builtins.c: Include stringpool.h.
3962 (arm_sat_binop_imm_qualifiers,
3963 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
3964 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
3965 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
3966 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
3967 SET_SAT_QUALIFIERS): Likewise.
3968 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
3969 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
3970 Handle 0 argument expander.
3971 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
3972 (arm_check_builtin_call): Define.
3973 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
3974 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
3975 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
3976 (arm_q_bit_access): Likewise.
3977 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
3978 __saturation_occurred, __set_saturation_occurred): Define.
3979 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
3980 saturation_occurred, set_saturation_occurred.
3981 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
3982 (UNSPEC_APSR_READ): Likewise.
3983 (VUNSPEC_APSR_WRITE): Likewise.
3984 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
3985 (*arm_ssadd<mode>3): New define_insn.
3986 (sssub<mode>3): Convert to define_expand.
3987 (*arm_sssub<mode>3): New define_insn.
3988 (ssmulsa3): Convert to define_expand.
3989 (*arm_ssmulsa3): New define_insn.
3990 (usmulusa3): Convert to define_expand.
3991 (*arm_usmulusa3): New define_insn.
3992 (ssmulha3): FAIL if ARM_Q_BIT_READ.
3993 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
3994 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
3995
3996 2019-11-07 Martin Liska <mliska@suse.cz>
3997
3998 PR c++/92354
3999 * cgraph.c (delete_function_version): Clear global
4000 variable version_info_node if equal to deleted
4001 function.
4002
4003 2019-11-07 Martin Liska <mliska@suse.cz>
4004
4005 * fold-const.c (operand_compare::operand_equal_p): Add comparison
4006 of CONSTRUCTOR_NO_CLEARING.
4007 (operand_compare::hash_operand): Likewise.
4008
4009 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
4010
4011 Support 64-bit double and 64-bit long double configurations.
4012
4013 PR target/92055
4014 * config.gcc (tm_defines) [avr]: Set from --with-double=,
4015 --with-long-double=.
4016 * config/avr/t-multilib: Remove.
4017 * config/avr/t-avr: Output of genmultilib.awk is now fully
4018 dynamically generated and no more part of the repo.
4019 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
4020 Pass them down to...
4021 * config/avr/genmultilib.awk: ...here and handle them.
4022 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
4023 (-mlong-double=, avr_long_double). New option and var.
4024 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
4025 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
4026 Set default as requested by --with-double=
4027 (TARGET_HANDLE_OPTION): Define to this...
4028 (avr_handle_option): ...new hook worker.
4029 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
4030 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
4031 (avr_double_lib): New proto for spec function.
4032 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
4033 (DRIVER_SELF_SPECS): Call %:double-lib.
4034 * config/avr/avr.c (avr_option_override): Assert
4035 sizeof(long double) >= sizeof(double) for the target.
4036 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
4037 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
4038 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
4039 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
4040 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
4041 New built-in define depending on --with-double=, --with-long-double=.
4042 * config/avr/driver-avr.c (avr_double_lib): New spec function.
4043 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
4044 * doc/install.texi (Cross-Compiler-Specific Options)
4045 <--with-double=, --with-long-double=>: Doc.
4046
4047 2019-11-07 Richard Biener <rguenther@suse.de>
4048
4049 * dbgcnt.def (gimple_unroll): New.
4050 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
4051 gimple_unroll debug counter before applying transform.
4052 (try_peel_loop): Likewise.
4053
4054 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
4055
4056 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
4057 frame pointer in multiple registers.
4058 (ira_setup_eliminable_regset): Setup eliminable_regset,
4059 ira_no_alloc_regs and regs_ever_live for frame pointer in
4060 multiple registers.
4061
4062 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
4063
4064 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
4065 V2DI modes.
4066
4067 2019-11-06 Jan Hubicka <jh@suse.cz>
4068
4069 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
4070 allocations.
4071 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
4072 Do not silently ignore summary corruptions.
4073
4074 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4075
4076 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
4077 the epilogue if there are peeled iterations for it to handle.
4078
4079 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4080
4081 * config/arc/arc.c (arc_split_ior): Add asserts.
4082 (arc_split_mov_const): Likewise.
4083 (arc_check_ior_const): Do not match known short immediate values.
4084 * config/arc/arc.md (movsi): Don't split predicated instructions
4085 (iorsi): Likewise.
4086
4087 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4088
4089 * config/arc/arc.opt (mea): Update help string.
4090 * doc/invoke.texi(ARC): Update mea option info.
4091
4092 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4093
4094 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
4095 (zero_extendqisi2_ac): Likewise.
4096 (zero_extendhisi2_i): Likewise.
4097 (extendqihi2_i): Likewise.
4098 (extendqisi2_ac): Likewise.
4099 (extendhisi2_i): Likewise.
4100
4101 2019-11-06 Richard Biener <rguenther@suse.de>
4102
4103 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
4104 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
4105 Simplify single_defuse_cycle condition.
4106
4107 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4108
4109 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
4110 epilogue loop, make sure that the VF is small enough or that
4111 the epilogue loop can be fully-masked.
4112
4113 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4114
4115 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
4116 loop when we've finished, rather than returning directly from
4117 the loop. Use a local variable to track whether we're still
4118 searching for the preferred simdlen. Make vect_epilogues
4119 record whether the next iteration should try to treat the
4120 loop as an epilogue.
4121
4122 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
4123
4124 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
4125 __arc_hard_float__, __ARC_HARD_FLOAT__,
4126 __arc_soft_float__, __ARC_SOFT_FLOAT__
4127
4128 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
4129
4130 PR tree-optimization/92317
4131 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
4132 update phi's with constant phi arguments.
4133
4134 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
4135 Alexandre Oliva <oliva@adacore.com>
4136
4137 * common.opt (-fcallgraph-info[=]): New option.
4138 * doc/invoke.texi (Developer options): Document it.
4139 * opts.c (common_handle_option): Handle it.
4140 * builtins.c (expand_builtin_alloca): Record allocation if
4141 -fcallgraph-info=da.
4142 * calls.c (expand_call): If -fcallgraph-info, record the call.
4143 (emit_library_call_value_1): Likewise.
4144 * flag-types.h (enum callgraph_info_type): New type.
4145 * explow.c: Include stringpool.h.
4146 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
4147 * function.c (allocate_stack_usage_info): New.
4148 (allocate_struct_function): Call it for -fcallgraph-info.
4149 (prepare_function_start): Call it otherwise.
4150 (record_final_call, record_dynamic_alloc): New.
4151 * function.h (struct callinfo_callee): New.
4152 (CALLEE_FROM_CGRAPH_P): New.
4153 (struct callinfo_dalloc): New.
4154 (struct stack_usage): Add callees and dallocs.
4155 (record_final_call, record_dynamic_alloc): Declare.
4156 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
4157 object if -fcallgraph-info=da.
4158 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
4159 * print-tree.h (print_decl_identifier): Declare.
4160 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
4161 * print-tree.c: Include print-tree.h.
4162 (print_decl_identifier): New function.
4163 * toplev.c: Include print-tree.h.
4164 (callgraph_info_file): New global variable.
4165 (callgraph_info_external_printed): Likewise.
4166 (output_stack_usage): Rename to...
4167 (output_stack_usage_1): ... this. Make it static, add cf
4168 parameter. If -fcallgraph-info=su, print stack usage to cf.
4169 If -fstack-usage, use print_decl_identifier for
4170 pretty-printing.
4171 (INDIRECT_CALL_NAME): New.
4172 (dump_final_node_vcg_start): New.
4173 (dump_final_callee_vcg, dump_final_node_vcg): New.
4174 (output_stack_usage): New.
4175 (lang_dependent_init): Open and start file if
4176 -fcallgraph-info. Allocated callgraph_info_external_printed.
4177 (finalize): If callgraph_info_file is not null, finish it,
4178 close it, and release callgraph_info_external_printed.
4179
4180 2019-11-06 Gergö Barany <gergo@codesourcery.com>
4181 Frederik Harwath <frederik@codesourcery.com>
4182 Thomas Schwinge <thomas@codesourcery.com>
4183
4184 * omp-low.c (struct omp_context): New fields
4185 local_reduction_clauses, outer_reduction_clauses.
4186 (new_omp_context): Initialize these.
4187 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
4188 (scan_omp_for): Check reduction clauses for incorrect nesting.
4189
4190 2019-11-06 Jakub Jelinek <jakub@redhat.com>
4191
4192 PR inline-asm/92352
4193 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
4194 operands with non-memory constraints.
4195
4196 2019-11-05 Martin Sebor <msebor@redhat.com>
4197
4198 PR tree-optimization/92373
4199 * tree.c (component_ref_size): Only consider initializers of objects
4200 of matching struct types.
4201 Return null for instances of interior zero-length arrays.
4202
4203 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
4204
4205 * doc/md.texi (Insn Splitting): Fix combiner documentation.
4206
4207 2019-11-05 Jason Merrill <jason@redhat.com>
4208
4209 PR tree-optimization/91825
4210 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
4211
4212 2019-11-05 Jim Wilson <jimw@sifive.com>
4213
4214 PR middle-end/92263
4215 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
4216 optimize_insn_for_speed_p is true.
4217
4218 2019-11-05 Martin Sebor <msebor@redhat.com>
4219
4220 PR middle-end/92333
4221 PR middle-end/82608
4222 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
4223 size.
4224 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
4225 name and location for a temporary variable.
4226
4227 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4228
4229 * tree-vrp.c (value_range::value_range): Fix whitespace.
4230 (defined_ranges_p): Same.
4231 (range_fold_binary_symbolics_p): Same.
4232 (value_range::intersect_helper): Same.
4233 (value_range::union_helper): Same.
4234 * tree-vrp.h (range_fold_binary_expr): Same.
4235
4236 2019-11-04 Martin Sebor <msebor@redhat.com>
4237
4238 PR middle-end/92341
4239 PR middle-end/82612
4240 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
4241 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
4242 of message printed in a warning for empty arrays.
4243 (vrp_prop::check_mem_ref): Also handle function parameters and
4244 empty arrays.
4245
4246 2019-11-05 Richard Biener <rguenther@suse.de>
4247
4248 PR tree-optimization/92371
4249 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
4250 on the original stmt of live stmts in the chain.
4251 (vectorizable_live_operation): Look at the original stmt when
4252 checking STMT_VINFO_REDUC_DEF.
4253
4254 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4255
4256 * gimple-fold.c, gimple-loop-versioning.cc,
4257 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
4258 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
4259 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
4260 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
4261 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
4262 value_range_equiv, and value_range_base to value_range.
4263
4264 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
4265
4266 * expr.c (build_personality_function): Fix generated type to
4267 match actual personality functions.
4268
4269 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
4270
4271 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
4272 enough bytes for the NULL character.
4273
4274 2019-11-05 Richard Biener <rguenther@suse.de>
4275
4276 PR tree-optimization/92280
4277 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
4278 had a single use do not create a new CTOR.
4279 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
4280 BIT_FIELD_REF of a CTOR via GENERIC.
4281
4282 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
4283
4284 * config/s390/s390.c (s390_vector_alignment): Check if the value
4285 fits into uhwi before using it.
4286
4287 2019-11-05 Martin Liska <mliska@suse.cz>
4288
4289 * symbol-summary.h: Use ggc_delete.
4290
4291 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4292
4293 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
4294 Change vec_perm field to 10.
4295
4296 2019-11-05 Arnaud Charlet <charlet@adacore.com>
4297
4298 * doc/install.texi: Further fix syntax for html generation.
4299
4300 2019-11-05 Martin Liska <mliska@suse.cz>
4301
4302 * symbol-summary.h: Rename allocator to m_allocator and
4303 add comment.
4304
4305 2019-11-05 Richard Biener <rguenther@suse.de>
4306
4307 PR tree-optimization/92324
4308 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
4309 all signed or unsigned operations.
4310
4311 2019-11-05 Jan Hubicka <jh@suse.cz>
4312
4313 * hsa-brig.c: Include alloc-pool.h
4314 * hsa-dump.c: Likewise.
4315 * hsa-gen.c: Likewise.
4316 * hse-regalloc.c: Likewise.
4317 * ipa-hsa.c: Likewise.
4318 * ipa-predicate.c: Likewise.
4319 * ipa-reference.c: Likewise.
4320 * ipa-sra.c: Likewise.
4321 * omp-expand.c: Likewise.
4322 * omp-general.c: Likewise.
4323 * omp-low.c: Likewise.
4324 * sumbol-summary.h (function_summary_base): Add allocator.
4325 (function_summary<T *>::function_summary): Update construction.
4326 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
4327 (call_summary_base): Add allcator.
4328 (call_summary<T *>::call_summary): Update construction.
4329 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
4330
4331 2019-11-05 Jakub Jelinek <jakub@redhat.com>
4332
4333 PR tree-optimization/91945
4334 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
4335 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
4336 Formatting fix.
4337
4338 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4339
4340 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
4341 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
4342 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
4343 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
4344 (vrp_set_zero_nonzero_bits): Move to...
4345 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
4346 (vr_values::simplify_bit_ops_using_ranges): Rename
4347 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
4348
4349 2019-11-05 Martin Liska <mliska@suse.cz>
4350
4351 PR c++/92339
4352 * fold-const.c (operand_compare::hash_operand): Remove
4353 FIELD_DECL handling.
4354
4355 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4356
4357 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
4358 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
4359 static.
4360
4361 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4362
4363 * tree-vrp.c (value_range_base::operator==): Use equal_p to
4364 properly handle symbolics.
4365 (range_compatible_p): Remove.
4366
4367 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
4368
4369 * common.opt (-fabi-version): Document =14.
4370 * doc/invoke.texi (C++ Dialect Options): Likewise.
4371
4372 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4373
4374 * tree-vrp.c (value_range_base::set): Do not special case pointers.
4375
4376 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
4377
4378 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
4379 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
4380 gcn_omp_device_kind_arch_isa.
4381 * config/gcn/t-omp-device: New file.
4382 * configure.ac: Support gcn for omp_device_property.
4383 * configure: Regenerate.
4384
4385 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4386
4387 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
4388 (vrp_val_max): Same.
4389 (vrp_val_is_min): Same.
4390 (vrp_val_is_max): Same.
4391 (value_range_base::nonzero_p): Remove last argument to
4392 vrp_val_is_max.
4393 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
4394 (vrp_val_max): Same.
4395 (vrp_val_is_min): Same.
4396 (vrp_val_is_max): Same.
4397 (value_range_base::set_varying): Remove last argument to vrp_val*.
4398 (value_range_base::dump): Same.
4399 (value_range_base::set): Same.
4400 (value_range_base::normalize_symbolics): Same.
4401 (value_range_base::num_pairs): Same.
4402 (value_range_base::lower_bound): Same.
4403 (value_range_base::upper_bound): Same.
4404 (ranges_from_anti_range): Remove handle_pointers argument.
4405 (value_range_base::singleton_p): Remove last argument to
4406 ranges_from_anti_range.
4407
4408 2019-11-04 Jan Hubicka <jh@suse.cz>
4409
4410 * ipa-reference.c (init_function_info): Initialize
4411 info->global.statics_read.
4412
4413 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4414
4415 * tree-vrp.c (value_range_base::invert): Use constructors to build
4416 range.
4417
4418 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4419
4420 * tree-vrp.c (range_int_cst_singleton_p): Remove.
4421 * tree-vrp.h (range_int_cst_singleton_p): Remove.
4422
4423 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4424
4425 * tree-vrp.c (value_range_base::normalize_addresses): Handle
4426 VR_UNDEFINED.
4427
4428 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4429
4430 * tree-vrp.c (dump_assert_info): New.
4431 (dump_asserts_info): New.
4432
4433 2019-11-04 Jan Hubicka <jh@suse.cz>
4434
4435 * ipa-inline-transform.c: Include ipa-utils.h
4436 (inline_call): Set thunk_expansion flag.
4437 * ipa-utils.h (thunk_expansion): Declare.
4438 * ipa-devirt.c (thunk_expansion): New global var.
4439 (devirt_node_removal_hook): Do not invalidate cache while
4440 doing thunk expansion.
4441
4442 2019-11-04 Tamar Christina <tamar.christina@arm.com>
4443
4444 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
4445
4446 2019-11-04 Martin Sebor <msebor@redhat.com>
4447
4448 PR tree-optimization/92349
4449 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
4450 memebers have constant sizes.
4451
4452 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
4453
4454 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
4455 parameter.
4456 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
4457 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
4458 vect_analyze_loop.
4459
4460 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
4461
4462 * expr.c (store_constructor): Modify to handle single element vectors.
4463 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
4464 constructors.
4465 (vect_slp_check_for_constructors): New function.
4466 (vect_slp_analyze_bb_1): Call new function to check for vector
4467 constructors.
4468 (vectorize_slp_instance_root_stmt): New function.
4469 (vect_schedule_slp): Call new function to vectorize root stmt of vector
4470 constructors.
4471 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
4472
4473 2019-11-04 Richard Biener <rguenther@suse.de>
4474
4475 PR tree-optimization/92345
4476 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
4477 we produced a reduction chain.
4478 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
4479 LOOP_VINFO_REDUCTIONS.
4480
4481 2019-11-04 Jan Hubicka <jh@suse.cz>
4482
4483 * cgraphclones.c (cgraph_node::create_version_clone): Do not
4484 duplicate summaries.
4485 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
4486 first.
4487 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
4488 access call summaries.
4489 (dump_ipa_call_summary): Be ready for missing edge summaries.
4490 (analyze_function_body): Use get instead of get_create to access
4491 edge summary.
4492 (estimate_calls_size_and_time): Do not access summaries of
4493 inlined edges; sanity check they are missing.
4494 (ipa_call_context::estimate_size_and_time): Use get instead
4495 of get_create to access node summary.
4496 (inline_update_callee_summaries): Do not update depth of
4497 inlined edge.
4498 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
4499 growth caches.
4500 (ipa_merge_fn_summary_after_inlining): Use get instead
4501 of get_create.
4502 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
4503 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
4504 fast summary.
4505 (initialize_growth_caches): Update.
4506 (do_estimate_edge_time): Remove redundant copy of context.
4507 (ipa_remove_from_growth_caches): New function.
4508 * ipa-inline.c (flatten_function): Update overall summary
4509 only when optimizing.
4510 (inline_to_all_callers): Update overall summary of function
4511 inlined to.
4512 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
4513 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
4514 to false.
4515
4516 2019-11-04 Richard Biener <rguenther@suse.de>
4517
4518 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
4519 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
4520
4521 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
4522
4523 * ggc-common.c: Include system.h before malloc.h.
4524
4525 2019-11-04 Alexandre Oliva <oliva@adacore.com>
4526
4527 * configure.ac: Pass --enable-obsolete=* and
4528 --enable-option-checking=* down to build configure, and fail
4529 if it fails. AC_SUBST HAVE_AUTO_BUILD.
4530 * configure: Rebuild.
4531 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
4532 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
4533
4534 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4535
4536 * config.in: Regenerate.
4537 * config/msp430/msp430.c (msp430_option_override): Emit an error if
4538 -mtiny-printf is used without GCC being configured with
4539 --enable-newlib-nano-formatted-io.
4540 * config/msp430/msp430.h (LINK_SPEC): Pass
4541 "--wrap puts --wrap printf" when -mtiny-printf is used.
4542 * config/msp430/msp430.opt: Document -mtiny-printf.
4543 * configure: Regenerate.
4544 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
4545 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
4546 --enable-newlib-nano-formatted-io is passed.
4547 * doc/invoke.texi: Document -mtiny-printf.
4548
4549 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4550
4551 * configure: Regenerate.
4552
4553 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4554
4555 * config/msp430/driver-msp430.c
4556 (msp430_get_linker_devices_include_path): New spec function.
4557 * config/msp430/msp430-devices.c (msp430_dirname): New function.
4558 (extract_devices_dir_from_exec_prefix): New function.
4559 (extract_devices_dir_from_collect_gcc): New function.
4560 (msp430_check_env_var_for_devices): New function.
4561 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
4562 (parse_devices_csv): Call msp430_check_env_var_for_devices if
4563 devices.csv was not found using other methods.
4564 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
4565 New prototype.
4566 (msp430_dirname): Likewise.
4567 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
4568 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
4569 msp430_get_linker_devices_include_path.
4570 (TARGET_EXTRA_PRE_INCLUDES): Define.
4571 * doc/invoke.texi: Document new ways of searching for support files.
4572
4573 2019-11-04 Richard Biener <rguenther@suse.de>
4574
4575 PR tree-optimization/92301
4576 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
4577 as required by epilogue generation
4578
4579 2019-11-04 Martin Liska <mliska@suse.cz>
4580
4581 PR ipa/92304
4582 * fold-const.c (operand_compare::hash_operand): Fix field
4583 hashing of CONSTRUCTOR.
4584
4585 2019-11-04 Martin Liska <mliska@suse.cz>
4586
4587 * ggc.h (ggc_delete): New function.
4588 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
4589 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
4590 (ipa_free_all_node_params): Likewise.
4591 * ipa-sra.c (ipa_sra_analysis): Likewise.
4592
4593 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4594
4595 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
4596 set_switch_stmt_execution_predicate, compute_bb_predicates,
4597 will_be_nonconstant_expr_predicate,
4598 phi_result_unknown_predicate,
4599 analyze_function_body): Pass arround params summary.
4600 (ipa_call_context::duplicate_from): New comment;
4601 only duplicate useful values.
4602 (ipa_call_context::equal_to): Only compare useful values.
4603 (remap_edge_summaries): Pass params_summary.
4604 (remap_hint_predicate): Likewise.
4605 (ipa_merge_fn_summary_after_inlining): Likewise.
4606 (inline_read_section): Initialize params summary used flags.
4607 * ipa-predicate.c (predicate::remap_after_inlining): Pass
4608 around param_summary.
4609 (add_condition): Initialized used params summary flags.
4610 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
4611 (inline_param_summary::useless_p): New predicate.
4612 (remap_after_inlining, add_condition): Update prototype
4613 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
4614 move_cost.
4615 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
4616 summaries.
4617 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
4618 (ipa_analyze_virtual_call_uses): Likewise.
4619 (update_indirect_edges_after_inlining): Update param summaries.
4620 (ipa_print_node_params): Print used flags.
4621 (ipa_read_indirect_edge_info): Update param summareis.
4622 * ipa-prop.h (ipa_param_descriptor): Add
4623 used_by_ipa_predicates, used_by_indirect_call
4624 and used_by_polymorphic_call.
4625 (ipa_set_param_used_by_ipa_predicates,
4626 ipa_set_param_used_by_indirect_call,
4627 ipa_set_param_used_by_polymorphic_call,
4628 ipa_is_param_used_by_ipa_predicates,
4629 ipa_is_param_used_by_indirect_call,
4630 ipa_is_param_used_by_polymorphic_call): New inline functions.
4631
4632 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4633
4634 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
4635 member function.
4636 (ipa_call_context::release): Add ALL parameter.
4637 (ipa_call_context::equal_to): New member function.
4638 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
4639 duplicate_form, release, equal_to and exists_p member functoins.
4640 * ipa-inline-analysis.c (node_context_cache_entry): New
4641 class.
4642 (node_context_summary): Likewise.
4643 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
4644 node_context_clear): New static vars.
4645 (initialize_growth_caches): New function.
4646 (free_growth_caches): Also delete node_context_cache; output stats.
4647 (do_estimate_edge_time): Cache contexts.
4648 (reset_node_cache): New function.
4649 * ipa-inline.c (reset_edge_caches): Reset also node cache.
4650 (inline_small_functions): Initialize growth caches.
4651 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
4652 Declare.
4653 * ipa-predicate.h (inline_param_summary::equal_to): New.
4654 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
4655 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
4656 (ipa_agg_jump_function): Implement equal_to member function.
4657
4658 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4659
4660 * ipa-fnsummary.c (inline_read_section): Set vector size
4661 ahead of time.
4662
4663 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4664
4665 * ipa-fnsummary.c (ipa_call_context): New constructor.
4666 (estimate_node_size_and_time): Turn to ...
4667 (ipa_call_context::estimate_size_and_time): ... this one.
4668 (ipa_call_context::release): New.
4669 * ipa-fnsummary.h (ipa_call_context): New class.
4670 (estimate_node_size_and_time): Remove.
4671 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
4672 do_estimate_edge_hints): Update.
4673
4674 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4675
4676 * config.in: Regenerate.
4677 * configure: Regenerate.
4678 * configure.ac: Check for mallinfo.
4679 * ggc-common.c: Include malloc.h if available;
4680 include options.h
4681 (report_heap_memory_use): New functoin.
4682 * ggc-page.c (ggc_grow): Do not print "start".
4683 * ggc.h (report_heap_memory_use): Declare.
4684 * pases.c (execute_one_pass): Report memory after IPA passes.
4685 (ipa_read_summaries_1): Likewise.
4686 (ipa_read_optimization_summaries_1): Likewise.
4687
4688 2019-11-02 Jakub Jelinek <jakub@redhat.com>
4689
4690 * gimplify.h (omp_construct_selector_matches): Change return
4691 type to int, add a new SCORES argument.
4692 * gimplify.c (omp_construct_selector_matches): Likewise. If
4693 SCORES is non-NULL, compute scores of each construct.
4694 * omp-general.h (omp_get_context_selector): Declare.
4695 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
4696 Adjust omp_construct_selector_matches callers.
4697 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
4698 (omp_context_compute_score): New function.
4699 (omp_resolve_declare_variant): Compute scores and decide based on
4700 that.
4701
4702 PR bootstrap/92314
4703 * configure.ac: Don't look for omp-device-properties files from
4704 installed offloading compilers. Instead add tmake_file snippets
4705 for configured offloading targets and use files they generate.
4706 * Makefile.in (install): Don't depend on
4707 install-omp-device-properties.
4708 (install-omp-device-properties): Remove goal.
4709 * config/i386/t-omp-device: New file.
4710 * config/i386/t-intelmic (omp-device-properties): Remove goal.
4711 * config/nvptx/t-omp-device: New file.
4712 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
4713 * configure: Regenerated.
4714
4715 * omp-general.h (omp_context_selector_set_compare): Declare.
4716 * omp-general.c (omp_construct_simd_compare,
4717 omp_context_selector_props_compare, omp_context_selector_set_compare,
4718 omp_context_selector_compare): New functions.
4719 (omp_resolve_declare_variant): Prune variants that are strict subset
4720 of another variant.
4721
4722 2019-11-01 Martin Sebor <msebor@redhat.com>
4723
4724 PR middle-end/91679
4725 PR middle-end/91647
4726 PR middle-end/91463
4727 PR middle-end/92312
4728 * doc/invoke.texi (-Wzero-length-bounds): Document.
4729 * gimple-match-head.c (try_conditional_simplification): Use memcpy
4730 instead of a hand-rolled loop to avoid PR 92323.
4731 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
4732 with initializers.
4733 (vrp_prop::check_mem_ref): Handle declared struct objects.
4734 * tree.c (last_field): New function.
4735 (array_at_struct_end_p): Handle MEM_REF.
4736 (get_initializer_for): New helper.
4737 (component_ref_size): Add argument. Rename locals. Call
4738 get_initializer_for instead of fold_ctor_reference. Correct handling
4739 of flexible array members.
4740 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
4741
4742 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
4743
4744 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
4745 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
4746 UNSPEC_VSX_CVSPUXDS): Remove.
4747 (vsx_xvcvspdp): New define_expand, old define_insn split to...
4748 (vsx_xvcvspdp_be): ... this. New. And...
4749 (vsx_xvcvspdp_le): ... this. New.
4750 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
4751 (vsx_xvcv<su>xwdp_be): ... this. New. And...
4752 (vsx_xvcv<su>xwdp_le): ... this. New.
4753 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
4754 (vsx_xvcvsp<su>xds_be): ... this. New. And...
4755 (vsx_xvcvsp<su>xds_le): ... this. New.
4756
4757 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
4758
4759 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
4760 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
4761 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
4762 UNSPEC_VSX_XVCVSPSXWS): Remove.
4763 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
4764 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
4765
4766 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
4767
4768 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
4769 (UNSPEC_VSX_XVCDPSP): Remove.
4770 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
4771 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
4772
4773 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
4774
4775 * hooks.c (hook_tree_tree_bool_null): New.
4776 * hooks.h (hook_tree_tree_bool_null): Declare.
4777 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
4778 (LANG_HOOKS_DECLS): Add it.
4779 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
4780 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
4781 (lower_omp_target): Handle Fortran array with descriptor in
4782 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
4783
4784 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
4785
4786 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4787 Assert that the type we store in abi_vector_types is its own
4788 main variant.
4789 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
4790
4791 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
4792
4793 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
4794 from a CONST_INT address when TARGET_THUMB2.
4795
4796 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
4797
4798 * config/arm/arm.md (add_not_cin): New insn.
4799 (add_not_shift_cin): Likewise.
4800
4801 2019-10-31 Martin Liska <mliska@suse.cz>
4802
4803 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
4804 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
4805 and compare_memory_operand.
4806
4807 2019-10-31 Jakub Jelinek <jakub@redhat.com>
4808
4809 * configure.ac: Compute and substitute omp_device_properties and
4810 omp_device_property_deps.
4811 * Makefile.in (generated_files): Add omp-device-properties.h.
4812 (omp-general.o): Depend on omp-device-properties.h.
4813 (omp_device_properties): New make variable.
4814 (omp-device-properties.h, s-omp-device-properties-h,
4815 install-omp-device-properties): New goals.
4816 (install): Depend on install-omp-device-properties for accelerators.
4817 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
4818 * target.h (enum omp_device_kind_arch_isa): New enum.
4819 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
4820 documentation.
4821 * omp-general.c: Include omp-device-properties.h.
4822 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
4823 colon instead of comma.
4824 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
4825 functions.
4826 (omp_context_selector_matches): Implement device set arch/isa
4827 selectors, improve device set kind selector handling.
4828 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
4829 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
4830 TARGET_SIMD_CLONE_USABLE): Formatting fix.
4831 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
4832 ix86_omp_device_kind_arch_isa.
4833 * config/i386/i386-options.c (struct ix86_target_opts): Move type
4834 definition from ix86_target_string to file scope.
4835 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
4836 to file scope.
4837 (ix86_omp_device_kind_arch_isa): New function.
4838 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
4839 isa_opts definitions to file scope.
4840 * config/i386/t-intelmic (omp-device-properties): New goal.
4841 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
4842 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
4843 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
4844 nvptx_omp_device_kind_arch_isa.
4845 * configure: Regenerate.
4846 * doc/tm.texi: Regenerate.
4847
4848 PR middle-end/92231
4849 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
4850 DECL_BUILT_IN in comment. Remove redundant ()s around return
4851 argument.
4852 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
4853 before calling fndecl_built_in_p.
4854 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
4855 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
4856 fndecl_built_in_p on it.
4857
4858 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
4859
4860 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
4861
4862 2019-10-31 Martin Liska <mliska@suse.cz>
4863
4864 * config/arm/arm.c (arm_get_pcs_model): Remove usage
4865 of cgraph_local_info and use local_info_node instead.
4866 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
4867 (bfin_function_ok_for_sibcall): Likewise.
4868 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
4869 (must_reload_pic_reg_p): Likewise.
4870
4871 2019-10-31 Jakub Jelinek <jakub@redhat.com>
4872
4873 PR c++/90947
4874 * tree.h (type_initializer_zero_p): Remove.
4875 * tree.c (type_initializer_zero_p): Remove.
4876
4877 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
4878
4879 * doc/invoke.texi (-Wshadow, -Wshadow=global
4880 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
4881
4882 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4883
4884 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
4885 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
4886 and 'target exit data'.
4887
4888 2019-10-30 Martin Jambor <mjambor@suse.cz>
4889
4890 ipa/92278
4891 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
4892 availability comparison.
4893
4894 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4895
4896 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
4897 calls to __mspabi_mpy* functions.
4898 * config/msp430/msp430.md (mulhisi3): New define_expand.
4899 (umulhisi3): New define_expand.
4900 (*mulhisi3_inline): Use old mulhisi3 define_insn.
4901 (*umulhisi3_inline): Use old umulhisi3 define_insn.
4902
4903 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4904
4905 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
4906 (msp430_check_plus_not_high_mem): New.
4907 (msp430_op_not_in_high_mem): Use new functions to check if the operand
4908 might be in low memory.
4909 Indicate that a 16-bit absolute address is in lower memory.
4910
4911 2019-10-30 Martin Jambor <mjambor@suse.cz>
4912
4913 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
4914 ultimate_alias_target.
4915
4916 2019-10-30 Richard Biener <rguenther@suse.de>
4917
4918 PR tree-optimization/92275
4919 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
4920 Copy all loop-closed PHIs.
4921
4922 2019-10-30 Martin Liska <mliska@suse.cz>
4923
4924 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
4925 const_tree as function argument.
4926 (func_checker::compare_decl): Likewise.
4927 (func_checker::operand_equal_p): Likewise.
4928 (func_checker::compare_variable_decl): Likewise.
4929 (func_checker::parse_labels): Likewise.
4930 * ipa-icf-gimple.h: Likewise.
4931
4932 2019-10-30 Martin Liska <mliska@suse.cz>
4933
4934 * ipa-icf-gimple.c (func_checker::compatible_types_p):
4935 Do not compare alias sets. It's handled by operand_equal_p.
4936
4937 2019-10-30 Martin Liska <mliska@suse.cz>
4938
4939 * ipa-icf-gimple.c (func_checker::func_checker): Do not
4940 initialize m_compare_polymorphic.
4941 (func_checker::compare_decl): Do not compare polymorphic types.
4942 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
4943 * ipa-icf.c (sem_function::equals_private): Do not call
4944 compare_polymorphic_p.
4945
4946 2019-10-30 Martin Liska <mliska@suse.cz>
4947
4948 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
4949 compare_operand.
4950 (func_checker::compare_memory_operand): Remove.
4951 (func_checker::compare_cst_or_decl): Remove.
4952 (func_checker::operand_equal_valueize): Do not handle
4953 FIELD_DECL.
4954 (func_checker::compare_gimple_call): Call compare_operand.
4955 (func_checker::compare_gimple_assign): Likewise.
4956 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
4957 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
4958 * ipa-icf.h (icf_handled_component_p): Remove.
4959
4960 2019-10-30 Martin Liska <mliska@suse.cz>
4961
4962 * ipa-icf-gimple.c (func_checker::hash_operand): New.
4963 (func_checker::compare_cst_or_decl): Remove handling
4964 of FIELD_DECL.
4965 (func_checker::compare_operand): Transform to ...
4966 (func_checker::operand_equal_p): ... this.
4967 * ipa-icf-gimple.h (class func_checker): Add
4968 operand_equal_p and hash_operand.
4969 * ipa-icf.c (sem_function::equals_private): Fix
4970 pushing and popping of cfun.
4971
4972 2019-10-30 Martin Liska <mliska@suse.cz>
4973
4974 * fold-const.c (operand_equal_p): Move to ...
4975 (operand_compare::operand_equal_p): ... here.
4976 (operand_compare::verify_hash_value): New.
4977 (add_expr): Move to ...
4978 (operand_compare::hash_operand): ... here.
4979 * fold-const.h (operand_equal_p): Move to the class.
4980 (class operand_compare): New.
4981 * tree.c (add_expr): Remove.
4982
4983 2019-10-30 Martin Liska <mliska@suse.cz>
4984
4985 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
4986 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
4987
4988 2019-10-30 Martin Liska <mliska@suse.cz>
4989
4990 PR lto/91393
4991 PR lto/88220
4992 * cgraph.c (cgraph_node::get_create): Overwrite node->order
4993 from a first_clone in order to get proper LTO section
4994 in LTO stream.
4995 (cgraph_node::get_untransformed_body):
4996 Use lto_get_section_data where symtab_node::order
4997 must be provided.
4998 * cgraphclones.c (cgraph_node::find_replacement):
4999 Update also symbol order.
5000 * ipa-fnsummary.c (ipa_fn_summary_read):
5001 Use new function lto_get_summary_section_data.
5002 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
5003 * ipa-icf.c (sem_item_optimizer::read_summary):
5004 Likewise.
5005 * ipa-prop.c (ipa_prop_read_jump_functions):
5006 Likewise.
5007 (ipcp_read_transformation_summaries): Likewise.
5008 * ipa-sra.c (ipa_sra_read_summary): Likewise.
5009 * lto-cgraph.c (input_node): Add also order_base.
5010 (input_varpool_node): Likewise.
5011 (input_cgraph_1): Assign the order_base.
5012 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
5013 * lto-opts.c (lto_write_options): Pass new argument.
5014 * lto-section-in.c (lto_get_section_data): Add new argumente order.
5015 (lto_get_summary_section_data): New.
5016 (lto_get_raw_section_data): Add order argument.
5017 (lto_create_simple_input_block): Likewise.
5018 * lto-section-out.c (lto_destroy_simple_output_block):
5019 Likewise.
5020 * lto-streamer-in.c (lto_input_toplevel_asms):
5021 Use lto_get_summary_section_data.
5022 (lto_input_mode_table): Likewise.
5023 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
5024 (lto_output_toplevel_asms): Pass new argument.
5025 (copy_function_or_variable): Likewise.
5026 (produce_lto_section):Likewise.
5027 (produce_symtab): Likewise.
5028 (lto_write_mode_table): Likewise.
5029 (produce_asm_for_decls): Likewise.
5030 * lto-streamer.c (lto_get_section_name): Concat symbol name
5031 and symbol order.
5032 * lto-streamer.h (lto_get_section_data): Add order argument.
5033 (lto_get_summary_section_data): New.
5034 (lto_get_raw_section_data): Add order argument.
5035 (lto_get_section_name): Likewise.
5036 * varpool.c (varpool_node::get_constructor): Pass order argument.
5037
5038 2019-10-30 Jakub Jelinek <jakub@redhat.com>
5039
5040 PR tree-optimization/92262
5041 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
5042 ubase or cbase here.
5043 (remove_unused_ivs): Unshare comp before using it.
5044
5045 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
5046
5047 * ipa-prop.c (update_jump_functions_after_inlining):
5048 Watch for missing summaries.
5049
5050 2019-10-30 Richard Biener <rguenther@suse.de>
5051
5052 PR tree-optimization/65930
5053 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
5054 chains also allow a leading and trailing conversion.
5055 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
5056 intermediate reduction chains.
5057 (vect_analyze_slp_instance): Likewise. Build a SLP
5058 node for a trailing conversion manually.
5059
5060 2019-10-30 Martin Liska <mliska@suse.cz>
5061
5062 * cgraph.c (cgraph_node::local_info): Transform to ...
5063 (cgraph_node::local_info_node): ... this.
5064 (cgraph_node::dump): Remove cgraph_local_info and
5065 put its fields directly into cgraph_node.
5066 (cgraph_node::get_availability): Likewise.
5067 (cgraph_node::make_local): Likewise.
5068 (cgraph_node::verify_node): Likewise.
5069 * cgraph.h (struct GTY): Likewise.
5070 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
5071 (duplicate_thunk_for_node): Likewise.
5072 (cgraph_node::create_clone): Likewise.
5073 (cgraph_node::create_virtual_clone): Likewise.
5074 (cgraph_node::create_version_clone): Likewise.
5075 * cgraphunit.c (cgraph_node::reset): Likewise.
5076 (cgraph_node::finalize_function): Likewise.
5077 (cgraph_node::add_new_function): Likewise.
5078 (analyze_functions): Likewise.
5079 * combine.c (setup_incoming_promotions): Likewise.
5080 * config/i386/i386.c (ix86_function_regparm): Likewise.
5081 (ix86_function_sseregparm): Likewise.
5082 (init_cumulative_args): Likewise.
5083 * ipa-cp.c (determine_versionability): Likewise.
5084 (count_callers): Likewise.
5085 (set_single_call_flag): Likewise.
5086 (initialize_node_lattices): Likewise.
5087 (estimate_local_effects): Likewise.
5088 (create_specialized_node): Likewise.
5089 (identify_dead_nodes): Likewise.
5090 * ipa-fnsummary.c (compute_fn_summary): Likewise.
5091 (ipa_fn_summary_generate): Likewise.
5092 * ipa-hsa.c (check_warn_node_versionable): Likewise.
5093 (process_hsa_functions): Likewise.
5094 * ipa-icf.c (set_local): Likewise.
5095 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
5096 * ipa-inline.c (speculation_useful_p): Likewise.
5097 * ipa-profile.c (ipa_propagate_frequency): Likewise.
5098 (ipa_profile): Likewise.
5099 * ipa-split.c (split_function): Likewise.
5100 (execute_split_functions): Likewise.
5101 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
5102 (ipa_sra_ipa_function_checks): Likewise.
5103 * ipa-visibility.c (function_and_variable_visibility): Likewise.
5104 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5105 * lto-cgraph.c (lto_output_node): Likewise.
5106 (input_overwrite_node): Likewise.
5107 * multiple_target.c (expand_target_clones): Likewise.
5108 * omp-simd-clone.c (simd_clone_create): Likewise.
5109 * trans-mem.c (expand_call_tm): Likewise.
5110 (ipa_tm_mayenterirr_function): Likewise.
5111 (ipa_tm_diagnose_tm_safe): Likewise.
5112 (ipa_tm_diagnose_transaction): Likewise.
5113 (ipa_tm_create_version): Likewise.
5114 (ipa_tm_transform_calls_redirect): Likewise.
5115 (ipa_tm_execute): Likewise.
5116 * tree-inline.c (expand_call_inline): Likewise.
5117
5118 2019-10-29 Martin Liska <mliska@suse.cz>
5119
5120 * symbol-summary.h (function_summary): Pass memory location
5121 to underlaying hash_map (or vec).
5122 (V>::fast_function_summary): Likewise.
5123
5124 2019-10-29 Martin Liska <mliska@suse.cz>
5125
5126 * ggc.h (ggc_alloc_no_dtor): New function.
5127 * ipa-fnsummary.c (ipa_free_fn_summary): Call
5128 destructor and ggc_free.
5129 (ipa_free_size_summary): Call delete instead
5130 of release.
5131 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
5132 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
5133 (ipa_free_all_edge_args): Call destructor and ggc_free.
5134 (ipa_free_all_node_params): Likewise.
5135 (ipcp_free_transformation_sum): Likewise.
5136 * ipa-prop.h (ipa_check_create_node_params):
5137 Call new ggc_alloc_no_dtor.
5138 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
5139 (ipa_sra_analysis): Call destructor and ggc_free.
5140 Replace release with delete operator.
5141 * symbol-summary.h (release): Remove ..
5142 (V>::~fast_function_summary): and move logic here.
5143 Likewise for other classes.
5144
5145 2019-10-29 Richard Biener <rguenther@suse.de>
5146
5147 PR tree-optimization/92260
5148 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
5149 lane-reducing ops.
5150
5151 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
5152
5153 PR tree-optimization/88915
5154 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
5155 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
5156 and make the valueize function pointer also take a void pointer.
5157 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
5158 around vn_valueize, to call it without a context.
5159 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
5160 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
5161 (~_loop_vec_info): Release epilogue_vinfos.
5162 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
5163 number of iterations of epilogue.
5164 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
5165 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
5166 versioning threshold needed for main loop.
5167 (vect_analyze_loop): Likewise.
5168 (find_in_mapping): New helper function.
5169 (update_epilogue_loop_vinfo): New function.
5170 (vect_transform_loop): When vectorizing epilogues re-use analysis done
5171 on main loop and call update_epilogue_loop_vinfo to update it.
5172 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
5173 stmts on loop preheader edge.
5174 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
5175 we decided to vectorize epilogues. Update epilogues NITERS and
5176 construct ADVANCE to update epilogues data references where needed.
5177 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
5178 (vect_do_peeling, vect_update_inits_of_drs,
5179 determine_peel_for_niter, vect_analyze_loop): Add or update
5180 declarations.
5181 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
5182 created loop_vec_info's for epilogues when available. Otherwise analyse
5183 epilogue separately.
5184
5185 2019-10-29 Richard Biener <rguenther@suse.de>
5186
5187 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
5188 example.
5189
5190 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5191
5192 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
5193 index for the COND_EXPR from stmt_info rather than reduc_info.
5194
5195 2019-10-29 Richard Biener <rguenther@suse.de>
5196
5197 PR tree-optimization/65930
5198 * tree-vect-loop.c (check_reduction_path): Relax single-use
5199 check allowing out-of-loop uses.
5200 (vect_is_simple_reduction): SLP reduction chains cannot have
5201 intermediate stmts used outside of the loop.
5202 (vect_create_epilog_for_reduction): The adjustment might need
5203 to be converted.
5204 (vectorizable_reduction): Annotate live stmts of the reduction
5205 chain with STMT_VINFO_REDUC_DEF.
5206 * tree-vect-stms.c (process_use): Remove no longer true asserts.
5207
5208 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5209
5210 * calls.c (pass_by_reference): Leave the target to decide whether
5211 POLY_INT_CST-sized arguments should be passed by value or reference,
5212 rather than forcing them to be passed by reference.
5213 (must_pass_in_stack_var_size): Likewise.
5214 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
5215 V31_REGNUM to P15_REGNUM.
5216 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
5217 Take an extra "silent_p" parameter, defaulting to false.
5218 (aarch64_sve::svbool_type_p): Declare.
5219 (aarch64_sve::nvectors_if_data_type): Likewise.
5220 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
5221 (aarch64_frame::reg_offset): Turn into poly_int64s.
5222 (aarch64_frame::save_regs_size): Likewise.
5223 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
5224 (aarch64_frame::sve_callee_adjust): Likewise.
5225 (aarch64_frame::spare_reg_reg): Likewise.
5226 (ARM_PCS_SVE): New arm_pcs value.
5227 (CUMULATIVE_ARGS::aapcs_nprn): New field.
5228 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
5229 (CUMULATIVE_ARGS::silent_p): Likewise.
5230 (BITS_PER_SVE_PRED): New macro.
5231 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
5232 function. Reject aarch64_vector_pcs attributes on SVE functions.
5233 (aarch64_attribute_table): Use the above handler.
5234 (aarch64_sve_abi): New function.
5235 (aarch64_sve_argument_p): Likewise.
5236 (aarch64_returns_value_in_sve_regs_p): Likewise.
5237 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
5238 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
5239 descriptor for them.
5240 (aarch64_simd_decl_p): Delete.
5241 (aarch64_emit_cfi_for_reg_p): New function.
5242 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
5243 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
5244 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
5245 as partly clobbered for the SVE PCS.
5246 (aarch64_function_ok_for_sibcall): Check whether the two functions
5247 use the same ABI, rather than checking specifically for whether
5248 they're aarch64_vector_pcs functions.
5249 (aarch64_pass_by_reference): Raise an error for attempts to pass
5250 SVE arguments when SVE is disabled. Pass SVE arguments by reference
5251 if there are not enough free registers left, or if the argument is
5252 variadic.
5253 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
5254 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
5255 tuples in memory.
5256 (aarch64_layout_arg): Take a function_arg_info rather than
5257 individual properties. Handle SVE predicates, vectors and tuples.
5258 Raise an error if they are passed to unprototyped functions.
5259 (aarch64_function_arg): If the silent_p flag is set, suppress the
5260 usual error about using float registers without TARGET_FLOAT.
5261 (aarch64_init_cumulative_args): Take a silent_p parameter and store
5262 it in the cumulative_args structure. Initialize aapcs_nprn and
5263 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
5264 error about using float registers without TARGET_FLOAT.
5265 If the silent_p flag is not set, also raise an error about
5266 using SVE functions when SVE is disabled.
5267 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
5268 and call it for SVE functions too. Update aapcs_nprn similarly
5269 to the other register counts.
5270 (aarch64_layout_frame): If a big-endian function needs to save
5271 and restore Z8-Z15, search for a spare predicate that it can use.
5272 Store SVE predicates at the bottom of the register save area,
5273 followed by SVE vectors, then followed by the normal slots.
5274 Keep pointing the hard frame pointer at the base of the normal slots,
5275 above the SVE vectors. Update the various frame creation and
5276 tear-down strategies for the new layout, initializing the new
5277 sve_callee_adjust field. Add an additional layout for frames
5278 whose saved registers are all SVE registers.
5279 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
5280 (aarch64_return_address_signing_enabled): Likewise.
5281 (aarch64_push_regs, aarch64_pop_regs): Update calls to
5282 aarch64_reg_save_mode.
5283 (aarch64_adjust_sve_callee_save_base): New function.
5284 (aarch64_add_cfa_expression): Move earlier in file. Take the
5285 saved register as an rtx rather than a register number and use
5286 its mode for the MEM slot.
5287 (aarch64_save_callee_saves): Remove the mode argument and instead
5288 use aarch64_reg_save_mode to get the mode of each save slot.
5289 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
5290 offsets. Allow GP offsets to be saved at a VL-based offset from
5291 the stack, handling this case using the frame pointer if available
5292 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
5293 big-endian SVE functions; use normal moves for other SVE saves.
5294 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
5295 returns true. Add explicit CFA notes when not storing via the
5296 stack pointer. Do not try to pair SVE saves.
5297 (aarch64_restore_callee_saves): Cope with poly_int64 register
5298 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
5299 use normal moves for other SVE restores. Only add CFA restore notes
5300 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
5301 SVE restores.
5302 (aarch64_get_separate_components): Always keep the first SVE save
5303 in the prologue if we need to use it as a stack probe. Don't allow
5304 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
5305 Likewise the spare predicate register that they need. Update the
5306 offset calculation to account for the SVE save area. Use the
5307 appropriate range check for SVE LDR and STR instructions.
5308 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
5309 (aarch64_process_components): Likewise. Update the offset
5310 calculation to account for the SVE save area. Only mark the
5311 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
5312 Do not try to pair SVE saves.
5313 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
5314 reg_offsets. When handling the final allocation, expect the
5315 first SVE register save to be part of the initial allocation
5316 and for it to act as a probe at SP. Account for the SVE callee
5317 save area in the dump information.
5318 (aarch64_expand_prologue): Update the frame diagram. Fold the
5319 SVE callee allocation into the initial allocation if stack clash
5320 protection is enabled. Use new variables to track the offset
5321 of the frame chain (and hard frame pointer) from the current
5322 stack pointer, and likewise the offset of the bottom of the
5323 register save area. Update calls to aarch64_save_callee_saves
5324 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
5325 saving the FP&SIMD registers. Save the predicate registers.
5326 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
5327 into account when setting the stack pointer from the frame pointer,
5328 and when deciding whether we can inherit the initial adjustment
5329 amount from the prologue. Restore the predicate registers after
5330 the vector registers, then apply sve_callee_adjust, then restore
5331 the general registers.
5332 (aarch64_secondary_reload): Don't use secondary SVE reloads
5333 for VNx16BImode.
5334 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
5335 (aarch64_short_vector_p): Return false for SVE types.
5336 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
5337 at the start of the function. Return false for SVE types.
5338 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
5339 functions too.
5340 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
5341 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
5342 to big-endian targets for bytewise moves.
5343 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
5344
5345 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5346 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5347 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5348
5349 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
5350 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
5351 aarch64-sve-builtins-base.o to extra_objs. Add
5352 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
5353 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
5354 (aarch64-sve-builtins-shapes.o): Likewise.
5355 (aarch64-sve-builtins-base.o): New rules.
5356 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
5357 (aarch64_resolve_overloaded_builtin): Likewise.
5358 (aarch64_check_builtin_call): Likewise.
5359 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
5360 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
5361 pragma.
5362 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
5363 (aarch64_svprfop): New enum.
5364 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
5365 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
5366 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
5367 (aarch64_output_sve_cnt_pat_immediate): Likewise.
5368 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
5369 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
5370 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
5371 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
5372 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
5373 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
5374 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
5375 (aarch64_sve::mangle_builtin_type): Likewise.
5376 (aarch64_sve::resolve_overloaded_builtin): Likewise.
5377 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
5378 (aarch64_sve::expand_builtin): Likewise.
5379 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
5380 (aarch64_sve_int_mode): Likewise.
5381 (aarch64_ptrue_all_mode): New function.
5382 (aarch64_convert_sve_data_to_pred): Make public.
5383 (svprfop_token): New function.
5384 (aarch64_output_sve_prefetch): Likewise.
5385 (aarch64_fold_sve_cnt_pat): Likewise.
5386 (aarch64_output_sve_cnt_pat_immediate): Likewise.
5387 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
5388 instead of gen_while_ult.
5389 (aarch64_replace_reg_mode): Make public.
5390 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
5391 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
5392 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
5393 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
5394 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
5395 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
5396 (aarch64_sve_ptrue_svpattern_p): Likewise.
5397 (aarch64_sve_pred_valid_immediate): Check
5398 aarch64_sve_ptrue_svpattern_p.
5399 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
5400 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
5401 functions.
5402 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
5403 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
5404 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
5405 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
5406 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
5407 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
5408 New unspecs.
5409 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
5410 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
5411 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
5412 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
5413 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
5414 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
5415 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
5416 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
5417 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
5418 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
5419 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
5420 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
5421 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
5422 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
5423 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
5424 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
5425 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
5426 (Vesize): Handle partial vector modes.
5427 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
5428 mode attributes.
5429 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
5430 iterators.
5431 (s, paired_extend, inc_dec): New code attributes.
5432 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
5433 (SVE_INT_UNARY): Add UNSPEC_RBIT.
5434 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
5435 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
5436 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
5437 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
5438 UNSPEC_COND_FMULX.
5439 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
5440 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
5441 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
5442 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
5443 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
5444 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
5445 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
5446 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
5447 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
5448 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
5449 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
5450 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
5451 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
5452 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
5453 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
5454 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
5455 UNSPEC_COND_FSCALE.
5456 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
5457 (binqops_op, binqops_op_rev, last_op): New int attributes.
5458 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
5459 (fn, ab): New int attributes.
5460 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
5461 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
5462 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
5463 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
5464 UNSPEC_RBIT.
5465 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
5466 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
5467 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
5468 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
5469 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
5470 UNSPEC_COND_FMULX.
5471 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
5472 (brk_reg_con, brk_reg_opno): New int attributes.
5473 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
5474 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
5475 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
5476 UNSPEC_COND_FMIN.
5477 (max_elem_bits): New int attribute.
5478 (min_elem_bits): Handle UNSPEC_RBIT.
5479 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
5480 TRUNCATE as well as SUBREG.
5481 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
5482 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
5483 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
5484 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
5485 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
5486 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
5487 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
5488 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
5489 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
5490 (aarch64_gather_scale_operand_h): New predicates.
5491 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
5492 (vgd, vgh, vgw, vsQ, vsS): New constraints.
5493 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
5494 (*aarch64_sve_reinterpret<mode>): Allow any source register
5495 instead of requiring an exact match.
5496 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
5497 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
5498 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
5499 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
5500 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
5501 (aarch64_update_ffrt): New patterns.
5502 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
5503 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5504 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5505 (@aarch64_ld<fn>f1<mode>): New patterns.
5506 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
5507 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5508 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5509 (@aarch64_ldnt1<mode>): New patterns.
5510 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
5511 the scalar part of the address.
5512 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
5513 scalar part of the addresse and add an alternative for handling
5514 nonzero offsets.
5515 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
5516 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
5517 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5518 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5519 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
5520 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
5521 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
5522 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
5523 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5524 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5525 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
5526 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
5527 (@aarch64_sve_prefetch<mode>): New patterns.
5528 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
5529 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
5530 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
5531 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
5532 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
5533 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
5534 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
5535 (@aarch64_stnt1<mode>): New patterns.
5536 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
5537 the scalar part of the address.
5538 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
5539 the scalar part of the addresse and add an alternative for handling
5540 nonzero offsets.
5541 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
5542 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
5543 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
5544 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
5545 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
5546 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
5547 New patterns.
5548 (vec_duplicate<mode>): Use QI as the mode of the input operand.
5549 (extract_last_<mode>): Generalize to...
5550 (@extract_<LAST:last_op>_<mode>): ...this.
5551 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
5552 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
5553 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
5554 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
5555 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
5556 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
5557 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
5558 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
5559 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
5560 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
5561 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
5562 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
5563 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
5564 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
5565 (*aarch64_adr_uxtw_unspec): Likewise.
5566 (*aarch64_adr_uxtw): Rename to...
5567 (*aarch64_adr_uxtw_and): ...this.
5568 (@aarch64_adr<mode>_shift): New expander.
5569 (*aarch64_adr_shift_sxtw): New pattern.
5570 (aarch64_<su>abd<mode>_3): Rename to...
5571 (@aarch64_pred_<su>abd<mode>): ...this.
5572 (<su>abd<mode>_3): Update accordingly.
5573 (@aarch64_cond_<su>abd<mode>): New expander.
5574 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
5575 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
5576 (*<su>mul<mode>3_highpart): Rename to...
5577 (@aarch64_pred_<optab><mode>): ...this.
5578 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
5579 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
5580 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
5581 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
5582 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
5583 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
5584 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
5585 (*v<ASHIFT:optab><mode>3): Rename to...
5586 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
5587 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
5588 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
5589 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
5590 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
5591 (@cond_asrd<mode>): New expander.
5592 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
5593 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
5594 (*sdiv_pow2<mode>3): Delete.
5595 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
5596 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
5597 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
5598 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
5599 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
5600 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
5601 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
5602 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
5603 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
5604 (*add<SVE_F:mode>3): Rename to...
5605 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
5606 for SVE_STRICT_GP.
5607 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
5608 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
5609 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
5610 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
5611 (*sub<SVE_F:mode>3): Rename to...
5612 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
5613 for SVE_STRICT_GP.
5614 (@aarch64_pred_abd<SVE_F:mode>): New expander.
5615 (*fabd<SVE_F:mode>3): Rename to...
5616 (*aarch64_pred_abd<SVE_F:mode>): ...this.
5617 (@aarch64_cond_abd<SVE_F:mode>): New expander.
5618 (*mul<SVE_F:mode>3): Rename to...
5619 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
5620 for SVE_STRICT_GP.
5621 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
5622 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
5623 to...
5624 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
5625 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
5626 (*<nlogical><PRED_ALL:mode>3): Rename to...
5627 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
5628 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
5629 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
5630 (*<logical_nn><PRED_ALL:mode>3): Rename to...
5631 (aarch64_pred_<logical_nn><mode>_z): ...this.
5632 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
5633 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
5634 (*fma<SVE_I:mode>4): Rename to...
5635 (@aarch64_pred_fma<SVE_I:mode>): ...this.
5636 (*fnma<SVE_I:mode>4): Rename to...
5637 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
5638 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
5639 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
5640 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
5641 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
5642 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
5643 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
5644 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
5645 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
5646 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
5647 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
5648 (@aarch64_sve_tmad<mode>): Likewise.
5649 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
5650 (*aarch64_sel_dup<mode>): Rename to...
5651 (@aarch64_sel_dup<mode>): ...this.
5652 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
5653 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
5654 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
5655 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
5656 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
5657 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
5658 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
5659 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
5660 (*fcm<cmp_op><mode>): Rename to...
5661 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
5662 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
5663 (*fcmuo<mode>): Rename to...
5664 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
5665 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
5666 (@aarch64_pred_fac<cmp_op><mode>): New expander.
5667 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
5668 (fold_extract_last_<mode>): Generalize to...
5669 (@fold_extract_<last_op>_<mode>): ...this.
5670 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
5671 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
5672 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
5673 DImode result explicit.
5674 (reduc_plus_scal_<mode>): Update accordingly.
5675 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
5676 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
5677 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
5678 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
5679 (*aarch64_sve_tbl<mode>): Rename to...
5680 (@aarch64_sve_tbl<mode>): ...this.
5681 (@aarch64_sve_compact<mode>): New pattern.
5682 (*aarch64_sve_dup_lane<mode>): Rename to...
5683 (@aarch64_sve_dup_lane<mode>): ...this.
5684 (@aarch64_sve_dupq_lane<mode>): New pattern.
5685 (@aarch64_sve_splice<mode>): Likewise.
5686 (aarch64_sve_<perm_insn><mode>): Rename to...
5687 (@aarch64_sve_<perm_insn><mode>): ...this.
5688 (*aarch64_sve_ext<mode>): Rename to...
5689 (@aarch64_sve_ext<mode>): ...this.
5690 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
5691 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
5692 to...
5693 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
5694 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
5695 Rename to...
5696 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
5697 ...this.
5698 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
5699 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
5700 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
5701 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
5702 to...
5703 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
5704 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
5705 a "@" marker.
5706 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
5707 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
5708 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
5709 pattern.
5710 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
5711 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
5712 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
5713 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
5714 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
5715 "@" marker.
5716 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
5717 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
5718 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
5719 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
5720 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
5721 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
5722 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
5723 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
5724 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
5725 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
5726 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
5727 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
5728 (aarch64_sve_cnt_pat): Likewise.
5729 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
5730 (*aarch64_sve_incsi_pat): Likewise.
5731 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
5732 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
5733 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
5734 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
5735 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
5736 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
5737 (*aarch64_sve_decsi_pat): Likewise.
5738 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
5739 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
5740 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
5741 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
5742 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
5743 (@aarch64_pred_cntp<mode>): Likewise.
5744 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
5745 New expander.
5746 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
5747 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
5748 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5749 New expander.
5750 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5751 New pattern.
5752 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
5753 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
5754 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
5755 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
5756 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
5757 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
5758 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
5759 New expander.
5760 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
5761 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
5762 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5763 New expander.
5764 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5765 New pattern.
5766 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
5767 expander.
5768 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
5769 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
5770 expander.
5771 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
5772 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
5773 expander.
5774 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
5775 * config/aarch64/arm_sve.h: New file.
5776 * config/aarch64/aarch64-sve-builtins.h: Likewise.
5777 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
5778 * config/aarch64/aarch64-sve-builtins.def: Likewise.
5779 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
5780 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
5781 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
5782 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
5783 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
5784 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
5785
5786 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5787
5788 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
5789 New pattern.
5790 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
5791 SVE modes.
5792
5793 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5794
5795 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
5796 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
5797 FFRT_REGNUM + 1.
5798 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
5799 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
5800 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
5801 (aarch64_hard_regno_nregs): Handle the new register classes.
5802 (aarch64_hard_regno_mode_ok): Likewise.
5803 (aarch64_regno_regclass): Likewise.
5804 (aarch64_class_max_nregs): Likewise.
5805 (aarch64_register_move_cost): Likewise.
5806 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
5807 as general register_operands.
5808
5809 2019-10-29 Martin Liska <mliska@suse.cz>
5810
5811 * ggc-common.c: One can't subtract unsigned types
5812 in compare function.
5813
5814 2019-10-29 Martin Liska <mliska@suse.cz>
5815
5816 * cgraphunit.c (symbol_table::compile): Pass
5817 title as dump_memory_report argument.
5818 * toplev.c (dump_memory_report): New argument.
5819 (finalize): Pass new argument.
5820 * toplev.h (dump_memory_report): Add argument.
5821
5822 2019-10-29 Martin Liska <mliska@suse.cz>
5823
5824 * ggc-common.c: Move Leak to the first column.
5825
5826 2019-10-29 Martin Liska <mliska@suse.cz>
5827
5828 * cgraphunit.c (symbol_table::compile): Remove argument
5829 for dump_memory_report.
5830 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
5831 (compare_final): Remove in order to make report
5832 better readable.
5833 * ggc.h (dump_ggc_loc_statistics): Remove argument.
5834 * mem-stats.h (mem_alloc_description::get_list):
5835 Do not pass cmp.
5836 (mem_alloc_description::dump): Likewise here.
5837 * toplev.c (dump_memory_report): Remove final
5838 argument.
5839 (finalize): Likewise.
5840 * toplev.h (dump_memory_report): Remove argument.
5841
5842 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5843
5844 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
5845 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
5846 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
5847 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
5848 accept "const".
5849
5850 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5851
5852 * coretypes.h (string_int_pair): New typedef.
5853 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
5854 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
5855 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
5856
5857 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5858
5859 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
5860 (simulate_builtin_function_decl): Declare.
5861 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
5862 (LANG_HOOKS_INITIALIZER): Include it.
5863 * langhooks.c (add_builtin_function_common): Rename to...
5864 (build_builtin_function): ...this. Add a location parameter and use
5865 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
5866 the decl instead.
5867 (add_builtin_function): Update accordingly, passing the returned
5868 decl to the lang hook.
5869 (add_builtin_function_ext_scope): Likewise
5870 (simulate_builtin_function_decl): New function.
5871
5872 2019-10-29 Jakub Jelinek <jakub@redhat.com>
5873
5874 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
5875 example, use actual names of supported offload targets.
5876
5877 PR target/92258
5878 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
5879
5880 2019-10-28 Martin Sebor <msebor@redhat.com>
5881
5882 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
5883 (handle_store): Pass argument to get_addr_stridx.
5884
5885 2019-10-28 Martin Sebor <msebor@redhat.com>
5886
5887 PR tree-optimization/92226
5888 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
5889 the offset is in the open range outlined by SI's length.
5890
5891 2019-10-28 Martin Sebor <msebor@redhat.com>
5892
5893 PR c/66970
5894 * doc/cpp.texi (__has_builtin): Document.
5895 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
5896
5897 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5898
5899 PR target/82981
5900 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
5901 doubleword and low doubleword result of multiplication on
5902 MIPS64R6.
5903
5904 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
5905 pure qualifier to the built-in.
5906 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
5907 built-ins.
5908 (struct mips_builtin_description): Add is_pure flag.
5909 (mips_init_builtins): Mark built-in as pure if the flag in the
5910 corresponding mips_builtin_description struct is set.
5911
5912 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
5913 alternative which covers the floating-point input value. Also
5914 forbid the split of insert.d pattern for floating-point values.
5915
5916 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
5917
5918 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
5919 * config/riscv/riscv-sr.c: New file.
5920 * config/riscv/riscv.c (riscv_reorg): New function.
5921 (TARGET_MACHINE_DEPENDENT_REORG): Define.
5922 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
5923 (riscv_remove_unneeded_save_restore_calls): Declare.
5924 * config/riscv/t-riscv (riscv-sr.o): New build rule.
5925
5926 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5927
5928 PR tree-optimization/92163
5929 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
5930 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
5931 before calling bitmap_set_bit.
5932 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
5933 delete_dead_or_redundant_assignment.
5934 (dse_dom_walker::dse_optimize_stmt): Likewise.
5935 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
5936
5937 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5938
5939 PR middle-end/91272
5940 * tree-vect-stmts.c (vectorizable_condition): Support
5941 EXTRACT_LAST_REDUCTION with fully-masked loops.
5942
5943 2019-10-28 Richard Biener <rguenther@suse.de>
5944
5945 PR tree-optimization/92252
5946 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
5947 STMT_VINFO_REDUC_IDX when swapping operands.
5948
5949 2019-10-28 Richard Biener <rguenther@suse.de>
5950
5951 PR tree-optimization/92241
5952 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
5953 we failed to update the reduction index do not use the pattern
5954 stmts for the reduction chain.
5955 (vectorizable_reduction): When the reduction chain is corrupt,
5956 fail.
5957 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
5958 fail to update the reduction chain.
5959
5960 2019-10-28 Richard Biener <rguenther@suse.de>
5961
5962 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5963 STMT_VINFO_REDUC_IDX from the actual stmt.
5964 (vect_transform_reduction): Likewise.
5965 (vectorizable_reduction): Compute the reduction chain length,
5966 do not recompute the reduction operand index. Remove no longer
5967 necessary restriction for condition reduction chains.
5968
5969 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
5970
5971 PR target/92225
5972 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
5973 condition for V2DImode.
5974
5975 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
5976
5977 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
5978 Remove %k operand modifier.
5979 (*vec_extractv2df_1_sse): Remove %q operand modifier.
5980
5981 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
5982
5983 PR rtl-optimization/92007
5984 * cfgcleanup.c (thread_jump): Add an assertion that we don't
5985 call it after reload if hot/cold partitioning has been done.
5986 (class pass_postreload_jump): Rename to
5987 pass_jump_after_combine.
5988 (make_pass_postreload_jump): Rename to
5989 make_pass_jump_after_combine.
5990 * passes.def(pass_postreload_jump): Move before reload, rename
5991 to pass_jump_after_combine.
5992 * tree-pass.h (make_pass_postreload_jump): Rename to
5993 make_pass_jump_after_combine.
5994
5995 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
5996
5997 PR ipa/92242
5998 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
5999 for missing EDGE_REF
6000 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
6001
6002 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
6003
6004 PR tree-optimization/88760
6005 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
6006 Enable -funroll-loops for -O2 and above.
6007 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
6008 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
6009 do not turn on web and rngreg implicitly, if the unroller is not
6010 explicitly enabled.
6011
6012 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6013
6014 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
6015 jump functions.
6016
6017 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
6018
6019 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
6020 * cgraph.h (cgraph_node::rtl_info): Likewise.
6021
6022 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6023
6024 * ipa-cp.c (propagate_constants_across_call): If args are not available
6025 just drop everything to varying.
6026 (find_aggregate_values_for_callers_subset): Watch for missing
6027 edge summary.
6028 (find_more_scalar_values_for_callers_subs): Likewise.
6029 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
6030 update_jump_functions_after_inlining, propagate_controlled_uses):
6031 Watch for missing summaries.
6032 (ipa_propagate_indirect_call_infos): Remove summary after propagation
6033 is finished.
6034 (ipa_write_node_info): Watch for missing summaries.
6035 (ipa_read_edge_info): Create new ref.
6036 (ipa_edge_args_sum_t): Add remove.
6037 (IPA_EDGE_REF_GET_CREATE): New macro.
6038 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
6039 edge summary.
6040 (remap_edge_change_prob): Likewise.
6041
6042 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6043
6044 * ipa-inline-transform.c (inline_call): update function summaries
6045 after expanidng thunk.
6046
6047 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6048
6049 * ipa-icf.c (sem_function::merge): Update function summaries.
6050 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
6051
6052 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
6053
6054 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
6055 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
6056 operand already has scalar mode.
6057 (iptr): Remove SF/DF.
6058
6059 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
6060
6061 PR target/91289
6062 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
6063 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
6064 this.
6065
6066 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
6067
6068 * config/i386/sse.md
6069 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
6070 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
6071 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
6072 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
6073 <sse>_vmmaskcmp<mode>3):
6074 Change predicates from vector_operand to nonimmediate_operand,
6075 constraints xBm to xm, since scalar operations don't need
6076 memory address alignment.
6077 (avx512f_vmcmp<mode>3<round_saeonly_name>,
6078 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
6079 round_saeonly_nimm_predicate with
6080 round_saeonly_nimm_scalar_predicate.
6081 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
6082 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
6083 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
6084 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
6085 avx512f_vmfmadd_<mode>_mask3<round_name>,
6086 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
6087 *avx512f_vmfmsub_<mode>_mask<round_name>,
6088 avx512f_vmfmsub_<mode>_mask3<round_name>,
6089 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
6090 *avx512f_vmfnmadd_<mode>_mask<round_name>,
6091 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
6092 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
6093 *avx512f_vmfnmsub_<mode>_mask<round_name>,
6094 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
6095 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
6096 cvtusi2<ssescalarmodesuffix>32<round_name>,
6097 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
6098 round_nimm_predicate with round_nimm_scalr_predicate.
6099 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
6100 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
6101 avx512er_vmrcp28<mode><round_saeonly_name>,
6102 avx512er_vmrsqrt28<mode><round_saeonly_name>,
6103 ): Replace round_saeonly_nimm_predicate with
6104 round_saeonly_nimm_scalar_predicate.
6105 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
6106 vector_operand with nonimmediate_operand.
6107 * config/i386/subst.md (round_scalar_nimm_predicate,
6108 round_saeonly_scalar_nimm_predicate): Replace
6109 vector_operand with nonimmediate_operand.
6110
6111 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
6112
6113 PR target/89071
6114 * config/i386/i386.md (*rcpsf2_sse): Add
6115 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
6116 (*rsqrtsf2_sse): Ditto.
6117 (*sqrt<mode>2_sse): Ditto.
6118 (sse4_1_round<mode>2): separate constraint vm, add
6119 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
6120 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
6121 by pass rpad.
6122 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
6123 Ditto.
6124 (*sse_vmrsqrtv4sf2): Ditto.
6125 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
6126 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
6127 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
6128 <iptr> pointer size modifier since vround support memory operand.
6129
6130 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
6131
6132 PR target/85969
6133 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
6134 static function.
6135
6136 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
6137 Tobias Burnus <tobias@codesourcery.com>
6138
6139 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
6140 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
6141 common block decls.
6142
6143 2019-10-25 Richard Biener <rguenther@suse.de>
6144
6145 PR tree-optimization/92222
6146 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
6147 (_slp_oprnd_info::second_pattern): Likewise.
6148 (_slp_oprnd_info::any_pattern): New.
6149 (vect_create_oprnd_info): Adjust.
6150 (vect_get_and_check_slp_defs): Compute whether any stmt is
6151 in a pattern.
6152 (vect_build_slp_tree_2): Avoid building up a node from scalars
6153 if any of the operand defs, not just the first, is in a pattern.
6154
6155 2019-10-25 Richard Biener <rguenther@suse.de>
6156
6157 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
6158 swapping if we actually have to modify the IL on a shared stmt.
6159 (vect_build_slp_tree_2): Never fail swapping on shared stmts
6160 because we no longer modify the IL.
6161
6162 2019-10-25 Martin Liska <mliska@suse.cz>
6163
6164 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
6165
6166 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
6167
6168 * tree-vect-loop.c (vectorizable_reduction): Restrict the
6169 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
6170 handled by vect_transform_reduction. Allow fully-masked loops
6171 to be used with reduction chains.
6172 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
6173 operations in fully-masked loops.
6174 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
6175 operations in fully-masked loops.
6176
6177 2019-10-25 Richard Biener <rguenther@suse.de>
6178
6179 * tree-vect-loop.c (vectorizable_reduction): Verify
6180 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
6181 correctly.
6182 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
6183 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
6184 stmts.
6185
6186 2019-10-24 Jakub Jelinek <jakub@redhat.com>
6187
6188 * gimplify.h (omp_construct_selector_matches): Declare.
6189 * gimplify.c (struct gimplify_omp_ctx): Add code member.
6190 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
6191 called function if needed for flag_openmp.
6192 (gimplify_scan_omp_clauses): Set ctx->code.
6193 (omp_construct_selector_matches): New function.
6194 * omp-general.h (omp_constructor_traits_to_codes,
6195 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
6196 * omp-general.c (omp_constructor_traits_to_codes,
6197 omp_context_selector_matches, omp_resolve_declare_variant): New
6198 functions.
6199
6200 * config/arc/arc.c (hwloop_optimize): Add missing space in string
6201 literal.
6202 * config/rx/rx.c (rx_print_operand): Likewise.
6203 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6204 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
6205 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
6206 Likewise.
6207 * genemit.c (emit_c_code): Likewise.
6208 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
6209
6210 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6211
6212 * symbols-summary.h (fast_function_summary<T *, V>::release,
6213 fast_call_summary<T *, V>::release): Free m_vector.
6214
6215 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6216
6217 * cgraphunit.c (symbol_table::process_new_functions): Call
6218 ipa_free_size_summary.
6219 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
6220 (devirtualization_time_bonus): Update.
6221 (ipcp_propagate_stage): Update.
6222 * ipa-fnsummary.c (ipa_size_summaries): New.
6223 (ipa_fn_summary_alloc): Alloc size summary.
6224 (dump_ipa_call_summary): Update.
6225 (ipa_dump_fn_summary): Update.
6226 (analyze_function_body): Update.
6227 (compute_fn_summary): Likewise.
6228 (ipa_get_stack_frame_offset): New function.
6229 (inline_update_callee_summaries): Do not update frame offsets.
6230 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
6231 remove call and function summary.
6232 (ipa_update_overall_fn_summary): Update.
6233 (inline_read_section): Update.
6234 (ipa_fn_summary_write): Update.
6235 (ipa_free_fn_summary): Do not remove summaries.
6236 (ipa_free_size_summary): New.
6237 (release summary pass): Also run at WPA.
6238 * ipa-fnsummary.h (ipa_size_summary): Declare.
6239 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
6240 estimated_self_stack_size.
6241 (ipa_size_summary_t): New type.
6242 (ipa_size_summaries): Declare.
6243 (ipa_free_size_summary): Declare.
6244 (ipa_get_stack_frame_offset): Declare.
6245 * ipa-icf.c (sem_function::merge): Update.
6246 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
6247 (estimate_growth): Update.
6248 (growth_likely_positive): Update.
6249 (clone_inlined_nodes): Update.
6250 (inline_call): Update.
6251 * ipa-inline.c (caller_growth_limits): Update.
6252 (edge_badness): Update.
6253 (recursive_inlining): Update.
6254 (inline_small_functions): Update.
6255 (inline_to_all_callers_1): Update.
6256 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
6257
6258 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
6259
6260 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
6261 (uavg<mode>3_ceil): ... This.
6262 (altivec_vavgs<VI_char>): Rename to...
6263 (avg<mode>3_ceil): ... This.
6264 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
6265 VAVGUW, VAVGSW): Adjust.
6266
6267 2019-10-24 Nathan Sidwell <nathan@acm.org>
6268
6269 * dumpfile.c (dump_begin): Reorder decls to use RAII.
6270
6271 2019-10-24 Martin Liska <mliska@suse.cz>
6272
6273 * symbol-summary.h (gt_pch_nx): Mark all functions
6274 with gcc_unreachable as we do not expect to be called.
6275
6276 2019-10-24 Richard Biener <rguenther@suse.de>
6277
6278 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
6279 chains try harder with operand swapping and instead of
6280 putting a shifted chain into the reduction operands put
6281 a repetition of the final reduction op there as if we'd
6282 reassociate the expression.
6283
6284 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6285
6286 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
6287 statics_not_read and statics_not_written to statics_read and
6288 statics_written respectively.
6289 (no_module_statics): New static var.
6290 (ipa_reference_get_not_read_global): Rename to ...
6291 (ipa_reference_get_read_global): ... this.
6292 (ipa_reference_get_not_written_global): Rename to ...
6293 (ipa_reference_get_written_global): ... this.
6294 (dump_static_vars_set_to_file): Dump no_module_statics.
6295 (copy_static_var_set): Add for propagation parameter.
6296 (ipa_init): Initialize no_module_statics.
6297 (ipa_ref_opt_summary_t::duplicate): Update.
6298 (ipa_ref_opt_summary_t::remove): Update.
6299 (propagate): Update.
6300 (write_node_summary_p): Look correctly for bitmap differences.
6301 (ipa_reference_write_optimization_summary): Update.
6302 (ipa_reference_read_optimization_summary): Update.
6303 * ipa-reference.h
6304 (ipa_reference_get_not_read_global): Rename to ...
6305 (ipa_reference_get_read_global): ... this.
6306 (ipa_reference_get_not_written_global): Rename to ...
6307 (ipa_reference_get_written_global): ... this.
6308 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
6309 (call_may_clobber_ref_p_1): Update.
6310
6311 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6312
6313 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
6314 and add comment.
6315 (msp430_hard_regno_nregs_with_padding): Remove.
6316
6317 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6318
6319 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
6320 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
6321 shift amount is between 1 and 4.
6322 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
6323 is between 1 and 4.
6324
6325 2019-10-24 Richard Biener <rguenther@suse.de>
6326
6327 PR tree-optimization/92205
6328 * tree-vect-loop.c (vectorizable_reduction): Restrict
6329 search for alternate vectype_in to lane-reducing patterns
6330 we support.
6331
6332 2019-10-24 Richard Biener <rguenther@suse.de>
6333
6334 PR tree-optimization/92203
6335 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
6336 Skip eliminating conversion stmts inserted by insertion.
6337
6338 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
6339
6340 * config/s390/s390.c (s390_get_thread_pointer): Use
6341 gen_get_thread_pointer.
6342 (s390_expand_split_stack_prologue): Likewise.
6343 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
6344 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
6345 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
6346 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
6347 parameterized name.
6348
6349 2019-10-24 Richard Biener <rguenther@suse.de>
6350
6351 * tree-vect-slp.c (vect_analyze_slp): When reduction group
6352 SLP discovery fails try to handle the reduction as part
6353 of SLP reduction discovery.
6354
6355 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
6356
6357 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
6358 declaration.
6359 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
6360 attribute if it exists, rather than the insn size. If we use the
6361 insn size, adjust the size to remove the extra size that prefixed
6362 instructions take.
6363 (rs6000_adjust_insn_length): New function.
6364 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
6365 update the instruction sized if prefixed instructions are used.
6366 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
6367 (non_prefixed_length attribute): Delete.
6368 (num_insns attribute): New insn attribute to return the number of
6369 instructions.
6370 (max_prefixed_insns attribute): New insn attribute to return the
6371 maximum number of prefixed instructions in an insn.
6372 (length attribute): Do not adjust for prefix instructions here,
6373 punt to ADJUST_INSN_LENGTH.
6374 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
6375 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
6376 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
6377 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
6378 max_prefixed_insns and num_insns.
6379
6380 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
6381 (movtd_64bit_nodm): Reformat.
6382 (mov<mode>_32bit): Reformat.
6383 (mov<mode>_softfloat): Reformat.
6384 (FMOVE128_GPR splitter): Reformat.
6385 (DIFD splitter): Reformat.
6386 (TI2 splitter): Reformat.
6387 * config/rs6000/predicates.md (lwa_operand): If the bottom two
6388 bits of the offset for the memory address are non-zero, use PLWA
6389 if prefixed instructions are available.
6390
6391 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6392
6393 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
6394
6395 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6396
6397 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
6398 previous patch.
6399
6400 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6401
6402 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
6403 (cmp_symbol_files): New.
6404 (lto_output): Copy sections in file order.
6405 * lto-streamer.h (lto_file_decl_data): Add field order.
6406
6407 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6408
6409 * ipa-reference.h (ipa_reference_var_uid): Move offline.
6410 * ipa-reference.c (reference_vars_map_t): new type.
6411 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
6412 (ipa_reference_var_uid): Implement.
6413 (varpool_node_hooks): New static var.
6414 (varpool_removal_hook): New function.
6415 (is_improper): Do not check bitmap for id==-1
6416 (get_static_name): Update.
6417 (ipa_init): Initialize new datastructures.
6418 (analyze_function): Do not recompute ids.
6419 (propagate): Free reference_vars_to_consider.
6420 (stream_out_bitmap): Update.
6421 (ipa_reference_read_optimization_summary): Update.
6422
6423 2019-10-23 qing zhao <qing.zhao@oracle.com>
6424
6425 PR gcov-profile/91971
6426 * coverage.c (coverage_init): Mangle the full path of filename when
6427 filename is a absolute path.
6428
6429 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6430
6431 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
6432 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
6433 (msp430_has_hwmult): New.
6434 (msp430_output_labelref):
6435 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
6436 * config/msp430/msp430.md (mulhisi3): Likewise.
6437 (umulhisi3): Likewise.
6438 (mulsidi3): Likewise.
6439 (umulsidi3): Likewise.
6440
6441 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6442
6443 PR ipa/92074
6444 * params.def (inline-heuristics-hint-percent): Set to 600.
6445
6446 2019-10-23 Richard Biener <rguenther@suse.de>
6447
6448 PR tree-optimization/65930
6449 * tree-vect-loop.c (check_reduction_path): Allow conversions
6450 that only change the sign.
6451 (vectorizable_reduction): Relax latch def stmts we handle further.
6452
6453 2019-10-23 Jakub Jelinek <jakub@redhat.com>
6454
6455 PR debug/90231
6456 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
6457 (remove_unused_ivs): Use it instead of get_computation_at. When
6458 choosing best candidate, only consider candidates where
6459 get_debug_computation_at actually returns non-NULL.
6460
6461 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
6462
6463 PR tree-optimization/92131
6464 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
6465 range would be symbolic, drop to varying for any explicit overflow
6466 in the constant part or if neither range is a singleton.
6467
6468 2019-10-23 Martin Liska <mliska@suse.cz>
6469
6470 PR middle-end/81669
6471 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
6472 Initialize m_data.
6473
6474 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
6475
6476 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
6477 int_mode_for_mode rather than mode_for_int_vector for scalars.
6478
6479 2019-10-23 Richard Biener <rguenther@suse.de>
6480
6481 PR tree-optimization/92179
6482 * tree-vect-stmts.c (vectorizable_shift): For shift args
6483 that are all the same remove type restriction in the SLP case.
6484 Adjust SLP code to handle converting of the shift arg to
6485 only apply in case the modes are different.
6486
6487 2019-10-23 Martin Liska <mliska@suse.cz>
6488
6489 PR ipa/91969
6490 * ipa-inline.c (recursive_inlining): Do not print
6491 when curr->count is not initialized.
6492
6493 2019-10-23 Richard Biener <rguenther@suse.de>
6494
6495 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
6496 op from scalars in case there's a constant operand in its
6497 definition.
6498
6499 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
6500
6501 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
6502 against out of range max skip or log values.
6503
6504 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
6505
6506 * cgraph.c (dump_graphviz): Change name to dump_name
6507
6508 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
6509
6510 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
6511 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
6512 subtraction from a carry operation.
6513
6514 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
6515
6516 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
6517
6518 2019-10-22 Richard Biener <rguenther@suse.de>
6519
6520 PR tree-optimization/92173
6521 * tree-vect-loop.c (vectorizable_reduction): If
6522 vect_transform_reduction cannot handle code-generation try without
6523 the single-def-use-cycle optimization. Pass optab_vector to
6524 optab_for_tree_code to get vector shifts as that's what we'd
6525 generate.
6526
6527 2019-10-22 Michael Matz <matz@suse.de>
6528
6529 PR middle-end/90796
6530 * gimple-loop-jam.c (any_access_function_variant_p): New function.
6531 (adjust_unroll_factor): Use it to constrain safety, new parameter.
6532 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
6533
6534 2019-10-22 Richard Biener <rguenther@suse.de>
6535
6536 PR tree-optimization/92173
6537 * tree-vect-loop.c (vectorizable_reduction): If
6538 vect_transform_reduction cannot handle code-generation try without
6539 the single-def-use-cycle optimization. Pass optab_vector to
6540 optab_for_tree_code to get vector shifts as that's what we'd
6541 generate.
6542
6543 2019-10-22 Martin Liska <mliska@suse.cz>
6544
6545 * diagnostic-format-json.cc (json_from_expanded_location):
6546 Use json::integer_number.
6547 * gcov.c (output_intermediate_json_line): Use new
6548 json::integer_number.
6549 (output_json_intermediate_file): Likewise.
6550 * json.cc (number::print): Move to ...
6551 (float_number::print): ... this.
6552 (integer_number::print): New.
6553 (test_writing_numbers): Move to ...
6554 (test_writing_float_numbers): ... this.
6555 (test_writing_integer_numbers): New.
6556 (json_cc_tests): Register test_writing_integer_numbers.
6557 * json.h (class value): Add forward declaration
6558 for float_number and integer_number.
6559 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
6560 (class number): Move to ...
6561 (class float_number): ... this.
6562 (class integer_number): New.
6563 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
6564 Use json::integer_number.
6565 (optrecord_json_writer::location_to_json): Likewise.
6566 (optrecord_json_writer::profile_count_to_json): Likewise.
6567 (optrecord_json_writer::pass_to_json): Likewise.
6568
6569 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
6570
6571 * tree-vect-slp.c (vect_slp_bb_region): Check whether
6572 autodetected_vector_size rather than vector_size is zero.
6573 * tree-vect-loop.c (vect_analyze_loop): Likewise.
6574 Set autodetected_vector_size immediately after calling
6575 vect_analyze_loop_2. Check for a fatal error before advancing
6576 next_size.
6577
6578 2019-10-21 Jason Merrill <jason@redhat.com>
6579
6580 * lock-and-run.sh: Check for process existence rather than timeout.
6581
6582 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6583
6584 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
6585 widening multiplication.
6586
6587 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
6588
6589 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
6590 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
6591 type attribute.
6592 (subsi3_carryin_shift): Separate into register and constant controlled
6593 alternatives. Use shift_amount_operand for operand 4. Set shift
6594 attribute and simplify type attribute.
6595 (subsi3_carryin_shift_alt): Likewise.
6596 (rsbsi3_carryin_shift): Likewise.
6597 (rsbsi3_carryin_shift_alt): Likewise.
6598 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
6599 and register controlled shifts into distinct alternatives.
6600 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
6601 (andsi_not_shiftsi_si_scc): Likewise.
6602 (arm_cmpsi_negshiftsi_si): Likewise.
6603 (not_shiftsi): Remove redundant M constraint from alternative 1.
6604 (not_shiftsi_compare0): Likewise.
6605 (arm_cmpsi_insn): Remove redundant alternative 2.
6606 (cmpsi_shift_swp): Likewise.
6607 (sub_shiftsi): Likewise.
6608 (sub_shiftsi_compare0_scratch): Likewise.
6609 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
6610 (thumb2_cmpsi_neg_shiftsi): Likewise.
6611
6612 2019-10-21 Richard Biener <rguenther@suse.de>
6613
6614 PR tree-optimization/92162
6615 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
6616 STMT_VINFO_REDUC_IDX in reduc_info.
6617 * tree-vect-stmts.c (vectorizable_condition): Likewise.
6618
6619 2019-10-21 Richard Biener <rguenther@suse.de>
6620
6621 * tree-vectorizer.h (_slp_tree::ops): New member.
6622 (SLP_TREE_SCALAR_OPS): New.
6623 (vect_get_slp_defs): Adjust prototype.
6624 * tree-vect-slp.c (vect_free_slp_tree): Release
6625 SLP_TREE_SCALAR_OPS.
6626 (vect_create_new_slp_node): Initialize it. New overload for
6627 initializing by an operands array.
6628 (_slp_oprnd_info::ops): New member.
6629 (vect_create_oprnd_info): Initialize it.
6630 (vect_free_oprnd_info): Release it.
6631 (vect_get_and_check_slp_defs): Populate the operands array.
6632 Do not swap operands in the IL when not necessary.
6633 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
6634 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
6635 swap operands in the operands array. Do not swap operands in
6636 the IL.
6637 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
6638 (vect_gather_slp_loads): Fix.
6639 (vect_detect_hybrid_slp_stmts): Likewise.
6640 (vect_slp_analyze_node_operations_1): Search for a internal
6641 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
6642 (vect_slp_analyze_node_operations): Skip ops-only stmts for
6643 the def-type push/pop dance.
6644 (vect_get_constant_vectors): Compute number_of_vectors here.
6645 Use SLP_TREE_SCALAR_OPS and simplify greatly.
6646 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
6647 (vect_get_slp_defs): Simplify greatly.
6648 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
6649 (vect_transform_reduction): Likewise.
6650 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
6651 (vectorizable_call): Likewise.
6652 (vectorizable_operation): Likewise.
6653 (vectorizable_load): Likewise.
6654 (vectorizable_condition): Likewise.
6655 (vectorizable_comparison): Likewise.
6656
6657 2019-10-21 Richard Biener <rguenther@suse.de>
6658
6659 PR tree-optimization/92161
6660 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
6661 for reductions.
6662
6663 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6664
6665 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
6666 (aarch64_rndr): New define_insn.
6667 (aarch64_rndrrs): Likewise.
6668 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
6669 (TARGET_RNG): Likewise.
6670 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
6671 argument.
6672 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
6673 Add fourth argument in prototype.
6674 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
6675 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
6676 (aarch64_init_rng_builtins): Define.
6677 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
6678 (aarch64_expand_rng_builtin): Define.
6679 (aarch64_general_expand_builtin): Use IGNORE argument, handle
6680 RNG builtins.
6681 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
6682 __ARM_FEATURE_RNG when TARGET_RNG.
6683 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
6684
6685 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
6686
6687 * tree-vect-stmts (ensure_base_align): Only change alignment if new
6688 alignment is more restrictive.
6689
6690 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6691
6692 * tree-vectorizer.h (vec_info::vector_size): New member variable.
6693 (vect_update_max_nunits): Update comment.
6694 (current_vector_size): Delete.
6695 * tree-vect-stmts.c (current_vector_size): Likewise.
6696 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
6697 of current_vector_size.
6698 (get_mask_type_for_scalar_type): Likewise.
6699 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
6700 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
6701 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
6702 (vect_double_mask_nunits, vect_transform_loop): Likewise.
6703 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
6704 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
6705
6706 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6707
6708 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
6709 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
6710 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
6711 accordingly.
6712
6713 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6714
6715 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
6716 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
6717 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
6718 call accordingly.
6719 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
6720
6721 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6722
6723 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
6724 a loop_vec_info.
6725 (vect_set_loop_condition_masked): Update call accordingly.
6726
6727 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6728
6729 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
6730 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
6731 (simple_integer_narrowing): Update call accordingly.
6732 (vectorizable_conversion): Likewise.
6733
6734 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6735
6736 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
6737 (vectorizable_call): Update call accordingly.
6738
6739 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6740
6741 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
6742 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
6743 (duplicate_and_interleave): Update call accordingly.
6744 * tree-vect-loop.c (vectorizable_reduction): Likewise.
6745
6746 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6747
6748 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
6749 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
6750 (vect_get_constant_vectors): Update call accordingly.
6751 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
6752
6753 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6754
6755 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
6756 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
6757 (vect_prologue_cost_for_slp_op): Update call accordingly.
6758 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
6759 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
6760 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
6761 (get_mask_type_for_scalar_type): Likewise.
6762 (vect_get_vector_types_for_stmt): Likewise.
6763 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6764 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
6765 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
6766 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
6767 (vect_split_statement, vect_convert_input): Likewise.
6768 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
6769 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
6770 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
6771 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
6772 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
6773 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
6774 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
6775 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
6776 (vect_recog_mask_conversion_pattern): Likewise.
6777 (vect_add_conversion_to_pattern): Likewise.
6778 (vect_recog_gather_scatter_pattern): Likewise.
6779 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
6780 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
6781
6782 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6783
6784 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
6785 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
6786 (vect_check_load_store_mask): Update call accordingly.
6787 (vect_get_mask_type_for_stmt): Likewise.
6788 * tree-vect-patterns.c (check_bool_pattern): Likewise.
6789 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
6790 (vect_convert_mask_for_vectype): Likewise.
6791
6792 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6793
6794 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
6795 a vec_info.
6796 (vect_recog_dot_prod_pattern): Update call accordingly.
6797 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
6798 (vect_recog_widen_sum_pattern): Likewise.
6799
6800 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6801
6802 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
6803 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
6804 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
6805 accordingly.
6806
6807 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6808
6809 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
6810 get_vectype_for_scalar_type_and_size instead of
6811 get_vectype_for_scalar_type.
6812
6813 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6814
6815 * common.opt (-fcommon): Fix description.
6816
6817 2019-10-20 Jakub Jelinek <jakub@redhat.com>
6818
6819 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
6820 * config/i386/i386.c (ix86_pre_reload_split): New function.
6821 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
6822 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
6823 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
6824 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
6825 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
6826 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
6827 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
6828 *<shift_insn><dwi>3_doubleword_mask,
6829 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
6830 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
6831 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
6832 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
6833 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
6834 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
6835 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
6836 *avx2_<code>v8qiv8si2<mask_name>_2,
6837 *sse4_1_<code>v4qiv4si2<mask_name>_2,
6838 *sse4_1_<code>v4hiv4si2<mask_name>_2,
6839 *avx512f_<code>v8qiv8di2<mask_name>_2,
6840 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
6841 *sse4_1_<code>v2hiv2di2<mask_name>_2,
6842 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
6843 sse4_2_pcmpistr): Likewise.
6844
6845 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
6846
6847 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
6848 now defaults to https.
6849
6850 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
6851
6852 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
6853 skip non-zero array accesses.
6854
6855 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
6856
6857 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
6858 and return a boolean success value. Move the allocation and
6859 initialization of the bb_vec_info to...
6860 (vect_slp_bb_region): ...here. Update call accordingly.
6861 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
6862 than in vect_slp_analyze_bb_1.
6863
6864 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
6865
6866 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
6867 when processing the given datarefs for the first time and
6868 check_datarefs subsequently.
6869 (vect_slp_bb_region): New function, split out of...
6870 (vect_slp_bb): ...here. Don't recompute the region bounds and
6871 dataref sets when retrying with a different vector size.
6872
6873 2019-10-19 Jakub Jelinek <jakub@redhat.com>
6874 Uroš Bizjak <ubizjak@gmail.com>
6875
6876 PR target/92140
6877 * config/i386/predicates.md (int_nonimmediate_operand): New special
6878 predicate.
6879 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
6880 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
6881 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
6882 define_insn_and_split patterns.
6883
6884 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
6885
6886 * config/rs6000/rs6000.md: Delete out--of-date comment about
6887 special-casing integer loads.
6888
6889 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
6890
6891 * escaped_string.h (escaped_string): New header.
6892 * tree.c (escaped_string): Remove escaped_string class.
6893
6894 2019-10-18 Martin Sebor <msebor@redhat.com>
6895
6896 PR tree-optimization/92157
6897 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
6898 compute_string_length to return a negative result.
6899
6900 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6901
6902 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
6903 (negvsi3, negvdi3): Delete.
6904 (negdi2_compare): Delete.
6905
6906 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6907
6908 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
6909 operations.
6910 (subdi3_compare1): Delete pattern.
6911 (subvsi3_borrow): New insn pattern.
6912 (subvsi3_borrow_imm): Likewise.
6913
6914 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6915
6916 * config/arm/arm.md (subv<mode>4): Delete.
6917 (subvdi4): New expander pattern.
6918 (subvsi4): Likewise. Handle some immediate values.
6919 (subvsi3_intmin): New insn pattern.
6920 (subvsi3): Likewise.
6921 (subvsi3_imm1): Likewise.
6922 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
6923 idioms.
6924
6925 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6926
6927 * config/arm/arm.md (usubvdi4): Allow registers or integers for
6928 incoming operands. Early split the calculation into SImode
6929 operations.
6930 (usubvsi3_borrow): New insn pattern.
6931 (usubvsi3_borrow_imm): Likewise.
6932
6933 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6934
6935 * config/arm/arm.md (usubv<mode>4): Delete expansion.
6936 (usubvsi4): New pattern. Allow some immediate values for inputs.
6937 (usubvdi4): New pattern.
6938
6939 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6940
6941 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
6942 or second operand of the PLUS inside a DImode equality test to be
6943 sign-extend when selecting CC_Vmode.
6944 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
6945 instructions.
6946 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
6947 expand patterns.
6948 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
6949 (addsi3_cin_vout_0): Likewise.
6950 (adddi3_compareV): Delete.
6951
6952 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6953
6954 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
6955 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
6956 to transform this back into the summation version when that leads
6957 to smaller code.
6958
6959 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6960
6961 * config/arm/arm.md (addv<mode>4): Delete.
6962 (addvsi4): New pattern. Handle immediate values that the architecture
6963 supports.
6964 (addvdi4): New pattern.
6965 (addsi3_compareV): Rename to ...
6966 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
6967 and use COMPARE rather than NE.
6968 (addsi3_compareV_imm): New pattern.
6969 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
6970 a signed-overflow check.
6971
6972 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6973
6974 * config/arm/arm-modes.def (CC_ADC): New CC mode.
6975 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
6976 CC_ADCmode.
6977 (maybe_get_arm_condition_code): Handle CC_ADCmode.
6978 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
6979 with overflow.
6980 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
6981 expand patterns.
6982 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
6983 (addsi3_cin_cout_imm_insn): Likewise.
6984 (adddi3_compareC): Delete insn.
6985 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
6986
6987 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6988
6989 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
6990 * (uaddv<mode>4): Delete expansion pattern.
6991 (uaddvsi4): New pattern.
6992 (uaddvdi4): Likewise.
6993 (addsi3_compareC): Delete pattern, change callers to use
6994 addsi3_compare_op1.
6995 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
6996 reduce the number of alternatives and re-work type attribute handling.
6997 (addsi3_compare_op2): Clean up constraints to reduce the number of
6998 alternatives and re-work type attribute handling.
6999 (compare_addsi2_op0): Likewise.
7000 (compare_addsi2_op1): Likewise.
7001
7002 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7003
7004 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
7005 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
7006 for DImode operands.
7007 (arm_gen_dicompare_reg): Remove unreachable expansion code.
7008 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
7009 CC_NCVmode.
7010 * config/arm/arm.md (arm_cmpdi_insn): Delete.
7011 (arm_cmpdi_unsigned): Delete.
7012
7013 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7014
7015 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
7016 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
7017 unchanged only if that will be cheaper.
7018 (arm_select_cc_mode): Recognize a swapped comparison that will
7019 be regenerated using RSBS or RSCS. Relax restriction on selecting
7020 CC_RSBmode.
7021 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
7022 a constant.
7023 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
7024 is CC_RSBmode.
7025 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
7026 as CCmode.
7027 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
7028 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
7029
7030 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7031
7032 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
7033 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
7034 need these modes.
7035 (arm_gen_dicompare_reg): New code to early expand the sub-operations
7036 of EQ, NE, LT, GE, LTU and GEU.
7037 * config/arm/iterators.md (CC_EXTEND): New code attribute.
7038 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
7039 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
7040 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
7041 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
7042
7043 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7044
7045 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
7046 operand 2.
7047 (cstoredi4): Similarly, but for operand 3.
7048 * config/arm/arm.c (arm_canoncialize_comparison): Allow
7049 canonicalization of unsigned compares with a constant on Arm.
7050 Prefer using const+1 and adjusting the comparison over swapping the
7051 operands whenever the original constant was not valid.
7052 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
7053 register here.
7054 (arm_validize_comparison): Do not force invalid DImode operands to
7055 registers here.
7056
7057 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7058
7059 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
7060 return CC_Zmode if comparing against a constant where one word is
7061 zero.
7062 (arm_gen_compare_reg): Split DImode handling to ...
7063 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
7064 against simple constants.
7065 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
7066
7067 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7068
7069 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
7070 (rsbsi3_carryin_shift_alt): Likewise.
7071
7072 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7073
7074 * config/arm/arm.md (negscc_borrow): New pattern.
7075 (mov_negscc): Don't split if the insn would match negscc_borrow.
7076 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
7077 (thumb2_mov_negscc_strict_it): Likewise.
7078
7079 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7080
7081 * config/arm/arm.c (arm_insn_cost): New function.
7082 (TARGET_INSN_COST): Override default definition.
7083
7084 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7085
7086 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7087 borrow operations.
7088
7089 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7090
7091 * config/arm/arm.c (strip_carry_operation): New function.
7092 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
7093 for SImode.
7094
7095 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7096
7097 * config/arm/predicates.md (arm_carry_operation): New special
7098 predicate.
7099 * config/arm/iterators.md (LTUGEU): Delete iterator.
7100 (cnb): Delete code attribute.
7101 (optab): Delete ltu and geu elements.
7102 * config/arm/arm.md (addsi3_carryin): Renamed from
7103 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
7104 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
7105 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
7106 (addsi3_carryin_clobercc): Similarly.
7107 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
7108 Thumb2 state.
7109
7110 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7111
7112 * config/arm/arm.md (arm_subdi3): Delete insn.
7113 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
7114
7115 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7116
7117 * config/arm/arm-modes.def (CC_RSB): New CC mode.
7118 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
7119 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
7120 return CC_RSBmode.
7121 (maybe_get_arm_condition_code): Handle CC_RSBmode.
7122 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
7123 expand.
7124 (subdi3): Rewrite to early-expand the sub-operations.
7125 (rsb_im_compare): New pattern.
7126 (negdi2): Delete.
7127 (negdi2_insn): Delete.
7128 (arm_negsi2): Correct type attribute to alu_imm.
7129 (negsi2_0compare): New insn pattern.
7130 (negsi2_carryin): New insn pattern.
7131
7132 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7133
7134 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
7135 operand 2.
7136
7137 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7138
7139 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
7140 to match canonical form.
7141
7142 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7143
7144 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
7145 (extend<mode>di2): Likewise.
7146
7147 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7148
7149 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
7150 * config/arm/arm.c (arm_decompose_di_binop): New function.
7151 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
7152 If not generating Thumb-1 code, decompose the operation into 32-bit
7153 pieces.
7154 * add0si_carryin_<optab>: New pattern.
7155
7156 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7157
7158 * arm.md (adddi3): Only accept register operands.
7159 (arm_adddi3): Convert to simple insn with no split. Do not accept
7160 constants.
7161 (adddi_sesidi_di): Delete patern.
7162 (adddi_zesidi_di): Likewise.
7163 (uaddv<mode>4): Use LTU as condition for branch.
7164 (adddi3_compareV): Convert to simple insn with no split.
7165 (addsi3_compareV_upper): Delete pattern.
7166 (adddi3_compareC): Convert to simple insn with no split. Correct
7167 flags setting expression.
7168 (addsi3_compareC_upper): Delete pattern.
7169 (addsi3_compareC): Correct flags setting expression.
7170 (subdi3_compare1): Convert to simple insn with no split.
7171 (subsi3_carryin_compare): Delete pattern.
7172 (arm_subdi3): Convert to simple insn with no split.
7173 (subdi_zesidi): Delete pattern.
7174 (subdi_di_sesidi): Delete pattern.
7175 (subdi_zesidi_di): Delete pattern.
7176 (subdi_sesidi_di): Delete pattern.
7177 (subdi_zesidi_zesidi): Delete pattern.
7178 (negvdi3): Use s_register_operand.
7179 (negdi2_compare): Convert to simple insn with no split.
7180 (negdi2_insn): Likewise.
7181 (negsi2_carryin_compare): Delete pattern.
7182 (negdi_zero_extendsidi): Delete pattern.
7183 (arm_cmpdi_insn): Convert to simple insn with no split.
7184 (negdi2): Don't call gen_negdi2_neon.
7185 * config/arm/neon.md (adddi3_neon): Delete pattern.
7186 (subdi3_neon): Delete pattern.
7187 (negdi2_neon): Delete pattern.
7188 (splits for negdi2_neon): Delete splits.
7189
7190 2019-10-18 Jakub Jelinek <jakub@redhat.com>
7191
7192 PR middle-end/92153
7193 * ggc-page.c (release_pages): Read g->alloc_size before free rather
7194 than after it.
7195
7196 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
7197
7198 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
7199 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
7200 new multilib variants and new mappings.
7201
7202 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7203
7204 PR target/86040
7205 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
7206
7207 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7208 Richard Sandiford <richard.sandiford@arm.com>
7209
7210 PR target/86753
7211 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
7212 and define hashmap traits for it.
7213 (loop_vec_info::scalar_cond_masked_set): New member.
7214 (vect_record_loop_mask): Adjust prototype.
7215 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
7216 Implement method.
7217 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
7218 vect_record_loop_mask.
7219 (vectorizable_live_operation): Likewise.
7220 (vect_record_loop_mask): New param scalar_mask. Add entry
7221 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
7222 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
7223 Pass it as last arg to vect_record_loop_mask.
7224 (vectorizable_call): Pass scalar_mask as last arg to
7225 vect_record_loop_mask.
7226 (vectorizable_store): Likewise.
7227 (vectorizable_load): Likewise.
7228 (vectorizable_condition): Check if another part of vectorized code
7229 applies loop_mask to condition or to it's inverse, and if yes,
7230 apply loop_mask to result of vector comparison.
7231
7232 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
7233
7234 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
7235
7236 2019-10-18 Jakub Jelinek <jakub@redhat.com>
7237
7238 PR tree-optimization/92056
7239 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
7240 before calling compute_builtin_object_size.
7241
7242 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
7243
7244 PR target/65342
7245 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
7246 (movdi_low_st): Delete.
7247 * config/rs6000/rs6000.c
7248 (darwin_rs6000_legitimate_lo_sum_const_p): New.
7249 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
7250 * config/rs6000/rs6000.md (movsi_low): Delete.
7251
7252 2019-10-17 Jason Merrill <jason@redhat.com>
7253
7254 * gimplify.h (get_initialized_tmp_var): Add default argument to
7255 post_p.
7256 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
7257 NULL post_p argument.
7258 * targhooks (std_gimplify_va_arg_expr): Likewise.
7259
7260 2019-10-17 Richard Biener <rguenther@suse.de>
7261
7262 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
7263 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
7264 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
7265 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
7266 * tree-vect-loop.c (vect_is_simple_reduction): Set
7267 STMT_VINFO_REDUC_CODE.
7268 (vectorizable_reduction): Remove dead and redundant code, use
7269 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
7270
7271 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
7272
7273 Fix breakage introduced by r276985.
7274
7275 * config/avr/avr.c (avr_option_override): Remove set of
7276 PARAM_ALLOW_STORE_DATA_RACES.
7277 * common/config/avr/avr-common.c (avr_option_optimization_table)
7278 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
7279
7280 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
7281
7282 * config/i386/i386.h (processor_costs): Add clear_ratio.
7283 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
7284 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
7285 of 6 and move_ratio in all cost models.
7286
7287 2019-10-17 Richard Biener <rguenther@suse.de>
7288
7289 * tree-vect-loop.c (check_reduction_path): Compute reduction
7290 operation here.
7291 (vect_is_simple_reduction): Remove special-case of single-stmt
7292 reduction path detection.
7293
7294 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
7295
7296 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
7297
7298 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
7299
7300 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
7301 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
7302 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
7303 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
7304 New combine patterns.
7305 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
7306 above.
7307 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
7308
7309 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
7310
7311 * tree-vrp.c (value_range_base::dump): Display +INF for both
7312 pointers and integers when appropriate.
7313
7314 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7315
7316 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
7317 when to use versioning threshold.
7318
7319 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7320
7321 * tree-vect-loop.c (determine_peel_for_niter): New function contained
7322 outlined code from ...
7323 (vect_analyze_loop_2): ... here.
7324
7325 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7326
7327 * tree-vect-loop.c (vect_transform_loop): Move code from here...
7328 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
7329 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
7330
7331 2019-10-17 Richard Biener <rguenther@suse.de>
7332
7333 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
7334 (vect_is_simple_reduction): Move all validity checks ...
7335 (vectorizable_reduction): ... here. Compute whether we
7336 need a fold-left reduction here.
7337 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
7338 both overloads, check needs_fold_left_reduction_p directly.
7339 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
7340
7341 2019-10-17 Richard Biener <rguenther@suse.de>
7342
7343 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
7344 TARGET_MEM_REF creation.
7345
7346 2019-10-17 Richard Biener <rguenther@suse.de>
7347
7348 PR tree-optimization/92129
7349 * tree-vect-loop.c (vectorizable_reduction): Also fail
7350 on GIMPLE_SINGLE_RHS.
7351
7352 2019-10-17 Jakub Jelinek <jakub@redhat.com>
7353
7354 PR tree-optimization/92056
7355 * tree-object-size.c (cond_expr_object_size): Return early if then_
7356 processing resulted in unknown size.
7357
7358 PR tree-optimization/92115
7359 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
7360 temporary if it could trap.
7361
7362 2019-10-17 Richard Biener <rguenther@suse.de>
7363
7364 PR debug/91887
7365 * dwarf2out.c (gen_formal_parameter_die): Also try to match
7366 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
7367
7368 2019-10-16 Jakub Jelinek <jakub@redhat.com>
7369
7370 * tree-ssa-strlen.c (maybe_invalidate): Use
7371 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
7372
7373 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
7374 Jim Wilson <jimw@sifive.com>
7375
7376 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
7377 regs to SIBCALL_REGS.
7378 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
7379 passing regs to SIBCALL_REGS.
7380
7381 2019-10-16 Martin Sebor <msebor@redhat.com>
7382
7383 PR tree-optimization/83821
7384 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
7385 the length of a string when available.
7386 (handle_builtin_memset) Add argument.
7387 (handle_store, strlen_check_and_optimize_call): Same.
7388 (check_and_optimize_stmt): Same. Pass it to callees.
7389
7390 2019-10-16 Martin Sebor <msebor@redhat.com>
7391
7392 PR tree-optimization/91996
7393 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
7394 information.
7395 (compare_nonzero_chars): Add an overload.
7396 (count_nonzero_bytes): Add an argument. Call overload above.
7397 Handle non-constant lengths in some range.
7398 (handle_store): Add an argument.
7399 (check_and_optimize_stmt): Pass an argument to handle_store.
7400
7401 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
7402
7403 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
7404
7405 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7406
7407 * config/mips/mips.c (mips_expand_builtin_insn): Force the
7408 operands which correspond to the same input-output register to
7409 have the same pseudo assigned to them.
7410
7411 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
7412
7413 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
7414
7415 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
7416
7417 * config/aarch64/aarch64.c (aarch64_classify_symbol):
7418 Apply reasonable limit to symbol offsets.
7419
7420 2019-10-16 Richard Biener <rguenther@suse.de>
7421
7422 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
7423 (vect_is_simple_reduction): Delay checking to
7424 vectorizable_reduction and relax the checking.
7425 (vectorizable_reduction): Check we have a simple use. Check
7426 for bogus condition reductions.
7427 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
7428 are looking at the last stmt in a pattern sequence when
7429 filling in backedge PHI values.
7430
7431 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
7432 Jiufu Guo <guojiufu@linux.ibm.com>
7433
7434 PR target/70010
7435 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
7436 the callee explicitly disables some isa_flags the caller is using.
7437
7438 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7439
7440 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
7441
7442 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7443
7444 * genmodes.c (mode_data::order): New field.
7445 (blank_mode): Update accordingly.
7446 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
7447 (make_vector_modes): Likewise.
7448 (VECTOR_MODES): Update use accordingly.
7449 (cmp_modes): Sort by the new order field ahead of sorting by size.
7450 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
7451 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
7452 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
7453 (aarch64_classify_vector_mode): Handle the new partial modes.
7454 (aarch64_vl_bytes): New function.
7455 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
7456 when counting the number of registers in an SVE mode.
7457 (aarch64_class_max_nregs): Likewise.
7458 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
7459 in registers yet.
7460 (aarch64_classify_address): Treat partial vectors analogously
7461 to full vectors.
7462 (aarch64_print_address_internal): Consolidate the printing of
7463 MUL VL addresses, using aarch64_vl_bytes as the number of
7464 bytes represented by "VL".
7465 (aarch64_vector_mode_supported_p): Reject partial vector modes.
7466
7467 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7468
7469 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
7470 rather than known_lt when choosing frame layouts.
7471
7472 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7473
7474 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
7475 that all the adjustments add up to the full frame size.
7476 Use crtl->outgoing_args_size directly as the final adjustment
7477 where appropriate.
7478
7479 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7480
7481 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
7482 "frame" reference instead of always referring directly to
7483 "cfun->machine->frame".
7484
7485 2019-10-16 Richard Biener <rguenther@suse.de>
7486
7487 PR tree-optimization/92119
7488 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
7489 against missing bswap lhs.
7490
7491 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7492
7493 PR middle-end/92033
7494 * poly-int.h (constant_lower_bound_with_limit): New function.
7495 (constant_upper_bound_with_limit): Likewise.
7496 * doc/poly-int.texi: Document them.
7497 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
7498 into the worst-case INTEGER_CST bounds.
7499
7500 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
7501
7502 PR ipa/91088
7503 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
7504 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
7505 * ipa-predicat.h (struct expr_eval_op): New struct.
7506 (expr_eval_ops): New typedef.
7507 (struct condition): Add type and param_ops fields, remove size field.
7508 (add_condition): Replace size parameter with type parameter, add
7509 param_ops parameter.
7510 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
7511 (predicate::add_clause): Add comparisons on type and param_ops.
7512 (dump_condition): Add debug dump for param_ops.
7513 (remap_after_inlining): Adjust call arguments to add_condition.
7514 (add_condition): Replace size parameter with type parameter, add
7515 param_ops parameter. Unshare constant value used in conditions.
7516 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
7517 parameter expressions using param_ops.
7518 (decompose_param_expr): New function.
7519 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
7520 to replace call to unmodified_parm_or_parm_agg_item.
7521 (set_switch_stmt_execution_predicate): Likewise.
7522 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
7523 with type.
7524 (inline_read_section): Read param_ops from summary stream.
7525 (ipa_fn_summary_write): Write param_ops to summary stream.
7526
7527 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
7528
7529 PR rtl-optimization/92107
7530 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
7531 expression written.
7532
7533 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
7534
7535 * config/darwin.c: Update description of fix and continue.
7536
7537 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
7538
7539 * config/darwin.c (darwin_binds_local_p): Update to call
7540 default_binds_local_p_3 () directly. amend comments.
7541
7542 2019-10-15 Richard Biener <rguenther@suse.de>
7543
7544 * lto-streamer-out.c (lto_variably_modified_type_p): New.
7545 (tree_is_indexable): Use it.
7546 * tree-streamer-out.c (pack_ts_type_common_value_fields):
7547 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
7548 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
7549
7550 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7551
7552 * config/msp430/msp430.md (zero_extendqipsi2): New.
7553 (zero_extendqisi2): Optimize case where src register and base dst
7554 register are the same.
7555 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
7556 (zero_extendpsisi2): Optimize r->m case.
7557 Add unnamed insn patterns to catch insns combine searches for when
7558 optimizing pointer manipulation.
7559
7560 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7561
7562 * config/msp430/msp430.md: Group zero_extend* insns together.
7563
7564 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7565
7566 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
7567 constraint.
7568 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
7569 POST_INC.
7570 (msp430_subreg): Likewise.
7571 (msp430_split_addsi): Likewise.
7572 (msp430_print_operand_addr): Likewise.
7573 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
7574 (USE_STORE_POST_INCREMENT): Define.
7575 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
7576 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
7577 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
7578 (msp430_general_dst_operand): New.
7579 (msp430_general_dst_nonv_operand): New.
7580 (msp430_nonsubreg_operand): Remove.
7581 (msp430_nonsubreg_dst_operand): New.
7582 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
7583 of defunct msp430_nonsubreg_operand.
7584 (msp430_nonsubregnonpostinc_or_imm_operand): New.
7585
7586 2019-10-15 Richard Biener <rguenther@suse.de>
7587
7588 PR tree-optimization/91929
7589 * tree-ssa-pre.c (pre_expr_d::loc): New member.
7590 (get_or_alloc_expr_for_name): Initialize it.
7591 (get_or_alloc_expr_for_constant): Likewise.
7592 (phi_translate_1): Copy it.
7593 (create_expression_by_pieces): Use the original location
7594 of the expression for the inserted stmt.
7595 (compute_avail): Record the location of the stmt for the
7596 expressions created.
7597
7598 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
7599
7600 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
7601 before using tree_to_uhwi.
7602
7603 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
7604
7605 * config/s390/s390.md: Run %a0:DI splitters only after reload.
7606
7607 2019-10-15 Richard Biener <rguenther@suse.de>
7608
7609 PR tree-optimization/92094
7610 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
7611 do not adjust the reduction definition def type.
7612 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
7613 defines the latch argument of the PHI.
7614
7615 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
7616
7617 PR target/92035
7618 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
7619 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
7620 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
7621 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
7622 _mm_maskz_roundscale_round_sd): New intrinsics.
7623 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
7624 __builtin_ia32_rndscales?_mask_round builtins instead of
7625 __builtin_ia32_rndscales?_round.
7626 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
7627 __builtin_ia32_rndscalesd_round): Remove.
7628 (__builtin_ia32_rndscaless_mask_round,
7629 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
7630 * config/i386/sse.md
7631 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
7632 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
7633 ... this, adjust and add subst atrributes to make it maskable.
7634
7635 2019-10-15 Richard Biener <rguenther@suse.de>
7636
7637 PR middle-end/92046
7638 * common.opt (fallow-store-data-races): New.
7639 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
7640 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
7641 * doc/invoke.texi (fallow-store-data-races): Document.
7642 (--param allow-store-data-races): Remove docs.
7643 * opts.c (default_options_table): Enable -fallow-store-data-races
7644 at -Ofast.
7645 (default_options_optimization): Do not enable --param
7646 allow-store-data-races at -Ofast.
7647 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
7648 instead of PARAM_ALLOW_STORE_DATA_RACES.
7649 * tree-ssa-loop-im.c (execute_sm): Likewise.
7650
7651 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7652
7653 PR tree-optimization/92085
7654 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
7655 instead of calling it unconditionally after
7656 delete_dead_or_redundant_assignment and fix indentation.
7657
7658 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7659
7660 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
7661 TARGET_VFP_DOUBLE.
7662 (*fmsub<SDF:mode>4): Likewise.
7663 *fnmsub<SDF:mode>4): Likewise.
7664 (*fnmadd<SDF:mode>4): Likewise.
7665
7666 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
7667
7668 * doc/tree-ssa.texi: Update renamed macro name.
7669
7670 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7671
7672 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
7673 vector constants.
7674
7675 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
7676
7677 * config/darwin.c: Use unsigned ints for the picbase label
7678 counters, initialise the vars explicitly.
7679 (update_pic_label_number_if_needed): Move a variable declaration
7680 to where it's needed.
7681 (machopic_output_function_base_name): Use a more strict checking
7682 assert, and and unsigned int for the picbase label counter.
7683 (machopic_get_function_picbase): Likewise.
7684
7685 2019-10-14 Richard Biener <rguenther@suse.de>
7686
7687 PR middle-end/92046
7688 * dse.c (scan_insn): Use param max_active_local_stores.
7689 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
7690 based on optimization level.
7691 * loop-invariant.c (move_loop_invariants): Adjust
7692 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
7693 * opts.c (default_options_optimization): Do not adjust
7694 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
7695 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
7696
7697 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
7698
7699 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
7700
7701 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
7702
7703 * config/arm/arm.c (arm_option_override): Don't override sched
7704 pressure algorithm.
7705
7706 2019-10-14 Richard Biener <rguenther@suse.de>
7707
7708 PR tree-optimization/92069
7709 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
7710 cycles do not set vect_nested_cycle on the latch definition.
7711
7712 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
7713
7714 * function-abi.h (expr_callee_abi): Declare.
7715 * function-abi.cc (expr_callee_abi): New function.
7716
7717 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
7718
7719 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
7720 into [1,MAX].
7721 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
7722 non-zero being represented as [1,MAX].
7723
7724 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
7725
7726 * tree-sra.c (dump_access): Add missing braces.
7727
7728 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
7729
7730 * config/darwin.c (machopic_indirection_name): Rework the
7731 function to emit linker-visible symbols only for indirections
7732 in the data section. Clean up the code and update comments.
7733
7734 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
7735
7736 * config/darwin.c (machopic_indirect_data_reference): Remove
7737 redundant code.
7738
7739 2019-10-13 Nathan Sidwell <nathan@acm.org>
7740
7741 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
7742
7743 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7744
7745 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
7746 c99_runtime.
7747
7748 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
7749
7750 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
7751 so non-virutal are before virutals.
7752 (output_function): Avoid body modifications.
7753
7754 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
7755
7756 * config/pa/pa.c (pa_output_call): Load descriptor address to register
7757 %r22. Load function address before global pointer.
7758 (pa_attr_length_indirect_call): Adjust length of inline versions of
7759 $$dyncall.
7760 (pa_output_indirect_call): Remove fast inline version of $$dyncall
7761 before normal cases. Update inline $$dyncall sequences to preserve
7762 function descriptor address in register %r22.
7763 (TRAMPOLINE_CODE_SIZE): Adjust.
7764 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
7765 register %r22 contains trampoline address.
7766 (pa_trampoline_init): Adjust offsets.
7767 (pa_trampoline_adjust_address): Likewise.
7768 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
7769
7770 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
7771
7772 PR target/67183
7773 * config/darwin.c (machopic_indirection): New field to flag
7774 non-lazy-symbol-pointers in the data section.
7775 (machopic_indirection_name): Compute if an indirection should
7776 appear in the data section.
7777 (machopic_output_data_section_indirection): New callback split
7778 from machopic_output_indirection.
7779 (machopic_output_stub_indirection): Likewise.
7780 (machopic_output_indirection): Retain the code for non-lazy
7781 symbol pointers in their regular section.
7782 (machopic_finish): Use the new callbacks to order the indirection
7783 output.
7784
7785 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
7786
7787 * config/darwin-protos.h (machopic_finish): Delete.
7788 * config/darwin.c (machopic_finish): Make static.
7789
7790 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
7791
7792 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
7793 sections when building kernel extension code.
7794
7795 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
7796
7797 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
7798 later standard."
7799
7800 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
7801
7802 * config/pa/pa.c (pa_option_override): Remove trailing comma
7803 from warning.
7804
7805 2019-10-12 Jakub Jelinek <jakub@redhat.com>
7806
7807 PR middle-end/92063
7808 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
7809 <case VEC_COND_EXPR>: Return false with *handled = false.
7810 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
7811 recursing on the first operand.
7812 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
7813 instead of tree_could_trap_p.
7814 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
7815
7816 2019-10-11 Jim Wilson <jimw@sifive.com>
7817
7818 PR rtl-optimization/91860
7819 * combine.c (subst): If new_rtx is a constant, also check for
7820 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
7821
7822 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
7823
7824 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
7825 INTVAL when calling store_bit_field.
7826
7827 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
7828
7829 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
7830 size.
7831
7832 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
7833
7834 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
7835 vectorizable_live_operation.
7836 (vectorizable_live_operation): Adjust parameters.
7837 * tree-vect-stmts.c (vect_init_vector,
7838 vect_gen_widened_results_half): Fix typo in function comment.
7839 (can_vectorize_live_stmts): Adjust function comment.
7840 Adjust parameters. Adjust call to vectorizable_live_operation.
7841 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
7842 (vect_transform_stmt): Adjust function comment. Adjust call to
7843 can_vectorize_live_stmts.
7844 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
7845
7846 2019-10-11 Richard Biener <rguenther@suse.de>
7847
7848 PR tree-optimization/90883
7849 PR tree-optimization/91091
7850 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
7851 alias-sets both for recording VN table entries and continuing
7852 walking after translating through copies. Handle same-sized
7853 reads from SSA names by returning the plain SSA name.
7854 (eliminate_dom_walker::eliminate_stmt): Properly handle
7855 non-size precision stores in redundant store elimination.
7856
7857 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
7858
7859 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
7860 (ggc_collect): Dump later to not interfere with release_page dump.
7861 (ggc_trim): New function.
7862 * ggc-none.c (ggc_trim): New.
7863 * ggc.h (ggc_trim): Declare.
7864
7865 2019-10-11 Richard Biener <rguenther@suse.de>
7866
7867 PR tree-optimization/92066
7868 PR tree-optimization/92046
7869 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7870 Fix bogus cost model check.
7871
7872 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
7873
7874 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
7875 (LANG_HOOKS_DECLS): Add it.
7876 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
7877 update comment for omp_is_optional_argument.
7878 * omp-general.c (omp_is_allocatable_or_ptr): New.
7879 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
7880 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
7881 Fortran's optional arguments and allocatable/pointer scalars
7882 with use_device_addr.
7883
7884 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
7885
7886 PR target/77918
7887 * config/s390/2827.md: Add new opcodes.
7888 * config/s390/2964.md: Likewise.
7889 * config/s390/3906.md: Likewise.
7890 * config/s390/8561.md: Likewise.
7891 * config/s390/s390-builtins.def (s390_vfchesb): Use
7892 the new vec_cmpgev4sf_quiet_nocc.
7893 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
7894 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
7895 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
7896 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
7897 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
7898 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
7899 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
7900 * config/s390/s390-modes.def (CCSFPS): New mode.
7901 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
7902 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
7903 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
7904 (s390_expand_vec_compare): Use non-signaling patterns where
7905 necessary.
7906 (s390_reverse_condition): Support CCSFPS.
7907 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
7908 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
7909 (asm_fcmp_op): Likewise.
7910 (*smaxv2df3_vx): Use pattern for quiet comparison.
7911 (*sminv2df3_vx): Likewise.
7912 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
7913 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
7914 (vec_cmpgt<mode>_quiet_nocc): Likewise.
7915 (vec_cmplt<mode>_quiet_nocc): New expander.
7916 (vec_cmpge<mode>_quiet_nocc): New pattern.
7917 (vec_cmple<mode>_quiet_nocc): New expander.
7918 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
7919 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
7920 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
7921 (*vec_cmpge<mode>_signaling_nocc): Likewise.
7922 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
7923 (vec_cmpungt<mode>): New expander.
7924 (vec_cmpunge<mode>): Likewise.
7925 (vec_cmpuneq<mode>): Use quiet patterns.
7926 (vec_cmpltgt<mode>): Allow only on z14+.
7927 (vec_cmpordered<mode>): Use quiet patterns.
7928 (vec_cmpunordered<mode>): Likewise.
7929 (VEC_CMP_EXPAND): Add ungt and unge.
7930
7931 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
7932
7933 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
7934 parameter.
7935 * lto-streamer-out.c: Include tree-dfa.h.
7936 (output_cfg): Do not use cfun.
7937 (lto_prepare_function_for_streaming): New.
7938 (output_function): Do not push cfun; do not initialize loop optimizer.
7939 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
7940 * passes.c (ipa_write_summaries): Use it.
7941 (ipa_write_optimization_summaries): Do not modify bodies.
7942 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
7943 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
7944 * tree-ssa-dse.c (pass_dse::execute): Update use of
7945 renumber_gimple_stmt_uids.
7946 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
7947
7948 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
7949
7950 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
7951 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
7952
7953 2019-10-10 Joseph Myers <joseph@codesourcery.com>
7954
7955 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
7956 macros.
7957 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
7958 Also define DFP macros for these conditions.
7959 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
7960 DEC128_SUBNORMAL_MIN): Do not define.
7961 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
7962 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
7963
7964 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
7965 Sandra Loosemore <sandra@codesourcery.com>
7966
7967 PR middle-end/26241
7968 * doc/lto.texi (IPA): Reference to the IPA passes.
7969 * doc/passes.texi (Pass manager): Add node IPA passes and
7970 description for each IPA pass.
7971
7972 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
7973
7974 * ipa-reference.c: Do not include splay-tree.h
7975 (reference_vars_to_consider): Turn to hash map.
7976 (get_static_name, ipa_init, analyze_function, propagate,
7977 stream_out_bitmap, ipa_reference_write_optimization_summary,
7978 ipa_reference_write_optimization_summary): Update.
7979
7980 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
7981
7982 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
7983
7984 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
7985
7986 * config/darwin.c: Lookup Objective C metadata and force indirection
7987 for IVAR refs.
7988
7989 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
7990
7991 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
7992 addresses.
7993 (mem_operand_gpr): Add check for prefixed addresses.
7994 (mem_operand_ds_form): Add check for prefixed addresses.
7995 (rs6000_legitimate_offset_address_p): If we support prefixed
7996 addresses, check for a 34-bit offset instead of 16-bit.
7997 (rs6000_legitimate_address_p): Add check for prefixed addresses.
7998 Do not allow load/store with update if the address is prefixed.
7999 (rs6000_mode_dependent_address): If we support prefixed
8000 addresses, check for a 34-bit offset instead of 16-bit.
8001
8002 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
8003
8004 PR target/77918
8005 * config/s390/vector.md (vcond_comparison_operator): New
8006 predicate.
8007 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
8008
8009 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8010
8011 PR 87488
8012 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
8013 -D.
8014 * configure.ac (--with-documentation-root-url): New option.
8015 * configure: Regenerate.
8016 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
8017 option URL, add it as a new string field of the diagnostic option.
8018 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
8019 (print_option_information): If get_option_url is non-NULL, call
8020 it, and if the result is non-NULL, potentially emit an escape
8021 sequence to markup the option text with the resulting URL.
8022 * diagnostic.h (diagnostic_context::get_option_url): New callback.
8023 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
8024 example of JSON output.
8025 * opts-diagnostic.h (get_option_url): New decl.
8026 * opts.c (get_option_url): New function.
8027 * toplev.c (general_init): Initialize the get_option_url callback.
8028
8029 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8030
8031 PR 87488
8032 * common.opt (fdiagnostics-urls=): New option.
8033 (diagnostic-url.h): Add SourceInclude.
8034 (diagnostic_url_rule): New enum.
8035 * diagnostic-color.c: Include "diagnostic-url.h".
8036 (diagnostic_urls_enabled_p): New function.
8037 * diagnostic-url.h: New file.
8038 * diagnostic.c: Include "diagnostic-url.h".
8039 (diagnostic_urls_init): New function.
8040 * diagnostic.h (diagnostic_urls_init): New decl.
8041 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8042 -fdiagnostics-urls to the list.
8043 (-fdiagnostics-urls): New option.
8044 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
8045 (driver::global_initializations): Call diagnostic_urls_init.
8046 * opts-global.c (init_options_once): Likewise.
8047 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
8048 * pretty-print.c (pretty_printer::pretty_printer): Initialize
8049 show_urls.
8050 (pp_begin_url): New function.
8051 (pp_end_url): New function.
8052 (selftest::test_urls): New selftest.
8053 (selftest::pretty_print_c_tests): Call it.
8054 * pretty-print.h (pretty_printer::show_urls): New field.
8055 (pp_begin_url): New decl.
8056 (pp_end_url): New decl.
8057
8058 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
8059
8060 PR target/92022
8061 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
8062
8063 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
8064
8065 PR target/88630
8066 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
8067 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
8068 also for TARGET_FPU_SH4_300.
8069 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
8070 TARGET_SH4_300.
8071 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
8072 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
8073 (*negsf2_i): Split into ...
8074 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
8075 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
8076 (**abssf2_i): Split into ...
8077 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
8078 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
8079 (*negdf2_i): Split into ...
8080 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
8081 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
8082 (**abssf2_i): Split into ...
8083 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
8084
8085 2019-10-10 Richard Biener <rguenther@suse.de>
8086
8087 PR middle-end/92046
8088 * opts.c (finish_options): Do not influence global --params
8089 from options that are adjustable per function.
8090 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8091 Apply --param adjustment based on active cost-model.
8092 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
8093 further store-sinking when vectorization or if-conversion
8094 are not enabled.
8095
8096 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8097
8098 PR middle-end/92037
8099 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
8100 rather than ggc_alloc_cleared to alloc symbol table.
8101 * toplev.c (general_init): Likewise.
8102 * cgraph.h (symbol_table): Explicitly construct every field.
8103
8104 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
8105
8106 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
8107 (PF_Z15): ... this.
8108 * config.gcc: Add z15 as option for --with-arch and --with-tune
8109 configure switches.
8110 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
8111 error reporting for unsupported builtins.
8112 * config/s390/s390-opts.h (enum processor_type): Rename
8113 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
8114 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
8115 * config/s390/driver-native.c (s390_host_detect_local_cpu):
8116 Likewise.
8117 * config/s390/s390-builtins.def: Likewise.
8118 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
8119 (s390_expand_builtin): Add missing check for unsupported builtins.
8120 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
8121 (s390_rtx_costs): Likewise.
8122 (s390_get_sched_attrmask): Rename arch13 to z15.
8123 (s390_get_unit_mask): Likewise.
8124 (s390_is_fpd): Likewise.
8125 (s390_is_fxd): Likewise.
8126 * config/s390/s390.h (enum processor_flags): Likewise.
8127 * config/s390/s390.md: Likewise.
8128 * config/s390/vector.md: Likewise.
8129 * config/s390/vx-builtins.md: Likewise.
8130 * config/s390/s390.opt: Add z15 to processor_type value.
8131
8132 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
8133
8134 PR target/91035
8135 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
8136 prototype.
8137 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
8138 ("split_stack_data", "split_stack_call")
8139 ("split_stack_call_<mode>", "split_stack_cond_call")
8140 ("split_stack_cond_call_<mode>"): Remove.
8141 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
8142 insn definition.
8143 * config/s390/s390.c (s390_output_split_stack_data): New function.
8144 (s390_expand_split_stack_prologue): Use the merged expander.
8145
8146 2019-10-09 Martin Sebor <msebor@redhat.com>
8147
8148 PR tree-optimization/90879
8149 * builtins.c (check_access): Avoid using maxbound when null.
8150 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
8151 * doc/invoke.texi (-Wstring-compare): Document new warning option.
8152 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
8153 conditional.
8154 (get_range_strlen): Overwrite initial maxbound when non-null.
8155 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
8156 changes.
8157 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
8158 (used_only_for_zero_equality): New function.
8159 (handle_builtin_memcmp): Call it.
8160 (determine_min_objsize): Return an integer instead of tree.
8161 (get_len_or_size, strxcmp_eqz_result): New functions.
8162 (maybe_warn_pointless_strcmp): New function.
8163 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
8164 between a longer string and a smaller array.
8165 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
8166
8167 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
8168
8169 * config/darwin.c (darwin_override_options): Make the check for
8170 Objective-C ABI version more specific for 64bit code.
8171
8172 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
8173
8174 * config/darwin.c (machopic_indirect_data_reference): Set flag to
8175 indicate that the new symbol is an indirection.
8176 (machopic_indirect_call_target): Likewise.
8177 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
8178 (MACHO_SYMBOL_INDIRECTION_P): New.
8179 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
8180
8181 2019-10-08 Jason Merrill <jason@redhat.com>
8182
8183 * doc/invoke.texi: Document -fconcepts-ts.
8184
8185 2019-10-09 Richard Biener <rguenther@suse.de>
8186
8187 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
8188 allow stmts other than GIMPLE_ASSIGN in nested cycles.
8189
8190 2019-10-08 Richard Biener <rguenther@suse.de>
8191
8192 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
8193 (_stmt_vec_info::force_single_cycle): Likewise.
8194 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
8195 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
8196 * tree-vect-loop.c (vectorizable_reduction): Set
8197 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
8198 (vect_transform_reduction): Use them to remove redundant code.
8199 (vect_transform_cycle_phi): Likewise.
8200
8201 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
8202
8203 PR tree-optimization/90836
8204 * match.pd (popcount): New pattern.
8205
8206 2019-10-08 Martin Sebor <msebor@redhat.com>
8207
8208 PR middle-end/92026
8209 PR middle-end/92014
8210 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
8211 again once nbytes has been set. Set the access size when not yet set.
8212
8213 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
8214
8215 * config/darwin.c (machopic_select_section): Remove dead code for
8216 old Objective-C section selection method, replace with unreachable.
8217
8218 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
8219
8220 * config/darwin.c (machopic_indirect_data_reference): Check for
8221 required indirections before making direct access to defined
8222 values.
8223 (machopic_output_indirection): Place the indirected pointes for
8224 required indirections into the non-lazy symbol pointers section.
8225 (darwin_encode_section_info):
8226 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
8227 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
8228
8229 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
8230
8231 PR target/91994
8232 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
8233 instead of ALL_SSE_REG to check if function call preserves some
8234 256-bit SSE registers.
8235
8236 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8237
8238 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
8239 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
8240 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
8241
8242 2019-10-08 Richard Biener <rguenther@suse.de>
8243
8244 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
8245 (_stmt_vec_info::is_reduc_info): Add.
8246 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
8247 (vectorizable_condition): Remove.
8248 (vectorizable_shift): Likewise.
8249 (vectorizable_reduction): Adjust.
8250 (info_for_reduction): New.
8251 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
8252 (vect_analyze_scalar_cycles_1): ... here.
8253 (vect_analyze_loop_operations): Adjust.
8254 (needs_fold_left_reduction_p): Simplify for single caller.
8255 (vect_is_simple_reduction): Likewise. Remove stmt restriction
8256 for nested cycles not part of double reductions.
8257 (vect_model_reduction_cost): Pass in the reduction type.
8258 (info_for_reduction): New function.
8259 (vect_create_epilog_for_reduction): Use it, access reduction
8260 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
8261 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
8262 (vectorize_fold_left_reduction): Remove pointless assert.
8263 (vectorizable_reduction): Analyze the full reduction when
8264 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
8265 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
8266 stmt code-generation to vectorizable_* in most cases. Verify
8267 code-generation only for cases handled by
8268 vect_transform_reductuon.
8269 (vect_transform_reduction): Use info_for_reduction to get at
8270 reduction meta. Simplify.
8271 (vect_transform_cycle_phi): Likewise.
8272 (vectorizable_live_operation): Likewise.
8273 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
8274 at the PHI node for STMT_VINFO_REDUC_TYPE.
8275 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
8276 longer necessary code.
8277 * tree-vect-stmts.c (vectorizable_shift): Make static again.
8278 (vectorizable_condition): Likewise. Get at reduction related
8279 info via info_for_reduction.
8280 (vect_analyze_stmt): Adjust.
8281 (vect_transform_stmt): Likewise.
8282 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
8283 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
8284
8285 2019-10-08 Joseph Myers <joseph@codesourcery.com>
8286
8287 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
8288 -fno-fp-int-builtin-inexact default for C2X.
8289
8290 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8291 Richard Biener <rguenther@suse.de>
8292
8293 PR tree-optimization/91532
8294 * tree-if-conv.c: Include tree-ssa-dse.h.
8295 (ifcvt_local_dce): Change param from bb to loop,
8296 and call dse_classify_store.
8297 (tree_if_conversion): Pass loop instead of loop->header as arg
8298 to ifcvt_local_dce.
8299 * tree-ssa-dse.c: Include tree-ssa-dse.h.
8300 (delete_dead_or_redundant_assignment): Remove static qualifier from
8301 declaration, and add prototype in tree-ssa-dse.h.
8302 (dse_store_status): Move to tree-ssa-dse.h.
8303 (dse_classify_store): Remove static qualifier and add new tree param
8304 stop_at_vuse, and add prototype in tree-ssa-dse.h.
8305 * tree-ssa-dse.h: New header.
8306
8307 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
8308
8309 * config/darwin.c (machopic_output_indirection): Don't put
8310 hidden symbol indirections into the .data section, use the
8311 non-lazy symbol pointers section as normal.
8312 (darwin_encode_section_info): Record if a symbol is hidden.
8313 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
8314 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
8315
8316 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
8317
8318 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
8319 predicates instead of accessing bits directly.
8320 (machopic_indirect_call_target): Likewise.
8321 (machopic_output_indirection): Likewise.
8322 (darwin_encode_section_info): Improve description. Use renamed
8323 symbol flags. Use predicate macros for variables and functions.
8324 * config/darwin.h:
8325 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
8326 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
8327 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
8328 (MACHO_SYMBOL_VARIABLE_P): New.
8329 (MACHO_SYMBOL_DEFINED_P):New.
8330 (MACHO_SYMBOL_STATIC_P): New.
8331 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
8332 (SYMBOL_FLAG_SUBT_DEP): New.
8333 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
8334
8335 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8336
8337 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
8338 (msp430_expand_epilogue): Likewise.
8339 * config/msp430/predicates.md: Likewise.
8340 * config/msp430/msp430.md: Likewise.
8341 Replace blocks of 8 spaces with tabs.
8342
8343 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8344
8345 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
8346 * config/msp430/msp430.c (msp430_split_addsi): New.
8347 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
8348 a block of C code for splitting addsi.
8349
8350 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
8351
8352 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
8353 ix86_expand_rounddf_32): Reorder functions.
8354 * config/i386/i386-protos.h: Update.
8355
8356 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8357
8358 * config.in: Regenerate.
8359 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
8360 Add new "Yx" constraint.
8361 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
8362 function.
8363 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
8364 prototype.
8365 * config/msp430/msp430.c (msp430_option_override): Allow the lower
8366 code/data region to be selected in the small memory model.
8367 (msp430_section_attr): Don't warn if the "section" and "lower"
8368 attributes are used together.
8369 (msp430_handle_generic_attribute): Likewise.
8370 (msp430_var_in_low_mem): New function.
8371 (TARGET_ENCODE_SECTION_INFO): Define.
8372 (msp430_encode_section_info): New function.
8373 (gen_prefix): Return early in the small memory model.
8374 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
8375 ".lower" prefix if -m{code,data}-region=lower have been passed.
8376 (msp430_output_aligned_decl_common): Emit common symbols when
8377 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
8378 set.
8379 (TARGET_ASM_FILE_END): Define.
8380 (msp430_file_end): New function.
8381 (msp430_do_not_relax_short_jumps): Allow relaxation when
8382 function will be in the lower region.
8383 (msp430_op_not_in_high_mem): New function.
8384 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
8385 the 'X' operand selector.
8386 Clarify comment for 'x' operand selector.
8387 * config/msp430/msp430.h (LINK_SPEC): Propagate
8388 -m{code,data}-region to the linker via spec function
8389 msp430_propagate_region_opt.
8390 (msp430_propagate_region_opt): New prototype.
8391 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
8392 (SYMBOL_FLAG_LOW_MEM): Define.
8393 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
8394 selector.
8395 (zero_extendqihi2): Fix operand number used by "%X" selector.
8396 (zero_extendqisi2): Likewise.
8397 (zero_extendhisi2): Likewise.
8398 (movqi): Use "Yx" constraint in place of "%X" operand selector.
8399 (movhi): Likewise.
8400 (addqi3): Likewise.
8401 (addhi3): Likewise.
8402 (addsi3): Likewise.
8403 (addhi3_cy): Likewise.
8404 (addchi4_cy): Likewise.
8405 (subqi3): Likewise.
8406 (subhi3): Likewise.
8407 (subsi3): Likewise.
8408 (bic<mode>3): Likewise.
8409 (and<mode>3): Likewise.
8410 (ior<mode>3): Likewise.
8411 (xor<mode>3): Likewise.
8412 (slli_1): Add missing "%X" operand selector.
8413 (slll_1): Likewise.
8414 (slll_2): Likewise.
8415 (srai_1): Likewise.
8416 (sral_1): Likewise.
8417 (sral_2): Likewise.
8418 (srli_1): Likewise.
8419 (srll_1): Likewise.
8420 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
8421 selector.
8422 (cbranchhi4_real): Likewise.
8423 (cbranchqi4_reversed): Likewise.
8424 (cbranchhi4_reversed): Likewise.
8425 (*bitbranch<mode>4): Likewise.
8426 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
8427 * config/msp430/msp430.opt (mcode-region=): Set default to
8428 MSP430_REGION_LOWER. Improve docstring.
8429 (mdata-region=): Likewise.
8430 (muse-lower-region-prefix): New option.
8431 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
8432 mdata-region=none multilib.
8433 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
8434 mdata-region=none multilib.
8435 MULTILIB_EXCEPTIONS: Remove.
8436 MULTILIB_REQUIRED: Define.
8437 * configure: Regenerate.
8438 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
8439 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
8440 * doc/extend.texi: Clarify comment for {upper,lower,either}
8441 function attributes.
8442 Add separate description for "lower" variable attribute.
8443
8444 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
8445
8446 PR target/77918
8447 * optabs-tree.c (vcond_icode_p): New function.
8448 (vcond_eq_icode_p): Likewise.
8449 (expand_vec_cond_expr_p): Use vcond_icode_p and
8450 vcond_eq_icode_p.
8451 * optabs.c (can_vcond_compare_p): New function.
8452 * optabs.h (can_vcond_compare_p): Likewise.
8453
8454 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
8455
8456 PR target/77918
8457 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
8458 caller passes a non-trapping condition.
8459 (is_gimple_condexpr): Allow trapping conditions.
8460 (is_gimple_condexpr_1): New helper function.
8461 (is_gimple_condexpr_for_cond): New function, acts like old
8462 is_gimple_condexpr.
8463 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
8464 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
8465 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
8466 * gimplify.c (gimplify_cond_expr): Use
8467 is_gimple_condexpr_for_cond.
8468 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
8469 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
8470 VEC_COND_EXPR.
8471 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
8472 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
8473 is_gimple_condexpr_for_cond, remove pointless tmp check
8474 (forward_propagate_into_cond): Remove pointless tmp check.
8475
8476 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
8477
8478 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
8479 match that of other gsi_next_* functions. Adjust the comment.
8480 (gsi_start_nonvirtual_phis): New function.
8481 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
8482 gsi_next_nonvirtual_phi accordingly. (No functional change.)
8483
8484 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
8485
8486 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
8487 setjmp situation here. Fix a verb's ending: "the exact variables or
8488 elements for which there are warnings depends" -> "... depend".
8489
8490 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
8491
8492 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
8493
8494 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
8495
8496 * ipa-prop.c (ipa_vr::nonzero_p): New.
8497 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
8498 non-zero range.
8499 * ipa-prop.h (class ipa_vr): Add nonzero_p.
8500 * tree-vrp.c (range_has_numeric_bounds_p): New.
8501 (range_int_cst_p): Use range_has_numeric_bounds_p.
8502 (get_range_op_handler): New.
8503 (supported_types_p): New.
8504 (defined_ranges_p): New.
8505 (drop_undefines_to_varying): New.
8506 (range_fold_binary_symbolics_p): New.
8507 (range_fold_unary_symbolics_p): New.
8508 (range_fold_unary_expr): Extract out into above functions.
8509 (range_fold_binary_expr): Same.
8510 (value_range_base::normalize_addresses): New.
8511 (value_range_base::normalize_symbolics): Normalize addresses.
8512 * tree-vrp.h (class value_range_base): Add normalize_addresses.
8513
8514 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
8515
8516 * tree-vrp.c (value_range_base::singleton_p): Use
8517 value_range_base::num_pairs instead of vrp_val_is* to check
8518 if a range has one sub-range.
8519
8520 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
8521
8522 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
8523 DEF is not a true earlyclobber but is tied to a specific input
8524 operand, and so is effectively earlyclobber wrt inputs that have
8525 different values.
8526 (make_early_clobber_and_input_conflicts): Pass this case to the above.
8527
8528 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
8529
8530 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
8531 (pod_mode): Mark operators likewise.
8532 (scalar_int_mode): Mark non-default constructors and
8533 operators with CONSTEXPR.
8534 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
8535 (fixed_size_mode): Likewise.
8536
8537 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
8538
8539 PR target/91994
8540 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
8541 and wrap the unspec_volatile in a parallel.
8542 (*avx_vzeroupper): New define_insn. Use a match_parallel around
8543 the unspec_volatile.
8544 * config/i386/predicates.md (vzeroupper_pattern): Expect the
8545 unspec_volatile to be wrapped in a parallel.
8546 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
8547 (ix86_add_reg_usage_to_vzerouppers): New functions.
8548 (rest_of_handle_insert_vzeroupper): Use them to add register
8549 usage information to the vzeroupper instructions.
8550
8551 2019-10-07 Richard Biener <rguenther@suse.de>
8552
8553 PR tree-optimization/91975
8554 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
8555 handle invariants.
8556
8557 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
8558
8559 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
8560 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
8561
8562 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
8563
8564 * config/darwin.c (darwin_override_options): Adjust objective-c
8565 ABI version error messages to avoid punctuation and contracted
8566 negations.
8567
8568 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
8569
8570 * ipa-inline.c: Fix type; compute size rather than self_size
8571 for size of caller function.
8572
8573 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
8574
8575 PR target/59888
8576 * config/darwin.c (darwin_rodata_section): Add relocation flag,
8577 choose const_data section for constants with relocations.
8578 (machopic_select_section): Pass relocation flag to
8579 darwin_rodata_section ().
8580
8581 2019-10-05 Jakub Jelinek <jakub@redhat.com>
8582
8583 PR tree-optimization/91734
8584 * generic-match-head.c: Include fold-const-call.h.
8585 * match.pd (sqrt(x) cmp c): Check the boundary value and
8586 in case inexact computation of c*c affects comparison of the boundary,
8587 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
8588 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
8589 for -frounding-math. For c2, try the next smaller or larger floating
8590 point constant depending on comparison code and if it has the same
8591 sqrt as c2, use it instead of c2.
8592
8593 2019-10-04 Martin Sebor <msebor@redhat.com>
8594
8595 PR middle-end/91977
8596 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
8597 MEM_REF right operand. Avoid failing for MEM_REF assignments from
8598 uninitialized objects.
8599
8600 2019-10-04 Martin Sebor <msebor@redhat.com>
8601
8602 * builtins.c (compute_objsize): Add an argument.
8603 * tree-object-size.c (addr_object_size): Same.
8604 (compute_builtin_object_size): Same.
8605 * tree-object-size.h (compute_builtin_object): Same.
8606
8607 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
8608
8609 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
8610
8611 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
8612
8613 * match.pd (sinh (x) / cosh (x)): New simplification rule.
8614
8615 2019-10-04 Martin Jambor <mjambor@suse.cz>
8616
8617 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
8618 fntype when switching to calling memcpy instead of memset.
8619
8620 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8621
8622 * hash-table.h (hash_table::empty_slow): Don't assign
8623 size_t values to int variables.
8624
8625 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8626
8627 * expr.c (convert_mode_scalar): Remove shadowing local var.
8628 (emit_block_move): Rename local vars.
8629 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
8630 (emit_push_insn): Rename local vars.
8631 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
8632 shadowing local vars.
8633 (store_constructor): Remove shadowing local vars. Rename local var.
8634 (store_field, expand_cond_expr_using_cmove,
8635 expand_expr_real_2): Remove shadowing local vars.
8636 (expand_expr_real_1,
8637 do_store_flag): Remove shadowing local vars. Rename local vars.
8638
8639 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8640
8641 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
8642
8643 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8644
8645 * genmatch.c (commutate): Rename local var.
8646 (lower_cond): Reuse local var.
8647 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
8648 dt_operand::gen, dt_operand::gen_gimple_expr,
8649 dt_simplify::gen): Add a param. Rename generated vars.
8650 (decision_tree::insert_operand,
8651 (capture_info::walk_match, capture_info::walk_result,
8652 capture_info::walk_c_expr): Rename local vars.
8653 (expr::gen_transform): Rename generated vars.
8654 Use snprintf. Rename local vars.
8655 (capture::gen_transform, dt_operand::get_name,
8656 dt_operand::gen_opname): Rename generated vars.
8657 (write_predicate): Adjust call to gen_kids.
8658 (parser::get_internal_capture_id): Rename generated vars.
8659 (parser::parse_expr): Rename local vars.
8660 (parser::parse_if): Remove local var.
8661 (parser::parse_pattern, add_operator): Rename local vars.
8662
8663 2019-10-04 Joseph Myers <joseph@codesourcery.com>
8664
8665 * builtins.def (DEF_C2X_BUILTIN): New macro.
8666 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
8667 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
8668 (strndup): Use DEF_C2X_BUILTIN.
8669 * coretypes.h (enum function_class): Add function_c2x_misc.
8670
8671 2019-10-04 Maya Rashish <coypu@sdf.org>
8672
8673 * ira-color.c (update_costs_from_allocno): Call
8674 ira_init_register_move_cost_if_necessary.
8675
8676 2019-10-04 Jeff Law <law@redhat.com>
8677
8678 * config/h8300/h8300.md (cpymemsi): Disable.
8679 (movmd, movmd_internal_<mode>, movstr, movsd):
8680 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
8681 (movmd splitter, movsd splitter): Likewise.
8682
8683 * range-op.cc (range_tests): Avoid two tests when ints and
8684 shorts are the same size.
8685
8686 2019-10-04 Richard Biener <rguenther@suse.de>
8687
8688 PR lto/91968
8689 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
8690 BLOCK_VARS.
8691
8692 2019-10-04 Richard Biener <rguenther@suse.de>
8693
8694 PR tree-optimization/91982
8695 * tree-vect-loop.c (vectorizable_live_operation): Also guard
8696 against EXTRACT_LAST_REDUCTION.
8697 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
8698
8699 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
8700
8701 * range-op.o (value_range_from_overflowed_bounds): Rename from
8702 adjust_overflow_bound.
8703 (value_range_with_overflow): Rename from
8704 create_range_with_overflow.
8705 (create_possibly_reversed_range): Adjusted for above renames.
8706 (operator_*::wi_fold): Same.
8707 (cross_product_operator::wi_cross_productor): Same.
8708
8709 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8710
8711 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
8712 -Wshadow=compatible-local): Fix description.
8713 Add an example where -Wshadow=compatible-local does not
8714 warn.
8715
8716 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
8717
8718 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
8719
8720 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
8721 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
8722
8723 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
8724
8725 * expr.c (emit_block_move_hints): Slightly cleaner fix to
8726 can_move_by_pieces issue.
8727
8728 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
8729
8730 PR target/87243
8731 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
8732 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
8733 is available and the user has not set one on the command line.
8734
8735 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
8736
8737 PR target/91769
8738 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
8739 instead of REGNO equality check on addr.reg.
8740
8741 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
8742
8743 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
8744 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
8745 * doc/invoke.texi (inline-heuristics-hint-percent,
8746 inline-heuristics-hint-percent-O2): Document.
8747 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
8748 hint attribute.
8749 (can_inline_edge_by_limits_p): Use it.
8750
8751 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
8752
8753 * config/arm/arm.c (arm_print_value): Use real_to_decimal
8754 to print CONST_DOUBLEs.
8755
8756 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
8757
8758 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
8759 * ipa-prop.c (ipcp_free_transformation_sum): New function.
8760 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
8761
8762 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
8763
8764 * Makefile.in (OBJS): Add range.o and range-op.o.
8765 Remove wide-int-range.o.
8766 * function-tests.c (test_ranges): New.
8767 (function_tests_c_tests): Call test_ranges.
8768 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
8769 range_fold_unary_expr instead of extract_range_from_unary_expr.
8770 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
8771 * range-op.cc: New file.
8772 * range-op.h: New file.
8773 * range.cc: New file.
8774 * range.h: New file.
8775 * selftest.h (range_tests): New prototype.
8776 * ssa.h: Include range.h.
8777 * tree-vrp.c (value_range_base::value_range_base): New
8778 constructors.
8779 (value_range_base::singleton_p): Do not call
8780 ranges_from_anti_range until sure we will need to.
8781 (value_range_base::type): Rename gcc_assert to
8782 gcc_checking_assert.
8783 (vrp_val_is_max): New argument.
8784 (vrp_val_is_min): Same.
8785 (wide_int_range_set_zero_nonzero_bits): Move from
8786 wide-int-range.cc.
8787 (extract_range_into_wide_ints): Remove.
8788 (extract_range_from_multiplicative_op): Remove.
8789 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
8790 from extract_range_from_binary_expr.
8791 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
8792 from extract_range_from_binary_expr.
8793 (extract_range_from_binary_expr): Remove.
8794 (normalize_for_range_ops): New.
8795 (range_fold_binary_expr): New.
8796 (range_fold_unary_expr): New.
8797 (value_range_base::num_pairs): New.
8798 (value_range_base::lower_bound): New.
8799 (value_range_base::upper_bound): New.
8800 (value_range_base::upper_bound): New.
8801 (value_range_base::contains_p): New.
8802 (value_range_base::invert): New.
8803 (value_range_base::union_): New.
8804 (value_range_base::intersect): New.
8805 (range_compatible_p): New.
8806 (value_range_base::operator==): New.
8807 (determine_value_range_1): Call range_fold_*expr instead of
8808 extract_range_from_*expr.
8809 * tree-vrp.h (class value_range_base): Add new constructors.
8810 Add methods for union_, intersect, operator==, contains_p,
8811 num_pairs, lower_bound, upper_bound, invert.
8812 (vrp_val_is_min): Add handle_pointers argument.
8813 (vrp_val_is_max): Same.
8814 (extract_range_from_unary_expr): Remove.
8815 (extract_range_from_binary_expr): Remove.
8816 (range_fold_unary_expr): New.
8817 (range_fold_binary_expr): New.
8818 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
8819 range_fold_binary_expr instead of extract_range_from_binary_expr.
8820 (vr_values::extract_range_basic): Same.
8821 (vr_values::extract_range_from_unary_expr): Call
8822 range_fold_unary_expr instead of extract_range_from_unary_expr.
8823 * wide-int-range.cc: Remove.
8824 * wide-int-range.h: Remove.
8825
8826 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
8827
8828 * config/rs6000/rs6000.c (mem_operand_gpr): Use
8829 SIGNED_16BIT_OFFSET_EXTRA_P macro.
8830 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
8831 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
8832 macro.
8833
8834 2019-10-02 Joseph Myers <joseph@codesourcery.com>
8835
8836 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
8837 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
8838 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
8839 * glimits.h: Likewise.
8840
8841 2019-10-03 Jakub Jelinek <jakub@redhat.com>
8842
8843 PR rtl-optimization/91976
8844 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
8845 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
8846 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
8847
8848 2019-10-02 Martin Sebor <msebor@redhat.com>
8849
8850 PR tree-optimization/80936
8851 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
8852
8853 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
8854
8855 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
8856 instead of reg_class_contents[ALL_REGS].
8857
8858 2019-09-30 Jason Merrill <jason@redhat.com>
8859
8860 Add some hash_map_safe_* functions like vec_safe_*.
8861 * hash-map.h (default_hash_map_size): New variable.
8862 (create_ggc): Use it as default argument.
8863 (hash_map_maybe_create, hash_map_safe_get)
8864 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
8865
8866 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
8867
8868 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
8869 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
8870 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
8871 (can_inline_edge_by_limits_p): Use it.
8872 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
8873 (want_inline_small_function_p): Use O2 bounds.
8874 (edge_badness): LIkewise.
8875 * opts.c (default_options): Add OPT_finline_functions.
8876 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
8877 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
8878 New parameters.
8879 * doc/invoke.texi (-finline-functions): Update documentation.
8880 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
8881 inline-min-speedup-O2): Document.
8882 (early-inlining-insns-O2): Simplify docs.
8883
8884 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
8885
8886 PR rtl-optimization/87047
8887 * ifcvt.c (average_cost): New static function. Use it...
8888 (noce_process_if_block): ... here.
8889
8890 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
8891
8892 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
8893 * config/rs6000/rs6000-string.c (expand_block_move): Add
8894 might_overlap parm.
8895 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
8896 (cpymemsi): Add might_overlap parm to expand_block_move() call.
8897
8898 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
8899
8900 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
8901 (expand_builtin_memcpy): Use might_overlap parm.
8902 (expand_builtin_mempcpy_args): Use might_overlap parm.
8903 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
8904 (expand_builtin_memory_copy_args): Add might_overlap parm.
8905 * expr.c (emit_block_move_via_cpymem): Rename to
8906 emit_block_move_via_pattern, add might_overlap parm, use cpymem
8907 or movmem optab as appropriate.
8908 (emit_block_move_hints): Add might_overlap parm, do the right
8909 thing for might_overlap==true.
8910 * expr.h (emit_block_move_hints): Update prototype.
8911
8912 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
8913
8914 * tree-eh.h (unsplit_eh_edges): Declare.
8915 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
8916 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
8917 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
8918 (struct store_immediate_info): Add lp_nr field.
8919 (store_immediate_info::store_immediate_info): Add NR2 parameter and
8920 initialize lp_nr with it.
8921 (struct merged_store_group): Add lp_nr and only_constants fields.
8922 (merged_store_group::merged_store_group): Initialize them.
8923 (merged_store_group::can_be_merged_into): Deal with them.
8924 (pass_store_merging): Rename terminate_and_release_chain into
8925 terminate_and_process_chain.
8926 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
8927 renaming and remove useless assertions.
8928 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
8929 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
8930 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
8931 instead of always recomputing it and compare lp_nr.
8932 (imm_store_chain_info::output_merged_store): If the group is in an
8933 active EH region, register new stores if they can throw. Moreover,
8934 if the insertion has created new basic blocks, adjust the PHI nodes
8935 of the post landing pad.
8936 (imm_store_chain_info::output_merged_stores): If the original stores
8937 are in an active EH region, deregister them.
8938 (lhs_valid_for_store_merging_p): Prettify.
8939 (adjust_bit_pos): New function extracted from...
8940 (mem_valid_for_store_merging): ...here. Use it for the base address
8941 and also for the offset if it is the addition of a constant.
8942 (lp_nr_for_store): New function.
8943 (pass_store_merging::process_store): Change return type to bool.
8944 Call lp_nr_for_store to initialize the store info. Propagate the
8945 return status of various called functions to the return value.
8946 (store_valid_for_store_merging_p): New predicate.
8947 (enum basic_block_status): New enumeration.
8948 (get_status_for_store_merging): New function.
8949 (pass_store_merging::execute): If the function can throw and catch
8950 non-call exceptions, unsplit the EH edges on entry and clean up the
8951 CFG on exit if something changed. Call get_status_for_store_merging
8952 for every basic block and keep the chains open across basic blocks
8953 when possible. Terminate and process open chains at the end, if any.
8954
8955 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
8956
8957 * reginfo.c (globalize_reg): Fix shadowed variable in
8958 function_abis walk.
8959
8960 2019-10-02 Martin Jambor <mjambor@suse.cz>
8961
8962 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
8963 do not compute some stuff when set.
8964 (cgraph_node::create_edge): Likewise.
8965 (cgraph_node::create_indirect_edge): Renamed last parameter to
8966 coning_p and flipped its meaning, don't even calculate
8967 inline_failed when set.
8968 * cgraph.h (cgraph_node::create_edge): Add new parameter.
8969 (symbol_table::::create_edge): Likewise.
8970 (cgraph_node::create_indirect_edge): Rename last parameter, flip
8971 the default value.
8972 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
8973 call graph edge creating functions.
8974
8975 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
8976
8977 PR c++/91222
8978 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
8979 namespace types.
8980
8981 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
8982
8983 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
8984
8985 2019-10-02 Richard Biener <rguenther@suse.de>
8986
8987 * tree-vectorizer.h (vect_transform_reduction): Declare.
8988 * tree-vect-stmts.c (vect_transform_stmt): Use it.
8989 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
8990 stmt transform to ...
8991 (vect_transform_reduction): ... this.
8992
8993 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
8994
8995 * omp-low.c (lower_omp_target): Dereference optional argument
8996 to work with the right pointer.
8997
8998 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
8999
9000 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
9001 false.
9002 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
9003 * langhooks.h (omp_is_optional_argument): New hook.
9004 * omp-general.c (omp_is_optional_argument): New.
9005 * omp-general.h (omp_is_optional_argument): New declaration.
9006 * omp-low.c (lower_omp_target): Create temporary for received value
9007 and take the address for new_var if the original variable was a
9008 DECL_BY_REFERENCE. Use size of referenced object when a
9009 pass-by-reference optional argument used as argument to firstprivate.
9010
9011 2019-10-02 Jakub Jelinek <jakub@redhat.com>
9012
9013 PR tree-optimization/91940
9014 * tree-vect-patterns.c: Include tree-vector-builder.h and
9015 vec-perm-indices.h.
9016 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
9017 unpromoting the argument back to uint16_t, or by converting into a
9018 rotate, or into shifts plus ior.
9019
9020 2019-10-02 Richard Biener <rguenther@suse.de>
9021
9022 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
9023 New.
9024 (vect_transform_cycle_phi): Declare.
9025 * tree-vect-stmts.c (vect_transform_stmt): Call
9026 vect_transform_cycle_phi.
9027 * tree-vect-loop.c (vectorizable_reduction): Split out
9028 PHI transformation stage to ...
9029 (vect_transform_cycle_phi): ... here.
9030
9031 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9032
9033 PR middle-end/91957
9034 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
9035 eliminable registers.
9036 (make_hard_regno_live): Likewise, and don't make them live.
9037
9038 2019-10-01 David Malcolm <dmalcolm@redhat.com>
9039
9040 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
9041 Call pp_emit_prefix.
9042 (layout::print_source_line): Likewise.
9043 (layout::start_annotation_line): Likewise.
9044 (diagnostic_show_locus): Remove call to temporarily clear the
9045 prefix.
9046 (selftest::test_one_liner_fixit_remove): Add test coverage for the
9047 interaction of pp_set_prefix with rulers and fix-it hints.
9048 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
9049 prefix when calling diagnostic_show_locus, rather than destroying
9050 it afterwards.
9051 (print_parseable_fixits): Temporarily clear prefix.
9052 * pretty-print.c (pp_format): Save and restore line_length, rather
9053 than assuming it is zero.
9054 (pp_output_formatted_text): Remove assertion that line_length is
9055 zero.
9056
9057 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9058
9059 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
9060 Rename to ...
9061 (nonoverlapping_refs_since_match_p): ... this; handle also
9062 ARRAY_REFs.
9063 (alias_stats): Update stats.
9064 (dump_alias_stats): Likewise.
9065 (cheap_array_ref_low_bound): New function.
9066 (aliasing_matching_component_refs_p): Add partial_overlap
9067 argument;
9068 pass it to nonoverlapping_refs_since_match_p.
9069 (aliasing_component_refs_walk): Update call of
9070 aliasing_matching_component_refs_p
9071 (nonoverlapping_array_refs_p): New function.
9072 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
9073 indirect_refs_may_alias_p): Update calls of
9074 nonoverlapping_refs_since_match_p.
9075
9076 2019-10-01 Maya Rashish <coypu@sdf.org>
9077
9078 PR target/85401
9079 * ira-color.c (allocno_copy_cost_saving): Call
9080 ira_init_register_move_cost_if_necessary.
9081
9082 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
9083
9084 * Makefile.in (gnat_install_lib): New variable.
9085 * configure.ac: Substitute it.
9086 * configure: Regenerate.
9087
9088 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9089
9090 PR lto/91222
9091 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
9092 is matched with non-C++ type
9093
9094 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9095
9096 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
9097 after local CSE.
9098
9099 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9100
9101 * doc/invoke.texi (early-inlining-insns-O2): Document.
9102 (early-inlining-insns): Update.
9103 * params.def (early-inlining-insns-O2): New bound.
9104 (early-inlining-insns): Update docs.
9105 * ipa-inline.c (want_early_inline_function_p): Use new bound.
9106
9107 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
9108
9109 PR target/88562
9110 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
9111 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
9112 a memory access insn.
9113
9114 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
9115
9116 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
9117 vpmsumd.
9118
9119 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
9120
9121 PR target/77918
9122 * config/s390/s390.c (s390_expand_vec_compare): Use
9123 gen_vec_cmpordered and gen_vec_cmpunordered.
9124 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
9125 vec_unordered): Delete.
9126 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
9127 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
9128 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
9129 (vec_cmp<code>): Generic dispatcher.
9130
9131 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
9132
9133 PR target/77918
9134 * config/s390/vector.md (V_HW): Add V1TI in order to make
9135 vcond$a$b generate vcondv1tiv1tf.
9136
9137 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9138
9139 PR rtl-optimization/91948
9140 * ira-build.c (ira_create_allocno): Initialize
9141 ALLOCNO_CROSSED_CALLS_ABIS.
9142 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
9143 than regno to ira_need_caller_save_p.
9144
9145 2019-10-01 Alexandre Oliva <oliva@adacore.com>
9146
9147 * config/i386/i386-options.c
9148 (ix86_recompute_optlev_based_flags): New, moved out of...
9149 (ix86_option_override_internal): ... this. Call it.
9150 (ix86_override_options_after_change): Call it here too.
9151
9152 PR debug/91507
9153 * dwarf2out.c (override_type_for_decl_p): New.
9154 (gen_variable_die): Use it.
9155
9156 2019-10-01 Richard Biener <rguenther@suse.de>
9157
9158 * tree-vect-loop.c (vectorizable_reduction): Move variables
9159 to where they are used.
9160
9161 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9162
9163 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
9164 (build_def_use): Use PC instead of CC0 in a comment.
9165
9166 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9167
9168 * rtl.def (CLOBBER_HIGH): Delete.
9169 * doc/rtl.texi (clobber_high): Remove documentation.
9170 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
9171 (reg_is_clobbered_by_clobber_high): Delete.
9172 (gen_hard_reg_clobber_high): Likewise.
9173 * alias.c (record_set): Remove CLOBBER_HIGH handling.
9174 * cfgexpand.c (expand_gimple_stmt): Likewise.
9175 * combine-stack-adj.c (single_set_for_csa): Likewise.
9176 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
9177 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
9178 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
9179 * cse.c (invalidate_reg): Remove clobber_high parameter.
9180 (invalidate): Update call accordingly.
9181 (canonicalize_insn): Remove CLOBBER_HIGH handling.
9182 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
9183 (count_reg_usage, insn_live_p): Likewise.
9184 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
9185 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
9186 (cselib_invalidate_rtx_note_stores): Update call accordingly.
9187 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
9188 (cselib_invalidate_regno, cselib_process_insn): Likewise.
9189 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
9190 (mark_nonreg_stores_2): Likewise.
9191 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
9192 (df_get_call_refs): Likewise.
9193 * dwarf2out.c (mem_loc_descriptor): Likewise.
9194 * emit-rtl.c (verify_rtx_sharing): Likewise.
9195 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
9196 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
9197 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
9198 * genemit.c (gen_exp, gen_insn): Likewise.
9199 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
9200 * haifa-sched.c (haifa_classify_rtx): Likewise.
9201 * ira-build.c (create_insn_allocnos): Likewise.
9202 * ira-costs.c (scan_one_insn): Likewise.
9203 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
9204 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
9205 * jump.c (mark_jump_label_1): Likewise.
9206 * lra-int.h (lra_insn_reg::clobber_high): Delete.
9207 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
9208 handling.
9209 (mark_not_eliminable): Likewise.
9210 * lra-lives.c (process_bb_lives): Likewise.
9211 * lra.c (new_insn_reg): Remove clobber_high parameter.
9212 (collect_non_operand_hard_regs): Likewise. Update call to new
9213 insn_reg. Remove CLOBBER_HIGH handling.
9214 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
9215 to collect_non_operand_hard_regs.
9216 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
9217 Update call to new_insn_reg.
9218 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
9219 * postreload.c (reload_cse_simplify, reload_combine_note_use)
9220 (move2add_note_store): Likewise.
9221 * print-rtl.c (print_pattern): Likewise.
9222 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
9223 (if_test_bypass_p): Likewise.
9224 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
9225 * reginfo.c (reg_scan_mark_refs): Likewise.
9226 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
9227 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
9228 (forget_old_reloads_1): Likewise.
9229 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
9230 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
9231 (dbr_schedule): Likewise.
9232 * resource.c (update_live_status, mark_referenced_resources)
9233 (mark_set_resources): Likewise.
9234 * rtl.c (copy_rtx): Likewise.
9235 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
9236 (note_pattern_stores): Likewise.
9237 (reg_is_clobbered_by_clobber_high): Delete.
9238 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
9239 CLOBBER_HIGH handling.
9240
9241 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9242
9243 PR target/91452
9244 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
9245 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
9246 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9247 Handle ARM_PCS_TLSDESC.
9248 (aarch64_tlsdesc_abi_id): New function.
9249 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
9250 rtx instead of a list of clobbers and clobber_highs.
9251 (tlsdesc_small_<mode>): Update accordingly.
9252
9253 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9254
9255 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
9256 extra callee_abi argument.
9257 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
9258 Insert a CALLEE_ABI unspec into the call pattern as the second
9259 element in the PARALLEL.
9260 (aarch64_simd_call_p): Delete.
9261 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
9262 the new CALLEE_ABI element of the PARALLEL.
9263 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
9264 from the function type, if given.
9265 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
9266 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
9267 when passed the function_arg_info end marker.
9268 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
9269 final argument of gen_sibcall.
9270 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
9271 (call): Make operand 2 a const_int_operand and pass it to expand_call.
9272 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
9273 pattern.
9274 (call_value): Likewise operand 3.
9275 (sibcall): Likewise operand 2. Place the unspec before rather than
9276 after the return.
9277 (sibcall_value): Likewise operand 3.
9278 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
9279 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
9280 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
9281 constraint strings.
9282 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
9283
9284 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9285
9286 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
9287 choose_hard_reg_mode.
9288 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9289
9290 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9291
9292 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
9293 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
9294 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
9295
9296 2019-09-30 David Malcolm <dmalcolm@redhat.com>
9297
9298 * diagnostic-show-locus.c (line_label::line_label): Initialize
9299 m_has_vbar.
9300 (line_label::comparator): Reverse the sort order by m_state_idx,
9301 so that when the list is walked backwards the labels appear in
9302 order of insertion into the rich_location.
9303 (line_label::m_has_vbar): New field.
9304 (layout::print_any_labels): When dealing with multiple labels at
9305 the same line and column, only print vertical bars for the one
9306 with the highest label_line.
9307 (selftest::test_one_liner_labels): Update test for multiple labels
9308 to expect the labels to be in the order of insertion into the
9309 rich_location. Add a test for many such labels, where the column
9310 numbers are out-of-order relative to the insertion order.
9311
9312 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9313
9314 * config/i386/i386.h (ix86_frame::expensive_p): New field.
9315 (ix86_frame::expensive_count): Likewise.
9316 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
9317 of use_fast_prologue_epilogue robust against incidental changes
9318 in function size.
9319
9320 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
9321
9322 PR target/77918
9323 * config/s390/vector.md (vec_unordered<mode>): Call
9324 gen_vec_ordered<mode>.
9325
9326 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
9327
9328 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
9329 New pattern for ASRD.
9330 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
9331 * internal-fn.def (IFN_DIV_POW2): New internal function.
9332 * optabs.def (sdiv_pow2_optab): New optab.
9333 * tree-vect-patterns.c (vect_recog_divmod_pattern):
9334 Modify pattern to support new operation.
9335 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
9336 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
9337 Document new target selector.
9338
9339 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9340
9341 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
9342 to test whether we're compiling a vector PCS function and to test
9343 whether the function needs to save a particular register.
9344 Remove the vector PCS handling of df_set_regs_ever_live.
9345 (aarch64_components_for_bb): Use crtl->abi to test whether
9346 the function needs to save a particular register.
9347 (aarch64_process_components): Use crtl->abi to test whether
9348 we're compiling a vector PCS function.
9349 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
9350 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
9351
9352 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9353
9354 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
9355 Delete.
9356 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
9357 whether the block calls a function that clobbers more registers
9358 than the current function is allowed to.
9359 (aarch64_use_simple_return_insn_p): Delete.
9360 * config/aarch64/aarch64.md (simple_return): Remove condition.
9361
9362 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9363
9364 * function-abi.h (function_abi_aggregator): New class.
9365 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
9366 function.
9367 * ira.c (update_equiv_regs_prescan): New function. Call
9368 set_paradoxical_subreg here rather than...
9369 (update_equiv_regs): ...here.
9370 (ira): Call update_equiv_regs_prescan.
9371
9372 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9373
9374 * hard-reg-set.h (regs_invalidated_by_call): Only define if
9375 IN_TARGET_CODE.
9376 (call_used_or_fixed_regs): Likewise.
9377 (call_used_or_fixed_reg_p): Likewise.
9378 * reginfo.c (regs_invalidated_by_call): New macro.
9379
9380 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9381
9382 * shrink-wrap.c: Include function-abi.h.
9383 (requires_stack_frame_p): Use crtl->abi to test whether the
9384 current function can use a register without saving it first.
9385
9386 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9387
9388 * sel-sched-ir.h (_def::crosses_call): Replace with...
9389 (_def::crossed_call_abis): ..this new field.
9390 (def_list_add): Take a mask of ABIs instead of a crosses_call
9391 boolean.
9392 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
9393 of _def accordingly.
9394 * sel-sched.c: Include function-abi.h.
9395 (hard_regs_data::regs_for_call_clobbered): Delete.
9396 (reg_rename::crosses_call): Replace with...
9397 (reg_rename::crossed_call_abis): ...this new field.
9398 (fur_static_params::crosses_call): Replace with...
9399 (fur_static_params::crossed_call_abis): ...this new field.
9400 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
9401 (init_hard_regs_data): Use crtl->abi to test which registers the
9402 current function would need to save before it uses them.
9403 (mark_unavailable_hard_regs): Update handling of call-clobbered
9404 registers, using call_clobbers_in_region to find out which registers
9405 might be call-clobbered (but without taking -fipa-ra into account
9406 for now). Remove separate handling of partially call-clobbered
9407 registers.
9408 (verify_target_availability): Use crossed_call_abis instead of
9409 crosses_call.
9410 (get_spec_check_type_for_insn, find_used_regs): Likewise.
9411 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
9412
9413 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9414
9415 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
9416 function to test whether a register is fully or partly clobbered.
9417
9418 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9419
9420 * rtlanal.c: Include function-abi.h.
9421 (reg_set_p): Use insn_callee_abi to get the ABI of the called
9422 function and clobbers_reg_p to test whether the register
9423 is call-clobbered.
9424 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
9425 to get the ABI of the called function and full_reg_clobbers to
9426 get the set of fully call-clobbered registers. Warn about the
9427 pitfalls of using this mode.
9428
9429 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9430
9431 * reload.c: Include function-abi.h.
9432 (find_equiv_reg): Use clobbers_reg_p to test whether either
9433 of the equivalent registers is clobbered by a call.
9434 * reload1.c: Include function-abi.h.
9435 (reg_reloaded_call_part_clobbered): Delete.
9436 (reload): Use crtl->abi to test which registers would need
9437 saving in the prologue before use.
9438 (find_reg): Likewise.
9439 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
9440 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
9441 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
9442
9443 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9444
9445 * regrename.h (du_head::call_clobber_mask): New field.
9446 (du_head::need_caller_save_reg): Replace with...
9447 (du_head::call_abis): ...this new field.
9448 * regrename.c: Include function-abi.h.
9449 (call_clobbered_in_chain_p): New function.
9450 (check_new_reg_p): Use crtl->abi when deciding whether a register
9451 is free for use after RA. Use call_clobbered_in_chain_p to test
9452 whether a candidate register would be clobbered by a call.
9453 (find_rename_reg): Don't add call-clobber conflicts here.
9454 (rename_chains): Check call_abis instead of need_caller_save_reg.
9455 (merge_chains): Update for changes to du_head.
9456 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
9457 target. Record the ABI identifier in call_abis and the set of
9458 fully or partially clobbered registers in call_clobber_mask.
9459 Add fully-clobbered registers to hard_conflicts here rather
9460 than in find_rename_reg.
9461 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
9462 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
9463 * config/aarch64/falkor-tag-collision-avoidance.c: Include
9464 function-abi.h.
9465 * config/c6x/c6x.c: Likewise.
9466
9467 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9468
9469 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
9470 mode of the register when deciding whether it is no longer
9471 available after a call.
9472
9473 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9474
9475 * recog.c: Include function-abi.h.
9476 (peep2_find_free_register): Use crtl->abi when deciding whether
9477 a register is free for use after RA.
9478
9479 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9480
9481 * postreload-gcse.c: Include regs.h and function-abi.h.
9482 (record_opr_changes): Use insn_callee_abi to get the ABI of the
9483 call insn target. Conservatively assume that partially-clobbered
9484 registers are altered.
9485
9486 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9487
9488 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
9489 when deciding whether a register is free for use after RA.
9490 (reload_combine): Remove unnecessary use of fixed_reg_set.
9491 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
9492 call insn target. Use reg_mode when testing whether a register
9493 is no longer available.
9494
9495 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9496
9497 * target.def (return_call_with_max_clobbers): Delete.
9498 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
9499 * doc/tm.texi: Regenerate.
9500 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
9501 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
9502 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
9503 (lra_reg::call_insn): Delete.
9504 * lra.c: Include function-abi.h.
9505 (initialize_lra_reg_info_element): Don't initialize the fields above.
9506 (lra): Use crtl->abi to test whether the current function needs to
9507 save a register in the prologue. Remove special pre-inheritance
9508 lra_create_live_ranges pass for flag_ipa_ra.
9509 * lra-assigns.c: Include function-abi.h
9510 (find_hard_regno_for_1): Use crtl->abi to test whether the current
9511 function needs to save a register in the prologue.
9512 (lra_assign): Assert that registers aren't allocated to a
9513 conflicting register, rather than checking only for overlaps
9514 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
9515 and for registers that are not live across a call.
9516 * lra-constraints.c (last_call_for_abi): New variable.
9517 (full_and_partial_call_clobbers): Likewise.
9518 (setup_next_usage_insn): Remove the register from
9519 full_and_partial_call_clobbers.
9520 (need_for_call_save_p): Use call_clobbered_in_region_p to test
9521 whether the register needs a caller save.
9522 (need_for_split_p): Use full_and_partial_reg_clobbers instead
9523 of call_used_or_fixed_regs.
9524 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
9525 full_and_partial_call_clobbers.
9526 * lra-lives.c (check_pseudos_live_through_calls): Replace
9527 last_call_used_reg_set and call_insn arguments with an abi argument.
9528 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
9529 as the set of conflicting registers.
9530 (calls_have_same_clobbers_p): Delete.
9531 (process_bb_lives): Track the ABI of the last call instead of an
9532 insn/HARD_REG_SET pair. Update calls to
9533 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
9534 the set of registers that could be clobbered by an EH edge.
9535 Include partially-clobbered as well as fully-clobbered registers.
9536 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
9537 * lra-remat.c: Include function-abi.h.
9538 (call_used_regs_arr_len, call_used_regs_arr): Delete.
9539 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
9540 registers and bitmap_view to combine them into dead_regs.
9541 (call_used_input_regno_present_p): Take a function_abi argument
9542 and use it to test whether a register is call-clobbered.
9543 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
9544 call insn target. Update tje call to call_used_input_regno_present_p.
9545 (do_remat): Likewise.
9546 (lra_remat): Remove the initialization of call_used_regs_arr_len
9547 and call_used_regs_arr.
9548
9549 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9550
9551 * loop-iv.c: Include regs.h and function-abi.h.
9552 (simplify_using_initial_values): Use insn_callee_abi to get the
9553 ABI of the call insn target. Conservatively assume that
9554 partially-clobbered registers are altered.
9555
9556 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9557
9558 * function-abi.h (call_clobbers_in_region): Declare.
9559 (call_clobbered_in_region_p): New function.
9560 * function-abi.cc (call_clobbers_in_region): Likewise.
9561 * ira-int.h: Include function-abi.h.
9562 (ira_allocno::crossed_calls_abis): New field.
9563 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
9564 (ira_need_caller_save_regs): New function.
9565 (ira_need_caller_save_p): Likewise.
9566 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
9567 of call_used_or_fixed_regs.
9568 (do_reload): Use crtl->abi to test whether the current function
9569 needs to save a register in the prologue. Count registers that
9570 need to be saved rather than registers that don't.
9571 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
9572 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9573 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
9574 (propagate_some_info_from_allocno): Likewise.
9575 (copy_info_to_removed_store_destinations): Likewise.
9576 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
9577 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
9578 (ira_build): Use ira_need_caller_save_regs instead of
9579 call_used_or_fixed_regs.
9580 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
9581 whether the current function would need to save a register
9582 before using it.
9583 (calculate_spill_cost): Likewise.
9584 (allocno_reload_assign): Use ira_need_caller_save_regs and
9585 ira_need_caller_save_p instead of call_used_or_fixed_regs.
9586 * ira-conflicts.c (ira_build_conflicts): Use
9587 ira_need_caller_save_regs rather than call_used_or_fixed_regs
9588 as the set of call-clobbered registers. Remove the
9589 call_used_or_fixed_regs mask from the calculation of
9590 temp_hard_reg_set and mask its use instead. Remove special
9591 handling of partially-clobbered registers.
9592 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
9593 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
9594 calculate the set of conflicting registers for calls that
9595 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
9596 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
9597 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9598 Use eh_edge_abi to calculate the set of registers that could
9599 be clobbered by an EH edge. Include partially-clobbered as
9600 well as fully-clobbered registers.
9601
9602 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9603
9604 * haifa-sched.c: Include function-abi.h.
9605 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
9606 the function would need to save a register before using it.
9607
9608 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9609
9610 * gcse.c: Include function-abi.h.
9611 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
9612 the call insn target. Invalidate partially call-clobbered
9613 registers as well as fully call-clobbered ones.
9614
9615 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9616
9617 * function.c (aggregate_value_p): Work out which ABI the
9618 function is using before testing which registers are at least
9619 partly preserved by a call.
9620
9621 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9622
9623 * early-remat.c: Include regs.h and function-abi.h.
9624 (early_remat::maybe_add_candidate): Don't check for call-clobbered
9625 registers here.
9626 (early_remat::restrict_remat_for_unavail_regs): New function.
9627 (early_remat::restrict_remat_for_call): Likewise.
9628 (early_remat::process_block): Before calling emit_remat_insns
9629 for a previous call in the block, invalidate any candidates
9630 that would clobber call-preserved registers.
9631 (early_remat::emit_remat_insns_for_block): Likewise for the
9632 final call in a block. Do the same thing for live-in registers
9633 when calling emit_remat_insns at the head of a block.
9634
9635 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9636
9637 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
9638 whether the current function needs to save at least part of a
9639 register before using it.
9640 (df_get_exit_block_use_set): Likewise for epilogue restores.
9641
9642 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9643
9644 * df-problems.c: Include regs.h and function-abi.h.
9645 (df_rd_problem_data): Rename sparse_invalidated_by_call to
9646 sparse_invalidated_by_eh and dense_invalidated_by_call to
9647 dense_invalidated_by_eh.
9648 (df_print_bb_index): Update accordingly.
9649 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
9650 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
9651 that are clobbered by an EH edge. Clobber partially-clobbered
9652 registers as well as fully-clobbered ones.
9653 (df_md_confluence_n): Likewise.
9654 (df_rd_local_compute): Likewise. Update for changes to
9655 df_rd_problem_data.
9656 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
9657 of registers that are clobbered by an EH edge. Includde partially-
9658 clobbered registers as well as fully-clobbered ones.
9659
9660 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9661
9662 * cselib.c (cselib_process_insn): If we know what mode a
9663 register was set in, check whether it is clobbered in that
9664 mode by a call. Only fall back to reg_raw_mode if that fails.
9665
9666 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9667
9668 * cse.c: Include regs.h and function-abi.h.
9669 (invalidate_for_call): Take the call insn as an argument.
9670 Use insn_callee_abi to get the ABI of the call and invalidate
9671 partially clobbered registers as well as fully clobbered ones.
9672 (cse_insn): Update call accordingly.
9673
9674 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9675
9676 * combine.c: Include function-abi.h.
9677 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
9678 of the target of call insns. Invalidate partially-clobbered
9679 registers as well as fully-clobbered ones.
9680
9681 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9682
9683 * cfgloopanal.c: Include regs.h and function-abi.h.
9684 (init_set_costs): Use default_function_abi to test whether
9685 a general register is call-clobbered.
9686
9687 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9688
9689 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
9690 instead of the call-clobbered sets.
9691
9692 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9693
9694 * caller-save.c (setup_save_areas): Remove redundant |s of
9695 fixed_reg_set.
9696 (save_call_clobbered_regs): Likewise. Use the call ABI rather
9697 than call_used_or_fixed_regs to decide whether a REG_RETURNED
9698 value is useful.
9699
9700 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9701
9702 * rtl.h (predefined_function_abi): Declare.
9703 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
9704 instead of a boolean call_save flag.
9705 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
9706 accordingly.
9707 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9708 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9709 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
9710 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9711 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9712 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
9713 * reginfo.c (init_reg_modes_target): Likewise.
9714 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
9715 instead of a boolean call_save flag.
9716 * targhooks.c: Include function-abi.h.
9717 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
9718 using eh_edge_abi to choose the mode.
9719
9720 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9721
9722 * target.def (hard_regno_call_part_clobbered): Take an ABI
9723 identifier instead of an rtx_insn.
9724 * doc/tm.texi: Regenerate.
9725 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
9726 (hook_bool_uint_uint_mode_false): New function.
9727 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
9728 (hook_bool_uint_uint_mode_false): New function.
9729 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9730 Take an ABI identifier instead of an rtx_insn.
9731 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
9732 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
9733 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
9734 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
9735 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
9736 Likewise.
9737 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
9738 * cselib.c: Include function-abi.h.
9739 (cselib_process_insn): Update call to
9740 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
9741 to get the appropriate ABI identifier.
9742 * function-abi.cc (predefined_function_abi::initialize): Update call
9743 to targetm.hard_regno_call_part_clobbered.
9744 * ira-conflicts.c (ira_build_conflicts): Likewise.
9745 * ira-costs.c (ira_tune_allocno_costs): Likewise.
9746 * lra-constraints.c: Include function-abi.h.
9747 (need_for_call_save_p): Update call to
9748 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
9749 to get the appropriate ABI identifier.
9750 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
9751 * regcprop.c (copyprop_hardreg_forward_1): Update call
9752 to targetm.hard_regno_call_part_clobbered.
9753 * reginfo.c (choose_hard_reg_mode): Likewise.
9754 * regrename.c (check_new_reg_p): Likewise.
9755 * reload.c (find_equiv_reg): Likewise.
9756 * reload1.c (emit_reload_insns): Likewise.
9757 * sched-deps.c: Include function-abi.h.
9758 (deps_analyze_insn): Update call to
9759 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
9760 to get the appropriate ABI identifier.
9761 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
9762 call to targetm.hard_regno_call_part_clobbered.
9763 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
9764
9765 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9766
9767 * config/i386/i386.c: Include function-abi.h.
9768 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
9769 if they preserve some 256-bit or 512-bit SSE registers.
9770
9771 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9772
9773 * target.def (insn_callee_abi): New hook.
9774 (remove_extra_call_preserved_regs): Delete.
9775 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
9776 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
9777 * doc/tm.texi: Regenerate.
9778 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
9779 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
9780 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
9781 insn argument.
9782 (aarch64_remove_extra_call_preserved_regs): Delete.
9783 (aarch64_insn_callee_abi): New function.
9784 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
9785 (TARGET_INSN_CALLEE_ABI): New macro.
9786 * rtl.h (get_call_fndecl): Declare.
9787 (cgraph_rtl_info): Fix formatting. Tweak comment for
9788 function_used_regs. Remove function_used_regs_valid.
9789 * rtlanal.c (get_call_fndecl): Moved from final.c
9790 * function-abi.h (insn_callee_abi): Declare.
9791 (target_function_abi_info): Mention insn_callee_abi.
9792 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
9793 way to get_call_reg_set_usage did.
9794 (insn_callee_abi): New function.
9795 * regs.h (get_call_reg_set_usage): Delete.
9796 * final.c: Include function-abi.h.
9797 (collect_fn_hard_reg_usage): Add fixed and stack registers to
9798 function_used_regs before the main loop rather than afterwards.
9799 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
9800 if function_used_regs ends up not being useful.
9801 (get_call_fndecl): Move to rtlanal.c
9802 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
9803 * caller-save.c: Include function-abi.h.
9804 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
9805 instead of get_call_reg_set_usage.
9806 * cfgcleanup.c: Include function-abi.h.
9807 (old_insns_match_p): Use insn_callee_abi instead of
9808 get_call_reg_set_usage.
9809 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
9810 a tree.
9811 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
9812 function_used_regs.
9813 * df-scan.c: Include function-abi.h.
9814 (df_get_call_refs): Use insn_callee_abi instead of
9815 get_call_reg_set_usage.
9816 * ira-lives.c: Include function-abi.h.
9817 (process_bb_node_lives): Use insn_callee_abi instead of
9818 get_call_reg_set_usage.
9819 * lra-lives.c: Include function-abi.h.
9820 (process_bb_lives): Use insn_callee_abi instead of
9821 get_call_reg_set_usage.
9822 * postreload.c: Include function-abi.h.
9823 (reload_combine): Use insn_callee_abi instead of
9824 get_call_reg_set_usage.
9825 * regcprop.c: Include function-abi.h.
9826 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
9827 get_call_reg_set_usage.
9828 * resource.c: Include function-abi.h.
9829 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
9830 instead of get_call_reg_set_usage.
9831 * var-tracking.c: Include function-abi.h.
9832 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
9833 get_call_reg_set_usage.
9834
9835 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9836
9837 * target.def (fntype_abi): New target hook.
9838 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
9839 * doc/tm.texi: Regenerate.
9840 * target.h (predefined_function_abi): Declare.
9841 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
9842 if defined.
9843 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
9844 * config/aarch64/aarch64.c: Include function-abi.h.
9845 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
9846 (TARGET_FNTYPE_ABI): Define.
9847
9848 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9849
9850 * Makefile.in (OBJS): Add function-abi.o.
9851 (GTFILES): Add function-abi.h.
9852 * function-abi.cc: New file.
9853 * function-abi.h: Likewise.
9854 * emit-rtl.h (rtl_data::abi): New field.
9855 * function.c: Include function-abi.h.
9856 (prepare_function_start): Initialize crtl->abi.
9857 * read-rtl-function.c: Include regs.h and function-abi.h.
9858 (read_rtl_function_body): Initialize crtl->abi.
9859 (read_rtl_function_body_from_file_range): Likewise.
9860 * reginfo.c: Include function-abi.h.
9861 (init_reg_sets_1): Initialize default_function_abi.
9862 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
9863 when making a register global.
9864 * target-globals.h (this_target_function_abi_info): Declare.
9865 (target_globals::function_abi_info): New field.
9866 (restore_target_globals): Copy it.
9867 * target-globals.c: Include function-abi.h.
9868 (default_target_globals): Initialize the function_abi_info field.
9869 (target_globals): Allocate it.
9870 (save_target_globals): Free it.
9871
9872 2019-09-30 Nick Clifton <nickc@redhat.com>
9873
9874 PR target/85978
9875 * config/frv/frv.c (frv_register_move_cost): Add break statements
9876 to avoid falling through to the wrong cases. Tidy code.
9877
9878 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9879
9880 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9881 For multi-registers modes, test how big each register part is.
9882
9883 2019-09-30 Nick Clifton <nickc@redhat.com>
9884
9885 PR target/59205
9886 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
9887 (TARGET_ASM_SELECT_SECTION): Remove definition.
9888 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
9889
9890 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
9891
9892 * emit-rtl.c (init_raw_REG): New function.
9893 (gen_raw_REG): Use init_raw_REG.
9894 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
9895 macros.
9896 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
9897 * rtl.h (rtx_init): New function.
9898 (rtx_alloca): New function.
9899 (init_raw_REG): New function.
9900 (alloca_raw_REG): New macro.
9901
9902 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
9903
9904 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
9905 (pcrel_local_address): Replace pcrel_address predicate, use the
9906 new function address_to_insn_form.
9907 (pcrel_external_address): Replace with new implementation using
9908 address_to_insn_form..
9909 (prefixed_mem_operand): Delete predicate which is now unused.
9910 (pcrel_external_mem_operand): Delete predicate which is now
9911 unused.
9912 * config/rs6000/rs6000-protos.h (enum insn_form): New
9913 enumeration.
9914 (enum non_prefixed_form): New enumeration.
9915 (address_to_insn_form): New declaration.
9916 (prefixed_load_p): New declaration.
9917 (prefixed_store_p): New declaration.
9918 (prefixed_paddi_p): New declaration.
9919 (rs6000_asm_output_opcode): New declaration.
9920 (rs6000_final_prescan_insn): Move declaration and update calling
9921 signature.
9922 (address_is_prefixed): New helper inline function.
9923 * config/rs6000/rs6000.c(print_operand_address): Check for either
9924 PC-relative local symbols or PC-relative external symbols.
9925 (rs6000_emit_move): Support loading PC-relative addresses.
9926 (mode_supports_prefixed_address_p): Delete, no longer used.
9927 (rs6000_prefixed_address_mode_p): Delete, no longer used.
9928 (address_to_insn_form): New function to decode an address format.
9929 (reg_to_non_prefixed): New function to identify what the
9930 non-prefixed memory instruction format is for a register.
9931 (prefixed_load_p): New function to identify prefixed loads.
9932 (prefixed_store_p): New function to identify prefixed stores.
9933 (prefixed_paddi_p): New function to identify prefixed load
9934 immediates.
9935 (next_insn_prefixed_p): New static state variable.
9936 (rs6000_final_prescan_insn): New function to determine if an insn
9937 uses a prefixed instruction.
9938 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
9939 prefixed instruction.
9940 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
9941 (ASM_OUTPUT_OPCODE): New target hook.
9942 * config/rs6000/rs6000.md (prefixed): New insn attribute for
9943 prefixed instructions.
9944 (prefixed_length): New insn attribute for the size of prefixed
9945 instructions.
9946 (non_prefixed_length): New insn attribute for the size of
9947 non-prefixed instructions.
9948 (pcrel_local_addr): New insn to load up a local PC-relative
9949 address.
9950 (pcrel_extern_addr): New insn to load up an external PC-relative
9951 address.
9952 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
9953 GPR and loading a 128-bit floating point type to a GPR.
9954
9955 2019-09-30 Richard Biener <rguenther@suse.de>
9956
9957 * gimple.c (gimple_get_lhs): For PHIs return the result.
9958 * tree-vectorizer.h (vectorizable_live_operation): Also get the
9959 SLP instance as argument.
9960 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
9961 double-reduction PHIs with vectorizable_lc_phi.
9962 (vect_analyze_loop_operations): Adjust.
9963 (vect_create_epilog_for_reduction): Remove all code not dealing
9964 with reduction LC PHI or epilogue generation.
9965 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
9966 for live stmts of reductions.
9967 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
9968 do not handle defs that are not vect_internal_def.
9969 (can_vectorize_live_stmts): Adjust.
9970 (vect_analyze_stmt): When the vectorized stmt defined a value
9971 used on backedges adjust the backedge uses of vectorized PHIs.
9972
9973 2019-09-30 Martin Jambor <mjambor@suse.cz>
9974
9975 PR ipa/91853
9976 * tree-inline.c (force_value_to_type): New function.
9977 (setup_one_parameter): Use force_value_to_type to convert type.
9978 * tree-inline.c (force_value_to_type): Declare.
9979 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
9980 with register type mismatches.
9981
9982 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
9983
9984 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
9985 32-bit PowerPC.
9986 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
9987 * config/rs6000/t-freebsd64: Make use of the above define and build
9988 the 32-bit libraries with secure-plt.
9989
9990 2019-09-30 Jakub Jelinek <jakub@redhat.com>
9991
9992 PR target/91931
9993 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
9994 gen_int_mode instead of GEN_INT.
9995
9996 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
9997
9998 * config/darwin.c (gen_macho_low): Amend to include the mode
9999 argument.
10000 (machopic_indirect_data_reference): Amend gen_macho_low call
10001 to include mode argument
10002 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
10003 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
10004 the macho_high expander and two define_insn entries.
10005
10006 2019-09-29 Jakub Jelinek <jakub@redhat.com>
10007
10008 PR bootstrap/90543
10009 * optc-save-gen.awk: Fix up printing string option differences.
10010
10011 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10012
10013 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
10014 vec_perm cost to 1 for non-Power7 VSX architectures.
10015
10016 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10017
10018 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
10019 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
10020 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
10021
10022 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
10023
10024 * config/darwin.c (gen_macho_high): Amend to include the mode
10025 argument.
10026 (machopic_indirect_data_reference): Amend gen_macho_high call
10027 to include mode argument.
10028 (machopic_legitimize_pic_address): Likewise.
10029 * config/rs6000/rs6000.c (rs6000_legitimize_address):
10030 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
10031 the macho_high expander and two define_insn entries.
10032
10033 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10034
10035 PR target/86805
10036 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
10037
10038 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10039
10040 PR target/80672
10041 * config/sh/sh.c (parse_validate_atomic_model_option): Use
10042 std::string::compare instead of std::string::find.
10043
10044 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
10045
10046 * configure: Regenerate.
10047
10048 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10049
10050 PR middle-end/91920
10051 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
10052 variables as shared.
10053
10054 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
10055
10056 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
10057 replaces the expander and two define_insn entries.
10058 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
10059 call.
10060 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
10061
10062 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10063
10064 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
10065 (fibonacci_heap::nodes): Likewise.
10066 (fibonacci_heap::min_key): Likewise.
10067 (fibonacci_heap::min): Likewise.
10068
10069 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10070
10071 * cgraph.c (cgraph_node::get_fun): Make const.
10072 * cgraph.h (cgraph_node::get_fun): Likewise.
10073
10074 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10075
10076 PR target/91919
10077 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
10078 of SImode MULT.
10079
10080 2019-09-27 Richard Biener <rguenther@suse.de>
10081
10082 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
10083 (STMT_VINFO_REDUC_FN): Likewise.
10084 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10085 STMT_VINFO_REDUC_FN.
10086 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
10087 for condition reductions.
10088 (vect_create_epilog_for_reduction): Compute all required state
10089 from the stmt to be vectorized.
10090 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
10091 invocation and remove then dead code. For single def-use chains
10092 record only a single vector stmt.
10093
10094 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10095
10096 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
10097 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
10098 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
10099 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
10100 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
10101 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
10102 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
10103 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
10104 (aarch64_general_builtin_rsqrt): Declare.
10105 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
10106 New function.
10107 (aarch64_mangle_builtin_type): Rename to...
10108 (aarch64_general_mangle_builtin_type): ...this.
10109 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
10110 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
10111 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
10112 aarch64_general_add_builtin instead of add_builtin_function.
10113 (aarch64_init_builtins): Rename to...
10114 (aarch64_general_init_builtins): ...this. Use
10115 aarch64_general_add_builtin instead of add_builtin_function.
10116 (aarch64_builtin_decl): Rename to...
10117 (aarch64_general_builtin_decl): ...this and remove the unused
10118 arguments.
10119 (aarch64_expand_builtin): Rename to...
10120 (aarch64_general_expand_builtin): ...this and remove the unused
10121 arguments.
10122 (aarch64_builtin_rsqrt): Rename to...
10123 (aarch64_general_builtin_rsqrt): ...this.
10124 (aarch64_fold_builtin): Rename to...
10125 (aarch64_general_fold_builtin): ...this. Take the function subcode
10126 and return type as arguments. Remove the "ignored" argument.
10127 (aarch64_gimple_fold_builtin): Rename to...
10128 (aarch64_general_gimple_fold_builtin): ...this. Take the function
10129 subcode and gcall as arguments, and return the new function call.
10130 * config/aarch64/aarch64.c (aarch64_init_builtins)
10131 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
10132 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
10133 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
10134 instead of aarch64_builtin_rsqrt.
10135 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
10136 instead of aarch64_mangle_builtin_type.
10137
10138 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10139
10140 * target.def (check_builtin_call): New target hook.
10141 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
10142 * doc/tm.texi: Regenerate.
10143
10144 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10145
10146 PR tree-optimization/91909
10147 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
10148 reduc_index parameter. When handling COND_REDUCTION, make sure
10149 that the reduction phi operand is in the correct arm of the
10150 VEC_COND_EXPR.
10151 (vectorizable_reduction): Pass reduc_index to the above.
10152
10153 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
10154
10155 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
10156 New combine pattern.
10157
10158 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
10159
10160 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
10161 loop instruction into new basic block before the loop when basic
10162 block that precedes the loop is empty.
10163
10164 2019-09-26 Jakub Jelinek <jakub@redhat.com>
10165
10166 * function.c (gimplify_parameters): Use build_clobber function.
10167 * tree-ssa.c (execute_update_addresses_taken): Likewise.
10168 * tree-inline.c (expand_call_inline): Likewise.
10169 * tree-sra.c (clobber_subtree): Likewise.
10170 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
10171 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
10172 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
10173 lower_omp_target): Likewise.
10174 * omp-expand.c (expand_omp_for_generic): Likewise.
10175 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
10176
10177 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
10178
10179 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
10180 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
10181 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
10182 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
10183 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
10184 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
10185 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
10186 LD_ELEMREV_V16QI): Use the PURE attribute.
10187
10188 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
10189
10190 * config/rs6000/darwin.md: Replace the expanders for
10191 load_macho_picbase and reload_macho_picbase with use of '@'
10192 and <mode> in their respective define_insns.
10193 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
10194 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
10195 Pmode to gen_load_macho_picbase.
10196 * config/rs6000/rs6000.md: Likewise.
10197
10198 2019-09-25 Richard Biener <rguenther@suse.de>
10199
10200 PR tree-optimization/91896
10201 * tree-vect-loop.c (vectorizable_reduction): The single
10202 def-use cycle optimization cannot apply when there's more
10203 than one pattern stmt involved.
10204
10205 2019-09-26 Richard Biener <rguenther@suse.de>
10206
10207 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
10208 loop-closed PHIs that are vect_internal_def.
10209 (vect_create_epilog_for_reduction): Exit early for nested cycles.
10210 Simplify.
10211 (vectorizable_lc_phi): New.
10212 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
10213 (vect_transform_stmt): Likewise.
10214 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
10215 (vectorizable_lc_phi): Declare.
10216
10217 2019-09-26 Richard Biener <rguenther@suse.de>
10218
10219 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
10220 vectorizable_reduction for vect_double_reduction_def.
10221 (vect_transform_loop): Likewise.
10222 (vect_create_epilog_for_reduction): Move double-reduction
10223 PHI creation and preheader argument setting of PHIs ...
10224 (vectorizable_reduction): ... here. Also process
10225 vect_double_reduction_def PHIs, creating the vectorized
10226 PHI nodes, remembering the scalar adjustment computed for
10227 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
10228 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
10229 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
10230 Initialize STMT_VINFO_REDUC_CODE.
10231 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
10232 (_stmt_vec_info::reduc_code): Likewise.
10233 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
10234 (STMT_VINFO_REDUC_CODE): Likewise.
10235
10236 2019-09-26 Matt Turner <mattst88@gmail.com>
10237
10238 PR driver/69471
10239 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
10240 (mtune=): Add Negative(mtune=).
10241 (mcpu=): Add Negative(mcpu=).
10242 * config/arm/arm.opt: Likewise.
10243
10244 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10245
10246 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
10247 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
10248 Define.
10249 * config/arm/arm_acle.h: Define builtins for the above.
10250 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
10251 (simd32_op): Handle the above.
10252 * config/arm/unspecs.md: Define unspecs for the above.
10253
10254 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10255
10256 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
10257 (arm_<sup>xtb16): Likewise.
10258 (arm_usada8): Likewise.
10259 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
10260 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
10261 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
10262 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
10263 __sxtb16, __uxtab16, __uxtb16): Define.
10264 * config/arm/arm_acle_builtins.def: Define builtins for the above.
10265 * config/arm/unspecs.md: Define unspecs for the above.
10266 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
10267 (USXTB16): Likewise.
10268 (simd32_op): New int_attribute.
10269 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
10270 * doc/sourcebuild.exp (arm_simd32_ok): Document.
10271
10272 2019-09-26 Martin Jambor <mjambor@suse.cz>
10273
10274 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
10275 internal_error.
10276
10277 2019-09-26 Martin Jambor <mjambor@suse.cz>
10278
10279 * ipa-sra.c (process_scan_results): Fix continue condition.
10280
10281 2019-09-26 Martin Liska <mliska@suse.cz>
10282
10283 PR tree-optimization/91885
10284 * tree-vectorizer.c (try_vectorize_loop_1): Add
10285 TODO_update_ssa_only_virtuals similarly to what slp pass does.
10286
10287 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
10288
10289 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
10290 aarch64_plus_immediate rather than aarch64_uimm12_shift
10291 to test for valid PLUS immediates.
10292
10293 2019-09-25 Martin Jambor <mjambor@suse.cz>
10294
10295 * tree-sra.c (no_accesses_p): Remove.
10296 (no_accesses_representant): Likewise.
10297
10298 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10299
10300 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
10301 consistenly.
10302 (vaba_s16): Likewise.
10303 (vaba_s32): Likewise.
10304 (vaba_u8): Likewise.
10305 (vaba_u16): Likewise.
10306 (vaba_u32): Likewise.
10307 (vabal_high_s8): Likewise.
10308 (vabal_high_s16): Likewise.
10309 (vabal_high_s32): Likewise.
10310 (vabal_high_u8): Likewise.
10311 (vabal_high_u16): Likewise.
10312 (vabal_high_u32): Likewise.
10313 (vabal_s8): Likewise.
10314 (vabal_s16): Likewise.
10315 (vabal_s32): Likewise.
10316 (vabal_u8): Likewise.
10317 (vabal_u16): Likewise.
10318 (vabal_u32): Likewise.
10319 (vabaq_s8): Likewise.
10320 (vabaq_s16): Likewise.
10321 (vabaq_s32): Likewise.
10322 (vabaq_u8): Likewise.
10323 (vabaq_u16): Likewise.
10324 (vabaq_u32): Likewise.
10325 (vabd_s8): Likewise.
10326 (vabd_s16): Likewise.
10327 (vabd_s32): Likewise.
10328 (vabd_u8): Likewise.
10329 (vabd_u16): Likewise.
10330 (vabd_u32): Likewise.
10331 (vabdl_high_s8): Likewise.
10332 (vabdl_high_s16): Likewise.
10333 (vabdl_high_s32): Likewise.
10334 (vabdl_high_u8): Likewise.
10335 (vabdl_high_u16): Likewise.
10336 (vabdl_high_u32): Likewise.
10337 (vabdl_s8): Likewise.
10338 (vabdl_s16): Likewise.
10339 (vabdl_s32): Likewise.
10340 (vabdl_u8): Likewise.
10341 (vabdl_u16): Likewise.
10342 (vabdl_u32): Likewise.
10343 (vabdq_s8): Likewise.
10344 (vabdq_s16): Likewise.
10345 (vabdq_s32): Likewise.
10346 (vabdq_u8): Likewise.
10347 (vabdq_u16): Likewise.
10348 (vabdq_u32): Likewise.
10349 (vaddlv_s8): Likewise.
10350 (vaddlv_s16): Likewise.
10351 (vaddlv_u8): Likewise.
10352 (vaddlv_u16): Likewise.
10353 (vaddlvq_s8): Likewise.
10354 (vaddlvq_s16): Likewise.
10355 (vaddlvq_s32): Likewise.
10356 (vaddlvq_u8): Likewise.
10357 (vaddlvq_u16): Likewise.
10358 (vaddlvq_u32): Likewise.
10359 (vcvtx_f32_f64): Likewise.
10360 (vcvtx_high_f32_f64): Likewise.
10361 (vcvtxd_f32_f64): Likewise.
10362 (vmla_n_f32): Likewise.
10363 (vmla_n_s16): Likewise.
10364 (vmla_n_s32): Likewise.
10365 (vmla_n_u16): Likewise.
10366 (vmla_n_u32): Likewise.
10367 (vmla_s8): Likewise.
10368 (vmla_s16): Likewise.
10369 (vmla_s32): Likewise.
10370 (vmla_u8): Likewise.
10371 (vmla_u16): Likewise.
10372 (vmla_u32): Likewise.
10373 (vmlal_high_n_s16): Likewise.
10374 (vmlal_high_n_s32): Likewise.
10375 (vmlal_high_n_u16): Likewise.
10376 (vmlal_high_n_u32): Likewise.
10377 (vmlal_high_s8): Likewise.
10378 (vmlal_high_s16): Likewise.
10379 (vmlal_high_s32): Likewise.
10380 (vmlal_high_u8): Likewise.
10381 (vmlal_high_u16): Likewise.
10382 (vmlal_high_u32): Likewise.
10383 (vmlal_n_s16): Likewise.
10384 (vmlal_n_s32): Likewise.
10385 (vmlal_n_u16): Likewise.
10386 (vmlal_n_u32): Likewise.
10387 (vmlal_s8): Likewise.
10388 (vmlal_s16): Likewise.
10389 (vmlal_s32): Likewise.
10390 (vmlal_u8): Likewise.
10391 (vmlal_u16): Likewise.
10392 (vmlal_u32): Likewise.
10393 (vmlaq_n_f32): Likewise.
10394 (vmlaq_n_s16): Likewise.
10395 (vmlaq_n_s32): Likewise.
10396 (vmlaq_n_u16): Likewise.
10397 (vmlaq_n_u32): Likewise.
10398 (vmlaq_s8): Likewise.
10399 (vmlaq_s16): Likewise.
10400 (vmlaq_s32): Likewise.
10401 (vmlaq_u8): Likewise.
10402 (vmlaq_u16): Likewise.
10403 (vmlaq_u32): Likewise.
10404 (vmls_n_f32): Likewise.
10405 (vmls_n_s16): Likewise.
10406 (vmls_n_s32): Likewise.
10407 (vmls_n_u16): Likewise.
10408 (vmls_n_u32): Likewise.
10409 (vmls_s8): Likewise.
10410 (vmls_s16): Likewise.
10411 (vmls_s32): Likewise.
10412 (vmls_u8): Likewise.
10413 (vmls_u16): Likewise.
10414 (vmls_u32): Likewise.
10415 (vmlsl_high_n_s16): Likewise.
10416 (vmlsl_high_n_s32): Likewise.
10417 (vmlsl_high_n_u16): Likewise.
10418 (vmlsl_high_n_u32): Likewise.
10419 (vmlsl_high_s8): Likewise.
10420 (vmlsl_high_s16): Likewise.
10421 (vmlsl_high_s32): Likewise.
10422 (vmlsl_high_u8): Likewise.
10423 (vmlsl_high_u16): Likewise.
10424 (vmlsl_high_u32): Likewise.
10425 (vmlsl_n_s16): Likewise.
10426 (vmlsl_n_s32): Likewise.
10427 (vmlsl_n_u16): Likewise.
10428 (vmlsl_n_u32): Likewise.
10429 (vmlsl_s8): Likewise.
10430 (vmlsl_s16): Likewise.
10431 (vmlsl_s32): Likewise.
10432 (vmlsl_u8): Likewise.
10433 (vmlsl_u16): Likewise.
10434 (vmlsl_u32): Likewise.
10435 (vmlsq_n_f32): Likewise.
10436 (vmlsq_n_s16): Likewise.
10437 (vmlsq_n_s32): Likewise.
10438 (vmlsq_n_u16): Likewise.
10439 (vmlsq_n_u32): Likewise.
10440 (vmlsq_s8): Likewise.
10441 (vmlsq_s16): Likewise.
10442 (vmlsq_s32): Likewise.
10443 (vmlsq_u8): Likewise.
10444 (vmlsq_u16): Likewise.
10445 (vmlsq_u32): Likewise.
10446 (vmovl_high_s8): Likewise.
10447 (vmovl_high_s16): Likewise.
10448 (vmovl_high_s32): Likewise.
10449 (vmovl_high_u8): Likewise.
10450 (vmovl_high_u16): Likewise.
10451 (vmovl_high_u32): Likewise.
10452 (vmovl_s8): Likewise.
10453 (vmovl_s16): Likewise.
10454 (vmovl_s32): Likewise.
10455 (vmovl_u8): Likewise.
10456 (vmovl_u16): Likewise.
10457 (vmovl_u32): Likewise.
10458 (vmovn_high_s16): Likewise.
10459 (vmovn_high_s32): Likewise.
10460 (vmovn_high_s64): Likewise.
10461 (vmovn_high_u16): Likewise.
10462 (vmovn_high_u32): Likewise.
10463 (vmovn_high_u64): Likewise.
10464 (vmovn_s16): Likewise.
10465 (vmovn_s32): Likewise.
10466 (vmovn_s64): Likewise.
10467 (vmovn_u16): Likewise.
10468 (vmovn_u32): Likewise.
10469 (vmovn_u64): Likewise.
10470 (vmull_high_n_s16): Likewise.
10471 (vmull_high_n_s32): Likewise.
10472 (vmull_high_n_u16): Likewise.
10473 (vmull_high_n_u32): Likewise.
10474 (vmull_high_p8): Likewise.
10475 (vmull_high_s8): Likewise.
10476 (vmull_high_s16): Likewise.
10477 (vmull_high_s32): Likewise.
10478 (vmull_high_u8): Likewise.
10479 (vmull_high_u16): Likewise.
10480 (vmull_high_u32): Likewise.
10481 (vmull_n_s16): Likewise.
10482 (vmull_n_s32): Likewise.
10483 (vmull_n_u16): Likewise.
10484 (vmull_n_u32): Likewise.
10485 (vmull_p8): Likewise.
10486 (vmull_s8): Likewise.
10487 (vmull_s16): Likewise.
10488 (vmull_s32): Likewise.
10489 (vmull_u8): Likewise.
10490 (vmull_u16): Likewise.
10491 (vmull_u32): Likewise.
10492 (vpadal_s8): Likewise.
10493 (vpadal_s16): Likewise.
10494 (vpadal_s32): Likewise.
10495 (vpadal_u8): Likewise.
10496 (vpadal_u16): Likewise.
10497 (vpadal_u32): Likewise.
10498 (vpadalq_s8): Likewise.
10499 (vpadalq_s16): Likewise.
10500 (vpadalq_s32): Likewise.
10501 (vpadalq_u8): Likewise.
10502 (vpadalq_u16): Likewise.
10503 (vpadalq_u32): Likewise.
10504 (vpaddl_s8): Likewise.
10505 (vpaddl_s16): Likewise.
10506 (vpaddl_s32): Likewise.
10507 (vpaddl_u8): Likewise.
10508 (vpaddl_u16): Likewise.
10509 (vpaddl_u32): Likewise.
10510 (vpaddlq_s8): Likewise.
10511 (vpaddlq_s16): Likewise.
10512 (vpaddlq_s32): Likewise.
10513 (vpaddlq_u8): Likewise.
10514 (vpaddlq_u16): Likewise.
10515 (vpaddlq_u32): Likewise.
10516 (vpaddq_s8): Likewise.
10517 (vpaddq_s16): Likewise.
10518 (vpaddq_s32): Likewise.
10519 (vpaddq_s64): Likewise.
10520 (vpaddq_u8): Likewise.
10521 (vpaddq_u16): Likewise.
10522 (vpaddq_u32): Likewise.
10523 (vpaddq_u64): Likewise.
10524 (vqdmulh_n_s16): Likewise.
10525 (vqdmulh_n_s32): Likewise.
10526 (vqdmulhq_n_s16): Likewise.
10527 (vqdmulhq_n_s32): Likewise.
10528 (vqmovn_high_s16): Likewise.
10529 (vqmovn_high_s32): Likewise.
10530 (vqmovn_high_s64): Likewise.
10531 (vqmovn_high_u16): Likewise.
10532 (vqmovn_high_u32): Likewise.
10533 (vqmovn_high_u64): Likewise.
10534 (vqmovun_high_s16): Likewise.
10535 (vqmovun_high_s32): Likewise.
10536 (vqmovun_high_s64): Likewise.
10537 (vqrdmulh_n_s16): Likewise.
10538 (vqrdmulh_n_s32): Likewise.
10539 (vqrdmulhq_n_s16): Likewise.
10540 (vqrdmulhq_n_s32): Likewise.
10541 (vrsqrte_u32): Likewise.
10542 (vrsqrteq_u32): Likewise.
10543 (vtst_p8): Likewise.
10544 (vtst_p16): Likewise.
10545 (vtst_p64): Likewise.
10546 (vtstq_p8): Likewise.
10547 (vtstq_p16): Likewise.
10548 (vtstq_p64): Likewise.
10549 (vaddlv_s32): Likewise.
10550 (vaddlv_u32): Likewise.
10551 (vqtbl1_p8): Likewise.
10552 (vqtbl1_s8): Likewise.
10553 (vqtbl1_u8): Likewise.
10554 (vqtbl1q_p8): Likewise.
10555 (vqtbl1q_s8): Likewise.
10556 (vqtbl1q_u8): Likewise.
10557 (vqtbx1_s8): Likewise.
10558 (vqtbx1_u8): Likewise.
10559 (vqtbx1_p8): Likewise.
10560 (vqtbx1q_s8): Likewise.
10561 (vqtbx1q_u8): Likewise.
10562 (vqtbx1q_p8): Likewise.
10563 (vtbl1_s8): Likewise.
10564 (vtbl1_u8): Likewise.
10565 (vtbl1_p8): Likewise.
10566 (vtbl2_s8): Likewise.
10567 (vtbl2_u8): Likewise.
10568 (vtbl2_p8): Likewise.
10569 (vtbl3_s8): Likewise.
10570 (vtbl3_u8): Likewise.
10571 (vtbl3_p8): Likewise.
10572 (vtbl4_s8): Likewise.
10573 (vtbl4_u8): Likewise.
10574 (vtbl4_p8): Likewise.
10575 (vtbx2_s8): Likewise.
10576 (vtbx2_u8): Likewise.
10577 (vtbx2_p8): Likewise.
10578 (vld1_f32): Likewise.
10579 (vld1_f64): Likewise.
10580 (vld1_p8): Likewise.
10581 (vld1_p16): Likewise.
10582 (vld1_p64): Likewise.
10583 (vld1_s8): Likewise.
10584 (vld1_s16): Likewise.
10585 (vld1_s32): Likewise.
10586 (vld1_s64): Likewise.
10587 (vld1_u8): Likewise.
10588 (vld1_u16): Likewise.
10589 (vld1_u32): Likewise.
10590 (vld1_u64): Likewise.
10591 (vld1q_f32): Likewise.
10592 (vld1q_f64): Likewise.
10593 (vld1q_p8): Likewise.
10594 (vld1q_p16): Likewise.
10595 (vld1q_p64): Likewise.
10596 (vld1q_s8): Likewise.
10597 (vld1q_s16): Likewise.
10598 (vld1q_s32): Likewise.
10599 (vld1q_s64): Likewise.
10600 (vld1q_u8): Likewise.
10601 (vld1q_u16): Likewise.
10602 (vld1q_u32): Likewise.
10603 (vld1q_u64): Likewise.
10604 (vpmax_s8): Likewise.
10605 (vpmax_s16): Likewise.
10606 (vpmax_s32): Likewise.
10607 (vpmax_u8): Likewise.
10608 (vpmax_u16): Likewise.
10609 (vpmax_u32): Likewise.
10610 (vpmaxq_s8): Likewise.
10611 (vpmaxq_s16): Likewise.
10612 (vpmaxq_s32): Likewise.
10613 (vpmaxq_u8): Likewise.
10614 (vpmaxq_u16): Likewise.
10615 (vpmaxq_u32): Likewise.
10616 (vpmax_f32): Likewise.
10617 (vpmaxq_f32): Likewise.
10618 (vpmaxq_f64): Likewise.
10619 (vpmaxqd_f64): Likewise.
10620 (vpmaxs_f32): Likewise.
10621 (vpmaxnm_f32): Likewise.
10622 (vpmaxnmq_f32): Likewise.
10623 (vpmaxnmq_f64): Likewise.
10624 (vpmaxnmqd_f64): Likewise.
10625 (vpmaxnms_f32): Likewise.
10626 (vpmin_s8): Likewise.
10627 (vpmin_s16): Likewise.
10628 (vpmin_s32): Likewise.
10629 (vpmin_u8): Likewise.
10630 (vpmin_u16): Likewise.
10631 (vpmin_u32): Likewise.
10632 (vpminq_s8): Likewise.
10633 (vpminq_s16): Likewise.
10634 (vpminq_s32): Likewise.
10635 (vpminq_u8): Likewise.
10636 (vpminq_u16): Likewise.
10637 (vpminq_u32): Likewise.
10638 (vpmin_f32): Likewise.
10639 (vpminq_f32): Likewise.
10640 (vpminq_f64): Likewise.
10641 (vpminqd_f64): Likewise.
10642 (vpmins_f32): Likewise.
10643 (vpminnm_f32): Likewise.
10644 (vpminnmq_f32): Likewise.
10645 (vpminnmq_f64): Likewise.
10646 (vpminnmqd_f64): Likewise.
10647 (vpminnms_f32): Likewise.
10648 (vmla_f32): Likewise.
10649 (vmlaq_f32): Likewise.
10650 (vmlaq_f64): Likewise.
10651 (vmls_f32): Likewise.
10652 (vmlsq_f32): Likewise.
10653 (vmlsq_f64): Likewise.
10654 (vqtbl2_s8): Likewise.
10655 (vqtbl2_u8): Likewise.
10656 (vqtbl2_p8): Likewise.
10657 (vqtbl2q_s8): Likewise.
10658 (vqtbl2q_u8): Likewise.
10659 (vqtbl2q_p8): Likewise.
10660 (vqtbl3_s8): Likewise.
10661 (vqtbl3_u8): Likewise.
10662 (vqtbl3_p8): Likewise.
10663 (vqtbl3q_s8): Likewise.
10664 (vqtbl3q_u8): Likewise.
10665 (vqtbl3q_p8): Likewise.
10666 (vqtbl4_s8): Likewise.
10667 (vqtbl4_u8): Likewise.
10668 (vqtbl4_p8): Likewise.
10669 (vqtbl4q_s8): Likewise.
10670 (vqtbl4q_u8): Likewise.
10671 (vqtbl4q_p8): Likewise.
10672 (vqtbx2_s8): Likewise.
10673 (vqtbx2_u8): Likewise.
10674 (vqtbx2_p8): Likewise.
10675 (vqtbx2q_s8): Likewise.
10676 (vqtbx2q_u8): Likewise.
10677 (vqtbx2q_p8): Likewise.
10678 (vqtbx3_s8): Likewise.
10679 (vqtbx3_u8): Likewise.
10680 (vqtbx3_p8): Likewise.
10681 (vqtbx3q_s8): Likewise.
10682 (vqtbx3q_u8): Likewise.
10683 (vqtbx3q_p8): Likewise.
10684 (vqtbx4_s8): Likewise.
10685 (vqtbx4_u8): Likewise.
10686 (vqtbx4_p8): Likewise.
10687 (vqtbx4q_s8): Likewise.
10688 (vqtbx4q_u8): Likewise.
10689 (vqtbx4q_p8): Likewise.
10690 (vrev16_p8): Likewise.
10691 (vrev16_s8): Likewise.
10692 (vrev16_u8): Likewise.
10693 (vrev16q_p8): Likewise.
10694 (vrev16q_s8): Likewise.
10695 (vrev16q_u8): Likewise.
10696 (vrev32_p8): Likewise.
10697 (vrev32_p16): Likewise.
10698 (vrev32_s8): Likewise.
10699 (vrev32_s16): Likewise.
10700 (vrev32_u8): Likewise.
10701 (vrev32_u16): Likewise.
10702 (vrev32q_p8): Likewise.
10703 (vrev32q_p16): Likewise.
10704 (vrev32q_s8): Likewise.
10705 (vrev32q_s16): Likewise.
10706 (vrev32q_u8): Likewise.
10707 (vrev32q_u16): Likewise.
10708 (vrev64_f32): Likewise.
10709 (vrev64_p8): Likewise.
10710 (vrev64_p16): Likewise.
10711 (vrev64_s8): Likewise.
10712 (vrev64_s16): Likewise.
10713 (vrev64_s32): Likewise.
10714 (vrev64_u8): Likewise.
10715 (vrev64_u16): Likewise.
10716 (vrev64_u32): Likewise.
10717 (vrev64q_f32): Likewise.
10718 (vrev64q_p8): Likewise.
10719 (vrev64q_p16): Likewise.
10720 (vrev64q_s8): Likewise.
10721 (vrev64q_s16): Likewise.
10722 (vrev64q_s32): Likewise.
10723 (vrev64q_u8): Likewise.
10724 (vrev64q_u16): Likewise.
10725 (vrev64q_u32): Likewise.
10726 (vsha1cq_u32): Likewise.
10727 (vsha1mq_u32): Likewise.
10728 (vsha1pq_u32): Likewise.
10729 (vsha1h_u32): Likewise.
10730 (vsha1su0q_u32): Likewise.
10731 (vsha1su1q_u32): Likewise.
10732 (vsha256hq_u32): Likewise.
10733 (vsha256h2q_u32): Likewise.
10734 (vsha256su0q_u32): Likewise.
10735 (vsha256su1q_u32): Likewise.
10736 (vmull_p64): Likewise.
10737 (vmull_high_p64): Likewise.
10738 (vsqrt_f32): Likewise.
10739 (vsqrtq_f32): Likewise.
10740 (vsqrt_f64): Likewise.
10741 (vsqrtq_f64): Likewise.
10742 (vst1_f32): Likewise.
10743 (vst1_f64): Likewise.
10744 (vst1_p8): Likewise.
10745 (vst1_p16): Likewise.
10746 (vst1_p64): Likewise.
10747 (vst1_s8): Likewise.
10748 (vst1_s16): Likewise.
10749 (vst1_s32): Likewise.
10750 (vst1_s64): Likewise.
10751 (vst1_u8): Likewise.
10752 (vst1_u16): Likewise.
10753 (vst1_u32): Likewise.
10754 (vst1_u64): Likewise.
10755 (vst1q_f32): Likewise.
10756 (vst1q_f64): Likewise.
10757 (vst1q_p8): Likewise.
10758 (vst1q_p16): Likewise.
10759 (vst1q_p64): Likewise.
10760 (vst1q_s8): Likewise.
10761 (vst1q_s16): Likewise.
10762 (vst1q_s32): Likewise.
10763 (vst1q_s64): Likewise.
10764 (vst1q_u8): Likewise.
10765 (vst1q_u16): Likewise.
10766 (vst1q_u32): Likewise.
10767 (vst1q_u64): Likewise.
10768 (vst1_s64_x2): Likewise.
10769 (vst1_u64_x2): Likewise.
10770 (vst1_f64_x2): Likewise.
10771 (vst1_s8_x2): Likewise.
10772 (vst1_p8_x2): Likewise.
10773 (vst1_s16_x2): Likewise.
10774 (vst1_p16_x2): Likewise.
10775 (vst1_s32_x2): Likewise.
10776 (vst1_u8_x2): Likewise.
10777 (vst1_u16_x2): Likewise.
10778 (vst1_u32_x2): Likewise.
10779 (vst1_f16_x2): Likewise.
10780 (vst1_f32_x2): Likewise.
10781 (vst1_p64_x2): Likewise.
10782 (vst1q_s8_x2): Likewise.
10783 (vst1q_p8_x2): Likewise.
10784 (vst1q_s16_x2): Likewise.
10785 (vst1q_p16_x2): Likewise.
10786 (vst1q_s32_x2): Likewise.
10787 (vst1q_s64_x2): Likewise.
10788 (vst1q_u8_x2): Likewise.
10789 (vst1q_u16_x2): Likewise.
10790 (vst1q_u32_x2): Likewise.
10791 (vst1q_u64_x2): Likewise.
10792 (vst1q_f16_x2): Likewise.
10793 (vst1q_f32_x2): Likewise.
10794 (vst1q_f64_x2): Likewise.
10795 (vst1q_p64_x2): Likewise.
10796 (vst1_s64_x3): Likewise.
10797 (vst1_u64_x3): Likewise.
10798 (vst1_f64_x3): Likewise.
10799 (vst1_s8_x3): Likewise.
10800 (vst1_p8_x3): Likewise.
10801 (vst1_s16_x3): Likewise.
10802 (vst1_p16_x3): Likewise.
10803 (vst1_s32_x3): Likewise.
10804 (vst1_u8_x3): Likewise.
10805 (vst1_u16_x3): Likewise.
10806 (vst1_u32_x3): Likewise.
10807 (vst1_f16_x3): Likewise.
10808 (vst1_f32_x3): Likewise.
10809 (vst1_p64_x3): Likewise.
10810 (vst1q_s8_x3): Likewise.
10811 (vst1q_p8_x3): Likewise.
10812 (vst1q_s16_x3): Likewise.
10813 (vst1q_p16_x3): Likewise.
10814 (vst1q_s32_x3): Likewise.
10815 (vst1q_s64_x3): Likewise.
10816 (vst1q_u8_x3): Likewise.
10817 (vst1q_u16_x3): Likewise.
10818 (vst1q_u32_x3): Likewise.
10819 (vst1q_u64_x3): Likewise.
10820 (vst1q_f16_x3): Likewise.
10821 (vst1q_f32_x3): Likewise.
10822 (vst1q_f64_x3): Likewise.
10823 (vst1q_p64_x3): Likewise.
10824 (vst2_s64): Likewise.
10825 (vst2_u64): Likewise.
10826 (vst2_f64): Likewise.
10827 (vst2_s8): Likewise.
10828 (vst2_p8): Likewise.
10829 (vst2_s16): Likewise.
10830 (vst2_p16): Likewise.
10831 (vst2_s32): Likewise.
10832 (vst2_u8): Likewise.
10833 (vst2_u16): Likewise.
10834 (vst2_u32): Likewise.
10835 (vst2_f16): Likewise.
10836 (vst2_f32): Likewise.
10837 (vst2_p64): Likewise.
10838 (vst2q_s8): Likewise.
10839 (vst2q_p8): Likewise.
10840 (vst2q_s16): Likewise.
10841 (vst2q_p16): Likewise.
10842 (vst2q_s32): Likewise.
10843 (vst2q_s64): Likewise.
10844 (vst2q_u8): Likewise.
10845 (vst2q_u16): Likewise.
10846 (vst2q_u32): Likewise.
10847 (vst2q_u64): Likewise.
10848 (vst2q_f16): Likewise.
10849 (vst2q_f32): Likewise.
10850 (vst2q_f64): Likewise.
10851 (vst2q_p64): Likewise.
10852 (vst3_s64): Likewise.
10853 (vst3_u64): Likewise.
10854 (vst3_f64): Likewise.
10855 (vst3_s8): Likewise.
10856 (vst3_p8): Likewise.
10857 (vst3_s16): Likewise.
10858 (vst3_p16): Likewise.
10859 (vst3_s32): Likewise.
10860 (vst3_u8): Likewise.
10861 (vst3_u16): Likewise.
10862 (vst3_u32): Likewise.
10863 (vst3_f16): Likewise.
10864 (vst3_f32): Likewise.
10865 (vst3_p64): Likewise.
10866 (vst3q_s8): Likewise.
10867 (vst3q_p8): Likewise.
10868 (vst3q_s16): Likewise.
10869 (vst3q_p16): Likewise.
10870 (vst3q_s32): Likewise.
10871 (vst3q_s64): Likewise.
10872 (vst3q_u8): Likewise.
10873 (vst3q_u16): Likewise.
10874 (vst3q_u32): Likewise.
10875 (vst3q_u64): Likewise.
10876 (vst3q_f16): Likewise.
10877 (vst3q_f32): Likewise.
10878 (vst3q_f64): Likewise.
10879 (vst3q_p64): Likewise.
10880 (vst4_s64): Likewise.
10881 (vst4_u64): Likewise.
10882 (vst4_f64): Likewise.
10883 (vst4_s8): Likewise.
10884 (vst4_p8): Likewise.
10885 (vst4_s16): Likewise.
10886 (vst4_p16): Likewise.
10887 (vst4_s32): Likewise.
10888 (vst4_u8): Likewise.
10889 (vst4_u16): Likewise.
10890 (vst4_u32): Likewise.
10891 (vst4_f16): Likewise.
10892 (vst4_f32): Likewise.
10893 (vst4_p64): Likewise.
10894 (vst4q_s8): Likewise.
10895 (vst4q_p8): Likewise.
10896 (vst4q_s16): Likewise.
10897 (vst4q_p16): Likewise.
10898 (vst4q_s32): Likewise.
10899 (vst4q_s64): Likewise.
10900 (vst4q_u8): Likewise.
10901 (vst4q_u16): Likewise.
10902 (vst4q_u32): Likewise.
10903 (vst4q_u64): Likewise.
10904 (vst4q_f16): Likewise.
10905 (vst4q_f32): Likewise.
10906 (vst4q_f64): Likewise.
10907 (vst4q_p64): Likewise.
10908 (vtbx4_s8): Likewise.
10909 (vtbx4_u8): Likewise.
10910 (vtbx4_p8): Likewise.
10911 (vtrn_f32): Likewise.
10912 (vtrn_p8): Likewise.
10913 (vtrn_p16): Likewise.
10914 (vtrn_s8): Likewise.
10915 (vtrn_s16): Likewise.
10916 (vtrn_s32): Likewise.
10917 (vtrn_u8): Likewise.
10918 (vtrn_u16): Likewise.
10919 (vtrn_u32): Likewise.
10920 (vtrnq_f32): Likewise.
10921 (vtrnq_p8): Likewise.
10922 (vtrnq_p16): Likewise.
10923 (vtrnq_s8): Likewise.
10924 (vtrnq_s16): Likewise.
10925 (vtrnq_s32): Likewise.
10926 (vtrnq_u8): Likewise.
10927 (vtrnq_u16): Likewise.
10928 (vtrnq_u32): Likewise.
10929 (vrsqrte_f16): Likewise.
10930 (vrsqrteq_f16): Likewise.
10931 (vsqrt_f16): Likewise.
10932 (vsqrtq_f16): Likewise.
10933 (vabd_f16): Likewise.
10934 (vabdq_f16): Likewise.
10935 (vpadd_f16): Likewise.
10936 (vpaddq_f16): Likewise.
10937 (vpmax_f16): Likewise.
10938 (vpmaxq_f16): Likewise.
10939 (vpmaxnm_f16): Likewise.
10940 (vpmaxnmq_f16): Likewise.
10941 (vpmin_f16): Likewise.
10942 (vpminq_f16): Likewise.
10943 (vpminnm_f16): Likewise.
10944 (vpminnmq_f16): Likewise.
10945 (vrsqrts_f16): Likewise.
10946 (vrsqrtsq_f16): Likewise.
10947
10948 2019-09-25 Richard Biener <rguenther@suse.de>
10949
10950 PR tree-optimization/91896
10951 * tree-vect-loop.c (vectorizable_reduction): The single
10952 def-use cycle optimization cannot apply when there's more
10953 than one pattern stmt involved.
10954
10955 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
10956
10957 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
10958 the 'P' mode iterator, replacing the (removed) SI and DI variants.
10959 (reload_macho_picbase_<mode>): Likewise.
10960
10961 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
10962
10963 * config/rs6000/rs6000.md: Move darwin.md include until
10964 after the definition of the mode iterators.
10965
10966 2019-09-23 Martin Sebor <msebor@redhat.com>
10967
10968 PR tree-optimization/91570
10969 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
10970 non-constant minlen, maxlen and maxbound.
10971
10972 2019-09-24 Richard Biener <rguenther@suse.de>
10973
10974 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
10975 Rename to...
10976 (_stmt_vec_info::cond_reduc_code): ... this.
10977 (_stmt_vec_info::induc_cond_initial_val): Add.
10978 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
10979 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
10980 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
10981 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
10982 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
10983 the reduction code.
10984 (vect_create_epilog_for_reduction): Drop special
10985 induction condition reduction params, pass in reduction code
10986 and simplify.
10987 (vectorizable_reduction): Perform condition reduction kind
10988 selection only at analysis time. Adjust passing on state.
10989
10990 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10991
10992 * config/aarch64/aarch64.md (mov<mode>): Don't call
10993 aarch64_split_dimode_const_store on volatile MEM.
10994
10995 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
10996
10997 * config/aarch64/aarch64-option-extensions.def (fp16fml):
10998 Update hwcap string for fp16fml.
10999
11000 2019-09-24 Jakub Jelinek <jakub@redhat.com>
11001
11002 PR middle-end/91866
11003 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
11004 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
11005
11006 2019-09-24 Martin Liska <mliska@suse.cz>
11007
11008 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
11009 instead of if-elseif-elseif-...
11010 * gimple-expr.c (extract_ops_from_tree): Likewise.
11011 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11012 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
11013
11014 2019-09-24 Martin Jambor <mjambor@suse.cz>
11015
11016 PR ipa/91831
11017 * ipa-param-manipulation.c (carry_over_param): Make a method of
11018 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
11019 in case of a context mismatch.
11020 (ipa_param_body_adjustments::common_initialization): Adjust call to
11021 carry_over_param.
11022 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
11023 private method carry_over_param.
11024
11025 2019-09-24 Martin Jambor <mjambor@suse.cz>
11026
11027 PR ipa/91832
11028 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
11029
11030 2019-09-24 Richard Biener <rguenther@suse.de>
11031
11032 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
11033 base.
11034
11035 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11036
11037 * config/arm/t-arm (arm-builtins.o): Add dependency on
11038 arm_acle_builtins.def.
11039
11040 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11041
11042 PR target/91823
11043 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
11044 canonical CONST_INTs. Use gen_rtvec.
11045
11046 2019-09-23 Richard Biener <rguenther@suse.de>
11047
11048 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
11049 avoid adjusting by + 0 or * 1.
11050 (vect_create_epilog_for_reduction): Get reduction code only
11051 when necessary. Deal with adjustment_def only when necessary.
11052
11053 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11054
11055 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
11056 memmodel index.
11057
11058 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11059
11060 PR ipa/91835
11061 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
11062 "ipa-sra".
11063
11064 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
11065
11066 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
11067 code. Merge code blocks with common conditionals. Use declared
11068 macro instead of a magic number for PIC level.
11069
11070 2019-09-21 Martin Sebor <msebor@redhat.com>
11071
11072 PR middle-end/91830
11073 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
11074 Simplify computation of the offset of the referenced subobject.
11075
11076 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
11077
11078 * config/darwin.c (machopic_legitimize_pic_address): Check
11079 for lra not reload.
11080
11081 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
11082
11083 * ira-conflicts.c (can_use_same_reg_p): New function.
11084 (process_reg_shuffles): Take an insn parameter. Ignore cases
11085 in which input operand op_num could seemingly never be allocated
11086 to the same register as the destination.
11087 (add_insn_allocno_copies): Update call to process_reg_shuffles.
11088
11089 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
11090
11091 * simplify-rtx.c (neg_const_int): Replace with...
11092 (neg_poly_int_rtx): ...this new function.
11093 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
11094 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
11095 (simplify_plus_minus): Likewise for constant terms here.
11096
11097 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
11098
11099 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
11100 HOST_WIDE_PRINT_UNSIGNED.
11101
11102 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
11103
11104 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
11105 character.
11106
11107 2019-09-20 Maya Rashish <coypu@sdf.org>
11108
11109 PR target/86811
11110 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
11111 Define to speculation_safe_value_not_needed.
11112
11113 2019-09-20 Richard Biener <rguenther@suse.de>
11114 Uros Bizjak <ubizjak@gmail.com>
11115
11116 PR target/91814
11117 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
11118 previous change.
11119 (general_scalar_chain::convert_op): Force not suitable memory
11120 operands to a register.
11121
11122 2019-09-20 Richard Biener <rguenther@suse.de>
11123
11124 PR tree-optimization/91821
11125 * tree-vect-loop.c (check_reduction_path): Check we can compute
11126 reduc_idx.
11127 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
11128 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
11129 operands in canonical order.
11130 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11131 STMT_VINFO_REDUC_IDX.
11132 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
11133 (STMT_VINFO_REDUC_IDX): Likewise.
11134
11135 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
11136
11137 PR target/91269
11138 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11139
11140 2019-09-20 Richard Biener <rguenther@suse.de>
11141
11142 PR tree-optimization/91822
11143 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
11144 parameter.
11145 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
11146 for reduc_index in nested cycles, adjust vectorizable_condition
11147 calls.
11148 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
11149 parameter.
11150 (vect_analyze_stmt): Adjust.
11151 (vect_transform_stmt): Likewise.
11152
11153 2019-09-20 Richard Biener <rguenther@suse.de>
11154
11155 PR target/91767
11156 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
11157 Ensure there's a sequence point between allocating the new register
11158 and passing a reference to a reg via regno_reg_rtx.
11159
11160 2019-09-20 Martin Jambor <mjambor@suse.cz>
11161
11162 * coretypes.h (cgraph_edge): Declare.
11163 * ipa-param-manipulation.c: Rewrite.
11164 * ipa-param-manipulation.h: Likewise.
11165 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
11166 (OBJS): Added ipa-sra.o.
11167 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
11168 and ref_p, added fields param_adjustments and performed_splits.
11169 (struct cgraph_clone_info): Remove ags_to_skip and
11170 combined_args_to_skip, new field param_adjustments.
11171 (cgraph_node::create_clone): Changed parameters to use
11172 ipa_param_adjustments.
11173 (cgraph_node::create_virtual_clone): Likewise.
11174 (cgraph_node::create_virtual_clone_with_body): Likewise.
11175 (tree_function_versioning): Likewise.
11176 (cgraph_build_function_type_skip_args): Removed.
11177 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
11178 using ipa_param_adjustments.
11179 (clone_of_p): Likewise.
11180 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
11181 (build_function_decl_skip_args): Likewise.
11182 (duplicate_thunk_for_node): Adjust parameters using
11183 ipa_param_body_adjustments, copy param_adjustments instead of
11184 args_to_skip.
11185 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
11186 (cgraph_node::create_virtual_clone): Likewise.
11187 (cgraph_node::create_version_clone_with_body): Likewise.
11188 (cgraph_materialize_clone): Likewise.
11189 (symbol_table::materialize_all_clones): Likewise.
11190 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
11191 ipa_replace_map check.
11192 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
11193 (initialize_node_lattices): Make aware that some parameters might have
11194 already been removed.
11195 (want_remove_some_param_p): New function.
11196 (create_specialized_node): Convert to using ipa_param_adjustments and
11197 deal with possibly pre-existing adjustments.
11198 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
11199 (output_node_opt_summary): Do not stream removed fields. Stream
11200 parameter adjustments instead of argumetns to skip.
11201 (input_node_opt_summary): Likewise.
11202 (input_node_opt_summary): Likewise.
11203 * lto-section-in.c (lto_section_name): Added ipa-sra section.
11204 * lto-streamer.h (lto_section_type): Likewise.
11205 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
11206 param_body_adjs.
11207 (copy_decl_to_var): Declare.
11208 * tree-inline.c (update_clone_info): Do not remap old_tree.
11209 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
11210 statements, walk all extra generated statements and remap their
11211 operands.
11212 (redirect_all_calls): Add killed SSA names to a hash set.
11213 (remap_ssa_name): Do not remap killed SSA names.
11214 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
11215 half of functionality moved to ipa_param_body_adjustments.
11216 (copy_decl_to_var): Make exported.
11217 (copy_body): Destroy killed_new_ssa_names hash set.
11218 (expand_call_inline): Remap performed splits.
11219 (update_clone_info): Likewise.
11220 (tree_function_versioning): Simplify tree_map processing. Updated to
11221 accept ipa_param_adjustments and use ipa_param_body_adjustments.
11222 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
11223 for the new interface.
11224 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
11225 (simd_clone_compute_base_data_type): Likewise.
11226 (simd_clone_init_simd_arrays): Adjust for the new interface.
11227 (simd_clone_adjust_argument_types): Likewise.
11228 (struct modify_stmt_info): Likewise.
11229 (ipa_simd_modify_stmt_ops): Likewise.
11230 (ipa_simd_modify_function_body): Likewise.
11231 (simd_clone_adjust): Likewise.
11232 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
11233 (type_internals_preclude_sra_p): Make public.
11234 * tree-sra.h: New file.
11235 * ipa-inline-transform.c (save_inline_function_body): Update to
11236 refelct new tree_function_versioning signature.
11237 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
11238 ipa_param_adjustments to get current parameter indices.
11239 (ipcp_modif_dom_walker::before_dom_children): Likewise.
11240 (ipcp_update_bits): Likewise.
11241 (ipcp_update_vr): Likewise.
11242 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
11243 * ipa-sra.c: New file.
11244 * multiple_target.c (create_target_clone): Update to reflet new type
11245 of create_version_clone_with_body.
11246 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
11247 tree_function_versioning.
11248 (modify_function): Update to reflect new type of
11249 tree_function_versioning.
11250 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
11251 * passes.def: Remove old IPA-SRA and add new one.
11252 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
11253 (make_pass_ipa_sra): Declare.
11254 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
11255 ipa_sra_retvalues.
11256 * doc/invoke.texi (ipa-sra-max-replacements): New.
11257
11258 2019-09-19 Martin Sebor <msebor@redhat.com>
11259
11260 PR middle-end/91631
11261 * builtins.c (component_size): Correct trailing array computation,
11262 rename to component_ref_size and move...
11263 (compute_objsize): Adjust.
11264 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
11265 (builtin_access::strict): Do not consider memmove.
11266 (builtin_access::write_off): New function.
11267 (builtin_memref::builtin_memref): Initialize refsize.
11268 (builtin_memref::set_base_and_offset): Adjust refoff and compute
11269 refsize.
11270 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
11271 Handle refsize.
11272 (builtin_access::builtin_access): Initialize dstoff to destination
11273 refeence offset here instead of in maybe_diag_overlap. Adjust
11274 referencess even to unrelated objects. Adjust sizrange of bounded
11275 string functions to reflect bound. For strcat, adjust destination
11276 sizrange by that of source.
11277 (builtin_access::strcat_overlap): Adjust offsets and sizes
11278 to reflect the increase in destination sizrange above.
11279 (builtin_access::overlap): Do not set dstoff here but instead
11280 in builtin_access::builtin_access.
11281 (check_bounds_or_overlap): Use builtin_access::write_off.
11282 (maybe_diag_access_bounds): Add argument. Add informational notes.
11283 (dump_builtin_memref, dump_builtin_access): New functions.
11284 * tree.c (component_ref_size): ...to here.
11285 * tree.h (component_ref_size): Declare.
11286 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
11287 nul in the size of the source string.
11288
11289 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
11290
11291 PR c/67224
11292 * doc/cpp.texi: Document support for extended characters in
11293 identifiers.
11294 * doc/cppopts.texi: Likewise.
11295
11296 2019-09-19 Richard Biener <rguenther@suse.de>
11297
11298 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
11299 (check_reduction_path): New overload having the path as result.
11300 (vect_is_simple_reduction): From the detected reduction
11301 path build a SLP reduction chain if possible.
11302
11303 2019-09-19 Richard Biener <rguenther@suse.de>
11304
11305 PR target/91814
11306 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
11307 Force operand to a register if it isn't nonimmediate_operand.
11308
11309 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
11310
11311 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
11312 * config/arm/iterators.md (optab): Add and, ior, xor entries.
11313 (logical_op): Remove code attribute.
11314 (logical_OP): Likewise.
11315
11316 2019-09-19 Martin Liska <mliska@suse.cz>
11317
11318 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
11319 Use proper casting.
11320
11321 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
11322
11323 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
11324 registers with %R.
11325
11326 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
11327 for NE comparison of TImode values.
11328 (aarch64_emit_load_exclusive): Add support for TImode.
11329 (aarch64_emit_store_exclusive): Likewise.
11330 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
11331 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
11332 Change iterator from ALLI to ALLI_TI.
11333 (@atomic_compare_and_swap<JUST_TI>): New.
11334 (@atomic_compare_and_swap<JUST_TI>_lse): New.
11335 (aarch64_load_exclusive_pair): New.
11336 (aarch64_store_exclusive_pair): New.
11337 * config/aarch64/iterators.md (JUST_TI): New.
11338
11339 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
11340 strong_zero_p for aarch64_track_speculation; unify some code paths;
11341 use aarch64_gen_compare_reg instead of open-coding.
11342
11343 * config/aarch64/aarch64.opt (-moutline-atomics): New.
11344 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
11345 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
11346 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
11347 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
11348 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
11349 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
11350 (atomic_<atomic_op><ALLI>): Likewise.
11351 (atomic_fetch_<atomic_op><ALLI>): Likewise.
11352 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
11353 * doc/invoke.texi: Document -moutline-atomics.
11354
11355 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
11356
11357 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
11358 trivial predicate for condition branch.
11359 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
11360 for switch case.
11361 (compute_bb_predicates): Update predicate based on post-dominating
11362 relationship.
11363 (analyze_function_body): Calculate post-dominating information.
11364
11365 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
11366
11367 * tree-vectorizer.h (vectorizable_condition): Take an int
11368 reduction index instead of a boolean flag.
11369 * tree-vect-stmts.c (vectorizable_condition): Likewise.
11370 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
11371 reductions if the reduction accumulator is the "then" rather
11372 than the "else" value.
11373 (vect_analyze_stmt): Update call accordingly.
11374 (vect_transform_stmt): Likewise.
11375 * tree-vect-loop.c (vectorizable_reduction): Likewise,
11376 asserting that the index is > 0.
11377
11378 2019-09-19 Martin Liska <mliska@suse.cz>
11379
11380 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
11381 (sort_congruence_classes_by_decl_uid): Likewise.
11382 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
11383 easier sorting.
11384 (sem_item_optimizer::merge_classes): Likewise.
11385
11386 2019-09-19 Richard Biener <rguenther@suse.de>
11387
11388 PR tree-optimization/91812
11389 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
11390 volatile loads.
11391
11392 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
11393
11394 * defaults.h (TARGET_UNIT): New macro.
11395 (target_unit): New type.
11396 * rtl.h (native_encode_rtx, native_decode_rtx)
11397 (native_decode_vector_rtx, subreg_size_lsb): Declare.
11398 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
11399 * rtlanal.c (subreg_lsb_1): Delete.
11400 (subreg_size_lsb): New function.
11401 * simplify-rtx.c: Include rtx-vector-builder.h
11402 (simplify_immed_subreg): Delete.
11403 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
11404 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
11405 functions.
11406 (simplify_subreg): Use them.
11407 (test_vector_subregs_modes, test_vector_subregs_repeating)
11408 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
11409 (test_vector_subregs): New functions.
11410 (test_vector_ops): Call test_vector_subregs for integer vector
11411 modes with at least 2 elements.
11412
11413 2019-09-19 Richard Biener <rguenther@suse.de>
11414
11415 * tree-parloops.c (parloops_is_slp_reduction): Do not set
11416 LOOP_VINFO_OPERANDS_SWAPPED.
11417 (parloops_is_simple_reduction): Likewise.
11418 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
11419 initialize operands_swapped.
11420 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
11421 (vect_is_slp_reduction): Do not swap operands.
11422 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
11423 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
11424
11425 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
11426
11427 PR target/87007
11428 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
11429 Add avx_partial_xmm_update.
11430
11431 2019-09-18 Jim Wilson <jimw@sifive.com>
11432
11433 PR target/91683
11434 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
11435 (riscv_move_integer): Likewise.
11436 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
11437 riscv_move_integer arg.
11438 (riscv_legitimize_move): Likewise.
11439 (riscv_force_temporary): New parameter in_splitter. Don't call
11440 force_reg if true.
11441 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
11442 arg.
11443 (riscv_add_offset): Likewise.
11444 (riscv_split_symbol): New parameter in_splitter. Pass to
11445 riscv_force_temporary.
11446 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
11447 arg.
11448 (riscv_move_integer): New parameter in_splitter. New local
11449 can_create_psuedo. Don't call riscv_split_integer or force_reg when
11450 in_splitter TRUE.
11451 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
11452 riscv_split_symbol, and riscv_force_temporary args.
11453 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
11454 riscv_move_integer arg.
11455 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
11456
11457 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
11458
11459 PR target/90878
11460 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
11461 hard register store cost to 6.
11462
11463 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
11464
11465 PR target/91446
11466 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
11467 pseudo register store cost from 3 to 6 to make it the same as
11468 QImode and HImode.
11469
11470 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11471
11472 PR target/91738
11473 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
11474 (one_cmpldi2): Likewise.
11475 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
11476 of the constant parts is simple.
11477 * config/arm/iterators.md (LOGICAL): Add new code iterator.
11478 (logical_op): Add new code attribute.
11479 (logical_OP): Likewise.
11480 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
11481 (arm_iordi_operand): Add predicate.
11482 (arm_xordi_operand): Add predicate.
11483
11484 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11485
11486 * config/arm/arm.md (maddsidi4): Remove expander.
11487 (mulsidi3adddi): Remove pattern.
11488 (mulsidi3adddi_v6): Likewise.
11489 (mulsidi3_nov6): Likewise.
11490 (mulsidi3_v6): Likewise.
11491 (umulsidi3): Remove expander.
11492 (umulsidi3_nov6): Remove pattern.
11493 (umulsidi3_v6): Likewise.
11494 (umulsidi3adddi): Likewise.
11495 (umulsidi3adddi_v6): Likewise.
11496 (<Us>mulsidi3): Add combined expander.
11497 (<Us>maddsidi4): Likewise.
11498 (<US>mull): Add combined umull and smull pattern.
11499 (<US>mlal): Likewise.
11500 * config/arm/iterators.md (Us): Add new iterator.
11501
11502 2019-09-18 Richard Biener <rguenther@suse.de>
11503
11504 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
11505 swapping.
11506 (vectorize_fold_left_reduction): Remove assert.
11507 (vectorizable_reduction): Also expect COND_EXPR non-reduction
11508 operand in position 2. Remove assert.
11509
11510 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11511
11512 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
11513 (smulsi3_highpart_nov6): Remove pattern.
11514 (smulsi3_highpart_v6): Likewise.
11515 (umulsi3_highpart): Likewise.
11516 (umulsi3_highpart_nov6): Likewise.
11517 (umulsi3_highpart_v6): Likewise.
11518 (<US>mull_high): Add new combined multiply pattern.
11519
11520 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11521
11522 * config/arm/arm.md (arm_mulsi3): Remove pattern.
11523 (arm_mulsi3_v6): Likewise.
11524 (mulsi3addsi_v6): Likewise.
11525 (mulsi3subsi): Likewise.
11526 (mul): Add new multiply pattern.
11527 (mla): Likewise.
11528 (mls): Likewise.
11529
11530 2019-09-18 Richard Biener <rguenther@suse.de>
11531
11532 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
11533 (parloops_valid_reduction_input_p): Copy from
11534 valid_reduction_input_p.
11535 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
11536 (parloops_needs_fold_left_reduction_p): Copy from
11537 needs_fold_left_reduction_p.
11538 (parloops_is_simple_reduction): Copy from
11539 vect_is_simple_reduction.
11540 (parloops_force_simple_reduction): Copy from
11541 vect_force_simple_reduction.
11542 (gather_scalar_reductions): Adjust.
11543 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
11544 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
11545
11546 2019-09-18 Richard Biener <rguenther@suse.de>
11547
11548 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
11549 * tree-vect-loop.c (get_initial_def_for_reduction): Make
11550 static.
11551 (vect_create_epilog_for_reduction): Remove dead code.
11552
11553 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11554
11555 * varasm.c (assemble_real): Generate canonical const_ints.
11556
11557 2019-09-18 Richard Biener <rguenther@suse.de>
11558
11559 PR lto/91763
11560 * lto-streamer-in.c (input_eh_regions): Move EH init to
11561 lto_materialize_function.
11562 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
11563 Likewise.
11564
11565 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11566
11567 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
11568 are INTEGER_CSTs.
11569
11570 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11571
11572 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
11573 of checking specifically for INTEGER_CST.
11574
11575 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11576
11577 * stor-layout.c (compute_record_mode): Operate on poly_uint64
11578 sizes instead of uhwi sizes.
11579
11580 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11581
11582 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
11583 (add_const_value_attribute): Handle CONST_POLY_INT.
11584
11585 2019-09-18 Martin Liska <mliska@suse.cz>
11586
11587 * dbgcnt.def (store_merging): New counter.
11588 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
11589 Use it in store merging.
11590
11591 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11592
11593 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
11594 function.
11595 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
11596 * config/arm/arm.c (arm_sched_variable_issue): New function.
11597 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
11598
11599 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11600
11601 * config/arm/types.md (no_reservation): New reservation.
11602 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
11603 no_insn here.
11604 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
11605 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
11606 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
11607 * config/arm/arm1020e.md (1020alu_op): Likewise.
11608 * config/arm/arm1026ejs.md (alu_op): Likewise.
11609 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
11610 * config/arm/arm926ejs.md (9_alu_op): Likewise.
11611 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
11612 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
11613 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
11614 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
11615 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
11616 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
11617 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
11618 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
11619 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
11620 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
11621 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
11622 * config/arm/fa526.md (526_alu_op): Likewise.
11623 * config/arm/fa606te.md (606te_alu_op): Likewise.
11624 * config/arm/fa626te.md (626te_alu_op): Likewise.
11625 * config/arm/fa726te.md (726te_alu_op): Likewise.
11626 * config/arm/xgene1.md (xgene1_nop): Likewise.
11627
11628 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11629
11630 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
11631 "no_insn" to "branch".
11632
11633 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11634
11635 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
11636
11637 2019-09-17 Richard Biener <rguenther@suse.de>
11638
11639 PR debug/91772
11640 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
11641 was missing generate locations only once.
11642
11643 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
11644
11645 PR ipa/91089
11646 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
11647 option.
11648 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
11649 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
11650 for switch default case using range analysis information.
11651
11652 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
11653
11654 PR target/91749
11655 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
11656 mode attributed is supported by FDPIC.
11657
11658 2019-09-17 Richard Biener <rguenther@suse.de>
11659
11660 PR tree-optimization/91790
11661 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
11662 use the correct DR for setting up realignment.
11663
11664 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
11665
11666 PR target/91719
11667 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
11668 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
11669 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
11670 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
11671
11672 2019-09-16 Jason Merrill <jason@redhat.com>
11673
11674 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
11675
11676 2019-09-16 Martin Liska <mliska@suse.cz>
11677
11678 * gimple-fold.c (or_comparisons_1): Remove rules moved
11679 to ...
11680 * match.pd: ... here.
11681
11682 2019-09-16 Martin Liska <mliska@suse.cz>
11683
11684 * gimple-fold.c (or_comparisons_1): Remove rules
11685 moved to ...
11686 * match.pd: ... here.
11687
11688 2019-09-16 Martin Liska <mliska@suse.cz>
11689
11690 * genmatch.c (dt_node::append_simplify): Do not print
11691 warning when we have duplicate patterns belonging
11692 to a same simplify rule.
11693 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
11694 (maybe_fold_comparisons_from_match_pd): Handle
11695 tcc_comparison as a results.
11696 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
11697
11698 2019-09-16 Li Jia He <helijia@linux.ibm.com>
11699 Qi Feng <ffengqi@linux.ibm.com>
11700
11701 PR middle-end/88784
11702 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
11703 (x > y && x == XXX_MIN): Optimize into 'false'.
11704 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
11705 (x < y && x != XXX_MAX): Optimize into 'x < y'.
11706 (x < y && x == XXX_MAX): Optimize into 'false'.
11707 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
11708 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
11709 (x <= y || x != XXX_MIN): Optimize into 'true'.
11710 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
11711 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
11712 (x >= y || x != XXX_MAX): Optimize into 'true'.
11713 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
11714
11715 2019-09-16 Li Jia He <helijia@linux.ibm.com>
11716 Martin Liska <mliska@suse.cz>
11717
11718 * gimple-fold.c (and_comparisons_1): Add type as first
11719 argument.
11720 (and_var_with_comparison): Likewise.
11721 (and_var_with_comparison_1): Likewise.
11722 (or_comparisons_1): Likewise.
11723 (or_var_with_comparison): Likewise.
11724 (or_var_with_comparison_1): Likewise.
11725 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
11726 (maybe_fold_or_comparisons): Likewise.
11727 (maybe_fold_comparisons_from_match_pd): New.
11728 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
11729 (maybe_fold_or_comparisons): Likewise.
11730 * gimple.c (gimple_size): Make it public and add num_ops argument.
11731 (gimple_init): New function.
11732 (gimple_alloc): Call gimple_init.
11733 * gimple.h (gimple_size): New.
11734 (gimple_init): Likewise.
11735 * tree-if-conv.c (fold_or_predicates): Pass type.
11736 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
11737 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
11738 (optimize_vec_cond_expr): Likewise.
11739 (ovce_extract_ops): Return type of conditional expression.
11740 * tree-ssanames.c (init_ssa_name_imm_use): New.
11741 (make_ssa_name_fn): Use init_ssa_name_imm_use.
11742 * tree-ssanames.h (init_ssa_name_imm_use): New.
11743
11744 2019-09-16 Richard Biener <rguenther@suse.de>
11745
11746 PR tree-optimization/91756
11747 PR tree-optimization/87132
11748 * tree-ssa-alias.h (enum translate_flags): New.
11749 (get_continuation_for_phi): Use it instead of simple bool flag.
11750 (walk_non_aliased_vuses): Likewise.
11751 * tree-ssa-alias.c (maybe_skip_until): Adjust.
11752 (get_continuation_for_phi): When looking across backedges only
11753 disallow valueization.
11754 (walk_non_aliased_vuses): Adjust.
11755 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
11756 if requested.
11757
11758 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
11759
11760 PR middle-end/80791
11761 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
11762 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
11763 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
11764 * target.def (have_count_reg_decr_p): New hook.
11765 (doloop_cost_for_generic): Likewise.
11766 (doloop_cost_for_address): Likewise.
11767 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
11768 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
11769 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
11770 * doc/tm.texi: Regenerate.
11771 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
11772 addend.
11773 (record_group): Init doloop_p.
11774 (add_candidate_1): Add optional argument doloop, change the handlings
11775 accordingly.
11776 (add_candidate): Likewise.
11777 (generic_predict_doloop_p): Update attribute.
11778 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
11779 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
11780 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
11781 MIN_EXPR.
11782 (get_computation_cost): Update for doloop IV cand extra cost.
11783 (determine_group_iv_cost_cond): Update for doloop IV cand.
11784 (determine_iv_cost): Likewise.
11785 (ivopts_estimate_reg_pressure): Likewise.
11786 (may_eliminate_iv): Update handlings for doloop IV cand.
11787 (add_iv_candidate_for_doloop): New function.
11788 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
11789 (iv_ca_set_no_cp): Update for doloop IV cand.
11790 (iv_ca_set_cp): Likewise.
11791 (iv_ca_dump): Dump register cost.
11792 (find_doloop_use): New function.
11793 (analyze_and_mark_doloop_use): Likewise.
11794 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
11795
11796 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
11797
11798 PR middle-end/91708
11799 * cse.c (cse_insn): Do not replace anything with a
11800 MEM.
11801
11802 2019-09-13 Ian Lance Taylor <iant@golang.org>
11803
11804 * doc/invoke.texi (Optimize Options): Fix typo.
11805
11806 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
11807
11808 PR tree-optimization/89386
11809 * config/i386/sse.md (smulhrs<mode>3): New expander.
11810 (smulhrsv4hi3): Ditto.
11811
11812 2019-09-12 Richard Biener <rguenther@suse.de>
11813
11814 PR tree-optimization/91750
11815 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
11816 in the type of the evolution.
11817
11818 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
11819
11820 PR tree-optimization/89386
11821 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
11822 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
11823 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
11824 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
11825 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
11826 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
11827 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
11828 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
11829 (su, r): Handle the unspecs above.
11830 (bt): New int attribute.
11831 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
11832 * internal-fn.c (first_commutative_argument): Commutativity info for
11833 above.
11834 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
11835 (umulhrs_optab): New optabs.
11836 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
11837 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
11838 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
11839 function.
11840 (vect_vect_recog_func_ptrs): Add it.
11841
11842 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
11843
11844 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
11845 code.
11846
11847 2019-09-11 Nathan Sidwell <nathan@acm.org>
11848
11849 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
11850 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
11851
11852 2019-09-11 Richard Biener <rguenther@suse.de>
11853
11854 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
11855 * lto-wrapper.c (merge_and_complain): Pick up -g.
11856 (append_compiler_options): Likewise.
11857 (run_gcc): Re-instantiate handling -g0 at link-time.
11858 * doc/invoke.texi (flto): Document debug info generation.
11859
11860 2019-09-11 Richard Biener <rguenther@suse.de>
11861
11862 PR tree-optimization/90387
11863 * vr-values.c (vr_values::extract_range_basic): After inlining
11864 simplify non-constant __builtin_constant_p to false.
11865
11866 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
11867
11868 PR rtl-optimization/89795
11869 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
11870 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
11871
11872 2019-09-11 Jakub Jelinek <jakub@redhat.com>
11873
11874 PR tree-optimization/91723
11875 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
11876 instead of pointer equality when checking if argument vectypes are
11877 the same.
11878
11879 PR middle-end/91725
11880 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
11881 of get_nonzero_bits, only call it for integral types.
11882
11883 2019-09-11 Richard Biener <rguenther@suse.de>
11884
11885 Revert
11886 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
11887
11888 * match.pd: Add flag_unsafe_math_optimizations check
11889 before deciding on the widest type in a binary math operation.
11890
11891 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11892
11893 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
11894 and CALL_REALLY_USED_REGISTERS must be defined, and that
11895 CALL_REALLY_USED_REGISTERS is preferred.
11896 * doc/tm.texi: Regenerate.
11897 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
11898 (call_really_used_regs): Likewise.
11899 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
11900 CALL_REALLY_USED_REGISTERS are defined.
11901 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
11902 initial value if defined.
11903 (initial_call_really_used_regs): Delete.
11904 (saved_call_really_used_regs): Likewise.
11905 (CALL_REALLY_USED_REGNO_P): Likewise.
11906 (init_reg_sets): Remove handling of call_really_used_regs.
11907 (save_register_info, restore_register_info, globalize_reg): Likewise.
11908 (init_reg_sets_1): Likewise. Use call_used_regs instead of
11909 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
11910 outside operand_reg_set.
11911 (fix_register): Don't change call_used_regs if
11912 CALL_REALLY_USED_REGISTERS is defined.
11913 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
11914 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
11915 instead of call_really_used_regs.
11916 (csky_conditional_register_usage): Remove the old handling of
11917 call_used_regs and change the handling of call_really_used_regs
11918 to use call_used_regs instead.
11919 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
11920 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
11921 making a register fixed.
11922 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
11923 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
11924 instead of call_really_used_regs.
11925 (m32r_conditional_register_usage): Don't set call_used_regs when
11926 making a register fixed.
11927 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
11928 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
11929 instead of call_really_used_regs.
11930 (mips_interrupt_extra_call_saved_reg_p): Likewise.
11931 (mips_cfun_call_saved_reg_p): Likewise.
11932 (mips_swap_registers): Remove the old handling of call_used_regs
11933 and change the handling of call_really_used_regs to use call_used_regs
11934 instead.
11935 (mips_conditional_register_usage): Likewise.
11936 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
11937 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
11938 instead of call_really_used_regs.
11939 (mn10300_get_live_callee_saved_regs): Likewise.
11940 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
11941 (mn10300_conditional_register_usage): Don't set call_used_regs when
11942 making a register fixed.
11943 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
11944 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
11945 Remove the old handling of call_used_regs and change the handling
11946 of call_really_used_regs to use call_used_regs instead.
11947 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
11948 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
11949 instead of call_really_used_regs.
11950 (s390_register_info_gprtofpr, s390_register_info): Likewise.
11951 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
11952 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
11953 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
11954 (s390_conditional_register_usage): Remove the old handling of
11955 call_used_regs and change the handling of call_really_used_regs
11956 to use call_used_regs instead.
11957 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
11958 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
11959 (sh_fix_range, reg_unused_after): Likewise.
11960 (sh_conditional_register_usage): Remove the old handling of
11961 call_used_regs and change the handling of call_really_used_regs
11962 to use call_used_regs instead.
11963 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
11964 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
11965 call_used_regs when making a register fixed.
11966 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
11967 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
11968 call_used_regs when making a register fixed.
11969 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
11970 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
11971 set call_used_regs when making a register fixed.
11972 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
11973 * config/visium/visium.c (visium_conditional_register_usage): Remove
11974 the old handling of call_used_regs and change the handling of
11975 call_really_used_regs to use call_used_regs instead.
11976
11977 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11978
11979 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
11980 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
11981 * reginfo.c (call_used_regs): New macro.
11982
11983 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11984
11985 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
11986 fixed_regs test.
11987 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
11988 (bpf_expand_epilogue): Likewise.
11989 * config/c6x/c6x.c (c6x_save_reg): Likewise.
11990 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
11991 (ft32_expand_epilogue): Likewise.
11992 * config/i386/i386.c (ix86_save_reg): Likewise.
11993 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
11994 (moxie_expand_epilogue): Likewise.
11995 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
11996 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
11997 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
11998
11999 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12000
12001 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
12002 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
12003 instead of testing call_used_regs directly.
12004 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
12005 (aarch64_components_for_bb): Likewise.
12006 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
12007 * config/arc/arc.c (arc_must_save_register): Likewise.
12008 (arc_epilogue_uses): Likewise.
12009 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
12010 (legitimize_pic_address, callee_saved_reg_p): Likewise.
12011 (arm_compute_save_reg0_reg12_mask): Likewise.
12012 (arm_compute_save_core_reg_mask): Likewise.
12013 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
12014 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
12015 (cmse_nonsecure_entry_clear_before_return): Likewise.
12016 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
12017 (arm_expand_epilogue): Likewise.
12018 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
12019 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
12020 (_reg_unused_after): Likewise.
12021 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
12022 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
12023 (add_to_reg, hwloop_optimize): Likewise.
12024 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12025 (bpf_expand_epilogue): Likewise.
12026 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
12027 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
12028 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
12029 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
12030 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
12031 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
12032 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
12033 * config/frv/frv.c (frv_stack_info): Likewise.
12034 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
12035 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
12036 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
12037 (move_callee_saved_registers): Likewise.
12038 * config/h8300/h8300.c (byte_reg): Likewise.
12039 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
12040 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
12041 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
12042 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
12043 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
12044 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
12045 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
12046 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
12047 * config/m32c/m32c.c (need_to_save): Likewise.
12048 * config/m68k/m68k.c (m68k_save_reg): Likewise.
12049 * config/mcore/mcore.c (calc_live_regs): Likewise.
12050 * config/microblaze/microblaze.c (microblaze_must_save_register):
12051 Likewise.
12052 * config/mmix/mmix.c (mmix_local_regno): Likewise.
12053 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
12054 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
12055 (mmix_expand_epilogue): Likewise.
12056 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
12057 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
12058 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
12059 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
12060 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
12061 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
12062 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
12063 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
12064 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
12065 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
12066 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
12067 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
12068 * config/rl78/rl78.c (need_to_save): Likewise.
12069 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
12070 (rs6000_stack_info, generate_set_vrsave): Likewise.
12071 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
12072 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
12073 * config/rx/rx.c (rx_get_stack_layout): Likewise.
12074 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12075 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
12076 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
12077 (save_local_or_in_reg_p): Likewise.
12078 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
12079 (xstormy16_epilogue_uses): Likewise.
12080 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12081 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12082 * config/v850/v850.c (compute_register_save_size): Likewise.
12083 * config/vax/vax.c (vax_expand_prologue): Likewise.
12084 * config/visium/visium.c (visium_save_reg_p): Likewise.
12085 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12086 * cselib.c (cselib_process_insn): Likewise.
12087 * df-scan.c (df_get_entry_block_def_set): Likewise.
12088 * function.c (aggregate_value_p): Likewise.
12089 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
12090 * ira-lives.c (process_bb_node_lives): Likewise.
12091 * ira.c (do_reload): Likewise.
12092 * lra-lives.c (process_bb_lives): Likewise.
12093 * lra-remat.c (lra_remat): Likewise.
12094 * lra.c (lra): Likewise.
12095 * postreload.c (reload_combine_recognize_pattern): Likewise.
12096 (reload_cse_move2add): Likewise.
12097 * recog.c (peep2_find_free_register): Likewise.
12098 * regrename.c (check_new_reg_p): Likewise.
12099 * reload.c (find_equiv_reg): Likewise.
12100 * reload1.c (reload, find_reg): Likewise.
12101 * sel-sched.c (init_hard_regs_data): Likewise.
12102
12103 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12104
12105 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
12106 regs_invalidated_by_call & ~fixed_reg_set instead of
12107 call_used_or_fixed_regs & ~fixed_reg_set.
12108 * config/sh/sh.c (output_stack_adjust): Likewise.
12109
12110 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12111
12112 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
12113 (call_used_reg_set): Delete.
12114 (call_used_or_fixed_regs): New macro.
12115 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
12116 of call_used_reg_set.
12117 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
12118 instead of call_used_regs.
12119 (save_call_clobbered_regs): Likewise.
12120 * cfgcleanup.c (old_insns_match_p): Likewise.
12121 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
12122 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
12123 Likewise.
12124 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12125 * config/sh/sh.c (output_stack_adjust): Likewise.
12126 * final.c (collect_fn_hard_reg_usage): Likewise.
12127 * ira-build.c (ira_build): Likewise.
12128 * ira-color.c (calculate_saved_nregs): Likewise.
12129 (allocno_reload_assign, calculate_spill_cost): Likewise.
12130 * ira-conflicts.c (ira_build_conflicts): Likewise.
12131 * ira-costs.c (ira_tune_allocno_costs): Likewise.
12132 * ira-lives.c (process_bb_node_lives): Likewise.
12133 * ira.c (setup_reg_renumber): Likewise.
12134 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
12135 * lra-constraints.c (need_for_call_save_p): Likewise.
12136 (need_for_split_p, inherit_in_ebb): Likewise.
12137 * lra-lives.c (process_bb_lives): Likewise.
12138 * lra-remat.c (call_used_input_regno_present_p): Likewise.
12139 * postreload.c (reload_combine): Likewise.
12140 * regrename.c (find_rename_reg): Likewise.
12141 * reload1.c (reload_as_needed): Likewise.
12142 * rtlanal.c (find_all_hard_reg_sets): Likewise.
12143 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12144 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12145
12146 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12147
12148 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
12149 (no_caller_save_reg_set): Delete.
12150 * caller-save.c (init_caller_save): Don't initialize it.
12151 * ira-conflicts.c (ira_build_conflicts): Calculate
12152 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
12153
12154 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12155
12156 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
12157 (target_hard_regs::x_savable_regs): New field.
12158 (call_fixed_reg_set): Delete.
12159 (savable_regs): New macro,
12160 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
12161 (init_reg_sets_1): Likewise. Initialize savable_regs.
12162 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
12163 for all registers. Set savable_regs instead of call_fixed_reg_set.
12164 (setup_save_areas, save_call_clobbered_regs): Replace uses of
12165 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
12166 * config/sh/sh.c (output_stack_adjust): Likewise.
12167
12168 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12169
12170 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
12171 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
12172 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
12173
12174 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12175
12176 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
12177 * rtlanal.c (get_call_rtx_from): Likewise.
12178 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
12179 than the pattern to get_call_rtx_from.
12180 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
12181 an rtx_insn * instead of an rtx.
12182 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
12183
12184 2019-09-10 Martin Liska <mliska@suse.cz>
12185
12186 * common.opt: Use newly added WarnRemoved.
12187 * config/aarch64/aarch64.opt: Likewise.
12188 * config/arm/arm.opt: Likewise.
12189 * config/i386/i386.opt: Likewise.
12190 * config/ia64/ia64.opt: Likewise.
12191 * config/rs6000/rs6000.opt: Likewise.
12192 * doc/options.texi: Document WarnRemoved properly.
12193 * dwarf2out.c (gen_producer_string): Handle renamed
12194 OPT_SPECIAL_warn_removed.
12195 * lto-opts.c (lto_write_options): Likewise.
12196 * lto-wrapper.c (merge_and_complain): Likewise.
12197 * opts-common.c (decode_cmdline_option): Likewise.
12198 (prune_options): Likewise.
12199 (read_cmdline_option): Likewise.
12200 (control_warning_option): Likewise.
12201 * opts.c (print_filtered_help): Likewise.
12202 * optc-gen.awk: Parse for WarnRemoved and make usage
12203 of Deprecated an error.
12204 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
12205
12206 2019-09-10 Arnaud Charlet <charlet@adacore.com>
12207
12208 * doc/install.texi: Fix syntax for html generation.
12209
12210 2019-09-10 Jakub Jelinek <jakub@redhat.com>
12211
12212 PR middle-end/91680
12213 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
12214 the shift type to type.
12215
12216 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12217
12218 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
12219 FDPIC mode.
12220 (stack_protect_combined_test_insn): Likewise.
12221
12222 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12223 Mickaël Guêné <mickael.guene@st.com>
12224
12225 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
12226 * config/arm/arm.md (FDPIC_REGNUM): New constant.
12227 (load_tp_soft_fdpic): New pattern.
12228 (load_tp_soft): Disable in FDPIC mode.
12229
12230 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12231 Mickaël Guêné <mickael.guene@st.com>
12232
12233 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
12234 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
12235 (arm_call_tls_get_addr): Add FDPIC support.
12236 (legitimize_tls_address): Likewise.
12237 (arm_emit_tls_decoration): Likewise.
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 (arm_asm_trampoline_template): Add FDPIC
12243 support.
12244 (arm_trampoline_init): Likewise.
12245 (arm_trampoline_adjust_address): Likewise.
12246 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
12247
12248 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12249 Mickaël Guêné <mickael.guene@st.com>
12250
12251 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
12252 (legitimize_pic_address): Enforce binding rules on function
12253 pointers in FDPIC mode.
12254 (arm_assemble_integer): Likewise.
12255
12256 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12257 Mickaël Guêné <mickael.guene@st.com>
12258
12259 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
12260 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
12261 FDPIC.
12262
12263 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12264 Mickaël Guêné <mickael.guene@st.com>
12265
12266 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
12267 field.
12268
12269 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12270 Mickaël Guêné <mickael.guene@st.com>
12271
12272 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
12273 in FDPIC mode.
12274 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
12275 new function.
12276 * config/arm/arm.c (arm_option_override): Define pic register to
12277 FDPIC_REGNUM.
12278 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
12279 have no decl or go through PLT.
12280 (calculate_pic_address_constant): New function.
12281 (legitimize_pic_address): Call calculate_pic_address_constant.
12282 (arm_load_pic_register): Handle TARGET_FDPIC.
12283 (arm_is_segment_info_known): New function.
12284 (arm_pic_static_addr): Add support for FDPIC.
12285 (arm_load_function_descriptor): New function.
12286 (arm_emit_call_insn): Add support for FDPIC.
12287 (arm_assemble_integer): Add support for FDPIC.
12288 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
12289 Define. (FDPIC_REGNUM): New define.
12290 * config/arm/arm.md (call): Add support for FDPIC.
12291 (call_value): Likewise.
12292 (restore_pic_register_after_call): New pattern.
12293 (untyped_call): Disable if FDPIC.
12294 (untyped_return): Likewise.
12295 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
12296
12297 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12298 Mickaël Guêné <mickael.guene@st.com>
12299
12300 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
12301 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
12302 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
12303 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
12304 (CC1_SPEC): Use FDPIC_CC1_SPEC.
12305 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
12306 * config/arm/uclinuxfdpiceabi.h: New file.
12307
12308 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12309
12310 * config.gcc: Handle *-*-uclinuxfdpiceabi.
12311
12312 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12313 Mickaël Guêné <mickael.guene@st.com>
12314
12315 * config/arm/arm.opt: Add -mfdpic option.
12316 * doc/invoke.texi: Add documentation for -mfdpic.
12317
12318 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12319
12320 * expmed.c (extract_bit_field): Update function comment
12321 regarding alt_rtl.
12322 * expr.c (expand_expr_real): Update function comment
12323 regarding alt_rtl.
12324 (expand_misaligned_mem_ref): New helper function.
12325 (expand_expr_real_2): Use expand_misaligned_mem_ref.
12326 Remove duplicate assignment to "base" at case MEM_REF.
12327 Remove a shadowed variable "unsignedp" at case VCE.
12328
12329 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12330
12331 * regset.h (regs_invalidated_by_call_regset): Delete.
12332 (fixed_reg_set_regset): Likewise.
12333 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
12334 (fixed_reg_set_regset, persistent_obstack): Likewise.
12335 (init_reg_sets_1, globalize_reg): Update accordingly.
12336 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
12337 instead of a bitmap.
12338 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
12339 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
12340 instead of regs_invalidated_by_call_regset.
12341 (df_lr_confluence_n, df_md_confluence_n): Likewise.
12342 * df-scan.c (df_scan_start_dump): Likewise.
12343 * dse.c (copy_fixed_regs): Likewise.
12344 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
12345
12346 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12347
12348 * array-traits.h: New file.
12349 * coretypes.h (array_traits, bitmap_view): New types.
12350 * bitmap.h: Include "array-traits.h"
12351 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
12352 (base_bitmap_view, bitmap_view): New classes.
12353 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
12354 * hard-reg-set.h: Include array-traits.h.
12355 (array_traits<HARD_REG_SET>): New struct.
12356 * regset.h (IOR_REG_SET_HRS): New macro.
12357 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
12358 rather than iterating over each hard register.
12359 * sched-deps.c (sched_analyze_insn): Likewise.
12360 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
12361
12362 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12363
12364 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
12365 instead of a HARD_REG_SET *.
12366 * ira-build.c (ior_hard_reg_conflicts): Likewise.
12367 (ira_build): Update call accordingly.
12368 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
12369
12370 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12371
12372 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
12373 (HARD_REG_SET::operator!=): Likewise.
12374 (hard_reg_set_equal_p): Delete.
12375 * cfgcleanup.c (old_insns_match_p): Use == instead of
12376 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
12377 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
12378 (add_allocno_hard_regs_to_forest): Likewise.
12379 (setup_allocno_available_regs_num): Likewise.
12380 * ira.c (setup_pressure_classes): Likewise.
12381 (setup_allocno_and_important_classes): Likewise.
12382 (setup_reg_class_relations): Likewise.
12383 * lra-lives.c (process_bb_lives): Likewise.
12384 * reg-stack.c (change_stack, convert_regs_1): Likewise.
12385
12386 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12387
12388 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
12389 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
12390 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
12391 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
12392 Likewise.
12393 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
12394 * ira.c (setup_reg_renumber): Likewise.
12395 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12396 * regrename.c (regrename_find_superclass): Likewise.
12397 * reload1.c (find_reg): Likewise.
12398
12399 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12400
12401 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
12402 * caller-save.c (setup_save_areas): Use "&~" instead of
12403 AND_COMPL_HARD_REG_SET.
12404 (save_call_clobbered_regs): Likewise.
12405 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
12406 Likewise.
12407 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12408 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12409 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
12410 * config/mips/mips.c (mips_class_max_nregs): Likewise.
12411 (mips_conditional_register_usage): Likewise.
12412 * config/sh/sh.c (output_stack_adjust): Likewise.
12413 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
12414 (setup_profitable_hard_regs): Likewise.
12415 (get_conflict_and_start_profitable_regs): Likewise.
12416 * ira-conflicts.c (print_allocno_conflicts): Likewise.
12417 (ira_build_conflicts): Likewise.
12418 * ira-costs.c (restrict_cost_classes): Likewise.
12419 (setup_regno_cost_classes_by_aclass): Likewise.
12420 * ira-lives.c (process_bb_node_lives): Likewise.
12421 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
12422 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
12423 (setup_allocno_and_important_classes, setup_class_translate_array)
12424 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
12425 Likewise.
12426 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12427 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
12428 (process_alt_operands, inherit_in_ebb): Likewise.
12429 * lra-eliminations.c (update_reg_eliminate): Likewise.
12430 * lra-lives.c (process_bb_lives): Likewise.
12431 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
12432 * resource.c (find_dead_or_set_registers): Likewise.
12433 (mark_target_live_regs): Likewise.
12434 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
12435 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12436 (implicit_clobber_conflict_p): Likewise.
12437 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12438 (try_shrink_wrapping): Likewise.
12439
12440 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12441
12442 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
12443 (HARD_REG_SET::operator|=): Likewise.
12444 (IOR_HARD_REG_SET): Delete.
12445 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
12446 IOR_HARD_REG_SET.
12447 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
12448 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
12449 * final.c (collect_fn_hard_reg_usage): Likewise.
12450 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
12451 * ira-build.c (merge_hard_reg_conflicts): Likewise.
12452 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
12453 (propagate_some_info_from_allocno): Likewise.
12454 (copy_info_to_removed_store_destinations): Likewise.
12455 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
12456 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
12457 (fast_allocation): Likewise.
12458 * ira-conflicts.c (ira_build_conflicts): Likewise.
12459 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
12460 (process_bb_node_lives): Likewise.
12461 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
12462 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12463 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
12464 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
12465 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
12466 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
12467 (process_bb_lives): Likewise.
12468 * lra-spills.c (assign_spill_hard_regs): Likewise.
12469 * postreload.c (reload_combine): Likewise.
12470 * reginfo.c (init_reg_sets_1): Likewise.
12471 * regrename.c (merge_overlapping_regs, find_rename_reg)
12472 (merge_chains): Likewise.
12473 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
12474 (find_reload_regs, finish_spills, choose_reload_regs_init)
12475 (emit_reload_insns): Likewise.
12476 * reorg.c (redundant_insn): Likewise.
12477 * resource.c (find_dead_or_set_registers, mark_set_resources)
12478 (mark_target_live_regs): Likewise.
12479 * rtlanal.c (find_all_hard_reg_sets): Likewise.
12480 * sched-deps.c (sched_analyze_insn): Likewise.
12481 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12482 (find_best_reg_for_expr): Likewise.
12483 * shrink-wrap.c (try_shrink_wrapping): Likewise.
12484
12485 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12486
12487 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
12488 (HARD_REG_SET::operator&): Likewise.
12489 (AND_HARD_REG_SET): Delete.
12490 * caller-save.c (setup_save_areas): Use "&" instead of
12491 AND_HARD_REG_SET.
12492 (save_call_clobbered_regs): Likewise.
12493 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12494 * config/m32c/m32c.c (reduce_class): Likewise.
12495 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
12496 * final.c (get_call_reg_set_usage): Likewise.
12497 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
12498 (setup_left_conflict_sizes_p): Likewise.
12499 * ira-conflicts.c (print_allocno_conflicts): Likewise.
12500 (ira_build_conflicts): Likewise.
12501 * ira-costs.c (restrict_cost_classes): Likewise.
12502 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
12503 (setup_reg_class_relations): Likewise.
12504 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
12505 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
12506 * resource.c (find_dead_or_set_registers): Likewise.
12507 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12508
12509 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12510
12511 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
12512 (COMPL_HARD_REG_SET): Delete.
12513 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
12514 of COMPL_HARD_REG_SET.
12515 (try_rename_operands): Likewise.
12516 * config/sh/sh.c (push_regs): Likewise.
12517 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12518 * lra-constraints.c (contains_reg_p): Likewise.
12519 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
12520
12521 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12522
12523 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
12524 * caller-save.c (save_call_clobbered_regs): Use assignment instead
12525 of COPY_HARD_REG_SET.
12526 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
12527 (epiphany_conditional_register_usage): Likewise.
12528 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12529 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12530 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
12531 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
12532 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
12533 * config/mips/mips.c (mips_class_max_nregs): Likewise.
12534 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
12535 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
12536 * config/sh/sh.c (output_stack_adjust): Likewise.
12537 * final.c (collect_fn_hard_reg_usage): Likewise.
12538 (get_call_reg_set_usage): Likewise.
12539 * ira-build.c (ira_create_object, remove_low_level_allocnos)
12540 (ira_flattening): Likewise.
12541 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
12542 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
12543 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
12544 (ira_reassign_pseudos): Likewise.
12545 * ira-conflicts.c (print_allocno_conflicts): Likewise.
12546 (ira_build_conflicts): Likewise.
12547 * ira-costs.c (restrict_cost_classes): Likewise.
12548 (setup_regno_cost_classes_by_aclass): Likewise.
12549 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
12550 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
12551 (setup_stack_reg_pressure_class, setup_pressure_classes)
12552 (setup_allocno_and_important_classes, setup_class_translate_array)
12553 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
12554 (ira_setup_eliminable_regset): Likewise.
12555 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12556 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
12557 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
12558 (process_alt_operands, inherit_in_ebb): Likewise.
12559 * lra-lives.c (process_bb_lives): Likewise.
12560 * lra-spills.c (assign_spill_hard_regs): Likewise.
12561 * lra.c (lra): Likewise.
12562 * mode-switching.c (new_seginfo): Likewise.
12563 * postreload.c (reload_combine): Likewise.
12564 * reg-stack.c (straighten_stack): Likewise.
12565 * reginfo.c (save_register_info, restore_register_info): Likewise.
12566 (init_reg_sets_1, record_subregs_of_mode): Likewise
12567 * regrename.c (create_new_chain, rename_chains): Likewise.
12568 * reload1.c (order_regs_for_reload, find_reg): Likewise.
12569 (find_reload_regs): Likewise.
12570 * resource.c (find_dead_or_set_registers): Likewise.
12571 (mark_target_live_regs): Likewise.
12572 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12573
12574 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12575
12576 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
12577 (note_pattern_stores): Declare.
12578 (note_stores): Take an rtx_insn *.
12579 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
12580 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
12581 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
12582 (note_stores): Take an rtx_insn * as argument and process
12583 CALL_INSN_FUNCTION_USAGE. Rename old function to...
12584 (note_pattern_stores): ...this.
12585 (find_first_parameter_load): Pass the insn rather than
12586 its pattern to note_stores.
12587 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
12588 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
12589 (insert_one_insn): Likewise.
12590 * combine.c (combine_instructions): Likewise.
12591 (likely_spilled_retval_p): Likewise.
12592 (try_combine): Use note_pattern_stores instead of note_stores.
12593 (record_dead_and_set_regs): Pass the insn rather than its pattern
12594 to note_stores.
12595 (reg_dead_at_p): Likewise.
12596 * config/bfin/bfin.c (workaround_speculation): Likewise.
12597 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
12598 rather than an rtx.
12599 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
12600 instead of note_stores.
12601 (frv_optimize_membar_local): Pass the insn rather than its pattern
12602 to note_stores.
12603 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12604 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
12605 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
12606 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
12607 (mips_reorg_process_insns): Likewise.
12608 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
12609 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
12610 rather than rtxes.
12611 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
12612 its pattern to note_stores.
12613 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
12614 of note_stores.
12615 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
12616 the insn to note_stores.
12617 (prescan_insns_for_dce): Update call accordingly.
12618 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
12619 to note_stores.
12620 * df-problems.c (can_move_insns_across): Likewise.
12621 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
12622 * function.c (assign_parm_setup_reg): Likewise.
12623 * gcse-common.c (record_last_mem_set_info_common): Likewise.
12624 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
12625 (single_set_gcse): Likewise.
12626 * ira.c (validate_equiv_mem): Likewise.
12627 (update_equiv_regs): Use note_pattern_stores rather than note_stores
12628 for no_equiv.
12629 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
12630 pattern to note_stores.
12631 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12632 * loop-iv.c (simplify_using_initial_values): Likewise.
12633 * mode-switching.c (optimize_mode_switching): Likewise.
12634 * optabs.c (emit_libcall_block_1): Likewise.
12635 (expand_atomic_compare_and_swap): Likewise.
12636 * postreload-gcse.c (load_killed_in_block_p): Likewise.
12637 (record_opr_changes): Likewise. Remove explicit handling of
12638 CALL_INSN_FUNCTION_USAGE.
12639 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
12640 * regcprop.c (kill_clobbered_values): Likewise.
12641 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
12642 to note_stores.
12643 * regrename.c (build_def_use): Likewise.
12644 * reload1.c (reload): Use note_pattern_stores instead of note_stores
12645 for mark_not_eliminable.
12646 (reload_as_needed): Pass the insn rather than its pattern
12647 to note_stores.
12648 (emit_output_reload_insns): Likewise.
12649 * resource.c (mark_target_live_regs): Likewise.
12650 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12651 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
12652 instead of note_stores.
12653 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
12654 its pattern to note_stores.
12655 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
12656 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
12657
12658 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12659
12660 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
12661 than a #define. Use a structure rather than an array as the
12662 fallback definition. Remove special cases for low array sizes.
12663 (const_hard_reg_set): New typedef.
12664 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
12665 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
12666 (hard_reg_set_empty_p): Likewise.
12667 (SET_HARD_REG_BIT): Use a function rather than a macro to
12668 handle the case in which HARD_REG_SET is a structure.
12669 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
12670 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
12671 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
12672 (IOR_COMPL_HARD_REG_SET): Likewise.
12673 (hard_reg_set_iterator::pset): Constify the pointer target.
12674 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
12675 of a "const HARD_REG_SET". Update the handling of non-integer
12676 HARD_REG_SETs.
12677 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
12678 * reload.h: Likewise.
12679 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
12680 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
12681 of a "const HARD_REG_SET".
12682 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
12683 (range_in_hard_reg_set_p): Likewise.
12684 * ira-costs.c (restrict_cost_classes): Likewise.
12685 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
12686 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
12687 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
12688 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
12689 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
12690 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
12691 take an unsigned int and open-code the HARD_REG_SET operations.
12692
12693 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12694
12695 * Makefile.in (OBJS): Remove bt-load.o.
12696 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
12697 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
12698 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
12699 document that the option no longer does anything.
12700 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
12701 * target.def (branch_target_register_class): Delete.
12702 (branch_target_register_callee_saved): Likewise.
12703 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
12704 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
12705 * doc/tm.texi: Regenerate.
12706 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
12707 (make_pass_branch_target_load_optimize2): Likewise.
12708 * passes.def (pass_branch_target_load_optimize1): Likewise.
12709 (pass_branch_target_load_optimize2): Likewise.
12710 * targhooks.h (default_branch_target_register_class): Likewise.
12711 * targhooks.c (default_branch_target_register_class): Likewise.
12712 * opt-suggestions.c (test_completion_valid_options): Remove
12713 -fbtr-bb-exclusive from the list of test options.
12714 * bt-load.c: Remove.
12715
12716 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12717
12718 * match.pd: Add flag_unsafe_math_optimizations check
12719 before deciding on the widest type in a binary math operation.
12720
12721 2019-09-09 Martin Liska <mliska@suse.cz>
12722
12723 * config/i386/i386.opt: Update comment of removed
12724 options that are preserved only for backward
12725 compatibility.
12726
12727 2019-09-09 Jakub Jelinek <jakub@redhat.com>
12728
12729 PR target/87853
12730 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
12731 instead of __v16qs.
12732
12733 PR target/91704
12734 * config/i386/avxintrin.h (__v32qs): New typedef.
12735 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
12736 instead of __v32qi.
12737
12738 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12739
12740 * doc/invoke.texi (Option Summary): Cover eBPF.
12741 (eBPF Options): New section.
12742 * doc/extend.texi (BPF Built-in Functions): Likewise.
12743 (BPF Kernel Helpers): Likewise.
12744
12745 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12746
12747 * config.gcc: Support for bpf-*-* targets.
12748 * common/config/bpf/bpf-common.c: New file.
12749 * config/bpf/t-bpf: Likewise.
12750 * config/bpf/predicates.md: Likewise.
12751 * config/bpf/constraints.md: Likewise.
12752 * config/bpf/bpf.opt: Likewise.
12753 * config/bpf/bpf.md: Likewise.
12754 * config/bpf/bpf.h: Likewise.
12755 * config/bpf/bpf.c: Likewise.
12756 * config/bpf/bpf-protos.h: Likewise.
12757 * config/bpf/bpf-opts.h: Likewise.
12758 * config/bpf/bpf-helpers.h: Likewise.
12759 * config/bpf/bpf-helpers.def: Likewise.
12760
12761 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12762
12763 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12764 indirect_calls.
12765
12766 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12767
12768 * opt-functions.awk (integer_range_info): Make sure values are in
12769 numeric context before operating with them.
12770
12771 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
12772
12773 * genemit.c (gen_split): Print the filename and line number where the
12774 splitter (or peephole2) was defined, to the dump file.
12775
12776 2019-09-07 Jakub Jelinek <jakub@redhat.com>
12777
12778 PR tree-optimization/91665
12779 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
12780 incompatible with the type of PHI result.
12781
12782 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
12783
12784 PR target/91684
12785 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
12786 gen_unaligned_storedi for 4-byte aligned addresses.
12787
12788 2019-09-06 Jim Wilson <jimw@sifive.com>
12789
12790 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
12791 change.
12792
12793 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
12794
12795 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
12796
12797 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
12798
12799 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
12800 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
12801
12802 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
12803
12804 PR target/91654
12805 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
12806 cost of SSE->integer and integer->SSE moves from 2 to 6.
12807 (core_cost): Ditto.
12808
12809 2019-09-06 Jakub Jelinek <jakub@redhat.com>
12810
12811 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
12812 before testing TYPE_TRANSPARENT_AGGR.
12813 * calls.c (initialize_argument_information, load_register_parameters):
12814 Likewise.
12815
12816 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
12817
12818 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
12819 high regs.
12820 (cmp_ior): Likewise.
12821
12822 2019-09-06 Martin Liska <mliska@suse.cz>
12823
12824 * doc/match-and-simplify.texi: Separate tuples with ;.
12825
12826 2019-09-06 Martin Liska <mliska@suse.cz>
12827
12828 PR c++/91125
12829 * Makefile.in: Remove tlink.o.
12830 * collect2.c (do_link): New function isolated
12831 from do_tlink.
12832 (main): Use.
12833 * collect2.h (do_tlink): Remove declaration of do_tlink.
12834 * doc/extend.texi: Remove documentation of -frepo.
12835 * doc/invoke.texi: Likewise.
12836 * doc/sourcebuild.texi: Remove cleanup-repo-files.
12837 * tlink.c: Remove.
12838
12839 2019-09-05 Jakub Jelinek <jakub@redhat.com>
12840 Jim Wilson <jimw@sifive.com>
12841
12842 PR target/91635
12843 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
12844 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
12845 paradoxical_subreg_p (operands[0]).
12846 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
12847 use as intermediate value.
12848
12849 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
12850
12851 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
12852 (sync_compare_and_swap<mode>_insn): Likewise.
12853
12854 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
12855
12856 PR middle-end/91615
12857 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
12858 without movmisalign optab.
12859
12860 2019-09-05 Jakub Jelinek <jakub@redhat.com>
12861
12862 PR middle-end/91001
12863 PR middle-end/91105
12864 PR middle-end/91106
12865 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
12866 types, use type of their first field instead of type of
12867 args[i].tree_value.
12868
12869 2019-09-05 Richard Biener <rguenther@suse.de>
12870
12871 PR rtl-optimization/91656
12872 * postreload-gcse.c (record_last_mem_set_info): Revert addition
12873 of early out.
12874
12875 2019-09-05 Richard Biener <rguenther@suse.de>
12876
12877 PR middle-end/90501
12878 * tree-inline.c (declare_return_variable): Mark the return
12879 slot as addressable after building an address of it.
12880
12881 2019-09-05 Arnaud Charlet <charlet@adacore.com>
12882
12883 * doc/install.texi: Update and clarify requirements to build GNAT.
12884
12885 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
12886
12887 PR middle-end/91577
12888 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
12889 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
12890 call to be in memory.
12891 (pass_expand::execute): Call discover_nonconstant_array_refs before
12892 setting currently_expanding_to_rtl.
12893
12894 2019-09-04 Caroline Tice <cmtice@google.com>
12895
12896 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
12897 specified together.
12898
12899 2019-09-04 Marek Polacek <polacek@redhat.com>
12900
12901 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
12902
12903 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
12904
12905 PR target/32413
12906 * config/i386/i386.c (inline_secondary_memory_needed): Return true
12907 for QI and HImode moves between SSE and general registers.
12908
12909 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12910
12911 PR c/78736
12912 * doc/invoke.texi: Document -Wenum-conversion.
12913
12914 2019-09-04 Richard Biener <rguenther@suse.de>
12915
12916 PR rtl-optimization/36262
12917 * postreload-gcse.c: Include intl.h and gcse.h.
12918 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
12919 to avoid linear list walk.
12920 (record_last_mem_set_info): Gate off if not computing transparentness.
12921 (get_bb_avail_insn): If transparentness isn't computed give up
12922 early.
12923 (gcse_after_reload_main): Skip compute_transp and extended PRE
12924 if gcse_or_cprop_is_too_expensive says so.
12925
12926 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12927
12928 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
12929 noinit section.
12930 (msp430_select_section): Handle decls with the "noinit" attribute with
12931 default_elf_select_section.
12932 Handle SECCAT_RODATA_MERGE_* section types with
12933 default_elf_select_section.
12934 Add comments about handling of unsupported section types.
12935 (msp430_section_type_flags): Remove handling of the noinit section.
12936
12937 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12938
12939 * config/msp430/msp430.c (msp430_attr): Remove warnings about
12940 conflicting msp430-specific attributes.
12941 (msp430_section_attr): Likewise.
12942 Add warnings about conflicts with generic "noinit" and "section"
12943 attributes.
12944 Fix grammar in -mlarge error message.
12945 (msp430_data_attr): Rename to msp430_persist_attr.
12946 Add warnings about conflicts with generic "noinit" and "section"
12947 attributes.
12948 Add warning for when variable is not initialized.
12949 Chain conditionals which prevent the attribute being added.
12950 (ATTR_EXCL): New helper.
12951 (attr_reent_exclusions): New exclusion table.
12952 (attr_naked_exclusions): Likewise.
12953 (attr_crit_exclusions): Likewise.
12954 (attr_lower_exclusions): Likewise.
12955 (attr_upper_exclusions): Likewise.
12956 (attr_either_exclusions): Likewise.
12957 (attr_persist_exclusions): Likewise.
12958 (msp430_attribute_table): Update with exclusion rules.
12959 (msp430_output_aligned_decl_common): Don't output common symbol if decl
12960 has a section.
12961
12962 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12963
12964 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
12965 (msp430_handle_generic_attribute): New function.
12966 * doc/tm.texi: Regenerate.
12967 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
12968 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
12969 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
12970 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
12971
12972 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
12973
12974 PR tree-optimization/91504
12975 * match.pd: Add ((~a & b) ^a) --> (a | b).
12976
12977 2019-09-03 Jakub Jelinek <jakub@redhat.com>
12978
12979 PR target/91604
12980 * config/i386/i386-expand.c (split_double_mode): If there is more than
12981 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
12982 already split matching MEM operand instead of calling adjust_address
12983 again.
12984
12985 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
12986
12987 * config.gcc: Obsolete spu target. Remove references to spu.
12988 * configure.ac: Remove references to spu.
12989 * configure: Regenerate.
12990 * config/spu/: Remove directory.
12991 * common/config/spu/: Remove directory.
12992
12993 * doc/extend.texi: Remove references to spu.
12994 * doc/invoke.texi: Likewise.
12995 * doc/md.texi: Likewise.
12996 * doc/sourcebuild.texi: Likewise.
12997
12998 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12999
13000 PR middle-end/91603
13001 PR middle-end/91612
13002 PR middle-end/91613
13003 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
13004 and SSA_NAME referring to CONSTANT_P correctly.
13005
13006 2019-09-03 Richard Biener <rguenther@suse.de>
13007
13008 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
13009 (vn_nary_op_insert): Likewise.
13010 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
13011 (vn_nary_op_lookup): Likewise.
13012 (vn_nary_op_insert): Likewise.
13013
13014 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
13015
13016 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
13017 (*op0, 1) instead of XEXP (*op1, 0).
13018
13019 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13020
13021 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
13022 (aarch64_fjcvtzs): New define_insn.
13023 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
13024 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
13025 Add AARCH64_JSCVT.
13026 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
13027 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
13028 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13029 __ARM_FEATURE_JCVT where appropriate.
13030 * config/aarch64/arm_acle.h (__jcvt): Define.
13031
13032 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13033
13034 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
13035 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
13036 (aarch64_<frintnzs_op><mode>): New define_insn.
13037 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
13038 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13039 __ARM_FEATURE_FRINT when appropriate.
13040 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
13041 frint32x, frint64z, frint64x.
13042 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
13043 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
13044 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
13045 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
13046 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
13047 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
13048 * config/aarch64/iterators.md (VSFDF): Define.
13049 (FRINTNZX): Likewise.
13050 (frintnzs_op): Likewise.
13051
13052 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
13053
13054 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
13055 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
13056 Cortex-A34.
13057 * config/aarch64/aarch64-tune.md: Regenerated.
13058 * doc/invoke.texi: Document the new processors.
13059
13060 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13061
13062 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
13063 string.
13064 (ssbs): Likewise.
13065 (sve2): Likewise.
13066 (sve2-sm4): Likewise.
13067 (sveaes): Likewise.
13068 (svesha3): Likewise.
13069 (svebitperm): Likewise.
13070
13071 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13072 Richard Biener <rguenther@suse.de>
13073
13074 PR tree-optimization/91597
13075 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
13076 BIT_AND_EXPR optimization for pointers, even if both operand
13077 ranges don't include NULL, the result can be NULL.
13078
13079 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
13080
13081 PR middle-end/91605
13082 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
13083 (non_mem_decl_p): ...this.
13084 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
13085 (expand_assignment): Call mem_ref_referes_to_non_mem_p
13086 unconditionally as before.
13087
13088 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
13089
13090 PR target/91323
13091 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
13092 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
13093 * tree.def (LTGT_EXPR): Likewise.
13094 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
13095
13096 2019-09-02 Jakub Jelinek <jakub@redhat.com>
13097
13098 PR go/91617
13099 * fold-const.c (range_check_type): For enumeral and boolean
13100 type, pass 1 to type_for_size langhook instead of
13101 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
13102 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
13103 (build_range_check): Don't call unsigned_type_for for pointer types.
13104 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
13105 range_check_type result.
13106
13107 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
13108
13109 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
13110 (replace_ref): Do not replace a chain of only two candidates which are
13111 valid memory references.
13112
13113 2019-09-02 Martin Liska <mliska@suse.cz>
13114
13115 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
13116 Bail out when we'll end up with the same number of clusters as
13117 at the beginning.
13118 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
13119 (jump_table_cluster::can_be_handled): Remove the guard
13120 as it's already handled in ::is_enabled. Allocate output
13121 after early bail out.
13122
13123 2019-09-02 Martin Liska <mliska@suse.cz>
13124
13125 PR gcov-profile/91601
13126 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
13127 (path_contains_zero_or_negative_cycle_arc): ... this and handle
13128 also negative edges.
13129 (circuit): Handle also negative edges as they can happen
13130 in some situations.
13131
13132 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
13133
13134 PR target/91472
13135 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
13136 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
13137 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
13138
13139 2019-09-01 Jakub Jelinek <jakub@redhat.com>
13140
13141 PR middle-end/91623
13142 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
13143 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
13144 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
13145 zero vector.
13146
13147 PR lto/91572
13148 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
13149 GIMPLE_ASM TREE_LIST operands.
13150
13151 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
13152
13153 * doc/generic.texi (Unary and Binary Expressions): Mark up
13154 an instance of TYPE_MIN.
13155
13156 2019-08-31 Stafford Horne <shorne@gmail.com>
13157
13158 * config/or1k/constraints.md (t): New constraint.
13159 * config/or1k/or1k.h (GOT_REGS): New register class.
13160 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
13161
13162 2019-08-30 Jim Wilson <jimw@sifive.com>
13163
13164 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
13165 and -fpic and -mplt then disable -msave-restore and warn.
13166
13167 2019-08-30 Martin Sebor <msebor@redhat.com>
13168
13169 PR middle-end/91599
13170 * tree-ssa-strlen.c (handle_store): Use a fallback location if
13171 the statement doesn't have one.
13172 * gimple-pretty-print.c (percent_G_format): Same.
13173
13174 PR middle-end/91584
13175 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
13176 before using them to validate MEM_REF offset.
13177
13178 2019-08-30 Marek Polacek <polacek@redhat.com>
13179
13180 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
13181
13182 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
13183
13184 * config/arm/arm.md (unaligned_loaddi,
13185 unaligned_storedi): New unspec insn patterns.
13186 * config/arm/neon.md (unaligned_storev8qi): Likewise.
13187 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
13188 and unaligned_storedi for 4-byte aligned memory.
13189 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
13190 4-byte aligned memory.
13191
13192 2019-08-30 Martin Jambor <mjambor@suse.cz>
13193
13194 tree-optimization/91579
13195 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
13196 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
13197 appropriate.
13198 (arg_needs_copy_p): Removed.
13199 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
13200 arg_needs_copy_p.
13201 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
13202
13203 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
13204
13205 * config/i386/i386-features.c
13206 (general_scalar_chain::compute_convert_gain):
13207 Correct cost for double-word shifts.
13208 (general_scalar_to_vector_candidate_p): Reject count operands
13209 greater or equal to mode bitsize.
13210
13211 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
13212
13213 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13214 for moves between SSE and non-general registers and between
13215 mask and non-general registers.
13216 (ix86_register_move_cost): Remove stalled comment.
13217
13218 2019-08-29 Richard Biener <rguenther@suse.de>
13219
13220 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
13221 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
13222
13223 2019-08-29 Richard Biener <rguenther@suse.de>
13224
13225 PR bootstrap/91580
13226 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
13227 Do not emit scalar copies for debug-insns, instead replace
13228 their uses with the reg copy used in the chain or reset them
13229 if there is a reaching definition outside of the chain as well.
13230
13231 2019-08-29 Jakub Jelinek <jakub@redhat.com>
13232
13233 PR target/91560
13234 * config/i386/i386-expand.c (expand_vec_perm_movs,
13235 expand_vec_perm_blend, expand_vec_perm_vpermil,
13236 expand_vec_perm_pshufb, expand_vec_perm_1,
13237 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
13238 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
13239 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
13240 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
13241 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
13242 comments - replace ix86_expand_vec_perm_builtin_1 with
13243 ix86_expand_vec_perm_const_1.
13244 (expand_vec_perm2_vperm2f128_vblend): New function.
13245 (ix86_expand_vec_perm_const_1): New forward declaration. Call
13246 expand_vec_perm2_vperm2f128_vblend as last resort.
13247 (canonicalize_perm): Formatting fix.
13248
13249 PR tree-optimization/91351
13250 * tree-cfg.c (generate_range_test): Use range_check_type instead of
13251 unsigned_type_for.
13252 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
13253 range_check_type returns NULL.
13254 * tree-switch-conversion.c (switch_conversion::build_one_array):
13255 Use range_check_type instead of unsigned_type_for, don't perform
13256 linear opt if it returns NULL.
13257 (bit_test_cluster::find_bit_tests): Formatting fix.
13258 (bit_test_cluster::emit): Use range_check_type instead of
13259 unsigned_type_for.
13260 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
13261 returns NULL.
13262
13263 2019-08-29 Richard Biener <rguenther@suse.de>
13264
13265 PR tree-optimization/91568
13266 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
13267 (vect_update_max_nunits): Add overload for poly_uint64.
13268 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
13269 (vect_build_slp_tree): Record max_nunits into the subtree
13270 and merge it upwards.
13271 (vect_print_slp_tree): Print max_nunits.
13272
13273 2019-08-28 Marek Polacek <polacek@redhat.com>
13274
13275 Implement P1152R4: Deprecating some uses of volatile.
13276 PR c++/91361
13277 * doc/invoke.texi: Document -Wvolatile.
13278
13279 2019-08-28 Marek Polacek <polacek@redhat.com>
13280
13281 PR c++/91360 - Implement C++20 P1143R2: constinit.
13282 * doc/invoke.texi: Document -Wc++20-compat.
13283
13284 2019-08-28 Martin Sebor <msebor@redhat.com>
13285
13286 PR tree-optimization/91457
13287 * builtins.c (component_size): New function.
13288 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
13289 * builtins.h (compute_objsize): Add argument.
13290 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
13291 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
13292 (vrp_prop::check_mem_ref): Same.
13293 (vrp_prop::search_for_addr_array): Set no-warning bit.
13294 (check_array_bounds): Same.
13295
13296 2019-08-28 Martin Sebor <msebor@redhat.com>
13297
13298 PR driver/80545
13299 * opts-common.c (option_enabled): Correct checking for language
13300 options.
13301
13302 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
13303
13304 * config/i386/i386.c (ix86_register_move_cost): Do not
13305 limit the cost of moves to/from XMM register to minimum 8.
13306
13307 2019-08-28 Martin Jambor <mjambor@suse.cz>
13308
13309 PR ipa/91468
13310 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
13311 checking assert a normal assert to test it really is redundant.
13312 * ipa-prop.c (compute_complex_assign_jump_func): Removed
13313 redundant test.
13314 (update_jump_functions_after_inlining): Removed combining unary
13315 arithmetic operations with an ancestor jump function.
13316 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
13317 instead of t.
13318
13319 2019-08-28 Richard Biener <rguenther@suse.de>
13320
13321 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
13322 add the MD problem.
13323
13324 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13325 Richard Biener <rguenther@suse.de>
13326
13327 * expr.c (expand_assignment): Handle misaligned DECLs.
13328 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
13329 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
13330 too.
13331 (assign_parm_setup_stack): Allocate properly aligned stack slots.
13332 * varasm.c (build_constant_desc): Align constants of misaligned types.
13333 * config/arm/predicates.md (aligned_operand): New predicate.
13334 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
13335 aligned_operand to check restrictions on memory addresses.
13336 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
13337 * config/arm/vec-common.md (mov<VALL>): Likewise.
13338
13339 2019-08-28 Jakub Jelinek <jakub@redhat.com>
13340
13341 PR libgomp/91530
13342 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
13343 V_128 iterator instead of VI_128.
13344
13345 2019-08-28 Martin Liska <mliska@suse.cz>
13346
13347 PR tree-optimization/90970
13348 * builtins.c (check_access): Remove assignment to maxread
13349 as it hasn't been used since when it was introduced in r255755.
13350
13351 2019-08-27 Martin Sebor <msebor@redhat.com>
13352
13353 PR tree-optimization/91567
13354 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
13355 of unknown strings.
13356 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
13357 to PTRDIFF_MAX - 2.
13358
13359 2019-08-27 Jeff Law <law@redhat.com>
13360
13361 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
13362 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
13363
13364 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
13365
13366 PR target/91528
13367 * config/i386/i386-features.c (convert_scalars_to_vector):
13368 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
13369 crtl->stack_realign_processed. Update crtl->drap_reg by calling
13370 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
13371 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
13372
13373 2019-08-27 Richard Biener <rguenther@suse.de>
13374
13375 * config/i386/i386-features.h
13376 (general_scalar_chain::~general_scalar_chain): Add.
13377 (general_scalar_chain::insns_conv): New bitmap.
13378 (general_scalar_chain::n_sse_to_integer): New.
13379 (general_scalar_chain::n_integer_to_sse): Likewise.
13380 (general_scalar_chain::make_vector_copies): Adjust signature.
13381 * config/i386/i386-features.c
13382 (general_scalar_chain::general_scalar_chain): Outline,
13383 initialize new members.
13384 (general_scalar_chain::~general_scalar_chain): New.
13385 (general_scalar_chain::mark_dual_mode_def): Record insns
13386 we need to insert conversions at and count them.
13387 (general_scalar_chain::compute_convert_gain): Account
13388 for conversion instructions at chain boundary.
13389 (general_scalar_chain::make_vector_copies): Generate a single
13390 copy for a def by a specific insn.
13391 (general_scalar_chain::convert_registers): First populate
13392 defs_map, then make copies at out-of chain insns.
13393
13394 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
13395
13396 * config/arm/arm.md (stack_protect_set_insn): Add security-related
13397 comment.
13398 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
13399
13400 2019-08-27 Martin Liska <mliska@suse.cz>
13401
13402 * cgraph.c (cgraph_node::remove): Remove dead assignment before
13403 loop.
13404 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
13405 Enclose in anonymous namespace.
13406 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
13407 hard_register initialization in braces.
13408 * tree-vrp.h (value_range_base::supports_type_p): Return false
13409 for function with boolean return type.
13410
13411 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
13412
13413 * config/i386/i386.c (emit_i387_cw_initialization)
13414 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
13415
13416 2019-08-26 Martin Sebor <msebor@redhat.com>
13417
13418 PR c++/83431
13419 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
13420 (sprintf_dom_walker): Remove class.
13421 (get_int_range): Make argument const.
13422 (directive::fmtfunc, directive::set_precision): Same.
13423 (format_none): Same.
13424 (build_intmax_type_nodes): Same.
13425 (adjust_range_for_overflow): Same.
13426 (format_floating): Same.
13427 (format_character): Same.
13428 (format_string): Same.
13429 (format_plain): Same.
13430 (get_int_range): Cast away constness.
13431 (format_integer): Same.
13432 (get_string_length): Call get_range_strlen_dynamic. Handle
13433 null lendata.maxbound.
13434 (should_warn_p): Adjust argument scope qualifier.
13435 (maybe_warn): Same.
13436 (format_directive): Same.
13437 (parse_directive): Same.
13438 (is_call_safe): Same.
13439 (try_substitute_return_value): Same.
13440 (sprintf_dom_walker::handle_printf_call): Rename...
13441 (handle_printf_call): ...to this. Initialize target to host charmap
13442 here instead of in pass_sprintf_length::execute.
13443 (struct call_info): Make global.
13444 (sprintf_dom_walker::compute_format_length): Make global.
13445 (sprintf_dom_walker::handle_gimple_call): Same.
13446 * passes.def (pass_sprintf_length): Replace with pass_strlen.
13447 * print-rtl.c (print_pattern): Reduce the number of spaces to
13448 avoid -Wformat-truncation.
13449 * tree-pass.h (make_pass_warn_printf): New function.
13450 * tree-ssa-strlen.c (strlen_optimize): New variable.
13451 (get_string_length): Add comments.
13452 (get_range_strlen_dynamic): New function.
13453 (check_and_optimize_call): New function.
13454 (handle_integral_assign): New function.
13455 (strlen_check_and_optimize_stmt): Factor code out into
13456 strlen_check_and_optimize_call and handle_integral_assign.
13457 (strlen_dom_walker::evrp): New member.
13458 (strlen_dom_walker::before_dom_children): Use evrp member.
13459 (strlen_dom_walker::after_dom_children): Use evrp member.
13460 (printf_strlen_execute): New function.
13461 (pass_strlen::gate): Update to handle printf calls.
13462 (dump_strlen_info): New function.
13463 (pass_data_warn_printf): New variable.
13464 (pass_warn_printf): New class.
13465 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
13466 (handle_printf_call): Same.
13467 * tree-vrp.c (value_range_base::type): Adjust assertion.
13468 * vr-values.c (vr_values::update_value_range): Use type of the first
13469 argument rather than the second.
13470
13471 2019-08-26 Richard Biener <rguenther@suse.de>
13472
13473 * config/i386/i386-features.c (general_remove_non_convertible_regs):
13474 Remove.
13475 (convert_scalars_to_vector): Do not call it.
13476
13477 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
13478 Uros Bizjak <ubizjak@gmail.com>
13479
13480 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
13481 CASE_MATHFN_FLOATN for roundeven.
13482 * config/i386/i386.c (ix86_i387_mode_needed): Add case
13483 I387_ROUNDEVEN.
13484 (ix86_mode_needed): Likewise.
13485 (ix86_mode_after): Likewise.
13486 (ix86_mode_entry): Likewise.
13487 (ix86_mode_exit): Likewise.
13488 (ix86_emit_mode_set): Likewise.
13489 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
13490 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
13491 (ix86_entity): Add I387_ROUNDEVEN.
13492 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
13493 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
13494 (define_int_iterator): Likewise.
13495 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
13496 (define_constant): Define ROUND_ROUNDEVEN mode.
13497 (define_attr): Add roundeven mode for i387_cw.
13498 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
13499 * internal-fn.def (ROUNDEVEN): New builtin function.
13500 * optabs.def (roundeven_optab): New optab.
13501
13502 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
13503
13504 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
13505 for ROUNDEVEN.
13506 * builtins.def: Added function definitions for roundeven function
13507 variants.
13508 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
13509 function call. Adjust condition for floor, ceil, trunc and round.
13510 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
13511 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
13512 (integer_valued_real_call_p): Added case for roundeven function.
13513 * real.c (is_even): New function. Returns true if real number is even,
13514 otherwise returns false.
13515 (is_halfway_below): New function. Returns true if real number is
13516 halfway between two integers, else return false.
13517 (real_roundeven): New function. Round real number to nearest integer,
13518 rounding halfway cases towards even.
13519 * real.h (real_value): Added descriptive comments. Added function
13520 declaration for roundeven function.
13521 * doc/extend.texi (Other Builtins): List roundeven variants among
13522 functions which can be handled as builtins.
13523
13524 2019-08-26 Richard Biener <rguenther@suse.de>
13525
13526 PR target/91522
13527 PR target/91527
13528 * config/i386/i386-features.h (general_scalar_chain::defs_map):
13529 New member.
13530 (general_scalar_chain::replace_with_subreg): Remove.
13531 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
13532 (general_scalar_chain::convert_reg): Adjust signature.
13533 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
13534 iterate over all defs of a reg.
13535 (general_scalar_chain::replace_with_subreg): Remove.
13536 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
13537 (general_scalar_chain::make_vector_copies): Populate defs_map,
13538 place copy only after defs that are used as vectors in the chain.
13539 (general_scalar_chain::convert_reg): Emit a copy for a specific
13540 def in a specific instruction.
13541 (general_scalar_chain::convert_op): All reg uses are converted here.
13542 (general_scalar_chain::convert_insn): Emit copies for scalar
13543 uses of defs here. Replace uses with the copies we created.
13544 Replace and convert the def. Adjust REG_DEAD notes, remove
13545 REG_EQUIV/EQUAL notes.
13546 (general_scalar_chain::convert_registers): Only handle copies
13547 into the chain here.
13548
13549 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
13550
13551 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
13552
13553 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
13554
13555 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
13556 Add nop_convert case.
13557 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
13558 Fold all statements if requested.
13559 * tree-ssa-propagate.h (class substitute_and_fold_engine):
13560 Allow to fold all statements.
13561 * tree-vrp.c (class vrp_folder):
13562 Let substitute_and_fold_engine fold all statements.
13563
13564 2019-08-26 Richard Biener <rguenther@suse.de>
13565
13566 PR tree-optimization/91526
13567 * passes.def: Note that after late FRE we do TODO_update_address_taken.
13568 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
13569 TODO_update_address_taken.
13570
13571 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
13572
13573 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
13574 __STDC_HOSTED__.
13575
13576 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
13577
13578 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
13579 machine mode for unspec_volatile operand.
13580
13581 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13582
13583 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
13584 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
13585 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
13586 (prefer_neon_for_64bits): Remove.
13587 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
13588 (tune_params): Remove PREF_NEON_64_FALSE uses.
13589 (arm_option_override): Remove prefer_neon selection code.
13590 (arm_print_tune_info): Remove prefer_neon_for_64bits.
13591 * config/arm/arm-protos.h (tune_params): Remove
13592 prefer_neon_for_64bits.
13593 (prefer_neon_for_64bits): Remove.
13594
13595 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
13596
13597 PR pch/61250
13598 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
13599 and issue any diagnostics needed before collecting the pre-PCH
13600 state.
13601
13602 2019-08-23 Jakub Jelinek <jakub@redhat.com>
13603
13604 PR middle-end/91283
13605 * common.opt (fexcess-precision=): Add Optimization flag. Use
13606 flag_excess_precision variable instead of
13607 flag_excess_precision_cmdline.
13608 * flags.h (class target_flag_state): Remove x_flag_excess_precision
13609 member.
13610 (flag_excess_precision): Don't define.
13611 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
13612 flag_excess_precision_cmdline. Remove comment.
13613 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
13614 and x_flag_excess_precision instead of
13615 frontend_set_flag_excess_precision_cmdline and
13616 x_flag_excess_precision_cmdline.
13617 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
13618 x_flag_excess_precision_cmdline.
13619 * toplev.c (init_excess_precision): Remove.
13620 (lang_dependent_init_target): Don't call it.
13621
13622 2019-08-23 Martin Liska <mliska@suse.cz>
13623
13624 * lto-wrapper.c (run_gcc): When setting jobserver
13625 set also parallel to 1. This was done so before r273908.
13626
13627 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
13628
13629 * config/arm/arm-cpus.in (cortex-m35p): New entry.
13630 (cortex-a76ae): Likewise.
13631 (cortex-a77): Likewise
13632 * config/arm/arm-tables.opt: Regenerate.
13633 * config/arm/arm-tune.md: Likewise.
13634 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
13635 cortex-a77 CPU options.
13636
13637 2019-08-23 Martin Liska <mliska@suse.cz>
13638
13639 * profile.c (instrument_values): Do not set
13640 0 as last argument.
13641 * tree-profile.c (gimple_gen_interval_profiler): Remove
13642 last argument.
13643 (gimple_gen_pow2_profiler): Likewise.
13644 (gimple_gen_topn_values_profiler): Likewise.
13645 (gimple_gen_ic_profiler): Likewise.
13646 (gimple_gen_time_profiler): Likewise.
13647 (gimple_gen_average_profiler): Likewise.
13648 (gimple_gen_ior_profiler): Likewise.
13649 * value-prof.c (dump_histogram_value): Use default
13650 in switch statement instead of HIST_TYPE_MAX.
13651 (stream_in_histogram_value): Likewise.
13652 (gimple_duplicate_stmt_histograms): Do not
13653 use NULL for implicitly set arguments.
13654 (gimple_divmod_values_to_profile): Do not use
13655 reserve+quick_push.
13656 (gimple_indirect_call_to_profile): Likewise.
13657 (gimple_find_values_to_profile): Use implicit
13658 function call arguments.
13659 * value-prof.h (gimple_alloc_histogram_value):
13660 Set default values.
13661 (gimple_gen_interval_profiler): Remove last argument.
13662 (gimple_gen_pow2_profiler): Likewise.
13663 (gimple_gen_topn_values_profiler): Likewise.
13664 (gimple_gen_ic_profiler): Likewise.
13665 (gimple_gen_time_profiler): Likewise.
13666 (gimple_gen_average_profiler): Likewise.
13667 (gimple_gen_ior_profiler): Likewise.
13668
13669 2019-08-22 Martin Sebor <msebor@redhat.com>
13670
13671 PR middle-end/91490
13672 * builtins.c (c_strlen): Rename argument and introduce new local.
13673 Set no-warning bit on original argument.
13674 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
13675 Fold empty and zero constructors into empty strings.
13676 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
13677 for missing initializers.
13678 * tree.c (build_string_literal): Handle optional argument.
13679 * tree.h (build_string_literal): Add defaulted argument.
13680 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
13681 no-warning bit on original expression.
13682
13683 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
13684
13685 PR target/91481
13686 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
13687 and UNSPEC_DARN_RAW.
13688 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
13689 UNSPECV_DARN_RAW.
13690 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
13691 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
13692 (darn): Use an unspec_volatile, and UNSPECV_DARN.
13693
13694 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
13695
13696 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
13697 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
13698 * config/rs6000/rs6000.md (unspec): ... here.
13699 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
13700 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
13701 cmpeqb, *cmpeqb_internal): Delete, move to...
13702 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
13703 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
13704 cmpeqb, *cmpeqb_internal): ... here.
13705
13706 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13707
13708 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
13709 intrinsics if __ARM_FP.
13710 Use __ARM_FEATURE_CRC32 ifdef guard.
13711
13712 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13713
13714 * config/arm/arm.md (neon_for_64bits): Remove.
13715 (avoid_neon_for_64bits): Remove.
13716 (arm_adddi3): Always split early.
13717 (arm_subdi3): Always split early.
13718 (negdi2): Remove Neon expansion.
13719 (split zero_extend): Split before reload.
13720 (split sign_extend): Split before reload.
13721
13722 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13723
13724 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
13725 (qhs_extenddi_cstr): Likewise.
13726 * config/arm/arm.md (ashldi3): Always expand early.
13727 (ashlsi3): Likewise.
13728 (ashrsi3): Likewise.
13729 (zero_extend<mode>di2): Remove Neon variants.
13730 (extend<mode>di2): Likewise.
13731 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
13732 (signed_shift_di3_neon): Likewise.
13733 (unsigned_shift_di3_neon): Likewise.
13734 (ashrdi3_neon_imm_noclobber): Likewise.
13735 (lshrdi3_neon_imm_noclobber): Likewise.
13736 (<shift>di3_neon): Likewise.
13737 (split extend): Remove DI extend split patterns.
13738
13739 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13740
13741 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
13742 (split not): Add DImode not splitter.
13743 (anddi3): Remove pattern.
13744 (anddi3_insn): Likewise.
13745 (anddi_zesidi_di): Likewise.
13746 (anddi_sesdi_di): Likewise.
13747 (anddi_notdi_di): Likewise.
13748 (anddi_notzesidi_di): Likewise.
13749 (anddi_notsesidi_di): Likewise.
13750 (iordi3): Likewise.
13751 (iordi3_insn): Likewise.
13752 (iordi_zesidi_di): Likewise.
13753 (iordi_sesidi_di): Likewise.
13754 (xordi3): Likewise.
13755 (xordi3_insn): Likewise.
13756 (xordi_sesidi_di): Likewise.
13757 (xordi_zesidi_di): Likewise.
13758 (one_cmpldi2): Likewise.
13759 (one_cmpldi2_insn): Likewise.
13760 * config/arm/constraints.md: Remove De, Df, Dg constraints.
13761 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
13762 alternative.
13763 (iwmmxt_xordi3): Likewise.
13764 (iwmmxt_anddi3): Likewise.
13765 * config/arm/neon.md (orndi3_neon): Remove pattern.
13766 (anddi_notdi_di): Likewise.
13767 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
13768 (arm_iordi_operand_neon): Likewise.
13769 (arm_xordi_operand_neon): Likewise.
13770 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
13771 (iordi_notzesidi_di): Likewise.
13772 (iordi_notdi_zesidi): Likewise.
13773 (iordi_notsesidi_di): Likewise.
13774
13775 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
13776
13777 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
13778 insn.
13779 (iorsi3_compare0_scratch): Likewise.
13780
13781 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
13782
13783 * config/aarch64/aarch64-simd-builtins.def:
13784 (ld1x4): New.
13785 (st1x4): Likewise.
13786 * config/aarch64/aarch64-simd.md:
13787 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
13788 (aarch64_st1x4<VALLDIF:mode>): Likewise.
13789 (aarch64_ld1_x4_<mode>): Likewise.
13790 (aarch64_st1_x4_<mode>): Likewise.
13791 * config/aarch64/arm_neon.h:
13792 (vld1_s8_x4): New function.
13793 (vld1q_s8_x4): Likewise.
13794 (vld1_s16_x4): Likewise.
13795 (vld1q_s16_x4): Likewise.
13796 (vld1_s32_x4): Likewise.
13797 (vld1q_s32_x4): Likewise.
13798 (vld1_u8_x4): Likewise.
13799 (vld1q_u8_x4): Likewise.
13800 (vld1_u16_x4): Likewise.
13801 (vld1q_u16_x4): Likewise.
13802 (vld1_u32_x4): Likewise.
13803 (vld1q_u32_x4): Likewise.
13804 (vld1_f16_x4): Likewise.
13805 (vld1q_f16_x4): Likewise.
13806 (vld1_f32_x4): Likewise.
13807 (vld1q_f32_x4): Likewise.
13808 (vld1_p8_x4): Likewise.
13809 (vld1q_p8_x4): Likewise.
13810 (vld1_p16_x4): Likewise.
13811 (vld1q_p16_x4): Likewise.
13812 (vld1_s64_x4): Likewise.
13813 (vld1_u64_x4): Likewise.
13814 (vld1_p64_x4): Likewise.
13815 (vld1q_s64_x4): Likewise.
13816 (vld1q_u64_x4): Likewise.
13817 (vld1q_p64_x4): Likewise.
13818 (vld1_f64_x4): Likewise.
13819 (vld1q_f64_x4): Likewise.
13820 (vst1_s8_x4): Likewise.
13821 (vst1q_s8_x4): Likewise.
13822 (vst1_s16_x4): Likewise.
13823 (vst1q_s16_x4): Likewise.
13824 (vst1_s32_x4): Likewise.
13825 (vst1q_s32_x4): Likewise.
13826 (vst1_u8_x4): Likewise.
13827 (vst1q_u8_x4): Likewise.
13828 (vst1_u16_x4): Likewise.
13829 (vst1q_u16_x4): Likewise.
13830 (vst1_u32_x4): Likewise.
13831 (vst1q_u32_x4): Likewise.
13832 (vst1_f16_x4): Likewise.
13833 (vst1q_f16_x4): Likewise.
13834 (vst1_f32_x4): Likewise.
13835 (vst1q_f32_x4): Likewise.
13836 (vst1_p8_x4): Likewise.
13837 (vst1q_p8_x4): Likewise.
13838 (vst1_p16_x4): Likewise.
13839 (vst1q_p16_x4): Likewise.
13840 (vst1_s64_x4): Likewise.
13841 (vst1_u64_x4): Likewise.
13842 (vst1_p64_x4): Likewise.
13843 (vst1q_s64_x4): Likewise.
13844 (vst1q_u64_x4): Likewise.
13845 (vst1q_p64_x4): Likewise.
13846 (vst1_f64_x4): Likewise.
13847 (vst1q_f64_x4): Likewise.
13848
13849 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13850
13851 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
13852
13853 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13854 Richard Sandiford <richard.sandiford@arm.com>
13855
13856 PR target/88839
13857 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
13858 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
13859
13860 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13861
13862 PR target/90724
13863 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
13864 in reg if it fails aarch64_plus_operand predicate.
13865
13866 2019-08-21 Richard Biener <rguenther@suse.de>
13867
13868 PR tree-optimization/91482
13869 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
13870 BUILT_IN_ASSUME_ALIGNED calls.
13871
13872 2019-08-21 Richard Biener <rguenther@suse.de>
13873
13874 PR target/91498
13875 PR target/91503
13876 * config/i386/i386-features.c
13877 (general_scalar_chain::make_vector_copies): Copy stack temporary
13878 rtx when using it multiple times.
13879 (general_scalar_chain::convert_reg): Likewise.
13880
13881 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13882
13883 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
13884
13885 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
13886
13887 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
13888 catch more redundant zero initialization cases.
13889 (dse_dom_walker::dse_optimize_stmt): Likewise.
13890
13891 2019-08-20 Richard Biener <rguenther@suse.de>
13892
13893 PR lto/91307
13894 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
13895 by collect2 when targetm.have_ctors_dtors which avoids dragging
13896 in temporary filenames from LTO input objects.
13897
13898 2019-08-20 Richard Biener <rguenther@suse.de>
13899
13900 PR tree-optimization/37242
13901 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
13902 to (T)a + (T)b if we know that a + b does not overflow.
13903
13904 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
13905
13906 PR rtl-optimization/91347
13907 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
13908 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
13909
13910 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13911
13912 * calls.h (function_arg_info): Add a pass_by_reference field,
13913 defaulting to false.
13914 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
13915 when applying pass-by-reference semantics.
13916 (initialize_argument_information): Likewise.
13917 (emit_library_call_value_1): Likewise.
13918 * function.c (assign_parm_data_one): Remove passed_pointer field.
13919 (assign_parm_find_data_types): Don't set it.
13920 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
13921 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
13922 arg.pass_by_reference instead of passed_pointer.
13923
13924 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13925
13926 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
13927 into a single function_arg_info, updating its fields when we
13928 apply pass-by-reference and promotion semantics. Use the
13929 function_arg_info to track the mode rather than keeping it in
13930 a separate local variable.
13931 (initialize_argument_information): Likewise. Base the final
13932 arg_to_skip on this new function_arg_info rather than creating
13933 a new one from scratch.
13934
13935 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13936
13937 * function.c (assign_parm_data_one): Replace passed_type,
13938 promoted_mode and named_arg with a function_arg_info field.
13939 (assign_parm_find_data_types): Remove local variables and
13940 assign directly to "data". Make data->passed_mode shadow
13941 data->arg.mode until promotion, then assign the promoted
13942 mode to data->arg.mode.
13943 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
13944 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
13945 (assign_parm_remove_parallels, assign_parm_setup_block_p)
13946 (assign_parm_setup_block, assign_parm_setup_reg)
13947 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
13948 arg.mode instead of promoted_mode, arg.type instead of passed_type
13949 and arg.named instead of named_arg. Use data->arg for
13950 function_arg_info structures that had the field values passed_type,
13951 promoted_mode and named_arg. Base other function_arg_infos on
13952 data->arg, changing the necessary properties.
13953
13954 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13955
13956 * calls.h (apply_pass_by_reference_rules): Declare.
13957 * calls.c (apply_pass_by_reference_rules): New function.
13958 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
13959 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
13960 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13961 * function.c (assign_parm_find_data_types): Likewise.
13962 * var-tracking.c (prepare_call_arguments): Likewise.
13963
13964 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13965
13966 * target.def (must_pass_in_stack): Take a function_arg_info instead
13967 of a mode and a type.
13968 * doc/tm.texi: Regenerate.
13969 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
13970 instead of a mode and a type.
13971 (must_pass_in_stack_var_size_or_pad): Likewise.
13972 * calls.c (must_pass_in_stack_var_size): Likewise.
13973 (must_pass_in_stack_var_size_or_pad): Likewise.
13974 (initialize_argument_information): Update call to
13975 targetm.calls.must_pass_in_stack.
13976 (must_pass_va_arg_on_stack): Likewise.
13977 * function.c (assign_parm_find_entry_rtl): Likewise.
13978 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
13979 * config/alpha/alpha.c (alpha_function_arg): Likewise.
13980 (alpha_function_arg_advance): Likewise.
13981 * config/cr16/cr16.c (cr16_function_arg): Likewise.
13982 (cr16_function_arg_advance): Likewise.
13983 * config/cris/cris.c (cris_pass_by_reference): Likewise.
13984 (cris_arg_partial_bytes): Likewise.
13985 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
13986 * config/lm32/lm32.c (lm32_function_arg): Likewise.
13987 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
13988 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
13989 * config/mips/mips.c (mips_pass_by_reference): Likewise.
13990 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
13991 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
13992 * config/sh/sh.c (sh_pass_by_reference): Likewise.
13993 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
13994 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
13995 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
13996 instead of a mode and a type.
13997 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
13998 (fr30_num_arg_regs): Likewise.
13999 (fr30_setup_incoming_varargs): Update calls accordingly.
14000 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
14001 (fr30_function_arg_advance): Likewise.
14002 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
14003 instead of a mode and a type.
14004 * config/gcn/gcn.c (num_arg_regs): Likewise.
14005 (gcn_function_arg, gcn_function_arg_advance): Update calls to
14006 num_arg_regs and targetm.calls.must_pass_in_stack.
14007 (gcn_arg_partial_bytes): Likewise.
14008 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
14009 function_arg_info instead of a mode and a type.
14010 (classify_argument): Update call accordingly.
14011 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
14012 function_arg_info instead of a mode and a type.
14013 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
14014 Likewise.
14015 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
14016 (rs6000_parm_needs_stack): Update call accordingly.
14017 (setup_incoming_varargs): Likewise.
14018
14019 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14020
14021 * target.def (callee_copies): Take a function_arg_info instead
14022 of a mode, type and named flag.
14023 * doc/tm.texi: Regenerate.
14024 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
14025 instead of a mode, type and named flag.
14026 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14027 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14028 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14029 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
14030 instead of a mode, type and named flag.
14031 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14032 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14033 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14034 * calls.h (reference_callee_copied): Take a function_arg_info
14035 instead of a mode, type and named flag.
14036 * calls.c (reference_callee_copied): Likewise.
14037 (initialize_argument_information): Update call accordingly.
14038 (emit_library_call_value_1): Likewise.
14039 * function.c (gimplify_parameters): Likewise.
14040 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
14041 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
14042 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
14043 * config/c6x/c6x.c (c6x_callee_copies): Delete.
14044 (TARGET_CALLEE_COPIES): Define to
14045 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14046 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
14047 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14048 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14049 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
14050 instead of a mode, type and named flag.
14051 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
14052 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14053 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14054 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
14055 * config/msp430/msp430.c (msp430_callee_copies): Delete.
14056 (TARGET_CALLEE_COPIES): Define to
14057 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14058 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
14059 instead of a mode, type and named flag.
14060 * config/sh/sh.c (sh_callee_copies): Likewise.
14061 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
14062 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14063 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14064
14065 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14066
14067 * target.def (function_arg_advance): Take a function_arg_info instead
14068 of a mode, type and named flag.
14069 * doc/tm.texi: Regenerate.
14070 * targhooks.h (default_function_arg_advance): Take a function_arg_info
14071 instead of a mode, type and named flag.
14072 * targhooks.c (default_function_arg_advance): Likewise.
14073 * calls.c (initialize_argument_information): Update call to
14074 targetm.calls.function_arg_advance.
14075 (emit_library_call_value_1): Likewise.
14076 * dse.c (get_call_args): Likewise.
14077 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14078 * function.c (assign_parms, gimplify_parameters): Likewise.
14079 * var-tracking.c (prepare_call_arguments): Likewise.
14080 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
14081 function_arg_info instead of a mode, type and named flag.
14082 (aarch64_setup_incoming_varargs): Update call accordingly.
14083 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
14084 function_arg_info instead of a mode, type and named flag.
14085 (alpha_setup_incoming_varargs): Update call accordingly.
14086 * config/arc/arc.c (arc_function_arg_advance): Take a
14087 function_arg_info instead of a mode, type and named flag.
14088 (arc_setup_incoming_varargs): Update call accordingly.
14089 * config/arm/arm.c (arm_function_arg_advance): Take a
14090 function_arg_info instead of a mode, type and named flag.
14091 (cmse_func_args_or_return_in_stack): Update call accordingly.
14092 (arm_function_ok_for_sibcall): Likewise.
14093 (cmse_nonsecure_call_clear_caller_saved): Likewise.
14094 * config/avr/avr.c (avr_function_arg_advance): Take a
14095 function_arg_info instead of a mode, type and named flag.
14096 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
14097 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
14098 (c6x_call_saved_register_used): Update call accordingly.
14099 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
14100 function_arg_info instead of a mode, type and named flag.
14101 * config/cris/cris.c (cris_function_arg_advance): Likewise.
14102 * config/csky/csky.c (csky_function_arg_advance): Likewise.
14103 (csky_setup_incoming_varargs): Update call accordingly.
14104 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
14105 function_arg_info instead of a mode, type and named flag.
14106 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
14107 * config/frv/frv.c (frv_function_arg_advance): Likewise.
14108 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
14109 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
14110 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
14111 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
14112 (ix86_setup_incoming_varargs): Update call accordingly.
14113 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
14114 function_arg_info instead of a mode, type and named flag.
14115 (ia64_setup_incoming_varargs): Update call accordingly.
14116 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
14117 function_arg_info instead of a mode, type and named flag.
14118 (iq2000_expand_prologue): Update call accordingly.
14119 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
14120 function_arg_info instead of a mode, type and named flag.
14121 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
14122 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
14123 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
14124 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
14125 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
14126 Likewise.
14127 (microblaze_expand_prologue): Update call accordingly.
14128 * config/mips/mips.c (mips_function_arg_advance): Take a
14129 function_arg_info instead of a mode, type and named flag.
14130 (mips_setup_incoming_varargs): Update call accordingly.
14131 (mips_output_args_xfer): Likewise.
14132 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
14133 function_arg_info instead of a mode, type and named flag.
14134 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
14135 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
14136 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
14137 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
14138 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
14139 (nios2_setup_incoming_varargs): Update call accordingly.
14140 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
14141 function_arg_info instead of a mode, type and named flag.
14142 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
14143 * config/pa/pa.c (pa_function_arg_advance): Likewise.
14144 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
14145 * config/pru/pru.c (pru_function_arg_advance): Likewise.
14146 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
14147 (riscv_setup_incoming_varargs): Update call accordingly.
14148 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
14149 function_arg_info instead of a mode, type and named flag.
14150 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
14151 Likewise.
14152 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
14153 (rs6000_parm_needs_stack): Update call accordingly.
14154 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
14155 instead of a mode, type and named flag.
14156 * config/s390/s390.c (s390_function_arg_advance): Likewise.
14157 (s390_call_saved_register_used): Update call accordingly.
14158 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
14159 instead of a mode, type and named flag.
14160 (sh_output_mi_thunk): Update call accordingly.
14161 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
14162 function_arg_info instead of a mode, type and named flag.
14163 * config/spu/spu.c (spu_function_arg_advance): Likewise.
14164 (spu_setup_incoming_varargs): Update call accordingly.
14165 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
14166 function_arg_info instead of a mode, type and named flag.
14167 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
14168 (tilegx_setup_incoming_varargs): Update call accordingly.
14169 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
14170 function_arg_info instead of a mode, type and named flag.
14171 (tilegx_setup_incoming_varargs): Update call accordingly.
14172 * config/v850/v850.c (v850_function_arg_advance): Take a
14173 function_arg_info instead of a mode, type and named flag.
14174 * config/vax/vax.c (vax_function_arg_advance): Likewise.
14175 * config/visium/visium.c (visium_function_arg_advance): Likewise.
14176 (visium_setup_incoming_varargs): Update call accordingly.
14177 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
14178 function_arg_info instead of a mode, type and named flag.
14179
14180 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14181
14182 * target.def (function_arg, function_incoming_arg): Take a
14183 function_arg_info instead of a mode, tree and named flag.
14184 * doc/tm.texi: Regenerate.
14185 * targhooks.h (default_function_arg): Take a function_arg_info
14186 instead of a mode, tree and named flag.
14187 (default_function_incoming_arg): Likewise.
14188 * targhooks.c (default_function_arg): Likewise.
14189 (default_function_incoming_arg): Likewise.
14190 * calls.h (function_arg_info::end_marker_p): New function.
14191 (function_arg_info::end_marker): Likewise.
14192 * calls.c (prepare_call_address, initialize_argument_information)
14193 (expand_call, emit_library_call_value_1): Update calls to
14194 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
14195 * dse.c: Include calls.h.
14196 (get_call_args): Update call to targetm.calls.function_arg.
14197 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14198 * var-tracking.c (prepare_call_arguments): Likewise.
14199 * function.c (assign_parm_find_entry_rtl): Update call to
14200 targetm.calls.function_incoming_arg.
14201 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
14202 function_arg_info instead of a mode, tree and named flag.
14203 * config/alpha/alpha.c (alpha_function_arg): Likewise.
14204 * config/arc/arc.c (arc_function_arg): Likewise.
14205 * config/arm/arm.c (arm_function_arg): Likewise.
14206 (cmse_func_args_or_return_in_stack): Update call accordingly.
14207 (arm_function_ok_for_sibcall): Likewise.
14208 (cmse_nonsecure_call_clear_caller_saved): Likewise.
14209 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
14210 instead of a mode, tree and named flag.
14211 * config/bfin/bfin.c (bfin_function_arg): Likewise.
14212 * config/c6x/c6x.c (c6x_function_arg): Likewise.
14213 (c6x_call_saved_register_used): Update call accordingly.
14214 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
14215 instead of a mode, tree and named flag.
14216 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
14217 (cris_function_arg_1): Likewise.
14218 * config/csky/csky.c (csky_function_arg): Likewise.
14219 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
14220 * config/fr30/fr30.c (fr30_function_arg): Likewise.
14221 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
14222 (frv_function_arg_1): Likewise.
14223 * config/ft32/ft32.c (ft32_function_arg): Likewise.
14224 * config/gcn/gcn.c (gcn_function_arg): Likewise.
14225 * config/h8300/h8300.c (h8300_function_arg): Likewise.
14226 * config/i386/i386.c (ix86_function_arg): Likewise.
14227 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
14228 (ia64_function_arg_1): Likewise.
14229 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
14230 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
14231 accordingly.
14232 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
14233 instead of a mode, tree and named flag.
14234 * config/m32c/m32c.c (m32c_function_arg): Likewise.
14235 * config/m32r/m32r.c (m32r_function_arg): Likewise.
14236 * config/m68k/m68k.c (m68k_function_arg): Likewise.
14237 * config/mcore/mcore.c (mcore_function_arg): Likewise.
14238 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
14239 (microblaze_expand_prologue): Update call accordingly.
14240 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
14241 instead of a mode, tree and named flag.
14242 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
14243 (mmix_function_arg_1): Likewise.
14244 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
14245 * config/moxie/moxie.c (moxie_function_arg): Likewise.
14246 * config/msp430/msp430.c (msp430_function_arg): Likewise.
14247 * config/nds32/nds32.c (nds32_function_arg): Likewise.
14248 * config/nios2/nios2.c (nios2_function_arg): Likewise.
14249 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
14250 (nvptx_function_incoming_arg): Likewise.
14251 * config/or1k/or1k.c (or1k_function_arg): Likewise.
14252 * config/pa/pa.c (pa_function_arg): Likewise.
14253 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
14254 * config/pru/pru.c (pru_function_arg): Likewise.
14255 * config/riscv/riscv.c (riscv_function_arg): Likewise.
14256 * config/rl78/rl78.c (rl78_function_arg): Likewise.
14257 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
14258 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
14259 (rs6000_parm_needs_stack): Update call accordingly.
14260 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
14261 instead of a mode, tree and named flag.
14262 * config/s390/s390.c (s390_function_arg): Likewise.
14263 (s390_call_saved_register_used): Update call accordingly.
14264 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
14265 instead of a mode, tree and named flag.
14266 (sh_output_mi_thunk): Update call accordingly.
14267 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
14268 (sparc_function_incoming_arg): Take a function_arg_info instead of
14269 a mode, tree and named flag.
14270 * config/spu/spu.c (spu_function_arg): Likewise.
14271 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14272 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
14273 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
14274 * config/v850/v850.c (v850_function_arg): Likewise.
14275 * config/vax/vax.c (vax_function_arg): Likewise.
14276 * config/visium/visium.c (visium_function_arg): Likewise.
14277 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
14278 (xtensa_function_incoming_arg): Likewise.
14279
14280 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14281
14282 * target.def (setup_incoming_varargs): Take a function_arg_info
14283 instead of a mode and tree.
14284 * doc/tm.texi: Regenerate.
14285 * targhooks.h (default_setup_incoming_varargs): Take a
14286 function_arg_info instead of a mode and tree.
14287 * targhooks.c (default_setup_incoming_varargs): Likewise.
14288 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
14289 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
14290 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
14291 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
14292 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
14293 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
14294 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
14295 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
14296 Likewise.
14297 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
14298 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
14299 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
14300 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
14301 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
14302 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
14303 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
14304 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
14305 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
14306 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
14307 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
14308 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
14309 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
14310 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
14311 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
14312 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
14313 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
14314 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
14315 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
14316 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
14317 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
14318 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
14319 * function.c (assign_parms_setup_varargs): Update call to
14320 targetm.calls.setup_incoming_varargs.
14321
14322 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14323
14324 * target.def (pass_by_reference): Take a function_arg_info instead
14325 of a mode, type and named flag.
14326 * doc/tm.texi: Regenerate.
14327 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
14328 accordingly.
14329 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
14330 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
14331 function_arg_info instead of a mode, type and named flag.
14332 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
14333 * calls.h (pass_by_reference): Take a function_arg_info instead of a
14334 mode, type and named flag.
14335 * calls.c (pass_by_reference): Likewise.
14336 (pass_va_arg_by_reference): Update call accordingly.
14337 (initialize_argument_information): Likewise.
14338 (emit_library_call_value_1): Likewise.
14339 * function.c (assign_parm_find_data_types): Likewise.
14340 * var-tracking.c (prepare_call_arguments): Likewise.
14341 * stor-layout.c: Include calls.h.
14342 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
14343 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
14344 function_arg_info instead of a mode, type and named flag.
14345 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
14346 * config/arc/arc.c (arc_pass_by_reference): Likewise.
14347 * config/arm/arm.c (arm_pass_by_reference): Likewise.
14348 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
14349 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
14350 (c6x_call_saved_register_used): Update call to pass_by_reference.
14351 * config/cris/cris.c (cris_pass_by_reference): Take a
14352 function_arg_info instead of a mode, type and named flag.
14353 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
14354 function_arg_info instead of a mode, type and named flag.
14355 (epiphany_arg_partial_bytes): Update call accordingly.
14356 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
14357 function_arg_info instead of a mode, type and named flag.
14358 (ft32_arg_partial_bytes): Update call accordingly.
14359 * config/i386/i386.c (ix86_pass_by_reference): Take a
14360 function_arg_info instead of a mode, type and named flag.
14361 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14362 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
14363 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
14364 (m32r_return_in_memory): Update call accordingly.
14365 * config/mips/mips.c (mips_pass_by_reference): Take a
14366 function_arg_info instead of a mode, type and named flag.
14367 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
14368 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
14369 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
14370 (moxie_arg_partial_bytes): Update call accordingly.
14371 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
14372 function_arg_info instead of a mode, type and named flag.
14373 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
14374 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
14375 * config/pa/pa.c (pa_pass_by_reference): Likewise.
14376 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
14377 (riscv_return_in_memory): Update call accordingly.
14378 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
14379 function_arg_info instead of a mode, type and named flag.
14380 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
14381 (rs6000_parm_needs_stack): Update call to pass_by_reference.
14382 * config/s390/s390.c (s390_pass_by_reference): Take a
14383 function_arg_info instead of a mode, type and named flag.
14384 (s390_call_saved_register_used): Update call accordingly.
14385 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
14386 instead of a mode, type and named flag.
14387 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
14388 * config/spu/spu.c (spu_pass_by_reference): Likewise.
14389 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
14390 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
14391 * config/v850/v850.c (v850_pass_by_reference): Likewise.
14392 * config/visium/visium.c (visium_pass_by_reference): Likewise.
14393
14394 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14395
14396 * target.def (arg_partial_bytes): Take a function_arg_info instead
14397 of a mode, type and named flag.
14398 * doc/tm.texi: Regenerate.
14399 * target.h (function_arg_info): Declare.
14400 * calls.h (function_arg_info): New class.
14401 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
14402 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
14403 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
14404 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
14405 * calls.c (initialize_argument_information): Update call to
14406 targetm.calls.partial_bytes.
14407 (emit_library_call_value_1): Likewise.
14408 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14409 * function.c (assign_parm_find_entry_rtl): Likewise.
14410 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
14411 function_arg_info instead of a mode, type and named flag.
14412 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
14413 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
14414 (cmse_func_args_or_return_in_stack): Update accordingly.
14415 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
14416 function_arg_info instead of a mode, type and named flag.
14417 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
14418 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
14419 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
14420 * config/fr30/fr30.c: Include calls.h.
14421 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
14422 type and named flag.
14423 * config/frv/frv.c: Include calls.h.
14424 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
14425 type and named flag.
14426 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
14427 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
14428 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
14429 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
14430 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
14431 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
14432 * config/microblaze/microblaze.c (function_arg_partial_bytes):
14433 Likewise.
14434 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
14435 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
14436 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
14437 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
14438 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
14439 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
14440 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
14441 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
14442 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
14443 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
14444 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
14445 (rs6000_parm_needs_stack): Update call accordingly.
14446 * config/sh/sh.c (sh_arg_partial_bytes): Take a
14447 function_arg_info instead of a mode, type and named flag.
14448 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
14449 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
14450
14451 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14452
14453 * calls.h (must_pass_va_arg_in_stack): Declare.
14454 * calls.c (must_pass_va_arg_in_stack): New function.
14455 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
14456 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
14457 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
14458 Likewise.
14459 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
14460
14461 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14462
14463 * calls.h (pass_va_arg_by_reference): Declare.
14464 * calls.c (pass_va_arg_by_reference): New function.
14465 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
14466 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
14467 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
14468 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
14469 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
14470 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
14471 (mips_gimplify_va_arg_expr): Likewise.
14472 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
14473 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
14474 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
14475 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
14476 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
14477 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
14478 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
14479 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
14480 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
14481 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
14482 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
14483
14484 2019-08-20 Richard Biener <rguenther@suse.de>
14485
14486 PR target/91498
14487 * config/i386/i386-features.c (general_scalar_chain::convert_op):
14488 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
14489 (convert_scalars_to_vector): Add timode_p parameter and use it
14490 to guard TImode-only operation.
14491 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
14492 (pass_stv::execute): Pass down timode_p.
14493
14494 2019-08-20 Lili Cui <lili.cui@intel.com>
14495
14496 * common/config/i386/i386-common.c
14497 (processor_names): Add tigerlake and cooperlake.
14498 (processor_alias_table): Add tigerlake and cooperlake.
14499 * config.gcc: Add -march=tigerlake and cooperlake.
14500 * config/i386/driver-i386.c
14501 (host_detect_local_cpu): Detect tigerlake and cooperlake.
14502 Add "has_avx" to classify processor.
14503 * config/i386/i386-builtins.c (processor_model) :
14504 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
14505 (arch_names_table): Add tigerlake and cooperlake.
14506 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
14507 and PROCESSOR_COOPERLAKE.
14508 * config/i386/i386-c.c
14509 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
14510 * config/i386/i386-options.c
14511 (m_TIGERLAKE): Define.
14512 (m_COOPERLAKE): Ditto.
14513 (m_CORE_AVX512): Ditto.
14514 (processor_cost_table): Add cascadelake.
14515 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
14516 * config/i386/i386.h
14517 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
14518 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
14519 (PTA_MOVDIRI): Ditto.
14520 (PTA_MOVDIR64B): Ditto.
14521 (PTA_COOPERLAKE): Ditto.
14522 (PTA_TIGERLAKE): Ditto.
14523 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
14524 * doc/extend.texi: Add tigerlake and cooperlake.
14525 * doc/invoke.texi: Add tigerlake and cooperlake.
14526
14527 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
14528
14529 * doc/install.texi (Specific, alpha): Remove note to use
14530 binutils 2.11.2 or later.
14531
14532 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14533
14534 PR middle-end/89544
14535 * function.c (assign_parm_find_stack_rtl): Use larger alignment
14536 when possible.
14537
14538 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
14539
14540 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
14541 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
14542 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
14543 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
14544 * config/aarch64/constraints.md (Dt): New constraint
14545 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
14546
14547 2019-08-19 Richard Biener <rguenther@suse.de>
14548
14549 PR tree-optimization/91403
14550 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
14551 cases we can handle with tail-recursion...
14552 (follow_ssa_edge_expr): ... here. Do so.
14553
14554 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
14555
14556 PR target/91441
14557 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
14558 implemented for -fsanitize=kernel-address, and merge check logic
14559 with -fsanitize=address.
14560
14561 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
14562
14563 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
14564 for cpu and machine. Factor 64/32b builtins.
14565
14566 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
14567
14568 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
14569 gone, point to sourceforge.net.
14570
14571 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
14572
14573 * doc/ux.texi (User Experience Guidelines): Update reference.
14574
14575 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
14576
14577 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
14578 not LGPL".
14579
14580 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
14581
14582 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
14583 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
14584
14585 2019-08-16 Martin Sebor <msebor@redhat.com>
14586
14587 * tree.def (TYPE_SIZE): Clarify.
14588 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
14589
14590 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
14591
14592 PR tree-optimization/91109
14593 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
14594 * lra.c (lra): Use lra_need_for_scratch_reg_p.
14595 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
14596
14597 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
14598
14599 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
14600 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
14601 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
14602 (uavg<mode>3_ceil): New expander.
14603 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
14604 mode iterator when creating CONST1_RTX.
14605 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
14606 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
14607 mode iterator for const1_operand predicate.
14608
14609 2019-08-16 Richard Biener <rguenther@suse.de>
14610
14611 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
14612 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
14613 follow_ssa_edge.
14614 (follow_ssa_edge_in_condition_phi_branch): Likewise.
14615 (analyze_evolution_in_loop): Likewise.
14616 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
14617 (follow_ssa_edge_expr): ... here. Refactor code.
14618
14619 2019-08-16 Richard Biener <rguenther@suse.de>
14620
14621 PR target/91469
14622 * config/i386/i386-features.c
14623 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
14624
14625 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14626
14627 PR other/91255
14628 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
14629 only if subst_name matches curr_attr string.
14630
14631 2019-08-16 Richard Biener <rguenther@suse.de>
14632
14633 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
14634 stmt at gsi_p, instead replace it with a NOP removed later.
14635 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
14636 that became dead because of that.
14637
14638 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
14639
14640 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
14641 for which we can't represent a range.
14642 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
14643 set_varying.
14644 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
14645 Set VR_UNDEFINED if type is not supported.
14646 * tree-ssanames.c (get_range_info): Pass type to set_varying.
14647 * tree-vrp.c (value_range_base::check): Assert that a varying has
14648 min/max set.
14649 (value_range_base::equal_p): Early bail for undefines.
14650 (value_range_base::set_varying): Accept a type.
14651 (value_range::set_varying): Same.
14652 (value_range_base::type): VARYING can have a type, while UNDEFINE
14653 is typeless.
14654 (value_range_base::dump): Print type for VARYING nodes.
14655 (value_range_base::set): Add type to VARYING.
14656 (extract_range_from_multiplicative_op): Pass type to set_varying.
14657 (extract_range_from_binary_expr): Same.
14658 (value_range_base::intersect_helper): Same.
14659 (value_range_base::union_helper): Same.
14660 (value_range_base::normalize_symbolics): Same.
14661 (determine_value_range_1): Same.
14662 * tree-vrp.h (class value_range_base): Add type to set_varying.
14663 Add prototype for dump(void).
14664 Add prototype for supports_type_p.
14665 (class value_range): Add type to set_varying.
14666 Add prototype for dump(void).
14667 * vr-values.c (set_value_range_to_truthvalue): Pass type to
14668 set_varying.
14669 (vr_values::get_lattice_entry): Set varying even if propagation
14670 finished.
14671 Pass type to set_varying.
14672 (vr_values::get_value_range): Remove vr_const_varying.
14673 Reallocate the lattice if needed.
14674 (vr_values::update_value_range): Pass type to set_varying.
14675 (vr_values::extract_range_for_var_from_comparison_expr): Same.
14676 (vr_values::extract_range_from_binary_expr): Same.
14677 (vr_values::extract_range_from_unary_expr): Same.
14678 (vr_values::extract_range_from_cond_expr): Same.
14679 (vr_values::check_for_binary_op_overflow): Same.
14680 (vr_values::extract_range_basic): Same.
14681 (vr_values::extract_range_from_assignment): Same.
14682 (vr_values::vr_values): Increase size of num_vr_values.
14683 (vr_values::extract_range_from_phi_node): Pass type to
14684 set_varying.
14685
14686 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
14687
14688 PR target/90878
14689 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
14690 for costs of hard register moves.
14691 (ix86_register_move_cost): Likewise.
14692 * config/i386/i386.h (processor_costs): Move costs of hard
14693 register moves to hard_register. Add int_load, int_store,
14694 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
14695 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
14696 for costs of RTL expressions.
14697 * config/i386/x86-tune-costs.h: Move costs of hard register
14698 moves to hard_register. Duplicate int_load, int_store,
14699 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
14700 sse_load, sse_store for costs of RTL expressions.
14701
14702 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14703
14704 * target.def (setup_incoming_vararg_bounds): Remove.
14705 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
14706 * doc/tm.texi: Regenerate.
14707 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
14708 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
14709 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14710 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
14711
14712 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14713
14714 MSP430: Fix lines over 80 characters long in
14715 config/msp430/*.{c,h} files
14716
14717 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
14718 specifier in string.
14719 (msp430_select_hwmult_lib): Split line more than 80 characters long.
14720 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
14721 redundant old comment.
14722 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
14723 Split line more than 80 characters long.
14724 * config/msp430/msp430.c (msp430_option_override): Likewise.
14725 (msp430_return_in_memory): Likewise.
14726 (msp430_gimplify_va_arg_expr): Likewise.
14727 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
14728 (msp430_legitimate_constant): Likewise.
14729 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
14730 (msp430_attr): Likewise.
14731 (msp430_data_attr): Likewise.
14732 (msp430_start_function): Likewise.
14733 (gen_prefix): Likewise.
14734 (msp430_init_sections): Likewise.
14735 (msp430_select_section): Likewise.
14736 (msp430_function_section): Likewise.
14737 (msp430_unique_section): Likewise.
14738 (msp430_output_aligned_decl_common): Likewise.
14739 (msp430_do_not_relax_short_jumps): Likewise.
14740 (msp430_init_builtins): Likewise.
14741 (msp430_expand_delay_cycles): Likewise.
14742 (msp430_expand_prologue): Likewise.
14743 (msp430_expand_epilogue): Likewise.
14744 (msp430_expand_helper): Likewise.
14745 (msp430_split_movsi): Likewise.
14746 (msp430_print_operand): Likewise.
14747 (msp430_return_addr_rtx): Likewise.
14748 (msp430x_extendhisi): Likewise.
14749 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
14750 (ASM_SPEC): Likewise.
14751 Remove very obvious comments.
14752 (LIB_SPEC): Split line more than 80 characters long.
14753 (EH_RETURN_HANDLER_RTX): Likewise.
14754 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
14755
14756 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14757
14758 MSP430: Fix whitespace errors and incorrect indentation in
14759 config/msp430/*.{c,h} files
14760
14761 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
14762 (msp430_select_hwmult_lib): Likewise.
14763 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
14764 (msp430_extract_mcu_data): Likewise.
14765 (struct t_msp430_mcu_data): Likewise.
14766 * config/msp430/msp430.c (struct machine_function): Remove whitespace
14767 before left square bracket.
14768 (msp430_option_override): Fix indentation.
14769 (msp430_hard_regno_nregs_with_padding): Likewise.
14770 (msp430_initial_elimination_offset): Likewise.
14771 (msp430_special_register_convention_p): Remove whitespace before left
14772 square bracket and after exclamation mark.
14773 (msp430_evaluate_arg): Likewise.
14774 (msp430_callee_copies): Fix indentation.
14775 (msp430_gimplify_va_arg_expr): Likewise.
14776 (msp430_function_arg_advance): Remove whitespace before left square
14777 bracket.
14778 (reg_ok_for_addr): Likewise.
14779 (msp430_preserve_reg_p): Likewise.
14780 (msp430_compute_frame_info): Likewise.
14781 (msp430_asm_output_addr_const_extra): Add space between function name
14782 and open parenthesis.
14783 (has_section_name): Fix indentation.
14784 (msp430_attr): Remove trailing whitespace.
14785 (msp430_section_attr): Likewise.
14786 (msp430_data_attr): Likewise.
14787 (struct msp430_attribute_table): Fix comment and whitespace.
14788 (msp430_start_function): Remove whitespace before left square bracket.
14789 Add space between function name and open parenthesis.
14790 (msp430_select_section): Remove trailing whitespace.
14791 (msp430_section_type_flags): Remove trailing whitespace.
14792 (msp430_unique_section): Remove space before closing parenthesis.
14793 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
14794 (msp430_builtins): Remove whitespace before left square bracket.
14795 (msp430_init_builtins): Fix indentation.
14796 (msp430_expand_prologue): Remove whitespace before left square bracket.
14797 Remove space before closing parenthesis.
14798 (msp430_expand_epilogue): Remove whitespace before left square bracket.
14799 (msp430_split_movsi): Remove space before closing parenthesis.
14800 (helper_function_name_mappings): Fix indentation.
14801 (msp430_use_f5_series_hwmult): Fix whitespace.
14802 (use_32bit_hwmult): Likewise.
14803 (msp430_no_hwmult): Likewise.
14804 (msp430_output_labelref): Remove whitespace before left square bracket.
14805 (msp430_print_operand_raw): Likewise.
14806 (msp430_print_operand_addr): Likewise.
14807 (msp430_print_operand): Add two spaces after '.' in comment.
14808 Fix trailing whitespace.
14809 (msp430x_extendhisi): Fix indentation.
14810 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
14811 tab.
14812 (PC_REGNUM): Likewise.
14813 (STACK_POINTER_REGNUM): Likewise.
14814 (CC_REGNUM): Likewise.
14815
14816 2019-08-15 Richard Biener <rguenther@suse.de>
14817
14818 PR target/91454
14819 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
14820 helper.
14821 (general_scalar_chain::make_vector_copies): Use it.
14822
14823 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
14824
14825 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
14826
14827 2019-08-15 Martin Liska <mliska@suse.cz>
14828
14829 * tree-ssa-dce.c (propagate_necessity): We can't reach now
14830 operators with no arguments.
14831 (eliminate_unnecessary_stmts): Likewise here.
14832
14833 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
14834
14835 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
14836 <case COMPARE>: Revert 2019-08-14 change.
14837 (convertible_comparison_p): Revert 2019-08-14 change. Return false
14838 for (TARGET_64BIT || mode != DImode).
14839
14840 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
14841
14842 * tree-vrp.c (value_range_base::set): Merge in code from
14843 value_range_base::set_and_canonicalize.
14844 Enforce canonicalization at set time.
14845 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
14846 (value_range_base::set_undefined): Inline call to set().
14847 (value_range_base::set_varying): Same.
14848 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
14849 (vrp_val_max): New argument handle_pointers.
14850 (vrp_val_min): Same.
14851 (ranges_from_anti_range): Same.
14852 (extract_range_into_wide_ints): Use tree argument instead of sign
14853 and precision.
14854 (extract_range_from_multiplicative_op): Take in tree type instead
14855 of precision and sign. Adapt function for canonicalized ranges.
14856 (extract_range_from_binary_expr): Pass type to
14857 extract_range_from_multiplicative_op.
14858 Adapt for canonicalized ranges.
14859 (extract_range_from_unary_expr): Same.
14860 (value_range_base::intersect_helper): Adjust for canonicalized
14861 ranges.
14862 (value_range_base::union_helper): Same.
14863 (value_range_base::normalize_symbolics): New.
14864 * tree-vrp.h (class value_range_base): Remove
14865 set_and_canonicalize.
14866 New prototype for normalize_symbolics.
14867 (class value_range): Remove set_and_canonicalize.
14868 (vrp_val_min): Adjust prototype.
14869 (vrp_val_max): Same.
14870 * vr-values.c
14871 (vr_values::extract_range_for_var_from_comparison_expr): Call set
14872 instead of set_and_canonicalize.
14873
14874 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14875
14876 PR middle-end/91444
14877 * tree-vect-stmts.c (vectorizable_call): Check that the function
14878 is a BUILT_IN_MD function before passing it to
14879 targetm.vectorize.builtin_md_vectorized_function.
14880
14881 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14882
14883 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
14884 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
14885 (aarch64_select_early_remat_modes): Use it.
14886
14887 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14888
14889 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
14890 16 for SVE predicates even if they are fixed-length.
14891
14892 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14893
14894 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
14895 operand order match the MOV /Z alias.
14896
14897 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14898
14899 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
14900 the vector pattern as an aarch64_svpattern argument. Update the
14901 overloaded caller accordingly.
14902 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
14903 (aarch64_output_sve_vector_inc_dec): Likewise.
14904
14905 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14906
14907 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
14908 multiplication case, try to compute VG * (lowest set bit) directly
14909 rather than always basing the multiplication on VG. Use
14910 expand_mult for the multiplication if we can.
14911
14912 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14913
14914 * config/aarch64/aarch64-protos.h
14915 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
14916 (aarch64_sve_inc_dec_immediate_p): Rename to...
14917 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
14918 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
14919 (aarch64_output_sve_scalar_inc_dec): Declare.
14920 (aarch64_output_sve_inc_dec_immediate): Rename to...
14921 (aarch64_output_sve_vector_inc_dec): ...this.
14922 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
14923 (aarch64_output_sve_scalar_inc_dec): New functions.
14924 (aarch64_output_sve_addvl_addpl): Remove the base and offset
14925 arguments. Only handle true ADDVL and ADDPL instructions;
14926 don't emit an INC or DEC.
14927 (aarch64_sve_inc_dec_immediate_p): Rename to...
14928 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
14929 (aarch64_output_sve_inc_dec_immediate): Rename to...
14930 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
14931 aarch64_sve_vector_inc_dec_immediate_p.
14932 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
14933 (aarch64_sve_plus_immediate): New predicates.
14934 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
14935 rather than aarch64_sve_addvl_addpl_immediate.
14936 (aarch64_sve_inc_dec_immediate): Rename to...
14937 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
14938 aarch64_sve_vector_inc_dec_immediate_p.
14939 (aarch64_sve_add_operand): Update accordingly.
14940 * config/aarch64/constraints.md (Uai): New constraint.
14941 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
14942 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
14943 operand into a register if it satisfies aarch64_sve_plus_immediate.
14944 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
14945 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
14946 * config/aarch64/aarch64-sve.md (add<mode>3): Call
14947 aarch64_output_sve_vector_inc_dec instead of
14948 aarch64_output_sve_inc_dec_immediate.
14949
14950 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14951
14952 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
14953 (UNSPEC_REVW): New constants.
14954 (elem_bits): New mode attribute.
14955 (SVE_INT_UNARY): New int iterator.
14956 (optab): Handle UNSPEC_REV[BHW].
14957 (sve_int_op): New int attribute.
14958 (min_elem_bits): Handle VNx16QI and the predicate modes.
14959 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
14960 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
14961 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
14962 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
14963 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
14964 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
14965 unspecs based on the total width of the reversed data.
14966 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
14967 reinterpret followed by a subreg on big-endian targets.
14968
14969 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14970 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14971
14972 * config/aarch64/aarch64-sve.md
14973 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
14974 alternatives in which one of the inputs is in the same register
14975 as the output.
14976
14977 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14978
14979 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
14980 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
14981
14982 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14983
14984 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
14985 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
14986
14987 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14988 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14989
14990 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
14991 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
14992 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
14993
14994 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14995 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14996
14997 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
14998 Add an alternative that uses reversed shifts.
14999
15000 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15001
15002 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
15003 struct.
15004
15005 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15006
15007 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
15008 a commutativity marker.
15009
15010 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15011 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15012
15013 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
15014 (aarch64_prepare_sve_cond_int_fma): Declare.
15015 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
15016 (aarch64_prepare_sve_int_fma): New functions.
15017 (aarch64_prepare_sve_cond_int_fma): Likewise.
15018 * config/aarch64/aarch64-sve.md
15019 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
15020 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
15021 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
15022 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
15023 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
15024 (*madd<mode>): Rename to...
15025 (*fma<mode>4): ...this.
15026 (*msub<mode>): Rename to...
15027 (*fnma<mode>4): ...this.
15028
15029 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15030 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15031
15032 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
15033 Print 2.0 naturally.
15034 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
15035 * config/aarch64/predicates.md
15036 (aarch64_sve_float_negated_arith_immediate): New predicate,
15037 renamed from aarch64_sve_float_arith_with_sub_immediate.
15038 (aarch64_sve_float_arith_with_sub_immediate): Test for both
15039 positive and negative constants.
15040 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
15041 or an aarch64_sve_float_arith_with_sub_immediate.
15042 * config/aarch64/constraints.md (vsN): Use
15043 aarch64_sve_float_negated_arith_immediate.
15044 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
15045 iterator.
15046 (sve_pred_fp_rhs2_immediate): New int attribute.
15047 * config/aarch64/aarch64-sve.md
15048 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
15049 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
15050 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
15051 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
15052 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
15053 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
15054
15055 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15056 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15057
15058 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
15059 (*aarch64_cond_abd<SVE_F:mode>_3)
15060 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
15061
15062 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15063 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15064
15065 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
15066 (*aarch64_cond_<su>abd<mode>_any): New patterns.
15067
15068 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15069 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15070
15071 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
15072 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
15073 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
15074 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
15075 optabs.
15076 * optabs.h (create_convert_operand_from): Expand comment.
15077 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
15078 when mapping scalar rtxes to vector operands.
15079 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
15080 ashiftrt and lshiftrt.
15081 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
15082 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
15083 (*cond_<optab><mode>_any_const): New patterns.
15084
15085 2019-08-15 Martin Liska <mliska@suse.cz>
15086
15087 PR ipa/91438
15088 * cgraph.c (cgraph_node::remove): When setting
15089 n->origin = NULL for all nested functions, reset
15090 also next_nested.
15091
15092 2019-08-15 Martin Liska <mliska@suse.cz>
15093
15094 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
15095 and next_nested.
15096
15097 2019-08-15 Martin Liska <mliska@suse.cz>
15098
15099 PR ipa/91404
15100 * passes.c (order): Remove.
15101 (uid_hash_t): Likewise).
15102 (remove_cgraph_node_from_order): Remove from set
15103 of pointers (cgraph_node *).
15104 (insert_cgraph_node_to_order): New.
15105 (duplicate_cgraph_node_to_order): New.
15106 (do_per_function_toporder): Register all 3 cgraph hooks.
15107 Skip removed_nodes now as we know about all of them.
15108
15109 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
15110
15111 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
15112 <case E_V8QImode>: Use vector_set path for
15113 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15114 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
15115 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15116
15117 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15118
15119 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
15120
15121 2019-08-14 Martin Sebor <msebor@redhat.com>
15122
15123 PR tree-optimization/91294
15124 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
15125 source length as exact.
15126
15127 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
15128
15129 * doc/extend.texi: Add "noinit" attribute documentation.
15130 * doc/sourcebuild.texi: Add noinit effective target documentation.
15131 * varasm.c (default_section_type_flags): Add support for "noinit"
15132 section.
15133 (default_elf_select_section): Add support for "noinit" attribute.
15134 * config/msp430/msp430.c (msp430_attribute_table): Remove
15135 "noinit" entry.
15136
15137 2019-08-14 Richard Biener <rguenther@suse.de>
15138 Uroš Bizjak <ubizjak@gmail.com>
15139
15140 PR target/91154
15141 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
15142 mode arguments.
15143 (scalar_chain::smode): New member.
15144 (scalar_chain::vmode): Likewise.
15145 (dimode_scalar_chain): Rename to...
15146 (general_scalar_chain): ... this.
15147 (general_scalar_chain::general_scalar_chain): Take mode arguments.
15148 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
15149 base with TImode and V1TImode.
15150 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
15151 (general_scalar_chain::vector_const_cost): Adjust for SImode
15152 chains.
15153 (general_scalar_chain::compute_convert_gain): Likewise. Add
15154 {S,U}{MIN,MAX} support.
15155 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
15156 (general_scalar_chain::make_vector_copies): Likewise. Handle
15157 non-DImode chains appropriately.
15158 (general_scalar_chain::convert_reg): Likewise.
15159 (general_scalar_chain::convert_op): Likewise.
15160 (general_scalar_chain::convert_insn): Likewise. Add
15161 fatal_insn_not_found if the result is not recognized.
15162 (convertible_comparison_p): Pass in the scalar mode and use that.
15163 (general_scalar_to_vector_candidate_p): Likewise. Rename from
15164 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
15165 (scalar_to_vector_candidate_p): Remove by inlining into single
15166 caller.
15167 (general_remove_non_convertible_regs): Rename from
15168 dimode_remove_non_convertible_regs.
15169 (remove_non_convertible_regs): Remove by inlining into single caller.
15170 (convert_scalars_to_vector): Handle SImode and DImode chains
15171 in addition to TImode chains.
15172 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
15173 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
15174 (*<maxmin>di3_doubleword): Likewise.
15175
15176 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15177 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15178
15179 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
15180 (*cond_bic<mode>_any): New patterns.
15181
15182 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15183
15184 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
15185 take the equivalent mask, as well as a bit count.
15186 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
15187 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
15188 (aarch64_sve_pred_and_operand): New predicates.
15189 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
15190 code attribute.
15191 * config/aarch64/aarch64-sve.md
15192 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
15193 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
15194
15195 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15196
15197 * config/aarch64/aarch64-sve.md
15198 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
15199 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
15200 New patterns.
15201
15202 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15203 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15204
15205 * config/aarch64/aarch64-sve.md
15206 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
15207 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
15208
15209 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15210 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15211
15212 * config/aarch64/aarch64-sve.md
15213 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
15214 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
15215
15216 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15217
15218 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
15219 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
15220 New pattern.
15221
15222 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15223 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15224
15225 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
15226
15227 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15228 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15229
15230 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
15231 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
15232 (aarch64_print_operand): Add support for %I.
15233 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
15234 Bitcast floating-point constants to the corresponding integer constant.
15235 (aarch64_float_const_representable_p): Handle vectors as well
15236 as scalars.
15237 (aarch64_expand_sve_vcond): Make sure that the operands are valid
15238 for the new vcond_mask_<mode><vpred> expander.
15239 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
15240 test aarch64_float_const_representable_p.
15241 (aarch64_sve_reg_or_dup_imm): New predicate.
15242 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
15243 gen_vcond_mask_<mode><vpred> instead of
15244 gen_aarch64_sve_dup<mode>_const.
15245 (vcond_mask_<mode><vpred>): Turn into a define_expand that
15246 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
15247 for operands 1 and 2 respectively. Force operand 2 into a
15248 register if operand 1 is a register. Fold old define_insn...
15249 (aarch64_sve_dup<mode>_const): ...and this define_insn...
15250 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
15251 floating-point constants that can be moved as integers. Add
15252 alternatives for MOV /M and FMOV /M.
15253 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
15254 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
15255 1 and 2 respectively.
15256 * config/aarch64/constraints.md (Ufc): Handle vectors as well
15257 as scalars.
15258 (vss): New constraint.
15259
15260 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15261
15262 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
15263 (aarch64_sve_float_maxmin_operand): New predicates.
15264 * config/aarch64/constraints.md (vsB): New constraint.
15265 (vsM): Fix typo.
15266 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
15267 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
15268 UNSPEC_COND_FMINNM.
15269 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
15270 Use aarch64_sve_float_maxmin_operand for operand 2.
15271 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
15272 Add alternatives for the constant forms.
15273
15274 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15275
15276 * config/aarch64/constraints.md (vsb): New constraint.
15277 (vsm): Generalize description.
15278 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
15279 iterator.
15280 (sve_imm_con): Handle smax, smin, umax and umin.
15281 (sve_imm_prefix): New code attribute.
15282 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
15283 (aarch64_sve_vsb_operand): New predicates.
15284 (aarch64_sve_mul_immediate): Rename to...
15285 (aarch64_sve_vsm_immediate): ...this.
15286 (aarch64_sve_mul_operand): Rename to...
15287 (aarch64_sve_vsm_operand): ...this.
15288 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
15289 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
15290 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
15291 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
15292 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
15293 add movprfx support for the immediate alternatives.
15294 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
15295 of the above.
15296 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
15297 for operand 3.
15298
15299 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15300
15301 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
15302 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
15303 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
15304
15305 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15306
15307 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
15308 (optab, sve_int_op): Handle them.
15309 * config/aarch64/aarch64-sve.md: Expand comment.
15310
15311 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15312
15313 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
15314 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
15315 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
15316
15317 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15318
15319 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
15320 (aarch64_expand_sve_const_pred_trn): New functions.
15321 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
15322 use the above functions when the parameter is true.
15323 (aarch64_expand_sve_const_pred): Update call accordingly.
15324 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
15325 Rename to...
15326 (@aarch64_sve_<perm_insn><mode>): ...this.
15327
15328 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15329
15330 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
15331 Declare.
15332 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
15333 (aarch64_sve_emit_int_cmp): New functions.
15334 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
15335 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
15336 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
15337 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
15338 (UNSPEC_PRED_Z): New unspec.
15339 (set_clobber_cc_nzc): Delete.
15340 * config/aarch64/aarch64-sve.md: Add a block comment about
15341 UNSPEC_PRED_Z.
15342 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
15343 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
15344 the old pattern with that name. Use UNSPEC_PRED_Z instead of
15345 UNSPEC_MERGE_PTRUE.
15346 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
15347 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
15348 check for compatible predicates.
15349 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
15350 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
15351 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
15352 comparisons above.
15353
15354 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15355
15356 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
15357 * config/aarch64/aarch64-sve.md: Add a section describing it.
15358 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
15359 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
15360 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
15361 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
15362 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
15363 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
15364 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
15365 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
15366 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
15367 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
15368 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
15369 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
15370 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
15371 (aarch64_evpc_rev_local): Update accordingly.
15372
15373 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15374
15375 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
15376 iterators.
15377 (SVE_BHSI, SVE_SDI): Tweak comment.
15378 (SVE_HSDI): Likewise. Fix definition.
15379 (SVE_SDF): New mode iterator.
15380 (elem_bits): New mode attribute.
15381 (SVE_COND_FCVT): New int iterator.
15382 * config/aarch64/aarch64-sve.md
15383 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
15384 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
15385 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
15386 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
15387 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
15388 ...these new patterns.
15389 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
15390 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
15391 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
15392 Merge into...
15393 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
15394 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
15395 ...these new patterns.
15396 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
15397 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
15398 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
15399 ...this new pattern.
15400 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
15401 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
15402 ...this new pattern.
15403 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
15404
15405 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15406
15407 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
15408 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
15409 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
15410 unspecs.
15411 (optab, su): Handle them.
15412 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
15413 * config/aarch64/aarch64-sve.md
15414 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
15415 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
15416 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
15417 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
15418 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
15419 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
15420 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
15421 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
15422 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
15423 FIXUORS.
15424 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
15425 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
15426 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
15427 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
15428 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
15429 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
15430 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
15431 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
15432 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
15433 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
15434 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
15435 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
15436 of UNSPEC_FLOAT_CONVERT.
15437 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
15438 aarch64_sve_extend<mode><Vwide>2.
15439
15440 2019-08-14 Richard Biener <rguenther@suse.de>
15441
15442 PR target/91154
15443 * config/i386/i386-features.c
15444 (dimode_scalar_chain::compute_convert_gain): Compute and dump
15445 individual instruction gain. Fix reg-reg copy GRP cost. Use
15446 ix86_cost->sse_op for vector instruction costs.
15447
15448 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15449
15450 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
15451 (cmp_op): Handle it.
15452 (SVE_COND_FP_CMP): Rename to...
15453 (SVE_COND_FP_CMP_I0): ...this.
15454 (SVE_FP_CMP): Remove.
15455 * config/aarch64/aarch64-sve.md
15456 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
15457 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
15458 using unspecs to represent the comparison.
15459 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
15460 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
15461 accordingly.
15462 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
15463 (aarch64_unspec_cond_code): Move after integer code. Handle
15464 UNORDERED.
15465 (aarch64_emit_sve_predicated_cond): Replace with...
15466 (aarch64_emit_sve_fp_cond): ...this new function.
15467 (aarch64_emit_sve_or_conds): Replace with...
15468 (aarch64_emit_sve_or_fp_conds): ...this new function.
15469 (aarch64_emit_sve_inverted_cond): Replace with...
15470 (aarch64_emit_sve_invert_fp_cond): ...this new function.
15471 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
15472
15473 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15474
15475 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
15476 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
15477 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
15478 SVE_HSD instead of SVE_SD.
15479
15480 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15481 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15482
15483 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
15484 iterator.
15485 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
15486 attributes.
15487 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
15488 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
15489 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
15490 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
15491 (*div<SVE_F:mode>3): Generalize to...
15492 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
15493
15494 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15495 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15496
15497 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
15498 constants.
15499 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
15500 predicate.
15501 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
15502 Declare.
15503 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
15504 function.
15505 * config/aarch64/aarch64-sve.md: Add a block comment about the
15506 handling of predicated FP operations.
15507 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
15508 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
15509 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
15510 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
15511 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
15512 operand.
15513 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
15514 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
15515 operand.
15516 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
15517 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
15518 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
15519 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
15520 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
15521 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
15522 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
15523 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
15524 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
15525 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
15526 strictness operands. Use aarch64_sve_pred_dominates_p to check
15527 whether the predicate on the conditional operation is suitable
15528 for merging. Split patterns into the canonical equal-predicate form.
15529 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
15530 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
15531
15532 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15533 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15534
15535 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
15536 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
15537 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
15538 rtx codes.
15539 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
15540 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
15541 unspecs.
15542
15543 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15544 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15545
15546 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
15547 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
15548 actually has, rather than relying on REG_EQUAL notes.
15549 Make the insn operand order match the SVE operand order.
15550 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
15551 the SVE operand order.
15552
15553 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15554
15555 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
15556 (aarch64_emit_set_immediate): Likewise.
15557 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
15558 (aarch64_pfalse_reg): Likewise.
15559 (aarch64_convert_sve_data_to_pred): New function.
15560 (aarch64_sve_move_pred_via_while): Take an optional target register
15561 and the required register mode.
15562 (aarch64_expand_sve_const_pred_1): New function.
15563 (aarch64_expand_sve_const_pred): Likewise.
15564 (aarch64_expand_mov_immediate): Build an all-true predicate
15565 if the significant bits of the immediate are all true. Use
15566 aarch64_expand_sve_const_pred for all compile-time predicate constants.
15567 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
15568 before register allocation.
15569 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
15570 a VNx16BI PTRUE when splitting the memory alternative.
15571 (vec_duplicate<mode>): Update accordingly.
15572 (*pred_cmp<cmp_op><mode>): Rename to...
15573 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
15574
15575 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15576
15577 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
15578 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
15579 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
15580 (UNSPEC_PTEST): New unspec.
15581 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
15582 * config/aarch64/iterators.md (data_bytes): New mode attribute.
15583 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
15584 * config/aarch64/aarch64-sve.md: Add a new section describing the
15585 handling of UNSPEC_PTEST.
15586 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
15587 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
15588 (ptest_ptrue<mode>): Replace with...
15589 (aarch64_ptest<mode>): ...this new pattern.
15590 (cbranch<mode>4): Update after above changes.
15591 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
15592 UNSPEC_PTEST_PTRUE.
15593 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
15594 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
15595 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
15596
15597 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
15598
15599 PR lto/91287
15600 * builtins.c (builtin_with_linkage_p): New function.
15601 * builtins.h (builtin_with_linkage_p): New function.
15602 * symtab.c (write_symbol): Remove redundant assert.
15603 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
15604 Remove FIXME and use builtin_with_linkage_p.
15605
15606 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15607
15608 PR middle-end/91421
15609 * tree-core.h (function_decl::function_code): Change type to
15610 unsigned int.
15611 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
15612 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
15613 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
15614 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
15615 is BUILT_IN_NORMAL.
15616 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
15617 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
15618 (fndecl_built_in_p): Change the type of the "name" argument to
15619 unsigned int.
15620 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
15621 after check for DECL_BUILT_IN_CLASS.
15622 * cgraphclones.c (build_function_decl_skip_args): Use
15623 set_decl_built_in_function.
15624 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
15625 * ipa-split.c (split_function): Likewise.
15626 * langhooks.c (add_builtin_function_common): Likewise.
15627 * omp-simd-clone.c (simd_clone_create): Likewise.
15628 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
15629 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
15630 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
15631 DECL_FUNCTION_CODE.
15632 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
15633 instead of DECL_FUNCTION_CODE.
15634 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
15635 instead of DECL_FUNCTION_CODE.
15636 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
15637 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
15638 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
15639 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
15640 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
15641 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
15642 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
15643 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
15644 (alpha_gimple_fold_builtin): Likewise.
15645 * config/arc/arc.c (arc_expand_builtin): Likewise.
15646 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
15647 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
15648 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
15649 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
15650 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
15651 * config/frv/frv.c (frv_expand_builtin): Likewise.
15652 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
15653 (gcn_expand_builtin): Likewise.
15654 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
15655 (fold_builtin_cpu): Likewise.
15656 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
15657 * config/i386/i386.c (ix86_fold_builtin): Likewise.
15658 (ix86_gimple_fold_builtin): Likewise.
15659 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
15660 (ia64_expand_builtin): Likewise.
15661 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
15662 * config/mips/mips.c (mips_expand_builtin): Likewise.
15663 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
15664 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
15665 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
15666 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
15667 * config/pa/pa.c (pa_expand_builtin): Likewise.
15668 * config/pru/pru.c (pru_expand_builtin): Likewise.
15669 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
15670 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15671 Likewise.
15672 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
15673 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
15674 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
15675 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
15676 (rs6000_builtin_reciprocal): Likewise.
15677 * config/rx/rx.c (rx_expand_builtin): Likewise.
15678 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
15679 * config/s390/s390.c (s390_expand_builtin): Likewise.
15680 * config/sh/sh.c (sh_expand_builtin): Likewise.
15681 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
15682 (sparc_fold_builtin): Likewise.
15683 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
15684 * config/spu/spu.c (spu_expand_builtin): Likewise.
15685 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
15686 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
15687 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
15688 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
15689 (xtensa_expand_builtin): Likewise.
15690
15691 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15692
15693 PR middle-end/91421
15694 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
15695 before the DECL_FUNCTION_CODE.
15696 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
15697 to check for a BUILT_IN_ALLOCA call.
15698 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
15699 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
15700 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
15701 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
15702 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
15703 for BUILT_IN_NORMAL functions.
15704 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
15705 test for BUILT_IN_TM_ABORT.
15706 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
15707 to check for a BUILT_IN_STACK_RESTORE call.
15708 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
15709 * tree-ssa-threadedge.c
15710 (record_temporary_equivalences_from_stmts_at_dest): Check for a
15711 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
15712 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
15713 test for a BUILT_IN_NORMAL call instead of a negative test for
15714 an internal function call.
15715
15716 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15717
15718 * tree.h (build_vector_a_then_b): Declare.
15719 * tree.c (build_vector_a_then_b): New function.
15720 * fold-const-call.c (fold_while_ult): Likewise.
15721 (fold_const_call): Use it to handle IFN_WHILE_ULT.
15722 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
15723 (aarch64_svpattern): New enum.
15724 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
15725 constants through aarch64_expand_mov_immediate.
15726 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
15727 than general_operand as the predicate for operand 1.
15728 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
15729 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
15730 insn_type.
15731 (simd_immediate_info::simd_immediate_info): New overload that
15732 takes a scalar_int_mode and an svpattern.
15733 (simd_immediate_info::u): Add a "pattern" field.
15734 (svpattern_token): New function.
15735 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
15736 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
15737 (aarch64_sve_move_pred_via_while): New functions.
15738 (aarch64_expand_mov_immediate): Try using
15739 aarch64_sve_move_pred_via_while for predicates that contain N ones
15740 followed by M zeros but that do not correspond to a VLnnn pattern.
15741 (aarch64_sve_pred_valid_immediate): New function.
15742 (aarch64_simd_valid_immediate): Use it instead of dealing directly
15743 with PTRUE and PFALSE.
15744 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
15745 forms.
15746
15747 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
15748
15749 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
15750 flag.
15751 (darwin_override_options): Likewise.
15752 * config/darwin.h: Likewise.
15753 * config/darwin.opt: Likewise.
15754 * config/i386/i386.c (output_pic_addr_const): Likewise.
15755 * config/rs6000/darwin.h: Likewise.
15756 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
15757 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
15758 ... this TARGET_MACHO_SYMBOL_STUBS.
15759 (FUNCTION_PROFILER):Likewise.
15760 * config/i386/i386.h: Likewise.
15761
15762 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
15763
15764 * config/i386/i386-expand.c (ix86_expand_vector_extract)
15765 <case E_V2SImode>: Use vec_extr path for
15766 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15767 <case E_V8QImode>: Ditto.
15768 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
15769 Use SWI48 mode iterator. Use %k to output operand 0.
15770 (*mmx_pextrw): New insn pattern.
15771 (*mmx_pextrb): Ditto.
15772 (*mmx_pextrb_zext): Ditto.
15773
15774 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
15775
15776 * target.def (libc_has_function, libc_has_fast_function): Improve
15777 documentation strings.
15778 * doc/tm.texi: Regenerate.
15779
15780 2019-08-13 Caroline Tice <cmtice@google.com>
15781
15782 PR other/91396
15783 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
15784 vtv_end.o or vtv_end_preinit.o files if !static.
15785
15786 2019-08-13 Olivier Hainque <hainque@adacore.com>
15787
15788 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
15789
15790 2019-08-13 Olivier Hainque <hainque@adacore.com>
15791
15792 * rtlanal.c (tablejump_casesi_pattern): New function, to
15793 determine if a tablejump insn is a casesi dispatcher. Extracted
15794 from patch_jump_insn.
15795 * rtl.h (tablejump_casesi_pattern): Declare.
15796 * cfgrtl.c (patch_jump_insn): Use it.
15797 * dwarf2cfi.c (create_trace_edges): Use it.
15798
15799 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
15800
15801 PR target/81800
15802 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
15803 operand is larger than a long int.
15804
15805 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15806
15807 * machmode.h (opt_mode::else_mode): New function.
15808 (opt_mode::else_blk): Use it.
15809 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
15810 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
15811 (aarch64_gen_stepped_int_parallel): Likewise.
15812 (aarch64_stepped_int_parallel_p): Likewise.
15813 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
15814 argument.
15815 * config/aarch64/aarch64.c
15816 (aarch64_expand_sve_widened_duplicate): Delete.
15817 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
15818 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
15819 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
15820 argument. Use early returns in the !CONST_INT_P handling.
15821 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
15822 than handling some inline.
15823 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
15824 from...
15825 (aarch64_simd_container_mode): ...here.
15826 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
15827 (aarch64_sve_ld1rq_operand_p): New functions.
15828 * config/aarch64/predicates.md (descending_int_parallel)
15829 (aarch64_sve_ld1rq_operand): New predicates.
15830 * config/aarch64/constraints.md (UtQ): New constraint.
15831 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
15832 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
15833 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
15834 (@aarch64_sve_reinterpret<mode>): New expander.
15835 (*aarch64_sve_reinterpret<mode>): New pattern.
15836 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
15837 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
15838 (*sve_ld1rq<Vesize>): Replace with...
15839 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
15840
15841 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
15842
15843 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
15844 16:12.
15845
15846 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15847
15848 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
15849 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
15850 (msp430_check_path_for_devices): New.
15851 (parse_devices_csv_1): New.
15852 (parse_devices_csv): New.
15853 (msp430_extract_mcu_data): Try to find devices.csv and search for the
15854 MCU data in devices.csv before using the hard-coded data.
15855 Warn if devices.csv isn't found and the MCU wasn't found in the
15856 hard-coded data either.
15857 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
15858 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
15859 Search for devices.csv on -I and -L paths.
15860 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
15861 msp430_set_driver_var.
15862 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
15863 -mdevices-csv-loc=.
15864 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
15865 searched for devices.csv.
15866 (mwarn-devices-csv): Document option.
15867
15868 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15869
15870 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
15871 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
15872 Use a single Dn alternative instead of separate Dz and Dm
15873 alternatives. Use aarch64_output_sve_move_immediate.
15874 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
15875 function.
15876 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
15877 for predicates too.
15878 (aarch64_output_sve_mov_immediate): Handle predicate modes.
15879 (aarch64_output_ptrue): Delete.
15880
15881 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15882
15883 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
15884 INDEX.
15885 (simd_immediate_info::value, simd_immediate_info::step)
15886 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
15887 with...
15888 (simd_immediate_info::u): ...this new union.
15889 (simd_immediate_info::simd_immediate_info): Update accordingly.
15890 (aarch64_output_simd_mov_immediate): Likewise.
15891 (aarch64_output_sve_mov_immediate): Likewise.
15892
15893 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15894
15895 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
15896 extra_gcc_objs.
15897 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
15898 (msp430_select_cpu): New spec function.
15899 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
15900 MCU data.
15901 * config/msp430/msp430-devices.c: New file.
15902 * config/msp430/msp430-devices.h: New file.
15903 * config/msp430/msp430.c: Remove msp430_mcu_data.
15904 (msp430_option_override): Use msp430_extract_mcu_data to extract
15905 MCU data.
15906 (msp430_use_f5_series_hwmult): Likewise.
15907 (use_32bit_hwmult): Likewise.
15908 (msp430_no_hwmult): Likewise.
15909 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
15910 assembler.
15911 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
15912 and -mcpu option.
15913 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
15914 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
15915 Remove hard-coded MCU multilib data.
15916
15917 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15918
15919 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
15920 based on the mode instead of testing properties of it.
15921
15922 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15923
15924 * doc/md.texi: Document the x and y constraints for AArch64.
15925 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
15926 (FP_LO8_REGS): New reg_class.
15927 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
15928 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
15929 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
15930 * config/aarch64/predicates.md (aarch64_simd_register): Use
15931 FP_REGNUM_P instead of checking the classes manually.
15932 * config/aarch64/constraints.md (y): New constraint.
15933
15934 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15935
15936 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
15937 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
15938 * config/aarch64/aarch64-simd.md
15939 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
15940 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
15941 from the asm template.
15942 * config/aarch64/aarch64-sve.md
15943 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
15944 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
15945 from the asm template.
15946 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
15947 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
15948 from the asm template.
15949 * config/aarch64/aarch64-simd-builtins.def: Update comment.
15950
15951 2019-08-13 Martin Liska <mliska@suse.cz>
15952
15953 * value-prof.c (gimple_ic_transform): Add new line.
15954 Print details with MSG_NOTE.
15955
15956 2019-08-13 Martin Liska <mliska@suse.cz>
15957
15958 * doc/invoke.texi: Document automatic detection of jobserver.
15959 * lto-wrapper.c (run_gcc): Detect jobserver always.
15960
15961 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
15962
15963 * config/i386/i386-expand.c (ix86_expand_vector_set)
15964 <case E_V2SImode>: Use vec_merge path for
15965 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15966 <case E_V8QImode>: Ditto.
15967 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
15968 (*mmx_pinsrb): Ditto.
15969
15970 2019-08-12 Jakub Jelinek <jakub@redhat.com>
15971
15972 PR target/83250
15973 PR target/91340
15974 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
15975 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
15976 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
15977 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
15978 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
15979
15980 2019-08-12 Richard Biener <rguenther@suse.de>
15981
15982 PR lto/91375
15983 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
15984 flag_devirtualize.
15985
15986 2019-08-12 Richard Biener <rguenther@suse.de>
15987
15988 PR driver/91130
15989 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
15990 lang_mask option, always use CL_DRIVER.
15991 (get_options_from_collect_gcc_options): Adjust.
15992 (find_and_merge_options): Likewise.
15993 (run_gcc): Likewise.
15994
15995 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15996
15997 * ipa-predicate.c (add_condition): Restore inverted test.
15998
15999 2019-08-10 Jakub Jelinek <jakub@redhat.com>
16000
16001 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
16002 (enum omp_clause_device_type_kind): New enum.
16003 (struct tree_omp_clause): Add subcode.device_type_kind.
16004 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
16005 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16006 for device_type clause.
16007 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
16008 * tree-pretty-print.c (dump_omp_clause): Likewise.
16009
16010 PR target/91408
16011 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
16012 vector_operand.
16013
16014 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
16015
16016 * reload1.c (finish_spills): Do not check ira_conflicts_p when
16017 handling spilled pseudos.
16018
16019 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16020
16021 PR target/91386
16022 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
16023 to preserve the contents of the original insns.
16024
16025 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16026
16027 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
16028 (addsi3_compare_op2): Likewise.
16029
16030 2019-08-09 Martin Liska <mliska@suse.cz>
16031
16032 * alias.c (alias_ptr_types_compatible_p): Strengten
16033 type comparison in LTO mode.
16034
16035 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
16036
16037 PR middle-end/90313
16038 * tree-tailcall.c (find_tail_calls): Reject calls that might
16039 read from an escaped RESULT_DECL.
16040
16041 2019-08-09 Martin Liska <mliska@suse.cz>
16042
16043 * doc/invoke.texi: Document the option value.
16044 * lto-wrapper.c (run_gcc): Set auto_parallel
16045 only with -flto=auto.
16046
16047 2019-08-09 Martin Liska <mliska@suse.cz>
16048
16049 * opts.c (common_handle_option): Error for an invalid argument
16050 to -flto=.
16051
16052 2019-08-09 Martin Liska <mliska@suse.cz>
16053
16054 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
16055 use dump_printf to report optimization.
16056 (sem_variable::merge): Likwise.
16057 (sem_item_optimizer::merge_classes): Use dump_printf to report
16058 ICF hits.
16059
16060 2019-08-09 Martin Liska <mliska@suse.cz>
16061
16062 * value-prof.c (gimple_divmod_fixed_value_transform):
16063 Use dump_printf_loc.
16064 (gimple_mod_pow2_value_transform): Likewise.
16065 (gimple_mod_subtract_transform): Likewise.
16066 (init_node_map): Likewise.
16067 (gimple_ic_transform): Likewise.
16068 (gimple_stringops_transform): Likewise.
16069
16070 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
16071
16072 * doc/extend.texi: Add const qualifier to ld intrinsics.
16073
16074 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16075
16076 * config/rs6000/dfp.md (D64_D128): Rename to ...
16077 (DDTD): ... this, throughout.
16078 (dfp_suffix): Rename to ...
16079 (q): ... this, throughout.
16080
16081 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16082
16083 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
16084 (dfp_suffix): Ditto.
16085 (adddd3, addtd3): Merge to ...
16086 (add<mode>3 for D64_D128): ... this.
16087 (subdd3, subtd3): Merge to ...
16088 (sub<mode>3 for D64_D128): ... this.
16089 (muldd3, multd3): Merge to ...
16090 (mul<mode>3 for D64_D128): ... this.
16091 (divdd3, divtd3): Merge to ...
16092 (div<mode>3 for D64_D128): ... this.
16093 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
16094 (*cmp<mode>_internal1 for D64_D128): ... this.
16095 (ftruncdd2, ftrunctd2): Merge to ...
16096 (ftrunc<mode>2 for D64_D128): ... this.
16097 (fixdddi2, fixtddi2): Merge to ...
16098 (fix<mode>di2 for D64_D128): ... this.
16099
16100 2019-08-08 Jim Wilson <jimw@sifive.com>
16101
16102 PR target/91229
16103 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
16104 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
16105 Pass into recursive call.
16106 (riscv_flatten_aggregate_argument): New arg. Pass to
16107 riscv_flatten_aggregate_field.
16108 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
16109 riscv_flatten_aggregate_argument twice, with false and true as last
16110 arg. Process result twice. Compare results and warn if different.
16111 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
16112
16113 2019-08-08 Martin Liska <mliska@suse.cz>
16114
16115 PR bootstrap/91352
16116 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
16117 * lto-wrapper.c (jobserver_active_p): Likewise.
16118
16119 2019-08-08 Martin Liska <mliska@suse.cz>
16120
16121 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
16122 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
16123 (create_version_clone_with_body): Likewise.
16124
16125 2019-08-08 Jakub Jelinek <jakub@redhat.com>
16126
16127 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
16128 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
16129 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
16130 GOVD_EXPLICIT flags.
16131 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
16132 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
16133 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
16134 call install_var_field with mask 11 instead of 3.
16135 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
16136 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
16137
16138 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16139
16140 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
16141 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
16142
16143 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16144
16145 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
16146 MOVPRFX alternatives. Make the GPR alternatives more expensive
16147 than the FPR ones.
16148
16149 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16150
16151 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
16152 Disparage the GPR alternative relative to the FPR one.
16153 Fix handling of 8-bit and 16-bit FPR values.
16154
16155 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16156
16157 * config/aarch64/iterators.md (BITWISEV): Delete.
16158 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
16159 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
16160 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
16161 UNSPEC_FMINNMV, UNSPEC_FMINV.
16162 (bit_reduc_op): Delete.
16163 (sve_int_op): New int attribute.
16164 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
16165 UNSPEC_FMINNMV, UNSPEC_FMINV.
16166 * config/aarch64/aarch64-sve.md
16167 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
16168 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
16169 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
16170 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
16171 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
16172 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
16173 new patterns.
16174 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
16175 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
16176 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
16177 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
16178 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
16179 new patterns.
16180
16181 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16182
16183 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
16184 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
16185 (fms<mode>4, *fms<mode>4): Replace with...
16186 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16187 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
16188 Use unspecs instead of rtx codes.
16189 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
16190 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
16191
16192 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16193
16194 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
16195 int iterator.
16196 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
16197 * config/aarch64/aarch64-sve.md
16198 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
16199 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
16200 use a single unspec for the rhs.
16201 (*<su><maxmin><mode>3): Delete.
16202 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
16203
16204 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16205
16206 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
16207 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
16208 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
16209 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
16210 (optab, sve_fp_op): Handle them.
16211 (SVE_FP_UNARY): Delete.
16212 (optab): Remove sqrt entry.
16213 (sve_fp_op): Remove neg, abs and sqrt entries.
16214 (SVE_COND_FP_UNARY): New int iterator.
16215 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
16216 (*<frint_pattern><mode>2): Delete.
16217 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
16218 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
16219 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
16220 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
16221
16222 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16223
16224 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
16225
16226 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16227
16228 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
16229 (UNSPEC_COND_FADD): ...this.
16230 (UNSPEC_COND_SUB): Rename to...
16231 (UNSPEC_COND_FSUB): ...this.
16232 (UNSPEC_COND_MUL): Rename to...
16233 (UNSPEC_COND_FMUL): ...this.
16234 (UNSPEC_COND_DIV): Rename to...
16235 (UNSPEC_COND_FDIV): ...this.
16236 (UNSPEC_COND_MAX): Rename to...
16237 (UNSPEC_COND_FMAXNM): ...this.
16238 (UNSPEC_COND_MIN): Rename to...
16239 (UNSPEC_COND_FMINNM): ...this.
16240 (UNSPEC_COND_LT): Rename to...
16241 (UNSPEC_COND_FCMLT): ...this.
16242 (UNSPEC_COND_LE): Rename to...
16243 (UNSPEC_COND_FCMLE): ...this.
16244 (UNSPEC_COND_EQ): Rename to...
16245 (UNSPEC_COND_FCMEQ): ...this.
16246 (UNSPEC_COND_NE): Rename to...
16247 (UNSPEC_COND_FCMNE): ...this.
16248 (UNSPEC_COND_GE): Rename to...
16249 (UNSPEC_COND_FCMGE): ...this.
16250 (UNSPEC_COND_GT): Rename to...
16251 (UNSPEC_COND_FCMGT): ...this.
16252 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
16253 (sve_fp_op_rev): Update accordingly.
16254 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
16255
16256 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16257
16258 * config/aarch64/aarch64-sve.md: Reorganize contents and add
16259 banner comments.
16260 * config/aarch64/check-sve-md.awk: New file.
16261 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
16262 (insn-conditions.md): Depend on it.
16263
16264 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
16265
16266 PR target/91385
16267 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
16268 (*negsi2_cmpz_zext): Ditto.
16269
16270 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16271
16272 * config/aarch64/iterators.md (commutative): Remove.
16273
16274 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
16275
16276 PR driver/91130
16277 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
16278 processing COLLECT_GCC_OPTIONS.
16279 (run_gcc): Likewise.
16280
16281 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
16282
16283 PR tree-optimization/91109
16284 * lra-remat.c (update_scratch_ops): Remove assignment of the
16285 hard register.
16286
16287 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16288
16289 * data-streamer.h (streamer_write_poly_uint64): Declare.
16290 (streamer_read_poly_uint64): Likewise.
16291 * data-streamer-in.c (streamer_read_poly_uint64): New function.
16292 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
16293 * ipa-predicate.h (condition::size): Turn into a poly_int64.
16294 (add_condition): Take a poly_int64 size.
16295 * ipa-predicate.c (add_condition): Likewise.
16296 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
16297 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
16298 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
16299 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
16300 condition::size as a poly_int64.
16301 (unmodified_parm_1): Take a poly_int64 size pointer.
16302 (unmodified_parm): Likewise.
16303 (unmodified_parm_or_parm_agg_item): Likewise.
16304 (set_cond_stmt_execution_predicate): Update accordingly.
16305 (set_switch_stmt_execution_predicate): Likewise.
16306 (will_be_nonconstant_expr_predicate): Likewise.
16307 (will_be_nonconstant_predicate): Likewise.
16308 (inline_read_section): Stream condition::size as a poly_int.
16309 (ipa_fn_summary_write): Likewise.
16310
16311 2019-08-07 Martin Liska <mliska@suse.cz>
16312
16313 * fold-const.c (twoval_comparison_p): Replace int
16314 with bool as a return type.
16315 (simple_operand_p): Likewise.
16316 (operand_equal_p): Replace int with bool as a return type.
16317 * fold-const.h (operand_equal_p): Likewise.
16318
16319 2019-08-07 Jakub Jelinek <jakub@redhat.com>
16320
16321 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
16322 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
16323 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16324 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
16325 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
16326 * tree-pretty-print.c (dump_omp_clause): Likewise.
16327 * tree-nested.c (convert_nonlocal_omp_clauses,
16328 convert_local_omp_clauses): Likewise.
16329 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
16330 Likewise.
16331 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
16332 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
16333 clause with array or reference to array types, no matter what type
16334 except for reference it has.
16335
16336 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
16337
16338 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
16339
16340 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
16341
16342 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
16343 (arch_canonicalize): Support rv32g and rv64g and fix error
16344 handling.
16345
16346 2019-08-06 Martin Liska <mliska@suse.cz>
16347
16348 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
16349 and DECL_IS_OPERATOR_DELETE_P.
16350
16351 2019-08-06 Jakub Jelinek <jakub@redhat.com>
16352
16353 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
16354 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
16355 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
16356 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
16357 (gimplify_omp_for): Don't do C++ random access iterator clause
16358 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
16359 don't predetermine the artificial iterator in case of C++ random
16360 access iterators as lastprivate, but private. For OMP_LOOP, force
16361 bind expr around simd body and force for_pre_body before the
16362 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
16363 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
16364 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
16365 diff var of C++ random access iterators. Handle
16366 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
16367 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
16368 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
16369 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
16370 * omp-low.c (lower_rec_input_clauses): For
16371 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
16372 variables instead of default constructing them.
16373 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
16374 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
16375 is_taskloop_ctx check from the assert to the guarding condition.
16376
16377 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
16378
16379 * config/riscv/multilib-generator: (canonical_order): New.
16380 (arch_canonicalize): Dito.
16381 Apply arch_canonicalize for alts.
16382
16383 2019-08-05 Martin Sebor <msebor@redhat.com>
16384
16385 * doc/extend.texi (Common Variable Attributes): Document alias
16386 attribute.
16387
16388 2019-08-05 Marek Polacek <polacek@redhat.com>
16389
16390 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
16391 * doc/invoke.texi: Document -Wcomma-subscript.
16392
16393 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
16394
16395 * tree-core.h (tree_function_decl): Make function_code an
16396 independent field. Group the remaining bitfields into bytes
16397 and move decl_type so that it contines to be at a byte boundary.
16398 Leave 12 bits for future expansion.
16399
16400 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
16401
16402 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
16403 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
16404 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
16405 IFN_MASK_STORE.
16406
16407 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
16408
16409 * gimple.h (gimple_move_vops): Declare.
16410 * gimple.c (gimple_move_vops): New function
16411 * gimple-fold.c (replace_call_with_call_and_fold)
16412 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
16413 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
16414 (gimple_fold_call): Use it.
16415 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
16416 * tree-call-cdce.c (use_internal_fn): Likewise.
16417 * tree-if-conv.c (predicate_load_or_store): Likewise.
16418 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
16419 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
16420 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
16421 (update_call_from_tree): Likewise.
16422 * tree-vect-stmts.c (vectorizable_load): Likewise.
16423 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
16424
16425 2019-08-05 Martin Liska <mliska@suse.cz>
16426
16427 PR c++/91334
16428 * tree-ssa-dce.c (propagate_necessity): Handle new operators
16429 with not arguments.
16430 (eliminate_unnecessary_stmts): Likewise.
16431
16432 2019-08-05 Richard Biener <rguenther@suse.de>
16433
16434 PR middle-end/91169
16435 * fold-const.c (get_array_ctor_element_at_index): Create
16436 offset_ints according to the sign of the index type and treat
16437 that as signed if it is obviously so.
16438
16439 2019-08-05 Jakub Jelinek <jakub@redhat.com>
16440
16441 PR target/91341
16442 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
16443 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
16444 _mm256_storeu2_m128i): New function.
16445
16446 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
16447
16448 * config/riscv/riscv.c (riscv_promote_function_mode): New.
16449 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
16450
16451 2019-08-05 Alan Modra <amodra@gmail.com>
16452
16453 PR target/91349
16454 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
16455 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
16456
16457 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
16458
16459 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
16460 bug that was fixed in Tcl 8.6.1.
16461
16462 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
16463
16464 * config/rs6000/future.md: New file.
16465 * config/rs6000/rs6000.md: Include future.md.
16466 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
16467
16468 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
16469
16470 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
16471 check to use targetm.slow_unaligned_access instead.
16472
16473 * function.c (assign_param_data_one): Remove unused data members.
16474
16475 2019-08-02 Steve Ellcey <sellcey@marvell.com>
16476
16477 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
16478 build_distinct_type_copy.
16479 (simd_clone_adjust_argument_types): Ditto.
16480 (simd_clone_adjust): Call build_distinct_type_copy here.
16481 (expand_simd_clones): Ditto.
16482
16483 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
16484
16485 PR target/91201
16486 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
16487
16488 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
16489
16490 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
16491 from 'const void *'.
16492 (sort_locs_in_loop_postorder_cmp): Likewise.
16493
16494 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
16495
16496 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
16497 (hot-bb-count-ws-permille): Likewise.
16498 (hot-bb-frequency-fraction): Likewise.
16499 (unlikely-bb-count-fraction): Likewise.
16500 * params.def (hot-bb-count-fraction): Rework description.
16501 (hot-bb-count-ws-permille): Likewise.
16502 (hot-bb-frequency-fraction): Likewise.
16503 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
16504 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
16505
16506 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
16507
16508 PR target/91323
16509 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
16510 Return false.
16511
16512 2019-08-02 Richard Biener <rguenther@suse.de>
16513
16514 * vec.h (vec::sort): Add gcc_qsort_r support.
16515 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
16516 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
16517 to gcc_qsort_r style callback.
16518 (sort_locs_in_loop_postorder_cmp): Likewise.
16519 (analyze_memory_references): Use gcc_sort_r interfaces.
16520 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
16521
16522 2019-08-02 Martin Liska <mliska@suse.cz>
16523
16524 PR lto/91313
16525 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
16526 to detect working job server.
16527 (driver::detect_jobserver): Test whether jobserver
16528 is active from GCC driver. That will prevent situation where
16529 GCC is invoked from a LD plugin and the linker already uses
16530 file descriptors suggested by make. That leads to a wrong
16531 detection.
16532 * gcc.h (driver): Add detect_jobserver.
16533 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
16534 not scanning for --jobserver-auth prefix.
16535
16536 2019-08-02 Jakub Jelinek <jakub@redhat.com>
16537
16538 PR tree-optimization/91201
16539 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
16540 V16QImode extraction without sse4.1 try to use V4SImode lowpart
16541 extraction.
16542
16543 2019-08-01 Martin Sebor <msebor@redhat.com>
16544
16545 PR c++/90947
16546 * tree.c (type_initializer_zero_p): Define.
16547 * tree.h (type_initializer_zero_p): New function.
16548
16549 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
16550
16551 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
16552
16553 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
16554
16555 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
16556 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
16557 * predict.c (maybe_hot_count_p): Likewise.
16558 (maybe_hot_bb_p): Tweak comment.
16559 (maybe_hot_edge_p): Likewise.
16560 (probably_never_executed): Likewise. Minor tweak.
16561 (probably_never_executed_bb_p): Likewise.
16562 (unlikely_executed_edge_p): Likewise.
16563 (probably_never_executed_edge_p): Likewise.
16564 (optimize_function_for_size_p): Likewise.
16565 (optimize_function_for_speed_p): Likewise.
16566 (function_optimization_type): Likewise.
16567 (optimize_bb_for_size_p): Likewise.
16568 (optimize_bb_for_speed_p): Likewise.
16569 (bb_optimization_type): Likewise.
16570 (optimize_edge_for_size_p): Likewise.
16571 (optimize_edge_for_speed_p): Likewise.
16572 (optimize_insn_for_size_p): Likewise.
16573 (optimize_insn_for_speed_p): Likewise.
16574 (optimize_loop_for_size_p): Likewise.
16575 (optimize_loop_for_speed_p): Likewise.
16576 (optimize_loop_nest_for_speed_p): Likewise.
16577 (optimize_loop_nest_for_size_p): Likewise.
16578 (predictable_edge_p): Likewise.
16579 (handle_missing_profiles): Minor tweak.
16580
16581 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
16582
16583 * config/rs6000/predicates.md (pcrel_external_address): Update
16584 comment.
16585
16586 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
16587
16588 PR target/85693
16589 * config/i386/mmx.md (usadv8qi): New expander.
16590
16591 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
16592
16593 PR c++/90590
16594 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
16595 with reserved names that are in a system header.
16596
16597 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
16598
16599 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
16600 (*vec_extractv2si_0_zext_sse4): New insn pattern.
16601 (*vec_extractv2si_0_zext): Ditto.
16602 (*vec_extractv2si_1): Add (rm,x) alternative.
16603 (*vec_extractv2si_1_zext): New insn pattern.
16604 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
16605 insn constraint.
16606
16607 2019-08-01 Richard Biener <rguenther@suse.de>
16608
16609 * domwalk.c (bb_postorder): Remove static variable.
16610 (cmp_bb_postorder): Adjust.
16611 (sort_bbs_postorder): Adjust and use gcc_sort_r.
16612 (dom_walker::walk): Adjust.
16613
16614 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
16615
16616 * sort.cc (sort_r_ctx): New struct.
16617 (reorder23): Make templated on context type.
16618 (reorder45): Ditto.
16619 (cmp1): Ditto. Adjust signature.
16620 (netsort): Ditto.
16621 (mergesort): Ditto.
16622 [CHECKING_P] (cmp2to3): New static function. Use it...
16623 (gcc_qsort) [CHECKING_P]: ...here.
16624 (gcc_sort_r): New function.
16625 * system.h (sort_r_cmp_fn): New function typedef.
16626 (qsort_chk): Adjust signature.
16627 (gcc_sort_r): Declare.
16628 * vec.c (qsort_chk_error): Adjust.
16629 (qsort_chk): Adjust.
16630
16631 2019-08-01 Richard Biener <rguenther@suse.de>
16632
16633 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
16634 (compute_antic): Localize it here.
16635
16636 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
16637
16638 * common/config/riscv/riscv-common.c: Check -march string ends
16639 with null.
16640
16641 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
16642
16643 * ipa-devirt.c (type_warning_cmp): Make static.
16644 (decl_warning_cmp): Ditto.
16645
16646 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
16647
16648 PR target/91050
16649 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
16650 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
16651 use of deleted rs6000_dejagnu_cpu_index variable.
16652 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
16653 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
16654 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
16655 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
16656 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
16657 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
16658
16659 2019-07-31 Richard Biener <rguenther@suse.de>
16660
16661 PR tree-optimization/91280
16662 * tree-ssa-structalias.c (get_constraint_for_component_ref):
16663 Decompose MEM_REF manually for offset handling.
16664
16665 2019-07-31 Richard Biener <rguenther@suse.de>
16666
16667 PR tree-optimization/91293
16668 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
16669 of reduction stmts.
16670
16671 2019-07-31 Matt Thomas <matt@3am-software.com>
16672 Nick Hudson <nick@nthcliff.demon.co.uk>
16673 Matthew Green <mrg@eterna.com.au>
16674 Maya Rashish <coypu@sdf.org>
16675
16676 * config.gcc (hppa*-*-netbsd*): New target.
16677 * config/pa/pa-netbsd.h: New file.
16678 * config/pa/pa32-netbsd.h: New file.
16679
16680 2019-07-31 Jakub Jelinek <jakub@redhat.com>
16681
16682 PR tree-optimization/91201
16683 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
16684
16685 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
16686
16687 * config/gcn/gcn-valu.md
16688 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
16689 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
16690 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
16691 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
16692 struct ilist. Add nops for delayeduse insns.
16693 * config/gcn/gcn.md (delayeduse): New attribute.
16694 (*movbi): Remove s_waitcnt from stores.
16695 (*mov<mode>_insn): Likewise.
16696 (*movti_insn): Likewise. Add delayeduse attribute.
16697 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
16698 (atomic_store<mode>): Remove or adjust s_waitcnt.
16699
16700 2019-07-31 Richard Biener <rguenther@suse.de>
16701
16702 * vr-values.h (vr_values::swap_vr_value): New.
16703 (vr_values::free_value_range): likewise.
16704 * vr-values.c (vr_values::swap_vr_value): Implement.
16705 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
16706 Do not return a range or take a var.
16707 (evrp_range_analyzer::stack): Change back to recording a non-const
16708 value_range *.
16709 * gimple-ssa-evrp-analyze.c
16710 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
16711 value-range.
16712 (evrp_range_analyzer::pop_to_marker): Adjust.
16713 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
16714 (evrp_range_analyzer::pop_value_range): Likewise. Free the
16715 no longer needed value-range.
16716
16717 2019-07-31 Martin Liska <mliska@suse.cz>
16718
16719 * tree-ssa-dce.c (propagate_necessity): Delete operator can
16720 have size and (or) alignment as 2nd and later arguments.
16721 Mark all of them as necessary.
16722
16723 2019-07-31 Richard Biener <rguenther@suse.de>
16724
16725 PR tree-optimization/91178
16726 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
16727 Use tail-recursion.
16728
16729 2019-07-31 Jakub Jelinek <jakub@redhat.com>
16730
16731 PR tree-optimization/91201
16732 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
16733 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
16734 TARGET_AVX512F.
16735 (reduc_plus_scal_<mode>): Improve formatting by introducing
16736 a temporary.
16737
16738 2019-07-31 Sudakshina Das <sudi.das@arm.com>
16739
16740 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
16741 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
16742 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
16743 (aarch64_init_tme_builtins): New.
16744 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
16745 (aarch64_expand_builtin_tme): New.
16746 (aarch64_expand_builtin): Handle TME builtins.
16747 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
16748 __ARM_FEATURE_TME when enabled.
16749 * config/aarch64/aarch64-option-extensions.def: Add "tme".
16750 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
16751 (TARGET_TME): New.
16752 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
16753 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
16754 UNSPECV_TCANCEL.
16755 (tstart, ttest, tcommit, tcancel): New instructions.
16756 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
16757 (__tcancel, __ttest): New.
16758 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
16759 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
16760 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
16761 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
16762 * config/arm/types.md: Add new tme type attr.
16763 * doc/invoke.texi: Document "tme".
16764
16765 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
16766
16767 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
16768 warn_unused_result attribute.
16769 (cmse_check_address_range): Add warn_unused_result attribute.
16770
16771 2019-07-31 Richard Biener <rguenther@suse.de>
16772
16773 PR tree-optimization/91257
16774 * tree-vrp.c (union_ranges): Unify equality and less tests
16775 by using compare_values. Re-order cheap tests first.
16776
16777 2019-07-31 Jakub Jelinek <jakub@redhat.com>
16778
16779 PR middle-end/91301
16780 * gimplify.c (gimplify_omp_for): If for class iterator on
16781 distribute parallel for there is no data sharing clause
16782 on inner_for_stmt, look for private clause on combined
16783 parallel too and if found, move it to inner_for_stmt.
16784
16785 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
16786
16787 * lra-int.h (lra_operand_data): Remove early_clobber field.
16788 (lra_insn_reg): Likewise.
16789 * lra.c (debug_operand_data): Update accordingly.
16790 (setup_operand_alternative): Likewise.
16791 (new_insn_reg): Likewise. Remove early_clobber parameter.
16792 (collect_non_operand_hard_regs): Update call accordingly.
16793 Don't assign to lra_insn_reg::early_clobber.
16794 (add_regs_to_insn_regno_info): Remove early_clobber parameter
16795 and update calls to new_insn_reg.
16796 (lra_update_insn_regno_info): Update calls accordingly.
16797 * lra-constraints.c (update_and_check_small_class_inputs): Take the
16798 alternative number as a parameter and test whether the operand
16799 is earlyclobbered in that particular alternative.
16800 (process_alt_operands): Update call accordingly. Use per-alternative
16801 checks for earyclobber here too.
16802 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
16803 against zero for IRA_UNKNOWN_ALT.
16804
16805 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
16806
16807 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
16808
16809 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
16810
16811 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
16812 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
16813
16814 2019-07-30 Martin Liska <mliska@suse.cz>
16815
16816 PR ipa/89330
16817 * cgraph.c (cgraph_edge::make_direct): Use
16818 edge->indirect_unknown_callee as edge->resolve_speculation can
16819 deallocate edge which is this pointer.
16820
16821 2019-07-30 Richard Biener <rguenther@suse.de>
16822
16823 PR tree-optimization/91257
16824 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
16825
16826 2019-07-30 Martin Liska <mliska@suse.cz>
16827
16828 * doc/invoke.texi: Document new behavior.
16829 * lto-wrapper.c (cpuset_popcount): New function
16830 is a copy of libgomp/config/linux/proc.c.
16831 (init_num_threads): Likewise.
16832 (run_gcc): Automatically detect core count for -flto.
16833 (jobserver_active_p): New function.
16834
16835 2019-07-30 Richard Biener <rguenther@suse.de>
16836
16837 PR tree-optimization/91257
16838 * bitmap.h (bitmap_ior_into_and_free): Declare.
16839 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
16840 whether to add the unliked element to the freelist.
16841 (bitmap_list_insert_element_after): Add defaulted param for
16842 an already allocated element.
16843 (bitmap_ior_into_and_free): New function.
16844 * tree-ssa-structalias.c (condense_visit): Reduce the
16845 ponts-to and edge bitmaps of the SCC members in a
16846 logarithmic fashion rather than all to one.
16847
16848 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
16849
16850 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
16851 parameter. When nonnull, make sure that the addition or subtraction
16852 has the same condition.
16853 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
16854 for CFN_COND_MUL too.
16855
16856 2019-07-30 Richard Biener <rguenther@suse.de>
16857
16858 PR tree-optimization/91291
16859 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
16860 constant values.
16861
16862 2019-07-30 Jakub Jelinek <jakub@redhat.com>
16863
16864 PR middle-end/91216
16865 * omp-low.c (global_nonaddressable_vars): New variable.
16866 (use_pointer_for_field): For global decls, if they are non-addressable,
16867 remember it in the global_nonaddressable_vars bitmap, if they are
16868 addressable and in the global_nonaddressable_vars bitmap, ignore their
16869 TREE_ADDRESSABLE bit.
16870 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
16871 vars in global_nonaddressable_vars bitmap.
16872 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
16873
16874 PR target/91150
16875 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
16876 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
16877 comparison to unsigned HOST_WIDE_INT before shifting it left.
16878
16879 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
16880
16881 * config/i386/i386.md (movstrict<mode>): Use register_operand
16882 predicate for operand 0. Add expander condition. Assert that
16883 operand 0 is a SUBREG RTX.
16884 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
16885 Update operand constraints and insn condition.
16886 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
16887 (zero_extendqihi2_and): Do not call gen_movstrictqi.
16888 (*setcc_qi_slp): Use register_operand predicate for operand 0.
16889 Update operand 0 constraints.
16890 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
16891
16892 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16893
16894 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
16895 when -m{code,data}-region are used without -mlarge.
16896 * config/msp430/msp430.c (msp430_option_override): Error when a
16897 non-default code or data region is used without -mlarge.
16898 (msp430_section_attr): Emit a warning and do not add upper/lower/either
16899 attributes when they are used without -mlarge.
16900
16901 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16902
16903 PR target/70320
16904 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
16905
16906 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16907
16908 PR middle-end/91242
16909 * wide-int.h (generic_wide_int::sext_elt): New function.
16910 * inchash.h (hash::add_wide_int): Use it instead of elt.
16911
16912 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16913
16914 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
16915 CODE_FOR_arm_##.
16916 * config/arm/arm.md (<crc_variant>): Rename to...
16917 (arm_<crc_variant>): ... This.
16918 (<cdp>): Rename to...
16919 (arm_<cdp>): ... This.
16920 (<ldc>): Rename to...
16921 (arm_<ldc>): ... This.
16922 (<stc>): Rename to...
16923 (arm_<stc>): ... This.
16924 (<mcr>): Rename to...
16925 (arm_<mcr>): ... This.
16926 (<mrc>): Rename to...
16927 (arm_<mrc>): ... This.
16928 (<mcrr>): Rename to...
16929 (arm_<mcrr>): ... This.
16930 (<mrrc>): Rename to...
16931 (arm_<mrrc>): ... This.
16932
16933 2019-07-29 Richard Biener <rguenther@suse.de>
16934
16935 PR tree-optimization/91257
16936 * tree-ssa-sccvn.h (struct vn_avail): New.
16937 (struct vn_ssa_aux): Add avail member.
16938 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
16939 member, add m_avail_freelist one.
16940 (rpo_elim::~rpo_elim): Remove.
16941 (rpo_elim::eliminate_avail): Adjust to new avail tracking
16942 data structure.
16943 (rpo_elim::eliminate_push_avail): Likewise.
16944 (do_unwind): Likewise.
16945 (do_rpo_vn): Likewise.
16946
16947 2019-07-29 Richard Biener <rguenther@suse.de>
16948
16949 PR tree-optimization/91257
16950 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
16951 most cases, instead call compare_values which handles the
16952 symbolic ranges we handle specially.
16953 (compare_values_warnv): Do not call operand_less_p but open-code
16954 the effective fold calls. Avoid converting so much.
16955
16956 2019-07-29 Martin Liska <mliska@suse.cz>
16957
16958 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
16959 remove LHS of operator new call. It's handled latter.
16960
16961 2019-07-29 Richard Biener <rguenther@suse.de>
16962
16963 PR tree-optimization/91267
16964 * vr-values.c (vr_values::update_value_range): Add early return
16965 for effectively VARYING lattice entry.
16966
16967 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16968
16969 PR debug/86638
16970 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
16971 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
16972 necessary if keep_all_vdefs_p is true.
16973 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
16974 that keep_all_vdefs_p is false.
16975 (mark_all_reaching_defs_necessary): Likewise.
16976 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
16977
16978 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16979
16980 * common.opt (Og): Change the initial value of flag_dse to 0.
16981 * opts.c (default_options_table): Move OPT_ftree_dse from
16982 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
16983 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
16984 entry before the OPT_ftree_sra entry.
16985 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
16986 of flags disabled by Og.
16987
16988 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16989
16990 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
16991 variables for -Og.
16992
16993 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16994
16995 * doc/sourcebuild.texi (check-function-bodies): Document.
16996
16997 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16998
16999 * simplify-rtx.c (simplify_const_unary_operation): Fold a
17000 VEC_DUPLICATE of a fixed-length vector even if the result
17001 is variable-length. Likewise fold a duplicate of a
17002 variable-length vector if the variable-length vector is
17003 itself a duplicate of a fixed-length sequence.
17004 (test_vector_ops_duplicate): Test more cases.
17005
17006 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17007
17008 * vector-builder.h (vector_builder): Add a shape template parameter.
17009 (vector_builder::new_unary_operation): New function, generalizing
17010 the old tree_vector_builder function.
17011 (vector_builder::new_binary_operation): Likewise.
17012 (vector_builder::binary_encoded_nelts): Likewise.
17013 * int-vector-builder.h (int_vector_builder): Update template
17014 parameters to vector_builder.
17015 (int_vector_builder::shape_nelts): New function.
17016 * rtx-vector-builder.h (rtx_vector_builder): Update template
17017 parameters to vector_builder.
17018 (rtx_vector_builder::shape_nelts): New function.
17019 (rtx_vector_builder::nelts_of): Likewise.
17020 (rtx_vector_builder::npatterns_of): Likewise.
17021 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
17022 * tree-vector-builder.h (tree_vector_builder): Update template
17023 parameters to vector_builder.
17024 (tree_vector_builder::shape_nelts): New function.
17025 (tree_vector_builder::nelts_of): Likewise.
17026 (tree_vector_builder::npatterns_of): Likewise.
17027 (tree_vector_builder::nelts_per_pattern_of): Likewise.
17028 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
17029 (tree_vector_builder::new_binary_operation): Delete.
17030 (tree_vector_builder::binary_encoded_nelts): Likewise.
17031 * simplify-rtx.c: Include rtx-vector-builder.h.
17032 (distributes_over_addition_p): New function.
17033 (simplify_const_unary_operation)
17034 (simplify_const_binary_operation): Generalize handling of vector
17035 constants to include variable-length vectors.
17036 (test_vector_ops_series): Add more tests.
17037
17038 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
17039
17040 PR lto/91222
17041 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
17042 than INDENTIFIER_POINTER.
17043
17044 2019-07-28 Martin Liska <mliska@suse.cz>
17045
17046 PR ipa/89330
17047 * cgraph.c (symbol_table::create_edge): Always allocate
17048 a cgraph_edge.
17049 (symbol_table::free_edge): Store summary_id to
17050 edge_released_summary_ids if != -1;
17051 * cgraph.h (NEXT_FREE_NODE): Remove.
17052 (SET_NEXT_FREE_NODE): Likewise.
17053 (NEXT_FREE_EDGE): Likewise.
17054 (symbol_table::release_symbol): Store summary_id to
17055 cgraph_released_summary_ids if != -1;
17056 (symbol_table::allocate_cgraph_symbol): Always allocate
17057 a cgraph_node.
17058
17059 2019-07-28 Alan Modra <amodra@gmail.com>
17060
17061 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
17062 gen_sibcall.
17063
17064 2019-07-28 Alan Modra <amodra@gmail.com>
17065
17066 PR target/91135
17067 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
17068 define.
17069 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
17070 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
17071 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
17072
17073 2019-07-28 Alan Modra <amodra@gmail.com>
17074
17075 PR target/91050
17076 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
17077 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
17078 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
17079 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
17080 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
17081 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
17082 in asm_default spec.
17083 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
17084 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
17085
17086 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
17087
17088 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
17089
17090 2019-07-26 Tamar Christina <tamar.christina@arm.com>
17091
17092 PR target/89517
17093 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
17094 * config/aarch64/aarch64-option-extensions.def: Add new comments
17095 and restore easier to read options.
17096
17097 2019-07-26 Tamar Christina <tamar.christina@arm.com>
17098
17099 * convert.c (convert_to_real_1): Move part of conversion code...
17100 * match.pd: ...To here.
17101
17102 2019-07-26 Martin Jambor <mjambor@suse.cz>
17103
17104 PR ipa/89330
17105 * ipa-inline-transform.c (check_speculations_1): New function.
17106 (push_all_edges_in_set_to_vec): Likewise.
17107 (check_speculations): Use check_speculations_1, new parameter
17108 new_edges.
17109 (inline_call): Pass new_edges to check_speculations.
17110 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
17111 NULL.
17112 (speculation_useful_p): Early return true if edge is inlined, remove
17113 later checks for inline_failed.
17114
17115 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
17116
17117 PR rtl-optimization/91223
17118 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
17119 matching with INOUT operand.
17120
17121 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
17122
17123 * stmt.c (expand_case): Try to narrow the index type if it's larger
17124 than a word. Tidy up.
17125
17126 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
17127
17128 * cif-code.def (NEVER_CALL): New code.
17129 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
17130 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
17131
17132 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
17133
17134 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
17135 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17136
17137 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17138
17139 * ipa-devirt.c (add_type_duplicate): Fix return value.
17140
17141 2019-07-25 Richard Biener <rguenther@suse.de>
17142
17143 * tree-vrp.c (extract_range_from_multiplicative_op): Add
17144 type parameter and use it instead of guessing expression
17145 type from the first operand.
17146 (extract_range_from_binary_expr): Pass expr_type down.
17147
17148 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17149
17150 * config/arm/arm.md (SATrev): Change to code attribute.
17151 (*satsi_<SAT:code>): Adjust for the above.
17152 (*satsi_<SAT:code>_shift): Likewise.
17153
17154 2019-07-25 Richard Biener <rguenther@suse.de>
17155
17156 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
17157 Make value_range * temporary const.
17158 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
17159 Likewise.
17160 (evrp_range_analyzer::record_ranges_from_): Likewise.
17161 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
17162 deal with having recorded a const one.
17163 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
17164 Return a const value_range *.
17165 (evrp_range_analyzer::pop_value_range): Likewise.
17166 (evrp_range_analyzer::stack): Record const value_range *s.
17167 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
17168 Adjust.
17169 * gimple-ssa-sprintf.c (get_int_range): Likewise.
17170 (format_integer): Likewise.
17171 (sprintf_dom_walker::handle_gimple_call): Likewise.
17172 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
17173 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
17174 (vrp_prop::get_value_range): Adjust.
17175 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
17176 modifying the lattice in-place.
17177 (vrp_prop::visit_stmt): Likewise.
17178 * vr-values.c (vr_values::get_lattice_entry): New private method.
17179 (vr_values::get_value_range): Wrap it and return a const
17180 value_range *.
17181 (vr_values::set_def_to_varying): New.
17182 (vr_values::set_defs_to_varying): Use it.
17183 (vr_values::update_value_range): Likewise.
17184 (vr_values::vrp_stmt_computes_nonzero): Adjust.
17185 (values::op_with_constant_singleton_va): Likewise.
17186 (vr_values::extract_range_for_var_from_co): Likewise.
17187 (vr_values::extract_range_from_ssa_name): Likewise.
17188 (vr_values::extract_range_from_cond_expr): Likewise.
17189 (vr_values::extract_range_basic): Likewise.
17190 (compare_ranges): Take const value_range *, adjust.
17191 (compare_range_with_value): Likewise.
17192 (vrp_valueize): Adjust.
17193 (vrp_valueize_1): Likewise.
17194 (vr_values::get_vr_for_comparison): Return a const value_range *.
17195 (vr_values::compare_name_with_value): Adjust.
17196 (vr_values::compare_names): Likewise.
17197 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
17198 Likewise.
17199 (vr_values::vrp_evaluate_conditional): Likewise.
17200 (find_case_label_ranges): Take a const value_range *.
17201 (vr_values::vrp_visit_switch_stmt): Adjust.
17202 (vr_values::extract_range_from_phi_node): Likewise.
17203 (vr_values::simplify_div_or_mod_using_ran): Likewise.
17204 (vr_values::simplify_abs_using_ranges): Likewise.
17205 (test_for_singularity): Take a const value_range *.
17206 (range_fits_type_p): Likewise.
17207 (vr_values::simplify_cond_using_ranges_1): Adjust.
17208 (vr_values::simplify_cond_using_ranges_2): Likewise.
17209 (vr_values::simplify_switch_using_ranges): Likewise.
17210 (vr_values::simplify_float_conversion_usi): Likewise.
17211 (vr_values::two_valued_val_range_p): Likewise.
17212 * vr-values.h (vr_values::get_value_range): Return a const
17213 value_range *.
17214 (vr_values::set_def_to_varying): New.
17215 (vr_values::get_lattice_entry): New private method.
17216 (vr_values::get_vr_for_comparison): Return a const value_range *.
17217
17218 2019-07-25 Martin Liska <mliska@suse.cz>
17219 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
17220
17221 PR c++/23383
17222 * common.opt: Add -fallocation-dce
17223 * gimple.c (gimple_call_operator_delete_p): New.
17224 * gimple.h (gimple_call_operator_delete_p): Likewise.
17225 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
17226 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
17227 DECL_IS_OPERATOR_DELETE_P.
17228 (mark_all_reaching_defs_necessary_1): Likewise.
17229 (propagate_necessity): Likewise.
17230 (eliminate_unnecessary_stmts): Handle
17231 gimple_call_operator_delete_p.
17232 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
17233 Add packing of OPERATOR_DELETE.
17234 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
17235 Similarly here.
17236 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
17237 (DECL_SET_IS_OPERATOR_DELETE): New.
17238 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
17239
17240 2019-07-25 Martin Liska <mliska@suse.cz>
17241
17242 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
17243 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
17244 * coverage.c (coverage_begin_function): Likewise.
17245 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
17246 * gimple.c (gimple_call_nonnull_result_p): Likewise.
17247 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
17248 (sem_item::hash_referenced_symbol_properties): Likewise.
17249 * lto-streamer-out.c (hash_tree): Likewise.
17250 * predict.c (expr_expected_value_1): Likewise.
17251 * tree-inline.c (expand_call_inline): Likewise.
17252 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17253 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17254 * tree-core.h (enum function_decl_type): New enum.
17255 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
17256 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
17257 (set_function_decl_type): Likewise.
17258 (DECL_IS_OPERATOR_NEW_P): New.
17259 (DECL_SET_IS_OPERATOR_NEW): Likewise.
17260 (DECL_LAMBDA_FUNCTION): Likewise.
17261 (DECL_LAMBDA_FUNCTION_P): Likewise.
17262 (DECL_IS_OPERATOR_NEW): Remove.
17263 (DECL_SET_LAMBDA_FUNCTION): Likewise.
17264
17265 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
17266
17267 * ipa-profile.c (get_most_common_single_value): Use
17268 get_nth_most_common_value.
17269 * profile.c (sort_hist_value): New function.
17270 (compute_value_histograms): Call sort_hist_value to sort the
17271 values after loading from disk.
17272 * value-prof.c (get_most_common_single_value): Rename to ...
17273 get_nth_most_common_value. Add input params n, return
17274 the n_th value and count.
17275 (gimple_divmod_fixed_value_transform): Use
17276 get_nth_most_common_value.
17277 (gimple_ic_transform): Likewise.
17278 (gimple_stringops_transform): Likewise.
17279 * value-prof.h (get_most_common_single_value): Add input params
17280 n, default to 0.
17281
17282 2019-07-25 Richard Biener <rguenther@suse.de>
17283
17284 PR tree-optimization/91236
17285 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
17286 size of CONSTRUCTOR write. Fix buffer size we pass to
17287 native_encode_expr.
17288
17289 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17290
17291 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
17292 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
17293 r273773.
17294
17295 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17296
17297 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
17298 explicitly disabled with --disable-initfini-array.
17299
17300 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17301
17302 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
17303 if-exists.
17304
17305 2019-07-24 Martin Sebor <msebor@redhat.com>
17306
17307 PR tree-optimization/91183
17308 PR tree-optimization/86688
17309 * builtins.c (compute_objsize): Handle MEM_REF.
17310 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
17311 (get_min_string_length): Remove.
17312 (count_nonzero_bytes): New function.
17313 (handle_char_store): Rename...
17314 (handle_store): to this. Handle multibyte stores via integer types.
17315 (strlen_check_and_optimize_stmt): Adjust conditional and the called
17316 function name.
17317
17318 2019-07-24 Martin Sebor <msebor@redhat.com>
17319
17320 PR driver/80545
17321 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
17322 (diagnostic_report_diagnostic): Same.
17323 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
17324 (diagnostic_context::lang_mask): New data member.
17325 * ipa-pure-const.c (suggest_attribute): Use
17326 lang_hooks.option_lang_mask ().
17327 * opts-common.c (option_enabled): Handle new argument.
17328 (get_option_state): Pass an additional argument.
17329 * opts.c (print_filtered_help): Print supported languages for
17330 unsupported options. Adjust printing of current state.
17331 * opts.h (option_enabled): Add argument.
17332 * toplev.c (print_switch_values): Use lang_mask.
17333 (general_init): Set global_dc->lang_mask.
17334
17335 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
17336
17337 PR bootstrap/87030
17338 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
17339
17340 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
17341
17342 * cgraphunit.c (symbol_table::compile): Start and stop
17343 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
17344 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
17345
17346 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
17347
17348 * gimplify.c (flag_instrument_functions_exclude_p): Include
17349 namespace/class information in the printable name.
17350 * opts.c (add_comma_separated_to_vector): Add NUL terminator
17351 to tokens entered into the vector.
17352
17353 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
17354
17355 * tree-nested.c (build_simple_mem_ref_notrap): New function.
17356 (get_static_chain): Call it instead of build_simple_mem_ref.
17357 (get_frame_field): Likewise.
17358 (get_nonlocal_debug_decl): Likewise.
17359 (convert_nonlocal_reference_op): Likewise.
17360
17361 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
17362
17363 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
17364 declaration.
17365 (arc_compute_frame_size): Millicode is disabled when compiling
17366 ISR.
17367 (arc_return_address_register): Likewise.
17368 (arc_compute_function_type): Likewise.
17369 (arc_compute_frame_size): Likewise.
17370 (secondary_reload_info): Likewise.
17371 (arc_get_unalign): Likewise.
17372 (arc_can_use_return_insn): Declare.
17373 * config/arc/arc.c (AUX_LP_START): Define
17374 (AUX_LP_END): Likewise.
17375 (arc_frame_info): Update gmask member to 64-bit datum.
17376 (GMASK_LEN): Update.
17377 (arc_compute_function_type): Make it static, move it forward.
17378 (arc_must_save_register): Update, consider the extra regs.
17379 (arc_compute_millicode_save_restore_regs): Update to use the 64
17380 bit gmask.
17381 (arc_compute_frame_size): Likewise.
17382 (arc_enter_leave_p): Likewise.
17383 (arc_save_callee_saves): Likewise.
17384 (arc_restore_callee_saves): Likewise.
17385 (arc_save_callee_enter): Likewise.
17386 (arc_restore_callee_leave): Likewise.
17387 (arc_save_callee_milli): Likewise.
17388 (arc_restore_callee_milli): Likewise.
17389 (arc_expand_prologue): Add new interrupt handling.
17390 (arc_return_address_register): Make it static, move it forward.
17391 (arc_expand_epilogue): Add new interrupt handling.
17392 (arc_get_unalign): Delete.
17393 (arc_epilogue_uses): Make sure we do not remove the extra
17394 saved/restored registers when interrupt.
17395 (arc_can_use_return_insn): New function.
17396 (push_reg): Likewise.
17397 (pop_reg): Likewise.
17398 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
17399 procedures.
17400 (arc_restore_callee_saves): Likewise, but restoring.
17401 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
17402 (R33_REG): Likewise.
17403 (R34_REG): Likewise.
17404 (R35_REG): Likewise.
17405 (R36_REG): Likewise.
17406 (R37_REG): Likewise.
17407 (R38_REG): Likewise.
17408 (R39_REG): Likewise.
17409 (R45_REG): Likewise.
17410 (R46_REG): Likewise.
17411 (R47_REG): Likewise.
17412 (R48_REG): Likewise.
17413 (R49_REG): Likewise.
17414 (R50_REG): Likewise.
17415 (R51_REG): Likewise.
17416 (R52_REG): Likewise.
17417 (R53_REG): Likewise.
17418 (R54_REG): Likewise.
17419 (R55_REG): Likewise.
17420 (R56_REG): Likewise.
17421 (R58_REG): Likewise.
17422 (type): Add rtie attribute.
17423 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
17424 (movsi_insn): Accept moves to lp_count.
17425 (rtie): Update pattern.
17426 (simple_return): Simplify it, don't use this pattern as a return
17427 from an interrupt.
17428 (arc600_rtie): New pattern.
17429 (p_return_i): Clean up.
17430 (return): Likewise.
17431 * config/arc/builtins.def (rtie): Only available for non ARC6xx
17432 family CPUs.
17433 * config/arc/predicates.md (move_src_operand): Consider lp_count
17434 as a register.
17435
17436 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
17437
17438 * config/s390/predicates.md (addv_const_operand): New predicate.
17439 * config/s390/s390-modes.def (CCO): New condition code mode.
17440 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
17441 (s390_branch_condition_mask): Likewise.
17442 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
17443 ("mulv<mode>4"): New expanders.
17444 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
17445 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
17446 pattern definitions.
17447
17448 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17449
17450 PR middle-end/91166
17451 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
17452 (define_predicates): Add entry for uniform_vector_p.
17453 (vec_same_elem_p): New match pattern.
17454
17455 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
17456
17457 PR bootstrap/87030
17458 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
17459 * config/i386/darwin32-biarch.h .. to here.
17460 * config/i386/darwin64-biarch.h: Adjust comments.
17461 * config/rs6000/darwin32-biarch.h: Likewise.
17462 * config/rs6000/darwin64-biarch.h: Likewise.
17463 * config.gcc: Missed commit from r273746
17464 (*-*-darwin*): Don't include CPU t-darwin here.
17465 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
17466 an error message if i686-darwin configuration is attempted for
17467 Darwin >= 18.
17468
17469 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
17470
17471 PR bootstrap/87030
17472 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
17473 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
17474 an error message if i686-darwin configuration is attempted for
17475 Darwin >= 18.
17476 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
17477 (powerpc-*-darwin*): Use biarch files where needed.
17478 (powerpc64-*-darwin*): Likewise.
17479 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
17480 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
17481 arch case.
17482 * config/i386/darwin32-biarch.h: New.
17483 * config/i386/darwin64.h: Rename.
17484 * config/i386/darwin64-biarch.h: To this.
17485 * config/i386/t-darwin: Rename.
17486 * config/i386/t-darwin32-biarch: To this.
17487 * config/i386/t-darwin64: Rename.
17488 * config/i386/t-darwin64-biarch: To this.
17489 * config/rs6000/darwin32-biarch.h: New.
17490 * config/rs6000/darwin64.h: Rename.
17491 * config/rs6000/darwin64-biarch.h: To this.
17492 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
17493 arch case.
17494 * config/rs6000/t-darwin8: Rename.
17495 * config/rs6000/t-darwin32-biarch: To this.
17496 * config/rs6000/t-darwin64 Rename.
17497 * config/rs6000/t-darwin64-biarch: To this.
17498
17499 2019-07-23 Martin Sebor <msebor@redhat.com>
17500
17501 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
17502
17503 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
17504
17505 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
17506 (rh): New alias for it.
17507
17508 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
17509
17510 * gdbhooks.py: Pass replace=True to
17511 gdb.printing.register_pretty_printer.
17512
17513 2019-07-23 Richard Biener <rguenther@suse.de>
17514
17515 PR debug/91231
17516 * lto-streamer-in.c (input_function): Drop inline-entry markers
17517 that ended up with an unknown location block.
17518
17519 2019-07-23 Richard Biener <rguenther@suse.de>
17520
17521 PR tree-optimization/83518
17522 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
17523 init from a constant even when partial defs are already recorded.
17524
17525 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17526
17527 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
17528 * config/i386/znver1.md: Enable patterns for znver2 and add store
17529 variants which use extra AGU unit.
17530
17531 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17532
17533 * config/i386/i386-options.c (ix86_option_override_internal): Default
17534 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
17535 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
17536 for ZNVER2.
17537
17538 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17539
17540 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
17541 (znver2_costs): Update 256 bit SSE costs and multiplication.
17542
17543 2019-07-23 Jan Beulich <jbeulich@suse.com>
17544
17545 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
17546 Require only AVX512F.
17547 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
17548 alternative expanding to vpternlog.
17549
17550 2019-07-23 Martin Liska <mliska@suse.cz>
17551
17552 * dwarf2out.c (gen_producer_string): Canonize -flto=N
17553 to -flto in dwarf producer string.
17554
17555 2019-07-23 Richard Biener <rguenther@suse.de>
17556
17557 * tree-cfg.c (label_for_bb): Remove global var.
17558 (main_block_label): Take label_for_bb as argument.
17559 (cleanup_dead_labels_eh): Likewise, adjust.
17560 (cleanup_dead_labels): Adjust.
17561
17562 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
17563
17564 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
17565 Configurations): Add documentation for __builtin_mtfsf.
17566
17567 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
17568
17569 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
17570 * config/riscv/riscv.c (riscv_constant_alignment): Use
17571 riscv_align_data_type.
17572 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
17573 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
17574 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
17575 * config/riscv/riscv.opt (malign-data): New.
17576 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
17577
17578 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
17579
17580 * cgraph.c (dump_graphviz): New function.
17581 * cgraph.h (dump_graphviz): New function.
17582 * symtab.c (dump_graphviz): New function.
17583
17584 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
17585
17586 * config/aarch64/aarch64-simd.md
17587 (*aarch64_simd_sra<mode>): New.
17588 * config/aarch64/iterators.md
17589 (SHIFTRT): New iterator.
17590 (sra_op): New attribute.
17591
17592 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17593
17594 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
17595 callee-saved regs R4->R10 in an interrupt function that calls another
17596 function.
17597
17598 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
17599
17600 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
17601 (_mm_blendv_epi8): New.
17602
17603 2019-07-22 Richard Biener <rguenther@suse.de>
17604
17605 PR tree-optimization/91221
17606 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
17607 restrict partial-def handling of empty constructors and
17608 memset to refs with known offset.
17609
17610 2019-07-22 Jan Beulich <jbeulich@suse.com>
17611
17612 * config/i386/sse.md (ternlogsuffix): New.
17613 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
17614 AVX512F is in use.
17615 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
17616
17617 2019-07-22 Martin Liska <mliska@suse.cz>
17618
17619 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
17620 comment.
17621 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
17622
17623 2019-07-22 Martin Liska <mliska@suse.cz>
17624
17625 * lto-section-in.c (lto_get_section_data):
17626 Use new function get_compression.
17627 * lto-streamer-out.c (produce_lto_section): Use
17628 set_compression to encode compression algorithm.
17629 * lto-streamer.h (struct lto_section): Do not
17630 use bitfields in the format.
17631
17632 2019-07-22 Martin Liska <mliska@suse.cz>
17633
17634 PR driver/91172
17635 * opts-common.c (decode_cmdline_option): Decode
17636 argument of -Werror and check it for a wrong language.
17637 * opts-global.c (complain_wrong_lang): Remove such case.
17638
17639 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
17640
17641 * config/arc/arc.c (prepare_move_operands): Always use an
17642 intermediate register when storing a TLS symbols.
17643
17644 2019-07-22 Stafford Horne <shorne@gmail.com>
17645
17646 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
17647 force_reg.
17648
17649 2019-07-22 Stafford Horne <shorne@gmail.com>
17650
17651 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
17652 and munordered-float validations.
17653 * config/or1k/constraints.md (d): New register constraint.
17654 * config/or1k/predicates.md (fp_comparison_operator): New.
17655 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
17656 operands.
17657 (or1k_expand_compare): Normalize unordered comparisons.
17658 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
17659 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
17660 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
17661 * config/or1k/or1k.md (type): Add fpu.
17662 (fpu): New instruction reservation.
17663 (F, f, fr, fi, FI, FOP, fop): New.
17664 (<fop><F:mode>3): New ALU instruction definition.
17665 (float<fi><F:mode>2): New conversion instruction definition.
17666 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
17667 (fpcmpcc): New code iterator.
17668 (*sf_fp_insn): New instruction definition.
17669 (cstore<F:mode>4): New expand definition.
17670 (cbranch<F:mode>4): New expand definition.
17671 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
17672 munordered-float): New options.
17673 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
17674 munordered-float.
17675
17676 2019-07-22 Stafford Horne <shorne@gmail.com>
17677
17678 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
17679 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
17680 documenation to be more clear.
17681 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
17682 more clear.
17683 * config/or1k/or1k.opt (mrori): New option.
17684 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
17685 msfimm, mshftimm): Rewrite documentation to be more clear.
17686 * config/or1k/or1k.md (insn_support): Add ror and rori.
17687 (enabled): Add conditions for ror and rori.
17688 (rotrsi3): Replace condition for shftimm with ror and rori.
17689
17690 2019-07-22 Stafford Horne <shorne@gmail.com>
17691
17692 PR target/90363
17693 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
17694 (extend<mode>si2): Update predicate.
17695 * config/or1k/predicates.md (volatile_mem_operand): New.
17696 (reg_or_mem_operand): New.
17697
17698 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
17699
17700 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
17701 * config/rs6000/rs6000-call.c: ... to here.
17702
17703 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17704
17705 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
17706 memory.
17707
17708 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17709
17710 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
17711
17712 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17713
17714 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
17715
17716 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17717
17718 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
17719 (any_memory_operand): New predicate.
17720 (reg_or_mem_operand): Use it.
17721
17722 2019-07-20 Jakub Jelinek <jakub@redhat.com>
17723
17724 PR target/91204
17725 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
17726
17727 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
17728
17729 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
17730 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
17731
17732 2019-07-20 Jakub Jelinek <jakub@redhat.com>
17733
17734 * tree.def (OMP_LOOP): New tree code.
17735 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
17736 (enum omp_clause_bind_kind): New enum.
17737 (struct tree_omp_clause): Add subcode.bind_kind.
17738 * tree.h (OMP_LOOP_CHECK): Rename to ...
17739 (OMP_LOOPING_CHECK): ... this.
17740 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
17741 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
17742 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
17743 (OMP_CLAUSE_BIND_KIND): Define.
17744 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17745 bind clause entries.
17746 (walk_tree_1): Handle OMP_CLAUSE_BIND.
17747 * tree-pretty-print.c (dump_omp_clause): Likewise.
17748 (dump_generic_node): Handle OMP_LOOP.
17749 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
17750 (in_omp_construct): New variable.
17751 (is_gimple_stmt): Handle OMP_LOOP.
17752 (gimplify_scan_omp_clauses): For lastprivate don't set
17753 check_non_private if code == OMP_LOOP. For reduction clause
17754 on OMP_LOOP combined with parallel or teams propagate as shared
17755 on the combined construct. Handle OMP_CLAUSE_BIND.
17756 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
17757 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
17758 for constructs from a loop construct to gimplify_scan_omp_clauses.
17759 Don't predetermine iterator linear on OMP_SIMD from loop construct.
17760 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
17761 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
17762 to match the implicit ORT_TARGET construct around whole body.
17763 Temporarily clear in_omp_construct when processing body.
17764 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
17765 etc. temporarily set in_omp_construct when processing body.
17766 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
17767 * omp-low.c (struct omp_context): Add loop_p.
17768 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
17769 in that the original var might be private.
17770 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
17771 (check_omp_nesting_restrictions): Adjust nesting restrictions for
17772 addition of loop construct.
17773 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
17774
17775 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
17776 lastprivate non-addressable iterator of a collapse(1) simd.
17777
17778 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
17779
17780 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
17781 as in rs6000.c.
17782
17783 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
17784
17785 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
17786 refer to default conditions. Warn for the 'y' spec which is ignored
17787 by current linkers.
17788
17789 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
17790
17791 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
17792 cpu_supports_info, builtin_hash_struct, builtin_hasher,
17793 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
17794 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
17795 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
17796 init_cumulative_args, rs6000_promote_function_mode,
17797 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
17798 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
17799 rs6000_function_arg_boundary, rs6000_parm_offset,
17800 rs6000_parm_start, rs6000_arg_size,
17801 rs6000_darwin64_record_arg_advance_flush,
17802 rs6000_darwin64_record_arg_advance_recurse,
17803 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
17804 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
17805 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
17806 rs6000_mixed_function_arg, rs6000_psave_function_arg,
17807 rs6000_finish_function_arg, rs6000_function_arg,
17808 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
17809 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
17810 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
17811 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
17812 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
17813 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
17814 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
17815 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
17816 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
17817 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
17818 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
17819 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
17820 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
17821 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
17822 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
17823 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
17824 get_element_number, altivec_expand_vec_set_builtin,
17825 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
17826 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
17827 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
17828 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
17829 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
17830 rs6000_expand_builtin, rs6000_vector_type,
17831 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
17832 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
17833 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
17834 to rs6000-call.c.
17835 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
17836 cpu_supports_info, builtin_hash_struct, builtin_hasher,
17837 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
17838 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
17839 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
17840 init_cumulative_args, rs6000_promote_function_mode,
17841 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
17842 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
17843 rs6000_function_arg_boundary, rs6000_parm_offset,
17844 rs6000_parm_start, rs6000_arg_size,
17845 rs6000_darwin64_record_arg_advance_flush,
17846 rs6000_darwin64_record_arg_advance_recurse,
17847 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
17848 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
17849 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
17850 rs6000_mixed_function_arg, rs6000_psave_function_arg,
17851 rs6000_finish_function_arg, rs6000_function_arg,
17852 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
17853 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
17854 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
17855 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
17856 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
17857 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
17858 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
17859 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
17860 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
17861 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
17862 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
17863 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
17864 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
17865 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
17866 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
17867 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
17868 get_element_number, altivec_expand_vec_set_builtin,
17869 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
17870 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
17871 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
17872 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
17873 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
17874 rs6000_expand_builtin, rs6000_vector_type,
17875 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
17876 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
17877 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
17878 to here from rs6000.c.
17879 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
17880 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
17881 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
17882 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
17883 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
17884 rs6000_return_in_memory, rs6000_return_in_msb,
17885 rs6000_pass_by_reference, setup_incoming_varargs,
17886 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
17887 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
17888 rs6000_function_arg_padding, rs6000_function_arg,
17889 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
17890 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
17891 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
17892 rs6000_passes_long_double, rs6000_passes_vector,
17893 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
17894 altivec_builtin_mask_for_load) Add declarations.
17895 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
17896 * config/config.gcc: Add new source file rs6000-call.c to garbage
17897 collector and extra_objs.
17898
17899 2019-07-19 Jeff Law <law@redhat.com>
17900
17901 PR tree-optimization/86061
17902 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
17903 strncpy. Drop some trivial dead code.
17904 (maybe_trim_memstar_call): Handle strncpy.
17905
17906 2019-07-19 Richard Biener <rguenther@suse.de>
17907
17908 PR tree-optimization/91211
17909 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
17910 memset encoding size.
17911
17912 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
17913
17914 PR target/91204
17915 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
17916
17917 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
17918
17919 PR ipa/91194
17920 * ipa-inline.c (recursive_inlining): Fix limits check.
17921
17922 2019-07-19 Richard Biener <rguenther@suse.de>
17923
17924 PR tree-optimization/91200
17925 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
17926 no PHI nodes in middle-bb.
17927
17928 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
17929
17930 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
17931 to +sve-bitperm.
17932 * config/aarch64/aarch64-option-extensions.def: Likewise.
17933
17934 2019-07-19 Jakub Jelinek <jakub@redhat.com>
17935
17936 PR middle-end/91190
17937 * function.c (insert_temp_slot_address): Store into the hash table
17938 a copy of address to avoid RTL sharing issues.
17939
17940 2019-07-19 Richard Biener <rguenther@suse.de>
17941
17942 PR tree-optimization/91207
17943 Revert
17944 2019-07-17 Richard Biener <rguenther@suse.de>
17945
17946 PR tree-optimization/91178
17947 * tree-vect-stmts.c (get_group_load_store_type): For SLP
17948 loads with a gap larger than the vector size always use
17949 VMAT_STRIDED_SLP.
17950 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
17951 avoid loading vectors that are only contained in the gap
17952 and thus are not needed.
17953
17954 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
17955
17956 * config/i386/i386.md (*addqi_2_slp): Remove.
17957 (*<code>qi_2_slp): Ditto.
17958
17959 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
17960
17961 * config/rs6000/predicates.md (prefixed_mem_operand): Call
17962 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
17963 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
17964 Rename function from rs6000_prefixed_address.
17965 * config/rs6000/aix.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 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17971 TARGET_HAS_TOC.
17972 (TARGET_TOC): Likewise.
17973 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
17974 rs6000.h.
17975 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17976 TARGET_HAS_TOC.
17977 (TARGET_TOC): Likewise.
17978 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
17979 check to require -mcmodel=medium for pc-relative addressing.
17980 (create_TOC_reference): Add assertion for TARGET_TOC.
17981 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
17982 TARGET_NO_TOC.
17983 (rs6000_emit_move): Likewise.
17984 (TOC_alias_set): Rename TOC alias set static variable from 'set'
17985 to 'TOC_alias_set'.
17986 (get_TOC_alias_set): Likewise.
17987 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
17988 TARGET_NO_TOC.
17989 (rs6000_can_eliminate): Likewise.
17990 (rs6000_prefixed_address_mode_p): Rename function from
17991 rs6000_prefixed_address.
17992 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
17993 TARGET_HAS_TOC and not pc-relative.
17994 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
17995 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17996 TARGET_HAS_TOC.
17997 (TARGET_TOC): Likewise.
17998 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
17999 rs6000.h.
18000
18001 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18002
18003 PR target/91188
18004 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
18005 for operand 0. Do not use (match_dup) to match operand 1 with
18006 operand 0. Add check in insn constraint that either input operand
18007 matches operand 0. Use SWI12 mode iterator to also handle
18008 HImode operands.
18009 (*and<mode>_1_slp): Ditto.
18010 (*<code>qi_1_slp): Ditto.
18011 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
18012 Do not use (match_dup) to match operand 1 with operand 0. Add
18013 check in insn constraint that operand 1 matches operand 0.
18014 Use SWI12 mode iterator to also handle HImode operands.
18015 (*ashl<mode>3_1_slp): Ditto.
18016 (*<shift_insn><mode>3_1_slp): Ditto.
18017 (*<rotate_insn><mode>3_1_slp): Ditto.
18018
18019 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18020
18021 * config/arm/arm-builtins.c
18022 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
18023 (arm_expand_unop_builtin): Likewise.
18024 * config/arm/crypto.md
18025 (crypto_sha1h): Convert from define_insn to define_expand.
18026 (crypto_<crypto_pattern>): Likewise.
18027 (crypto_sha1h_lb): New define_insn.
18028 (crypto_<crypto_pattern>_lb): Likewise.
18029
18030 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18031
18032 PR target/90317
18033 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
18034 (vsha1cq_u32): Likewise.
18035 (vsha1pq_u32): Likewise.
18036 (vsha1mq_u32): Likewise.
18037 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
18038 vec select.
18039 (crypto_sha1c): Correct vec select.
18040 (crypto_sha1m): Likewise.
18041 (crypto_sha1p): Likewise.
18042
18043 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
18044
18045 * config/arm/predicates.md (arm_borrow_operation): New predicate.
18046 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
18047 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
18048 (subdi_zesidi_zesidi): Likewise.
18049 (negdi2_compare, negdi2_insn): Likewise.
18050 (negdi_extensidi): Likewise.
18051 (negdi_zero_extendsidi): Likewise.
18052 (arm_cmpdi_insn): Likewise.
18053 (subsi3_carryin): Use arm_borrow_operation.
18054 (subsi3_carryin_const): Likewise.
18055 (subsi3_carryin_const0): Likewise.
18056 (subsi3_carryin_compare): Likewise.
18057 (subsi3_carryin_compare_const): Likewise.
18058 (subsi3_carryin_compare_const0): Likewise.
18059 (subsi3_carryin_shift): Likewise.
18060 (rsbsi3_carryin_shift): Likewise.
18061 (negsi2_carryin_compare): Likewise.
18062
18063 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
18064
18065 PR tree-optimization/91137
18066 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
18067 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
18068 Init, use and fini the above new field.
18069 (determine_base_object_1): New function.
18070 (determine_base_object): Reimplement using walk_tree.
18071
18072 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
18073
18074 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
18075 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
18076 CLEANUP_FORCE_FAST_DCE is set.
18077 * ifcvt.c (rest_of_handle_if_conversion): Pass
18078 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
18079 if-conversion succeeded.
18080
18081 2019-07-18 Richard Biener <rguenther@suse.de>
18082
18083 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
18084 branches to make code less indented.
18085
18086 2019-07-17 Alexandre Oliva <oliva@adacore.com>
18087
18088 PR middle-end/81824
18089 * attribs.c (decls_mismatched_attributes): Simplify the logic
18090 that avoids duplicates and false positives.
18091
18092 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
18093
18094 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
18095 data into data section when generating PIC code.
18096 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
18097 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
18098 generating code for SOM targets earlier than HP-UX 11. Otherwise,
18099 return 2 for SOM and 0 for other targets.
18100
18101 2019-07-17 Jeff Law <law@redhat.com>
18102
18103 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
18104 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
18105 avoid unexpected switch statement fallthru.
18106
18107 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
18108
18109 * config/i386/i386.md (*add<dwi>3_doubleword):
18110 Remove redundant constraints.
18111 (*add<mode>_1): Ditto.
18112 (*addhi_1): Ditto.
18113 (*addqi_1): Ditto.
18114 (*addqi_1_slp): Ditto.
18115 (*add<mode>_2): Ditto.
18116 (*addv<mode>4): Ditto.
18117 (*sub<dwi>3_doubleword): Ditto.
18118 (*sub<mode>_1): Ditto.
18119 (*subqi_1_slp): Ditto.
18120 (*sub<mode>_2): Ditto.
18121 (*subv<mode>4): Ditto.
18122 (*sub<mode>_3): Ditto.
18123 (@add<mode>3_carry): Ditto.
18124 (@sub<mode>3_carry): Ditto.
18125 (*add<mode>3_cc_overflow_1): Ditto.
18126 (*add<mode>3_zext_cc_overflow_2): Ditto.
18127 (*anddi_1): Ditto.
18128 (*and<mode>_1): Ditto.
18129 (*andqi_1): Ditto.
18130 (*andqi_1_slp): Ditto.
18131 (*anddi_2): Ditto.
18132 (*andqi_2_maybe_si): Ditto.
18133 (*and<mode>_2): Ditto.
18134 (*andqi_2_slp): Ditto.
18135 (*<code><mode>_1): Ditto.
18136 (*<code>qi_1): Ditto.
18137 (*<code>qi_1_slp): Ditto.
18138 (*<code><mode>_2): Ditto.
18139 (*<code>qi_2_slp): Ditto.
18140
18141 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
18142
18143 * alias.c (record_component_aliases): Do not simplify pointed-to
18144 types of ODR types.
18145
18146 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
18147
18148 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
18149 partial reg stall on alternative 2.
18150
18151 2019-07-17 Richard Biener <rguenther@suse.de>
18152
18153 PR tree-optimization/91178
18154 * tree-ssa.c (release_defs_bitset): Iterate from higher to
18155 lower SSA names to avoid quadratic behavior in the common case.
18156 * tree-data-ref.c (split_constant_offset): Add limit argument
18157 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
18158 (split_constant_offset_1): Add limit argument and use it to
18159 limit SSA def walking. Optimize the common plus/minus case.
18160
18161 2019-07-17 Richard Biener <rguenther@suse.de>
18162
18163 PR tree-optimization/91178
18164 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18165 loads with a gap larger than the vector size always use
18166 VMAT_STRIDED_SLP.
18167 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18168 avoid loading vectors that are only contained in the gap
18169 and thus are not needed.
18170
18171 2019-07-17 Richard Biener <rguenther@suse.de>
18172
18173 PR tree-optimization/91180
18174 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
18175 computation for memset partial defs.
18176
18177 2019-07-17 Jakub Jelinek <jakub@redhat.com>
18178
18179 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
18180 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
18181 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
18182 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
18183 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
18184 * omp-grid.c (grid_process_grid_body,
18185 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
18186 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
18187 == GF_OMP_FOR_KIND_SIMD.
18188 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
18189 check_omp_nesting_restrictions, scan_omp_1_stmt,
18190 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
18191 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
18192 omp_find_scan): Likewise.
18193 * omp-expand.c (expand_omp_for): Likewise.
18194 * omp-general.c (omp_extract_for_data): Likewise.
18195
18196 PR tree-optimization/91157
18197 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
18198 a vector boolean with scalar mode.
18199 (expand_vector_condition): Handle first operand being a vector boolean
18200 with scalar mode.
18201 (expand_vector_operations_1): For comparisons, don't bail out early
18202 if the return type is vector boolean with scalar mode, but comparison
18203 operand type is not.
18204
18205 2019-07-17 Richard Biener <rguenther@suse.de>
18206
18207 PR tree-optimization/91181
18208 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
18209 IFN_LOADs as calls.
18210
18211 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
18212
18213 * config/i386/i386.md (*testdi_1): Match CCZmode for
18214 constants that might have the SImode sign bit set.
18215 (*testqi_1_maybe_si): Remove "!" constraint modifier.
18216 Use correct constraints for pentium pairing.
18217 (*test<mode>_1): Ditto.
18218
18219 2019-07-16 Jeff Law <law@redhat.com>
18220
18221 PR rtl-optimization/91173
18222 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
18223 SSA_NAME with a constant value, fold its value into the offset
18224 and clear the base before calling gen_addr_rtx.
18225
18226 2019-07-16 Jakub Jelinek <jakub@redhat.com>
18227
18228 PR rtl-optimization/91164
18229 * dse.c (rest_of_handle_dse): If dead edges have been purged,
18230 invalidate dominance info.
18231
18232 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18233
18234 * read-md.h (md_reader::record_potential_iterator_use): Add a
18235 file_location parameter.
18236 * read-rtl.c (attribute_use::loc): New field.
18237 (map_attr_string): Take a file_location parameter. Report cases
18238 in which attributes map to multiple distinct values.
18239 (apply_attribute_uses): Update call accordingly.
18240 (md_reader::handle_overloaded_name): Likewise.
18241 (md_reader::apply_iterator_to_string): Likewise. Skip empty
18242 nonnull strings.
18243 (record_attribute_use): Take a file_location parameter.
18244 Initialize attribute_use::loc.
18245 (md_reader::record_potential_iterator_use): Take a file_location
18246 parameter. Update call to record_attribute_use.
18247 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
18248 (rtx_reader::read_rtx_code): Likewise.
18249 (rtx_reader::read_rtx_operand): Likewise. Record a location
18250 for implicitly-expanded empty strings.
18251
18252 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18253
18254 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
18255 Use file_location instead of separate fields.
18256 (md_reader::set_md_ptr_loc): Take a file_location instead of a
18257 separate filename and line number.
18258 * read-md.c (ptr_loc): As above.
18259 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
18260 (md_reader::fprint_md_ptr_loc): Likewise.
18261 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
18262 instead of a separate filename and line number.
18263 (md_reader::read_string): Update call accordingly.
18264
18265 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18266
18267 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
18268 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
18269 leaving the choice between SFDF and P implicit.
18270 (*mov<mode>_update2): Likewise.
18271 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
18272 rather than leaving the choice betweem IBM128 and GPR implicit.
18273 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
18274 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
18275 QHSI implicit.
18276 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
18277 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
18278 * config/rs6000/vsx.md
18279 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
18280 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
18281 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
18282 and VSX_EXTRACT_I implicit.
18283
18284 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18285
18286 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
18287 Explicitly use <MOVEP1:MODE> for the mode attribute.
18288
18289 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
18290
18291 PR bootstrap/91176
18292 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
18293
18294 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
18295
18296 PR target/91050
18297 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
18298 .machine directive.
18299
18300 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
18301
18302 * config/i386/i386.md (@test<mode>_ccno_1):
18303 Rename from test<mode>_ccno_1.
18304 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
18305 (*testqi_1_maybe_si): Remove modrm attribute.
18306 (*test<mode>_1): Ditto.
18307 * config/i386/i386-expand.c (ix86_split_idivmod): Use
18308 gen_test_ccno_1 and gen_extend_insn.
18309
18310 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
18311
18312 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
18313 to 0.
18314
18315 2019-07-15 Richard Biener <rguenther@suse.de>
18316
18317 PR middle-end/91162
18318 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
18319 node make sure to replace all uses with something valid.
18320
18321 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
18322
18323 PR tree-optimization/88497
18324 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
18325 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
18326 function undistribute_bitref_for_vector.
18327 (undistribute_bitref_for_vector): New function.
18328 (cleanup_vinfo_map): Likewise.
18329 (sort_by_mach_mode): Likewise.
18330
18331 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
18332
18333 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
18334 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
18335 and testdi_ccno_1 using SWI48 mode attribute.
18336 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
18337 x86_64_szext_general_operand.
18338 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
18339 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
18340 instead of genera_operand mode attribute.
18341
18342 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
18343
18344 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
18345 fopen and fclose to their respective types.
18346 (DotFn.invoke): Ditto.
18347
18348 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
18349
18350 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
18351 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
18352 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
18353 (array_index_predicate): Remove.
18354 (analyze_function_body): Account cost for variable ofsetted array
18355 indexing.
18356 (estimate_node_size_and_time): Do not compute array index hint.
18357 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
18358 (inline_read_section): Do not read array index hint.
18359 (ipa_fn_summary_write): Do not write array index hint.
18360 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
18361 * ipa-cp.c (hint_time_bonus): Remove.
18362 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
18363 (ipa_fnsummary): Remove array_index.
18364 * ipa-inline.c (want_inline_small_function_p): Do not use
18365 array_index.
18366 (edge_badness): Likewise.
18367 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
18368
18369 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
18370
18371 PR target/91148
18372 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
18373 superfluous "builtin function" phrasing.
18374
18375 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
18376
18377 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
18378 Break out from ...
18379 (aliasing_component_refs_walk): Break out from ...
18380 (aliasing_component_refs_p): ... here.
18381
18382 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
18383
18384 PR target/91148
18385 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
18386 "builtin function" phrasing.
18387
18388 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18389
18390 PR target/90723
18391 * recog.h (temporary_volatile_ok): New class.
18392 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
18393 volatile_ok temporarily to true using temporary_volatile_ok.
18394 * expr.c (emit_block_move_via_cpymem): Likewise.
18395 * optabs.c (maybe_legitimize_operand): Likewise.
18396
18397 2019-07-13 Jakub Jelinek <jakub@redhat.com>
18398
18399 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
18400 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
18401 uses inside of order(concurrent) constructs.
18402 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
18403 OMP_CLAUSE_ORDER is seen.
18404 * omp-low.c (struct omp_context): Add order_concurrent member.
18405 (scan_sharing_clauses): Set ctx->order_concurrent if
18406 OMP_CLAUSE_ORDER is seen.
18407 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
18408 of simd order(concurrent). Diagnose constructs not allowed inside of
18409 for order(concurrent).
18410 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
18411 complaining about static double setjmp (double); or class static
18412 methods or non-global namespace setjmps.
18413 (omp_runtime_api_call): New function.
18414 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
18415 order(concurrent) loops.
18416
18417 2019-07-12 Martin Sebor <msebor@redhat.com>
18418
18419 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
18420 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
18421 * tree-vrp.c (vrp_prop::check_mem_ref): Use
18422 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
18423
18424 2019-07-12 Jan Hubicka <jh@suse.cz>
18425
18426 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
18427 (indirect_refs_may_alias_p): ... here.
18428 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
18429 mem refs in the access paths.
18430
18431 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
18432
18433 PR tree-optimization/89430
18434 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
18435 store elimination for local variable without address escape.
18436
18437 2019-07-12 Jeff Law <law@redhat.com>
18438
18439 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
18440 for the ".far" section.
18441
18442 2019-07-12 Richard Biener <rguenther@suse.de>
18443
18444 PR tree-optimization/91145
18445 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
18446 chain check.
18447
18448 2019-07-12 Alexandre Oliva <oliva@adacore.com>
18449
18450 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
18451 rather than this_state as the lowering context for the ELSE
18452 seq in a GIMPLE_EH_ELSE.
18453
18454 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
18455
18456 * vector-builder.h (vector_builder::elt): Allow already-supplied
18457 elements to be read back before building is complete.
18458
18459 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
18460
18461 PR rtl-optimization/91136
18462 * df-core.c (ACCESSING REFS): Fix typos in comment.
18463 * resource.c (mark_target_live_reg): Add artificial defs that occur at
18464 the beginning of the block to the initial set of live registers.
18465
18466 2019-07-12 Richard Biener <rguenther@suse.de>
18467
18468 * fold-const.h (get_array_ctor_element_at_index): Adjust.
18469 * fold-const.c (get_array_ctor_element_at_index): Add
18470 ctor_idx output parameter informing the caller where in
18471 the constructor the element was (not) found. Add early exit
18472 for when the ctor is sorted.
18473 * gimple-fold.c (fold_array_ctor_reference): Support constant
18474 folding across multiple array elements.
18475
18476 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
18477
18478 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
18479 doesn't have location, set the current location to the function's end.
18480
18481 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
18482
18483 * config/aarch64/aarch64.md (*compare_condjump<mode>)
18484 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
18485 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
18486 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
18487 * config/aarch64/aarch64-simd.md
18488 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
18489 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
18490 * config/aarch64/aarch64-sve.md
18491 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
18492 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
18493
18494 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
18495
18496 * doc/md.texi: Document that @ patterns can have different
18497 numbers of operands.
18498 * genemit.c (handle_overloaded_gen): Handle this case.
18499 * genopinit.c (handle_overloaded_gen): Likewise.
18500 * gensupport.c (replace_operands_with_dups): Iterate over
18501 the new rtx's format rather than the old one's.
18502
18503 2019-07-12 Jakub Jelinek <jakub@redhat.com>
18504
18505 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
18506 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18507 order clause entries.
18508 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
18509 * tree-pretty-print.c (dump_omp_clause): Likewise.
18510 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
18511 Likewise.
18512 * omp-low.c (scan_sharing_clauses): Likewise.
18513 * tree-nested.c (convert_nonlocal_omp_clauses,
18514 convert_local_omp_clauses): Likewise.
18515
18516 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
18517
18518 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
18519 fallthrough target of current basic block isn't the placed
18520 right next.
18521
18522 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
18523
18524 PR target/90980
18525 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
18526 (_mm512_storeu_epi64): Likewise.
18527 (_mm512_loadu_epi32): Likewise.
18528 (_mm512_storeu_epi32): Likewise.
18529 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
18530 (_mm_storeu_epi64): Likewise.
18531 (_mm256_storeu_epi32): Likewise.
18532 (_mm_storeu_epi32): Likewise.
18533
18534 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
18535
18536 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
18537
18538 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
18539
18540 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
18541 Handle Modula-2.
18542
18543 2019-07-11 Jakub Jelinek <jakub@redhat.com>
18544
18545 PR target/91124
18546 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
18547 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
18548 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
18549 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
18550 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
18551 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
18552 define_insns.
18553 (ufix_truncv2dfv2si2<mask_name>): Change into ...
18554 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
18555 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
18556 define_insns.
18557 (sse2_cvttpd2dq<mask_name>): Change into ...
18558 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
18559 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
18560 (*sse2_cvtpd2dq<mask_name>): Change into ...
18561 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
18562 Add "C" constraint to const0_operand.
18563 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
18564 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
18565 changes.
18566
18567 PR target/91124
18568 * config/i386/i386-builtin-types.def
18569 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
18570 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
18571 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
18572 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
18573 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
18574 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
18575 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
18576 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
18577 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
18578 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
18579 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
18580 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
18581 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
18582 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
18583 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
18584 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
18585 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
18586 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
18587 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
18588 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
18589 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
18590 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
18591 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
18592 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
18593 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
18594 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
18595 __builtin_ia32_vpdpbusd_v4si_maskz,
18596 __builtin_ia32_vpdpbusds_v16si_mask,
18597 __builtin_ia32_vpdpbusds_v16si_maskz,
18598 __builtin_ia32_vpdpbusds_v8si_mask,
18599 __builtin_ia32_vpdpbusds_v8si_maskz,
18600 __builtin_ia32_vpdpbusds_v4si_mask,
18601 __builtin_ia32_vpdpbusds_v4si_maskz,
18602 __builtin_ia32_vpdpwssd_v16si_mask,
18603 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
18604 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
18605 __builtin_ia32_vpdpwssd_v4si_maskz,
18606 __builtin_ia32_vpdpwssds_v16si_mask,
18607 __builtin_ia32_vpdpwssds_v16si_maskz,
18608 __builtin_ia32_vpdpwssds_v8si_mask,
18609 __builtin_ia32_vpdpwssds_v8si_maskz,
18610 __builtin_ia32_vpdpwssds_v4si_mask,
18611 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
18612 suffixed types rather than *_INT.
18613 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
18614 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
18615 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
18616 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
18617 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
18618 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
18619
18620 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
18621
18622 * tree-vrp.c (intersect_ranges): If we know the intersection is
18623 empty, there is no need to conservatively add anything else to
18624 the set.
18625
18626 2019-07-11 Richard Biener <rguenther@suse.de>
18627
18628 PR middle-end/91131
18629 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
18630 when the object is volatile and we have not cleared it even though
18631 there are no nonzero elements.
18632
18633 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
18634
18635 * config/rs6000/predicates.md (cint34_operand): Update
18636 SIGNED_34BIT_OFFSET_P call.
18637 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
18638 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
18639 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
18640 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
18641 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
18642 argument.
18643 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
18644 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
18645 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
18646 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
18647 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
18648
18649 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
18650
18651 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
18652 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
18653 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
18654 (DEF_MIN_OSX_VERSION): New.
18655
18656 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
18657
18658 * fold-const.c (fold_relational_const): Fix folding of
18659 vector-to-scalar NE_EXPRs.
18660 (test_vector_folding): Add more tests.
18661
18662 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
18663
18664 PR target/91060
18665 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
18666 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
18667 (vec_setv2di_internal): Reexpress as...
18668 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
18669 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
18670 rather than gen_neon_vset_lane<mode>.
18671
18672 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
18673
18674 PR target/91102
18675 * lra-constraints.c (process_alt_operands): Don't match user
18676 defined regs only if they are early clobbers.
18677
18678 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
18679
18680 * wide-int.h (wi::lshift): Reject negative values for the fast path.
18681
18682 2019-07-10 Richard Biener <rguenther@suse.de>
18683
18684 PR tree-optimization/91126
18685 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
18686 native encoding offset for BYTES_BIG_ENDIAN.
18687 (vn_reference_lookup_3): Likewise.
18688
18689 2019-07-10 Richard Biener <rguenther@suse.de>
18690
18691 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
18692 LHS whenever possible.
18693
18694 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
18695
18696 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
18697 from ...; work also on duplicated types.
18698 (nonoverlapping_component_refs_since_match): ... here
18699 (ncr_type_uid): Break out from ...
18700 (ncr_compar): ... here; look for TYPE_UID of canonical type if
18701 available.
18702 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
18703 the types and nonoverlapping_component_refs_p_1 to disambiguate.
18704
18705 2019-07-09 Martin Sebor <msebor@redhat.com>
18706
18707 PR tree-optimization/90989
18708 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
18709 optimization to just single character stores.
18710
18711 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
18712
18713 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
18714 Swap operands only once.
18715
18716 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18717
18718 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
18719 for both call instructions.
18720
18721 2019-07-09 John Darrington <john@darrington.wattle.id.au>
18722
18723 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
18724 rather than GET_MODE_BITSIZE to better handle partial integer modes.
18725
18726 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
18727
18728 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
18729 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
18730 function from rs6000-logue.c back to rs6000.c.
18731 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
18732
18733 2019-07-09 Martin Sebor <msebor@redhat.com>
18734
18735 PR c++/61339
18736 * auto-profile.c: Change class-key of PODs to struct and others
18737 to class.
18738 * basic-block.h: Same.
18739 * bitmap.c (bitmap_alloc): Same.
18740 * bitmap.h: Same.
18741 * builtins.c (expand_builtin_prefetch): Same.
18742 (expand_builtin_interclass_mathfn): Same.
18743 (expand_builtin_strlen): Same.
18744 (expand_builtin_mempcpy_args): Same.
18745 (expand_cmpstr): Same.
18746 (expand_builtin___clear_cache): Same.
18747 (expand_ifn_atomic_bit_test_and): Same.
18748 (expand_builtin_thread_pointer): Same.
18749 (expand_builtin_set_thread_pointer): Same.
18750 * caller-save.c (setup_save_areas): Same.
18751 (replace_reg_with_saved_mem): Same.
18752 (insert_restore): Same.
18753 (insert_save): Same.
18754 (add_used_regs): Same.
18755 * cfg.c (get_bb_copy): Same.
18756 (set_loop_copy): Same.
18757 * cfg.h: Same.
18758 * cfganal.h: Same.
18759 * cfgexpand.c (alloc_stack_frame_space): Same.
18760 (add_stack_var): Same.
18761 (add_stack_var_conflict): Same.
18762 (add_scope_conflicts_1): Same.
18763 (update_alias_info_with_stack_vars): Same.
18764 (expand_used_vars): Same.
18765 * cfghooks.c (redirect_edge_and_branch_force): Same.
18766 (delete_basic_block): Same.
18767 (split_edge): Same.
18768 (make_forwarder_block): Same.
18769 (force_nonfallthru): Same.
18770 (duplicate_block): Same.
18771 (lv_flush_pending_stmts): Same.
18772 * cfghooks.h: Same.
18773 * cfgloop.c (flow_loops_cfg_dump): Same.
18774 (flow_loop_nested_p): Same.
18775 (superloop_at_depth): Same.
18776 (get_loop_latch_edges): Same.
18777 (flow_loop_dump): Same.
18778 (flow_loops_dump): Same.
18779 (flow_loops_free): Same.
18780 (flow_loop_nodes_find): Same.
18781 (establish_preds): Same.
18782 (flow_loop_tree_node_add): Same.
18783 (flow_loop_tree_node_remove): Same.
18784 (flow_loops_find): Same.
18785 (find_subloop_latch_edge_by_profile): Same.
18786 (find_subloop_latch_edge_by_ivs): Same.
18787 (mfb_redirect_edges_in_set): Same.
18788 (form_subloop): Same.
18789 (merge_latch_edges): Same.
18790 (disambiguate_multiple_latches): Same.
18791 (disambiguate_loops_with_multiple_latches): Same.
18792 (flow_bb_inside_loop_p): Same.
18793 (glb_enum_p): Same.
18794 (get_loop_body_with_size): Same.
18795 (get_loop_body): Same.
18796 (fill_sons_in_loop): Same.
18797 (get_loop_body_in_dom_order): Same.
18798 (get_loop_body_in_custom_order): Same.
18799 (release_recorded_exits): Same.
18800 (get_loop_exit_edges): Same.
18801 (num_loop_branches): Same.
18802 (remove_bb_from_loops): Same.
18803 (find_common_loop): Same.
18804 (delete_loop): Same.
18805 (cancel_loop): Same.
18806 (verify_loop_structure): Same.
18807 (loop_preheader_edge): Same.
18808 (loop_exit_edge_p): Same.
18809 (single_exit): Same.
18810 (loop_exits_to_bb_p): Same.
18811 (loop_exits_from_bb_p): Same.
18812 (get_loop_location): Same.
18813 (record_niter_bound): Same.
18814 (get_estimated_loop_iterations_int): Same.
18815 (max_stmt_executions_int): Same.
18816 (likely_max_stmt_executions_int): Same.
18817 (get_estimated_loop_iterations): Same.
18818 (get_max_loop_iterations): Same.
18819 (get_max_loop_iterations_int): Same.
18820 (get_likely_max_loop_iterations): Same.
18821 * cfgloop.h (simple_loop_desc): Same.
18822 (get_loop): Same.
18823 (loop_depth): Same.
18824 (loop_outer): Same.
18825 (loop_iterator::next): Same.
18826 (loop_outermost): Same.
18827 * cfgloopanal.c (mark_irreducible_loops): Same.
18828 (num_loop_insns): Same.
18829 (average_num_loop_insns): Same.
18830 (expected_loop_iterations_unbounded): Same.
18831 (expected_loop_iterations): Same.
18832 (mark_loop_exit_edges): Same.
18833 (single_likely_exit): Same.
18834 * cfgloopmanip.c (fix_bb_placement): Same.
18835 (fix_bb_placements): Same.
18836 (remove_path): Same.
18837 (place_new_loop): Same.
18838 (add_loop): Same.
18839 (scale_loop_frequencies): Same.
18840 (scale_loop_profile): Same.
18841 (create_empty_if_region_on_edge): Same.
18842 (create_empty_loop_on_edge): Same.
18843 (loopify): Same.
18844 (unloop): Same.
18845 (fix_loop_placements): Same.
18846 (copy_loop_info): Same.
18847 (duplicate_loop): Same.
18848 (duplicate_subloops): Same.
18849 (loop_redirect_edge): Same.
18850 (can_duplicate_loop_p): Same.
18851 (duplicate_loop_to_header_edge): Same.
18852 (mfb_keep_just): Same.
18853 (has_preds_from_loop): Same.
18854 (create_preheader): Same.
18855 (create_preheaders): Same.
18856 (lv_adjust_loop_entry_edge): Same.
18857 (loop_version): Same.
18858 * cfgloopmanip.h: Same.
18859 * cgraph.h: Same.
18860 * cgraphbuild.c: Same.
18861 * combine.c (make_extraction): Same.
18862 * config/i386/i386-features.c: Same.
18863 * config/i386/i386-features.h: Same.
18864 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
18865 (ix86_emit_outlined_ms2sysv_restore): Same.
18866 (ix86_noce_conversion_profitable_p): Same.
18867 (ix86_init_cost): Same.
18868 (ix86_simd_clone_usable): Same.
18869 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
18870 Wstruct-not-pod.
18871 * coretypes.h: Same.
18872 * data-streamer-in.c (string_for_index): Change class-key of PODs
18873 to struct and others to class.
18874 (streamer_read_indexed_string): Same.
18875 (streamer_read_string): Same.
18876 (bp_unpack_indexed_string): Same.
18877 (bp_unpack_string): Same.
18878 (streamer_read_uhwi): Same.
18879 (streamer_read_hwi): Same.
18880 (streamer_read_gcov_count): Same.
18881 (streamer_read_wide_int): Same.
18882 * data-streamer.h (streamer_write_bitpack): Same.
18883 (bp_unpack_value): Same.
18884 (streamer_write_char_stream): Same.
18885 (streamer_write_hwi_in_range): Same.
18886 (streamer_write_record_start): Same.
18887 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
18888 (add_cross_iteration_register_deps): Same.
18889 (build_intra_loop_deps): Same.
18890 * df-core.c (df_analyze): Same.
18891 (loop_post_order_compute): Same.
18892 (loop_inverted_post_order_compute): Same.
18893 * df-problems.c (df_rd_alloc): Same.
18894 (df_rd_simulate_one_insn): Same.
18895 (df_rd_local_compute): Same.
18896 (df_rd_init_solution): Same.
18897 (df_rd_confluence_n): Same.
18898 (df_rd_transfer_function): Same.
18899 (df_rd_free): Same.
18900 (df_rd_dump_defs_set): Same.
18901 (df_rd_top_dump): Same.
18902 (df_lr_alloc): Same.
18903 (df_lr_reset): Same.
18904 (df_lr_local_compute): Same.
18905 (df_lr_init): Same.
18906 (df_lr_confluence_n): Same.
18907 (df_lr_free): Same.
18908 (df_lr_top_dump): Same.
18909 (df_lr_verify_transfer_functions): Same.
18910 (df_live_alloc): Same.
18911 (df_live_reset): Same.
18912 (df_live_init): Same.
18913 (df_live_confluence_n): Same.
18914 (df_live_finalize): Same.
18915 (df_live_free): Same.
18916 (df_live_top_dump): Same.
18917 (df_live_verify_transfer_functions): Same.
18918 (df_mir_alloc): Same.
18919 (df_mir_reset): Same.
18920 (df_mir_init): Same.
18921 (df_mir_confluence_n): Same.
18922 (df_mir_free): Same.
18923 (df_mir_top_dump): Same.
18924 (df_word_lr_alloc): Same.
18925 (df_word_lr_reset): Same.
18926 (df_word_lr_init): Same.
18927 (df_word_lr_confluence_n): Same.
18928 (df_word_lr_free): Same.
18929 (df_word_lr_top_dump): Same.
18930 (df_md_alloc): Same.
18931 (df_md_simulate_one_insn): Same.
18932 (df_md_reset): Same.
18933 (df_md_init): Same.
18934 (df_md_free): Same.
18935 (df_md_top_dump): Same.
18936 * df-scan.c (df_insn_delete): Same.
18937 (df_insn_rescan): Same.
18938 (df_notes_rescan): Same.
18939 (df_sort_and_compress_mws): Same.
18940 (df_install_mws): Same.
18941 (df_refs_add_to_chains): Same.
18942 (df_ref_create_structure): Same.
18943 (df_ref_record): Same.
18944 (df_def_record_1): Same.
18945 (df_find_hard_reg_defs): Same.
18946 (df_uses_record): Same.
18947 (df_get_conditional_uses): Same.
18948 (df_get_call_refs): Same.
18949 (df_recompute_luids): Same.
18950 (df_get_entry_block_def_set): Same.
18951 (df_entry_block_defs_collect): Same.
18952 (df_get_exit_block_use_set): Same.
18953 (df_exit_block_uses_collect): Same.
18954 (df_mws_verify): Same.
18955 (df_bb_verify): Same.
18956 * df.h (df_scan_get_bb_info): Same.
18957 * doc/tm.texi: Same.
18958 * dse.c (record_store): Same.
18959 * dumpfile.h: Same.
18960 * emit-rtl.c (const_fixed_hasher::equal): Same.
18961 (set_mem_attributes_minus_bitpos): Same.
18962 (change_address): Same.
18963 (adjust_address_1): Same.
18964 (offset_address): Same.
18965 * emit-rtl.h: Same.
18966 * except.c (dw2_build_landing_pads): Same.
18967 (sjlj_emit_dispatch_table): Same.
18968 * explow.c (allocate_dynamic_stack_space): Same.
18969 (emit_stack_probe): Same.
18970 (probe_stack_range): Same.
18971 * expmed.c (store_bit_field_using_insv): Same.
18972 (store_bit_field_1): Same.
18973 (store_integral_bit_field): Same.
18974 (extract_bit_field_using_extv): Same.
18975 (extract_bit_field_1): Same.
18976 (emit_cstore): Same.
18977 * expr.c (emit_block_move_via_cpymem): Same.
18978 (expand_cmpstrn_or_cmpmem): Same.
18979 (set_storage_via_setmem): Same.
18980 (emit_single_push_insn_1): Same.
18981 (expand_assignment): Same.
18982 (store_constructor): Same.
18983 (expand_expr_real_2): Same.
18984 (expand_expr_real_1): Same.
18985 (try_casesi): Same.
18986 * flags.h: Same.
18987 * function.c (try_fit_stack_local): Same.
18988 (assign_stack_local_1): Same.
18989 (assign_stack_local): Same.
18990 (cut_slot_from_list): Same.
18991 (insert_slot_to_list): Same.
18992 (max_slot_level): Same.
18993 (move_slot_to_level): Same.
18994 (temp_address_hasher::equal): Same.
18995 (remove_unused_temp_slot_addresses): Same.
18996 (assign_temp): Same.
18997 (combine_temp_slots): Same.
18998 (update_temp_slot_address): Same.
18999 (preserve_temp_slots): Same.
19000 * function.h: Same.
19001 * fwprop.c: Same.
19002 * gcc-rich-location.h: Same.
19003 * gcov.c: Same.
19004 * genattrtab.c (check_attr_test): Same.
19005 (check_attr_value): Same.
19006 (convert_set_attr_alternative): Same.
19007 (convert_set_attr): Same.
19008 (check_defs): Same.
19009 (copy_boolean): Same.
19010 (get_attr_value): Same.
19011 (expand_delays): Same.
19012 (make_length_attrs): Same.
19013 (min_fn): Same.
19014 (make_alternative_compare): Same.
19015 (simplify_test_exp): Same.
19016 (tests_attr_p): Same.
19017 (get_attr_order): Same.
19018 (clear_struct_flag): Same.
19019 (gen_attr): Same.
19020 (compares_alternatives_p): Same.
19021 (gen_insn): Same.
19022 (gen_delay): Same.
19023 (find_attrs_to_cache): Same.
19024 (write_test_expr): Same.
19025 (walk_attr_value): Same.
19026 (write_attr_get): Same.
19027 (eliminate_known_true): Same.
19028 (write_insn_cases): Same.
19029 (write_attr_case): Same.
19030 (write_attr_valueq): Same.
19031 (write_attr_value): Same.
19032 (write_dummy_eligible_delay): Same.
19033 (next_comma_elt): Same.
19034 (find_attr): Same.
19035 (make_internal_attr): Same.
19036 (copy_rtx_unchanging): Same.
19037 (gen_insn_reserv): Same.
19038 (check_tune_attr): Same.
19039 (make_automaton_attrs): Same.
19040 (handle_arg): Same.
19041 * genextract.c (gen_insn): Same.
19042 (VEC_char_to_string): Same.
19043 * genmatch.c (print_operand): Same.
19044 (lower): Same.
19045 (parser::parse_operation): Same.
19046 (parser::parse_capture): Same.
19047 (parser::parse_c_expr): Same.
19048 (parser::parse_simplify): Same.
19049 (main): Same.
19050 * genoutput.c (output_operand_data): Same.
19051 (output_get_insn_name): Same.
19052 (compare_operands): Same.
19053 (place_operands): Same.
19054 (process_template): Same.
19055 (validate_insn_alternatives): Same.
19056 (validate_insn_operands): Same.
19057 (gen_expand): Same.
19058 (note_constraint): Same.
19059 * genpreds.c (write_one_predicate_function): Same.
19060 (add_constraint): Same.
19061 (process_define_register_constraint): Same.
19062 (write_lookup_constraint_1): Same.
19063 (write_lookup_constraint_array): Same.
19064 (write_insn_constraint_len): Same.
19065 (write_reg_class_for_constraint_1): Same.
19066 (write_constraint_satisfied_p_array): Same.
19067 * genrecog.c (optimize_subroutine_group): Same.
19068 * gensupport.c (process_define_predicate): Same.
19069 (queue_pattern): Same.
19070 (remove_from_queue): Same.
19071 (process_rtx): Same.
19072 (is_predicable): Same.
19073 (change_subst_attribute): Same.
19074 (subst_pattern_match): Same.
19075 (alter_constraints): Same.
19076 (alter_attrs_for_insn): Same.
19077 (shift_output_template): Same.
19078 (alter_output_for_subst_insn): Same.
19079 (process_one_cond_exec): Same.
19080 (subst_dup): Same.
19081 (process_define_cond_exec): Same.
19082 (mnemonic_htab_callback): Same.
19083 (gen_mnemonic_attr): Same.
19084 (read_md_rtx): Same.
19085 * ggc-page.c: Same.
19086 * gimple-loop-interchange.cc (dump_reduction): Same.
19087 (dump_induction): Same.
19088 (loop_cand::~loop_cand): Same.
19089 (free_data_refs_with_aux): Same.
19090 (tree_loop_interchange::interchange_loops): Same.
19091 (tree_loop_interchange::map_inductions_to_loop): Same.
19092 (tree_loop_interchange::move_code_to_inner_loop): Same.
19093 (compute_access_stride): Same.
19094 (compute_access_strides): Same.
19095 (proper_loop_form_for_interchange): Same.
19096 (tree_loop_interchange_compute_ddrs): Same.
19097 (prune_datarefs_not_in_loop): Same.
19098 (prepare_data_references): Same.
19099 (pass_linterchange::execute): Same.
19100 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
19101 (unroll_jam_possible_p): Same.
19102 (fuse_loops): Same.
19103 (adjust_unroll_factor): Same.
19104 (tree_loop_unroll_and_jam): Same.
19105 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
19106 (loop_versioning::expensive_stmt_p): Same.
19107 (loop_versioning::version_for_unity): Same.
19108 (loop_versioning::dump_inner_likelihood): Same.
19109 (loop_versioning::find_per_loop_multiplication): Same.
19110 (loop_versioning::analyze_term_using_scevs): Same.
19111 (loop_versioning::record_address_fragment): Same.
19112 (loop_versioning::analyze_expr): Same.
19113 (loop_versioning::analyze_blocks): Same.
19114 (loop_versioning::prune_conditions): Same.
19115 (loop_versioning::merge_loop_info): Same.
19116 (loop_versioning::add_loop_to_queue): Same.
19117 (loop_versioning::decide_whether_loop_is_versionable): Same.
19118 (loop_versioning::make_versioning_decisions): Same.
19119 (loop_versioning::implement_versioning_decisions): Same.
19120 * gimple-ssa-evrp-analyze.c
19121 (evrp_range_analyzer::record_ranges_from_phis): Same.
19122 * gimple-ssa-store-merging.c (split_store::split_store): Same.
19123 (count_multiple_uses): Same.
19124 (split_group): Same.
19125 (imm_store_chain_info::output_merged_store): Same.
19126 (pass_store_merging::process_store): Same.
19127 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
19128 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
19129 (is_max): Same.
19130 (alloca_call_type): Same.
19131 (pass_walloca::execute): Same.
19132 * gimple-streamer-in.c (input_phi): Same.
19133 (input_gimple_stmt): Same.
19134 * gimple-streamer.h: Same.
19135 * godump.c (go_force_record_alignment): Same.
19136 (go_format_type): Same.
19137 (go_output_type): Same.
19138 (go_output_fndecl): Same.
19139 (go_output_typedef): Same.
19140 (keyword_hash_init): Same.
19141 (find_dummy_types): Same.
19142 * graph.c (draw_cfg_nodes_no_loops): Same.
19143 (draw_cfg_nodes_for_loop): Same.
19144 * hard-reg-set.h (hard_reg_set_iter_next): Same.
19145 * hsa-brig.c: Same.
19146 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
19147 * hsa-dump.c (dump_hsa_cfun): Same.
19148 * hsa-gen.c (gen_function_def_parameters): Same.
19149 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
19150 * input.c (dump_line_table_statistics): Same.
19151 (test_lexer): Same.
19152 * input.h: Same.
19153 * internal-fn.c (get_multi_vector_move): Same.
19154 (expand_load_lanes_optab_fn): Same.
19155 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
19156 (expand_GOMP_SIMT_EXIT): Same.
19157 (expand_GOMP_SIMT_LAST_LANE): Same.
19158 (expand_GOMP_SIMT_ORDERED_PRED): Same.
19159 (expand_GOMP_SIMT_VOTE_ANY): Same.
19160 (expand_GOMP_SIMT_XCHG_BFLY): Same.
19161 (expand_GOMP_SIMT_XCHG_IDX): Same.
19162 (expand_addsub_overflow): Same.
19163 (expand_neg_overflow): Same.
19164 (expand_mul_overflow): Same.
19165 (expand_call_mem_ref): Same.
19166 (expand_mask_load_optab_fn): Same.
19167 (expand_scatter_store_optab_fn): Same.
19168 (expand_gather_load_optab_fn): Same.
19169 * ipa-cp.c (ipa_get_parm_lattices): Same.
19170 (print_all_lattices): Same.
19171 (ignore_edge_p): Same.
19172 (build_toporder_info): Same.
19173 (free_toporder_info): Same.
19174 (push_node_to_stack): Same.
19175 (ipcp_lattice<valtype>::set_contains_variable): Same.
19176 (set_agg_lats_to_bottom): Same.
19177 (ipcp_bits_lattice::meet_with): Same.
19178 (set_single_call_flag): Same.
19179 (initialize_node_lattices): Same.
19180 (ipa_get_jf_ancestor_result): Same.
19181 (ipcp_verify_propagated_values): Same.
19182 (propagate_scalar_across_jump_function): Same.
19183 (propagate_context_across_jump_function): Same.
19184 (propagate_bits_across_jump_function): Same.
19185 (ipa_vr_operation_and_type_effects): Same.
19186 (propagate_vr_across_jump_function): Same.
19187 (set_check_aggs_by_ref): Same.
19188 (set_chain_of_aglats_contains_variable): Same.
19189 (merge_aggregate_lattices): Same.
19190 (agg_pass_through_permissible_p): Same.
19191 (propagate_aggs_across_jump_function): Same.
19192 (call_passes_through_thunk_p): Same.
19193 (propagate_constants_across_call): Same.
19194 (devirtualization_time_bonus): Same.
19195 (good_cloning_opportunity_p): Same.
19196 (context_independent_aggregate_values): Same.
19197 (gather_context_independent_values): Same.
19198 (perform_estimation_of_a_value): Same.
19199 (estimate_local_effects): Same.
19200 (value_topo_info<valtype>::add_val): Same.
19201 (add_all_node_vals_to_toposort): Same.
19202 (value_topo_info<valtype>::propagate_effects): Same.
19203 (ipcp_propagate_stage): Same.
19204 (ipcp_discover_new_direct_edges): Same.
19205 (same_node_or_its_all_contexts_clone_p): Same.
19206 (cgraph_edge_brings_value_p): Same.
19207 (gather_edges_for_value): Same.
19208 (create_specialized_node): Same.
19209 (find_more_scalar_values_for_callers_subset): Same.
19210 (find_more_contexts_for_caller_subset): Same.
19211 (copy_plats_to_inter): Same.
19212 (intersect_aggregates_with_edge): Same.
19213 (find_aggregate_values_for_callers_subset): Same.
19214 (cgraph_edge_brings_all_agg_vals_for_node): Same.
19215 (decide_about_value): Same.
19216 (decide_whether_version_node): Same.
19217 (spread_undeadness): Same.
19218 (identify_dead_nodes): Same.
19219 (ipcp_store_vr_results): Same.
19220 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
19221 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
19222 (redirect_to_unreachable): Same.
19223 (edge_set_predicate): Same.
19224 (evaluate_conditions_for_known_args): Same.
19225 (evaluate_properties_for_edge): Same.
19226 (ipa_fn_summary_t::duplicate): Same.
19227 (ipa_call_summary_t::duplicate): Same.
19228 (dump_ipa_call_summary): Same.
19229 (ipa_dump_fn_summary): Same.
19230 (eliminated_by_inlining_prob): Same.
19231 (set_cond_stmt_execution_predicate): Same.
19232 (set_switch_stmt_execution_predicate): Same.
19233 (compute_bb_predicates): Same.
19234 (will_be_nonconstant_expr_predicate): Same.
19235 (phi_result_unknown_predicate): Same.
19236 (analyze_function_body): Same.
19237 (compute_fn_summary): Same.
19238 (estimate_edge_devirt_benefit): Same.
19239 (estimate_edge_size_and_time): Same.
19240 (estimate_calls_size_and_time): Same.
19241 (estimate_node_size_and_time): Same.
19242 (remap_edge_change_prob): Same.
19243 (remap_edge_summaries): Same.
19244 (ipa_merge_fn_summary_after_inlining): Same.
19245 (ipa_fn_summary_generate): Same.
19246 (inline_read_section): Same.
19247 (ipa_fn_summary_read): Same.
19248 (ipa_fn_summary_write): Same.
19249 * ipa-fnsummary.h: Same.
19250 * ipa-hsa.c (ipa_hsa_read_section): Same.
19251 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
19252 * ipa-icf.c (sem_function::param_used_p): Same.
19253 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
19254 * ipa-inline.c (edge_badness): Same.
19255 (inline_small_functions): Same.
19256 * ipa-polymorphic-call.c
19257 (ipa_polymorphic_call_context::stream_out): Same.
19258 * ipa-predicate.c (predicate::remap_after_duplication): Same.
19259 (predicate::remap_after_inlining): Same.
19260 (predicate::stream_out): Same.
19261 * ipa-predicate.h: Same.
19262 * ipa-profile.c (ipa_profile_read_summary): Same.
19263 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
19264 (count_formal_params): Same.
19265 (ipa_dump_param): Same.
19266 (ipa_alloc_node_params): Same.
19267 (ipa_print_node_jump_functions_for_edge): Same.
19268 (ipa_print_node_jump_functions): Same.
19269 (ipa_load_from_parm_agg): Same.
19270 (get_ancestor_addr_info): Same.
19271 (ipa_compute_jump_functions_for_edge): Same.
19272 (ipa_analyze_virtual_call_uses): Same.
19273 (ipa_analyze_stmt_uses): Same.
19274 (ipa_analyze_params_uses_in_bb): Same.
19275 (update_jump_functions_after_inlining): Same.
19276 (try_decrement_rdesc_refcount): Same.
19277 (ipa_impossible_devirt_target): Same.
19278 (update_indirect_edges_after_inlining): Same.
19279 (combine_controlled_uses_counters): Same.
19280 (ipa_edge_args_sum_t::duplicate): Same.
19281 (ipa_write_jump_function): Same.
19282 (ipa_write_indirect_edge_info): Same.
19283 (ipa_write_node_info): Same.
19284 (ipa_read_edge_info): Same.
19285 (ipa_prop_read_section): Same.
19286 (read_replacements_section): Same.
19287 * ipa-prop.h (ipa_get_param_count): Same.
19288 (ipa_get_param): Same.
19289 (ipa_get_type): Same.
19290 (ipa_get_param_move_cost): Same.
19291 (ipa_set_param_used): Same.
19292 (ipa_get_controlled_uses): Same.
19293 (ipa_set_controlled_uses): Same.
19294 (ipa_get_cs_argument_count): Same.
19295 * ipa-pure-const.c (analyze_function): Same.
19296 (pure_const_read_summary): Same.
19297 * ipa-ref.h: Same.
19298 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
19299 * ipa-split.c (test_nonssa_use): Same.
19300 (dump_split_point): Same.
19301 (dominated_by_forbidden): Same.
19302 (split_part_set_ssa_name_p): Same.
19303 (find_split_points): Same.
19304 * ira-build.c (finish_loop_tree_nodes): Same.
19305 (low_pressure_loop_node_p): Same.
19306 * ira-color.c (ira_reuse_stack_slot): Same.
19307 * ira-int.h: Same.
19308 * ira.c (setup_reg_equiv): Same.
19309 (print_insn_chain): Same.
19310 (ira): Same.
19311 * loop-doloop.c (doloop_condition_get): Same.
19312 (add_test): Same.
19313 (record_reg_sets): Same.
19314 (doloop_optimize): Same.
19315 * loop-init.c (loop_optimizer_init): Same.
19316 (fix_loop_structure): Same.
19317 * loop-invariant.c (merge_identical_invariants): Same.
19318 (compute_always_reached): Same.
19319 (find_exits): Same.
19320 (may_assign_reg_p): Same.
19321 (find_invariants_bb): Same.
19322 (find_invariants_body): Same.
19323 (replace_uses): Same.
19324 (can_move_invariant_reg): Same.
19325 (free_inv_motion_data): Same.
19326 (move_single_loop_invariants): Same.
19327 (change_pressure): Same.
19328 (mark_ref_regs): Same.
19329 (calculate_loop_reg_pressure): Same.
19330 * loop-iv.c (biv_entry_hasher::equal): Same.
19331 (iv_extend_to_rtx_code): Same.
19332 (check_iv_ref_table_size): Same.
19333 (clear_iv_info): Same.
19334 (latch_dominating_def): Same.
19335 (iv_get_reaching_def): Same.
19336 (iv_constant): Same.
19337 (iv_subreg): Same.
19338 (iv_extend): Same.
19339 (iv_neg): Same.
19340 (iv_add): Same.
19341 (iv_mult): Same.
19342 (get_biv_step): Same.
19343 (record_iv): Same.
19344 (analyzed_for_bivness_p): Same.
19345 (record_biv): Same.
19346 (iv_analyze_biv): Same.
19347 (iv_analyze_expr): Same.
19348 (iv_analyze_def): Same.
19349 (iv_analyze_op): Same.
19350 (iv_analyze): Same.
19351 (iv_analyze_result): Same.
19352 (biv_p): Same.
19353 (eliminate_implied_conditions): Same.
19354 (simplify_using_initial_values): Same.
19355 (shorten_into_mode): Same.
19356 (canonicalize_iv_subregs): Same.
19357 (determine_max_iter): Same.
19358 (check_simple_exit): Same.
19359 (find_simple_exit): Same.
19360 (get_simple_loop_desc): Same.
19361 * loop-unroll.c (report_unroll): Same.
19362 (decide_unrolling): Same.
19363 (unroll_loops): Same.
19364 (loop_exit_at_end_p): Same.
19365 (decide_unroll_constant_iterations): Same.
19366 (unroll_loop_constant_iterations): Same.
19367 (compare_and_jump_seq): Same.
19368 (unroll_loop_runtime_iterations): Same.
19369 (decide_unroll_stupid): Same.
19370 (unroll_loop_stupid): Same.
19371 (referenced_in_one_insn_in_loop_p): Same.
19372 (reset_debug_uses_in_loop): Same.
19373 (analyze_iv_to_split_insn): Same.
19374 * lra-eliminations.c (lra_debug_elim_table): Same.
19375 (setup_can_eliminate): Same.
19376 (form_sum): Same.
19377 (lra_get_elimination_hard_regno): Same.
19378 (lra_eliminate_regs_1): Same.
19379 (eliminate_regs_in_insn): Same.
19380 (update_reg_eliminate): Same.
19381 (init_elimination): Same.
19382 (lra_eliminate): Same.
19383 * lra-int.h: Same.
19384 * lra-lives.c (initiate_live_solver): Same.
19385 * lra-remat.c (create_remat_bb_data): Same.
19386 * lra-spills.c (lra_spill): Same.
19387 * lra.c (lra_set_insn_recog_data): Same.
19388 (lra_set_used_insn_alternative_by_uid): Same.
19389 (init_reg_info): Same.
19390 (expand_reg_info): Same.
19391 * lto-cgraph.c (output_symtab): Same.
19392 (read_identifier): Same.
19393 (get_alias_symbol): Same.
19394 (input_node): Same.
19395 (input_varpool_node): Same.
19396 (input_ref): Same.
19397 (input_edge): Same.
19398 (input_cgraph_1): Same.
19399 (input_refs): Same.
19400 (input_symtab): Same.
19401 (input_offload_tables): Same.
19402 (output_cgraph_opt_summary): Same.
19403 (input_edge_opt_summary): Same.
19404 (input_cgraph_opt_section): Same.
19405 * lto-section-in.c (lto_free_raw_section_data): Same.
19406 (lto_create_simple_input_block): Same.
19407 (lto_free_function_in_decl_state_for_node): Same.
19408 * lto-streamer-in.c (lto_tag_check_set): Same.
19409 (lto_location_cache::revert_location_cache): Same.
19410 (lto_location_cache::input_location): Same.
19411 (lto_input_location): Same.
19412 (stream_input_location_now): Same.
19413 (lto_input_tree_ref): Same.
19414 (lto_input_eh_catch_list): Same.
19415 (input_eh_region): Same.
19416 (lto_init_eh): Same.
19417 (make_new_block): Same.
19418 (input_cfg): Same.
19419 (fixup_call_stmt_edges): Same.
19420 (input_struct_function_base): Same.
19421 (input_function): Same.
19422 (lto_read_body_or_constructor): Same.
19423 (lto_read_tree_1): Same.
19424 (lto_read_tree): Same.
19425 (lto_input_scc): Same.
19426 (lto_input_tree_1): Same.
19427 (lto_input_toplevel_asms): Same.
19428 (lto_input_mode_table): Same.
19429 (lto_reader_init): Same.
19430 (lto_data_in_create): Same.
19431 * lto-streamer-out.c (output_cfg): Same.
19432 * lto-streamer.h: Same.
19433 * modulo-sched.c (duplicate_insns_of_cycles): Same.
19434 (generate_prolog_epilog): Same.
19435 (mark_loop_unsched): Same.
19436 (dump_insn_location): Same.
19437 (loop_canon_p): Same.
19438 (sms_schedule): Same.
19439 * omp-expand.c (expand_omp_for_ordered_loops): Same.
19440 (expand_omp_for_generic): Same.
19441 (expand_omp_for_static_nochunk): Same.
19442 (expand_omp_for_static_chunk): Same.
19443 (expand_omp_simd): Same.
19444 (expand_omp_taskloop_for_inner): Same.
19445 (expand_oacc_for): Same.
19446 (expand_omp_atomic_pipeline): Same.
19447 (mark_loops_in_oacc_kernels_region): Same.
19448 * omp-offload.c (oacc_xform_loop): Same.
19449 * omp-simd-clone.c (simd_clone_adjust): Same.
19450 * optabs-query.c (get_traditional_extraction_insn): Same.
19451 * optabs.c (expand_vector_broadcast): Same.
19452 (expand_binop_directly): Same.
19453 (expand_twoval_unop): Same.
19454 (expand_twoval_binop): Same.
19455 (expand_unop_direct): Same.
19456 (emit_indirect_jump): Same.
19457 (emit_conditional_move): Same.
19458 (emit_conditional_neg_or_complement): Same.
19459 (emit_conditional_add): Same.
19460 (vector_compare_rtx): Same.
19461 (expand_vec_perm_1): Same.
19462 (expand_vec_perm_const): Same.
19463 (expand_vec_cond_expr): Same.
19464 (expand_vec_series_expr): Same.
19465 (maybe_emit_atomic_exchange): Same.
19466 (maybe_emit_sync_lock_test_and_set): Same.
19467 (expand_atomic_compare_and_swap): Same.
19468 (expand_atomic_load): Same.
19469 (expand_atomic_store): Same.
19470 (maybe_emit_op): Same.
19471 (valid_multiword_target_p): Same.
19472 (create_integer_operand): Same.
19473 (maybe_legitimize_operand_same_code): Same.
19474 (maybe_legitimize_operand): Same.
19475 (create_convert_operand_from_type): Same.
19476 (can_reuse_operands_p): Same.
19477 (maybe_legitimize_operands): Same.
19478 (maybe_gen_insn): Same.
19479 (maybe_expand_insn): Same.
19480 (maybe_expand_jump_insn): Same.
19481 (expand_insn): Same.
19482 * optabs.h (create_expand_operand): Same.
19483 (create_fixed_operand): Same.
19484 (create_output_operand): Same.
19485 (create_input_operand): Same.
19486 (create_convert_operand_to): Same.
19487 (create_convert_operand_from): Same.
19488 * optinfo.h: Same.
19489 * poly-int.h: Same.
19490 * predict.c (optimize_insn_for_speed_p): Same.
19491 (optimize_loop_for_size_p): Same.
19492 (optimize_loop_for_speed_p): Same.
19493 (optimize_loop_nest_for_speed_p): Same.
19494 (get_base_value): Same.
19495 (predicted_by_loop_heuristics_p): Same.
19496 (predict_extra_loop_exits): Same.
19497 (predict_loops): Same.
19498 (predict_paths_for_bb): Same.
19499 (predict_paths_leading_to): Same.
19500 (propagate_freq): Same.
19501 (pass_profile::execute): Same.
19502 * predict.h: Same.
19503 * profile-count.c (profile_count::differs_from_p): Same.
19504 (profile_probability::differs_lot_from_p): Same.
19505 * profile-count.h: Same.
19506 * profile.c (branch_prob): Same.
19507 * regrename.c (free_chain_data): Same.
19508 (mark_conflict): Same.
19509 (create_new_chain): Same.
19510 (merge_overlapping_regs): Same.
19511 (init_rename_info): Same.
19512 (merge_chains): Same.
19513 (regrename_analyze): Same.
19514 (regrename_do_replace): Same.
19515 (scan_rtx_reg): Same.
19516 (record_out_operands): Same.
19517 (build_def_use): Same.
19518 * regrename.h: Same.
19519 * reload.h: Same.
19520 * reload1.c (init_reload): Same.
19521 (maybe_fix_stack_asms): Same.
19522 (copy_reloads): Same.
19523 (count_pseudo): Same.
19524 (count_spilled_pseudo): Same.
19525 (find_reg): Same.
19526 (find_reload_regs): Same.
19527 (select_reload_regs): Same.
19528 (spill_hard_reg): Same.
19529 (fixup_eh_region_note): Same.
19530 (set_reload_reg): Same.
19531 (allocate_reload_reg): Same.
19532 (compute_reload_subreg_offset): Same.
19533 (reload_adjust_reg_for_icode): Same.
19534 (emit_input_reload_insns): Same.
19535 (emit_output_reload_insns): Same.
19536 (do_input_reload): Same.
19537 (inherit_piecemeal_p): Same.
19538 * rtl.h: Same.
19539 * sanopt.c (maybe_get_dominating_check): Same.
19540 (maybe_optimize_ubsan_ptr_ifn): Same.
19541 (can_remove_asan_check): Same.
19542 (maybe_optimize_asan_check_ifn): Same.
19543 (sanopt_optimize_walker): Same.
19544 * sched-deps.c (add_dependence_list): Same.
19545 (chain_to_prev_insn): Same.
19546 (add_insn_mem_dependence): Same.
19547 (create_insn_reg_set): Same.
19548 (maybe_extend_reg_info_p): Same.
19549 (sched_analyze_reg): Same.
19550 (sched_analyze_1): Same.
19551 (get_implicit_reg_pending_clobbers): Same.
19552 (chain_to_prev_insn_p): Same.
19553 (deps_analyze_insn): Same.
19554 (deps_start_bb): Same.
19555 (sched_free_deps): Same.
19556 (init_deps): Same.
19557 (init_deps_reg_last): Same.
19558 (free_deps): Same.
19559 * sched-ebb.c: Same.
19560 * sched-int.h: Same.
19561 * sched-rgn.c (add_branch_dependences): Same.
19562 (concat_insn_mem_list): Same.
19563 (deps_join): Same.
19564 (sched_rgn_compute_dependencies): Same.
19565 * sel-sched-ir.c (reset_target_context): Same.
19566 (copy_deps_context): Same.
19567 (init_id_from_df): Same.
19568 (has_dependence_p): Same.
19569 (change_loops_latches): Same.
19570 (bb_top_order_comparator): Same.
19571 (make_region_from_loop_preheader): Same.
19572 (sel_init_pipelining): Same.
19573 (get_loop_nest_for_rgn): Same.
19574 (make_regions_from_the_rest): Same.
19575 (sel_is_loop_preheader_p): Same.
19576 * sel-sched-ir.h (inner_loop_header_p): Same.
19577 (get_all_loop_exits): Same.
19578 * selftest.h: Same.
19579 * sese.c (sese_build_liveouts): Same.
19580 (sese_insert_phis_for_liveouts): Same.
19581 * sese.h (defined_in_sese_p): Same.
19582 * sreal.c (sreal::stream_out): Same.
19583 * sreal.h: Same.
19584 * streamer-hooks.h: Same.
19585 * target-globals.c (save_target_globals): Same.
19586 * target-globals.h: Same.
19587 * target.def: Same.
19588 * target.h: Same.
19589 * targhooks.c (default_has_ifunc_p): Same.
19590 (default_empty_mask_is_expensive): Same.
19591 (default_init_cost): Same.
19592 * targhooks.h: Same.
19593 * toplev.c: Same.
19594 * tree-affine.c (aff_combination_mult): Same.
19595 (aff_combination_expand): Same.
19596 (aff_combination_constant_multiple_p): Same.
19597 * tree-affine.h: Same.
19598 * tree-cfg.c (build_gimple_cfg): Same.
19599 (replace_loop_annotate_in_block): Same.
19600 (replace_uses_by): Same.
19601 (remove_bb): Same.
19602 (dump_cfg_stats): Same.
19603 (gimple_duplicate_sese_region): Same.
19604 (gimple_duplicate_sese_tail): Same.
19605 (move_block_to_fn): Same.
19606 (replace_block_vars_by_duplicates): Same.
19607 (move_sese_region_to_fn): Same.
19608 (print_loops_bb): Same.
19609 (print_loop): Same.
19610 (print_loops): Same.
19611 (debug): Same.
19612 (debug_loops): Same.
19613 * tree-cfg.h: Same.
19614 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
19615 (chrec_fold_multiply_poly_poly): Same.
19616 (chrec_evaluate): Same.
19617 (chrec_component_in_loop_num): Same.
19618 (reset_evolution_in_loop): Same.
19619 (is_multivariate_chrec): Same.
19620 (chrec_contains_symbols): Same.
19621 (nb_vars_in_chrec): Same.
19622 (chrec_convert_1): Same.
19623 (chrec_convert_aggressive): Same.
19624 * tree-chrec.h: Same.
19625 * tree-core.h: Same.
19626 * tree-data-ref.c (dump_data_dependence_relation): Same.
19627 (canonicalize_base_object_address): Same.
19628 (data_ref_compare_tree): Same.
19629 (prune_runtime_alias_test_list): Same.
19630 (get_segment_min_max): Same.
19631 (create_intersect_range_checks): Same.
19632 (conflict_fn_no_dependence): Same.
19633 (object_address_invariant_in_loop_p): Same.
19634 (analyze_ziv_subscript): Same.
19635 (analyze_siv_subscript_cst_affine): Same.
19636 (analyze_miv_subscript): Same.
19637 (analyze_overlapping_iterations): Same.
19638 (build_classic_dist_vector_1): Same.
19639 (add_other_self_distances): Same.
19640 (same_access_functions): Same.
19641 (build_classic_dir_vector): Same.
19642 (subscript_dependence_tester_1): Same.
19643 (subscript_dependence_tester): Same.
19644 (access_functions_are_affine_or_constant_p): Same.
19645 (get_references_in_stmt): Same.
19646 (loop_nest_has_data_refs): Same.
19647 (graphite_find_data_references_in_stmt): Same.
19648 (find_data_references_in_bb): Same.
19649 (get_base_for_alignment): Same.
19650 (find_loop_nest_1): Same.
19651 (find_loop_nest): Same.
19652 * tree-data-ref.h (dr_alignment): Same.
19653 (ddr_dependence_level): Same.
19654 * tree-if-conv.c (fold_build_cond_expr): Same.
19655 (add_to_predicate_list): Same.
19656 (add_to_dst_predicate_list): Same.
19657 (phi_convertible_by_degenerating_args): Same.
19658 (idx_within_array_bound): Same.
19659 (all_preds_critical_p): Same.
19660 (pred_blocks_visited_p): Same.
19661 (predicate_bbs): Same.
19662 (build_region): Same.
19663 (if_convertible_loop_p_1): Same.
19664 (is_cond_scalar_reduction): Same.
19665 (predicate_scalar_phi): Same.
19666 (remove_conditions_and_labels): Same.
19667 (combine_blocks): Same.
19668 (version_loop_for_if_conversion): Same.
19669 (versionable_outer_loop_p): Same.
19670 (ifcvt_local_dce): Same.
19671 (tree_if_conversion): Same.
19672 (pass_if_conversion::gate): Same.
19673 * tree-if-conv.h: Same.
19674 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
19675 * tree-loop-distribution.c (bb_top_order_cmp): Same.
19676 (free_rdg): Same.
19677 (stmt_has_scalar_dependences_outside_loop): Same.
19678 (copy_loop_before): Same.
19679 (create_bb_after_loop): Same.
19680 (const_with_all_bytes_same): Same.
19681 (generate_memset_builtin): Same.
19682 (generate_memcpy_builtin): Same.
19683 (destroy_loop): Same.
19684 (build_rdg_partition_for_vertex): Same.
19685 (compute_access_range): Same.
19686 (data_ref_segment_size): Same.
19687 (latch_dominated_by_data_ref): Same.
19688 (compute_alias_check_pairs): Same.
19689 (fuse_memset_builtins): Same.
19690 (finalize_partitions): Same.
19691 (find_seed_stmts_for_distribution): Same.
19692 (prepare_perfect_loop_nest): Same.
19693 * tree-parloops.c (lambda_transform_legal_p): Same.
19694 (loop_parallel_p): Same.
19695 (reduc_stmt_res): Same.
19696 (add_field_for_name): Same.
19697 (create_call_for_reduction_1): Same.
19698 (replace_uses_in_bb_by): Same.
19699 (transform_to_exit_first_loop_alt): Same.
19700 (try_transform_to_exit_first_loop_alt): Same.
19701 (transform_to_exit_first_loop): Same.
19702 (num_phis): Same.
19703 (gen_parallel_loop): Same.
19704 (gather_scalar_reductions): Same.
19705 (get_omp_data_i_param): Same.
19706 (try_create_reduction_list): Same.
19707 (oacc_entry_exit_single_gang): Same.
19708 (parallelize_loops): Same.
19709 * tree-pass.h: Same.
19710 * tree-predcom.c (determine_offset): Same.
19711 (last_always_executed_block): Same.
19712 (split_data_refs_to_components): Same.
19713 (suitable_component_p): Same.
19714 (valid_initializer_p): Same.
19715 (find_looparound_phi): Same.
19716 (insert_looparound_copy): Same.
19717 (add_looparound_copies): Same.
19718 (determine_roots_comp): Same.
19719 (predcom_tmp_var): Same.
19720 (initialize_root_vars): Same.
19721 (initialize_root_vars_store_elim_1): Same.
19722 (initialize_root_vars_store_elim_2): Same.
19723 (finalize_eliminated_stores): Same.
19724 (initialize_root_vars_lm): Same.
19725 (remove_stmt): Same.
19726 (determine_unroll_factor): Same.
19727 (execute_pred_commoning_cbck): Same.
19728 (base_names_in_chain_on): Same.
19729 (combine_chains): Same.
19730 (pcom_stmt_dominates_stmt_p): Same.
19731 (try_combine_chains): Same.
19732 (prepare_initializers_chain_store_elim): Same.
19733 (prepare_initializers_chain): Same.
19734 (prepare_initializers): Same.
19735 (prepare_finalizers_chain): Same.
19736 (prepare_finalizers): Same.
19737 (insert_init_seqs): Same.
19738 * tree-scalar-evolution.c (loop_phi_node_p): Same.
19739 (compute_overall_effect_of_inner_loop): Same.
19740 (add_to_evolution_1): Same.
19741 (add_to_evolution): Same.
19742 (follow_ssa_edge_binary): Same.
19743 (follow_ssa_edge_expr): Same.
19744 (backedge_phi_arg_p): Same.
19745 (follow_ssa_edge_in_condition_phi_branch): Same.
19746 (follow_ssa_edge_in_condition_phi): Same.
19747 (follow_ssa_edge_inner_loop_phi): Same.
19748 (follow_ssa_edge): Same.
19749 (analyze_evolution_in_loop): Same.
19750 (analyze_initial_condition): Same.
19751 (interpret_loop_phi): Same.
19752 (interpret_condition_phi): Same.
19753 (interpret_rhs_expr): Same.
19754 (interpret_expr): Same.
19755 (interpret_gimple_assign): Same.
19756 (analyze_scalar_evolution_1): Same.
19757 (analyze_scalar_evolution): Same.
19758 (analyze_scalar_evolution_for_address_of): Same.
19759 (get_instantiated_value_entry): Same.
19760 (loop_closed_phi_def): Same.
19761 (instantiate_scev_name): Same.
19762 (instantiate_scev_poly): Same.
19763 (instantiate_scev_binary): Same.
19764 (instantiate_scev_convert): Same.
19765 (instantiate_scev_not): Same.
19766 (instantiate_scev_r): Same.
19767 (instantiate_scev): Same.
19768 (resolve_mixers): Same.
19769 (initialize_scalar_evolutions_analyzer): Same.
19770 (scev_reset_htab): Same.
19771 (scev_reset): Same.
19772 (derive_simple_iv_with_niters): Same.
19773 (simple_iv_with_niters): Same.
19774 (expression_expensive_p): Same.
19775 (final_value_replacement_loop): Same.
19776 * tree-scalar-evolution.h (block_before_loop): Same.
19777 * tree-ssa-address.h: Same.
19778 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
19779 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
19780 (record_edge_info): Same.
19781 * tree-ssa-live.c (var_map_base_fini): Same.
19782 (remove_unused_locals): Same.
19783 * tree-ssa-live.h: Same.
19784 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
19785 (pass_ch_vect::execute): Same.
19786 (pass_ch::process_loop_p): Same.
19787 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
19788 (movement_possibility): Same.
19789 (outermost_invariant_loop): Same.
19790 (stmt_cost): Same.
19791 (determine_max_movement): Same.
19792 (invariantness_dom_walker::before_dom_children): Same.
19793 (move_computations): Same.
19794 (may_move_till): Same.
19795 (force_move_till_op): Same.
19796 (force_move_till): Same.
19797 (memref_free): Same.
19798 (record_mem_ref_loc): Same.
19799 (set_ref_stored_in_loop): Same.
19800 (mark_ref_stored): Same.
19801 (sort_bbs_in_loop_postorder_cmp): Same.
19802 (sort_locs_in_loop_postorder_cmp): Same.
19803 (analyze_memory_references): Same.
19804 (mem_refs_may_alias_p): Same.
19805 (find_ref_loc_in_loop_cmp): Same.
19806 (rewrite_mem_ref_loc::operator): Same.
19807 (first_mem_ref_loc_1::operator): Same.
19808 (sm_set_flag_if_changed::operator): Same.
19809 (execute_sm_if_changed_flag_set): Same.
19810 (execute_sm): Same.
19811 (hoist_memory_references): Same.
19812 (ref_always_accessed::operator): Same.
19813 (refs_independent_p): Same.
19814 (record_dep_loop): Same.
19815 (ref_indep_loop_p_1): Same.
19816 (ref_indep_loop_p): Same.
19817 (can_sm_ref_p): Same.
19818 (find_refs_for_sm): Same.
19819 (loop_suitable_for_sm): Same.
19820 (store_motion_loop): Same.
19821 (store_motion): Same.
19822 (fill_always_executed_in): Same.
19823 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
19824 (estimated_unrolled_size): Same.
19825 (loop_edge_to_cancel): Same.
19826 (remove_exits_and_undefined_stmts): Same.
19827 (remove_redundant_iv_tests): Same.
19828 (unloop_loops): Same.
19829 (estimated_peeled_sequence_size): Same.
19830 (try_peel_loop): Same.
19831 (canonicalize_loop_induction_variables): Same.
19832 (canonicalize_induction_variables): Same.
19833 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
19834 (name_info): Same.
19835 (stmt_after_inc_pos): Same.
19836 (contains_abnormal_ssa_name_p): Same.
19837 (niter_for_exit): Same.
19838 (find_bivs): Same.
19839 (mark_bivs): Same.
19840 (find_givs_in_bb): Same.
19841 (find_induction_variables): Same.
19842 (find_interesting_uses_cond): Same.
19843 (outermost_invariant_loop_for_expr): Same.
19844 (idx_find_step): Same.
19845 (add_candidate_1): Same.
19846 (add_iv_candidate_derived_from_uses): Same.
19847 (alloc_use_cost_map): Same.
19848 (prepare_decl_rtl): Same.
19849 (generic_predict_doloop_p): Same.
19850 (computation_cost): Same.
19851 (determine_common_wider_type): Same.
19852 (get_computation_aff_1): Same.
19853 (get_use_type): Same.
19854 (determine_group_iv_cost_address): Same.
19855 (iv_period): Same.
19856 (difference_cannot_overflow_p): Same.
19857 (may_eliminate_iv): Same.
19858 (determine_set_costs): Same.
19859 (cheaper_cost_pair): Same.
19860 (compare_cost_pair): Same.
19861 (iv_ca_cand_for_group): Same.
19862 (iv_ca_recount_cost): Same.
19863 (iv_ca_set_remove_invs): Same.
19864 (iv_ca_set_no_cp): Same.
19865 (iv_ca_set_add_invs): Same.
19866 (iv_ca_set_cp): Same.
19867 (iv_ca_add_group): Same.
19868 (iv_ca_cost): Same.
19869 (iv_ca_compare_deps): Same.
19870 (iv_ca_delta_reverse): Same.
19871 (iv_ca_delta_commit): Same.
19872 (iv_ca_cand_used_p): Same.
19873 (iv_ca_delta_free): Same.
19874 (iv_ca_new): Same.
19875 (iv_ca_free): Same.
19876 (iv_ca_dump): Same.
19877 (iv_ca_extend): Same.
19878 (iv_ca_narrow): Same.
19879 (iv_ca_prune): Same.
19880 (cheaper_cost_with_cand): Same.
19881 (iv_ca_replace): Same.
19882 (try_add_cand_for): Same.
19883 (get_initial_solution): Same.
19884 (try_improve_iv_set): Same.
19885 (find_optimal_iv_set_1): Same.
19886 (create_new_iv): Same.
19887 (rewrite_use_compare): Same.
19888 (remove_unused_ivs): Same.
19889 (determine_scaling_factor): Same.
19890 * tree-ssa-loop-ivopts.h: Same.
19891 * tree-ssa-loop-manip.c (create_iv): Same.
19892 (compute_live_loop_exits): Same.
19893 (add_exit_phi): Same.
19894 (add_exit_phis): Same.
19895 (find_uses_to_rename_use): Same.
19896 (find_uses_to_rename_def): Same.
19897 (find_uses_to_rename_in_loop): Same.
19898 (rewrite_into_loop_closed_ssa): Same.
19899 (check_loop_closed_ssa_bb): Same.
19900 (split_loop_exit_edge): Same.
19901 (ip_end_pos): Same.
19902 (ip_normal_pos): Same.
19903 (copy_phi_node_args): Same.
19904 (gimple_duplicate_loop_to_header_edge): Same.
19905 (can_unroll_loop_p): Same.
19906 (determine_exit_conditions): Same.
19907 (scale_dominated_blocks_in_loop): Same.
19908 (niter_for_unrolled_loop): Same.
19909 (tree_transform_and_unroll_loop): Same.
19910 (rewrite_all_phi_nodes_with_iv): Same.
19911 * tree-ssa-loop-manip.h: Same.
19912 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
19913 (number_of_iterations_ne): Same.
19914 (assert_no_overflow_lt): Same.
19915 (assert_loop_rolls_lt): Same.
19916 (number_of_iterations_lt): Same.
19917 (adjust_cond_for_loop_until_wrap): Same.
19918 (tree_simplify_using_condition): Same.
19919 (simplify_using_initial_conditions): Same.
19920 (simplify_using_outer_evolutions): Same.
19921 (loop_only_exit_p): Same.
19922 (ssa_defined_by_minus_one_stmt_p): Same.
19923 (number_of_iterations_popcount): Same.
19924 (number_of_iterations_exit): Same.
19925 (find_loop_niter): Same.
19926 (finite_loop_p): Same.
19927 (chain_of_csts_start): Same.
19928 (get_val_for): Same.
19929 (loop_niter_by_eval): Same.
19930 (derive_constant_upper_bound_ops): Same.
19931 (do_warn_aggressive_loop_optimizations): Same.
19932 (record_estimate): Same.
19933 (get_cst_init_from_scev): Same.
19934 (record_nonwrapping_iv): Same.
19935 (idx_infer_loop_bounds): Same.
19936 (infer_loop_bounds_from_ref): Same.
19937 (infer_loop_bounds_from_array): Same.
19938 (infer_loop_bounds_from_pointer_arith): Same.
19939 (infer_loop_bounds_from_signedness): Same.
19940 (bound_index): Same.
19941 (discover_iteration_bound_by_body_walk): Same.
19942 (maybe_lower_iteration_bound): Same.
19943 (estimate_numbers_of_iterations): Same.
19944 (estimated_loop_iterations): Same.
19945 (estimated_loop_iterations_int): Same.
19946 (max_loop_iterations): Same.
19947 (max_loop_iterations_int): Same.
19948 (likely_max_loop_iterations): Same.
19949 (likely_max_loop_iterations_int): Same.
19950 (estimated_stmt_executions_int): Same.
19951 (max_stmt_executions): Same.
19952 (likely_max_stmt_executions): Same.
19953 (estimated_stmt_executions): Same.
19954 (stmt_dominates_stmt_p): Same.
19955 (nowrap_type_p): Same.
19956 (loop_exits_before_overflow): Same.
19957 (scev_var_range_cant_overflow): Same.
19958 (scev_probably_wraps_p): Same.
19959 (free_numbers_of_iterations_estimates): Same.
19960 * tree-ssa-loop-niter.h: Same.
19961 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
19962 (idx_analyze_ref): Same.
19963 (analyze_ref): Same.
19964 (gather_memory_references_ref): Same.
19965 (mark_nontemporal_store): Same.
19966 (emit_mfence_after_loop): Same.
19967 (may_use_storent_in_loop_p): Same.
19968 (mark_nontemporal_stores): Same.
19969 (should_unroll_loop_p): Same.
19970 (volume_of_dist_vector): Same.
19971 (add_subscript_strides): Same.
19972 (self_reuse_distance): Same.
19973 (insn_to_prefetch_ratio_too_small_p): Same.
19974 * tree-ssa-loop-split.c (split_at_bb_p): Same.
19975 (patch_loop_exit): Same.
19976 (find_or_create_guard_phi): Same.
19977 (easy_exit_values): Same.
19978 (connect_loop_phis): Same.
19979 (connect_loops): Same.
19980 (compute_new_first_bound): Same.
19981 (split_loop): Same.
19982 (tree_ssa_split_loops): Same.
19983 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
19984 (is_maybe_undefined): Same.
19985 (tree_may_unswitch_on): Same.
19986 (simplify_using_entry_checks): Same.
19987 (tree_unswitch_single_loop): Same.
19988 (tree_unswitch_loop): Same.
19989 (tree_unswitch_outer_loop): Same.
19990 (empty_bb_without_guard_p): Same.
19991 (used_outside_loop_p): Same.
19992 (get_vop_from_header): Same.
19993 (hoist_guard): Same.
19994 * tree-ssa-loop.c (gate_oacc_kernels): Same.
19995 (get_lsm_tmp_name): Same.
19996 * tree-ssa-loop.h: Same.
19997 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
19998 (build_and_add_sum): Same.
19999 (no_side_effect_bb): Same.
20000 (get_ops): Same.
20001 (linearize_expr): Same.
20002 (should_break_up_subtract): Same.
20003 (linearize_expr_tree): Same.
20004 * tree-ssa-scopedtables.c: Same.
20005 * tree-ssa-scopedtables.h: Same.
20006 * tree-ssa-structalias.c (condense_visit): Same.
20007 (label_visit): Same.
20008 (dump_pred_graph): Same.
20009 (perform_var_substitution): Same.
20010 (move_complex_constraints): Same.
20011 (remove_preds_and_fake_succs): Same.
20012 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
20013 (determine_bb_domination_status): Same.
20014 (duplicate_thread_path): Same.
20015 (thread_through_all_blocks): Same.
20016 * tree-ssa-threadupdate.h: Same.
20017 * tree-streamer-in.c (streamer_read_string_cst): Same.
20018 (input_identifier): Same.
20019 (unpack_ts_type_common_value_fields): Same.
20020 (unpack_ts_block_value_fields): Same.
20021 (unpack_ts_translation_unit_decl_value_fields): Same.
20022 (unpack_ts_omp_clause_value_fields): Same.
20023 (streamer_read_tree_bitfields): Same.
20024 (streamer_alloc_tree): Same.
20025 (lto_input_ts_common_tree_pointers): Same.
20026 (lto_input_ts_vector_tree_pointers): Same.
20027 (lto_input_ts_poly_tree_pointers): Same.
20028 (lto_input_ts_complex_tree_pointers): Same.
20029 (lto_input_ts_decl_minimal_tree_pointers): Same.
20030 (lto_input_ts_decl_common_tree_pointers): Same.
20031 (lto_input_ts_decl_non_common_tree_pointers): Same.
20032 (lto_input_ts_decl_with_vis_tree_pointers): Same.
20033 (lto_input_ts_field_decl_tree_pointers): Same.
20034 (lto_input_ts_function_decl_tree_pointers): Same.
20035 (lto_input_ts_type_common_tree_pointers): Same.
20036 (lto_input_ts_type_non_common_tree_pointers): Same.
20037 (lto_input_ts_list_tree_pointers): Same.
20038 (lto_input_ts_vec_tree_pointers): Same.
20039 (lto_input_ts_exp_tree_pointers): Same.
20040 (lto_input_ts_block_tree_pointers): Same.
20041 (lto_input_ts_binfo_tree_pointers): Same.
20042 (lto_input_ts_constructor_tree_pointers): Same.
20043 (lto_input_ts_omp_clause_tree_pointers): Same.
20044 (streamer_read_tree_body): Same.
20045 * tree-streamer.h: Same.
20046 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
20047 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
20048 (vect_analyze_possibly_independent_ddr): Same.
20049 (vect_analyze_data_ref_dependence): Same.
20050 (vect_compute_data_ref_alignment): Same.
20051 (vect_enhance_data_refs_alignment): Same.
20052 (vect_analyze_data_ref_access): Same.
20053 (vect_check_gather_scatter): Same.
20054 (vect_find_stmt_data_reference): Same.
20055 (vect_create_addr_base_for_vector_ref): Same.
20056 (vect_setup_realignment): Same.
20057 (vect_supportable_dr_alignment): Same.
20058 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
20059 (adjust_phi_and_debug_stmts): Same.
20060 (vect_set_loop_mask): Same.
20061 (add_preheader_seq): Same.
20062 (vect_maybe_permute_loop_masks): Same.
20063 (vect_set_loop_masks_directly): Same.
20064 (vect_set_loop_condition_masked): Same.
20065 (vect_set_loop_condition_unmasked): Same.
20066 (slpeel_duplicate_current_defs_from_edges): Same.
20067 (slpeel_add_loop_guard): Same.
20068 (slpeel_can_duplicate_loop_p): Same.
20069 (create_lcssa_for_virtual_phi): Same.
20070 (iv_phi_p): Same.
20071 (vect_update_ivs_after_vectorizer): Same.
20072 (vect_gen_vector_loop_niters_mult_vf): Same.
20073 (slpeel_update_phi_nodes_for_loops): Same.
20074 (slpeel_update_phi_nodes_for_guard1): Same.
20075 (find_guard_arg): Same.
20076 (slpeel_update_phi_nodes_for_guard2): Same.
20077 (slpeel_update_phi_nodes_for_lcssa): Same.
20078 (vect_do_peeling): Same.
20079 (vect_create_cond_for_alias_checks): Same.
20080 (vect_loop_versioning): Same.
20081 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
20082 (vect_inner_phi_in_double_reduction_p): Same.
20083 (vect_analyze_scalar_cycles_1): Same.
20084 (vect_fixup_scalar_cycles_with_patterns): Same.
20085 (vect_get_loop_niters): Same.
20086 (bb_in_loop_p): Same.
20087 (vect_get_max_nscalars_per_iter): Same.
20088 (vect_verify_full_masking): Same.
20089 (vect_compute_single_scalar_iteration_cost): Same.
20090 (vect_analyze_loop_form_1): Same.
20091 (vect_analyze_loop_form): Same.
20092 (vect_active_double_reduction_p): Same.
20093 (vect_analyze_loop_operations): Same.
20094 (neutral_op_for_slp_reduction): Same.
20095 (vect_is_simple_reduction): Same.
20096 (vect_model_reduction_cost): Same.
20097 (get_initial_def_for_reduction): Same.
20098 (get_initial_defs_for_reduction): Same.
20099 (vect_create_epilog_for_reduction): Same.
20100 (vectorize_fold_left_reduction): Same.
20101 (vectorizable_reduction): Same.
20102 (vectorizable_induction): Same.
20103 (vectorizable_live_operation): Same.
20104 (loop_niters_no_overflow): Same.
20105 (vect_get_loop_mask): Same.
20106 (vect_transform_loop_stmt): Same.
20107 (vect_transform_loop): Same.
20108 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
20109 (vect_determine_precisions): Same.
20110 (vect_pattern_recog_1): Same.
20111 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
20112 * tree-vect-stmts.c (stmt_vectype): Same.
20113 (process_use): Same.
20114 (vect_init_vector_1): Same.
20115 (vect_truncate_gather_scatter_offset): Same.
20116 (get_group_load_store_type): Same.
20117 (vect_build_gather_load_calls): Same.
20118 (vect_get_strided_load_store_ops): Same.
20119 (vectorizable_simd_clone_call): Same.
20120 (vectorizable_store): Same.
20121 (permute_vec_elements): Same.
20122 (vectorizable_load): Same.
20123 (vect_transform_stmt): Same.
20124 (supportable_widening_operation): Same.
20125 * tree-vectorizer.c (vec_info::replace_stmt): Same.
20126 (vec_info::free_stmt_vec_info): Same.
20127 (vect_free_loop_info_assumptions): Same.
20128 (vect_loop_vectorized_call): Same.
20129 (set_uid_loop_bbs): Same.
20130 (vectorize_loops): Same.
20131 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
20132 * tree.c (add_tree_to_fld_list): Same.
20133 (fld_type_variant_equal_p): Same.
20134 (fld_decl_context): Same.
20135 (fld_incomplete_type_of): Same.
20136 (free_lang_data_in_binfo): Same.
20137 (need_assembler_name_p): Same.
20138 (find_decls_types_r): Same.
20139 (get_eh_types_for_runtime): Same.
20140 (find_decls_types_in_eh_region): Same.
20141 (find_decls_types_in_node): Same.
20142 (assign_assembler_name_if_needed): Same.
20143 * value-prof.c (stream_out_histogram_value): Same.
20144 * value-prof.h: Same.
20145 * var-tracking.c (use_narrower_mode): Same.
20146 (prepare_call_arguments): Same.
20147 (vt_expand_loc_callback): Same.
20148 (resolve_expansions_pending_recursion): Same.
20149 (vt_expand_loc): Same.
20150 * varasm.c (const_hash_1): Same.
20151 (compare_constant): Same.
20152 (tree_output_constant_def): Same.
20153 (simplify_subtraction): Same.
20154 (get_pool_constant): Same.
20155 (output_constant_pool_2): Same.
20156 (output_constant_pool_1): Same.
20157 (mark_constants_in_pattern): Same.
20158 (mark_constant_pool): Same.
20159 (get_section_anchor): Same.
20160 * vr-values.c (compare_range_with_value): Same.
20161 (vr_values::extract_range_from_phi_node): Same.
20162 * vr-values.h: Same.
20163 * web.c (unionfind_union): Same.
20164 * wide-int.h: Same.
20165
20166 2019-07-09 Martin Sebor <msebor@redhat.com>
20167
20168 PR c++/61339
20169 * align.h: Change class-key from class to struct and vice versa
20170 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
20171 * alloc-pool.h: Same.
20172 * asan.c (shadow_mem_size): Same.
20173 * auto-profile.c: Same.
20174 * basic-block.h: Same.
20175 * bitmap.h: Same.
20176 * cfgexpand.c (set_rtl): Same.
20177 (expand_one_stack_var_at): Same.
20178 * cfghooks.h: Same.
20179 * cfgloop.h: Same.
20180 * cgraph.h: Same.
20181 * config/i386/i386.h: Same.
20182 * df-problems.c (df_print_bb_index): Same.
20183 * df-scan.c: Same.
20184 * df.h (df_single_use): Same.
20185 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
20186 (layout::annotation_line_showed_range_p): Same.
20187 (get_printed_columns): Same.
20188 (correction::ensure_terminated): Same.
20189 (line_corrections::~line_corrections): Same.
20190 * dojump.h: Same.
20191 * dse.c: Same.
20192 * dump-context.h: Same.
20193 * dumpfile.h: Same.
20194 * dwarf2out.c: Same.
20195 * edit-context.c: Same.
20196 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
20197 * flags.h: Same.
20198 * function.c (assign_stack_local): Same.
20199 * function.h: Same.
20200 * gcc.c: Same.
20201 * gcov.c (block_info::block_info): Same.
20202 * genattrtab.c: Same.
20203 * genextract.c: Same.
20204 * genmatch.c (comparison_code_p): Same.
20205 (id_base::id_base): Same.
20206 (decision_tree::print): Same.
20207 * genoutput.c: Same.
20208 * genpreds.c (write_one_predicate_function): Same.
20209 * genrecog.c (validate_pattern): Same.
20210 (find_operand_positions): Same.
20211 (optimize_subroutine_group): Same.
20212 (merge_pattern_transition::merge_pattern_transition): Same.
20213 (merge_pattern_info::merge_pattern_info): Same.
20214 (merge_state_result::merge_state_result): Same.
20215 (merge_into_state): Same.
20216 * gensupport.c: Same.
20217 * gensupport.h: Same.
20218 * ggc-common.c (init_ggc_heuristics): Same.
20219 * ggc-tests.c (test_union): Same.
20220 * gimple-loop-interchange.cc (dump_induction): Same.
20221 * gimple-loop-versioning.cc: Same.
20222 * gimple-match.h (gimple_match_cond::any_else): Same.
20223 * gimple-ssa-backprop.c: Same.
20224 * gimple-ssa-sprintf.c: Same.
20225 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
20226 Same.
20227 (store_immediate_info::store_immediate_info): Same.
20228 (merged_store_group::apply_stores): Same.
20229 (get_location_for_stmts): Same.
20230 * gimple-ssa-strength-reduction.c: Same.
20231 * gimple-ssa-warn-alloca.c: Same.
20232 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
20233 * godump.c (go_type_decl): Same.
20234 * hash-map-tests.c (test_map_of_strings_to_int): Same.
20235 * hash-map.h: Same.
20236 * hash-set-tests.c (test_set_of_strings): Same.
20237 * hsa-brig.c: Same.
20238 * hsa-common.h: Same.
20239 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
20240 * input.c (assert_loceq): Same.
20241 * input.h: Same.
20242 * ipa-cp.c: Same.
20243 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
20244 * ipa-fnsummary.h: Same.
20245 * ipa-inline.h: Same.
20246 * ipa-prop.h: Same.
20247 * ipa-split.c (visit_bb): Same.
20248 * ira-int.h (minmax_set_iter_next): Same.
20249 * loop-invariant.c: Same.
20250 * loop-iv.c: Same.
20251 * lra-eliminations.c: Same.
20252 * lra-int.h: Same.
20253 * lra-lives.c (mark_regno_dead): Same.
20254 * lra-remat.c: Same.
20255 * lra-spills.c: Same.
20256 * lto-streamer.h: Same.
20257 * mem-stats.h: Same.
20258 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
20259 * omp-low.c (omp_clause_aligned_alignment): Same.
20260 * optabs-query.h (get_vcond_eq_icode): Same.
20261 * optabs.h: Same.
20262 * opts.c (wrap_help): Same.
20263 * poly-int.h: Same.
20264 * predict.c (predict_paths_leading_to_edge): Same.
20265 * pretty-print.h: Same.
20266 * profile-count.h: Same.
20267 * read-md.h: Same.
20268 * read-rtl-function.c: Same.
20269 * ree.c: Same.
20270 * reginfo.c: Same.
20271 * regrename.c: Same.
20272 * regrename.h: Same.
20273 * reload.h: Same.
20274 * rtl-iter.h: Same.
20275 * rtl.h (costs_add_n_insns): Same.
20276 * sanopt.c: Same.
20277 * sched-int.h: Same.
20278 * sel-sched-ir.h: Same.
20279 * selftest.h: Same.
20280 * sese.h (vec_find): Same.
20281 * stmt.c: Same.
20282 * target-globals.h: Same.
20283 * tree-affine.c (aff_combination_find_elt): Same.
20284 * tree-affine.h: Same.
20285 * tree-data-ref.h: Same.
20286 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
20287 * tree-predcom.c: Same.
20288 * tree-scalar-evolution.c (find_var_scev_info): Same.
20289 * tree-ssa-alias.h: Same.
20290 * tree-ssa-ccp.c: Same.
20291 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
20292 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
20293 (rewrite_mem_refs): Same.
20294 (execute_sm_if_changed): Same.
20295 (hoist_memory_references): Same.
20296 * tree-ssa-loop-ivopts.c (operator<=): Same.
20297 * tree-ssa-loop.h: Same.
20298 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
20299 * tree-ssa-structalias.c: Same.
20300 * tree-switch-conversion.h (cluster::cluster): Same.
20301 (simple_cluster::simple_cluster): Same.
20302 * tree-vect-patterns.c (type_conversion_p): Same.
20303 * tree-vectorizer.c (dump_stmt_cost): Same.
20304 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
20305 * tree.c (protected_set_expr_location): Same.
20306 * tree.h (desired_pro_or_demotion_p): Same.
20307 (fndecl_built_in_p): Same.
20308 * unique-ptr-tests.cc: Same.
20309 * var-tracking.c (delete_variable_part): Same.
20310 * varasm.c (assemble_real): Same.
20311 (tree_output_constant_def): Same.
20312 * vec.c: Same.
20313 * wide-int-bitmask.h: Same.
20314 * wide-int.h (decompose): Same.
20315
20316 2019-07-09 Richard Biener <rguenther@suse.de>
20317
20318 PR tree-optimization/91114
20319 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
20320 find a vector type isn't fatal.
20321
20322 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
20323
20324 * config/aarch64/aarch64-simd.md
20325 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
20326 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
20327 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
20328 (*aarch64_crypto_aese_fused,
20329 *aarch64_crypto_aesd_fused): Update to new definition.
20330 * config/aarch64/aarch64.c
20331 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
20332
20333 2019-07-09 Richard Biener <rguenther@suse.de>
20334
20335 * gimple-match.h (gimple_match_op::resimplify): New.
20336 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
20337 gimple_resimplify4, gimple_resimplify5): Remove.
20338 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
20339 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
20340 Make static.
20341 (gimple_match_op::resimplify): New.
20342 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
20343 according to availability. Use gimple_match_op::resimplify.
20344
20345 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
20346
20347 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
20348
20349 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
20350
20351 * config/arm/crypto.md:
20352 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
20353 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
20354 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
20355 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
20356 * config/arm/arm.c
20357 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
20358 * config/arm/aarch-common-protos.h
20359 (aarch_crypto_can_dual_issue): Remove.
20360 * config/arm/aarch-common.c
20361 (aarch_crypto_can_dual_issue): Likewise.
20362 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
20363 * config/arm/cortex-a53.md: Likewise.
20364 * config/arm/cortex-a57.md: Likewise.
20365 * config/arm/iterators.md:
20366 (CRYPTO_BINARY): Redefine.
20367 (CRYPTO_UNARY): Removed.
20368 (CRYPTO_AES, CRYPTO_AESMC): New.
20369
20370 2019-07-09 Richard Biener <rguenther@suse.de>
20371
20372 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
20373 (vn_reference_lookup_3): If the main ref has no access path recorded
20374 but orig_ref has use it to do access-path based disambiguation.
20375 (vn_reference_lookup_pieces): Adjust.
20376 (vn_reference_lookup): Pass down original ref if we valueized.
20377
20378 2019-07-09 Martin Liska <mliska@suse.cz>
20379
20380 * doc/extend.texi: Document influence on loop
20381 optimizers.
20382
20383 2019-07-09 Martin Liska <mliska@suse.cz>
20384
20385 * lto-compress.c (lto_normalized_zstd_level): Do not use
20386 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
20387 of libzstd. One can use 0 as a default compression level.
20388
20389 2019-07-09 Martin Liska <mliska@suse.cz>
20390
20391 * doc/invoke.texi: Add link from -fprofile-dir option.
20392 Use better wording for 'gcno filename'.
20393
20394 2019-07-08 Martin Sebor <msebor@redhat.com>
20395
20396 PR middle-end/71924
20397 PR middle-end/90549
20398 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
20399 comment.
20400 (args_loc_t): New type.
20401 (args_loc_t, locmap_t): same.
20402 (diag_returned_locals): New function.
20403 (is_addr_local): Same.
20404 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
20405 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
20406 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
20407
20408 2019-07-08 Jakub Jelinek <jakub@redhat.com>
20409
20410 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
20411 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
20412 and casts in offset when different, both through gimple stmts
20413 and through trees. Rewritten using loops to minimize code duplication
20414 for each operand.
20415
20416 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
20417
20418 * emit-rtl.c (set_insn_locations): New function moved from...
20419 * function.c (set_insn_locations): ...here.
20420 * ira-emit.c (emit_moves): Propagate location of the first instruction
20421 to the inserted move instructions.
20422 * reg-stack.c (compensate_edge): Set the location if the sequence is
20423 inserted on the edge.
20424 * rtl.h (set_insn_locations): Declare.
20425
20426 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
20427
20428 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
20429 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
20430 .machine string.
20431
20432 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
20433
20434 PR rtl-optimization/88233
20435 * common.opt (fsplit-wide-types-early): New option.
20436 * common/config/rs6000/rs6000-common.c
20437 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
20438 OPT_LEVELS_ALL.
20439 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
20440 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
20441 flag_split_wide_types_early.
20442 (pass_data_lower_subreg3): New.
20443 (pass_lower_subreg3): New.
20444 (make_pass_lower_subreg3): New.
20445 * passes.def (pass_lower_subreg2): Move after the loop passes.
20446 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
20447 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
20448 the pass pipeline; its previous place is taken by ...
20449 (make_pass_lower_subreg3): ... this.
20450
20451 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
20452
20453 * config/s390/s390.c (s390_shift_truncation_mask): Define.
20454 (TARGET_SHIFT_TRUNCATION_MASK): Define.
20455
20456 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
20457
20458 * config/s390/constraints.md: Add new jsc constraint.
20459 * config/s390/predicates.md: New predicates.
20460 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
20461 * config/s390/s390.c (s390_valid_shift_count): New function.
20462 (print_shift_count_operand): Use s390_valid_shift_count.
20463 (print_operand): Likewise.
20464 * config/s390/s390.md: Use new predicate.
20465 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
20466 * config/s390/vector.md: Use new predicate.
20467
20468 2019-07-08 Andrew Waterman <andrew@sifive.com>
20469 Jim Wilson <jimw@sifive.com>
20470
20471 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
20472 bitsize instead of BITS_PER_WORD.
20473
20474 2019-07-08 Martin Liska <mliska@suse.cz>
20475
20476 * collect2.c (defined): Revert to before r254460.
20477 (scan_prog_file): Revert to before r254460.
20478
20479 2019-07-08 Richard Biener <rguenther@suse.de>
20480
20481 PR tree-optimization/83518
20482 * tree-ssa-sccvn.c: Include splay-tree.h.
20483 (struct pd_range, struct pd_data): New.
20484 (struct vn_walk_cb_data): Add data to track partial definitions.
20485 (vn_walk_cb_data::~vn_walk_cb_data): New.
20486 (vn_walk_cb_data::push_partial_def): New.
20487 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
20488 (vn_reference_lookup_2): When partial defs are registered give up.
20489 (vn_reference_lookup_3): Track partial defs for memset and
20490 constructor zeroing and for defs from constants.
20491
20492 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
20493
20494 * doc/install.texi (bootstrap-Og): Document.
20495
20496 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
20497
20498 * config/riscv/pic.md (*local_pic_load_s<mode>)
20499 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
20500 referenced by <mode>, giving...
20501 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
20502 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
20503 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
20504 use <X:MODE> for the mode attribute.
20505
20506 2019-07-07 Jeff Law <law@redhat.com>
20507
20508 PR tree-optimization/91090
20509 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
20510 in handling of ranges to simplify switch statements.
20511
20512 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
20513
20514 * config/darwin.c (darwin_override_options): Make a final check on PIC
20515 options.
20516
20517 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
20518
20519 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
20520 on for kernel code.
20521
20522 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
20523
20524 PR target/91068
20525 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
20526 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
20527 instead of matching them to "l" output operands.
20528
20529 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
20530
20531 * config/mips/mips.c (mips_split_move): Zero-initialize addr
20532 and check whether addr.reg is nonnull before using it.
20533
20534 2019-07-06 Jakub Jelinek <jakub@redhat.com>
20535
20536 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
20537 ctx->for_simd_scan_phase simd copy the outer var to the privatized
20538 variable(s). For conditional lastprivate look through outer
20539 GIMPLE_OMP_SCAN context.
20540 (lower_omp_1): For conditional lastprivate look through outer
20541 GIMPLE_OMP_SCAN context.
20542
20543 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
20544 member to combined_into_simd_safelen1.
20545 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
20546 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
20547 clauses if ctx->combined_into_simd_safelen1 put statements after the
20548 predicate conditionalized block rather than into it.
20549
20550 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20551
20552 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
20553 operand 1.
20554 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
20555 Make the choice of <mode> explicit, giving...
20556 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
20557
20558 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20559
20560 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
20561 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
20562 of .md attributes.
20563 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
20564 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
20565 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
20566 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
20567 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
20568 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
20569 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
20570 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
20571 (*avx512f_scatterdi<mode>): Likewise.
20572 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
20573
20574 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20575
20576 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
20577 specify the mode iterator referenced by <mode>, giving...
20578 (*push1_h8300hs_<QHI:mode>): ...this.
20579
20580 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20581
20582 * config/gcn/gcn-valu.md
20583 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
20584 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
20585 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
20586 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
20587 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
20588 but using the _exec comparison patterns.
20589 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
20590 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
20591 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
20592 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
20593 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
20594 but using the _exec comparison patterns.
20595
20596 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20597
20598 * config/arm/sync.md
20599 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
20600 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
20601 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
20602 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
20603 <SIDI:cas_cmp_str>.
20604
20605 2019-07-06 Jakub Jelinek <jakub@redhat.com>
20606
20607 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
20608 (maybe_lookup_ctx): Add forward declaration.
20609 (omp_find_scan): Likewise. Walk into body of simd if composited
20610 with worksharing loop.
20611 (scan_omp_simd_scan): New function.
20612 (scan_omp_1_stmt): Call it.
20613 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
20614 ctx->for_simd_scan_phase.
20615 (lower_rec_input_clauses): Do much less work for inscan reductions
20616 in ctx->for_simd_scan_phase is_simd regions.
20617 (lower_omp_scan): Set is_simd also on simd constructs composited
20618 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
20619 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
20620 emit their body after in simd constructs composited with worksharing
20621 loop.
20622 (lower_omp_for_scan): Handle worksharing loop composited with simd.
20623
20624 * omp-low.c (omp_find_scan): Make static.
20625 (lower_omp_for_scan): Fix order of merge arguments in input phase of
20626 the second loop, var2 represents the first partial sum and so needs
20627 to go before rprivb[ivar].
20628
20629 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
20630
20631 * config/rs6000/rs6000-logue.c: Remove unused code.
20632
20633 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20634
20635 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
20636
20637 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
20638
20639 PR target/90712
20640 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
20641 check with a frame laid out check.
20642
20643 2019-07-05 Richard Biener <rguenther@suse.de>
20644
20645 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
20646 when comparing against a store with possibly the same value.
20647
20648 2019-07-05 Richard Biener <rguenther@suse.de>
20649
20650 PR tree-optimization/91091
20651 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
20652 (walk_non_aliased_vuses): Likewise.
20653 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
20654 (get_continuation_for_phi): New tbaa_p parameter and pass
20655 it down.
20656 (walk_non_aliased_vuses): Likewise.
20657 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
20658 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
20659 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
20660 Likewise.
20661 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
20662 (adjust_offsets_for_equal_base_address): New function.
20663 (vn_reference_lookup_3): Use it to catch more base equivalences.
20664 Handle and pass down tbaa_p flag.
20665 (vn_reference_lookup_pieces): Adjust.
20666 (vn_reference_lookup): Remove alias-set altering, instead pass
20667 down false as tbaa_p.
20668
20669 2019-07-05 Richard Biener <rguenther@suse.de>
20670
20671 PR tree-optimization/91091
20672 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
20673 accesses can happen with -fno-strict-aliasing.
20674
20675 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
20676
20677 * tree-ssa-alias.c (alias_stats): Add
20678 nonoverlapping_component_refs_since_match_p_must_overlap.
20679 (dump_alias_stats): Print it.
20680 (nonoverlapping_component_refs_since_match_p): Add early exit.
20681 (nonoverlapping_component_refs_p): Do not account early exit.
20682
20683 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20684
20685 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
20686 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
20687 (emit_eh_dispatch): Delete.
20688 (lower_catch): Emit the eh_dispatch manually and set the location of
20689 the first catch statement onto it.
20690 (lower_eh_filter): Emit the eh_dispatch manually and set location.
20691 (lower_eh_dispatch): Propagate location.
20692 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
20693 (eliminate_build): Likewise.
20694
20695 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20696
20697 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
20698 phi nodes if possible.
20699 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
20700 location info on the newly created statement.
20701 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
20702 newly created increment if needed.
20703
20704 2019-07-04 Jakub Jelinek <jakub@redhat.com>
20705
20706 PR middle-end/78884
20707 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
20708 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
20709 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
20710 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
20711 ctx->add_safelen1 is set.
20712
20713 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
20714 GOMP_loop_start at the start of second worksharing loop in a scan.
20715 For nowait, don't emit GOMP_loop_end_nowait at the end of first
20716 worksharing loop in a scan even if there are conditional lastprivates,
20717 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
20718
20719 2019-07-04 Jan Hubicka <jh@suse.cz>
20720
20721 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
20722 Fix check for match in the ref walk.
20723
20724 2019-07-04 Martin Liska <mliska@suse.cz>
20725
20726 * tree-ssa-loop-niter.c
20727 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
20728 (estimate_numbers_of_iterations):
20729 Support __builtin_expect_with_probability for analysis
20730 of # of loop iterations.
20731
20732 2019-07-04 Alexandre Oliva <oliva@adacore.com>
20733
20734 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
20735 * except.c: Likewise.
20736 * expr.c (expand_expr_real_1): Reject it.
20737 * gimplify.c (gimplify_expr): Gimplify it, within
20738 TRY_FINALLY_EXPR.
20739 * tree-dump.c (dequeue_and_dump): Dump it.
20740 * tree-pretty-print.c (dump_generic_node): Likewise.
20741 * tree.c (block_may_fallthru): Handle it.
20742 * tree.def (EH_ELSE_EXPR): Introduce it.
20743 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
20744 with GIMPLE_EH_ELSE as try/finally/else.
20745
20746 2019-07-04 Richard Biener <rguenther@suse.de>
20747
20748 PR ipa/91062
20749 * tree-pass.h (execute_all_ipa_transforms): Add a flag
20750 parameter whether to disable GC collection.
20751 * passes.c (execute_one_ipa_transform_pass): Likewise, and
20752 honor it.
20753 (execute_all_ipa_transforms): Likewise and pass it down.
20754 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
20755 collection from applying IPA transforms.
20756 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
20757 from applying IPA transforms.
20758
20759 2019-07-04 Richard Biener <rguenther@suse.de>
20760
20761 PR tree-optimization/90911
20762 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
20763 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
20764 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
20765 scalar_loop_scaling.
20766 (vect_transform_loop): Scale scalar loop profile if needed.
20767 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
20768 the loop copy from if-conversion adjust edge probabilities
20769 and scale the vectorized loop body profile, queue the scalar
20770 profile for updating after peeling.
20771
20772 2019-07-04 Jan Hubicka <jh@suse.cz>
20773
20774 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
20775 parameters; return early for must-alias.
20776 (indirect_ref_may_alias_decl_p): Likewise; when establishing
20777 outer types match, try nonoverlapping_component_refs
20778 if must-alias is not obvious.
20779 (indirect_refs_may_alias_p): Likewise.
20780 (refs_may_alias_p_2): Likewise.
20781
20782 2019-07-04 Richard Biener <rguenther@suse.de>
20783
20784 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
20785 argument.
20786 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
20787 globals into...
20788 (struct vn_walk_cb_data): New callback data struct.
20789 (vn_reference_lookup_2): Adjust.
20790 (vn_reference_lookup_3): Likewise.
20791 (vn_reference_lookup_pieces): Likewise.
20792 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
20793 (visit_reference_op_load): Adjust.
20794
20795 2019-07-04 Jakub Jelinek <jakub@redhat.com>
20796
20797 PR tree-optimization/91063
20798 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
20799 stmt from stmts sequence before calling vect_init_vector_1.
20800 Formatting fix.
20801
20802 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20803
20804 PR target/88833
20805 * fwprop.c (reg_single_def_p): New function.
20806 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
20807 (forward_propagate_into): New parameter reg_prop_only
20808 with default value false.
20809 Propagate def's src into loop only if SET_SRC and SET_DEST
20810 of def_set have single definitions.
20811 Likewise if reg_prop_only is set to true.
20812 (fwprop): New param fwprop_addr_p.
20813 Integrate fwprop_addr into fwprop.
20814 (fwprop_addr): Remove.
20815 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
20816 to true.
20817 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
20818 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
20819 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
20820
20821 2019-07-04 Jakub Jelinek <jakub@redhat.com>
20822
20823 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
20824 in worksharing loop scans.
20825
20826 PR tree-optimization/91074
20827 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
20828 temporary.
20829
20830 PR rtl-optimization/90756
20831 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
20832 for VECTOR_TYPE_P.
20833
20834 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
20835
20836 * config/aarch64/aarch64.md: Remove redundant constraints from
20837 define_expand but keep some patterns untouched if they are
20838 specially selected by TARGET_SECONDARY_RELOAD hook.
20839 * config/aarch64/aarch64-sve.md: Likewise.
20840 * config/aarch64/atomics.md: Remove redundant constraints from
20841 define_expand.
20842 * config/aarch64/aarch64-simd.md: Likewise.
20843
20844 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
20845
20846 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
20847 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
20848 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
20849 clauses.
20850 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
20851 DARWIN_NOPIE_SPEC.
20852
20853 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
20854
20855 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
20856 (STARTFILE_SPEC): Split crt3 into a separate spec.
20857 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
20858 (DARWIN_CRT2_SPEC): New.
20859 (DARWIN_CRT3_SPEC): New.
20860 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
20861 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
20862 (DARWIN_CRT3_SPEC): New.
20863
20864 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
20865
20866 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
20867 Change the RTL attribute "length" from "4" to "*" to allow the
20868 length attribute to be adjusted automatically for prefixed load,
20869 store, and add immediate instructions.
20870 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
20871 Likewise.
20872 (extendsi<mode>2, EXTSI iterator): Likewise.
20873 (movsi_internal1): Likewise.
20874 (movsi_from_sf): Likewise.
20875 (movdi_from_sf_zero_ext): Likewise.
20876 (mov<mode>_internal): Likewise.
20877 (movcc_internal1, QHI iterator): Likewise.
20878 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
20879 (movsf_from_si): Likewise.
20880 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
20881 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
20882 (mov<mode>, FMOVE128 iterator): Likewise.
20883 (movdi_internal64): Likewise.
20884 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
20885 Likewise.
20886 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
20887 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
20888 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
20889 (vsx_splat_v4sf): Likewise.
20890
20891 2019-07-03 Mark Wielaard <mark@klomp.org>
20892
20893 PR debug/90981
20894 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
20895 DW_AT_addr_base if there is actually a .debug_addr section with
20896 addresses.
20897 (output_addr_table): Add DWARF5 table header generation here after
20898 checking there are actually any addresses from...
20899 (dwarf2out_finish): ...here.
20900
20901 2019-07-03 Richard Biener <rguenther@suse.de>
20902
20903 PR middle-end/91069
20904 * match.pd (vec_perm -> bit_insert): Fix element read from
20905 first vector.
20906
20907 2019-07-03 Martin Liska <mliska@suse.cz>
20908
20909 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
20910 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
20911 condition.
20912 * generic-match-head.c: Include dbgcnt.h.
20913 * gimple-match-head.c: Likewise.
20914
20915 2019-07-03 Martin Liska <mliska@suse.cz>
20916
20917 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
20918 (GCOV_COUNTER_V_TOPN): New.
20919 (GCOV_COUNTER_V_INDIR): Use _topn.
20920 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
20921 (GCOV_TOPN_VALUES): New.
20922 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
20923 (GCOV_TOPN_VALUES_COUNTERS): New.
20924 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
20925 * tree-profile.c:
20926 (gimple_init_gcov_profiler): Rename variables from one_value
20927 to topn_values.
20928 (gimple_gen_one_value_profiler): Remove.
20929 (gimple_gen_topn_values_profiler): New function.
20930 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
20931 names instead of SINGLE_VALUE.
20932 (stream_out_histogram_value): Likewise.
20933 (stream_in_histogram_value): Likewise.
20934 (get_most_common_single_value): Likewise.
20935 (gimple_divmod_fixed_value_transform): Likewise.
20936 (gimple_stringops_transform): Likewise.
20937 (gimple_divmod_values_to_profile): Likewise.
20938 (gimple_stringops_values_to_profile): Likewise.
20939 (gimple_find_values_to_profile): Likewise.
20940 * value-prof.h (enum hist_type): Rename to TOPN.
20941 (gimple_gen_one_value_profiler): Remove.
20942 (gimple_gen_topn_values_profiler): New.
20943
20944 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
20945
20946 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
20947 if it has the DW_AT_data_member_location attribute.
20948
20949 2019-07-03 Richard Biener <rguenther@suse.de>
20950
20951 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
20952 dumping.
20953
20954 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
20955
20956 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
20957 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
20958 (tlsdesc_small_sve_<mode>): Likewise.
20959
20960 2019-07-03 Martin Liska <mliska@suse.cz>
20961
20962 * Makefile.in: Define ZSTD_LIB.
20963 * common.opt: Adjust compression level
20964 to support also zstd levels.
20965 * config.in: Regenerate.
20966 * configure: Likewise.
20967 * configure.ac: Add --with-zstd and --with-zstd-include options
20968 and detect ZSTD.
20969 * doc/install.texi: Mention zstd dependency.
20970 * gcc.c: Print supported LTO compression algorithms.
20971 * lto-compress.c (lto_normalized_zstd_level): Likewise.
20972 (lto_compression_zstd): Likewise.
20973 (lto_uncompression_zstd): Likewise.
20974 (lto_end_compression): Dispatch in between zlib and zstd.
20975 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
20976 (lto_uncompression_zlib): Make it static.
20977 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
20978 * lto-section-in.c (lto_get_section_data): Pass info
20979 about used compression.
20980 * lto-streamer-out.c: By default use zstd when possible.
20981 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
20982 (TV_IPA_LTO_COMPRESS): Likewise for compression.
20983
20984 2019-07-03 Martin Liska <mliska@suse.cz>
20985
20986 * lto-section-in.c (lto_get_section_data): Add "lto" section.
20987 * lto-section-out.c (lto_destroy_simple_output_block): Never
20988 compress LTO_section_lto section.
20989 * lto-streamer-out.c (produce_asm): Do not set major_version
20990 and minor_version.
20991 (lto_output_toplevel_asms): Likewise.
20992 (produce_lto_section): New function.
20993 (lto_output): Call produce_lto_section.
20994 (lto_write_mode_table): Do not set major_version and
20995 minor_version.
20996 (produce_asm_for_decls): Likewise.
20997 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
20998 type.
20999 (struct lto_header): Remove.
21000 (struct lto_section): New struct.
21001 (struct lto_simple_header): Do not inherit from lto_header.
21002 (struct lto_file_decl_data): Add lto_section_header field.
21003
21004 2019-07-03 Martin Liska <mliska@suse.cz>
21005
21006 * lra-eliminations.c (eliminate_regs_in_insn): Remove
21007 dead assignemts.
21008 * reg-stack.c (check_asm_stack_operands): Likewise.
21009 * tree-ssa-structalias.c (create_function_info_for): Likewise.
21010 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
21011 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
21012 force_expand_binop.
21013
21014 2019-07-03 Martin Liska <mliska@suse.cz>
21015
21016 PR tree-optimization/90892
21017 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
21018 in string constants.
21019
21020 2019-07-03 Martin Liska <mliska@suse.cz>
21021
21022 PR middle-end/90899
21023 * multiple_target.c (create_dispatcher_calls): Add to comdat
21024 group only if set for ifunc.
21025
21026 2019-07-03 Martin Liska <mliska@suse.cz>
21027
21028 PR target/88056
21029 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
21030 Define local_object_name in outer scope in order to handle
21031 use-after-scope issue.
21032
21033 2019-07-03 Martin Liska <mliska@suse.cz>
21034
21035 * common.opt: Add fprofile-note.
21036 * coverage.c (coverage_init): Append the option
21037 to bbg_file_name.
21038 * doc/invoke.texi: Document -fprofile-note.
21039
21040 2019-07-03 Jakub Jelinek <jakub@redhat.com>
21041
21042 PR tree-optimization/91033
21043 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
21044 vect_analyze_data_refs): Add bool * arguments.
21045 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
21046 if failure is due to scatter/gather, set *fatal to false if non-NULL.
21047 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21048 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
21049 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
21050 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
21051 vect_analyze_data_refs caller.
21052
21053 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
21054 clause.
21055 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
21056 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
21057 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
21058 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
21059 OMP_CLAUSE__SCANTEMP_ entry.
21060 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
21061 * tree-pretty-print.c (dump_omp_clause): Likewise.
21062 * tree-nested.c (convert_nonlocal_omp_clauses,
21063 convert_local_omp_clauses): Likewise.
21064 * omp-general.h (struct omp_for_data): Add have_scantemp and
21065 have_nonctrl_scantemp members.
21066 * omp-general.c (omp_extract_for_data): Initialize them.
21067 * omp-low.c (struct omp_context): Add scan_exclusive member.
21068 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
21069 result again with GF_OMP_FOR_KIND_MASK. Initialize also
21070 ctx->scan_exclusive.
21071 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
21072 of !ctx->scan_inclusive.
21073 (lower_rec_input_clauses): Simplify gimplification of dtors using
21074 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
21075 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
21076 loops. Don't add barrier for reduction_omp_orig_ref if
21077 ctx->scan_??xclusive.
21078 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
21079 (lower_omp_scan): Use ctx->scan_exclusive instead
21080 of !ctx->scan_inclusive. Handle worksharing loops with inscan
21081 reductions. Use new_vard != new_var instead of repeated
21082 omp_is_reference calls.
21083 (omp_find_scan, lower_omp_for_scan): New functions.
21084 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
21085 inscan reductions.
21086 * omp-expand.c (expand_omp_scantemp_alloc): New function.
21087 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
21088 and fd->have_scantemp.
21089
21090 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
21091 on worksharing loop propagate it as shared clause to containing
21092 combined parallel.
21093
21094 * omp-expand.c (expand_omp_for_static_nochunk,
21095 expand_omp_for_static_chunk): For nowait worksharing loop with
21096 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
21097 at the end.
21098
21099 2019-07-02 qing zhao <qing.zhao@oracle.com>
21100
21101 PR preprocessor/90581
21102 * doc/cppopts.texi: Add document for -fmax-include-depth.
21103 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
21104
21105 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
21106
21107 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
21108 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
21109 (mmx_packssdw): Ditto.
21110 (mmx_punpckhbw): Ditto.
21111 (mmx_punpcklbw): Ditto.
21112 (mmx_punpckhwd): Ditto.
21113 (mmx_punpcklwd): Ditto.
21114 (mmx_punpckhdq): Ditto.
21115 (mmx_punpckldq): Ditto.
21116 (*vec_dupv4hi): Ditto.
21117 (*vec_dupv2si): Ditto.
21118 (mmx_pmovmskb): Ditto.
21119 * config/i386/sse.md (sse_cvtpi2ps): Use
21120 TARGET_SSE2 && SSE_REG_P in split condition.
21121 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
21122 TARGET_SSSE3 && SSE_REGNO_P in split condition.
21123 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
21124 (ssse3_pshufbv8qi3): Ditto.
21125 (ssse3_palignrdi): Ditto.
21126
21127 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
21128
21129 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
21130 with inlined save and restore.
21131
21132 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
21133
21134 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
21135 to be inserted on single successor edge of the entry block. Then call
21136 commit_edge_insertions instead of inserting the instructions manually.
21137 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
21138 RTL expansion and rebuild jump labels chain.
21139
21140 2019-07-02 Richard Biener <rguenther@suse.de>
21141
21142 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
21143 TI_CHREC_KNOWN.
21144 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
21145 Define here.
21146 * tree.c (build_common_tree_nodes): Initialize them.
21147 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
21148 Make declarations comments.
21149 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
21150 chrec_known): Remove definitions.
21151 (initialize_scalar_evolutions_analyzer): Remove.
21152 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
21153 * tree-streamer.c (preload_common_nodes): Do not preload
21154 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
21155
21156 2019-07-02 Jan Hubicka <jh@suse.cz>
21157
21158 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
21159 sanity check.
21160
21161 2019-07-02 Jan Hubicka <jh@suse.cz>
21162
21163 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
21164 to ..
21165 (nonoverlapping_component_refs_since_match_p): ... this one;
21166 handle also non-decl bases; return -1 if search gave up.
21167 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
21168 nonoverlapping_component_refs_of_decl_p_no_alias to
21169 nonoverlapping_component_refs_since_match_p_may_alias,
21170 nonoverlapping_component_refs_since_match_p_no_alias.
21171 (dump_alias_stats): Update dumping.
21172 (aliasing_matching_component_refs_p): Break out from ...;
21173 dispatch to nonoverlapping_component_refs_for_decl_p
21174 and nonoverlapping_component_refs_since_match_p.
21175 (aliasing_component_refs_p): ... here; call
21176 nonoverlapping_component_refs_p in scenarios where we can not
21177 precisely determine base match.
21178 (decl_refs_may_alias_p): Use
21179 nonoverlapping_component_refs_since_match_p.
21180 (indirect_ref_may_alias_decl_p): Do not call
21181 nonoverlapping_component_refs_p.
21182 (indirect_refs_may_alias_p): Likewise.
21183
21184 2019-07-02 Jan Hubicka <jh@suse.cz>
21185
21186 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
21187 to clobber of return value.
21188
21189 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21190
21191 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
21192 for is_neon_type instructions that have not already been categorized.
21193
21194 2019-07-02 Richard Biener <rguenther@suse.de>
21195
21196 PR tree-optimization/58483
21197 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
21198 for MEM_REF base hashing.
21199 (equal_mem_array_ref_p): Likewise for base comparison.
21200
21201 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21202
21203 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
21204 parameterized name.
21205 (signbit<mode>2): Use that name. Simplify.
21206
21207 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
21208
21209 PR middle-end/66726
21210 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
21211 Tune heuristic from PR71016 to allow MIN / MAX.
21212
21213 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21214
21215 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
21216 parameterized name.
21217 (abs<mode>2): Use that name. Simplify.
21218
21219 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21220
21221 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
21222 parameterized name.
21223 (neg<mode>2): Use that name. Simplify.
21224
21225 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21226
21227 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
21228 name.
21229 (abs<mode>2): Use that name. Simplify.
21230
21231 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21232
21233 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
21234 name.
21235 (neg<mode>2): Use that name. Simplify.
21236
21237 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
21238
21239 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
21240 ("enabled" attribute): Handle sse_noavx isa attribute.
21241 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
21242 Use TARGET_SSE && SSE_REGNO_P in split condition.
21243 (*vec_dupv2sf): Ditto.
21244
21245 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21246
21247 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
21248 name.
21249 (floatsi<mode>2): Use that name. Simplify.
21250
21251 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21252
21253 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
21254 parameterized name.
21255 (extenddf<mode>2_vsx): Make this a parameterized name.
21256 (extenddf<mode>2): Use those names. Simplify.
21257
21258 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21259
21260 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
21261 name.
21262 (eh_return): Use that name. Simplify.
21263
21264 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21265
21266 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
21267 (doloop_end): Use that name. Simplify.
21268
21269 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21270
21271 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
21272 parameterized name.
21273 (indirect_jump): Use that name. Simplify.
21274
21275 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21276
21277 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
21278 parameterized name.
21279 (abs<mode>2): Use that name. Simplify.
21280
21281 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21282
21283 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
21284 parameterized name.
21285 (fix_trunc<mode>si2): Use that name. Simplify.
21286
21287 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21288
21289 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
21290 (allocate_stack): Use that name. Simplify.
21291
21292 2019-07-01 Martin Sebor <msebor@redhat.com>
21293
21294 PR middle-end/90923
21295 * hash-map.h (hash_map::put): On insertion invoke element ctor.
21296 (hash_map::get_or_insert): Same. Reformat comment.
21297 * hash-set.h (hash_set::add): On insertion invoke element ctor.
21298 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
21299 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
21300 * hash-table.h (hash_table::operator=): Prevent copy assignment.
21301 (hash_table::hash_table (const hash_table&)): Use copy ctor
21302 instead of assignment to copy elements.
21303
21304 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
21305 John David Anglin <danglin@gcc.gnu.org>
21306
21307 PR target/90963
21308 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
21309 using saved frame pointer.
21310
21311 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
21312
21313 PR middle-end/64242
21314 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
21315 Add frame clobber and schedule blockage.
21316
21317 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
21318
21319 * doc/invoke.texi (Link Options): Further editorial changes to
21320 -flinker-output docs.
21321
21322 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21323
21324 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
21325 Load both operands of a PLUS into registers separately.
21326
21327 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
21328
21329 * config/s390/vector.md: Fix shift count operand printing.
21330
21331 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21332
21333 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
21334
21335 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21336
21337 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
21338 Use recog_data to test for an output operand.
21339
21340 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21341
21342 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
21343 exclude any others that are disparaged or that are bound to need
21344 a reload or spill.
21345 (ira_get_dup_out_num): Expand comment.
21346
21347 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21348
21349 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
21350 constraint string for each operand/alternative combo. Only handle
21351 '%' at the start of constraint strings, and look for it outside
21352 the main loop.
21353
21354 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21355
21356 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
21357 alternative_mask instead of HARD_REG_SET to represent a
21358 bitmask of alternatives.
21359 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21360 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
21361
21362 2019-07-01 Martin Liska <mliska@suse.cz>
21363
21364 * edit-context.c (test_applying_fixits_unreadable_file): Do not
21365 use () for a constructor call.
21366 (test_applying_fixits_line_out_of_range): Likewise.
21367 * ggc-page.c (alloc_page): Use (void *) for %p printf format
21368 argument.
21369 (free_page): Likewise.
21370
21371 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
21372
21373 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
21374 parameter names to match usage (no functional change).
21375 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
21376
21377 2019-07-01 Richard Biener <rguenther@suse.de>
21378
21379 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
21380 pass parameter.
21381 (pass_fre::execute): Honor it.
21382 * passes.def: Adjust pass_fre invocations to allow iterating,
21383 add non-iterating pass_fre before late threading/dom.
21384
21385 2019-07-01 Richard Biener <rguenther@suse.de>
21386
21387 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
21388 TARGET_MEM_REF handling to also handle address-taken ones.
21389
21390 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
21391
21392 * doc/sourcebuild.texi (Effective-Target Keywords, Other
21393 hardware attributes): Document avx512vp2intersect.
21394
21395 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
21396
21397 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
21398 (abs<mode>2): New expander.
21399 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
21400 Use CODE_FOR_ssse3_absv8qi2.
21401 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
21402 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
21403
21404 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
21405
21406 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
21407 to sse, sse_noavx and avx. Update all uses.
21408
21409 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
21410
21411 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
21412 (*mmx_<plusminus_insn><mode>3): Ditto.
21413 (*mmx_mulv4hi3"): Ditto.
21414 (*mmx_smulv4hi3_highpart): Ditto.
21415 (*mmx_umulv4hi3_highpart): Ditto.
21416 (*mmx_pmaddwd): Ditto.
21417 (*sse2_umulv1siv1di3): Ditto.
21418 (*mmx_<code>v4hi3): Ditto.
21419 (*mmx_<code>v8qi3): Ditto.
21420 (mmx_ashr<mode>3): Ditto.
21421 ("mmx_<shift_insn><mode>3): Ditto.
21422 (*mmx_eq<mode>3): Ditto.
21423 (mmx_gt<mode>3): Ditto.
21424 (mmx_andnot<mode>3): Ditto.
21425 (*mmx_<code><mode>3): Ditto.
21426 (*mmx_pinsrw): Ditto.
21427 (*mmx_pextrw): Ditto.
21428 (mmx_pshufw_1): Ditto.
21429 (*mmx_uavgv8qi3): Ditto.
21430 (*mmx_uavgv4hi3): Ditto.
21431 ("mmx_psadbw): Ditto.
21432 * config/i386/sse.md (sse_cvtps2pi): Ditto.
21433 (sse_cvttps2pi): Ditto.
21434 (ssse3_pmaddubsw): Ditto.
21435 (*ssse3_pmulhrswv4hi3): Ditto.
21436 (ssse3_psign<mode>3): Ditto.
21437
21438 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
21439
21440 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
21441 adjustment for bit-fields to all aggregate types.
21442
21443 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
21444
21445 * config/rs6000/predicates.md (pcrel_address): Use
21446 SYMBOL_REF_LOCAL_P to determine if a label is local.
21447 (pcrel_external_address): New predicate.
21448 (non_prefixed_mem_operand): Delete, predicate not used.
21449 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
21450 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
21451 addressing.
21452 (SYMBOL_REF_PCREL_P): Likewise.
21453
21454 PR target/91009
21455 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
21456 alternative.
21457 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
21458 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
21459 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
21460
21461 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
21462
21463 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
21464 override on extra_headers.
21465
21466 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
21467
21468 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
21469 * config/darwin-driver.c (darwin_default_min_version): Remove newline
21470 from warning.
21471 (darwin_driver_init): Likewise.
21472
21473 2019-06-28 Jan Beulich <jbeulich@suse.com>
21474
21475 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
21476 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
21477 Eliminate redundant alternative.
21478
21479 2019-06-28 Jan Beulich <jbeulich@suse.com>
21480
21481 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
21482 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
21483 Use vector_operand.
21484
21485 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
21486
21487 * config/arc/arc.c (arc_rtx_costs): All short instructions are
21488 having a lower cost regardless of the speed option.
21489
21490 2019-06-28 Jan Beulich <jbeulich@suse.com>
21491
21492 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
21493 vector_operand plus, on both alternatives, "Bm" constraint.
21494
21495 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
21496
21497 * config/arm/arm.md: Remove redundant constraints from
21498 define_expand but leave reload_inm and reload_outm patterns
21499 untouched since they need special constraints to work.
21500 * config/arm/arm-fixed.md: Remove redundant constraints from
21501 define_expand.
21502 * config/arm/iwmmxt.md: Likewise.
21503 * config/arm/neon.md: Likewise.
21504 * config/arm/sync.md: Likewise.
21505 * config/arm/thumb1.md: Likewise.
21506 * config/arm/vec-common.md: Likewise.
21507
21508 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
21509
21510 * doc/install.texi: Document --disable-tm-clone-registry.
21511
21512 2019-06-27 Jakub Jelinek <jakub@redhat.com>
21513
21514 PR c++/91024
21515 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
21516 statements.
21517
21518 PR tree-optimization/91010
21519 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
21520 return true. Otherwise, don't call operand_equal_p if offset1 or
21521 offset2 is NULL and just return false.
21522
21523 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
21524
21525 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
21526 user-specified float mode choice for kernel mode code.
21527
21528 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
21529
21530 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
21531 spec.
21532
21533 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
21534
21535 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
21536 use longcall for 64b code.
21537
21538 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
21539
21540 * builtins.c (get_memory_rtx): Fix comment.
21541 * optabs.def (movmem_optab): Change to cpymem_optab.
21542 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
21543 (emit_block_move_hints): Change movmem to cpymem.
21544 * defaults.h: Change movmem to cpymem.
21545 * targhooks.c (get_move_ratio): Change movmem to cpymem.
21546 (default_use_by_pieces_infrastructure_p): Ditto.
21547 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
21548 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
21549 to cpymem.
21550 * config/aarch64/aarch64.h: Change movmem to cpymem.
21551 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
21552 * config/alpha/alpha.h: Change movmem to cpymem in comment.
21553 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
21554 movmem to cpymem.
21555 * config/arc/arc-protos.h: Change movmem to cpymem.
21556 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
21557 * config/arc/arc.h: Change movmem to cpymem in comment.
21558 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
21559 * config/arm/arm-protos.h: Change movmem to cpymem in names.
21560 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
21561 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
21562 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
21563 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
21564 * config/avr/avr-protos.h: Change movmem to cpymem.
21565 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
21566 avr_out_movmem): Change movmem to cpymem.
21567 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
21568 Change movmem to cpymem.
21569 * config/bfin/bfin-protos.h: Change movmem to cpymem.
21570 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
21571 Change movmem to cpymem.
21572 * config/bfin/bfin.h: Change movmem to cpymem in comment.
21573 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
21574 * config/c6x/c6x-protos.h: Change movmem to cpymem.
21575 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
21576 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
21577 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
21578 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
21579 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
21580 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
21581 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
21582 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
21583 expand_small_cpymem_or_setmem,
21584 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
21585 expand_set_or_cpymem_constant_prologue,
21586 ix86_expand_set_or_cpymem): Change movmem to cpymem.
21587 * config/i386/i386-protos.h: Change movmem to cpymem.
21588 * config/i386/i386.h: Change movmem to cpymem in comment.
21589 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
21590 (setmem<mode>): Change expansion function name.
21591 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
21592 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
21593 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
21594 * config/m32c/m32c-protos.h: Change movmem to cpymem.
21595 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
21596 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
21597 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
21598 to cpymem.
21599 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
21600 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
21601 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
21602 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
21603 Change movmem to cpymem.
21604 * config/mips/mips.h: Change movmem to cpymem.
21605 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
21606 * config/nds32/nds32-memory-manipulation.c
21607 (nds32_expand_movmemsi_loop_unknown_size,
21608 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
21609 nds32_expand_movmemsi_unroll,
21610 nds32_expand_movmemsi): Change movmem to cpymem.
21611 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
21612 * config/nds32/nds32-protos.h: Change movmem to cpymem.
21613 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
21614 (pa_adjust_insn_length): Change call to compute_movmem_length.
21615 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
21616 movmemdi, movmemdi_prereload,
21617 movmemdi_postreload): Change movmem to cpymem.
21618 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
21619 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
21620 * config/riscv/riscv.c: Change movmem to cpymem in comment.
21621 * config/riscv/riscv.h: Change movmem to cpymem.
21622 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
21623 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
21624 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
21625 movmem to cpymem.
21626 * config/s390/s390-protos.h: Change movmem to cpymem.
21627 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
21628 s390_expand_insv): Change movmem to cpymem.
21629 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
21630 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
21631 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
21632 * config/sparc/sparc.h: Change movmem to cpymem in comment.
21633 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
21634 for nonexistent function.
21635 * config/vax/vax.h: Change movmem to cpymem in comment.
21636 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
21637 * config/visium/visium.h: Change movmem to cpymem in comment.
21638 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
21639 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
21640 * doc/md.texi: Change movmem to cpymem and update description to match.
21641 * doc/rtl.texi: Change movmem to cpymem.
21642 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
21643 * doc/tm.texi: Regenerate.
21644
21645 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
21646
21647 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
21648 -fvariable-expansion-in-unroller by default.
21649 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
21650 default for Power.
21651
21652 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
21653
21654 Revert
21655 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
21656 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
21657
21658 * config.gcc(rs6000-*-*): Define target_gtfiles.
21659
21660 2019-06-27 Jan Hubicka <jh@suse.cz>
21661
21662 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
21663 (add_type_duplicate): When odr hash is not allocated, to nothing.
21664 (odr_based_tbaa_p): New function.
21665 (set_type_canonical_for_odr_type): New function.
21666 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
21667 set_type_canonical_for_odr_type): New.
21668 * tree.c (gimple_canonical_types_compatible_p): ODR types with
21669 ODR based TBAA are not equivalent to non-ODR types.
21670
21671 2019-06-27 Martin Liska <mliska@suse.cz>
21672
21673 PR tree-optimization/90974
21674 PR rtl-optimization/90975
21675 PR rtl-optimization/90976
21676 PR target/91016
21677 PR tree-optimization/91017
21678 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
21679 unused tmp.
21680 * lra.c (lra_set_insn_recog_data): Remove a leftover from
21681 initial commit of IRA.
21682 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
21683 of op0 and op1.
21684 * tree-vect-loop.c (vect_create_epilog_for_reduction):
21685 Remove unused mode1.
21686 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
21687 to new_stmt_info.
21688
21689 2019-06-27 Jakub Jelinek <jakub@redhat.com>
21690
21691 PR target/90991
21692 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
21693 instead of register_operand for operands[1], add m to its constraints
21694 if operands[2] uses "C" constraint. Ensure in condition that if
21695 operands[2] is not 0, then operands[1] is not a MEM. For last two
21696 alternatives, use unaligned loads instead of aligned if operands[1] is
21697 misaligned_operand.
21698
21699 2019-06-27 Martin Liska <mliska@suse.cz>
21700
21701 * asan.c (asan_emit_allocas_unpoison): Remove obviously
21702 dead assignments.
21703 * bt-load.c (move_btr_def): Likewise.
21704 * builtins.c (expand_builtin_apply_args_1): Likewise.
21705 (expand_builtin_apply): Likewise.
21706 * cfgexpand.c (expand_asm_stmt): Likewise.
21707 (construct_init_block): Likewise.
21708 * cfghooks.c (verify_flow_info): Likewise.
21709 * cfgloopmanip.c (remove_path): Likewise.
21710 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
21711 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
21712 * combine.c (simplify_if_then_else): Likewise.
21713 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
21714 (choose_basereg): Likewise.
21715 (ix86_expand_prologue): Likewise.
21716 (ix86_preferred_output_reload_class): Likewise.
21717 * cselib.c (cselib_record_sets): Likewise.
21718 * df-scan.c (df_scan_alloc): Likewise.
21719 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
21720 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
21721 * emit-rtl.c (try_split): Likewise.
21722 * graphite-scop-detection.c (assign_parameter_index_in_region):
21723 Likewise.
21724 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
21725 * ira-color.c (setup_profitable_hard_regs): Likewise.
21726 * ira.c (rtx_moveable_p): Likewise.
21727 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
21728 * read-rtl.c (read_subst_mapping): Likewise.
21729 * regrename.c (scan_rtx): Likewise.
21730 * reorg.c (fill_slots_from_thread): Likewise.
21731 * tree-inline.c (tree_function_versioning): Likewise.
21732 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
21733 * tree-ssa-sink.c (statement_sink_location): Likewise.
21734 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
21735 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
21736 (vect_create_epilog_for_reduction): Likewise.
21737 * tree.c (build_nonstandard_integer_type): Likewise.
21738
21739 2019-06-27 Richard Biener <rguenther@suse.de>
21740
21741 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
21742
21743 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
21744
21745 PR tree-optimization/89772
21746 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
21747 out-of-bound accesses checking.
21748
21749 2019-06-27 Martin Liska <mliska@suse.cz>
21750
21751 PR tree-optimization/91014
21752 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
21753 when LHS is NULL_TREE.
21754
21755 2019-06-27 Martin Liska <mliska@suse.cz>
21756
21757 * symbol-summary.h (traverse): Pass
21758 argument a to the call of callback.
21759 (gt_ggc_mx): Mark arguments as unused.
21760 (gt_pch_nx): Likewise.
21761
21762 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
21763
21764 PR target/62147
21765 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
21766 finiteness.
21767
21768 2019-06-26 Jeff Law <law@redhat.com>
21769
21770 PR tree-optimization/90883
21771 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
21772 (delete_dead_or_redundant_assignment): Likewise.
21773
21774 PR tree-optimization/90883
21775 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
21776 * tree-ssa-dse.c: Update various comments to distinguish between
21777 dead and redundant stores.
21778 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
21779 (dse_optimize_redundant_stores): New function.
21780 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
21781 Distinguish between dead and redundant calls in dump output. All
21782 callers updated.
21783 (delete_dead_or_redundant_assignment): Similarly for assignments.
21784 (dse_optimize_stmt): Handle _CHK variants. For statements which
21785 store 0 into multiple memory locations, try to prove a subsequent
21786 store is redundant.
21787
21788 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
21789
21790 PR target/89021
21791 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
21792 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
21793
21794 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
21795
21796 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
21797 (branch_islands): New extern.
21798 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
21799 * config/rs6000/rs6000.c: .. here.
21800
21801 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
21802
21803 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
21804 (powerpc*-*-*) ... to here.
21805
21806 2019-06-26 Jeff Law <law@redhat.com>
21807
21808 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
21809 memcpy, memmove and memset builtins.
21810 (maybe_trim_memstar_call): Likewise.
21811
21812 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
21813
21814 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
21815
21816 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
21817
21818 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
21819
21820 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
21821
21822 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
21823 declaration.
21824 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
21825 "static".
21826 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
21827 declaration.
21828
21829 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
21830
21831 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
21832
21833 2019-06-26 Richard Biener <rguenther@suse.de>
21834
21835 PR ipa/90982
21836 * tree-inline.c (remap_ssa_name): Copy SSA range info.
21837
21838 2019-06-26 Richard Biener <rguenther@suse.de>
21839
21840 * lto-streamer.h (lto_bitmap_alloc): Remove.
21841 (lto_bitmap_free): Likewise.
21842 * lto-streamer.c (lto_bitmap_alloc): Remove.
21843 (lto_bitmap_free): Likewise.
21844 (lto_obstack): Likewise.
21845 (lto_obstack_initialized): Likewise.
21846 * lto-streamer-out.c (lto_output): Use own obstack for local
21847 bitmap, free it consistently.
21848
21849 2019-06-26 Jakub Jelinek <jakub@redhat.com>
21850
21851 PR target/90991
21852 * config/i386/sse.md
21853 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
21854 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
21855 insns if operands[2] is misaligned_operand.
21856
21857 2019-06-26 Li Jia He <helijia@linux.ibm.com>
21858
21859 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
21860 TARGET_POWERPC64.
21861 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
21862 to GPR.
21863
21864 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
21865
21866 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
21867
21868 2019-06-26 Martin Liska <mliska@suse.cz>
21869
21870 PR tree-optimization/90973
21871 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
21872 epilogue_cost_vec instead of prologue_cost_vec for
21873 a epilogue cost.
21874
21875 2019-06-26 Martin Liska <mliska@suse.cz>
21876
21877 * bb-reorder.c (connect_better_edge_p): Add missing else
21878 statement in the middle of if-else statements.
21879
21880 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
21881 H.J. Lu <hongjiu.lu@intel.com>
21882 Olga Makhotina <olga.makhotina@intel.com>
21883
21884 * common/config/i386/i386-common.c
21885 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
21886 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
21887 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
21888 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
21889 (ix86_handle_option): Handle -mavx512vp2intersect.
21890 * config/i386/avx512vp2intersectintrin.h: New.
21891 * config/i386/avx512vp2intersectvlintrin.h: New.
21892 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
21893 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21894 AVX512VP2INTERSECT.
21895 * config/i386/i386-builtin-types.def: Add new types.
21896 * config/i386/i386-builtin.def: Add new builtins.
21897 * config/i386/i386-builtins.c: (enum processor_features): Add
21898 F_AVX512VP2INTERSECT.
21899 (static const _isa_names_table isa_names_table): Ditto.
21900 * config/i386/i386-c.c (ix86_target_macros_internal): Define
21901 __AVX512VP2INTERSECT__.
21902 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
21903 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
21904 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
21905 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
21906 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
21907 * config/i386/i386-options.c (ix86_target_string): Add
21908 -mavx512vp2intersect.
21909 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
21910 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
21911 P2HImode and P2QImode.
21912 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
21913 number for P2QImode and P2HImode.
21914 (ix86_regmode_natural_size): New function.
21915 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
21916 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
21917 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
21918 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
21919 * config/i386/i386.opt: Add -mavx512vp2intersect.
21920 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
21921 avx512vp2intersectvlintrin.h.
21922 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
21923 (define_mode_iterator VI48_AVX512VP2VL): New.
21924 (avx512vp2intersect_2intersect<mode>,
21925 avx512vp2intersect_2intersectv16si): New define_insn patterns.
21926 * config.gcc: Add avx512vp2intersectvlintrin.h and
21927 avx512vp2intersectintrin.h to extra_headers.
21928 * doc/invoke.texi: Document -mavx512vp2intersect.
21929
21930 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
21931
21932 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
21933
21934 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
21935
21936 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
21937 savres_routine_syms, savres_routine_name, morestack_ref,
21938 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
21939 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
21940 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
21941 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
21942 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
21943 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
21944 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
21945 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
21946 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
21947 get_stack_clash_protection_probe_interval,
21948 get_stack_clash_protection_guard_size,
21949 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
21950 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
21951 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
21952 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
21953 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
21954 gen_frame_mem_offset, rs6000_savres_routine_name,
21955 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
21956 ptr_regno_for_savres, rs6000_emit_savres_rtx,
21957 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
21958 rs6000_global_entry_point_prologue_needed_p,
21959 rs6000_get_separate_components, rs6000_components_for_bb,
21960 rs6000_disqualify_components, rs6000_emit_prologue_components,
21961 rs6000_emit_epilogue_components, rs6000_set_handled_components,
21962 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
21963 rs6000_output_savres_externs, rs6000_output_function_prologue,
21964 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
21965 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
21966 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
21967 rs6000_output_function_epilogue, gen_add3_const,
21968 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
21969 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
21970 to rs6000-logue.c.
21971 (machine_function): Moved to rs6000.h.
21972 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
21973 rs6000-internal.h.
21974 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
21975 savres_routine_syms, savres_routine_name, morestack_ref,
21976 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
21977 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
21978 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
21979 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
21980 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
21981 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
21982 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
21983 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
21984 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
21985 get_stack_clash_protection_probe_interval,
21986 get_stack_clash_protection_guard_size,
21987 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
21988 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
21989 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
21990 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
21991 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
21992 gen_frame_mem_offset, rs6000_savres_routine_name,
21993 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
21994 ptr_regno_for_savres, rs6000_emit_savres_rtx,
21995 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
21996 rs6000_global_entry_point_prologue_needed_p,
21997 rs6000_get_separate_components, rs6000_components_for_bb,
21998 rs6000_disqualify_components, rs6000_emit_prologue_components,
21999 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22000 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22001 rs6000_output_savres_externs, rs6000_output_function_prologue,
22002 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22003 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22004 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22005 rs6000_output_function_epilogue, gen_add3_const,
22006 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22007 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22008 to here from rs6000.c.
22009 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
22010 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
22011 quad_address_offset_p) Moved to here from rs6000.c.
22012 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
22013 * config/config.gcc: Add new source file rs6000-logue.c to garbage
22014 collector.
22015
22016 2019-06-25 Martin Liska <mliska@suse.cz>
22017
22018 * hash-table.c (hashtab_chk_error): Move here from ...
22019 * hash-table.h (hashtab_chk_error): ... here.
22020
22021 2019-06-25 Martin Liska <mliska@suse.cz>
22022
22023 PR tree-optimization/90978
22024 * df-scan.c (df_update_entry_block_defs): Remove dead else
22025 branch.
22026 (df_update_exit_block_uses): Likewise.
22027
22028 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
22029 Andrew Stubbs <ams@codesourcery.com>
22030
22031 * config.gcc (thread_file): Set to gcn for AMD GCN.
22032 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
22033 (TARGET_EMUTLS_VAR_INIT): New hook.
22034
22035 2019-06-25 Martin Jambor <mjambor@suse.cz>
22036
22037 PR ipa/90939
22038 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
22039
22040 2019-06-25 Richard Biener <rguenther@suse.de>
22041
22042 PR tree-optimization/90930
22043 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
22044 into parallel form in the last pass instance.
22045
22046 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
22047
22048 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
22049 (arc_legitimize_pic_address): Simplify and cleanup the function.
22050 (SYMBOLIC_CONST): Remove.
22051 (prepare_pic_move): Likewise.
22052 (prepare_move_operands): Handle complex mov cases here.
22053 (arc_legitimize_address_0): Remove call to
22054 arc_legitimize_pic_address.
22055 (arc_legitimize_address): Remove call to
22056 arc_legitimize_tls_address.
22057 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
22058 (movhi_insn): Likewise.
22059
22060 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22061
22062 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
22063 PTRDIFF_TYPE.
22064 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
22065 format of "__intN" types for UINTMAX_TYPE.
22066 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
22067 format of "__intN" types for SIZETYPE.
22068 * tree.c (build_common_tree_nodes): Accept "__intN__"
22069 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
22070 * doc/invoke.texi: Document that __intN__ disables pedantic
22071 warnings.
22072
22073 2019-06-25 Jan Hubicka <jh@suse.cz>
22074
22075 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
22076 base2_alias_set is non-zero before doing TBAA based disambiguation.
22077
22078 2019-06-25 Martin Liska <mliska@suse.cz>
22079
22080 PR tree-optimization/90973
22081 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
22082 of prologue and epilogue.
22083
22084 2019-06-24 Jan Hubicka <jh@suse.cz>
22085
22086 * ipa-utils.h (type_with_linkage_p): Verify that type is
22087 CXX_ODR_P.
22088 (odr_type_p): Remove extra return.
22089 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
22090 hash STRING_FLAG only for arrays and integers.
22091 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
22092 Update analogously.
22093 * tree-streamer-out.c (pack_ts_type_common_value_fields):
22094 Likewise.
22095 * print-tree.c (print_node): Print cxx-odr-p
22096 and string-flag.
22097 * tree.c (need_assembler_name_p): Also check that type
22098 is CXX_ODR_TYPE_P
22099 (verify_type_variant): Update verification of SRING_FLAG;
22100 also check CXX_ODR_P.
22101 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
22102 (TYPE_STRING_FLAG): Use it.
22103 (TYPE_CXX_ODR_P): New macro.
22104 * dwarf2out.c (gen_array_type_die): First check that type
22105 is an array and then test string flag.
22106
22107 2019-06-24 Richard Biener <rguenther@suse.de>
22108
22109 PR tree-optimization/90972
22110 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
22111 in common code, dealing with STRING_CST properly.
22112
22113 2019-06-24 Richard Biener <rguenther@suse.de>
22114
22115 PR tree-optimization/90930
22116 PR tree-optimization/90316
22117 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
22118 decrement of limit.
22119
22120 2019-06-24 Martin Sebor <msebor@redhat.com>
22121
22122 * tree-pretty-print.h: Remove unnecessary punctuation characters
22123 from a diagnostic.
22124 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
22125
22126 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
22127
22128 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
22129 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
22130 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
22131
22132 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
22133
22134 * config/rs6000/darwin.h: Handle GCC target pragma.
22135
22136 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
22137
22138 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
22139
22140 2019-06-22 Jeff Law <law@redhat.com>
22141
22142 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22143
22144 2019-06-22 Jan Hubicka <jh@suse.cz>
22145
22146 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
22147 give up on bitfields; continue searching for different refs
22148 appearing later.
22149
22150 2019-06-21 Jakub Jelinek <jakub@redhat.com>
22151
22152 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
22153 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
22154 containing the offset as possible simd lane access. Look through
22155 widening conversion. Move the
22156 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
22157
22158 2019-06-21 Richard Biener <rguenther@suse.de>
22159
22160 PR tree-optimization/90930
22161 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
22162 flag on new stmts to avoid re-processing them.
22163
22164 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
22165
22166 PR c++/90875 - added -Wswitch-outside-range option
22167 * doc/invoke.texi (Wswitch-outside-range): Document.
22168
22169 2019-06-21 Jeff Law <law@redhat.com>
22170
22171 PR tree-optimization/90949
22172 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
22173 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
22174
22175 2019-06-21 Richard Biener <rguenther@suse.de>
22176
22177 PR debug/90914
22178 * dwarf2out.c (prune_unused_types_walk): Always consider
22179 function-local extern declarations as used.
22180
22181 2019-06-21 Richard Biener <rguenther@suse.de>
22182
22183 PR tree-optimization/90913
22184 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
22185 the scalar variant of if-conversion versioning.
22186
22187 2019-06-21 Jakub Jelinek <jakub@redhat.com>
22188
22189 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
22190 create another "omp scan inscan exclusive" array if
22191 !ctx->scan_inclusive.
22192 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
22193 (lower_omp_scan): Likewise.
22194 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
22195 2-bit bitfield for simd_lane_access_p member.
22196 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
22197 aux == (void *)-4 as simd lane access.
22198 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
22199 comment with permutations to show the canonical permutation order.
22200 (vectorizable_scan_store): Handle exclusive scan.
22201 (vectorizable_store): Call vectorizable_scan_store even for
22202 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
22203
22204 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
22205 "omp simd array" arrays with one byte elements.
22206
22207 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
22208
22209 * config/alpha/alpha.md (@unaligned_store<mode>):
22210 Rename from unaligned_store<mode>.
22211 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
22212 * config/alpha/sync.md (@load_locked_<mode>): Rename
22213 from load_locked_<mode>.
22214 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
22215 (@atomic_compare_and_swap<mode>_1): Rename
22216 from atomic_compare_and_swap<mode>_1.
22217 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
22218 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
22219 Use gen_reload_in_aligned and gen_unaligned_store.
22220 (emit_load_locked): Remove.
22221 (emit_store_conditional): Ditto.
22222 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
22223 (alpha_split_compare_and_swap): Ditto.
22224 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
22225 (alpha_split_compare_and_swap_12): Use gen_load_locked
22226 and gen_store_conditional.
22227 (alpha_split_atomic_exchange): Ditto.
22228 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
22229 (alpha_split_atomic_exchange_12): Use gen_load_locked
22230 and gen_store_conditional.
22231
22232 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
22233
22234 * config/aarch64/aarch64-errata.h: New file.
22235 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
22236 (CA53_ERR_843419_SPEC): Delete.
22237 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
22238 * config/aarch64/aarch64-linux.h: Likewise.
22239 * config/aarch64/aarch64-netbsd.h: Likewise.
22240 * config/aarch64/aarch64-freebsd.h: Likewise.
22241
22242 2019-06-20 Marek Polacek <polacek@redhat.com>
22243
22244 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
22245
22246 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
22247
22248 * config/rs6000/rs6000.md (isa attribute): Add support for
22249 for a future processor.
22250
22251 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
22252
22253 PR target/54855
22254 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
22255 standard scalar operation pattern for V2DF.
22256 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
22257 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
22258 (*ieee_<ieee_maxmin><mode>3): Likewise.
22259 (vec_setv2df_0): Likewise.
22260
22261 2019-06-20 Jan Hubicka <jh@suse.cz>
22262
22263 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
22264 parameter; it has no use in gimple memory model.
22265 (indirect_ref_may_alias_decl_p): Update.
22266
22267 2019-06-20 Martin Liska <mliska@suse.cz>
22268
22269 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
22270 to 10.
22271
22272 2019-06-20 Jakub Jelinek <jakub@redhat.com>
22273
22274 * tree-vect-stmts.c (enum scan_store_kind): New type.
22275 (scan_store_can_perm_p): Change last argument from int * to
22276 vec<enum scan_store_kind> *, record precisely which permutations
22277 need whole vector left shift or that plus VEC_COND_EXPR.
22278 (vectorizable_scan_store): Adjust caller, use whole vector left shift
22279 and additional VEC_COND_EXPR only for those iterations that need it.
22280
22281 2019-06-20 Alexandre Oliva <oliva@adacore.com>
22282
22283 * config.gcc: Fix ARM --with-fpu checking and error message.
22284
22285 2019-06-19 Marek Polacek <polacek@redhat.com>
22286
22287 PR c++/60364 - noreturn after first decl not diagnosed.
22288 * attribs.c (get_attribute_namespace): No longer static.
22289 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
22290 attributes.
22291 (attr_noreturn_exclusions): Make it extern.
22292 * attribs.h (get_attribute_namespace): Declare.
22293 * tree-inline.c (function_attribute_inlinable_p): Use
22294 get_attribute_name.
22295
22296 2019-06-19 Martin Sebor <msebor@redhat.com>
22297
22298 PR tree-optimization/90626
22299 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
22300
22301 PR tree-optimization/90626
22302 * tree-ssa-strlen.c (strxcmp_unequal): New function.
22303 (handle_builtin_string_cmp): Call it.
22304
22305 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
22306
22307 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
22308 and DARWIN_NOPIE_SPEC.
22309 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
22310 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
22311 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
22312 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
22313 (DARWIN_EXPORT_DYNAMIC): Delete.
22314 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
22315 and pie options processing to darwin.h.
22316 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
22317
22318 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
22319
22320 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
22321 in computing the number of options to be moved.
22322
22323 2019-06-19 Maya Rashish <coypu@sdf.org>
22324
22325 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
22326 (CLEAR_INSN_CACHE) Use it.
22327
22328 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
22329
22330 * config/i386/i386.md (cmpstrnsi): Remove dead code.
22331
22332 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
22333
22334 PR middle-end/84521
22335 * builtins.c (expand_builtin_setjmp_setup): Save
22336 hard_frame_pointer_rtx.
22337 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
22338 restore fp.
22339 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
22340 non-local goto.
22341 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
22342 elimination code.
22343 (remove_reg_equal_offset_note): Remove unused function.
22344 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
22345 code.
22346 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22347 (arc_builtin_setjmp_frame_value): Remove function.
22348 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22349 (avr_builtin_setjmp_frame_value): Remove function.
22350 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22351 (ix86_builtin_setjmp_frame_value): Remove function.
22352 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
22353 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22354 (sparc_builtin_setjmp_frame_value): Remove function.
22355 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22356 (vax_builtin_setjmp_frame_value): Remove function.
22357 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
22358 pointer if has_nonlocal_label.
22359
22360 2019-06-19 Jakub Jelinek <jakub@redhat.com>
22361
22362 * doc/md.texi: Document vec_shl_<mode> pattern.
22363 * optabs.def (vec_shl_optab): New optab.
22364 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
22365 argument, if == vec_shl_optab, check for left whole vector shift
22366 pattern rather than right shift.
22367 (expand_vec_perm_const): Add vec_shl_optab support.
22368 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
22369 in the comment.
22370 * tree-vect-generic.c (lower_vec_perm): Support permutations which
22371 can be handled by vec_shl_optab.
22372 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
22373 (check_scan_store): Use it.
22374 (vectorizable_scan_store): If target can't do normal permutations,
22375 try to use whole vector left shifts and if needed a VEC_COND_EXPR
22376 after it.
22377 * config/i386/sse.md (vec_shl_<mode>): New expander.
22378
22379 * omp-low.c (lower_rec_input_clauses): Handle references properly
22380 in inscan clauses.
22381 (lower_omp_scan): Likewise.
22382
22383 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22384
22385 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
22386 mem_mode is BLKmode.
22387
22388 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
22389
22390 PR target/90922
22391 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
22392 pointer adjustment for the case of no callee-saved registers and
22393 stack frame bigger than 128 bytes.
22394
22395 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
22396
22397 PR middle-end/90862
22398 * omp-low.c (check_omp_nesting_restrictions): Handle
22399 GF_OMP_TARGET_KIND_OACC_DECLARE.
22400
22401 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
22402
22403 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
22404 (@add<mode>3_carry): Rename from add<mode>3_carry.
22405 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
22406 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
22407 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
22408 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
22409 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
22410 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
22411 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
22412 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
22413 (cmpstrnsi): Use gen_cmp_1.
22414 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
22415 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
22416 (@umonitor_<mode>): Rename from umonitor_<mode>.
22417 * config/i386/i386-expand.c (ix86_expand_copysign):
22418 Use gen_copysign3_const and gen_copysign3_var.
22419 (ix86_expand_xorsign): Use gen_xorsign3_1.
22420 (ix86_expand_branch): Use gen_sub3_carry_ccc,
22421 gen_sub3_carry_ccgz and gen_cmp1.
22422 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
22423 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
22424 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
22425 (ix86_split_lshr): Ditto.
22426 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
22427
22428 2019-06-18 Jason Merrill <jason@redhat.com>
22429
22430 * tree.c (build_constructor): Add MEM_STAT_DECL.
22431
22432 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22433
22434 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
22435 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
22436 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
22437 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
22438 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
22439 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
22440 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
22441 Use CC_NZC instead of CC.
22442 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
22443 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
22444 (aarch64_print_operand): Handle E_CC_NZCmode.
22445 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
22446 of gen_set_clobber_cc.
22447
22448 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22449
22450 * config/aarch64/aarch64-sve.md: Tabify file.
22451
22452 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22453
22454 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
22455 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
22456 * config/aarch64/aarch64-sve.md: Use it.
22457
22458 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22459
22460 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
22461 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
22462 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
22463 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
22464 (aarch64_expand_sve_vec_cmp_int): Use it.
22465 (aarch64_expand_sve_vec_cmp_float): Likewise.
22466 * config/aarch64/aarch64-sve.md: Likewise throughout.
22467
22468 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22469 Kugan Vivekanandarajah <kuganv@linaro.org>
22470
22471 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
22472 (*cond_<optab><mode>_z): Fold into...
22473 (*cond_<optab><mode>_any): ...here. Also handle cases in which
22474 operand 4 can be tied to operand 0 (either inherently or via RA).
22475
22476 2019-06-18 Richard Biener <rguenther@suse.de>
22477
22478 PR debug/90900
22479 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
22480 as if optimized away.
22481
22482 2019-06-18 Tom de Vries <tdevries@suse.de>
22483
22484 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
22485 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
22486 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
22487 Rename to ...
22488 (define_insn "@set_softstack_<mode>"): ... this.
22489 (define_insn "omp_simt_enter_<mode>"): Rename to ...
22490 (define_insn "@omp_simt_enter_<mode>"): ... this.
22491 (define_insn "omp_simt_exit_<mode>"): Rename to ...
22492 (define_insn "@omp_simt_exit_<mode>"): ... this.
22493
22494 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22495
22496 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
22497 vf parameter. Restore the previous iv step of nscalars_step,
22498 but give it iv_type rather than compare_type. Tweak code order
22499 to match the comments.
22500 (vect_set_loop_condition_masked): Update accordingly.
22501 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
22502 for iv_precision. Tweak comment formatting.
22503
22504 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
22505
22506 * config/darwin.c: Strip trailing whitespace.
22507
22508 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
22509
22510 * config/darwin.c (darwin_emit_unwind_label): New default to false.
22511 (darwin_override_options): Set darwin_emit_unwind_label as needed.
22512
22513 2019-06-18 Martin Jambor <mjambor@suse.cz>
22514
22515 PR ipa/90889
22516 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
22517 caller does not have flag_ipa_cp set.
22518
22519 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22520
22521 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
22522 from "*fold_left_plus_<mode>", updated operands order.
22523 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
22524 * internal-fn.c (mask_fold_left_direct): New define.
22525 (expand_mask_fold_left_optab_fn): Likewise.
22526 (direct_mask_fold_left_optab_supported_p): Likewise.
22527 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
22528 * optabs.def (mask_fold_left_plus_optab): New optab.
22529 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
22530 masked internal_fn for a reduction ifn.
22531 (vectorize_fold_left_reduction): Add support for masking reductions.
22532
22533 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
22534
22535 PR middle-end/80791
22536 * target.def (predict_doloop_p): New hook.
22537 * targhooks.h (default_predict_doloop_p): New declaration.
22538 * targhooks.c (default_predict_doloop_p): New function.
22539 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
22540 * doc/tm.texi: Regenerate.
22541 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
22542 (TARGET_PREDICT_DOLOOP_P): New macro.
22543 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
22544
22545 2019-06-17 Jakub Jelinek <jakub@redhat.com>
22546
22547 * omp-low.c (struct omp_context): Add scan_inclusive field.
22548 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
22549 if inclusive scan.
22550 (struct omplow_simd_context): Add lastlane member.
22551 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
22552 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
22553 1 or 2 argument.
22554 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
22555 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
22556 (lower_omp_scan): New function.
22557 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
22558 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
22559 check 3rd argument if present rather than 2nd.
22560 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
22561 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
22562 2-bit bitfield.
22563 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22564 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
22565 than 2nd.
22566 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
22567 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
22568 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
22569 init.
22570 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
22571 IFN_GOMP_SIMD_LANE argument.
22572 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
22573 encoded ->aux value.
22574 * tree-vect-stmts.c: Include attribs.h.
22575 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
22576 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
22577 functions.
22578 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
22579 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
22580
22581 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
22582
22583 PR target/62055
22584 * config/i386/i386.md (*nabstf2_1): New insn pattern.
22585 (*nabs<mode>2_1): Ditto.
22586 (nabs sse-reg splitter): New splitter.
22587 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
22588
22589 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
22590
22591 PR bootstrap/90873.
22592 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
22593 TMR index check.
22594
22595 2019-06-17 Tom de Vries <tdevries@suse.de>
22596
22597 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
22598 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
22599 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
22600 ...
22601 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
22602 match_operand 0.
22603 (define_insn "omp_simt_enter_insn"): Rename to ...
22604 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
22605 match_operand 0, 1 and 2, as well as the unspec_volatile result.
22606 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
22607 gen_omp_simt_enter_si.
22608 (define_expand "omp_simt_exit"): New.
22609 (define_insn "omp_simt_exit"): Rename to ...
22610 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
22611 match_operand 0.
22612
22613 2019-06-17 Matthew Green <mrg@eterna.com.au>
22614 Maya Rashish <coypu@sdf.org>
22615
22616 * config.gcc (aarch64*-*-netbsd*): New target.
22617 * config/aarch64/aarch64-netbsd.h: New file.
22618 * config/aarch64/t-aarch64-netbsd: Likewise.
22619
22620 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
22621
22622 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
22623 the access path from base to first VIEW_CONVERT_EXPR or
22624 BIT_FIELD_REF.
22625
22626 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
22627
22628 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
22629 access path on BIT_FIELD_REFs.
22630
22631 2019-06-17 Martin Liska <mliska@suse.cz>
22632
22633 PR ipa/90874
22634 * ipa-utils.h (odr_type_p): Remove dead code.
22635
22636 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22637
22638 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
22639 alternative Solaris 11.4 format.
22640 * configure: Regenerate.
22641
22642 2019-06-17 Tom de Vries <tdevries@suse.de>
22643
22644 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
22645 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
22646 match_operand 0.
22647 (define_insn "call_value_insn"): Rename to ...
22648 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
22649 match_operand 0.
22650 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
22651 DI.
22652
22653 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
22654
22655 PR middle-end/64242
22656 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
22657 frame clobbers and schedule block.
22658 (builtin_longjmp): Likewise.
22659
22660 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22661
22662 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
22663 describe how to perform MSPABI compliant 64-bit shift.
22664 * config/msp430/msp430.md (ashldi3): New define_expand.
22665 (ashrdi3): New define_expand.
22666 (lshrdi3): New define_expand.
22667
22668 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22669
22670 * doc/sourcebuild.texi: Document new effective target keyword
22671 longlong64.
22672
22673 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
22674
22675 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
22676 indirect_refs_may_alias_p): Revert accidental commits.
22677
22678 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
22679 at the end of structures.
22680
22681 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
22682
22683 * config/darwin.c (machopic_indirect_call_target): Use renamed
22684 darwin_picsymbol_stubs to decide on output.
22685 (darwin_override_options): Handle darwin_picsymbol_stubs.
22686 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
22687 (LD64_VERSION): Revise default.
22688 * config/darwin.opt: (mpic-symbol-stubs): New option.
22689 (darwin_picsymbol_stubs): New variable.
22690 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
22691 rename to TARGET_MACHO_PICSYM_STUBS.
22692 * config/i386/i386.c (output_pic_addr_const): Likewise.
22693 * config/i386/i386.h Likewise.
22694 * config/rs6000/darwin.h: Likewise.
22695 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
22696 darwin_picsymbol_stubs.
22697
22698 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
22699
22700 * config/darwin.opt (prebind, noprebind, seglinkedit,
22701 noseglinkedit): Add RejectNegative.
22702
22703 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
22704
22705 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
22706 in my previous patch.
22707
22708 2019-06-16 Tom de Vries <tdevries@suse.de>
22709
22710 PR tree-optimization/89376
22711 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
22712
22713 2019-06-15 Maya Rashish <coypu@sdf.org>
22714
22715 * doc/invoke.texi (Spec Files): Update location of the
22716 Fortran spec file.
22717
22718 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
22719
22720 * doc/extend.texi (Common Function Attributes): Clarify
22721 no_sanitize. Fix grammar.
22722
22723 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
22724
22725 * tree-ssa-alias.c (alias_stats): Add
22726 nonoverlapping_component_refs_p_may_alias,
22727 nonoverlapping_component_refs_p_no_alias,
22728 nonoverlapping_component_refs_of_decl_p_may_alias,
22729 nonoverlapping_component_refs_of_decl_p_no_alias.
22730 (dump_alias_stats): Dump them.
22731 (nonoverlapping_component_refs_of_decl_p): Add stats.
22732 (nonoverlapping_component_refs_p): Add stats; do not stop on first
22733 ARRAY_REF.
22734
22735 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
22736
22737 * config/i386/i386.md (and<mode>3): Generate zero-extends for
22738 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
22739 only.
22740 (*anddi3_doubleword): Split before reload. Merge with
22741 anddi->zext pre-reload splitter.
22742 (*andndi3_doubleword): Split before reload.
22743 (*<code>di3_doubleword): Ditto.
22744 (*one_cmpldi2_doubleword): Ditto.
22745
22746 2019-06-15 Jakub Jelinek <jakub@redhat.com>
22747
22748 PR middle-end/90779
22749 * gimplify.c: Include omp-offload.h and context.h.
22750 (gimplify_bind_expr): Add "omp declare target" attributes
22751 to static block scope variables inside of target region or target
22752 functions.
22753
22754 2019-06-15 Tom de Vries <tdevries@suse.de>
22755
22756 PR tree-optimization/90009
22757 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
22758 Return NULL if bb contains IFN_UNIQUE.
22759
22760 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
22761
22762 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
22763 (un): New define_mode_attr.
22764 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
22765 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
22766 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
22767 merge into ...
22768 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
22769
22770 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
22771
22772 * config/darwin.opt: Add RejectNegative where needed, reorder
22773 and add minimal functional descriptions.
22774
22775 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
22776
22777 PR rtl-optimization/90765
22778 * calls.c (update_stack_alignment_for_call): New function.
22779 (expand_call): Call update_stack_alignment_for_call when
22780 outgoing parameter is passed in the stack.
22781 (emit_library_call_value_1): Likewise.
22782 * function.c (locate_and_pad_parm): Don't update
22783 stack_alignment_needed and preferred_stack_boundary.
22784
22785 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
22786
22787 PR target/90877
22788 * config/i386/i386-features.c
22789 (dimode_scalar_chain::compute_convert_gain): Replace
22790 mmxsse_to_integer with sse_to_integer.
22791 * config/i386/i386.c (ix86_register_move_cost): Verify that
22792 moves between MMX and non-MMX units require secondary memory.
22793 Correct costs of moves between SSE and integer units.
22794 * config/i386/i386.h (processor_costs): Rename cost of moving
22795 SSE register to integer to sse_to_integer. Rename cost of
22796
22797 2019-06-14 Matt Thomas <matt@3am-software.com>
22798 Matthew Green <mrg@eterna.com.au>
22799 Nick Hudson <skrll@netbsd.org>
22800 Maya Rashish <coypu@sdf.org>
22801 Richard Earnshaw <rearnsha@arm.com>
22802
22803 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
22804 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
22805 * config/arm/netbsd-eabi.h: New file.
22806 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
22807 redefining.
22808 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
22809 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
22810 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
22811 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
22812
22813 2019-06-14 Richard Biener <rguenther@suse.de>
22814
22815 * tree-loop-distribution.c (classify_partition): Return
22816 whether a reduction appeared in all partitions and do not
22817 stop builtin detection because of this.
22818 (distribute_loop): Sort a non-builtin partition last if
22819 there's a reduction in all partitions and make sure the
22820 partition prevailing as last is not a builtin.
22821
22822 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
22823
22824 PR ipa/90401
22825 * ipa-prop.c (add_to_agg_contents_list): New function.
22826 (clobber_by_agg_contents_list_p): Likewise.
22827 (extract_mem_content): Likewise.
22828 (get_place_in_agg_contents_list): Delete.
22829 (determine_known_aggregate_parts): Renamed from
22830 determine_locally_known_aggregate_parts. New parameter
22831 aa_walk_budget_p.
22832
22833 2019-06-13 Martin Sebor <msebor@redhat.com>
22834
22835 PR tree-optimization/90662
22836 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
22837 to the same type.
22838
22839 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
22840
22841 PR bootstrap/90873
22842 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
22843 dbase is not TARGET_MEM_REF.
22844
22845 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
22846
22847 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
22848 Update all uses.
22849 (and<mode>3): Use gen_extend_insn instead of indirect functions.
22850 Do not generate DImode extends for 32bit targets.
22851 (and->zext post-reload splitter): Use gen_extend_insn
22852 instead of indirect functions.
22853 (anddi->zext pre-reload splitter): New.
22854 (*zext<mode>_doubleword_and): Remove.
22855 (*zext<mode>_doubleword): Ditto.
22856 (*zextsi_doubleword): Dittto.
22857
22858 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
22859
22860 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
22861 Use gen_sub3_insn instead of indirect function.
22862 (ix86_expand_ashl_const): Use gen_add2_insn instead of
22863 indirect function.
22864 (ix86_adjust_counter): Ditto.
22865
22866 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
22867 Lijia He <helijia@linux.ibm.com>
22868
22869 PR tree-optimization/77820
22870 * tree-ssa-threadedge.c
22871 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
22872 function.
22873 (thread_across_edge): Add call to
22874 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
22875
22876 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
22877
22878 * config/darwin-driver.c (validate_macosx_version_min): New.
22879 (darwin_default_min_version): Cleanup and validate supplied version.
22880 (darwin_driver_init): Likewise and push cleaned version into opts.
22881
22882 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
22883
22884 PR tree-optimization/90869
22885 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
22886 converts in MEM_REF referencing decl rather than view converts
22887 from decl type to MEM_REF type.
22888
22889 2019-06-13 Richard Biener <rguenther@suse.de>
22890
22891 PR tree-optimization/90856
22892 * tree-sra.c (build_ref_for_model): Only use
22893 build_reconstructed_reference when address-spaces are the same.
22894
22895 2019-06-13 Jakub Jelinek <jakub@redhat.com>
22896
22897 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
22898 wrap ei variable name in the declaration in ()s.
22899 (nvptx_single): Actually use mode_label variable. Formatting fix.
22900
22901 2019-06-13 Richard Biener <rguenther@suse.de>
22902
22903 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
22904 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
22905 also return the condition stmt.
22906 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
22907 loop we can version and version that, reusing the loop version
22908 created by if-conversion instead of versioning again.
22909
22910 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
22911
22912 * gimple-loop-versioning.cc (prune_loop_conditions): Use
22913 may_contain_p.
22914 * tree-vrp (value_range_base::may_contain_p): Call into
22915 value_inside_range.
22916 (value_inside_range): Make private inside value_range_base class.
22917 Take min/max from *this.
22918 (range_includes_p): Remove.
22919 * tree-vrp.h (value_range_base): Add value_inside_range.
22920 (range_includes_p): Remove.
22921 (range_includes_zero_p): Call may_contain_p.
22922 * vr-values.c (compare_range_with_value): Same.
22923
22924 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
22925
22926 * doc/extend.texi (ARC Function Attributes): Update info.
22927
22928 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
22929
22930 PR tree-optimization/89713
22931 * doc/invoke.texi (-ffinite-loops): Document new option.
22932 * common.opt (-ffinite-loops): New option.
22933 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
22934 IFN_GOACC_LOOP calls as necessary.
22935 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
22936 is finite.
22937 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
22938 IFN_GOACC_LOOP call is not used.
22939 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
22940
22941 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22942
22943 PR target/88838
22944 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
22945 compare_type is not with Pmode size, we will create an IV with
22946 Pmode size with truncated use (i.e. converted to the correct type).
22947 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
22948 (vect_iv_limit_for_full_masking): New. Factored out of
22949 vect_set_loop_condition_masked.
22950 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
22951 (vect_iv_limit_for_full_masking): Declare.
22952
22953 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22954
22955 PR target/88834
22956 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
22957 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
22958 (get_alias_ptr_type_for_ptr_address): Likewise.
22959 (add_iv_candidate_for_use): Add scaled index candidate if useful.
22960 * tree-ssa-address.c (preferred_mem_scale_factor): New.
22961 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
22962 allow_reg_index_p.
22963
22964 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22965
22966 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
22967
22968 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
22969
22970 * common/config/pru/pru-common.c: New file.
22971 * config.gcc: Add PRU target.
22972 * config/pru/alu-zext.md: New file.
22973 * config/pru/constraints.md: New file.
22974 * config/pru/predicates.md: New file.
22975 * config/pru/pru-opts.h: New file.
22976 * config/pru/pru-passes.c: New file.
22977 * config/pru/pru-pragma.c: New file.
22978 * config/pru/pru-protos.h: New file.
22979 * config/pru/pru.c: New file.
22980 * config/pru/pru.h: New file.
22981 * config/pru/pru.md: New file.
22982 * config/pru/pru.opt: New file.
22983 * config/pru/t-pru: New file.
22984 * doc/extend.texi: Document PRU pragmas.
22985 * doc/invoke.texi: Document PRU-specific options.
22986 * doc/md.texi: Document PRU asm constraints.
22987
22988 2019-06-12 Martin Sebor <msebor@redhat.com>
22989
22990 PR middle-end/90676
22991 * tree-pretty-print.c (dump_mem_ref): New function. Include
22992 MEM_REF type in output when different size than operand.
22993 (dump_generic_node): Move code to dump_mem_ref and call it.
22994
22995 2019-06-12 Martin Sebor <msebor@redhat.com>
22996
22997 PR tree-optimization/90662
22998 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
22999 to arrays.
23000
23001 2019-06-12 Tom de Vries <tdevries@suse.de>
23002
23003 PR tree-optimization/90009
23004 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
23005
23006 2019-06-12 Martin Liska <mliska@suse.cz>
23007
23008 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
23009 the created map.
23010 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
23011 * mem-stats.h (mem_alloc_description::mem_alloc_description):
23012 Do not sanitize created maps.
23013
23014 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
23015
23016 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
23017 value_range::singleton_p.
23018 * tree-vrp.c (value_range_constant_singleton): Remove.
23019 * tree-vrp.h (value_range_constant_singleton): Remove.
23020 * vr-values.c (vr_values::singleton): Use
23021 value_range::singleton_p.
23022
23023 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23024
23025 PR target/90811
23026 * cfgexpand.c (align_local_variable): Add really_expand argument,
23027 don't SET_DECL_ALIGN if it is false.
23028 (add_stack_var): Add really_expand argument, pass it through to
23029 align_local_variable.
23030 (expand_one_stack_var_1): Pass true as really_expand to
23031 align_local_variable.
23032 (expand_one_ssa_partition): Pass true as really_expand to
23033 add_stack_var.
23034 (expand_one_var): Pass really_expand through to add_stack_var.
23035
23036 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
23037
23038 * config/arm/iterators.md (VABAL): New int iterator.
23039 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
23040 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
23041 UNSPEC_VABAL_U values.
23042
23043 2019-06-12 Martin Liska <mliska@suse.cz>
23044
23045 * value-prof.c (stream_out_histogram_value): Only first value
23046 can't be negative.
23047
23048 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23049
23050 PR c/90760
23051 * symtab.c (symtab_node::set_section): Allow being called on aliases
23052 as long as they aren't analyzed yet.
23053
23054 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
23055
23056 * config/mips/mips.c (mips_final_postscan_insn): Modify call
23057 to `mips_set_text_contents_type' to indicate whether a
23058 non-debug insn follows.
23059
23060 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
23061
23062 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
23063 enabling -mpcrel by default.
23064 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
23065 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
23066 that the test against -mcpu=future is done first. Then test if
23067 -mprefixed-addr is on for -mpcrel.
23068 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
23069
23070 2019-06-11 Jakub Jelinek <jakub@redhat.com>
23071
23072 PR target/90811
23073 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
23074 instead of and.u%d.
23075
23076 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
23077
23078 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
23079
23080 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
23081
23082 PR c++/90449 - add -Winaccessible-base option.
23083 * doc/invoke.texi (Winaccessible-base): Document.
23084
23085 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
23086
23087 PR tree-optimization/62041
23088 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
23089
23090 2019-06-11 Jason Merrill <jason@redhat.com>
23091
23092 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
23093 * tree.c (get_tree_code_name): Likewise.
23094 * print-tree.c (print_node): Only briefly print a node with an
23095 invalid code.
23096
23097 2019-06-11 Jakub Jelinek <jakub@redhat.com>
23098
23099 PR bootstrap/90819
23100 * trans-mem.c (tm_memopt_compute_available): Add assertion
23101 that blocks is not empty. Formatting fix.
23102
23103 2019-06-11 Martin Liska <mliska@suse.cz>
23104
23105 PR c++/87847
23106 * hash-table.h: Extend create_gcc, add one parameter
23107 that is passed into hash_table::hash_table.
23108
23109 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
23110
23111 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
23112 New prototype.
23113 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
23114 Emit clobber also for non-sse operations.
23115 (ix86_split_fp_absneg_operator): New function.
23116 * config/i386/i386.md (SSEMODEF): New mode iterator.
23117 (ssevecmodef): New mode attribute.
23118 (<code>tf2): Use absneg code iterator.
23119 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
23120 Add three-operand AVX alternatives.
23121 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
23122 Use absneg code iterator and X87MODEF mode iterator.
23123 (absneg fp_reg non-sse splitter): Call absneg code iterator
23124 and X87MODEF mode iterator.
23125 (absneg general_reg non-sse splitter): Use absneg code iterator
23126 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
23127 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
23128 code iterator. Add three-operand AVX alternative.
23129 (absneg sse_reg splitter): Use absneg code iterator
23130 and SSEMODEF mode iterator. Handle AVX operands.
23131 (absneg fp_reg splitter): Use absneg code iterator
23132 and MODEF mode iterator.
23133 (absneg general_reg splitter): Merge splitters using MODEF mode
23134 iterator. Use absneg code iterator. Call
23135 ix86_split_fp_absneg_operator.
23136 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
23137 Do not enable for non-sse modes before reload.
23138 (CSGNMODE): Remove.
23139 (CSGNVMODE): Ditto.
23140 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
23141 ssevecmodef mode attribute instaed of CSGNVMODE.
23142 (copysign<mode>3_const): Ditto.
23143 (copysign<mode>3_var): Ditto.
23144 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
23145 Use absneg code iterator. Simplify code using std::swap.
23146 * config/i386/predicates.md (absneg_operator): Remove.
23147
23148 2019-06-10 Martin Sebor <msebor@redhat.com>
23149
23150 * gimple-fold.c (get_range_strlen): Update comment that didn't
23151 make it into r267503 or related commits.
23152
23153 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
23154
23155 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
23156 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
23157
23158 2019-06-10 Jakub Jelinek <jakub@redhat.com>
23159
23160 * tree.def (OMP_SCAN): New tree code.
23161 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
23162 OMP_CLAUSE_EXCLUSIVE.
23163 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
23164 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
23165 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
23166 OMP_CLAUSE_{IN,EX}CLUSIVE.
23167 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
23168 * tree-nested.c (convert_nonlocal_reference_stmt,
23169 convert_local_reference_stmt, convert_gimple_call): Handle
23170 GIMPLE_OMP_SCAN.
23171 * tree-pretty-print.c (dump_omp_clause): Handle
23172 OMP_CLAUSE_{IN,EX}CLUSIVE.
23173 (dump_generic_node): Handle OMP_SCAN.
23174 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
23175 * gimple.h (gomp_scan): New type.
23176 (is_a_helper <gomp_scan *>::test,
23177 is_a_helper <const gomp_scan *>::test): New templates.
23178 (gimple_build_omp_scan): Declare.
23179 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
23180 gimple_omp_scan_set_clauses): New inline functions.
23181 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
23182 * gimple.c (gimple_build_omp_scan): New function.
23183 (gimple_copy): Handle GIMPLE_OMP_SCAN.
23184 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
23185 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
23186 GIMPLE_OMP_TASKGROUP.
23187 (dump_gimple_omp_scan): New function.
23188 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
23189 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
23190 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
23191 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
23192 (is_gimple_stmt): Handle OMP_SCAN.
23193 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
23194 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
23195 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
23196 mentioned in nested #pragma omp scan. Handle
23197 OMP_CLAUSE_{IN,EX}CLUSIVE.
23198 (gimplify_expr): Handle OMP_SCAN.
23199 * omp-low.c (check_omp_nesting_restrictions): For parent context,
23200 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
23201 simd constructs.
23202 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
23203 GIMPLE_OMP_SCAN.
23204
23205 2019-06-10 Martin Liska <mliska@suse.cz>
23206
23207 * ipa-cp.c (ignore_edge_p): New function.
23208 (build_toporder_info): Use it.
23209 * ipa-inline.c (ignore_edge_p): New function.
23210 (inline_small_functions): Use it.
23211 * ipa-pure-const.c (ignore_edge_for_nothrow):
23212 Verify opt_for_fn for caller and callee.
23213 (ignore_edge_for_pure_const): Likewise.
23214 * ipa-reference.c (ignore_edge_p): Extend to check
23215 for opt_for_fn.
23216 * ipa-utils.c (searchc): Refactor.
23217 * ipa-utils.h: Fix coding style.
23218
23219 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
23220
23221 * config/arc/arc.c (arc_rtx_costs): Update costs.
23222
23223 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
23224
23225 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
23226 (arc_split_ior): Likewise.
23227 (arc_check_mov_const): Likewise.
23228 (arc_split_mov_const): Likewise.
23229 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
23230 (arc_rtx_costs): Replace check Crr with Cax constraint.
23231 (prepare_move_operands): Cleanup, remove unused code.
23232 (arc_split_ior): New function.
23233 (arc_check_ior_const): Likewise.
23234 (arc_split_mov_const): Likewise.
23235 (arc_check_mov_const): Likewise.
23236 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
23237 in define_insn_and_split pattern.
23238 (iorsi3): Likewise.
23239 (mulsi3_v2): Add new matching variant.
23240 (andsi3_i): Cleanup pattern.
23241 (rotrsi3_cnt1): Update pattern.
23242 (rotrsi3_cnt8): New pattern.
23243 (ashlsi2_cnt8): Likewise.
23244 (ashlsi2_cnt16): Likewise.
23245 * config/arc/constraints.md (C0p): Update constraint.
23246 (Crr): Remove it.
23247 (C0x): New pattern.
23248 (Cax): New pattern.
23249
23250 2019-06-10 Martin Liska <mliska@suse.cz>
23251
23252 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
23253 Update coding style.
23254 (sem_item_optimizer::dump_cong_classes):
23255 Print how many items are in a non-singular class. Improve
23256 coding style.
23257
23258 2019-06-10 Martin Liska <mliska@suse.cz>
23259
23260 * value-prof.c (dump_histogram_value): Change dump format.
23261 (gimple_mod_subtract_transform): Remove legacy comment.
23262
23263 2019-06-10 Martin Liska <mliska@suse.cz>
23264
23265 * value-prof.c (dump_histogram_value): Print histogram values
23266 only if present.
23267
23268 2019-06-10 Martin Liska <mliska@suse.cz>
23269
23270 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
23271 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
23272 * ipa-profile.c (ipa_profile_generate_summary):
23273 Use get_most_common_single_value.
23274 * tree-profile.c (gimple_init_gcov_profiler):
23275 Instrument with __gcov_one_value_profiler_v2
23276 and __gcov_indirect_call_profiler_v4.
23277 * value-prof.c (dump_histogram_value):
23278 Print all values for HIST_TYPE_SINGLE_VALUE.
23279 (stream_out_histogram_value): Update assert for
23280 N values.
23281 (stream_in_histogram_value): Set number of
23282 counters for HIST_TYPE_SINGLE_VALUE.
23283 (get_most_common_single_value): New.
23284 (gimple_divmod_fixed_value_transform):
23285 Use get_most_common_single_value.
23286 (gimple_ic_transform): Likewise.
23287 (gimple_stringops_transform): Likewise.
23288 (gimple_find_values_to_profile): Set number
23289 of counters for HIST_TYPE_SINGLE_VALUE.
23290 * value-prof.h (get_most_common_single_value): New.
23291
23292 2019-06-10 Martin Liska <mliska@suse.cz>
23293
23294 * hash-map.h: Pass default value to hash_table ctor.
23295 * hash-table.h: Add default value to call of a ctor.
23296
23297 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
23298
23299 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
23300 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
23301
23302 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
23303
23304 PR target/90751
23305 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
23306 Call pa_output_function_label.
23307 (TARGET_ASM_FUNCTION_PROLOGUE): define.
23308 * config/pa/pa-protos.h (pa_output_function_label): Declare.
23309 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
23310 to declaration.
23311 (pa_linux_output_function_prologue): Declare.
23312 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
23313 (pa_output_function_label): New.
23314 (pa_output_function_prologue): Revise to use pa_output_function_label.
23315 (pa_linux_output_function_prologue): New.
23316 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
23317
23318 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
23319
23320 * tree-vrp.h (value_range_base::intersect): New.
23321 (value_range::intersect_helper): Move from here...
23322 (value_range_base::intersect_helper): ...to here.
23323 * tree-vrp.c (value_range::intersect_helper): Rename to...
23324 (value_range_base::intersect_helper): ...this, and rewrite to
23325 return a value instead of modifying THIS in place.
23326 Also, move equivalence handling...
23327 (value_range::intersect): ...here, while calling intersect_helper.
23328 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
23329 calling intersect.
23330 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
23331 Same.
23332 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
23333
23334 2019-06-07 Jakub Jelinek <jakub@redhat.com>
23335
23336 * Makefile.in (genprogerr): Add condmd.
23337 (genprog): Remove it here.
23338
23339 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
23340
23341 * doc/invoke.texi (AMD GCN Options): Add gfx906.
23342
23343 2019-06-07 Richard Biener <rguenther@suse.de>
23344
23345 PR debug/90574
23346 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
23347 that appear after user labels.
23348
23349 2019-06-07 Martin Liska <mliska@suse.cz>
23350
23351 * cselib.c (cselib_init): Disable hash table
23352 sanitization.
23353 * hash-set.h: Pass new default argument to m_table.
23354 * hash-table.c: Add global variable with hash table
23355 sanitization limit.
23356 * hash-table.h (Allocator>::hash_table): Add new argument
23357 to ctor.
23358 (hashtab_chk_error): New.
23359 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
23360 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
23361 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
23362
23363 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
23364
23365 * common.opt (flto-odr-type-merging): Ignore.
23366 * invoke.texi (-flto-odr-type-merging): Remove.
23367 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
23368 (can_be_vtable_hashed_p): Remove.
23369 (hash_odr_vtable): Remove.
23370 (odr_vtable_hasher::hash): Remove.
23371 (types_same_for_odr): Remove.
23372 (types_odr_comparable): Remove.
23373 (odr_vtable_hasher::equal): Remove.
23374 (odr_vtable_hash_type, odr_vtable_hash): Remove.
23375 (add_type_duplicate): Do not synchronize vtable and name hashtables.
23376 (get_odr_type): Do not use vtable hash.
23377 (dump_odr_type): Remove commented out code.
23378 (build_type_inheritance_graph): Do not allocate vtable hash.
23379 (rebuild_type_inheritance_graph): Do not delete vtable hash.
23380 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
23381 (odr_type_p): Likewise.
23382 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
23383 test.
23384
23385 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
23386
23387 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
23388 immediately after same_types_for_tbaa_p returns -1 and continue
23389 looking for possible exact match; if matching types are arrays
23390 watch for partial overlaps.
23391 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
23392 (indirect_refs_may_alias_p): Do type based disambiguation first;
23393 update comment.
23394
23395 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
23396
23397 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
23398
23399 2019-06-07 Martin Liska <mliska@suse.cz>
23400
23401 * doc/invoke.texi: Remove param.
23402 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
23403 Remove.
23404 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
23405 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
23406 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
23407 * profile.c (instrument_values): Remove
23408 HIST_TYPE_INDIR_CALL_TOPN.
23409 * tree-profile.c (init_ic_make_global_vars):
23410 Always build __gcov_indirect_call only.
23411 (gimple_init_gcov_profiler): Remove usage
23412 of PARAM_INDIR_CALL_TOPN_PROFILE.
23413 (gimple_gen_ic_profiler): Likewise.
23414 * value-prof.c (dump_histogram_value): Likewise.
23415 (stream_in_histogram_value): Likewise.
23416 (gimple_indirect_call_to_profile): Likewise.
23417 (gimple_find_values_to_profile): Likewise.
23418 * value-prof.h (enum hist_type): Likewise.
23419
23420 2019-06-07 Martin Liska <mliska@suse.cz>
23421
23422 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
23423 function.
23424
23425 2019-06-07 Martin Liska <mliska@suse.cz>
23426
23427 PR tree-optimization/78902
23428 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
23429 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
23430 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
23431 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
23432 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
23433 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
23434 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
23435 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
23436 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
23437 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
23438 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
23439 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
23440 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
23441 New.
23442 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
23443 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
23444 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
23445 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
23446 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
23447 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
23448 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
23449 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
23450 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
23451 warn_unused_result attribute.
23452 (BUILT_IN_STRDUP): Likewise.
23453 (BUILT_IN_STRNDUP): Likewise.
23454 (BUILT_IN_ALLOCA): Likewise.
23455 (BUILT_IN_CALLOC): Likewise.
23456 (BUILT_IN_MALLOC): Likewise.
23457 (BUILT_IN_REALLOC): Likewise.
23458
23459 2019-06-06 Jim Wilson <jimw@sifive.com>
23460
23461 PR target/89955
23462 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
23463 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
23464 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
23465
23466 2019-06-06 Martin Sebor <msebor@redhat.com>
23467
23468 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
23469 (handle_builtin_malloc): Remove trailing spaces.
23470 (handle_builtin_memset): Same.
23471 (handle_builtin_memcmp): Same.
23472 (compute_string_length): Same.
23473 (determine_min_objsize): Same.
23474 (handle_builtin_string_cmp): Same.
23475 (handle_char_store): Same. Break up excessively long line.
23476
23477 2019-06-06 Martin Jambor <mjambor@suse.cz>
23478
23479 * tree-sra.c (build_reconstructed_reference): Drop the alignment
23480 check.
23481
23482 2019-06-06 Martin Jambor <mjambor@suse.cz>
23483
23484 * tree-sra.c (struct access): New field grp_same_access_path.
23485 (dump_access): Dump it.
23486 (build_reconstructed_reference): New function.
23487 (build_ref_for_model): Use it if possible.
23488 (path_comparable_for_same_access): New function.
23489 (same_access_path_p): Likewise.
23490 (sort_and_splice_var_accesses): Set the new flag.
23491 (analyze_access_subtree): Likewise.
23492 (propagate_subaccesses_across_link): Propagate zero value of the new
23493 flag down the access tree.
23494
23495 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
23496
23497 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
23498 * config/gcn/gcn.opt (gpu_type): Add gfx906.
23499 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
23500 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
23501 Add gfx906.
23502
23503 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23504
23505 PR tree-optimization/90332
23506 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
23507 Handle VALS containing two vectors.
23508 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
23509 to...
23510 (@aarch64_combinez<mode>): ... This.
23511 (*aarch64_combinez_be<mode>): Rename to...
23512 (@aarch64_combinez_be<mode>): ... This.
23513 (vec_init<mode><Vhalf>): New define_expand.
23514 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
23515
23516 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23517
23518 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
23519 library functions only when not optimizing for size.
23520 (ashlsi3): Likewise.
23521 (ashrhi3): Likewise.
23522 (ashrsi3): Likewise.
23523 (lshrhi3): Likewise.
23524 (lshrsi3): Likewise.
23525
23526 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
23527
23528 PR rtl-optimization/88751
23529 * ira.c (ira): Use the number of the actually referenced registers
23530 when calculating the threshold.
23531
23532 2019-06-06 Jakub Jelinek <jakub@redhat.com>
23533
23534 * configure: Regenerate.
23535
23536 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23537
23538 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
23539 register if it is in memory, so the shift can be emulated with a rotate
23540 instruction.
23541 (ashrhi3): Likewise.
23542 (lshrhi3): Likewise.
23543
23544 2019-06-06 Martin Liska <mliska@suse.cz>
23545
23546 PR tree-optimization/87954
23547 * match.pd: Simplify mult where both arguments are 0 or 1.
23548
23549 2019-06-06 Richard Biener <rguenther@suse.de>
23550
23551 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
23552 put equivalences on UNDEFINED ranges.
23553 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
23554 Make sure to drop defs of stmts added during simplification
23555 to VARYING.
23556
23557 2019-06-06 Richard Biener <rguenther@suse.de>
23558
23559 * tree-ssa-structalias.c: Include tree-cfg.h.
23560 (make_heapvar): Do not make heap vars artificial.
23561 (find_func_aliases_for_builtin_call): Handle stack allocation
23562 functions.
23563 (find_func_aliases): Delay processing of simple enough returns
23564 in non-IPA mode.
23565 (set_uids_in_ptset): Adjust.
23566 (find_what_var_points_to): Likewise.
23567 (solve_constraints): Do not dump points-to sets here.
23568 (compute_points_to_sets): Post-process return statements,
23569 amending the escaped solution. Dump points-to sets afterwards.
23570 (ipa_pta_execute): Dump points-to sets.
23571
23572 2019-06-06 Martin Liska <mliska@suse.cz>
23573
23574 PR web/87933
23575 * doc/install.texi: Fix HTML headers and
23576 titles for 'Installing GCC' pages.
23577
23578 2019-06-06 Martin Liska <mliska@suse.cz>
23579
23580 * ipa-icf-gimple.h (dump_message_1): Remove.
23581 (dump_message): Likewise.
23582 (return_false_with_message_1): Print also file.
23583 (return_false_with_msg): Likewise.
23584 (return_with_result): Likewise.
23585 (return_with_debug): Likewise.
23586 * ipa-icf.c (sem_function::equals_private): Remove call
23587 to dump_message.
23588
23589 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
23590
23591 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
23592 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
23593 memory operand for it.
23594 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
23595
23596 2019-06-05 Martin Sebor <msebor@redhat.com>
23597
23598 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
23599 Adjust quoting and hyphenation.
23600 * convert.c (convert_to_real_1): Same.
23601 * gcc.c (driver_wrong_lang_callback): Same.
23602 (driver::handle_unrecognized_options): Same.
23603 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
23604 * opts-common.c (cmdline_handle_error): Same.
23605 (read_cmdline_option): Same.
23606 * opts-global.c (complain_wrong_lang): Same.
23607 (print_ignored_options): Same.
23608 (handle_common_deferred_options): Same.
23609 * pretty-print.h: Same.
23610 * print-rtl.c (debug_bb_n_slim): Same.
23611 * sched-rgn.c (make_pass_sched_fusion): Same.
23612 * tree-cfg.c (verify_gimple_assign_unary): Same.
23613 (verify_gimple_label): Same.
23614 * tree-ssa-operands.c (verify_ssa_operands): Same.
23615 * varasm.c (do_assemble_alias): Same.
23616 (assemble_alias): Same.
23617
23618 2019-06-05 Richard Henderson <rth@twiddle.net>
23619
23620 * config/alpha/alpha.c (direct_return): Move down after
23621 struct machine_function definition; use saved frame_size;
23622 return bool.
23623 (struct machine_function): Add sa_mask, sa_size, frame_size.
23624 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
23625 (alpha_compute_frame_layout): ... new function.
23626 (TARGET_COMPUTE_FRAME_LAYOUT): New.
23627 (alpha_initial_elimination_offset): Use saved sa_size.
23628 (alpha_vms_initial_elimination_offset): Likewise.
23629 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
23630 (alpha_expand_prologue): Use saved frame data. Merge integer
23631 and fp register save loops.
23632 (alpha_expand_epilogue): Likewise.
23633 (alpha_start_function): Use saved frame data.
23634 * config/alpha/alpha-protos.h (direct_return): Update.
23635 (alpha_sa_size): Remove.
23636
23637 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
23638
23639 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
23640 multiplication by a power-of-two value.
23641 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
23642 and turn the modulo operation into a masking operation.
23643
23644 2019-06-05 Jakub Jelinek <jakub@redhat.com>
23645
23646 PR debug/90733
23647 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
23648 with VOIDmode inner operands.
23649
23650 2019-06-05 Richard Biener <rguenther@suse.de>
23651
23652 PR middle-end/90726
23653 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
23654 turn an expression graph into a tree.
23655
23656 2019-06-05 Jakub Jelinek <jakub@redhat.com>
23657
23658 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
23659 member.
23660 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
23661 treat it like explicit monotonic schedule modifier.
23662 (expand_omp_for): Initialize has_lastprivate_conditional.
23663 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
23664 schedule modifier.
23665
23666 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
23667 references, lookup in in hash map MEM_REF operand instead of the
23668 MEM_REF itself.
23669 (lower_omp_1): When looking for lastprivate conditional assignments,
23670 handle MEM_REFs with REFERENCE_TYPE operands.
23671
23672 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
23673 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
23674 and references a VLA. Handle references to non-VLAs if is_simd
23675 all privatization clauses like reductions.
23676 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
23677 If omp_is_reference, use always omp simd arrays and set
23678 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
23679 fails, emit reference initialization.
23680
23681 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
23682
23683 PR target/89803
23684 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
23685 _mm_mask_fpclass_sd_mask): New intrinsics.
23686 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
23687 * config/i386/i386-builtin.def
23688 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
23689 New builtins.
23690 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
23691 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
23692 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
23693 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
23694 case QI_FTYPE_V2SF_INT): Ditto.
23695 * config/i386/sse.md
23696 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
23697 Extended to insnstructions with mask operands.
23698
23699 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23700
23701 * config/rs6000/constraints.md (define_register_constraint "wp"):
23702 Delete.
23703 (define_register_constraint "wq"): Delete.
23704 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23705 (rs6000_init_hard_regno_mode_ok): Adjust.
23706 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23707 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
23708 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
23709 (define_mode_attr VSa): Delete.
23710 (define_mode_attr VSisa): New.
23711 (rest of file): Adjust.
23712 * doc/md.texi (Machine Constraints): Adjust.
23713
23714 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23715
23716 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
23717 (define_attr "enabled"): Handle those new isa values.
23718
23719 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23720
23721 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
23722 (define_mode_attr VSr5): Delete.
23723 (define_mode_attr VStype_sqrt): Delete.
23724 (define_mode_iterator VSX_SPDP): Delete.
23725 (define_mode_attr VS_spdp_res): Delete.
23726 (define_mode_attr VS_spdp_insn): Delete.
23727 (define_mode_attr VS_spdp_type): Delete.
23728 (*vsx_sqrt<mode>2): Adjust.
23729 (vsx_<VS_spdp_insn>): Delete, split to...
23730 (vsx_xscvdpsp): ... this. New. And...
23731 (vsx_xvcvspdp): ... this. New. And...
23732 (vsx_xvcvdpsp): ... this. New.
23733
23734 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23735
23736 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
23737 and V2DF.
23738 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
23739 (rest of file): Adjust.
23740
23741 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23742
23743 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
23744 (vsx_extract_<mode>_var): Ditto.
23745
23746 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23747
23748 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
23749 with just "wa".
23750
23751 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23752
23753 * config/rs6000/constraints.md (define_register_constraint "ww"):
23754 Delete.
23755 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23756 (rs6000_init_hard_regno_mode_ok): Adjust.
23757 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23758 RS6000_CONSTRAINT_ww.
23759 * config/rs6000/rs6000.md: Adjust.
23760 * config/rs6000/vsx.md: Adjust.
23761 * doc/md.texi (Machine Constraints): Adjust.
23762
23763 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23764
23765 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
23766 (define_mode_attr sd): New.
23767 (define_mode_attr s): New.
23768 (define_mode_attr Ftrad): Delete.
23769 (define_mode_attr Fvsx): Delete.
23770 (define_mode_attr Fs): Delete.
23771 (rest of file): Use the new mode attributes.
23772 * config.rs6000/vsx.md: Use the new mode attributes.
23773
23774 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23775
23776 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
23777 with just "wa".
23778
23779 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23780
23781 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
23782 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
23783 used with VSX_B, VSX_D, or VSX_F, with just "wa".
23784
23785 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
23786
23787 PR target/78263
23788 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
23789 C++ with strict ANSI requirements.
23790
23791 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
23792
23793 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
23794 computations when step is 1.
23795
23796 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23797
23798 * config/rs6000/constraints.md (define_register_constraint "wf"):
23799 Delete.
23800 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23801 (rs6000_init_hard_regno_mode_ok): Adjust.
23802 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23803 RS6000_CONSTRAINT_wf.
23804 * config/rs6000/rs6000.md: Adjust.
23805 * config/rs6000/vsx.md: Adjust.
23806 * doc/md.texi (Machine Constraints): Adjust.
23807
23808 2019-06-04 Andrew Pinski <apinski@marvell.com>
23809
23810 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
23811 Fix ILP32 value.
23812
23813 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23814
23815 * config/rs6000/constraints.md (define_register_constraint "wd"):
23816 Delete.
23817 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23818 (rs6000_init_hard_regno_mode_ok): Adjust.
23819 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23820 RS6000_CONSTRAINT_wd.
23821 * config/rs6000/rs6000.md: Adjust.
23822 * config/rs6000/vsx.md: Adjust.
23823 * doc/md.texi (Machine Constraints): Adjust.
23824
23825 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23826
23827 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
23828 (rest of file): Adjust.
23829
23830 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23831
23832 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
23833 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
23834 (vsx_splat_<mode>_reg): Adjust.
23835
23836 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23837
23838 * config/rs6000/constraints.md (define_register_constraint "ws"):
23839 Delete.
23840 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23841 (rs6000_init_hard_regno_mode_ok): Adjust.
23842 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23843 RS6000_CONSTRAINT_ws.
23844 * config/rs6000/rs6000.md: Adjust.
23845 * config/rs6000/vsx.md: Adjust.
23846 * doc/md.texi (Machine Constraints): Adjust.
23847
23848 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23849
23850 * config/rs6000/constraints.md (define_register_constraint "wv"):
23851 Delete.
23852 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23853 (rs6000_init_hard_regno_mode_ok): Adjust.
23854 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23855 RS6000_CONSTRAINT_wv.
23856 * config/rs6000/rs6000.md: Adjust.
23857 * config/rs6000/vsx.md: Adjust.
23858 * doc/md.texi (Machine Constraints): Adjust.
23859
23860 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23861
23862 * config/rs6000/constraints.md (define_register_constraint "wi"):
23863 Delete.
23864 (define_register_constraint "wt"): Delete.
23865 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23866 (rs6000_init_hard_regno_mode_ok): Adjust.
23867 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23868 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
23869 * config/rs6000/rs6000.md: Adjust.
23870 * config/rs6000/vsx.md: Adjust.
23871 * doc/md.texi (Machine Constraints): Adjust.
23872
23873 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
23874
23875 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
23876 const.
23877 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
23878 default_elf_asm_output_external.
23879
23880 2019-06-04 Martin Liska <mliska@suse.cz>
23881
23882 * ipa-icf.c (INCLUDE_LIST): Remove.
23883 (sem_item_optimizer::execute): Remove call to init_wpa.
23884 * ipa-icf.h (init_wpa): Remove.
23885
23886 2019-06-04 Jakub Jelinek <jakub@redhat.com>
23887
23888 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
23889 conditional on combined for simd.
23890 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
23891 member.
23892 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
23893 constructs, don't remove lastprivate_conditional_map, but instead set
23894 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
23895 to parent construct temporaries.
23896 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
23897 like !ctx->lastprivate_conditional_map.
23898 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
23899 use up->outer context instead of up.
23900 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
23901 gimple_omp_for_combined_p.
23902 (expand_omp_for_static_nochunk): Likewise.
23903 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
23904 probably moved over into expand_omp_for_generic rather than being copied
23905 there.
23906
23907 2019-06-04 Martin Liska <mliska@suse.cz>
23908
23909 * value-prof.c (dump_histogram_value): Fix typo.
23910 (gimple_mod_subtract_transform): Likewise.
23911
23912 2019-06-04 Richard Biener <rguenther@suse.de>
23913
23914 PR middle-end/90726
23915 * tree-chrec.c (chrec_contains_symbols): Add to visited.
23916 (tree_contains_chrecs): Likewise.
23917 (chrec_contains_symbols_defined_in_loop): Move here and avoid
23918 exponential behaivor from ...
23919 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
23920 ... here.
23921 (expression_expensive_p): Avoid exponential behavior and compute
23922 expanded size, rejecting any expansion.
23923 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
23924 (idx_contains_abnormal_ssa_name_p): Likewise.
23925 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
23926 (contains_abnormal_ssa_name_p): Simplify and use
23927 walk_tree_without_duplicates.
23928
23929 2019-06-04 Richard Biener <rguenther@suse.de>
23930
23931 PR tree-optimization/90738
23932 Revert
23933 2019-06-03 Richard Biener <rguenther@suse.de>
23934
23935 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
23936 full reference tree and record in ref->ref.
23937 (vn_reference_lookup_3): Pass in original ref to
23938 ao_ref_init_from_vn_reference.
23939 (vn_reference_lookup): Likewise.
23940 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
23941 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
23942 Handle non-decl bases in the original reference.
23943
23944 2019-06-04 Martin Liska <mliska@suse.cz>
23945
23946 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
23947 number of references.
23948 (sem_item_optimizer::do_congruence_step):
23949 (sem_item_optimizer::worklist_push): Dump how references
23950 a class has.
23951 (sem_item_optimizer::worklist_pop): Use heap.
23952 (sem_item_optimizer::process_cong_reduction): Likewise.
23953 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
23954
23955 2019-06-04 Martin Liska <mliska@suse.cz>
23956
23957 * ipa-icf.h (struct sem_usage_pair_hash): New.
23958 (sem_usage_pair_hash::hash): Likewise.
23959 (sem_usage_pair_hash::equal): Likewise.
23960 (struct sem_usage_hash): Likewise.
23961 * ipa-icf.c (sem_item::sem_item): Initialize
23962 referenced_by_count.
23963 (sem_item::add_reference): Register a reference
23964 in ref_map and not in target->usages.
23965 (sem_item::setup): Remove initialization of
23966 dead vectors.
23967 (sem_item::~sem_item): Remove usage of dead vectors.
23968 (sem_item::dump): Remove dump of references.
23969 (sem_item_optimizer::sem_item_optimizer): Initialize
23970 m_references.
23971 (sem_item_optimizer::read_section): Remove useless
23972 dump.
23973 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
23974 (sem_item_optimizer::build_graph): Pass m_references
23975 to ::add_reference.
23976 (sem_item_optimizer::verify_classes): Remove usage of dead
23977 vectors.
23978 (sem_item_optimizer::traverse_congruence_split): Return true
23979 when a class is split.
23980 (sem_item_optimizer::do_congruence_step_for_index): Use
23981 hash_map for look up of (sem_item *, index). That brings
23982 significant speed up.
23983 (sem_item_optimizer::do_congruence_step): Return true
23984 when a split is done.
23985 (congruence_class::is_class_used): Use referenced_by_count.
23986
23987 2019-06-04 Alan Modra <amodra@gmail.com>
23988
23989 PR target/90689
23990 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
23991 error.
23992
23993 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
23994
23995 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
23996 * config/rs6000/rs6000.c (direct_move_p): Adjust.
23997 (rs6000_secondary_reload_simple_move): Adjust.
23998 (rs6000_opt_masks): Neuter the "mfpgpr" option.
23999 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
24000 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
24001 comment.
24002 (power6x): Adjust.
24003 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
24004 (floatunssi<mode>2_lfiwzx): Adjust.
24005 (fix_trunc<mode>si2_stfiwx): Adjust.
24006 (fixuns_trunc<mode>si2_stfiwx): Adjust.
24007 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
24008 (mfpgpr): Mark as deprecated.
24009 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
24010 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
24011 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
24012
24013 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24014
24015 * config/rs6000/constraints.md (define_register_constraint "wg"):
24016 Delete.
24017 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24018 RS6000_CONSTRAINT_wg.
24019 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24020 (rs6000_init_hard_regno_mode_ok): Adjust.
24021 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
24022 Delete "wg" alternatives.
24023 * doc/md.texi (Machine Constraints): Adjust.
24024
24025 2019-06-03 Alan Modra <amodra@gmail.com>
24026
24027 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
24028 (get_uncond_jump_length): Assert length less than INT_MAX and
24029 non-negative.
24030
24031 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24032
24033 PR middle-end/64242
24034 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
24035 block.
24036 (expand_builtin_nonlocal_goto): Likewise.
24037
24038 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24039
24040 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
24041 (aarch64_asm_output_external): Declare.
24042 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
24043 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
24044 (aarch64_asm_output_alias): New.
24045 (aarch64_asm_output_external): New.
24046 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
24047 (ASM_OUTPUT_EXTERNAL): Define.
24048
24049 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
24050 * tree-vrp.h (value_range_base::nonzero_p): New.
24051 (value_range_base::set_nonnull): Rename to...
24052 (value_range_base::set_nonzero): ...this.
24053 (value_range_base::set_null): Rename to...
24054 (value_range_base::set_zero): ...this.
24055 (value_range::set_nonnull): Remove.
24056 (value_range::set_null): Remove.
24057 * tree-vrp.c (range_is_null): Remove.
24058 (range_is_nonnull): Remove.
24059 (extract_range_from_binary_expr): Use value_range_base::*zero_p
24060 instead of range_is_*null.
24061 (extract_range_from_unary_expr): Same.
24062 (value_range_base::set_nonnull): Rename to...
24063 (value_range_base::set_nonzero): ...this.
24064 (value_range::set_nonnull): Remove.
24065 (value_range_base::set_null): Rename to...
24066 (value_range_base::set_zero): ...this.
24067 (value_range::set_null): Remove.
24068 (extract_range_from_binary_expr): Rename set_*null uses to
24069 set_*zero.
24070 (extract_range_from_unary_expr): Same.
24071 (union_helper): Same.
24072 * vr-values.c (get_value_range): Use set_*zero instead of
24073 set_*null.
24074 (vr_values::extract_range_from_binary_expr): Same.
24075 (vr_values::extract_range_basic): Same.
24076
24077 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24078
24079 PR driver/90684
24080 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
24081
24082 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24083
24084 * config/aarch64/iterators.md (MAX_OPP): New code attr.
24085 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
24086 Rename to...
24087 (aarch64_<su>abd<mode>_3): ... This.
24088 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
24089
24090 2019-06-03 Richard Biener <rguenther@suse.de>
24091
24092 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24093 full reference tree and record in ref->ref.
24094 (vn_reference_lookup_3): Pass in original ref to
24095 ao_ref_init_from_vn_reference.
24096 (vn_reference_lookup): Likewise.
24097 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24098 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24099 Handle non-decl bases in the original reference.
24100
24101 2019-06-03 Martin Liska <mliska@suse.cz>
24102
24103 * doc/generic.texi: Remove Java Trees.
24104
24105 2019-06-03 Martin Liska <mliska@suse.cz>
24106
24107 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
24108 returns 0 when operands are equal.
24109
24110 2019-06-03 Richard Biener <rguenther@suse.de>
24111
24112 PR tree-optimization/90716
24113 * tree-loop-distribution.c (destroy_loop): Process blocks in
24114 correct order.
24115
24116 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24117
24118 PR target/88837
24119 * vector-builder.h (vector_builder::count_dups): New method.
24120 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
24121 Declare prototype.
24122 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
24123 (vec_init<mode><Vel>): New pattern.
24124 * config/aarch64/aarch64.c (emit_insr): New function.
24125 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
24126 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
24127 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
24128 (aarch64_sve_expand_vector_init): Define two overloaded functions.
24129
24130 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24131
24132 PR tree-optimization/90681
24133 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
24134 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
24135 special case for SLP, but fail on non-groupped loads.
24136
24137 2019-06-03 Martin Liska <mliska@suse.cz>
24138
24139 * cfg.c (debug): Use TDF_DETAILS for debug and
24140 print edge info only once.
24141
24142 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
24143
24144 PR fortran/90539
24145 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
24146
24147 2019-06-01 Martin Sebor <msebor@redhat.com>
24148
24149 PR middle-end/90694
24150 * tree-pretty-print.c (dump_generic_node): Add parentheses.
24151
24152 2019-05-31 Jan Hubicka <jh@suse.cz>
24153
24154 * alias.c: Include ipa-utils.h.
24155 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
24156 * ipa-devirt.c (prevailing_odr_type): New.
24157 * ipa-utils.h (previaling_odr_type): Declare.
24158
24159 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
24160 Hongtao Liu <hongtao.liu@intel.com>
24161
24162 PR target/89355
24163 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
24164 NOTE_INSN_DELETED_LABEL check.
24165
24166 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
24167 Robert Suchanek <robert.suchanek@mips.com>
24168
24169 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
24170 and 3rd operands of the fmadd/fmsub/maddv builtin.
24171
24172 2019-05-31 Jakub Jelinek <jakub@redhat.com>
24173
24174 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
24175 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
24176 on OMP_SIMD if not nested inside of worksharing loop that also has
24177 lastprivate conditional clause for the same decl.
24178 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
24179 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
24180 on simd.
24181 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
24182 on simd construct.
24183 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
24184 on simd construct.
24185 (lower_lastprivate_clauses): Likewise.
24186 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
24187 calling lower_rec_input_clauses.
24188 (lower_omp_for): Likewise.
24189 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
24190 clause on simd construct.
24191 * omp-expand.c (expand_omp_simd): Initialize cond_var if
24192 OMP_CLAUSE__CONDTEMP_ clause is present.
24193
24194 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
24195 ivar and lvar.
24196
24197 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
24198
24199 PR c/43673
24200 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
24201 TEX_D32, TEX_D64 or TEX_D128.
24202
24203 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
24204
24205 * match.pd (~(vec?cst1:cst2)): New transformation.
24206
24207 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
24208
24209 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
24210 ((size_t)(A /[ex] B) CMP C): New transformation.
24211
24212 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
24213
24214 * doc/md.texi: Document define_insn_and_rewrite.
24215 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
24216 * gensupport.c (queue_elem): Update comment.
24217 (replace_operands_with_dups): New function.
24218 (gen_rewrite_sequence): Likewise.
24219 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
24220 * read-rtl.c (apply_subst_iterator): Likewise.
24221 (add_condition_to_rtx, named_rtx_p): Likewise.
24222 (rtx_reader::read_rtx_operand): Likewise.
24223 * config/aarch64/aarch64-sve.md
24224 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
24225 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
24226 define_insn_and_rewrite.
24227 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
24228 Remove separate define_split.
24229
24230 2019-05-31 Jan Hubicka <jh@suse.cz>
24231
24232 * tree-ssa-alias.c (type_has_components_p): New function.
24233 (aliasing_component_refs_p): Use it.
24234
24235 2019-05-31 Martin Liska <mliska@suse.cz>
24236
24237 * gdbhooks.py: Add const_tree to TreePrinter.
24238
24239 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
24240
24241 PR debug/86964
24242 * common.opt (feliminate-unused-debug-symbols): Enable by default.
24243 * doc/invoke.texi (Debugging Options): Document new default of
24244 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
24245
24246 2019-05-31 Jakub Jelinek <jakub@redhat.com>
24247
24248 PR tree-optimization/90671
24249 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
24250 template_block used to be empty on the first call, don't use
24251 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
24252 seq with bb_seq and set it with set_bb_seq.
24253
24254 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
24255
24256 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
24257
24258 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24259 Michael Meissner <meissner@linux.ibm.com>
24260
24261 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
24262 (prefixed_mem_operand): Likewise.
24263 (non_prefixed_mem_operand): Likewise.
24264 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
24265 prototype.
24266 * config/rs6000/rs6000.c (print_operand_address): Handle
24267 PC-relative addresses.
24268 (mode_supports_prefixed_address_p): New function.
24269 (rs6000_prefixed_address): New function.
24270 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
24271 (SYMBOL_REF_PCREL_P): Likewise.
24272
24273 2019-05-30 Jakub Jelinek <jakub@redhat.com>
24274
24275 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
24276 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
24277 (gimplify_omp_for): If worksharing loop with lastprivate conditional
24278 is nested inside of parallel region, add _condtemp_ clause to both.
24279 * tree-nested.c (convert_nonlocal_omp_clauses,
24280 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
24281 assertion failure.
24282 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
24283 member.
24284 * omp-general.c (omp_extract_for_data): Compute it.
24285 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
24286 (lower_rec_input_clauses): Likewise.
24287 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
24288 clause is already present, just add one further one after it.
24289 (lower_lastprivate_clauses): Handle cond_ptr with array type.
24290 (lower_send_shared_vars): Clear _condtemp_ vars.
24291 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
24292 or section or taskgroup.
24293 * omp-expand.c (determine_parallel_type): Disallow combining only if
24294 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
24295 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
24296 (expand_omp_for_generic, expand_omp_for_static_nochunk,
24297 expand_omp_for_static_chunk, expand_omp_for): Use
24298 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
24299 determine if a special set of API routines are needed and if condtemp
24300 needs to be initialized, while always initialize cond_var if
24301 fd->lastprivate_conditional is non-zero.
24302
24303 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24304 Michael Meissner <meissner@linux.ibm.com>
24305
24306 * config/rs6000/constraints.md (eI): New constraint.
24307 * config/rs6000/predicates.md (cint34_operand): New predicate.
24308 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
24309 (SIGNED_34BIT_OFFSET_P): Likewise.
24310 * doc/md.texi (eI): Document constraint.
24311
24312 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
24313
24314 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
24315
24316 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24317 Michael Meissner <meissner@linux.ibm.com>
24318
24319 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
24320 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
24321 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
24322 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
24323 (OTHER_FUTURE_MASKS): Likewise.
24324 (POWERPC_MASKS): Likewise.
24325 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
24326 specified without -mprefixed-addr or -mcpu=future. Error if
24327 -mprefixed-addr is specified without -mcpu=future.
24328 (rs6000_opt_masks): Add entry for prefixed-addr.
24329 * rs6000.opt (mprefixed-addr): New option.
24330
24331 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
24332
24333 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
24334 cfun->is_thunk check.
24335
24336 2019-05-30 Jakub Jelinek <jakub@redhat.com>
24337
24338 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
24339 to length.
24340
24341 2019-05-30 Martin Liska <mliska@suse.cz>
24342
24343 * gdbinit.in: Fix 'ptc' command. Add trt
24344 that prints TREE_TYPE($).
24345
24346 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
24347 Alan Modra <amodra@gmail.com>
24348
24349 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
24350 calls here...
24351 (rs6000_indirect_call_template_1): ...and here.
24352 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
24353 plt16_ha, plt16_lo, mtctr indirect calls. Use
24354 rs6000_pltseq_enum.
24355 (rs6000_decl_ok_for_sibcall): New function.
24356 (rs6000_function_ok_for_sibcall): Refactor.
24357 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
24358 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
24359 when pcrel. Reorganize.
24360 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
24361 * rs6000.h (rs6000_pltseq_enum): New enum.
24362 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
24363 (*pltseq_tocsave): Use rs6000_pltseq_enum.
24364 (*pltseq_plt16_ha): Likewise.
24365 (*pltseq_plt16_lo): Likewise.
24366 (*pltseq_mtctr): Likewise.
24367 (*pltseq_plt_pcrel): New insn.
24368 (*call_local_aix): Handle @notoc calls.
24369 (*call_value_local_aix): Likewise.
24370 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
24371 (*call_value_nonlocal_aix): Likewise.
24372 (*call_indirect_pcrel): New insn.
24373 (*call_value_indirect_pcrel): Likewise.
24374
24375 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
24376
24377 * config/i386/sse.md (*save_multiple<mode>): Rename from
24378 save_multiple<mode>.
24379 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
24380 (*restore_multiple_and_return<mode>): Rename from
24381 restore_multiple_and_return<mode>.
24382 (*restore_multiple_leave_return<mode>): Rename from
24383 restore_multiple_leave_return<mode>.
24384
24385 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
24386
24387 * config.gcc (rx-*-linux*): New target.
24388 * config/rx/elf.opt: New file.
24389 * config/rx/linux.h: Likewise.
24390 * config/rx/t-linux: Likewise.
24391 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
24392 make it zero.
24393 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
24394 (ASM_APP_OFF): Likewise.
24395 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
24396 moved elsewhere.
24397
24398 2019-05-29 Jan Hubicka <jh@suse.cz>
24399
24400 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
24401 variants are pointer equivalent.
24402
24403 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24404
24405 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
24406 * config/aarch64/aarch64-sve2.md: New file.
24407 (<u>avg<mode>3_floor): New pattern.
24408 (<u>avg<mode>3_ceil): Likewise.
24409 (*<sur>h<addsub><mode>): Likewise.
24410 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
24411 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
24412
24413 2019-05-29 Jakub Jelinek <jakub@redhat.com>
24414
24415 PR bootstrap/90543
24416 * optc-save-gen.awk: In cl_optimization_print, use correct condition
24417 for var_opt_string printing. In cl_optimization_print_diff, print
24418 (null) instead of invoking undefined behavior if one of the
24419 var_opt_string pointers is NULL and use && instead of first || in the
24420 guarding condition. For var_target_other options, handle const char *
24421 target variables similarly to const char * optimize node variables.
24422
24423 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
24424
24425 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
24426 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
24427 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
24428 Add autib1716 and pacib1716 initialisation.
24429 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
24430 for autib1716 and pacib1716.
24431 * config/aarch64/aarch64-protos.h (aarch64_key_type,
24432 aarch64_post_cfi_startproc): Define.
24433 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
24434 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
24435 aarch64_handle_pac_ret_protection): Set default sign key to A.
24436 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
24437 aarch64_expand_prologue): Add check for b-key.
24438 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
24439 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
24440 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
24441 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
24442 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
24443 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
24444 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
24445 * config/aarch64/aarch64.md (do_return): Add check for b-key.
24446 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
24447 pauth_hint_num_a with pauth_hint_num.
24448 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
24449 pauth_hint_num_a with pauth_hint_num.
24450 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
24451 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
24452 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
24453 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
24454 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
24455 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
24456 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
24457 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
24458 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
24459 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
24460 UNSPEC_AUTIA1716 respectively.
24461 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
24462 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
24463 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
24464 * doc/invoke.texi (-mbranch-protection): Add b-key type.
24465 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
24466 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
24467
24468 2019-05-29 Jakub Jelinek <jakub@redhat.com>
24469
24470 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
24471 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
24472 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
24473 explicit clause on combined parallel into implicit shared clause.
24474 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
24475 and firstprivate if the decl has one too from combined parallel to
24476 the worksharing construct.
24477
24478 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
24479 Michael Meissner <meissner@linux.ibm.com>
24480
24481 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
24482
24483 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
24484
24485 * rtl.h (LABEL_REF_P): New #define.
24486
24487 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
24488
24489 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
24490
24491 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24492
24493 * internal-fn.c: Marked mask_load_direct as vectorizable.
24494 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
24495 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
24496 combined even if masks different with allow_slp_p param.
24497 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
24498 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
24499 dissolve SLP-only vectorizable groups when SLP has been discarded.
24500 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
24501 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
24502 masks.
24503 (vect_build_slp_tree_1): Fixed comment typo.
24504 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
24505 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
24506 loads for SLP only.
24507 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
24508 vectorizable.
24509 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
24510
24511 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24512
24513 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
24514 Remove obsolete use_thunk reference.
24515 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
24516 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
24517 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
24518 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
24519 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
24520 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
24521 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
24522 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
24523 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
24524
24525 2019-05-28 Nathan Sidwell <nathan@acm.org>
24526
24527 * tree.h (IDENTIFIER_ANON_P): New.
24528 (anon_aggrname_format, anon_aggname_p): Don't declare.
24529 (make_anon_name): Declare.
24530 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
24531 (hash_tree): Likewise.
24532 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
24533 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
24534 (anon_cnt, make_anon_name): New.
24535
24536 2019-05-28 Martin Liska <mliska@suse.cz>
24537
24538 PR other/90315
24539 * opts-global.c (decode_options): Print help for all
24540 help_option_arguments.
24541 * opts.c (print_help): Add new argument.
24542 (common_handle_option): Remember all values into
24543 help_option_arguments.
24544 * opts.h (print_help): Add new argument.
24545
24546 2019-05-28 Martin Liska <mliska@suse.cz>
24547
24548 PR ipa/90555
24549 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
24550 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
24551 (func_checker::compare_bb): Call compare_loops.
24552
24553 2019-05-27 Jakub Jelinek <jakub@redhat.com>
24554
24555 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
24556 on sections construct.
24557 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
24558 construct.
24559 (lower_omp_sections): Handle lastprivate conditional.
24560 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
24561 lastprivate_conditional_map.
24562 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
24563
24564 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
24565 critical, taskgroup and section regions when looking for a region
24566 with non-NULL lastprivate_conditional_map.
24567
24568 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
24569
24570 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
24571 (*ix86_gen_sub3): Ditto.
24572 (*ix86_gen_sub3_carry): Ditto.
24573 (*ix86_gen_one_cmpl2): Ditto.
24574 (*ix86_gen_andsp): Ditto.
24575 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
24576 (gen_and2_insn): New static function.
24577 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
24578 Use gen_add3_insn instead of ix86_gen_add3.
24579 (ix86_expand_split_stack_prologue): Use gen_add2_insn
24580 instead of ix86_gen_add3.
24581 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
24582 Use gen_sub3_insn instead of ix86_gen_sub3.
24583 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
24584 instead of ix86_gen_add3.
24585 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
24586 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
24587 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
24588 * config/i386/i386-options.c (ix86_option_override_internal):
24589 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
24590 ix86_gen_one_cmpl2 and ix86_gen_andsp.
24591
24592 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
24593
24594 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
24595 and DW_OP_GNU_const_index opcodes.
24596
24597 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
24598
24599 * config/i386/i386.h (STACK_SIZE_MODE): Define.
24600
24601 2019-05-27 Richard Biener <rguenther@suse.de>
24602
24603 PR tree-optimization/90637
24604 * tree-ssa-sink.c (statement_sink_location): Honor the
24605 computed sink location for single-uses.
24606
24607 2019-05-27 Richard Biener <rguenther@suse.de>
24608
24609 PR middle-end/90610
24610 * match.pd (vec_perm): Avoid clobbering op0 when not generating
24611 a bit-insert.
24612
24613 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24614
24615 * config/i386/i386.md (@sub<mode>3_carry): Rename
24616 from sub<mode>3_carry.
24617 (@leave_<mode>): New expander.
24618 (*leave): Rename from leave.
24619 (*leave_rex64): Rename from leave_rex64.
24620 (@monitorx_<mode>): Rename from monitorx_<mode>.
24621 (@clzero_<mode>): Rename from clzero_<mode>.
24622 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
24623 from sse3_monitor_<mode>.
24624 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
24625 (*ix86_gen_leave): Ditto.
24626 (*ix86_gen_monitor): Ditto.
24627 (*ix86_gen_monitorx): Ditto.
24628 (*ix86_gen_clzero): Ditto.
24629 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
24630 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
24631 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
24632 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
24633 Use gen_sse3_monitor instead of ix86_gen_monitor.
24634 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
24635 instead of ix86_gen_monitorx.
24636 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
24637 instead of ix86_gen_clzero.
24638 * config/i386/i386-options.c (ix86_option_override_internal):
24639 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
24640 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
24641
24642 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24643
24644 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
24645 Rename from tls_global_dynamic_64_<mode>.
24646 (@tls_local_dynamic_base_64_<mode>): Rename from
24647 tls_local_dynamic_base_64_<mode>.
24648 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
24649 Remove indirect function.
24650 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
24651 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
24652 instead of ix86_gen_tls_global_dynamic_64.
24653 Use gen_tls_local_dynamic_base_64 instead of
24654 ix86_gen_tls_local_dynamic_base_64.
24655 * config/i386/i386-options.c (ix86_option_override_internal):
24656 Do not initialize ix86_gen_tls_global_dynamic_64 and
24657 ix86_gen_tls_local_dynamic_base_64.
24658
24659 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24660
24661 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
24662 Rename from pro_epilogue_adjust_stack_<mode>_add.
24663 (@pro_epilogue_adjust_stack_sub_<mode>)
24664 Rename from pro_epilogue_adjust_stack_<mode>_sub.
24665 (@allocate_stack_worker_probe_<mode>):
24666 Rename from allocate_stack_worker_probe_<mode>.
24667 (allocate_stack): Use gen_allocate_stack_worker_probe.
24668 (probe_stack): Use gen_probe_stack_1.
24669 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
24670 (@adjust_stack_and_probe_<mode>): Rename from
24671 adjust_stack_and_probe<mode>.
24672 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
24673 (stack_protect_set): Use gen_stack_protect_set_1.
24674 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
24675 (stack_protect_test): Use gen_stack_protect_test_1.
24676 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
24677 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
24678 Remove indirect function.
24679 (*ix86_gen_adjust_stack_and_probe): Ditto.
24680 (*ix86_gen_probe_stack_range): Ditto.
24681 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
24682 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
24683 (ix86_adjust_stack_and_probe_stack_clash): Use
24684 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
24685 (ix86_adjust_stack_and_probe): Ditto.
24686 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
24687 of ix86_gen_probe_stack_range.
24688 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
24689 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
24690 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
24691 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
24692 CODE_FOR_stack_protect_test_{si,di}.
24693 * config/i386/i386-options.c (ix86_option_override_internal):
24694 Do not initialize ix86_gen_allocate_stack_worker,
24695 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
24696
24697 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
24698
24699 * doc/invoke.texi (Link Options): Many editorial changes around
24700 -flinker-output.
24701
24702 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24703
24704 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
24705 pre-Solaris 11 referene and most Studio compiler details.
24706
24707 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
24708
24709 PR target/90530
24710 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
24711 DImode to SImode in floating-point registers on 64-bit target.
24712 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
24713 register_operand in xmpyu patterns.
24714
24715 2019-05-24 Jakub Jelinek <jakub@redhat.com>
24716
24717 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
24718 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
24719 OMP_CLAUSE__REDUCTEMP_.
24720 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
24721 OMP_CLAUSE__CONDTEMP_.
24722 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
24723 * tree-pretty-print.c (dump_omp_clause): Likewise.
24724 * tree-nested.c (convert_nonlocal_omp_clauses,
24725 convert_local_omp_clauses): Likewise.
24726 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
24727 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
24728 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
24729 on OMP_FOR.
24730 (gimplify_omp_for): Warn and disable conditional modifier from
24731 lastprivate on loop iterators.
24732 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
24733 member.
24734 * omp-general.c (omp_extract_for_data): Initialize it.
24735 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
24736 member.
24737 (delete_omp_context): Delete it.
24738 (lower_lastprivate_conditional_clauses): New function.
24739 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
24740 handle lastprivate conditional clauses.
24741 (lower_reduction_clauses): Add CLIST argument, emit it into
24742 the critical section if any.
24743 (lower_omp_sections): Adjust lower_lastprivate_clauses and
24744 lower_reduction_clauses callers.
24745 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
24746 to lower_lastprivate_clauses.
24747 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
24748 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
24749 clist into a critical section if not emitted there already by
24750 lower_reduction_clauses.
24751 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
24752 callers.
24753 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
24754 conditional variables.
24755 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
24756 clause is present.
24757 (expand_omp_for_generic, expand_omp_for_static_nochunk,
24758 expand_omp_for_static_chunk): Handle lastprivate conditional.
24759 (expand_omp_for): Handle fd.lastprivate_conditional like
24760 fd.have_reductemp.
24761
24762 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
24763
24764 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
24765 kernel does not exit cleanly.
24766 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
24767
24768 2019-05-24 Jason Merrill <jason@redhat.com>
24769
24770 Revert:
24771 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
24772
24773 2019-05-24 Richard Biener <rguenther@suse.de>
24774
24775 PR testsuite/90607
24776 * tree-loop-distribution.c (struct partition): Add location
24777 member.
24778 (partition_alloc): Initialize all fields.
24779 (generate_memset_builtin): Use the location recorded in the
24780 partition for the generated call.
24781 (generate_memcpy_builtin): Likewise.
24782 (classify_partition): Record the location of a single store
24783 as location for the partition.
24784
24785 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
24786
24787 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
24788 for lo-part.
24789
24790 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
24791
24792 PR target/90588
24793 * common/config/aarch64/aarch64-common.c
24794 (aarch64_rewrite_selected_cpu): Change local temporary variable
24795 type from unsigned long to uint64_t.
24796 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
24797 aarch64_get_extension_string_for_isa_flags): Change declaration to
24798 match new definition by replacing unsigned long with uint64_t.
24799
24800 2019-05-24 Jakub Jelinek <jakub@redhat.com>
24801
24802 PR target/90568
24803 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
24804 gen_attr_type just once instead of 4-7 times. Formatting fixes.
24805 Handle stack_protect_test_<mode> codegen similarly to corresponding
24806 sub instruction.
24807
24808 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
24809
24810 * config/i386/darwin.h: Reject -mfentry*.
24811 * doc/sourcebuild.texi: Document mfentry target support.
24812
24813 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
24814
24815 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
24816 Rename to rs6000_global_entry_point_prologue_needed_p. Return
24817 false for PC-relative functions.
24818 (rs6000_output_function_prologue): Change called function name to
24819 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
24820 name,1" for PC-relative functions.
24821 (rs6000_elf_declare_function_name): Change called function name to
24822 rs6000_global_entry_point_prologue_needed_p.
24823
24824 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
24825
24826 PR target/90552
24827 * config/i386/i386.c (gen_rtx_cost):
24828 Use ix86_tune_cost instead of ix86_cost.
24829
24830 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
24831 Michael Meissner <meissner@linux.ibm.com>
24832 Segher Boessenkool <segher@kernel.crashing.org>
24833
24834 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
24835 OPTION_MASK_PCREL.
24836 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
24837 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
24838 (rs6000_fndecl_pcrel_p): Likewise.
24839 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
24840 error if -mpcrel is requested without -mcpu=future.
24841 (rs6000_opt_masks): Add entry for pcrel.
24842 (rs6000_fndecl_pcrel_p): New function.
24843 (rs6000_pcrel_p): Likewise.
24844 * config/rs6000/rs6000.opt (mpcrel): New option.
24845 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
24846
24847 2019-05-23 Jan Hubicka <jh@suse.cz>
24848 Martin Liska <mliska@suse.cz>
24849
24850 PR tree-optimization/90576
24851 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
24852 poly_int_tree_p.
24853 (aliasing_component_refs_p): Fix three way size compare conditional;
24854 give up earlier in case we can not decide on equivalence.
24855
24856 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
24857 Michael Meissner <meissner@linux.ibm.com>
24858 Segher Boessenkool <segher@kernel.crashing.org>
24859
24860 * config.gcc: Add future cpu.
24861 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
24862 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
24863 #define.
24864 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
24865 (RS6000_CPU): New instantiation for future cpu.
24866 * config/rs6000/rs6000-opts.h (enum processor_type): Add
24867 PROCESSOR_FUTURE.
24868 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
24869 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
24870 * config/rs6000/rs6000-tables.opt: Regenerate.
24871 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
24872 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
24873 (rs6000_machine_from_flags): Handle future cpu.
24874 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
24875 PROCESSOR_POWER9 for now.
24876 (rs6000_adjust_cost): Likewise.
24877 (rs6000_issue_rate): Likewise.
24878 (rs6000_register_move_cost): Likewise.
24879 (rs6000_opt_masks): Add entry for future.
24880 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
24881 (MASK_FUTURE): New #define.
24882 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
24883 * config/rs6000/rs6000.opt (mfuture): New target option.
24884 * doc/invoke.texi (mcpu): Add future cpu.
24885
24886 2019-05-23 Martin Liska <mliska@suse.cz>
24887
24888 PR c++/90587
24889 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
24890 operation points to a temporary (pointed via tree_to_wide_ref)
24891 that is out of scope after the &.
24892
24893 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
24894
24895 PR c++/90592
24896 * doc/extend.texi (Function Names): Add missing word.
24897
24898 2019-05-23 Richard Biener <rguenther@suse.de>
24899
24900 PR tree-optimization/88440
24901 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
24902 at -O[2s]+.
24903 * tree-loop-distribution.c (generate_memset_builtin): Fold the
24904 generated call.
24905 (generate_memcpy_builtin): Likewise.
24906 (distribute_loop): Pass in whether to only distribute patterns.
24907 (prepare_perfect_loop_nest): Also allow size optimization.
24908 (pass_loop_distribution::execute): When optimizing a loop
24909 nest for size allow pattern replacement.
24910
24911 2019-05-23 Jakub Jelinek <jakub@redhat.com>
24912
24913 PR target/90568
24914 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
24915 of xor.
24916
24917 2019-05-23 Martin Liska <mliska@suse.cz>
24918
24919 PR sanitizer/90570
24920 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
24921 expression similarly to gimplify_decl_expr.
24922
24923 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24924
24925 * cse.c (cse_dump_path): s/dump_file/f.
24926
24927 2019-05-22 David Malcolm <dmalcolm@redhat.com>
24928
24929 PR c++/90462
24930 * diagnostic-format-json.cc: Include "selftest.h".
24931 (json_from_expanded_location): Only add "file" key for non-NULL
24932 file strings.
24933 (json_from_location_range): Don't add "start" and "finish"
24934 children if they are UNKNOWN_LOCATION.
24935 (selftest::test_unknown_location): New selftest.
24936 (selftest::test_bad_endpoints): New selftest.
24937 (selftest::diagnostic_format_json_cc_tests): New function.
24938 * json.cc (json::object::get): New function.
24939 (selftest::test_object_get): New selftest.
24940 (selftest::json_cc_tests): Call it.
24941 * json.h (json::object::get): New decl.
24942 * selftest-run-tests.c (selftest::run_tests): Call
24943 selftest::diagnostic_format_json_cc_tests.
24944 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
24945 decl.
24946
24947 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
24948 Andrew Stubbs <amd@codesourcery.com>
24949
24950 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
24951 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
24952 (kernel): Rename to...
24953 (main_kernel): ... this.
24954 (load_image): Load _init_array and _fini_array kernels.
24955 (run): Add argument for kernel to run.
24956 (main): Run init_array_kernel before main_kernel, and
24957 fini_array_kernel after.
24958 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
24959 amdgpu_hsa_kernel attribute on functions.
24960 (gcn_disable_constructors): Delete.
24961 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
24962 * config/gcn/crt0.c (size_t): Define.
24963 (_init_array, _fini_array): New.
24964 (__preinit_array_start, __preinit_array_end,
24965 __init_array_start, __init_array_end,
24966 __fini_array_start, __fini_array_end): Declare weak references.
24967
24968 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
24969
24970 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
24971
24972 2019-05-22 Jason Merrill <jason@redhat.com>
24973
24974 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
24975
24976 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
24977
24978 PR target/88483
24979 * config/i386/i386-options.c (ix86_init_machine_status): Set
24980 stack_frame_required to true.
24981 * config/i386/i386.c (ix86_get_frame_size): New function.
24982 (ix86_frame_pointer_required): Replace get_frame_size with
24983 ix86_get_frame_size.
24984 (ix86_compute_frame_layout): Likewise.
24985 (ix86_find_max_used_stack_alignment): Changed to void. Set
24986 stack_frame_required.
24987 (ix86_finalize_stack_frame_flags): Always call
24988 ix86_find_max_used_stack_alignment. Replace get_frame_size with
24989 ix86_get_frame_size.
24990 * config/i386/i386.h (machine_function): Add stack_frame_required.
24991
24992 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
24993
24994 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
24995
24996 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
24997
24998 * common/config/aarch64/aarch64-common.c
24999 (struct aarch64_option_extension, struct processor_name_to_arch,
25000 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
25001 aarch64_contains_opt,
25002 aarch64_get_extension_string_for_isa_flags): Change type of
25003 variables storing flags to uint64_t.
25004 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
25005 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
25006 * config/aarch64/aarch64.c (struct processor,
25007 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
25008 aarch64_validate_march, aarch64_override_options,
25009 aarch64_option_print, aarch64_handle_attr_isa_flags,
25010 aarch64_declare_function_name, aarch64_start_file): Make flag
25011 variables uint64_t.
25012 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
25013 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
25014 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
25015 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
25016 * config/aarch64/driver-aarch64.c
25017 (struct aarch64_arch_extension, struct aarch64_core_data,
25018 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
25019 flag variables uint64_t.
25020 * doc/invoke.texi: Add documentation for new arguments.
25021
25022 2019-05-22 Richard Biener <rguenther@suse.de>
25023
25024 * alias.c (ao_ref_from_mem): Move stack-slot sharing
25025 rewrite ...
25026 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
25027
25028 2019-05-22 Martin Liska <mliska@suse.cz>
25029
25030 PR lto/90500
25031 * doc/extend.texi: Document the change.
25032
25033 2019-05-22 Richard Biener <rguenther@suse.de>
25034
25035 PR tree-optimization/90450
25036 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
25037 (mem_ref_hasher::equal): Check it.
25038 (mem_ref_alloc): Initialize it.
25039 (gather_mem_refs_stmt): Set it.
25040
25041 2019-05-22 Richard Biener <rguenther@suse.de>
25042
25043 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
25044 Add ABS_EXPR.
25045 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
25046 as ABSU_EXPR.
25047
25048 2019-05-22 Alan Modra <amodra@gmail.com>
25049
25050 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
25051 (ASM_CPU_SPEC): Conditionally add -many.
25052 * config/rs6000/rs6000.c (rs6000_machine): New static var.
25053 (rs6000_machine_from_flags, emit_asm_machine): New functions..
25054 (rs6000_file_start): ..extracted from here, and modified to
25055 test all ISA bits.
25056 (rs6000_output_function_prologue): Emit .machine as necessary.
25057
25058 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
25059
25060 PR middle-end/90553
25061 * ira-lives.c (process_bb_node_lives): Consider defs
25062 for a call insn to be die before the call, not after.
25063
25064 * function.c (assign_parm_setup_block): Raise alignment of
25065 stacked parameter only for STRICT_ALIGNMENT targets.
25066
25067 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25068
25069 * config/rs6000/constraints.md (define_register_constraint "wz"):
25070 Delete.
25071 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25072 RS6000_CONSTRAINT_wz.
25073 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25074 (rs6000_init_hard_regno_mode_ok): Adjust.
25075 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
25076 * doc/md.texi (Machine Constraints): Adjust.
25077
25078 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25079
25080 * config/rs6000/constraints.md (define_register_constraint "wl"):
25081 Delete.
25082 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25083 RS6000_CONSTRAINT_wl.
25084 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25085 (rs6000_init_hard_regno_mode_ok): Adjust.
25086 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
25087 * doc/md.texi (Machine Constraints): Adjust.
25088
25089 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25090
25091 * config/rs6000/constraints.md (define_register_constraint "wm"):
25092 Delete.
25093 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25094 RS6000_CONSTRAINT_wm.
25095 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25096 (rs6000_init_hard_regno_mode_ok): Adjust.
25097 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
25098 * doc/md.texi (Machine Constraints): Adjust.
25099
25100 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25101
25102 * config/rs6000/constraints.md (define_register_constraint "wk"):
25103 Delete.
25104 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25105 RS6000_CONSTRAINT_wk.
25106 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25107 (rs6000_init_hard_regno_mode_ok): Adjust.
25108 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
25109 * doc/md.texi (Machine Constraints): Adjust.
25110
25111 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25112
25113 * config/rs6000/constraints.md (define_register_constraint "wj"):
25114 Delete.
25115 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25116 RS6000_CONSTRAINT_wj.
25117 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25118 (rs6000_init_hard_regno_mode_ok): Adjust.
25119 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
25120 (VS_64dm): Delete.
25121 * config/rs6000/vsx.md: Ditto.
25122 * doc/md.texi (Machine Constraints): Adjust.
25123
25124 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25125
25126 * config/rs6000/constraints.md (define_register_constraint "wh"):
25127 Delete.
25128 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25129 RS6000_CONSTRAINT_wh.
25130 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25131 (rs6000_init_hard_regno_mode_ok): Adjust.
25132 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
25133 * doc/md.texi (Machine Constraints): Adjust.
25134
25135 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25136
25137 PR target/90547
25138 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
25139 Avoid calling gen_lowpart with CONST operand.
25140
25141 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
25142
25143 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
25144 field template_last_to_copy.
25145 (ssa_create_duplicates): Set it, and use it. Attempt to
25146 preserve more debug stmts.
25147
25148 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25149
25150 * config/i386/sse.md (VF1_AVX2): New mode iterator.
25151 (signbit<mode>2): New expander
25152
25153 2019-05-21 James Clarke <jrtc27@jrtc27.com>
25154
25155 PR bootstrap/87338
25156 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
25157 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
25158
25159 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25160
25161 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
25162 %ebx and %ecx bafore calling cpuid with leaf 1 or
25163 non-constant leaf argument.
25164
25165 2019-05-21 Alan Modra <amodra@gmail.com>
25166
25167 PR target/90545
25168 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
25169 power9 direct move cost.
25170
25171 2019-05-21 Richard Biener <rguenther@suse.de>
25172
25173 PR middle-end/90510
25174 * fold-const.c (fold_read_from_vector): New function.
25175 * fold-const.h (fold_read_from_vector): Declare.
25176 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
25177 single-element insert permutations. Canonicalize selector
25178 further and fix issue with last commit.
25179
25180 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
25181
25182 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
25183 parameter with default value false to declaration.
25184 (split_edges_for_insertion): New inline function. Wrapper for
25185 split_critical_edges with for_edge_insertion_p = true.
25186 * tree-cfg.c (split_critical_edges): Don't split non-critical
25187 edges if for_edge_insertion_p is false. Fix whitespace.
25188 * tree-ssa-pre.c (pass_pre::execute): Call
25189 split_edges_for_insertion instead of split_critical_edges.
25190 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
25191 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
25192 (pass_data_sink_code): Update function name in the comment.
25193
25194 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
25195
25196 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
25197 around is_value_included_in that knows how to handle BIT_AND_EXPR.
25198 (is_pred_expr_subset_of): Use the new function. Handle more cases where
25199 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
25200 positives.
25201
25202 2019-05-21 Martin Liska <mliska@suse.cz>
25203
25204 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
25205 an extra newline.
25206 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
25207 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
25208 vec_lvsr.
25209 * config/rs6000/rs6000.c (rs6000_option_override_internal):
25210 Quote a C type.
25211 (rs6000_function_arg): Likewise.
25212 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
25213 (rs6000_expand_ternop_builtin): Use interval syntax.
25214 (get_element_number): Likewise.
25215 (altivec_expand_builtin): Likewise.
25216 (rs6000_get_function_versions_dispatcher): Quote target_clones.
25217
25218 2019-05-20 Jakub Jelinek <jakub@redhat.com>
25219
25220 PR c++/59813
25221 PR target/90418
25222 * function.h (struct function): Add calls_eh_return member.
25223 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
25224 gimplifying __builtin_eh_return call.
25225 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
25226 to cfun.
25227 (expand_call_inline): Or in src_cfun->calls_eh_return into
25228 dst_cfun->calls_eh_return.
25229 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
25230 cfun->calls_eh_return.
25231 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
25232 * lto-streamer-out.c (output_struct_function_base): Write
25233 calls_eh_return.
25234
25235 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
25236
25237 PR rtl-optimization/43147
25238 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
25239 IX86_BUILTIN_SHUFPD.
25240
25241 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
25242
25243 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
25244 (refs_may_alias_p_1): ... here; update stats.
25245 (refs_may_alias_p): Do not update stats here.
25246
25247 2019-05-20 Richard Biener <rguenther@suse.de>
25248
25249 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
25250 doesn't produce pointers.
25251 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
25252 the first operand points to.
25253
25254 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
25255
25256 * tree-ssa-alias.c (compare_sizes): New function.
25257 (sompare_type_sizes): New function
25258 (aliasing_component_refs_p): Use it.
25259 (indirect_ref_may_alias_decl_p): Likewise.
25260
25261 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25262
25263 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
25264
25265 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25266
25267 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
25268 (LIBLSAN_EARLY_SPEC): Likewise.
25269 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
25270
25271 2019-05-20 Martin Liska <mliska@suse.cz>
25272
25273 * config/i386/i386.c (ix86_libc_has_fast_function):
25274 Add ATTRIBUTE_UNUSED for the argument.
25275
25276 2019-05-20 Richard Biener <rguenther@suse.de>
25277
25278 * gimple-match-head.c: Include vec-perm-indices.h.
25279 * generic-match-head.c: Likewise.
25280 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
25281 is included.
25282 * fold-const.c (fold_vec_perm): Export.
25283 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
25284 (match.pd): ...here.
25285
25286 2019-05-20 Jakub Jelinek <jakub@redhat.com>
25287
25288 * cfgloop.h (struct loop): Add simdlen member.
25289 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
25290 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
25291 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
25292 as new argument to autovectorize_vector_sizes target hook. If
25293 loop->simdlen, pick up vector size where the vectorization factor
25294 is equal to loop->simd, and if there is none, fall back to the first
25295 successful one.
25296 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
25297 caller.
25298 * omp-low.c (omp_clause_aligned_alignment): Likewise.
25299 * omp-general.c (omp_max_vf): Likewise.
25300 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
25301 * tree-vect-slp.c (vect_slp_bb): Likewise.
25302 * target.def (autovectorize_vector_sizes): Add ALL argument and
25303 document it.
25304 * doc/tm.texi: Adjust documentation.
25305 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
25306 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
25307 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
25308 bool argument.
25309 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
25310 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
25311 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
25312 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
25313 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
25314 preferred vector size is not 512-bit or 256-bit, just put those
25315 unpreferred ones last.
25316
25317 2019-05-20 Martin Liska <mliska@suse.cz>
25318
25319 * targhooks.c (default_libc_has_fast_function): New function.
25320 * targhooks.h (default_libc_has_fast_function): Likewise.
25321
25322 2019-05-20 Martin Liska <mliska@suse.cz>
25323
25324 PR middle-end/90263
25325 * builtins.c (expand_builtin_memory_copy_args): When having a
25326 target with fast mempcpy implementation do now use memcpy.
25327 * config/i386/i386.c (ix86_libc_has_fast_function): New.
25328 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
25329 * doc/tm.texi: Likewise.
25330 * doc/tm.texi.in: Likewise.
25331 * target.def:
25332 * expr.c (emit_block_move_hints): Add 2 new arguments.
25333 * expr.h (emit_block_move_hints): Bail out when libcall
25334 to memcpy would be used.
25335
25336 2019-05-20 Martin Liska <mliska@suse.cz>
25337
25338 * profile-count.c: Add vertical spacing in order
25339 to separate functions.
25340 * profile-count.h: Likewise.
25341
25342 2019-05-20 Martin Liska <mliska@suse.cz>
25343
25344 * profile-count.h: Do not use full qualified
25345 names if possible.
25346 * profile-count.c (profile_count::to_frequency): Likewise.
25347
25348 2019-05-20 Martin Liska <mliska@suse.cz>
25349
25350 * profile-count.h (enum profile_quality): Use capital letters
25351 for enum value names. Use the adjusted names.
25352 * profile-count.c: Use the adjusted names.
25353
25354 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25355
25356 * config/rs6000/constraints.md (define_register_constraint "wH"):
25357 Delete.
25358 (define_register_constraint "wI"): Delete.
25359 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25360 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
25361 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25362 (rs6000_init_hard_regno_mode_ok): Adjust.
25363 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
25364 resp. "d", or with "wa" as appropriate, all with "p8v".
25365 * config/rs6000/vsx.md: Ditto.
25366 * doc/md.texi (Machine Constraints): Adjust.
25367
25368 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25369
25370 * config/rs6000/constraints.md (define_register_constraint "wy"):
25371 Delete.
25372 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25373 RS6000_CONSTRAINT_wy.
25374 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25375 (rs6000_init_hard_regno_mode_ok): Adjust.
25376 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
25377 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
25378 (define_mode_attr Fisa): New.
25379 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
25380 * doc/md.texi (Machine Constraints): Adjust.
25381
25382 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25383
25384 * config/rs6000/constraints.md (define_register_constraint "wu"):
25385 Delete.
25386 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25387 RS6000_CONSTRAINT_wu.
25388 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25389 (rs6000_init_hard_regno_mode_ok): Adjust.
25390 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
25391 both with "p8v".
25392 (define_mode_attr Fa): Delete.
25393 * config/rs6000/vsx.md: Ditto.
25394 * doc/md.texi (Machine Constraints): Adjust.
25395
25396 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25397
25398 * config/rs6000/constraints.md (define_register_constraint "wJ"):
25399 Delete.
25400 (define_register_constraint "wK"): Delete.
25401 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25402 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
25403 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25404 (rs6000_init_hard_regno_mode_ok): Adjust.
25405 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
25406 Replace "wK" constraint by "wH" with "p9v".
25407 * config/rs6000/vsx.md: Ditto.
25408 * doc/md.texi (Machine Constraints): Adjust.
25409
25410 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25411
25412 * config/rs6000/constraints.md (define_register_constraint "wb"):
25413 Delete.
25414 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25415 RS6000_CONSTRAINT_wb.
25416 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25417 (rs6000_init_hard_regno_mode_ok): Adjust.
25418 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
25419 * config/rs6000/vsx.md: Ditto.
25420 * doc/md.texi (Machine Constraints): Adjust.
25421
25422 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25423
25424 * config/rs6000/constraints.md (define_register_constraint "wo"):
25425 Delete.
25426 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25427 RS6000_CONSTRAINT_wo.
25428 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25429 (rs6000_init_hard_regno_mode_ok): Adjust.
25430 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
25431 * config/rs6000/altivec.md: Ditto.
25432 * doc/md.texi (Machine Constraints): Adjust.
25433
25434 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
25435
25436 * config/darwin-c.c (darwin_register_objc_includes): Do not
25437 prepend the sysroot when building gnu-runtime header search
25438 paths.
25439
25440 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
25441
25442 * config/darwin.c (darwin_file_end): Use switch_to_section ()
25443 instead of direct output of the asm.
25444
25445 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
25446
25447 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
25448 argument to be type bool (was int before).
25449 (rs6000_emit_epilogue): Simplify some code. Declare some variables
25450 at first use. Use type bool for some variables. Fix a theoretical
25451 eh_return bug for svr4.
25452
25453 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
25454
25455 * config/rs6000/rs6000.md (isa): New attribute.
25456 (enabled): New attribute.
25457
25458 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
25459
25460 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
25461 assemble_start_function and assemble_end_function.
25462
25463 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
25464
25465 PR middle-end/89433
25466 * omp-general.c (oacc_verify_routine_clauses): Change formal
25467 parameters. Add checking if already marked with an OpenACC
25468 'routine' directive. Adjust all users.
25469
25470 PR middle-end/89433
25471 * omp-general.c (oacc_build_routine_dims): Move some of its
25472 processing into...
25473 (oacc_verify_routine_clauses): ... this new function.
25474 * omp-general.h (oacc_verify_routine_clauses): New prototype.
25475
25476 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
25477
25478 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
25479 formating of picbase labels to match other ports.
25480
25481 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
25482
25483 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
25484 in the generated code.
25485
25486 2019-05-16 Martin Sebor <msebor@redhat.com>
25487
25488 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
25489 identifiers, keywords, operators, and types in diagnostics. Correct
25490 quoting, spelling, and sentence capitalization issues.
25491 (expand_builtin_atomic_is_lock_free): Same.
25492 (fold_builtin_next_arg): Same.
25493 * cfgexpand.c (expand_one_var): Same.
25494 (tree_conflicts_with_clobbers_p): Same.
25495 (expand_asm_stmt): Same.
25496 (verify_loop_structure): Same.
25497 * cgraphunit.c (process_function_and_variable_attributes): Same.
25498 * collect-utils.c (collect_execute): Same.
25499 * collect2.c (maybe_run_lto_and_relink): Same.
25500 (is_lto_object_file): Same.
25501 (scan_prog_file): Same.
25502 * convert.c (convert_to_real_1): Same.
25503 * dwarf2out.c (dwarf2out_begin_prologue): Same.
25504 * except.c (verify_eh_tree): Same.
25505 * gcc.c (execute): Same.
25506 (eval_spec_function): Same.
25507 (run_attempt): Same.
25508 (driver::set_up_specs): Same.
25509 (compare_debug_auxbase_opt_spec_function): Same.
25510 * gcov-tool.c (unlink_gcda_file): Same.
25511 (do_merge): Same.
25512 (do_rewrite): Same.
25513 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
25514 * gimplify.c (gimplify_asm_expr): Same.
25515 (gimplify_adjust_omp_clauses): Same.
25516 * hsa-gen.c (gen_hsa_addr_insns): Same.
25517 (gen_hsa_insns_for_load): Same.
25518 (gen_hsa_cmp_insn_from_gimple): Same.
25519 (gen_hsa_insns_for_operation_assignment): Same.
25520 (gen_get_level): Same.
25521 (gen_hsa_alloca): Same.
25522 (omp_simple_builtin::generate): Same.
25523 (gen_hsa_atomic_for_builtin): Same.
25524 (gen_hsa_insns_for_call): Same.
25525 * input.c (dump_location_info): Same.
25526 * ipa-devirt.c (compare_virtual_tables): Same.
25527 * ira.c (ira_setup_eliminable_regset): Same.
25528 * lra-assigns.c (lra_assign): Same.
25529 * lra-constraints.c (lra_constraints): Same.
25530 * lto-streamer-in.c (lto_input_mode_table): Same.
25531 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
25532 (merge_and_complain): Same.
25533 (compile_offload_image): Same.
25534 (compile_images_for_offload_targets): Same.
25535 (debug_objcopy): Same.
25536 (run_gcc): Same.
25537 (main): Same.
25538 * opts.c (print_specific_help): Same.
25539 (parse_no_sanitize_attribute): Same.
25540 (print_help): Same.
25541 (handle_param): Same.
25542 * plugin.c (add_new_plugin): Same.
25543 (parse_plugin_arg_opt): Same.
25544 (try_init_one_plugin): Same.
25545 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
25546 operators, and types in diagnostics. Correct quoting and spelling
25547 issues.
25548 * read-rtl-function.c (parse_edge_flag_token): Same.
25549 (function_reader::parse_enum_value): Same.
25550 * reg-stack.c (check_asm_stack_operands): Same.
25551 * regcprop.c (validate_value_data): Same.
25552 * sched-rgn.c (make_pass_sched_fusion): Same.
25553 * stmt.c (check_unique_operand_names): Same.
25554 * targhooks.c (default_target_option_pragma_parse): Same.
25555 * tlink.c (recompile_files): Same.
25556 * toplev.c (process_options): Same.
25557 (do_compile): Same.
25558 * trans-mem.c (diagnose_tm_1): Same.
25559 (ipa_tm_scan_irr_block): Same.
25560 (ipa_tm_diagnose_transaction): Same.
25561 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
25562 format a tree code name in a diagnostic.
25563 (verify_types_in_gimple_min_lval): Same.
25564 (verify_types_in_gimple_reference): Same.
25565 (verify_gimple_call): Same.
25566 (verify_gimple_assign_unary): Same.
25567 (verify_gimple_assign_binary): Same.
25568 (verify_gimple_assign_ternary): Same.
25569 (verify_gimple_assign_single): Same.
25570 (verify_gimple_switch): Same.
25571 (verify_gimple_label): Same.
25572 (verify_gimple_phi): Same.
25573 (verify_gimple_in_seq): Same.
25574 (verify_eh_throw_stmt_node): Same.
25575 (collect_subblocks): Same.
25576 (gimple_verify_flow_info): Same.
25577 (do_warn_unused_result): Same.
25578 * tree-inline.c (expand_call_inline): Same.
25579 * tree-into-ssa.c (update_ssa): Same.
25580 * tree.c (tree_int_cst_elt_check_failed): Same.
25581 (tree_vec_elt_check_failed): Same.
25582 (omp_clause_operand_check_failed): Same.
25583 (verify_type_variant): Same.
25584 (verify_type): Same.
25585 * value-prof.c (verify_histograms): Same.
25586 * varasm.c (assemble_start_function): Same.
25587
25588 2019-05-16 Martin Sebor <msebor@redhat.com>
25589
25590 * config/i386/i386-expand.c (get_element_number): Quote keywords
25591 and other internal names in diagnostics. Adjust other diagnostic
25592 formatting issues noted by -Wformat-diag.
25593 * config/i386/i386-features.c
25594 (ix86_mangle_function_version_assembler_name): Same.
25595 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
25596 * config/i386/i386.c (ix86_function_type_abi): Same.
25597 (ix86_function_ms_hook_prologue): Same.
25598 (classify_argument): Same.
25599 (ix86_expand_prologue): Same.
25600 (ix86_md_asm_adjust): Same.
25601 (ix86_memmodel_check): Same.
25602
25603 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
25604
25605 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
25606 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
25607 and fpxx modes.
25608
25609 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
25610
25611 PR target/90497
25612 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
25613 intrinsics without SSE/SSE2/SSSE3.
25614 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
25615 check.
25616 (*mmx_uavgv8qi3): Likewise.
25617
25618 2019-05-17 Richard Biener <rguenther@suse.de>
25619
25620 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
25621 VEC_PERM_EXPR as __VEC_PERM with -gimple.
25622
25623 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
25624
25625 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
25626 vec_sldw insn pattern.
25627
25628 2019-05-17 Richard Biener <rguenther@suse.de>
25629
25630 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
25631
25632 2019-05-17 Martin Liska <mliska@suse.cz>
25633
25634 PR driver/90496
25635 * toplev.c (output_stack_usage): With LTO and sanitizer it
25636 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
25637 has no file location.
25638
25639 2019-05-16 Jakub Jelinek <jakub@redhat.com>
25640
25641 PR c++/90484
25642 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
25643 sz0 is equal to sz1, instead return false in that case.
25644
25645 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
25646 has non-constant expression, force sctx.lane and use two
25647 argument IFN_GOMP_SIMD_LANE instead of single argument.
25648 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
25649 two argument IFN_GOMP_SIMD_LANE without lhs.
25650 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
25651 member.
25652 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
25653 Define.
25654 (LOOP_REQUIRES_VERSIONING): Or in
25655 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
25656 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
25657 simd_if_cond.
25658 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
25659 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
25660 from simd if clause if needed.
25661
25662 2019-05-16 Richard Biener <rguenther@suse.de>
25663
25664 * tree-affine.c (expr_to_aff_combination): New function split
25665 out from...
25666 (tree_to_aff_combination): ... here.
25667 (aff_combination_expand): Avoid building a GENERIC tree.
25668
25669 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
25670
25671 * cgraphunit.c (cgraph_node::expand_thunk): Remove
25672 assemble_start_function and assemble_end_function calls.
25673 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
25674 assemble_start_function and assemble_end_function.
25675 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
25676 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
25677 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
25678 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
25679 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
25680 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
25681 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
25682 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
25683 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25684 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25685 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
25686 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
25687 Likewise.
25688 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
25689 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
25690 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
25691 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
25692 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25693 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25694 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
25695 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
25696 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25697 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
25698 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25699 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25700 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
25701 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
25702 Likewise.
25703 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25704 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25705 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
25706
25707 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
25708
25709 * tree-ssa-alias.c (alias_stats): Add
25710 aliasing_component_refs_p_may_alias and
25711 aliasing_component_refs_p_no_alias.
25712 (dump_alias_stats): Print aliasing_component_refs_p stats.
25713 (aliasing_component_refs_p): Update stats.
25714
25715 2019-05-16 Martin Liska <mliska@suse.cz>
25716
25717 PR lto/90500
25718 * multiple_target.c (expand_target_clones): Do not allow
25719 target_clones being used with a symbol that is an alias.
25720
25721 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
25722
25723 PR tree-optimization/90394
25724 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
25725 positives rather than ICE for cases where (code2 == NE_EXPR
25726 && code1 == BIT_AND_EXPR).
25727
25728 2019-05-16 Jakub Jelinek <jakub@redhat.com>
25729
25730 PR fortran/90329
25731 * tree-core.h (struct tree_decl_common): Document
25732 decl_nonshareable_flag for PARM_DECLs.
25733 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
25734 * calls.c (expand_call): Don't try tail call if caller
25735 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
25736 passed on the stack and callee needs to pass any arguments on the
25737 stack.
25738 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
25739 else if instead of series of mutually exclusive ifs. Handle
25740 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
25741 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
25742
25743 * lto-streamer.h (LTO_major_version): Bump to 9.
25744
25745 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
25746
25747 PR tree-optimization/90106
25748 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
25749 new parameter as new internal function call, also move it to new
25750 basic block.
25751 (use_internal_fn): Pass internal function call to
25752 shrink_wrap_one_built_in_call_with_conds.
25753
25754 2019-05-15 Jakub Jelinek <jakub@redhat.com>
25755
25756 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
25757 max_vf to 1.
25758 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
25759 safelen_int and set loop->dont_vectorize.
25760
25761 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25762
25763 PR target/89021
25764 * config/i386/i386-builtin.def: Enable MMX intrinsics with
25765 SSE/SSE2/SSSE3.
25766 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
25767 Likewise.
25768 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
25769 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
25770 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
25771 is defined.
25772
25773 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25774
25775 PR target/89021
25776 * config/i386/mmx.md (*vec_dupv2sf): Changed to
25777 define_insn_and_split to support SSE emulation.
25778 (*vec_extractv2sf_0): Likewise.
25779 (*vec_extractv2sf_1): Likewise.
25780 (*vec_extractv2si_0): Likewise.
25781 (*vec_extractv2si_1): Likewise.
25782 (*vec_extractv2si_zext_mem): Likewise.
25783 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
25784 (vec_extractv2sf_1 splitter): Likewise.
25785 (vec_extractv2sfsf): Likewise.
25786 (vec_setv2si): Likewise.
25787 (vec_extractv2si_1 splitter): Likewise.
25788 (vec_extractv2sisi): Likewise.
25789 (vec_setv4hi): Likewise.
25790 (vec_extractv4hihi): Likewise.
25791 (vec_setv8qi): Likewise.
25792 (vec_extractv8qiqi): Likewise.
25793 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
25794 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
25795 (vec_extractv2sisi): Likewise.
25796 (vec_extractv4hihi): Likewise.
25797 (vec_extractv8qiqi): Likewise.
25798 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
25799 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
25800 (vec_initv2sisi): Likewise.
25801 (vec_initv4hihi): Likewise.
25802 (vec_initv8qiqi): Likewise.
25803 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
25804 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
25805 (vec_setv4hi): Likewise.
25806 (vec_setv8qi): Likewise.
25807
25808 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25809
25810 PR target/89021
25811 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
25812 TARGET_MMX_WITH_SSE.
25813 (MMXMODE:*mov<mode>_internal): Likewise.
25814 (MMXMODE:movmisalign<mode>): Likewise.
25815
25816 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
25817
25818 PR target/89021
25819 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
25820 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
25821 (sse2_cvtpd2pi): Ditto.
25822 (sse2_cvttpd2pi): Ditto.
25823 (*vec_concatv2sf_sse4_1): Ditto.
25824 (*vec_concatv2sf_sse): Ditto.
25825 (*vec_concatv2si_sse4_1): Ditto.
25826 (*vec_concatv2si): Ditto.
25827 (*vec_concatv4si_0): Ditto.
25828 (*vec_concatv2di_0): Ditto.
25829
25830 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25831
25832 PR target/89021
25833 * config/i386/sse.md (abs<mode>2): 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_palignrdi): Changed to
25839 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_psign<mode>3): Add SSE emulation.
25845
25846 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25847
25848 PR target/89021
25849 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
25850 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
25851 SSE emulation.
25852
25853 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25854
25855 PR target/89021
25856 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
25857 or TARGET_MMX_WITH_SSE.
25858 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
25859
25860 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25861
25862 PR target/89021
25863 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
25864
25865 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25866
25867 PR target/89021
25868 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
25869 Changed to define_insn_and_split to support SSE emulation.
25870
25871 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25872
25873 PR target/89021
25874 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
25875 Changed to define_insn_and_split to support SSE emulation.
25876
25877 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25878
25879 PR target/89021
25880 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
25881 (*mmx_<emms>): This.
25882 (mmx_<emms>): New expander.
25883
25884 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25885
25886 PR target/89021
25887 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
25888 support.
25889 (*sse2_umulv1siv1di3): Add SSE2 emulation.
25890
25891 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25892
25893 PR target/89021
25894 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
25895
25896 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25897
25898 PR target/89021
25899 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
25900
25901 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25902
25903 PR target/89021
25904 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
25905 TARGET_MMX_WITH_SSE.
25906 (*mmx_uavgv4hi3): Add SSE emulation.
25907
25908 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25909
25910 PR target/89021
25911 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
25912 and TARGET_MMX_WITH_SSE.
25913 (*mmx_uavgv8qi3): Add SSE emulation.
25914
25915 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25916
25917 PR target/89021
25918 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
25919 maskmovdqu for __MMX_WITH_SSE__.
25920
25921 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25922
25923 PR target/89021
25924 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
25925 TARGET_MMX and TARGET_MMX_WITH_SSE.
25926 (*mmx_umulv4hi3_highpart): Add SSE emulation.
25927
25928 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25929
25930 PR target/89021
25931 * config/i386/mmx.md (mmx_pmovmskb): Changed to
25932 define_insn_and_split to support SSE emulation.
25933
25934 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25935
25936 PR target/89021
25937 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
25938 and TARGET_MMX_WITH_SSE.
25939 (mmx_<code>v8qi3): Likewise.
25940 (smaxmin:<code>v4hi3): New.
25941 (umaxmin:<code>v8qi3): Likewise.
25942 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
25943 (umaxmin:*mmx_<code>v8qi3): Likewise.
25944
25945 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25946
25947 PR target/89021
25948 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
25949 TARGET_MMX_WITH_SSE.
25950 (*mmx_pinsrw): Add SSE emulation.
25951
25952 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25953
25954 PR target/89021
25955 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
25956
25957 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25958
25959 PR target/89021
25960 * config/i386/sse.md (sse_cvtpi2ps): Changed to
25961 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
25962 SSE emulation.
25963
25964 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25965
25966 PR target/89021
25967 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
25968 (sse_cvttps2pi): Likewise.
25969
25970 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25971
25972 PR target/89021
25973 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
25974 TARGET_MMX_WITH_SSE.
25975 (mmx_pshufw_1): Add SSE emulation.
25976 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
25977 TARGET_MMX_WITH_SSE to support SSE emulation.
25978
25979 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25980
25981 PR target/89021
25982 * config/i386/constraints.md (Yw): New constraint.
25983 * config/i386/mmx.md (*vec_dupv2si): Changed to
25984 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
25985 support SSE emulation.
25986
25987 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25988
25989 PR target/89021
25990 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
25991 TARGET_MMX_WITH_SSE.
25992 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
25993 support.
25994 (mmx_gt<mode>3): Likewise.
25995
25996 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25997
25998 PR target/89021
25999 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
26000 TARGET_MMX_WITH_SSE. Add SSE support.
26001
26002 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26003
26004 PR target/89021
26005 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
26006 TARGET_MMX_WITH_SSE.
26007 (any_logic:<code><mode>3): New.
26008 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
26009 Add SSE support.
26010
26011 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26012
26013 PR target/89021
26014 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
26015 TARGET_MMX_WITH_SSE. Add SSE emulation.
26016 (mmx_<shift_insn><mode>3): Likewise.
26017 (ashr<mode>3): New.
26018 (<shift_insn><mode>3): Likewise.
26019
26020 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26021
26022 PR target/89021
26023 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
26024 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
26025
26026 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26027
26028 PR target/89021
26029 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
26030 TARGET_MMX_WITH_SSE.
26031 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
26032 SSE support.
26033
26034 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26035
26036 PR target/89021
26037 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
26038 TARGET_MMX_WITH_SSE.
26039 (mulv4hi3): New.
26040 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26041 support.
26042
26043 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26044
26045 PR target/89021
26046 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
26047 (plusminus:mmx_<plusminus_insn><mode>3): Check
26048 TARGET_MMX_WITH_SSE.
26049 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
26050 (<plusminus_insn><mode>3): New.
26051 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
26052 (*mmx_<plusminus_insn><mode>3): Likewise.
26053
26054 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26055
26056 PR target/89021
26057 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
26058 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
26059 prototype.
26060 * config/i386/mmx.m (mmx_punpckhbw): Changed to
26061 define_insn_and_split to support SSE emulation.
26062 (mmx_punpcklbw): Likewise.
26063 (mmx_punpckhwd): Likewise.
26064 (mmx_punpcklwd): Likewise.
26065 (mmx_punpckhdq): Likewise.
26066 (mmx_punpckldq): Likewise.
26067
26068 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26069 Uros Bizjak <ubizjak@gmail.com>
26070
26071 PR target/89021
26072 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
26073 New function.
26074 (ix86_split_mmx_pack): Likewise.
26075 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
26076 New prototype.
26077 (ix86_split_mmx_pack): Likewise.
26078 * config/i386/i386.md (mmx_isa): New.
26079 (enabled): Also check mmx_isa.
26080 * config/i386/mmx.md (any_s_truncate): New code iterator.
26081 (s_trunsuffix): New code attr.
26082 (mmx_packsswb): Removed.
26083 (mmx_packssdw): Likewise.
26084 (mmx_packuswb): Likewise.
26085 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
26086 MMX packsswb/packuswb with SSE2.
26087 (mmx_packssdw): Likewise.
26088 * config/i386/predicates.md (register_mmxmem_operand): New.
26089
26090 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26091
26092 PR target/89021
26093 * config/i386/i386-c.c (ix86_target_macros_internal): Define
26094 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
26095 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
26096 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
26097 (ix86_vector_mode_supported_p): Likewise.
26098 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
26099
26100 2019-05-15 Martin Liska <mliska@suse.cz>
26101
26102 PR middle-end/90478
26103 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
26104 Check for overflow.
26105
26106 2019-05-15 Richard Biener <rguenther@suse.de>
26107
26108 * tree-into-ssa.c (pass_build_ssa::execute): Run
26109 update_address_taken before going into SSA.
26110
26111 2019-05-15 Richard Biener <rguenther@suse.de>
26112
26113 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
26114 as __BIT_FIELD_REF with type with -gimple.
26115
26116 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
26117
26118 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
26119 semantically equivalent branches (left over after prior refactorings).
26120
26121 2019-05-15 Richard Biener <rguenther@suse.de>
26122
26123 PR tree-optimization/88828
26124 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
26125 bogus check.
26126
26127 2019-05-14 Richard Biener <rguenther@suse.de>
26128
26129 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
26130 as __VIEW_CONVERT with -gimple.
26131
26132 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26133
26134 PR target/82920
26135 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
26136 Darwin.
26137
26138 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
26139
26140 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
26141 define_split to become a define_insn_and_split.
26142
26143 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
26144
26145 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
26146 arguments.
26147 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
26148 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
26149 (sibcall_epilogue): Adjust.
26150 (epilogue): Adjust.
26151
26152 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26153
26154 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
26155 to unsupported ones.
26156 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
26157 * config.host: Likewise.
26158 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
26159 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
26160 __svr4__]: Remove "brand" fallback.
26161 [!KSTAT_DATA_STRING]: Remove.
26162 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
26163 to *-*-solaris2*.
26164 (comdat_group): Likewise.
26165 (set_have_as_tls): Likewise.
26166 (gcc_cv_target_dl_iterate_phdr): Likewise.
26167 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
26168 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
26169 * configure: Regenerate.
26170 * doc/install.texi: Simplify Solaris target triplets.
26171 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
26172 (Specific, *-*-solaris2*): Document Solaris 10 removal.
26173 Remove Solaris 10 references.
26174 Remove obsolete Solaris bug reference.
26175 (Specific, sparc-sun-solaris2.10): Remove.
26176
26177 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
26178
26179 * config/i386/i386.md (any_div): New code iterator.
26180 (paired_mod): New code attribute.
26181 (sgnprefix): Handle DIV and UDIV RTXes.
26182 (u): Ditto.
26183 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
26184 and udivmod<mode>4 patterns using any_div code iterator.
26185 (divmod splitters): Macroize splitters using any_div code iterator.
26186 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
26187 (*udivmodsi4_pow2_zext_2): Ditto.
26188 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
26189 and *udivmod<mode>4_noext patterns using any_div code iterator.
26190 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
26191 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
26192 patterns using any_div code iterator.
26193 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
26194 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
26195 patterns using any_div code iterator.
26196 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
26197 udivmodhiqi3 patterns using any_extend code iterator.
26198
26199 2019-05-14 Richard Biener <rguenther@suse.de>
26200 H.J. Lu <hongjiu.lu@intel.com>
26201
26202 PR tree-optimization/88828
26203 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
26204 permuting in a single non-constant element not extracted
26205 from a vector.
26206
26207 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
26208
26209 * internal-fn.def (SIGNBIT): New.
26210 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
26211 defined.
26212 (signbitv4sf2): Likewise.
26213
26214 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
26215
26216 PR target/90357
26217 * config/mips/mips.c (mips_split_move): Skip forward SRC into
26218 next insn when the SRC reg is dead.
26219
26220 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
26221
26222 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
26223 (alloc_cand_and_find_basis): Ditto.
26224 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
26225 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
26226 (create_add_imm_cand, slsr_process_cast): Ditto.
26227 (slsr_process_copy, replace_mult_candidate): Ditto.
26228 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
26229 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
26230 (pass_strength_reduction::execute): Init the first NULL element.
26231
26232 2019-05-13 Nathan Sidwell <nathan@acm.org>
26233
26234 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
26235 (run_attempt): Reformat line break.
26236
26237 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
26238
26239 PR target/90418
26240 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
26241 data registers in sibcall epilogues.
26242 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
26243
26244 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
26245
26246 PR target/89221
26247 * configure.ac (--enable-frame-pointer):
26248 Disable by default for cygwin and mingw.
26249 * configure: Regenerate.
26250
26251 2019-05-13 Nathan Sidwell <nathan@acm.org>
26252
26253 * dwarf2out.c (breakout_comdat_types): Move comment to correct
26254 piece of code.
26255 (const_ok_for_output_1): Balance parens around #if/#else/#endif
26256 (gen_member_die): Move abstract origin check earlier. Only VARs
26257 can be static_inline_p. Simplify splicing control flow.
26258
26259 2019-05-13 Richard Biener <rguenther@suse.de>
26260
26261 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
26262 VIEW_CONVERT_EXPR.
26263 (vect_build_slp_tree_1): Likewise.
26264
26265 2019-05-13 Richard Biener <rguenther@suse.de>
26266
26267 PR tree-optimization/90402
26268 * tree-if-conv.c (tree_if_conversion): Value number only
26269 the loop body by making the latch an exit of the region
26270 as well.
26271 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
26272 processing PHIs.
26273 (do_rpo_vn): Deal with multiple edges into the entry block
26274 that are not backedges inside the region by skipping PHIs
26275 of the entry block.
26276
26277 2019-05-13 Richard Biener <rguenther@suse.de>
26278
26279 PR tree-optimization/90316
26280 * tree-ssa-pre.c (insert_aux): Fold into ...
26281 (insert): ... this function. Use a RPO walk to reduce the
26282 number of required iterations.
26283
26284 2019-05-13 Martin Liska <mliska@suse.cz>
26285
26286 PR tree-optimization/90416
26287 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
26288 string instead of passing the second part as va_arg argument.
26289
26290 2019-05-13 Martin Liska <mliska@suse.cz>
26291
26292 PR gcov-profile/90380
26293 * gcov.c (handle_cycle): Do not support zero cycle count,
26294 it should not be possible.
26295 (path_contains_zero_cycle_arc): New function.
26296 (circuit): Ignore zero cycle arc counts.
26297
26298 2019-05-13 Martin Liska <mliska@suse.cz>
26299
26300 PR gcov-profile/90380
26301 * gcov.c (enum loop_type): Remove the enum and
26302 the operator.
26303 (handle_cycle): Assert that we should not reach
26304 a negative count.
26305 (circuit): Use loop_found instead of a tri-state loop_type.
26306 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
26307 happen.
26308
26309 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26310
26311 PR target/82920
26312 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
26313 (ix86_output_indirect_branch_via_reg): Use output mechanism
26314 accounting for __USER_LABEL_PREFIX__.
26315 (ix86_output_indirect_branch_via_push): Likewise.
26316 (ix86_output_function_return): Likewise.
26317 (ix86_output_indirect_function_return): Likewise.
26318
26319 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
26320
26321 * doc/md.texi: Document use of code attributes in rtx patterns.
26322 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
26323 * read-rtl.c (find_code): Split out search loops into...
26324 (maybe_find_code): ...this new function.
26325 (check_code_iterator): Make the error message more informative.
26326 (check_code_attribute): New function.
26327 (rtx_reader::rtx_alloc_for_name): Likewise.
26328 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
26329 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
26330 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
26331 <max_opp> directly as an rtx code instead of via a match_operator.
26332 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
26333 (<su>abd<mode>_3): Update accordingly.
26334
26335 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26336
26337 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
26338 is given, print the state of the EH "save world" computation for
26339 Darwin.
26340
26341 2019-05-11 Jakub Jelinek <jakub@redhat.com>
26342
26343 PR c++/59813
26344 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
26345 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
26346
26347 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
26348
26349 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
26350 Use pinsrd for TARGET_SSE4_1.
26351 * config/i386/sse.md (movdi_to_sse): Ditto.
26352
26353 2019-05-10 Richard Biener <rguenther@suse.de>
26354
26355 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
26356 (do_rpo_vn): Initialize next_value_id.
26357
26358 2019-05-10 Martin Liska <mliska@suse.cz>
26359
26360 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
26361 Fix plural form.
26362
26363 2019-05-10 Jakub Jelinek <jakub@redhat.com>
26364
26365 PR tree-optimization/90385
26366 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
26367 arguments of the exit phis.
26368
26369 PR c++/90383
26370 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
26371 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
26372 id->do_not_fold.
26373 (copy_tree_body_r): Likewise.
26374 (copy_fn): Set id.do_not_fold to true.
26375
26376 2019-05-10 Martin Liska <mliska@suse.cz>
26377
26378 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
26379 Reapply changes from r269790.
26380
26381 2019-05-10 Martin Liska <mliska@suse.cz>
26382
26383 PR middle-end/90340
26384 * doc/invoke.texi: New params.
26385 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
26386 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
26387 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
26388 Use it.
26389 * tree-switch-conversion.h (struct jump_table_cluster):
26390 Likewise.
26391
26392 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
26393
26394 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
26395
26396 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
26397
26398 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
26399
26400 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
26401
26402 PR rtl-optimization/88879
26403 * sel-sched.c (sel_target_adjust_priority): Remove assert.
26404
26405 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
26406
26407 PR target/90405
26408 * config/arm/arm.c (callee_saved_reg_p): Move before
26409 thumb_find_work_register.
26410 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
26411 thumb_find_work_register. Only call df_get_live_out once.
26412 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
26413 (thumb_find_work_register): Use
26414 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
26415 algorithms to locate a spare call clobbered reg.
26416
26417 2019-05-09 Martin Liska <mliska@suse.cz>
26418
26419 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
26420 and MAX_EXPR in GIMPLE FE format.
26421
26422 2019-05-09 Martin Liska <mliska@suse.cz>
26423
26424 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
26425 * gimple-pretty-print.c (dump_gimple_bb_header):
26426 Dump BB count.
26427 (pp_cfg_jump): Dump edge probability.
26428 * profile-count.c (profile_quality_as_string): Simplify
26429 with a static array.
26430 (parse_profile_quality): New function.
26431 (profile_count::dump): Simplify with a static array.
26432 (profile_count::from_gcov_type): Add new argument.
26433 * profile-count.h (parse_profile_quality): Likewise.
26434 * predict.h (set_hot_bb_threshold): New.
26435 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
26436 New param.
26437 * predict.c (get_hot_bb_threshold): Set from the new param.
26438 (set_hot_bb_threshold): New.
26439
26440 2019-05-09 Richard Biener <rguenther@suse.de>
26441
26442 PR tree-optimization/90395
26443 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
26444 rewrite vector stores that throw internally.
26445
26446 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
26447
26448 * cif-code.def (CHKP): Remove.
26449
26450 PR target/89221
26451 * configure.ac (--enable-frame-pointer): Disable by default for
26452 GNU systems.
26453 * configure: Regenerate.
26454
26455 2019-05-09 Alan Modra <amodra@gmail.com>
26456
26457 PR target/89271
26458 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
26459 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
26460 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
26461 cost for general <-> vsx when direct moves are available.
26462 Cost union classes at minimal cost for any reg in the class.
26463 Correct calculation for moves between vsx, float, and altivec.
26464 Don't return a low cost for moves between special regs. Don't
26465 use hard coded register numbers.
26466 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
26467 (rs6000_ira_change_pseudo_allocno_class): New function.
26468 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
26469 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
26470 alternatives.
26471 (movsi_internal1): Don't disparage vector alternatives.
26472 (mov<mode>_internal): Likewise, excepting alternative that
26473 will be split.
26474 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
26475 we <- b alternative.
26476
26477 2019-05-08 Jakub Jelinek <jakub@redhat.com>
26478
26479 PR c++/59813
26480 PR tree-optimization/89060
26481 * tree-ssa-live.h (live_vars_map): New typedef.
26482 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
26483 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
26484 (struct compute_live_vars_data): New type.
26485 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
26486 live_vars_at_stmt, destroy_live_vars): New functions.
26487 * tree-tailcall.c: Include tree-ssa-live.h.
26488 (live_vars, live_vars_vec): New global variables.
26489 (find_tail_calls): Perform variable life analysis before punting.
26490 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
26491 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
26492 member.
26493 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
26494 Perform variable life analysis to select variables that really need
26495 clobbers added.
26496 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
26497 instead set id->eh_landing_pad_dest and assert it is the same.
26498 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
26499
26500 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
26501 Richard Earnshaw <rearnsha@arm.com>
26502
26503 PR target/88167
26504 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
26505 function.
26506 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
26507 (thumb1_compute_save_core_reg_mask): Don't force a spare work
26508 register if both the epilogue and prologue can use call-clobbered
26509 regs.
26510 (thumb1_unexpanded_epilogue): Use
26511 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
26512 picking temporaries for restoring high regs to match that of the
26513 prologue where possible.
26514 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
26515 the list of work registers. Detect if the return address is still live
26516 at the end of the prologue and avoid using it for a work register if so.
26517 If the return address is not live, add LR to the list of pushable regs
26518 after the first pass.
26519
26520 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
26521
26522 PR tree-optimization/90078
26523 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
26524 (INFTY): Increase the value for infinite cost.
26525 (struct comp_cost): Promote type of members to int64_t.
26526 (infinite_cost): Don't set complexity in initialization.
26527 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
26528 overflows to infinite_cost.
26529 (adjust_setup_cost): Promote type of parameter and cost computation
26530 to int64_t.
26531 (struct ainc_cost_data, struct iv_ca): Promote type of member to
26532 int64_t.
26533 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
26534 cost computation to int64_t.
26535 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
26536 int64_t's format specifier in dump.
26537
26538 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
26539
26540 PR tree-optimization/90240
26541 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
26542 with respect to scaling factor pre-computed for each basic block.
26543 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
26544 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
26545 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
26546 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
26547 live range for array of loop's basic blocks. Cleanup aux field of
26548 loop's basic blocks.
26549
26550 2019-05-08 Jakub Jelinek <jakub@redhat.com>
26551
26552 PR tree-optimization/90356
26553 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
26554
26555 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
26556
26557 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
26558 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
26559 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
26560 (ix86_handle_option): Handle -mavx512bf16.
26561 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
26562 to extra_headers.
26563 * config/i386/avx512bf16vlintrin.h: New.
26564 * config/i386/avx512bf16intrin.h: New.
26565 * config/i386/cpuid.h (bit_AVX512BF16): New.
26566 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
26567 * config/i386/i386-builtin-types.def: Add new types.
26568 * config/i386/i386-builtin.def: Add new builtins.
26569 * config/i386/i386-c.c (ix86_target_macros_internal): Define
26570 __AVX512BF16__.
26571 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
26572 (ix86_option_override_internal): Handle BF16.
26573 (ix86_valid_target_attribute_inner_p): Ditto.
26574 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
26575 * config/i386/i386-builtin.c (enum processor_features): Add
26576 F_AVX512BF16.
26577 (static const _isa_names_table isa_names_table): Ditto.
26578 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
26579 (PTA_AVX512BF16): Ditto.
26580 * config/i386/i386.opt: Add -mavx512bf16.
26581 * config/i386/immintrin.h: Include avx512bf16intrin.h
26582 and avx512bf16vlintrin.h.
26583 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
26584 avx512f_cvtneps2bf16_<mode><mask_name>,
26585 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
26586 * config/i386/subst.md (mask_half): Add new subst.
26587 * doc/invoke.texi: Document -mavx512bf16.
26588
26589 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
26590
26591 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
26592 Delete declaration.
26593 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
26594 (rs6000_debug_legitimize_reload_address): Delete.
26595 (rs6000_legitimize_reload_address_ptr): Delete.
26596 (rs6000_option_override_internal): Adjust.
26597 (mem_operand_gpr): Adjust comment.
26598 (legitimate_lo_sum_address_p): Ditto.
26599 (rs6000_legitimize_reload_address): Delete.
26600 (rs6000_debug_legitimize_reload_address): Delete.
26601 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
26602
26603 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
26604
26605 PR target/89765
26606 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26607 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
26608 to compute vector element selector for both constant and variable
26609 operands.
26610
26611 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
26612
26613 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
26614 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
26615 ashrdi3_cvt using SWI48 mode iterator.
26616
26617 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26618
26619 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
26620 (aarch64_<su>abd<mode>_3): Likewise.
26621 (*aarch64_<su>abd<mode>_3): New define_insn.
26622 (<sur>sad<vsi2qi>): New define_expand.
26623 * config/aarch64/iterators.md: Added MAX_OPP attribute.
26624 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
26625 (build_vect_cond_expr): Likewise.
26626
26627 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
26628
26629 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
26630 clobbers outside of accessible_reg_set.
26631 * config/i386/i386.c (ix86_conditional_register_usage):
26632 Disable register sets by clearing corresponding bits in
26633 accessible_reg_set. Do not set corresponding bits in fixed_regs,
26634 call_used_regs and don't clear corresponding reg_names array members.
26635
26636 2019-05-07 Richard Biener <rguenther@suse.de>
26637
26638 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
26639 not specified still compute a comp_vectype for invariant
26640 compares.
26641
26642 2019-05-07 Richard Biener <rguenther@suse.de>
26643
26644 PR tree-optimization/90316
26645 * tree-ssa-pre.c (translate_vuse_through_block): When
26646 same_valid is NULL do not bother to search for a virtual
26647 PHI continuation.
26648 (phi_translate_1): When operands changed we cannot keep
26649 the same value-number so do not bother to ask whether
26650 that's possible from translate_vuse_through_block.
26651
26652 2019-05-07 Martin Liska <mliska@suse.cz>
26653
26654 * bitmap.c (bitmap_register): Come up with
26655 alloc_descriptor_max_uid and assign it for
26656 a new bitmap.
26657 (register_overhead): Use get_descriptor as
26658 a descriptor.
26659 (release_overhead): New.
26660 (bitmap_elem_to_freelist): Call it.
26661 (bitmap_elt_clear_from): Likewise.
26662 (bitmap_obstack_free): Likewise.
26663 (bitmap_move): Sensitively release memory.
26664 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
26665 (bitmap_initialize): Initialize alloc_descriptor to zero.
26666 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
26667
26668 2019-05-07 Richard Biener <rguenther@suse.de>
26669
26670 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
26671 we build a SLP node. Remove max_size and limiting.
26672 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
26673
26674 2019-05-07 Richard Biener <rguenther@suse.de>
26675
26676 PR tree-optimization/90316
26677 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
26678 limit by reference.
26679 (walk_non_aliased_vuses): Take walking limit argument.
26680 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
26681 walking if it is reached instead of just counting.
26682 (get_continuation_for_phi): Likewise.
26683 (walk_non_aliased_vuses): Likewise, instead of leaving counter
26684 limiting to the callback.
26685 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
26686 (vn_reference_lookup_3): Likewise.
26687 (vn_reference_lookup_pieces): Likewise.
26688 (vn_reference_lookup): Likewise.
26689 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
26690 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
26691 (avail_exprs_stack::lookup_avail_expr): Likewise.
26692
26693 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
26694
26695 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
26696 for comparaible types in the second direction even if first one
26697 hits incomparable type.
26698
26699 2019-05-07 Richard Biener <rguenther@suse.de>
26700
26701 PR lto/90369
26702 * lto-wrapper.c (debug_objcopy): Use the original filename
26703 including archive offset for the filename used for -save-temps.
26704
26705 2019-05-07 Li Jia He <helijia@linux.ibm.com>
26706
26707 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
26708 detection.
26709
26710 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
26711 Hongtao Liu <hongtao.liu@intel.com>
26712
26713 PR target/89750
26714 PR target/86444
26715 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
26716 Modified, original implementation isn't correct.
26717
26718 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26719
26720 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
26721 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
26722 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
26723 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
26724 (FRAME_POINTER_REGNUM): Change numbering.
26725 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
26726 (alt_reg_names): Adjust.
26727 (rs6000_conditional_register_usage): Don't mark hard register 64 as
26728 fixed.
26729 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
26730 (DWARF_FRAME_REGISTERS): Delete.
26731 (DWARF2_FRAME_REG_OUT): Fix whitespace.
26732 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
26733 Adjust.
26734 (REG_ALLOC_ORDER): Adjust.
26735 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
26736 (REG_CLASS_CONTENTS): Adjust.
26737 (RETURN_ADDR_RTX): Change comment.
26738 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
26739 instead of 67.
26740 (REGISTER_NAMES): Adjust.
26741 (ADDITIONAL_REGISTER_NAMES): Adjust.
26742 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
26743
26744 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26745
26746 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
26747 Delete.
26748 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
26749 (DWARF_FRAME_REGISTERS): Adjust.
26750 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
26751 Adjust.
26752 (REG_ALLOC_ORDER): Adjust.
26753 (enum reg_class): Delete SPR_REGS.
26754 (REG_CLASS_NAMES): Delete SPR_REGS.
26755 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
26756 (REGISTER_NAMES): Adjust.
26757 (ADDITIONAL_REGISTER_NAMES): Adjust.
26758 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
26759 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
26760 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
26761 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
26762 (htm_spr_regno): Delete.
26763 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
26764 argument.
26765 (rs6000_dbx_register_number): Adjust.
26766
26767 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26768
26769 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
26770
26771 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26772
26773 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
26774 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
26775
26776 2019-05-06 Jakub Jelinek <jakub@redhat.com>
26777
26778 PR tree-optimization/88709
26779 PR tree-optimization/90271
26780 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
26781 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
26782 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
26783 variable.
26784 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
26785 of the store merging group is larger than
26786 PARAM_STORE_MERGING_MAX_SIZE parameter.
26787 (split_group): Add bzero_first argument. If set, always emit first
26788 the first store which must be = {} of the whole area and then for the
26789 rest of the stores consider all zero bytes as paddings.
26790 (imm_store_chain_info::output_merged_store): Check if first store
26791 is = {} of the whole area and if yes, determine which setting of
26792 bzero_first for split_group gives smaller number of stores. Adjust
26793 split_group callers.
26794 (lhs_valid_for_store_merging_p): Allow decls.
26795 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
26796 no elts.
26797 (pass_store_merging::process_store): Likewise.
26798
26799 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
26800
26801 PR target/89424
26802 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
26803 handling of V1TImode.
26804
26805 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
26806
26807 PR target/89221
26808 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
26809 and enable_frame_pointer ...
26810 * configure.ac: ... here. Update help strings for
26811 --enable-frame-pointer.
26812 * configure: Regenerate.
26813 * config/i386/i386-options.c (ix86_option_override_internal): Remove
26814 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
26815 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
26816 (USE_X86_64_FRAME_POINTER): Ditto.
26817
26818 2019-05-06 Martin Liska <mliska@suse.cz>
26819
26820 * config.gcc: Append to target_gtfiles and fix indentation.
26821
26822 2019-05-06 Richard Biener <rguenther@suse.de>
26823
26824 PR tree-optimization/90358
26825 * tree-vect-stmts.c (get_group_load_store_type): Properly
26826 detect unused upper half of load.
26827 (vectorizable_load): Likewise.
26828
26829 2019-05-06 Richard Biener <rguenther@suse.de>
26830
26831 PR tree-optimization/88828
26832 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
26833 (simplify_vector_constructor): ...here. Handle constants in
26834 the constructor.
26835
26836 2019-05-06 Richard Biener <rguenther@suse.de>
26837
26838 PR tree-optimization/90328
26839 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
26840 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
26841 is valid in the loop nest before using it.
26842 (initialize_data_dependence_relation): Adjust.
26843 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
26844 loop as loop-nest to dr_may_alias_p.
26845
26846 2019-05-06 Richard Biener <rguenther@suse.de>
26847
26848 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
26849
26850 2019-05-06 Richard Biener <rguenther@suse.de>
26851
26852 PR tree-optimization/90316
26853 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
26854 compute target on demand.
26855 (get_continuation_for_phi): Remove code walking stmts to
26856 get to a target virtual operand which could end up being
26857 quadratic.
26858
26859 2019-05-06 Martin Liska <mliska@suse.cz>
26860
26861 PR sanitizer/90312
26862 * config/i386/i386-options.c (ix86_option_override_internal): Error only
26863 when -mabi is selected to a non-default version.
26864
26865 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
26866 Martin Liska <mliska@suse.cz>
26867
26868 * Makefile.in: Add lto-dump.texi.
26869 * cgraph.h: Add new functions get_visibility_string and
26870 get_symtab_type_string.
26871 * doc/gcc.texi: Include lto-dump section.
26872 * doc/lto-dump.texi: New file.
26873 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
26874 (parse_dump_option): Factor out this function.
26875 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
26876 (parse_dump_option): Export the function.
26877 * symtab.c (symtab_node::get_visibility_string): New function.
26878 (symtab_node::get_symtab_type_string): Likewise.
26879
26880 2019-05-06 Martin Liska <mliska@suse.cz>
26881
26882 * config/i386/i386-builtins.c: New file.
26883 * config/i386/i386-builtins.h: New file.
26884 * config/i386/i386-expand.c: New file.
26885 * config/i386/i386-expand.h: New file.
26886 * config/i386/i386-features.c: New file.
26887 * config/i386/i386-features.h: New file.
26888 * config/i386/i386-options.c: New file.
26889 * config/i386/i386-options.h: New file.
26890 * config.gcc: Add new files into extra_objs and
26891 target_gtfiles.
26892 * config/i386/i386.c: Split content of the file
26893 into newly introduced files.
26894 * config/i386/i386.h: Declare common variables
26895 and macros.
26896 * config/i386/t-i386: Define dependencies for new files.
26897
26898 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
26899
26900 PR target/89400
26901 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
26902 Restrict 'all' variant to 32-bit configurations.
26903 (unaligned_loadhiu): Likewise.
26904 (unaligned_storehi): Likewise.
26905 (unaligned_storesi): Likewise.
26906 (unaligned_loadhis): Disable when compiling for thumb1.
26907
26908 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
26909
26910 PR tree-optimization/90269
26911 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
26912 Ignore clobbers.
26913
26914 2019-05-03 Martin Liska <mliska@suse.cz>
26915
26916 * hash-map.h: Add is_empty function.
26917 * hash-set.h: Likewise.
26918 * hash-table.h: Likewise.
26919 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
26920 elements () == 0 (and similar usages).
26921 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
26922 * gimplify.c (gimplify_bind_expr): Likewise.
26923 (gimplify_switch_expr): Likewise.
26924 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
26925 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
26926 * postreload-gcse.c (dump_hash_table): Likewise.
26927 (gcse_after_reload_main): Likewise.
26928 * predict.c (combine_predictions_for_bb): Likewise.
26929 * tree-parloops.c (reduction_phi): Likewise.
26930 (separate_decls_in_region): Likewise.
26931 (transform_to_exit_first_loop): Likewise.
26932 (gen_parallel_loop): Likewise.
26933 (gather_scalar_reductions): Likewise.
26934 (try_create_reduction_list): Likewise.
26935 * var-tracking.c (dump_vars): Likewise.
26936 (emit_notes_for_changes): Likewise.
26937 (vt_emit_notes): Likewise.
26938
26939 2019-05-03 Richard Biener <rguenther@suse.de>
26940
26941 PR tree-optimization/90316
26942 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
26943 before running VN.
26944
26945 2019-05-03 Richard Biener <rguenther@suse.de>
26946
26947 * tree-vect-stmts.c (get_group_load_store_type): Avoid
26948 peeling for gaps by loading only lower halves of vectors
26949 if possible.
26950 (vectorizable_load): Likewise.
26951
26952 2019-05-03 Richard Biener <rguenther@suse.de>
26953
26954 PR middle-end/89518
26955 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
26956
26957 2019-05-03 Richard Biener <rguenther@suse.de>
26958
26959 PR middle-end/87314
26960 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
26961 Handle STRING_CST vs DECL or STRING_CST.
26962
26963 2019-05-03 Richard Biener <rguenther@suse.de>
26964
26965 PR tree-optimization/88963
26966 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
26967 vector loads feeding only BIT_FIELD_REFs to component
26968 loads. Rewrite stores fed by CONSTRUCTORs to component
26969 stores.
26970
26971 2019-05-03 Jakub Jelinek <jakub@redhat.com>
26972
26973 * opts.h (finish_options): Remove lang_mask argument.
26974 (print_help, help_option_argument): Declare.
26975 * opts.c (print_help): Remove forward declaration, no longer static.
26976 (finish_options): Remove lang_mask argument, don't call print_help
26977 here.
26978 * opts-global.c (decode_options): Adjust finish_option caller, call
26979 print_help here.
26980
26981 PR tree-optimization/90303
26982 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
26983 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
26984
26985 2019-05-03 Richard Biener <rguenther@suse.de>
26986
26987 PR tree-optimization/89698
26988 * gimple-fold.c (canonicalize_constructor_val): Early out
26989 for constants, handle unfolded INTEGER_CSTs as they appear in
26990 C++ virtual table ctors.
26991
26992 2019-05-03 Richard Biener <rguenther@suse.de>
26993
26994 * passes.c (execute_function_todo): Remove dead code.
26995
26996 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
26997
26998 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
26999 the internal register number, for any "real" register.
27000
27001 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27002
27003 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
27004 correct numbers for TFHAR, TFIAR, TEXASR.
27005
27006 2019-05-02 Richard Biener <rguenther@suse.de>
27007
27008 PR tree-optimization/89653
27009 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
27010 update-address-taken before the pass.
27011 * passes.def (pass_tree_loop_init): Put comment before it.
27012
27013 2019-05-02 Richard Biener <rguenther@suse.de>
27014
27015 PR tree-optimization/89509
27016 * tree-ssa-structalias.c (compute_dependence_clique): Look
27017 at the first subvar when determining whether it is restrict.
27018
27019 2019-05-02 Richard Biener <rguenther@suse.de>
27020
27021 PR tree-optimization/90273
27022 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
27023 useless debug stmts.
27024
27025 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27026
27027 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
27028 ACLE branch.
27029 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
27030 SVE ACLE branch.
27031 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
27032 VEC_COND_EXPR be inserted to emulate a conditional internal function.
27033 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
27034 (vectorizable_reduction): Use the functions above to vectorize in a
27035 fully masked loop codes that don't have a conditional internal
27036 function.
27037
27038 2019-05-02 Martin Liska <mliska@suse.cz>
27039
27040 * cgraphclones.c: Call valid_attribute_p with 1 for
27041 target_clone.
27042 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
27043 it's for target attribute.
27044 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
27045 Add new boolean argument.
27046 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
27047 Likewise.
27048 (ix86_valid_target_attribute_tree): Pass target_clone_attr
27049 to ix86_valid_target_attribute_inner_p.
27050 (ix86_valid_target_attribute_p): Pass flags argument to
27051 ix86_valid_target_attribute_inner_p.
27052 (get_builtin_code_for_version): Use 0 as it's target attribute.
27053
27054 2019-05-02 Martin Liska <mliska@suse.cz>
27055
27056 * gcc.c (process_command): Add dummy file only
27057 if n_infiles == 0.
27058 * opts-global.c (decode_options): Pass lang_mask.
27059 * opts.c (print_help): New function.
27060 (finish_options): Print --help if help_option_argument
27061 is set.
27062 (common_handle_option): Factor out content of OPT__help_
27063 into print_help.
27064 * opts.h (finish_options): Add new argument.
27065
27066 2019-05-02 Martin Liska <mliska@suse.cz>
27067
27068 PR target/88809
27069 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
27070 With -minline-all-stringops use inline expansion using 4B loop.
27071 * doc/invoke.texi: Document the change of
27072 -minline-all-stringops.
27073
27074 2019-05-01 Jeff Law <law@redhat.com>
27075
27076 PR tree-optimization/88797
27077 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
27078 PHI feeds a conditional on the RHS of an assignment.
27079
27080 2019-04-30 Andrew Waterman <andrew@sifive.com>
27081 Jim Wilson <jimw@sifive.com>
27082
27083 * config/riscv/constraints.md (L): New.
27084 * config/riscv/predicates.md (lui_operand): New.
27085 (sfb_alu_operand): New.
27086 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
27087 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
27088 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
27089 * config/riscv/risc.md (type): Add sfb_alu.
27090 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
27091 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
27092 (branch_zero<mode>): Delete.
27093 (mov<mode>cc): New.
27094 (mov<GPR:mode><X:mode>cc): Likewise.
27095 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
27096
27097 2019-04-30 Nathan Sidwell <nathan@acm.org>
27098
27099 * tree.h (MARK_TS_EXP): New.
27100
27101 2019-04-30 Martin Liska <mliska@suse.cz>
27102
27103 * opts.c (enable_warning_as_error): Provide hints
27104 for unknown options.
27105
27106 2019-04-30 Martin Liska <mliska@suse.cz>
27107
27108 PR debug/90288
27109 * doc/invoke.texi: Add missing dash for gas-locview-support
27110 and gno-as-locview-support.
27111
27112 2019-04-30 Jakub Jelinek <jakub@redhat.com>
27113
27114 PR target/89093
27115 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
27116 whitespace at the start of target attribute string.
27117
27118 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27119
27120 PR target/86538
27121 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
27122 Define __ARM_FEATURE_ATOMICS.
27123
27124 2019-04-30 Martin Liska <mliska@suse.cz>
27125
27126 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
27127 into built_in_function enum. Remove code for endp == 2 and
27128 use BUILT_IN_* constants.
27129 (gimple_fold_builtin): Call the function with fcode.
27130
27131 2019-04-30 Martin Liska <mliska@suse.cz>
27132
27133 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
27134 DECL_FUNCTION_CODE into ix86_builtins enum before
27135 the switch statement.
27136
27137 2019-04-30 Jakub Jelinek <jakub@redhat.com>
27138
27139 PR tree-optimization/89475
27140 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
27141 calls.
27142
27143 2019-04-30 Martin Liska <mliska@suse.cz>
27144
27145 PR translation/90274
27146 * opts.c (print_filtered_help): Wrap string in _(...).
27147
27148 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
27149
27150 PR tree-optimization/90240
27151 Revert:
27152 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
27153
27154 PR tree-optimization/90078
27155 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
27156 checks for infinite_cost overflow.
27157
27158 2019-04-29 Jeff Law <law@redhat.com>
27159
27160 * passes.def: Move -Wrestrict pass after copy propagation.
27161
27162 2019-04-29 Maya Rashish <coypu@sdf.org>
27163
27164 * config.gcc (default_gnu_indirect_function): Default to yes
27165 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
27166 sparc*-*-netbsd*, x86_64-*-netbsd*.
27167
27168 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
27169
27170 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
27171 where cond2 is NE_EXPR.
27172 (is_value_included_in): Update comment.
27173
27174 2019-04-29 Richard Biener <rguenther@suse.de>
27175
27176 PR tree-optimization/90278
27177 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
27178 EH on comparison simplification.
27179
27180 2019-04-29 Jason Merrill <jason@redhat.com>
27181
27182 PR c++/82081 - tail call optimization breaks noexcept
27183 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
27184 nothrow function to a might-throw function into a tail call.
27185
27186 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
27187
27188 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
27189 (DDR_INNER_LOOP): Likewise.
27190 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
27191 (initialize_data_dependence_relation): Likewise.
27192 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
27193
27194 2019-04-29 Jakub Jelinek <jakub@redhat.com>
27195
27196 PR rtl-optimization/90257
27197 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
27198 return value.
27199
27200 Revert the revert:
27201 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
27202
27203 PR target/90178
27204 Revert:
27205 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
27206
27207 Revert the revert:
27208 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
27209
27210 Revert:
27211 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
27212
27213 * lra-spills.c (lra_final_code_change): Remove useless move insns.
27214
27215 2019-04-29 Richard Biener <rguenther@suse.de>
27216
27217 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
27218 rhs issue a reset.
27219
27220 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
27221
27222 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
27223 varasm.h, and netbsd-protos.h.
27224
27225 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
27226
27227 PR target/89261
27228 * config/i386/i386-protos.h (ix86_data_alignment): Change
27229 the second argument type to unsigned int.
27230 * config/i386/i386.c (ix86_data_alignment): Change "align"
27231 argument type to unsigned int.
27232
27233 2019-04-27 Martin Liska <mliska@suse.cz>
27234
27235 PR middle-end/90258
27236 * opt-suggestions.c (option_proposer::build_option_suggestions):
27237 When get_valid_option_values returns empty values, add the
27238 misspelling candidate.
27239
27240 2019-04-26 Jim Wilson <jimw@sifive.com>
27241
27242 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
27243 parameter.
27244 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
27245 Pass orig_mode to riscv_build_integer.
27246 (riscv_split_integer): Pass mode to riscv_move_integer.
27247 (riscv_legitimize_const_move): Likewise.
27248 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
27249 promoted_mode. Replace force_reg call with code to load constant into
27250 promoted reg and then subreg it for the store.
27251 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
27252 riscv_move_integer.
27253
27254 2018-04-26 Eugene Sharygin <eush@ispras.ru>
27255
27256 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
27257 corrupt codes.
27258
27259 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
27260
27261 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
27262 commentary about the encoding of precision.
27263
27264 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
27265
27266 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
27267 * config/i386/t-freebsd64: New file.
27268 * config.gcc: Add the t-freebsd64 for multilib support.
27269
27270 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
27271
27272 * doc/extend.texi (vector_size): Add missing comma after @xref.
27273
27274 2019-04-25 Jakub Jelinek <jakub@redhat.com>
27275
27276 * BASE-VER: Set to 10.0.0.
27277
27278 2019-04-25 Richard Biener <rguenther@suse.de>
27279
27280 PR middle-end/89765
27281 * gimplify.c (gimplify_expr): Avoid turning a lvalue
27282 VIEW_CONVERT_EXPR into one operating on an rvalue.
27283
27284 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
27285
27286 PR target/89929
27287 * config/i386/i386.c (feature_priority): Moved to file scope.
27288 (processor_features): Likewise.
27289 (processor_model): Likewise.
27290 (_arch_names_table): Likewise.
27291 (arch_names_table): Likewise.
27292 (_feature_list): Removed.
27293 (feature_list): Likewise.
27294 (_isa_names_table): Moved to file scope. Add priority.
27295 (isa_names_table): Likewise.
27296 (get_builtin_code_for_version): Replace feature_list with
27297 isa_names_table. Update error message for P_ZERO priority.
27298
27299 2019-04-25 Richard Biener <rguenther@suse.de>
27300
27301 * tree-pass.h (make_pass_phi_only_cprop): Remove.
27302 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
27303
27304 2019-04-24 Jeff Law <law@redhat.com>
27305
27306 PR tree-optimization/90037
27307 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
27308 * passes.def: Replace all instance of phi-only cprop with the
27309 lattice propagator. Move propagation pass from after erroneous
27310 path isolation to before erroneous path isolation.
27311 * tree-ssa-phionlycprop.c: Remove.
27312
27313 2019-04-24 Richard Biener <rguenther@suse.de>
27314
27315 PR middle-end/90213
27316 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
27317 by size and BITS_PER_UNIT on poly-wide-ints.
27318
27319 2019-04-25 Richard Biener <rguenther@suse.de>
27320
27321 PR middle-end/90194
27322 * match.pd: Add pattern to simplify view-conversion of an
27323 empty constructor.
27324
27325 2019-04-24 Clement Chigot <clement.chigot@atos.net>
27326
27327 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
27328 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
27329 for Go on 32 bit AIX.
27330 * config/rs6000/aix72.h: Likewise.
27331
27332 2019-04-24 Jakub Jelinek <jakub@redhat.com>
27333
27334 PR target/90193
27335 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
27336 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
27337
27338 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
27339
27340 PR target/89952
27341 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
27342 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
27343 for restored hard frame pointer.
27344 (s390_sched_dependencies_evaluation): Implement new target hook.
27345 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
27346
27347 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
27348
27349 * config/arc/arc-options.def: Fix typos and spelling mistakes.
27350 * config/arc/arc.c (arc_init): Cleanup warning message.
27351 (arc_override_options): Likewise.
27352
27353 2019-04-24 Jakub Jelinek <jakub@redhat.com>
27354
27355 PR target/90187
27356 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
27357 a register if both if_true and if_false are MEMs.
27358
27359 PR tree-optimization/90208
27360 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
27361 after labels of new_bb, not before them.
27362
27363 PR tree-optimization/90211
27364 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
27365 which are not SSA_NAMEs.
27366
27367 2018-04-23 Sudakshina Das <sudi.das@arm.com>
27368
27369 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
27370 AArch64.
27371 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
27372
27373 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
27374
27375 PR rtl-optimization/87979
27376 * modulo-sched.c (sms_schedule): Start ii value "mii" should
27377 not equal zero.
27378
27379 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
27380
27381 PR rtl-optimization/84032
27382 * modulo-sched.c (ps_insn_find_column): Change condition so that
27383 branch will always be the last insn in a row inside partial
27384 schedule.
27385
27386 2019-04-23 Richard Biener <rguenther@suse.de>
27387
27388 PR debug/90131
27389 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
27390 dest_single_pred_p argument.
27391 (remove_forwarder_block): Adjust.
27392 (remove_forwarder_block_with_phi): Likewise.
27393
27394 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27395 Bernd Edlinger <bernd.edlinger@hotmail.de>
27396 Jakub Jelinek <jakub@redhat.com>
27397
27398 PR target/89093
27399 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
27400 if used with general-regs-only.
27401 (arm_conditional_register_usage): Don't add non-general regs if
27402 general-regs-only.
27403 (arm_valid_target_attribute_rec): Handle general-regs-only.
27404 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
27405 general-regs-only.
27406 (TARGET_HARD_FLOAT_SUB): Define.
27407 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
27408 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
27409 (TARGET_REALLY_IWMMXT2): Likewise.
27410 * config/arm/arm.opt: Add -mgeneral-regs-only.
27411 * doc/extend.texi: Document ARM general-regs-only target.
27412 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
27413
27414 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
27415
27416 PR tree-optimization/90078
27417 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
27418 checks for infinite_cost overflow.
27419
27420 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
27421
27422 PR tree-optimization/90021
27423 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
27424 and check univariate against it.
27425 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
27426 * tree-data-ref.c (add_other_self_distances): Pass new argument.
27427
27428 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
27429
27430 PR target/90178
27431 Revert:
27432 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
27433
27434 Revert the revert:
27435 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
27436
27437 Revert:
27438 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
27439
27440 * lra-spills.c (lra_final_code_change): Remove useless move insns.
27441
27442 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
27443
27444 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
27445 names using operand format, rather than hard-wired.
27446 (speculation_barrier): Likewise.
27447
27448 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
27449
27450 PR tree-optimization/88055
27451 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
27452 (gen_one_condition): Use it if !HONOR_NANS.
27453
27454 2019-04-19 Jakub Jelinek <jakub@redhat.com>
27455
27456 PR middle-end/90139
27457 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
27458 assign_temp instead of gen_reg_rtx.
27459
27460 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
27461
27462 PR translation/90118
27463 * config/aarch64/aarch64.c (aarch64_override_options_internal):
27464 Add missing space before %<.
27465
27466 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
27467
27468 PR rtl-optimization/87871
27469 * ira-lives.c (make_object_dead): Don't add conflicts to
27470 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
27471
27472 2019-04-18 Martin Sebor <msebor@redhat.com>
27473
27474 PR middle-end/89797
27475 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
27476 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
27477 assuming type size fits in SHWI.
27478
27479 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
27480
27481 PR ipa/85051
27482 * ipa-inline.c (flatten_function): New parameter UPDATE.
27483 (ipa_inline, early_inliner): Use it.
27484
27485 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
27486
27487 * fold-const.c (int_const_binop): Return early on failure.
27488
27489 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
27490
27491 PR middle-end/85164
27492 * combine.c (force_int_to_mode): Cast the argument rather than
27493 the result of known_alignment.
27494 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
27495
27496 2019-04-18 Richard Biener <rguenther@suse.de>
27497
27498 PR debug/90131
27499 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
27500 out from ...
27501 (remove_forwarder_block): ... here.
27502 (remove_forwarder_block_with_phi): Also move debug stmts here.
27503
27504 2019-04-18 Jakub Jelinek <jakub@redhat.com>
27505
27506 PR translation/79183
27507 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
27508 inform where appropriate.
27509
27510 2019-04-18 Richard Biener <rguenther@suse.de>
27511
27512 * tree.c (get_qualified_type): Put found type variants at the
27513 head of the variant list.
27514
27515 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
27516
27517 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
27518
27519 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
27520
27521 PR target/90125
27522 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
27523 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
27524 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
27525 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
27526 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
27527
27528 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
27529
27530 * ira-conflicts.c (print_allocno_conflicts): Always print something,
27531 even for allocno's with no conflicts.
27532 (print_conflicts): Print an extra newline.
27533
27534 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
27535
27536 * auto-inc-dec.c (attempt_change): Set the alignment of the
27537 temporary memory to that of the original.
27538
27539 2019-04-17 Joao Moreira <jmoreira@suse.de>
27540
27541 * targhooks.c (default_print_patchable_function_entry): Emit
27542 __patchable_function_entries section with writable flags to allow
27543 relocation resolution.
27544
27545 2019-04-17 Jonny Grant <jg@jguk.org>
27546
27547 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
27548
27549 2019-04-17 Jakub Jelinek <jakub@redhat.com>
27550
27551 PR middle-end/90095
27552 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
27553 on lowpart SUBREGs.
27554
27555 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
27556
27557 * config/arc/arc.c (arc_init): Format diagnostic string.
27558 (arc_override_options): Likewise.
27559 (check_if_valid_regno_const): Likewise.
27560 (arc_reorg): Likewise.
27561
27562 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
27563
27564 PR target/17108
27565 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
27566 name.
27567 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
27568 name.
27569 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
27570 (*movdi_update1): Use Pmode.
27571 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
27572 (movdi_<mode>_update_stack): Rename to ...
27573 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
27574 use Pmode.
27575 (*movsi_update1): Use Pmode.
27576 (*movsi_update2): Use Pmode.
27577 (movsi_update): Rename to ...
27578 (movsi_<mode>_update): ... this. Use Pmode.
27579 (movsi_update_stack): Fix condition.
27580 (*movhi_update1): Use Pmode. Fix argument to
27581 avoiding_indexed_address_p.
27582 (*movhi_update2): Ditto.
27583 (*movhi_update3): Ditto.
27584 (*movhi_update4): Ditto.
27585 (*movqi_update1): Ditto.
27586 (*movqi_update2): Ditto.
27587 (*movqi_update3): Ditto.
27588 (*movsf_update1, *movdf_update1): Merge, rename to...
27589 (*mov<mode>_update1): This. Use Pmode. Fix argument to
27590 avoiding_indexed_address_p. Add "size" attribute.
27591 (*movsf_update2, *movdf_update2): Merge, rename to...
27592 (*mov<mode>_update2): This. Ditto.
27593 (*movsf_update3): Use Pmode. Fix argument to
27594 avoiding_indexed_address_p.
27595 (*movsf_update4): Ditto.
27596 (allocate_stack): Simplify condition. Adjust pattern names.
27597
27598 2019-04-17 Jakub Jelinek <jakub@redhat.com>
27599
27600 PR target/89093
27601 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
27602 whitespace at the start of target attribute string.
27603
27604 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
27605
27606 PR target/84369
27607 * config/rs6000/power9.md: Add store forwarding bypass.
27608
27609 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
27610
27611 PR debug/89528
27612 * valtrack.c (dead_debug_insert_temp): Reset debug references
27613 to the return value of a call being removed.
27614
27615 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27616
27617 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
27618 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
27619 implement target hook.
27620 (arc_memory_move_cost): New function.
27621 (TARGET_REGISTER_MOVE_COST): Define.
27622 (TARGET_MEMORY_MOVE_COST): Likewise.
27623 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
27624 (MEMORY_MOVE_COST): Likewise.
27625
27626 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27627
27628 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
27629 (sibcall_value_insn): Likewise.
27630 * config/arc/constraints.md (Rs5): Remove.
27631
27632 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27633
27634 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
27635 for last two fake registers.
27636 (arc_conditional_register_usage): Make sure fake frame and arg
27637 pointer regs are in general regs class.
27638 (FRAME_POINTER_MASK): Remove.
27639 (RETURN_ADDR_MASK): Remove.
27640 (arc_must_save_register): Use hard frame regnum.
27641 (frame_restore_reg): Use hard_frame_pointer_rtx.
27642 (arc_save_callee_saves): Likewise.
27643 (arc_restore_callee_saves): Likewise.
27644 (arc_save_callee_enter): Likewise.
27645 (arc_restore_callee_leave): Likewise.
27646 (arc_save_callee_milli): Likewise.
27647 (arc_eh_return_address_location): Likewise.
27648 (arc_check_multi): Use hard frame regnum.
27649 (arc_can_eliminate): Likewise.
27650 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
27651 for register allocator.
27652 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
27653 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
27654 (FRAME_POINTER_REGNUM): Change it to a fake register.
27655 (HARD_FRAME_POINTER_REGNUM): Defined.
27656 (ARG_POINTER_REGNUM): Change it to a new fake register.
27657 (ELIMINABLE_REGS): Update.
27658 (REGISTER_NAMES): Update names.
27659 * config/arc/arc.md (LP_START): Remove.
27660 (LP_END): Likewise.
27661 (shift_si3_loop): Update pattern.
27662
27663 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27664
27665 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
27666 to avoid delay slot scheduling.
27667 (arc_must_save_register): Don't save SP.
27668 * config/arc/arc.md (stack_tie): Remove.
27669 (UNSPEC_ARC_STKTIE): Likewise.
27670
27671 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
27672 Shiva Chen <shiva0217@gmail.com>
27673
27674 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
27675 code gen with large shift amount.
27676
27677 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
27678
27679 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
27680 subreg.
27681
27682 2019-04-16 Jakub Jelinek <jakub@redhat.com>
27683
27684 PR target/90096
27685 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
27686 print -m64/-mx32/-m32 if it is true.
27687 (ix86_debug_options, ix86_function_specific_print): Pass true as
27688 ADD_ABI_P to ix86_target_string.
27689 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
27690 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
27691 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
27692
27693 PR rtl-optimization/90082
27694 * dce.c (can_delete_call): New function.
27695 (deletable_insn_p, mark_insn): Use it.
27696
27697 PR tree-optimization/90090
27698 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
27699 throw internally.
27700 (is_division_by_square): Likewise. Formatting fix.
27701
27702 2019-04-16 Richard Biener <rguenther@suse.de>
27703
27704 PR tree-optimization/56049
27705 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
27706 equality check if alias-set zero will prevail.
27707
27708 2019-04-15 Jeff Law <law@redhat.com>
27709
27710 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
27711 size and alignment as unsigned.
27712
27713 2019-04-15 Richard Biener <rguenther@suse.de>
27714
27715 PR debug/90074
27716 * tree-loop-distribution.c (destroy_loop): Preserve correct
27717 debug info.
27718
27719 2019-04-15 Richard Biener <rguenther@suse.de>
27720
27721 PR tree-optimization/90071
27722 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
27723 abnormal operands from def stmts.
27724
27725 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
27726
27727 PR rtl-optimization/89794
27728 * combine.c (count_auto_inc): New function.
27729 (try_combine): Count how many auto_inc expressions there were in the
27730 original instructions. Ensure we have the same number in the new
27731 instructions. Remove the code that tried to ensure auto_inc side
27732 effects on i1 and i0 are not lost.
27733
27734 2019-04-15 Richard Biener <rguenther@suse.de>
27735
27736 PR ipa/88936
27737 * tree.h (auto_var_p): Declare.
27738 * tree.c (auto_var_p): New function, split out from ...
27739 (auto_var_in_fn_p): ... here.
27740 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
27741 member.
27742 (new_var_info): Initialize it.
27743 (set_uids_in_ptset): Also set the shadow variable uid if required.
27744 (ipa_pta_execute): Postprocess points-to solutions assigning
27745 shadow variable uids for locals that may reach their containing
27746 function recursively.
27747 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
27748 assert but instead check whether the points-to solution is
27749 a singleton.
27750
27751 2019-04-15 Martin Jambor <mjambor@suse.cz>
27752
27753 PR ipa/pr89693
27754 * cgraph.c (clone_of_p): Loop over clone chain for each step in
27755 the thunk chain.
27756
27757 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
27758
27759 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
27760
27761 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
27762 Kito Cheng <kito.cheng@gmail.com>
27763 Shiva Chen <shiva0217@gmail.com>
27764
27765 * config/nds32/nds32-md-auxiliary.c
27766 (nds32_legitimize_pic_address): Use new PIC pattern.
27767 (nds32_legitimize_tls_address): Use new TLS pattern.
27768 (nds32_output_symrel): New.
27769 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
27770 (nds32_alloc_relax_group_id): Ditto.
27771 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
27772 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
27773 relax_group_id.
27774 (nds32_group_tls_insn): Ditto.
27775 (nds32_group_float_insns): Ditto.
27776 * config/nds32/nds32.md (tls_le): New.
27777 (sym_got): Ditto.
27778
27779 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
27780
27781 * configure: Add nds32 target for dwarf2 debug_line checking.
27782 * configure.ac: Regenerated.
27783
27784 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
27785
27786 PR lto/89358
27787 * ipa-devirt.c (skip_in_fields_list_p): New.
27788 (odr_types_equivalent_p): Use it.
27789
27790 2019-04-13 Jakub Jelinek <jakub@redhat.com>
27791
27792 PR target/89093
27793 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
27794 instead of strncmp when checking for thumb and arm. Formatting fixes.
27795
27796 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
27797
27798 * doc/install.texi: Document --with-target-system-zlib.
27799
27800 2019-04-12 Martin Sebor <msebor@redhat.com>
27801
27802 PR c/88383
27803 PR c/89288
27804 PR c/89798
27805 PR c/89797
27806 * targhooks.c (default_vector_alignment): Avoid assuming
27807 argument fits in SHWI.
27808 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
27809 a shift expression.
27810 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
27811
27812 2019-04-12 Jakub Jelinek <jakub@redhat.com>
27813
27814 PR rtl-optimization/89965
27815 * dce.c: Include rtl-iter.h.
27816 (struct check_argument_load_data): New type.
27817 (check_argument_load): New function.
27818 (find_call_stack_args): Check for loads from stack slots still tracked
27819 in sp_bytes and punt if any is found.
27820
27821 * config/mips/loongson-mmiintrin.h: Fix up #error message.
27822
27823 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
27824
27825 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
27826 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
27827
27828 2019-04-12 Martin Liska <mliska@suse.cz>
27829
27830 PR middle-end/89970
27831 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
27832 in error message.
27833 (separate_attrs): Handle multiple 'default's.
27834 (expand_target_clones): Rework error handling code.
27835
27836 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
27837
27838 PR target/87532
27839 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
27840 mode of vector rather than mode of destination for move instruction.
27841 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
27842 Use QI inner mode with V16QI vector mode.
27843
27844 2019-04-12 Jakub Jelinek <jakub@redhat.com>
27845
27846 PR target/52726
27847 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
27848 "invalid %%t operand" in output_operand_lossage message.
27849
27850 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
27851
27852 * config/s390/predicates.md (permute_pattern_operand): New
27853 predicate.
27854 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
27855 operand for the permute pattern.
27856 ("*vec_perm<mode>"): New insn definition.
27857 ("bswap<mode>"): Generate the permute pattern operand in the
27858 expander and perform the operand reloads for pre arch13 level
27859 already.
27860 ("*bswap<mode>_emu"): Rename to ...
27861 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
27862 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
27863 Add the USE operand for the permute pattern.
27864 ("*vec_set_bswap_vec<mode>"): Likewise.
27865
27866 2019-04-12 Jakub Jelinek <jakub@redhat.com>
27867
27868 PR c/89946
27869 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
27870 and gcc_unreachable if it fails, just call tree_to_uhwi which
27871 verifies that too. Test TREE_CHAIN instead of list_length > 1.
27872 Start warning message with a lower-case letter. Formatting fixes.
27873
27874 PR rtl-optimization/90026
27875 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
27876 successors, look for BARRIERs inside of the whole BB_FOOTER chain
27877 rather than just at the start of it. If e->src BB_FOOTER is not NULL
27878 in cfglayout mode, use emit_barrier_after_bb.
27879
27880 2018-04-11 Steve Ellcey <sellcey@marvell.com>
27881
27882 PR rtl-optimization/87763
27883 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
27884 New Instruction.
27885
27886 2019-04-11 Tom de Vries <tdevries@suse.de>
27887
27888 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
27889 max macro using statement expression.
27890
27891 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
27892
27893 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
27894 * xcoffout.c (xcoff_private_rodata_section_name): Define.
27895 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
27896 read_only_private_data_section using xcoff_private_rodata_section_name.
27897 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
27898
27899 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
27900
27901 PR target/90016
27902 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
27903
27904 2019-04-11 Jakub Jelinek <jakub@redhat.com>
27905
27906 PR rtl-optimization/89965
27907 * dce.c (sp_based_mem_offset): New function.
27908 (find_call_stack_args): Use sp_based_mem_offset.
27909
27910 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
27911
27912 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
27913
27914 2019-04-11 Richard Biener <rguenther@suse.de>
27915
27916 PR tree-optimization/90020
27917 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
27918 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
27919 * tree-ssa-pre.c (compute_avail): Use it to not put
27920 possibly trapping references after a call that might not
27921 return into EXP_GEN.
27922 * gcse.c (compute_hash_table_work): Do not elide
27923 marking a block containing a call if the call might not
27924 return.
27925
27926 2019-04-11 Richard Biener <rguenther@suse.de>
27927
27928 PR tree-optimization/90018
27929 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
27930 Test both SLP and interleaving variants.
27931
27932 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
27933
27934 * config/s390/8561.md: New file.
27935 * config/s390/driver-native.c (s390_host_detect_local_cpu):
27936 Add arch13 cpu model.
27937 * config/s390/s390-opts.h (enum processor_type): Likewise.
27938 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
27939 (s390_get_unit_mask): Likewise.
27940 (s390_is_fpd): Likewise.
27941 (s390_is_fxd): Likewise.
27942 * config/s390/s390.h (s390_tune_attr): Likewise.
27943 * config/s390/s390.md: Include arch13 pipeline description.
27944 * config/s390/s390.opt: Add arch13.
27945
27946 2018-04-10 Steve Ellcey <sellcey@marvell.com>
27947
27948 PR rtl-optimization/87763
27949 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
27950 New prototype.
27951 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
27952 New function.
27953 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
27954 New instruction.
27955 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
27956 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
27957 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
27958 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
27959
27960 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
27961
27962 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
27963 "Although" in -fipa-icf documentation.
27964
27965 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
27966 of using multiple -g options.
27967
27968 2019-04-10 Martin Liska <mliska@suse.cz>
27969
27970 PR gcov-profile/89959
27971 * doc/gcov.texi: Make documentation of -x option
27972 more precise.
27973
27974 2019-04-10 Richard Biener <rguenther@suse.de>
27975
27976 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
27977 member.
27978 (DR_GROUP_SAME_DR_STMT): Remove.
27979 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
27980 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
27981 replace with assert.
27982 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
27983 (vect_record_grouped_load_vectors): Remove unreachable code.
27984
27985 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
27986
27987 PR target/90016
27988 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
27989 obsolete reference to N.
27990
27991 2019-04-10 Jakub Jelinek <jakub@redhat.com>
27992
27993 PR middle-end/90025
27994 * expr.c (store_expr): Set properly size on the MEM passed to
27995 clear_storage.
27996
27997 PR c++/90010
27998 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
27999 with strlen in between hostsz-3 and hostsz-1 inclusive when no
28000 translation is needed, and when translation is needed, only append
28001 ... if the string length is hostsz or more bytes long. Avoid using
28002 strncpy or strcat.
28003
28004 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
28005
28006 PR target/90024
28007 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
28008 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
28009 into three.
28010 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
28011 differences directly.
28012 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
28013
28014 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28015
28016 PR translation/90011
28017 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
28018 from diagnostics.
28019 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
28020 diagnostics.
28021 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
28022 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
28023 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
28024 trailing space from -gsplit-dwarf diagnostics.
28025
28026 PR tree-optimization/89998
28027 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
28028 instead of integer_type_node if possible, don't add ranges if return
28029 type is not compatible with int.
28030 * gimple-fold.c (gimple_fold_builtin_sprintf,
28031 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
28032 integer_type_node.
28033
28034 2019-04-09 Martin Liska <mliska@suse.cz>
28035
28036 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
28037 * doc/install.texi: Document the new config.
28038
28039 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
28040
28041 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
28042 use gimple_expr_type for load and store calls. Skip over the
28043 condition argument in a conditional internal function.
28044 Protect use of TREE_INT_CST_LOW.
28045
28046 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28047
28048 PR target/90015
28049 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
28050 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
28051 trailing period from it too.
28052
28053 2019-04-08 wu yuan <wuyuan5@huawei.com>
28054
28055 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
28056 * config/aarch64/aarch64.md: Add "tsv110.md".
28057 * config/aarch64/tsv110.md: New file.
28058
28059 2019-04-08 Richard Biener <rguenther@suse.de>
28060
28061 PR tree-optimization/90006
28062 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
28063 calls like lrint.
28064
28065 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
28066
28067 PR target/83033
28068 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
28069 construction.
28070 (fma_root_node): Likewise.
28071 (func_fma_steering): Likewise.
28072
28073 2019-04-08 Jakub Jelinek <jakub@redhat.com>
28074
28075 PR rtl-optimization/89865
28076 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
28077
28078 PR rtl-optimization/89865
28079 * config/i386/i386.md
28080 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
28081 numbers not to clash with the additional operands[4].
28082 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
28083 with extra register copy in the middle.
28084
28085 2019-04-08 Martin Liska <mliska@suse.cz>
28086
28087 PR gcov-profile/89961
28088 * doc/gcov.texi: Document data_file.
28089 * gcov.c (generate_results): Add data_info into JSON output.
28090
28091 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
28092
28093 PR tree-optimization/89725
28094 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
28095 loop's chrec as invariant symbol.
28096 * tree-chrec.h (chrec_contains_symbols): New parameter.
28097 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
28098 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
28099 function of loops not in DDR's loop_nest.
28100 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
28101
28102 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
28103
28104 PR target/89623
28105 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
28106 Mask.
28107
28108 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
28109
28110 PR target/89945
28111 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
28112 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
28113
28114 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
28115
28116 * sched-deps.c (sched_macro_fuse_insns): Check return value of
28117 targetm.fixed_condition_code_regs.
28118
28119 2019-04-05 Richard Biener <rguenther@suse.de>
28120
28121 PR debug/89892
28122 PR debug/89905
28123 * tree-cfgcleanup.c (remove_forwarder_block): Always move
28124 debug bind stmts but reset them if they are not valid at the
28125 destination.
28126
28127 2019-04-05 Martin Liska <mliska@suse.cz>
28128
28129 PR translation/89936
28130 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
28131 order to wrap keywords or arguments.
28132 * collect2.c (main): Likewise.
28133 (scan_prog_file): Likewise.
28134 (scan_libraries): Likewise.
28135 * common/config/riscv/riscv-common.c
28136 (riscv_subset_list::parsing_subset_version): Likewise.
28137 (riscv_subset_list::parse_std_ext): Likewise.
28138 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28139 Likewise.
28140 * config/arm/arm.c (arm_option_override): Likewise.
28141 * config/cris/cris.c (cris_print_operand): Likewise.
28142 * config/darwin-c.c (darwin_pragma_options): Likewise.
28143 (darwin_pragma_unused): Likewise.
28144 (darwin_pragma_ms_struct): Likewise.
28145 * config/ft32/ft32.c (ft32_print_operand): Likewise.
28146 * config/i386/i386.c (print_reg): Likewise.
28147 (ix86_print_operand): Likewise.
28148 * config/i386/xm-djgpp.h: Likewise.
28149 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
28150 * config/m32c/m32c.c (m32c_option_override): Likewise.
28151 * config/msp430/msp430.c (msp430_option_override): Likewise.
28152 * config/nds32/nds32.c (nds32_option_override): Likewise.
28153 * config/nvptx/mkoffload.c (main): Likewise.
28154 * config/rx/rx.c (rx_print_operand): Likewise.
28155 (valid_psw_flag): Likewise.
28156 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
28157 (vms_pragma_nomember_alignment): Likewise.
28158 (vms_pragma_extern_model): Likewise.
28159 * lto-wrapper.c (compile_offload_image): Likewise.
28160 * omp-offload.c (oacc_parse_default_dims): Likewise.
28161 * symtab.c (symtab_node::verify_base): Likewise.
28162 * tlink.c (recompile_files): Likewise.
28163 (start_tweaking): Likewise.
28164 * tree-profile.c (parse_profile_filter): Likewise.
28165
28166 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
28167
28168 PR tree-optimization/89956
28169 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
28170 multiple negates of the same value.
28171
28172 2019-04-04 Martin Sebor <msebor@redhat.com>
28173
28174 PR middle-end/89957
28175 PR middle-end/89911
28176 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
28177 have the same precision since the function crashes otherwise.
28178 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
28179 has non-zero arguments.
28180
28181 2019-04-04 Martin Sebor <msebor@redhat.com>
28182
28183 PR middle-end/89934
28184 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
28185 out if the number of arguments is less than expected.
28186
28187 2019-04-04 Jeff Law <law@redhat.com>
28188
28189 PR rtl-optimization/89399
28190 * ree.c (combine_set_extension): Use single_set rather than
28191 digging into PATTERN for items on the candidate list.
28192 (combine_reaching_defs): Likewise.
28193
28194 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
28195
28196 PR rtl-optimization/46590
28197 * loop-invariant.c (find_defs): Move df_remove_problem and
28198 df_process_deferred_rescans to move_invariants.
28199 Move df_live_add_problem and df_live_set_all_dirty calls
28200 to move_invariants.
28201 (move_invariants): Likewise.
28202 (move_loop_invariants): Likewise, making the df_live calls
28203 conditional on -O. Remove the problem again if we added it
28204 locally.
28205
28206 2019-04-03 qing zhao <qing.zhao@oracle.com>
28207
28208 PR tree-optimization/89730
28209 * ipa-inline.c (can_inline_edge_p): Delete the checking for
28210 -flive-patching=inline-only-static.
28211 (can_inline_edge_by_limits_p): Add the checking for
28212 -flive-patching=inline-only-static and grant always_inline
28213 even when -flive-patching=inline-only-static is specified.
28214
28215 2019-04-03 Jeff Law <law@redhat.com>
28216
28217 PR rtl-optimization/81025
28218 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
28219
28220 2019-04-03 Richard Biener <rguenther@suse.de>
28221
28222 PR tree-optimization/84101
28223 * tree-vect-stmts.c: Include explow.h for hard_function_value,
28224 regs.h for hard_regno_nregs.
28225 (cfun_returns): New helper.
28226 (vect_model_store_cost): When vectorizing a store to a decl
28227 we return and the function ABI returns in a multi-reg location
28228 account for the possible spilling that will happen.
28229
28230 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
28231
28232 * config/s390/s390.c (s390_legitimate_address_p): Reject long
28233 displacement addresses for vector mode operands.
28234
28235 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
28236
28237 * config/arc/arc.c (GMASK_LEN): Define.
28238 (arc_restore_callee_saves): Restore first blink when
28239 !optimize_size.
28240
28241 2019-04-03 Sudakshina Das <sudi.das@arm.com>
28242
28243 * doc/extend.texi: Add deprecated comment on sign-return-address
28244 function attribute and add mbranch-protection.
28245 * doc/invoke.texi: Add bti to the options for mbranch-protection.
28246
28247 2019-04-03 Richard Biener <rguenther@suse.de>
28248
28249 PR lto/89896
28250 * lto-wrapper.c (run_gcc): Avoid implicit rules making
28251 the all target phony.
28252
28253 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
28254
28255 PR target/89902
28256 PR target/89903
28257 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
28258 Return false for variable DImode shifts.
28259 (dimode_scalar_chain::compute_convert_gain): Do not handle
28260 register count operand in variable DImode shifts.
28261 (dimode_scalar_chain::make_vector_copies): Remove support to copy
28262 count argument of a variable shift instruction to a vector register.
28263 (dimode_scalar_chain::convert_reg): Remove support to convert
28264 count argument of a variable shift instruction.
28265
28266 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
28267
28268 PR rtl-optimization/84206
28269 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
28270 iterating over loop headers.
28271
28272 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
28273
28274 PR rtl-optimization/85876
28275 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
28276 beyond the original fence.
28277
28278 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
28279
28280 * config.gcc: Mark spu* targets as deprecated/obsolete.
28281
28282 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28283
28284 * config/s390/s390-builtin-types.def: New builtin function type
28285 definitions. Remove unused types.
28286 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
28287 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
28288 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
28289 overloaded builtins.
28290 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
28291 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
28292 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
28293 (vec_double, vec_signed, vec_unsigned): Define to use the new
28294 overloaded builtins.
28295 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
28296 Remove expanders.
28297
28298 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28299
28300 * config/s390/s390-builtin-types.def: New builtin function type
28301 definitions.
28302 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
28303 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
28304 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
28305 (s390_vstrszh, s390_vstrszf): New low-level builtins.
28306 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
28307 constant definitions.
28308 * config/s390/vecintrin.h (vec_search_string_cc)
28309 (vec_search_string_until_zero_cc): New builtin name definitions.
28310 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
28311 expanders.
28312 ("vec_vstrs<mode>"): New insn definition.
28313
28314 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28315
28316 * config/s390/s390-builtin-types.def: Add new builtin function
28317 types.
28318 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
28319 New overloaded builtins.
28320 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
28321 s390_vsrd.
28322 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
28323 (UNSPEC_VEC_SLDBYTE): ... this.
28324 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
28325 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
28326 definitions.
28327 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
28328 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
28329 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
28330
28331 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28332
28333 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
28334 New insn definition.
28335 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
28336 * config/s390/vector.md (V_HW_HSD): ... here.
28337
28338 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28339
28340 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
28341 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
28342 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
28343 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
28344 New insn definitions.
28345
28346 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28347
28348 * config/s390/s390-builtin-types.def: Add new builtin function type.
28349 * config/s390/s390-builtins.def: Add overloaded builtin
28350 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
28351 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
28352 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
28353 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
28354 ("eltswap<mode>"): New expander.
28355 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
28356 insn definitions.
28357
28358 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28359
28360 * config/s390/s390-builtin-types.def: Add new builtin function types.
28361 * config/s390/s390-builtins.def: Add overloaded builtin
28362 s390_vec_revb. Add low-level builtins for vlbr and vstbr
28363 instructions.
28364 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
28365 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
28366 ("bswap<mode>"): New expander.
28367 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
28368
28369 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28370
28371 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
28372 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
28373 vector builtin version number in __VEC__.
28374
28375 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28376
28377 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
28378 iterators.
28379 (SFSI): New mode attribute.
28380 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
28381 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
28382 rename to ...
28383 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
28384 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
28385 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
28386 ("floatsi<mode>2"): Add wcefb instruction.
28387
28388 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28389
28390 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
28391 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
28392 mode iterators.
28393 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
28394 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
28395 support 32 bit fp-int conversions. Rename to ...
28396 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
28397 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
28398 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
28399 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
28400 ... to these.
28401
28402 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28403
28404 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
28405 if-then-else constructs if we can use the select instruction.
28406 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
28407
28408 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28409
28410 * config/s390/s390.md ("*popcountdi_arch13_cc")
28411 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
28412 definition.
28413 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
28414 Append _z196 to make it ...
28415 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
28416 ("popcounthi2_z196"): ... this.
28417 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
28418 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
28419
28420 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28421
28422 * config/s390/s390.c (s390_canonicalize_comparison): Convert
28423 certain compares for arch13 in order to make use of the condition
28424 code result produced by the new instructions.
28425 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
28426 nxrk, and nxgrk instruction patterns.
28427 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
28428 (inv_no): Add new code iterator together with some attributes.
28429 ("*andc_split_<mode>"): Disable splitter for arch13.
28430 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
28431 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
28432 ("*<ANDOR:bitops_name>c<GPR:mode>")
28433 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
28434 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
28435 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
28436 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
28437
28438 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28439
28440 * common/config/s390/s390-common.c (processor_flags_table): New
28441 entry for arch13.
28442 * config.gcc: Support arch13 with the --with-arch= configure flag.
28443 * config/s390/driver-native.c (s390_host_detect_local_cpu):
28444 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
28445 * config/s390/s390.c (s390_get_sched_attrmask)
28446 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
28447 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
28448 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
28449 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
28450 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
28451 definitions.
28452 * config/s390/s390.opt: Support arch13 as processor type in
28453 command line options.
28454
28455 2019-04-02 Martin Liska <mliska@suse.cz>
28456
28457 PR translation/89912
28458 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
28459 Fix param description of graphite-max-arrays-per-scop.
28460
28461 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
28462
28463 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
28464 (ASAN_CC1_SPEC): Use it in 64-bit mode.
28465 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
28466
28467 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
28468
28469 PR rtl-optimization/85412
28470 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
28471 sel_sched_region_1, not after.
28472
28473 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
28474
28475 PR rtl-optimization/86928
28476 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
28477 compute_live if necessary.
28478 (sel_redirect_edge_and_branch): Likewise.
28479
28480 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
28481
28482 PR rtl-optimization/89865
28483 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
28484 register if it is a part of small class.
28485
28486 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
28487
28488 PR rtl-optimization/87273
28489 * sel-sched-ir.c (merge_fences): Remove assert.
28490
28491 2019-04-01 Richard Biener <rguenther@suse.de>
28492
28493 PR tree-optimization/46590
28494 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
28495 (dom_walker::m_reachability): Add in place of...
28496 (dom_walker::m_skip_unreachable_blocks): ...this.
28497 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
28498 Move complex initialization ...
28499 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
28500 lazily and initialize edge flags on each invocation.
28501 (dom_walker::bb_reachable): Use m_reachability.
28502
28503 2019-04-01 Martin Liska <mliska@suse.cz>
28504
28505 PR driver/89861
28506 * opt-suggestions.c (option_proposer::build_option_suggestions):
28507 Add variant without any argument in order to provide better
28508 hints.
28509
28510 2019-04-01 Richard Biener <rguenther@suse.de>
28511
28512 PR c/71598
28513 * gimple.c: Include langhooks.h.
28514 (gimple_get_alias_set): Treat enumeral types as the underlying
28515 integer type.
28516
28517 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
28518 Eric Botcazou <ebotcazou@adacore.com>
28519
28520 PR rtl-optimization/89862
28521 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
28522 that operates on the full registers for WORD_REGISTER_OPERATIONS
28523 architectures.
28524
28525 2019-03-29 Jim Wilson <jimw@sifive.com>
28526
28527 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
28528 Clear MASK_RVC and then set if C subset supported.
28529
28530 2019-03-29 Jakub Jelinek <jakub@redhat.com>
28531
28532 PR c/89872
28533 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
28534 non-addressable complit into its initializer if it is volatile.
28535
28536 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
28537
28538 * opts-common.c (integral_argument): Set errno properly in one case.
28539
28540 2019-03-29 Martin Liska <mliska@suse.cz>
28541
28542 * doc/invoke.texi: Remove -Wchkp from documentation.
28543
28544 2019-03-29 Martin Liska <mliska@suse.cz>
28545
28546 * dbgcnt.c (print_limit_reach): New function.
28547 (dbg_cnt): Use it.
28548
28549 2019-03-29 Martin Liska <mliska@suse.cz>
28550
28551 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
28552 (dbg_cnt_process_opt): Parse first tokens aas
28553 dbg_cnt_process_single_pair is also using strtok.
28554
28555 2019-03-29 Jakub Jelinek <jakub@redhat.com>
28556
28557 PR rtl-optimization/87485
28558 * function.c (expand_function_end): Move stack_protect_epilogue
28559 before loading of return value into hard register(s).
28560
28561 2019-03-28 Jakub Jelinek <jakub@redhat.com>
28562
28563 PR middle-end/89621
28564 * tree-inline.h (struct copy_body_data): Add
28565 dont_remap_vla_if_no_change flag.
28566 * tree-inline.c (remap_type_3, remap_type_2): New functions.
28567 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
28568 and remap_type_2 returns false.
28569 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
28570 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
28571 only from where it is copied to nested contexts.
28572
28573 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
28574
28575 PR target/89865
28576 * config/i386/i386.md (RMW operation with LEA peephole):
28577 Use LEAMODE mode attribute instead of SWI mode iterator for
28578 LEA pattern.
28579
28580 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
28581
28582 PR target/89848
28583 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
28584 Also process XEXP (src, 0) of a shift insn.
28585
28586 2019-03-28 David Malcolm <dmalcolm@redhat.com>
28587
28588 PR middle-end/89725
28589 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
28590 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
28591
28592 2019-03-28 Jakub Jelinek <jakub@redhat.com>
28593
28594 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
28595 test.
28596 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
28597 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
28598 immediately after first one with df_analyze in between, but rather
28599 process all bbs, queueing ones that need second pass in a worklist,
28600 df_analyze, process queued debug insn changes and if second pass is
28601 needed, process bbs from worklist, df_analyze, process queued debug
28602 insns again.
28603
28604 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
28605 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
28606 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
28607
28608 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
28609
28610 PR c/79022
28611 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
28612 definition.
28613
28614 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
28615
28616 PR target/85667
28617 * config/i386/i386.c (ix86_function_value_1): Call the newly added
28618 function for 32-bit MS_ABI.
28619 (function_value_ms_32): New function.
28620
28621 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
28622
28623 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
28624 (movdi): Call gen_movdi_symbol_save_scc.
28625 (gen_movdi_symbol_save_scc): New insn and split.
28626
28627 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
28628
28629 PR rtl-optimization/89313
28630 * function.c (matching_constraint_num): New static function.
28631 (match_asm_constraints_1): Use it. Fixup white space and comment.
28632 Don't replace inputs with non-matching constraints which conflict
28633 with early clobber outputs.
28634
28635 2019-03-27 Jeff Law <law@redhat.com>
28636
28637 PR rtl-optimization/87761
28638 PR rtl-optimization/89826
28639 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
28640 slightly later.
28641 (pass_cprop_hardreg::execute): Call df_analyze after adding the
28642 note problem to get REG_DEAD/REG_UNUSED notes updated.
28643
28644 2019-03-27 Richard Biener <rguenther@suse.de>
28645
28646 PR tree-optimization/89463
28647 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
28648 queue edges to remove.
28649 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
28650 dead stmts. Delay edge removal until PHIs are removed to
28651 make debug-stmt creation not confused by seemingly degenerate
28652 PHIs.
28653
28654 2019-03-27 Alan Modra <amodra@gmail.com>
28655
28656 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
28657 throughout file.
28658 * config/rs6000/darwin.h: Likewise.
28659 * config/rs6000/rs6000.c: Likewise.
28660
28661 2019-03-27 Alan Modra <amodra@gmail.com>
28662
28663 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
28664 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
28665
28666 2019-03-26 Andrew Waterman <andrew@sifive.com>
28667 Jim Wilson <jimw@sifive.com>
28668
28669 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
28670 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
28671 (generic_idivdi, generic_fmul_single, generic_fmul_double)
28672 (generic_fdiv, generic_fsqrt): Add check for generic tune.
28673 (generic_alu): Add auipc to type list.
28674 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
28675 (riscv_microarchitecture): Declare.
28676 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
28677 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
28678 field.
28679 (riscv_microarchitecture): New.
28680 (sifive_7_tune_info): New.
28681 (riscv_cpu_info_table): Add microarchitecture value for rocket and
28682 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
28683 entries.
28684 (riscv_store_data_bypass_p): New.
28685 (riscv_option_override): Set riscv_microarchitecture from
28686 cpu->microarchitecture.
28687 * config/riscv/riscv.md: Include sifive-7.md.
28688 (type): Add auipc.
28689 (tune): New.
28690 (auipc<mode>): Change type to auipc.
28691 (restore_stack_nonlocal): New.
28692 * config/riscv/sifive-7.md: New.
28693 * doc/invoke.texi (RISC-V Options): Update mtune docs.
28694
28695 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
28696
28697 PR target/89827
28698 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
28699 Also process XEXP (src, 0) of a shift insn.
28700
28701 2019-03-26 Richard Biener <rguenther@suse.de>
28702
28703 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
28704 (copy_debug_stmt): Likewise.
28705 (expand_call_inline): Likewise.
28706 (copy_bb): Avoid redundant lookup & set of gimple_block.
28707 * gimple-low.c (lower_gimple_return): Likewise.
28708 (lower_builtin_setjmp): Likewise.
28709
28710 2019-03-26 Jakub Jelinek <jakub@redhat.com>
28711
28712 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
28713 is constant 0, turn into static const data member initialized to false.
28714 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
28715 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
28716
28717 2019-03-26 Jason Merrill <jason@redhat.com>
28718 Jakub Jelinek <jakub@redhat.com>
28719
28720 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
28721 method.
28722 (mem_alloc_description::release_object_overhead): Fix comment typos.
28723 * hash-table.h (hash_table::~hash_table): Call
28724 release_instance_overhead only if m_entries is non-NULL, otherwise
28725 call unregister_descriptor.
28726
28727 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
28728
28729 PR tree-optimization/81740
28730 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28731 In case of outer loop vectorization, check for backward dependence
28732 at the inner loop if outer loop dependence is reversed.
28733
28734 2019-03-26 Alan Modra <amodra@gmail.com>
28735
28736 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
28737 rs6000_vector_mem init. Correct wI and wJ comment.
28738
28739 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
28740
28741 PR rtl-optimization/88347
28742 PR rtl-optimization/88423
28743 * sched-deps.c (sched_analyze_insn): Take into account that for
28744 tablejumps the barrier appears after a label and a jump_table_data.
28745
28746 2019-03-25 Martin Sebor <msebor@redhat.com>
28747
28748 PR c/89812
28749 * c-common.c (check_user_alignment): Rename local. Correct maximum
28750 alignment in diagnostic. Avoid assuming argument fits in SHWI,
28751 convert it to UHWI when it fits.
28752
28753 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
28754
28755 PR debug/86964
28756 * dwarf2out.c (premark_used_variables): New function.
28757 (prune_unused_types_walk): Do not mark not premarked external
28758 variables.
28759 (prune_unused_types): Call premark_used_variables.
28760
28761 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
28762
28763 PR rtl-optimization/89676
28764 * lra-constraints.c (curr_insn_transform): Do match reload for
28765 early clobbers when the match was successful only for different
28766 registers.
28767
28768 2019-03-25 Martin Sebor <msebor@redhat.com>
28769
28770 * doc/extend.texi (Common Type Attributes): Document vector_size.
28771 (Common Variable Attributes): Mention size constraint. Correct
28772 quoting and typos.
28773 (Vector Extensions): Use @dfn when defining bas type. Clarify
28774 base type and size constraints.
28775
28776 2019-03-25 Richard Biener <rguenther@suse.de>
28777
28778 PR tree-optimization/89789
28779 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
28780 changes from non-undefined back to undefined.
28781
28782 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
28783
28784 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
28785 heap string and a gc string, but since this variable is unknown to
28786 ggc the gc string might get reused and corrupted. Fixed by always
28787 using a heap string.
28788
28789 2019-03-25 Richard Biener <rguenther@suse.de>
28790
28791 PR tree-optimization/89779
28792 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
28793 to remove IV defs, delay actual removal.
28794 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
28795 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
28796 very end, properly also reset loop control IV information.
28797
28798 2019-03-25 Richard Biener <rguenther@suse.de>
28799
28800 PR tree-optimization/89802
28801 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
28802 move EH data to folded stmt.
28803
28804 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
28805
28806 * config/s390/s390-builtin-types.def: Remove few unused types and
28807 fix sort order for others.
28808
28809 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
28810
28811 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
28812 expected and found types with -mdebug during builtin matching.
28813
28814 2019-03-25 Richard Biener <rguenther@suse.de>
28815
28816 PR middle-end/89790
28817 * fold-const.c (operand_equal_p): Revert last change with
28818 updated comment.
28819
28820 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
28821
28822 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
28823 notes for the result of the __tls_get_addr calls.
28824 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
28825
28826 2019-03-24 Jeff Law <law@redhat.com>
28827
28828 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
28829
28830 PR rtl-optimization/87761
28831 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
28832 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
28833 as needed.
28834 (pass_cprop_hardreg::execute): Add df note problem and defer insn
28835 rescans. Reprocess blocks as needed, calling df_analyze before
28836 reprocessing. Always call df_analyze before fixing up debug bind
28837 insns.
28838
28839 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
28840
28841 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
28842 big endian.
28843
28844 2019-03-22 Andrew Pinski <apinski@marvell.com>
28845
28846 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
28847 attrribute for uxtw.
28848
28849 2019-03-26 Jeff Law <law@redhat.com>
28850
28851 PR rtl-optimization/87761
28852 * config/mips/mips-protos.h (mips_split_move): Add new argument.
28853 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
28854 (mips_split_move): Accept new INSN argument. Try to forward SRC
28855 into the next instruction.
28856 (mips_split_move_insn): Pass INSN through to mips_split_move.
28857
28858 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
28859
28860 PR rtl-optimization/89676
28861 * lra-constraints.c (curr_insn_transform): Do match reload for
28862 early clobbers even if the match was successful.
28863
28864 2019-03-22 Jakub Jelinek <jakub@redhat.com>
28865
28866 PR c++/87481
28867 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
28868
28869 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
28870
28871 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
28872
28873 2019-03-22 Jakub Jelinek <jakub@redhat.com>
28874
28875 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
28876 <avx512>_fmsub_<mode>_mask3<round_name>,
28877 <avx512>_fnmadd_<mode>_mask3<round_name>,
28878 <avx512>_fnmsub_<mode>_mask3<round_name>,
28879 avx512f_vmfmadd_<mode>_mask3<round_name>,
28880 avx512f_vmfmsub_<mode>_mask3<round_name>,
28881 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
28882 instead of register_operand and %v instead of v for match_operand 1.
28883 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
28884 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
28885 <round_nimm_predicate> instead of register_operand and %v instead of v
28886 for match_operand 1.
28887
28888 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
28889 <avx512>_fmadd_<mode>_mask3<round_name>,
28890 <avx512>_fmsub_<mode>_mask<round_name>,
28891 <avx512>_fmsub_<mode>_mask3<round_name>,
28892 <avx512>_fnmadd_<mode>_mask<round_name>,
28893 <avx512>_fnmadd_<mode>_mask3<round_name>,
28894 <avx512>_fnmsub_<mode>_mask<round_name>,
28895 <avx512>_fnmsub_<mode>_mask3<round_name>,
28896 <avx512>_fmaddsub_<mode>_mask<round_name>,
28897 <avx512>_fmaddsub_<mode>_mask3<round_name>,
28898 <avx512>_fmsubadd_<mode>_mask<round_name>,
28899 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
28900 <round_nimm_predicate> instead of nonimmediate_operand.
28901 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
28902 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
28903 Use register_operand instead of <round_nimm_predicate> for the
28904 operand that needs to match output.
28905 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
28906 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
28907 Likewise. Formatting fixes.
28908
28909 PR target/89784
28910 * config/i386/i386.c (enum ix86_builtins): Remove
28911 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
28912 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
28913 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
28914 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
28915 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
28916 __builtin_ia32_vfmsubss3_mask3): New builtins.
28917 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
28918 avx512f_vmfmadd_<mode>_mask3<round_name>,
28919 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
28920 *avx512f_vmfmsub_<mode>_mask<round_name>,
28921 avx512f_vmfmsub_<mode>_mask3<round_name>,
28922 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
28923 *avx512f_vmfnmadd_<mode>_mask<round_name>,
28924 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
28925 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
28926 *avx512f_vmfnmsub_<mode>_mask<round_name>,
28927 avx512f_vmfnmsub_<mode>_mask3<round_name>,
28928 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
28929 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
28930 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
28931 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
28932 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
28933 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
28934 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
28935 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
28936 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
28937 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
28938 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
28939 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
28940 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
28941 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
28942 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
28943 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
28944 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
28945 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
28946 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
28947 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
28948 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
28949 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
28950
28951 2019-03-21 Martin Sebor <msebor@redhat.com>
28952
28953 PR tree-optimization/89350
28954 * builtins.c (compute_objsize): Also ignore offsets whose upper
28955 bound is negative.
28956 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
28957 (builtin_memref::builtin_memref): Initialize new member.
28958 Allow EXPR to be null.
28959 (builtin_memref::extend_offset_range): Replace local with a member.
28960 Avoid assuming pointer offsets are unsigned.
28961 (builtin_memref::set_base_and_offset): Determine base object
28962 before computing offset range.
28963 (builtin_access::builtin_access): Handle memset.
28964 (builtin_access::generic_overlap): Replace local with a member.
28965 (builtin_access::strcat_overlap): Same.
28966 (builtin_access::overlap): Same.
28967 (maybe_diag_overlap): Same.
28968 (maybe_diag_access_bounds): Same.
28969 (wrestrict_dom_walker::check_call): Handle memset.
28970 (check_bounds_or_overlap): Same.
28971
28972 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
28973 Jakub Jelinek <jakub@redhat.com>
28974
28975 PR lto/89692
28976 * tree.c (fld_type_variant, fld_incomplete_type_of,
28977 fld_process_array_type): Call fld->pset.add and don't call
28978 add_tree_to_fld_list if it returns true.
28979 (free_lang_data_in_type): Similarly with self-recursive call. Purge
28980 non-marked types from TYPE_NEXT_VARIANT list.
28981 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
28982
28983 2019-03-21 Jakub Jelinek <jakub@redhat.com>
28984
28985 * hash-table.h (hash_table): Add Lazy template parameter defaulted
28986 to false, if true, don't alloc_entries during construction, but defer
28987 it to the first method that needs m_entries allocated.
28988 (hash_table::hash_table, hash_table::~hash_table,
28989 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
28990 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
28991 hash_table::clear_slot, hash_table::traverse_noresize,
28992 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
28993 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
28994 false.
28995 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
28996 NO_INSERT instead of find_with_hash.
28997 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
28998 hash_set::m_table): Add Lazy to template params of hash_table.
28999 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
29000 * attribs.c (test_attribute_exclusions): Likewise.
29001 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
29002 hash_set. Add tests for hash_set with Lazy = true.
29003
29004 2019-03-21 Richard Biener <rguenther@suse.de>
29005
29006 PR tree-optimization/89779
29007 * tree.c (tree_nop_conversion): Consolidate and fix defensive
29008 checks with respect to released SSA names now having error_mark_node
29009 type.
29010 * fold-const.c (operand_equal_p): Likewise.
29011
29012 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
29013
29014 PR target/89775
29015 * config/s390/s390.c (global_not_special_regno_p): Move to make it
29016 available to ...
29017 (s390_optimize_register_info): Use global_not_special_regno_p to
29018 check for global regs.
29019
29020 2019-03-20 Jakub Jelinek <jakub@redhat.com>
29021
29022 PR target/89752
29023 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
29024 update this_alternative nor this_alternative_set.
29025
29026 2019-03-19 Jim Wilson <jimw@sifive.com>
29027
29028 PR target/89411
29029 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
29030 align, size, offset. Use them to handle a BLKmode reference. Update
29031 comment.
29032 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
29033
29034 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29035
29036 PR rtl-optimization/89768
29037 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
29038 instead of GEN_INT.
29039 (unroll_loop_runtime_iterations): Likewise.
29040
29041 2019-03-19 Martin Sebor <msebor@redhat.com>
29042
29043 PR tree-optimization/89644
29044 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
29045 rather than endptr as an indicator of nul-termination.
29046
29047 PR tree-optimization/89644
29048 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
29049 arrays in determining sequence sizes in strncpy and stpncpy.
29050
29051 2019-03-19 Martin Liska <mliska@suse.cz>
29052
29053 PR middle-end/89737
29054 * predict.c (combine_predictions_for_bb): Empty likely_edges and
29055 unlikely_edges if there's an edge that belongs to both these sets.
29056
29057 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
29058
29059 PR target/89746
29060 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
29061 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
29062 go via a stack temporary.
29063
29064 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29065
29066 PR target/89378
29067 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
29068 instead of gen_rtx_SUBREG.
29069 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
29070
29071 2019-03-19 Richard Biener <rguenther@suse.de>
29072
29073 PR debug/88389
29074 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
29075
29076 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
29077
29078 PR lto/87809
29079 PR lto/89335
29080 * tree.c (free_lang_data_in_decl): Do not free context of C++
29081 destrutors.
29082
29083 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29084
29085 PR target/89506
29086 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
29087 subs for the first alternative except when operands[3] is 1.
29088
29089 PR target/89752
29090 * gimplify.c (gimplify_asm_expr): For output argument with
29091 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
29092 diagnose error.
29093
29094 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
29095
29096 PR rtl-optimization/89753
29097 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
29098 explicit unrolling factor even more robust.
29099
29100 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29101
29102 PR target/89726
29103 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
29104 compensation use x2 += 1 instead of x2 -= -1 and when honoring
29105 signed zeros, do another copysign after the compensation.
29106
29107 2019-03-18 Martin Sebor <msebor@redhat.com>
29108
29109 PR tree-optimization/89720
29110 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
29111 more conservatively, the same as anti-range.
29112
29113 2019-03-18 Richard Biener <rguenther@suse.de>
29114
29115 PR middle-end/88945
29116 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
29117 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
29118 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
29119 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
29120
29121 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
29122
29123 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
29124 Extend queue to 1024 entries.
29125 Add "consumed" field.
29126 (gomp_print_output): Remove print_index parameter.
29127 Add final parameter.
29128 Change limit to unsigned.
29129 Use consumed field to implement circular buffer.
29130 Detect interrupted print in final pass.
29131 Flush output at the end.
29132 (run): Update gomp_print_output usage.
29133 (main): Initialize kernargs->output_data.consumed.
29134
29135 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
29136
29137 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
29138 calculation of the minimum number of scalar iterations for
29139 fully-predicated loops.
29140
29141 2019-03-18 Martin Jambor <mjambor@suse.cz>
29142
29143 PR tree-optimization/89546
29144 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
29145 any propagation to its children took place.
29146
29147 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
29148
29149 PR target/89627
29150 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
29151 parameter, and make use of it.
29152 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
29153
29154 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29155
29156 * config/arc/arc.opt (mcode-density-frame): Get the inital value
29157 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
29158 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
29159 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
29160 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
29161 match what the ops is doing.
29162 (push_multi_fp_blink): Likewise.
29163 * config/arc/arc.c (arc_override_options): Enable enter/leave when
29164 compiling for size and elf target.
29165 (arc_save_callee_enter): Adjust note to match what enter/leave
29166 operation does.
29167
29168 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29169
29170 * config/arc/arc.md (tst_movb): Fix constraint.
29171
29172 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29173
29174 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
29175
29176 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29177
29178 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
29179 * config/arc/arc.c (arc_conditional_register_usage): Remove all
29180 reg_alloc_order references.
29181 (size_alloc_order): Define.
29182 (arc_adjust_reg_alloc_order): New function.
29183 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
29184 order.
29185 (ADJUST_REG_ALLOC_ORDER): Define.
29186 (HONOR_REG_ALLOC_ORDER): Likewise.
29187
29188 2019-03-18 Richard Biener <rguenther@suse.de>
29189
29190 PR target/87561
29191 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
29192 loads and stores a bit more.
29193
29194 2019-03-18 Richard Biener <rguenther@suse.de>
29195
29196 PR target/87561
29197 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
29198 load pessimization to stores as well.
29199
29200 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
29201
29202 PR middle-end/86979
29203 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
29204 successor, use NULL as its av set.
29205
29206 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
29207
29208 PR rtl-optimization/89721
29209 * lra-constraints (invariant_p): Return false if side_effects_p holds.
29210
29211 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
29212
29213 PR target/87532
29214 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29215 When handling vec_extract, use modular arithmetic to allow
29216 constant selectors greater than vector length.
29217 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
29218 V1TImode vectors to have constant selector values greater than 0.
29219 Use modular arithmetic to compute vector index.
29220 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
29221 index for in-memory vectors. Correct code generation for
29222 in-register vectors.
29223 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
29224 compute index.
29225
29226 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
29227
29228 PR c++/88534
29229 PR c++/88537
29230 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
29231 VAR_DECL args.
29232
29233 2019-03-15 Jakub Jelinek <jakub@redhat.com>
29234
29235 PR c++/89709
29236 * tree.c (inchash::add_expr): Strip any location wrappers.
29237 * fold-const.c (operand_equal_p): Move stripping of location wrapper
29238 after hash verification.
29239
29240 PR debug/89704
29241 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
29242 SIGN_EXTEND and ZERO_EXTEND.
29243
29244 2019-03-14 Jason Merrill <jason@redhat.com>
29245 Jakub Jelinek <jakub@redhat.com>
29246
29247 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
29248 than if is_empty (*slot).
29249 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
29250 existing elt and for elt removal.
29251 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
29252 of already removed elt.
29253
29254 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
29255
29256 PR target/89650
29257 * config/i386/i386.c (remove_partial_avx_dependency): Handle
29258 REG_EH_REGION note.
29259
29260 2019-03-14 Martin Liska <mliska@suse.cz>
29261
29262 PR other/89712
29263 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
29264
29265 2019-03-14 Richard Biener <rguenther@suse.de>
29266
29267 PR target/89711
29268 * config/i386/i386.c (make_resolver_func): Properly set
29269 DECL_CONTEXT on the RESULT_DECL.
29270 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
29271
29272 2019-03-14 Richard Biener <rguenther@suse.de>
29273
29274 * gimple-pretty-print.c: Include cfgloop.h.
29275 (dump_gimple_phi): Adjust.
29276 (dump_gimple_bb_header): Dump loop header for GIMPLE.
29277 (pp_cfg_jump): Adjust.
29278 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
29279 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
29280 (lower_phi_internal_fn): Remove.
29281 (verify_gimple_call): Remove IFN_PHI special-casing.
29282 (dump_function_to_file): Dump IL state.
29283 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
29284 done to deal with PHI nodes being present in non-SSA state.
29285
29286 2019-03-14 Jakub Jelinek <jakub@redhat.com>
29287
29288 PR ipa/89684
29289 * multiple_target.c (create_dispatcher_calls): Change
29290 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
29291 In the node->iterate_referring loop, push *ref rather than ref, call
29292 ref->remove_reference () and always pass 0 to iterate_referring.
29293
29294 PR rtl-optimization/89679
29295 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
29296 would contain a paradoxical SUBREG.
29297
29298 2019-03-14 Richard Biener <rguenther@suse.de>
29299
29300 PR tree-optimization/89710
29301 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
29302 safe_dyn_cast.
29303
29304 2019-03-14 Martin Liska <mliska@suse.cz>
29305
29306 * coverage.c (coverage_begin_function): Stream also
29307 end_column.
29308 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
29309 documentation about function declaration location.
29310 * gcov-dump.c (tag_function): Print whole range
29311 of function declaration.
29312 * gcov.c (struct function_info): Add end_column field.
29313 (function_info::function_info): Initialize it.
29314 (output_json_intermediate_file): Output {start,end}_column
29315 fields.
29316 (read_graph_file): Read end_column.
29317
29318 2019-03-14 Richard Biener <rguenther@suse.de>
29319
29320 PR middle-end/89698
29321 * fold-const.c (operand_equal_p): For INDIRECT_REF check
29322 that the access types are similar.
29323
29324 2019-03-14 Jakub Jelinek <jakub@redhat.com>
29325
29326 PR tree-optimization/89703
29327 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
29328 aren't compatible also with builtin_decl_explicit. Check pure
29329 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
29330 and BUILT_IN_STPNCPY{,_CHK}.
29331
29332 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
29333
29334 PR target/89523
29335 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
29336 addr32 prefix to VSIB address for X32.
29337 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
29338 "%M2" to opcode.
29339 (*avx512pf_gatherpf<mode>df_mask): Likewise.
29340 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
29341 (*avx512pf_scatterpf<mode>df_mask): Likewise.
29342 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
29343 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
29344 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
29345 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
29346 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
29347 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
29348 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
29349 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
29350 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
29351 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
29352 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
29353 (*avx512f_scatterdi<mode>): Likewise.
29354
29355 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
29356
29357 PR target/85860
29358 * lra-constraints.c (inherit_in_ebb): Update
29359 potential_reload_hard_regs along with live_hard_regs.
29360
29361 2019-03-13 Jakub Jelinek <jakub@redhat.com>
29362
29363 PR debug/89498
29364 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
29365 DWARF_OFFSET_SIZE.
29366 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
29367
29368 2019-03-13 Martin Sebor <msebor@redhat.com>
29369
29370 PR tree-optimization/89662
29371 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
29372 has a size.
29373
29374 2019-03-13 Richard Biener <rguenther@suse.de>
29375
29376 PR middle-end/89677
29377 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
29378 throw FP expressions at tree-affine.
29379
29380 2019-03-14 Richard Biener <rguenther@suse.de>
29381
29382 * tree-pretty-print.c (dump_generic_node): For -gimple properly
29383 dump negative integer constants using _Literal (type) -num.
29384
29385 2019-03-13 Jakub Jelinek <jakub@redhat.com>
29386
29387 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
29388 nonlocal_value member.
29389
29390 PR middle-end/88588
29391 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
29392 (ipa_simd_modify_function_body): Handle PHIs.
29393
29394 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
29395
29396 * config/s390/s390.c (s390_option_override_internal): Use more
29397 aggressive inlining parameters.
29398
29399 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
29400
29401 * config/s390/3906.md: New file.
29402 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
29403 (LONGRUNNING_THRESHOLD): Remove.
29404 (MAX_SCHED_MIX_SCORE): Decrease.
29405 (MAX_SCHED_MIX_DISTANCE): Decrease.
29406 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
29407 (struct s390_sched_state): New struct to hold scheduling state.
29408 (S390_SCHED_STATE_NORMAL): Remove.
29409 (S390_SCHED_STATE_CRACKED): Remove.
29410 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
29411 (s390_get_sched_attrmask): Use new attribute.
29412 (s390_get_unit_mask): Use new units.
29413 (s390_is_fpd): New function.
29414 (s390_is_fxd): New function.
29415 (s390_is_longrunning): New function.
29416 (s390_sched_score): Use new functions.
29417 (s390_sched_reorder): Likewise.
29418 (s390_sched_variable_issue): Rework and use new functions.
29419 (s390_sched_init): Use new functions.
29420 * config/s390/s390.h (s390_tune_attr): Add z14.
29421 * config/s390/s390.md: Add z14.
29422
29423 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
29424
29425 * config/s390/2964.md: Update pipeline description.
29426 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
29427 (LONGRUNNING_THRESHOLD): Remove.
29428 (LATENCY_FACTOR): Remove.
29429 (s390_get_unit_mask): Add unit.
29430 (s390_sched_score): Use fxd/fpd.
29431 (s390_sched_variable_issue): Use fxd/fpd.
29432
29433 2019-03-12 Martin Liska <mliska@suse.cz>
29434
29435 * config/i386/i386.c: Reword an error message.
29436
29437 2019-03-12 Martin Jambor <mjambor@suse.cz>
29438
29439 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
29440 terminate with newline.
29441
29442 2019-03-12 Jakub Jelinek <jakub@redhat.com>
29443
29444 PR target/52726
29445 * config/s390/s390.md (tabort): Use %wd instead of
29446 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
29447 letters and periods.
29448 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
29449 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
29450 's with %< and %>.
29451
29452 PR middle-end/89663
29453 * builtins.c (expand_builtin_int_roundingfn,
29454 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
29455 gcc_unreachable if validate_arglist fails.
29456
29457 2019-03-12 Richard Biener <rguenther@suse.de>
29458
29459 PR tree-optimization/89664
29460 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
29461 free the occurance tree after the early out.
29462
29463 2019-03-11 Jakub Jelinek <jakub@redhat.com>
29464
29465 PR middle-end/89655
29466 PR bootstrap/89656
29467 * vr-values.c (vr_values::update_value_range): If
29468 old_vr->varying_p (), don't update it, make new_vr also VARYING
29469 and return false.
29470
29471 2019-03-11 Martin Liska <mliska@suse.cz>
29472
29473 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29474 Fix double string quoting.
29475
29476 2019-03-11 Martin Liska <mliska@suse.cz>
29477
29478 * collect-utils.c (collect_wait): Wrap apostrophes
29479 in gcc internal format with %'.
29480 * collect2.c (main): Likewise.
29481 (scan_prog_file): Likewise.
29482 (scan_libraries): Likewise.
29483 * config/i386/i386.c (ix86_expand_call): Likewise.
29484 (ix86_handle_interrupt_attribute): Likewise.
29485 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
29486 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
29487 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
29488 * lto-wrapper.c (find_crtoffloadtable): Likewise.
29489 * symtab.c (symtab_node::verify_base): Likewise.
29490 * tree-cfg.c (verify_gimple_label): Likewise.
29491 * tree.c (verify_type_variant): Likewise.
29492
29493 2019-03-11 Martin Liska <mliska@suse.cz>
29494
29495 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
29496 in a string format message and fix GNU coding style.
29497 (expand_builtin_set_thread_pointer): Likewise.
29498 * common/config/aarch64/aarch64-common.c
29499 (aarch64_rewrite_selected_cpu): Likewise.
29500 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
29501 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
29502 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
29503 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
29504 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
29505 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
29506 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
29507 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
29508 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
29509 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
29510 Likewise.
29511 * common/config/riscv/riscv-common.c
29512 (riscv_subset_list::parsing_subset_version): Likewise.
29513 (riscv_subset_list::parse_std_ext): Likewise.
29514 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
29515 (riscv_subset_list::parse): Likewise.
29516 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
29517 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
29518 (aarch64_override_options_internal): Likewise.
29519 (aarch64_validate_mcpu): Likewise.
29520 (aarch64_validate_march): Likewise.
29521 (aarch64_validate_mtune): Likewise.
29522 (aarch64_override_options): Likewise.
29523 * config/alpha/alpha.c (alpha_option_override): Likewise.
29524 * config/arc/arc.c (arc_init): Likewise.
29525 (parse_mrgf_banked_regs_option): Likewise.
29526 (arc_override_options): Likewise.
29527 (arc_expand_builtin_aligned): Likewise.
29528 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
29529 (arm_expand_builtin): Likewise.
29530 * config/arm/arm.c (arm_option_check_internal): Likewise.
29531 (arm_configure_build_target): Likewise.
29532 (arm_option_override): Likewise.
29533 (arm_options_perform_arch_sanity_checks): Likewise.
29534 (arm_handle_cmse_nonsecure_entry): Likewise.
29535 (arm_handle_cmse_nonsecure_call): Likewise.
29536 (arm_tls_referenced_p): Likewise.
29537 (thumb1_expand_prologue): Likewise.
29538 * config/avr/avr.c (avr_option_override): Likewise.
29539 * config/bfin/bfin.c (bfin_option_override): Likewise.
29540 * config/c6x/c6x.c (c6x_option_override): Likewise.
29541 * config/cr16/cr16.c (cr16_override_options): Likewise.
29542 * config/cris/cris.c (cris_option_override): Likewise.
29543 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
29544 * config/darwin-c.c (macosx_version_as_macro): Likewise.
29545 * config/darwin.c (darwin_override_options): Likewise.
29546 * config/frv/frv.c (frv_expand_builtin): Likewise.
29547 * config/h8300/h8300.c (h8300_option_override): Likewise.
29548 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
29549 (ix86_option_override_internal): Likewise.
29550 (warn_once_call_ms2sysv_xlogues): Likewise.
29551 (ix86_expand_prologue): Likewise.
29552 (split_stack_prologue_scratch_regno): Likewise.
29553 (ix86_warn_parameter_passing_abi): Likewise.
29554 * config/ia64/ia64.c (fix_range): Likewise.
29555 * config/m68k/m68k.c (m68k_option_override): Likewise.
29556 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
29557 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
29558 (mips_set_compression_mode): Likewise.
29559 * config/mmix/mmix.c (mmix_option_override): Likewise.
29560 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
29561 * config/msp430/msp430.c (msp430_option_override): Likewise.
29562 * config/nds32/nds32.c (nds32_option_override): Likewise.
29563 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
29564 (nios2_option_override): Likewise.
29565 (nios2_expand_custom_builtin): Likewise.
29566 * config/nvptx/mkoffload.c (main): Likewise.
29567 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
29568 * config/pa/pa.c (fix_range): Likewise.
29569 (pa_option_override): Likewise.
29570 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
29571 (riscv_option_override): Likewise.
29572 * config/rl78/rl78.c (rl78_option_override): Likewise.
29573 * config/rs6000/aix61.h: Likewise.
29574 * config/rs6000/aix71.h: Likewise.
29575 * config/rs6000/aix72.h: Likewise.
29576 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
29577 * config/rs6000/freebsd64.h: Likewise.
29578 * config/rs6000/linux64.h: Likewise.
29579 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
29580 (rs6000_expand_zeroop_builtin): Likewise.
29581 (rs6000_expand_mtfsb_builtin): Likewise.
29582 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
29583 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
29584 (rs6000_invalid_builtin): Likewise.
29585 (rs6000_expand_split_stack_prologue): Likewise.
29586 * config/rs6000/rtems.h: Likewise.
29587 * config/rx/rx.c (valid_psw_flag): Likewise.
29588 (rx_expand_builtin): Likewise.
29589 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
29590 * config/s390/s390.c (s390_expand_builtin): Likewise.
29591 (s390_function_profiler): Likewise.
29592 (s390_option_override_internal): Likewise.
29593 (s390_option_override): Likewise.
29594 * config/sh/sh.c (sh_option_override): Likewise.
29595 (sh_builtin_saveregs): Likewise.
29596 (sh_fix_range): Likewise.
29597 * config/sh/vxworks.h: Likewise.
29598 * config/sparc/sparc.c (sparc_option_override): Likewise.
29599 * config/spu/spu.c (spu_option_override): Likewise.
29600 (fix_range): Likewise.
29601 * config/visium/visium.c (visium_option_override): Likewise.
29602 (visium_handle_interrupt_attr): Likewise.
29603 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
29604 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
29605 (dbg_cnt_process_opt): Likewise.
29606 * dwarf2out.c (output_dwarf_version): Likewise.
29607 * except.c (expand_eh_return): Likewise.
29608 * gcc.c (defined): Likewise.
29609 (driver_handle_option): Likewise.
29610 (process_command): Likewise.
29611 (compare_files): Likewise.
29612 (driver::prepare_infiles): Likewise.
29613 (driver::do_spec_on_infiles): Likewise.
29614 (driver::maybe_run_linker): Likewise.
29615 * omp-offload.c (oacc_parse_default_dims): Likewise.
29616 * opts-global.c (handle_common_deferred_options): Likewise.
29617 * opts.c (parse_sanitizer_options): Likewise.
29618 (common_handle_option): Likewise.
29619 (enable_warning_as_error): Likewise.
29620 * passes.c (enable_disable_pass): Likewise.
29621 * plugin.c (parse_plugin_arg_opt): Likewise.
29622 (default_plugin_dir_name): Likewise.
29623 * targhooks.c (default_expand_builtin_saveregs): Likewise.
29624 (default_pch_valid_p): Likewise.
29625 * toplev.c (init_asm_output): Likewise.
29626 (process_options): Likewise.
29627 (toplev::run_self_tests): Likewise.
29628 * tree-cfg.c (verify_gimple_call): Likewise.
29629 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
29630 (tree_inlinable_function_p): Likewise.
29631 * var-tracking.c (vt_find_locations): Likewise.
29632
29633 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
29634
29635 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
29636 only on the else branch.
29637
29638 2019-03-11 Martin Liska <mliska@suse.cz>
29639
29640 * gcov.c (output_intermediate_json_line): Print function
29641 name of each line.
29642 (output_json_intermediate_file): Add new argument.
29643 * doc/gcov.texi: Document the change.
29644
29645 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
29646
29647 PR rtl-optimization/89588
29648 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
29649 explicit unrolling factor more robust.
29650
29651 2019-03-11 Richard Biener <rguenther@suse.de>
29652
29653 PR tree-optimization/89649
29654 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
29655 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
29656 on the prolog and epilog loops.
29657 (vect_loop_versioning): Return copy of loop.
29658 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
29659 on the non-vectorized version of the loop.
29660
29661 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
29662
29663 PR target/68924
29664 * config/i386/sse.md (*vec_extractv2di_0_sse):
29665 Add (=r,x) alternative and corresponding splitter.
29666
29667 2019-03-10 Martin Jambor <mjambor@suse.cz>
29668
29669 PR tree-optimization/85762
29670 PR tree-optimization/87008
29671 PR tree-optimization/85459
29672 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
29673 it points to if there is a type changing MEM_REF. Adjust all callers.
29674 (build_accesses_from_assign): Disable total scalarization if
29675 contains_vce_or_bfcref_p returns true through the new parameter, for
29676 both rhs and lhs.
29677
29678 2019-03-09 Jakub Jelinek <jakub@redhat.com>
29679
29680 PR c/88568
29681 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
29682 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
29683
29684 PR target/79645
29685 * common.opt (fdiagnostics-show-labels,
29686 fdiagnostics-show-line-numbers, fdiagnostics-format=,
29687 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
29688 gas-locview-support, ginline-points, ginternal-reset-location-views):
29689 Terminate description text with a dot.
29690 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
29691 * config/mcore/mcore.opt (m210, m340): Likewise.
29692 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
29693 mnops=): Start description text with a capital letter.
29694 * config/arc/arc.opt (msize-level=): Likewise.
29695 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
29696 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
29697 mnewlib): Likewise.
29698 * config/ft32/ft32.opt (msim): Likewise.
29699 (mft32b, mcompress): Likewise. Terminate description text with a dot.
29700 (mnodiv, mnopm): Terminate description text with a dot.
29701 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
29702 a colon.
29703 * config/i386/i386.opt (prefer_vector_width, instrument_return):
29704 Likewise.
29705 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
29706 text.
29707
29708 PR rtl-optimization/89634
29709 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
29710 are modified in BB_END (e->src) instruction.
29711
29712 2019-03-08 David Malcolm <dmalcolm@redhat.com>
29713
29714 PR target/79926
29715 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
29716 messages more amenable to translation, and improve wording.
29717
29718 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
29719
29720 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
29721 ud- and du-chains between phases.
29722
29723 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
29724
29725 PR debug/89631
29726 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
29727 instead of POLY_INT_CST.
29728
29729 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
29730
29731 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
29732 requirement.
29733
29734 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
29735
29736 PR target/68924
29737 PR target/78782
29738 PR target/87558
29739 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
29740 (_mm_storeu_si64): Ditto.
29741
29742 2019-03-08 Martin Liska <mliska@suse.cz>
29743
29744 PR target/86952
29745 * config/i386/i386.c (ix86_option_override_internal): Disable
29746 jump tables when retpolines are used.
29747
29748 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
29749
29750 PR go/63560
29751 * ipa-split.c (execute_split_functions): Do not split
29752 'noinline' or 'section' function.
29753
29754 2019-03-08 Jakub Jelinek <jakub@redhat.com>
29755
29756 PR target/79846
29757 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
29758 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
29759 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
29760
29761 PR ipa/80000
29762 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29763 from diagnostics. Formatting fixes.
29764
29765 PR target/85665
29766 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
29767 warn_odr diagnostics.
29768
29769 PR other/80058
29770 * lra-constraints.c (process_alt_operands): Avoid one space before
29771 " at the end of line and another after " on another line in a string
29772 literal.
29773 * attribs.c (handle_dll_attribute): Likewise.
29774 * config/avr/avr-devices.c (avr_texinfo): Likewise.
29775
29776 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
29777 warning_at or inform messages in G_() if there is no ?:.
29778
29779 PR tree-optimization/89550
29780 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
29781 returned true. Formatting fixes.
29782 (expand_builtin_strnlen): Formatting fixes.
29783 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
29784 if warning_at returned true.
29785 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
29786
29787 2019-03-08 Richard Biener <rguenther@suse.de>
29788
29789 PR middle-end/89578
29790 * cfgloop.h (struct loop): Add owned_clique field.
29791 * cfgloopmanip.c (copy_loop_info): Copy it.
29792 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
29793 cliques.
29794 * tree-inline.c (copy_loops): Remap owned_clique.
29795 * lto-streamer-in.c (input_cfg): Stream owned_clique.
29796 * lto-streamer-out.c (output_cfg): Likewise.
29797
29798 2019-03-08 Jakub Jelinek <jakub@redhat.com>
29799
29800 PR target/80190
29801 * config/darwin.c: Include intl.h.
29802 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
29803 composing the message out of two separate parts.
29804
29805 2019-03-07 Jakub Jelinek <jakub@redhat.com>
29806
29807 PR target/80003
29808 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
29809 doesn't start with a capital letter and doesn't end with a dot.
29810 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
29811 with a capital letter.
29812 (ix86_mangle_function_version_assembler_name): Likewise.
29813 (ix86_generate_version_dispatcher_body): Likewise.
29814 (fold_builtin_cpu): Likewise.
29815 (get_builtin_code_for_version): Likewise. Remove extraneous space.
29816 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
29817 translators, wrap full type name in %qs.
29818
29819 PR translation/79999
29820 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
29821 depend clause with source (or sink) modifier.
29822 * omp-expand.c (expand_omp_ordered_sink): Likewise.
29823
29824 PR target/89602
29825 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
29826 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
29827 (avx512f_load<mode>_mask): New define_expand.
29828 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
29829 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
29830 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
29831 __builtin_ia32_movess_mask): New builtins.
29832 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
29833 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
29834 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
29835 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
29836
29837 2019-03-07 Martin Jambor <mjambor@suse.cz>
29838
29839 PR lto/87525
29840 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
29841 for extern inline functions.
29842
29843 2019-03-07 Martin Jambor <mjambor@suse.cz>
29844
29845 PR ipa/88235
29846 * cgraph.h (cgraph_node): New inline method former_thunk_p.
29847 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
29848 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
29849 have multiple callees. At the end check if declarations match as
29850 opposed to cgraph_nodes.
29851
29852 2019-03-07 Martin Liska <mliska@suse.cz>
29853
29854 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
29855 which is equivalent to searching for this in clones chain.
29856 * symtab.c (symtab_node::verify_base): Similarly compare ASM
29857 names with a neighbour and special case first node in a chain.
29858
29859 2019-01-25 Jason Merrill <jason@redhat.com>
29860
29861 PR c++/80916 - spurious "static but not defined" warning.
29862 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
29863 for an internal symbol with DECL_EXTERNAL.
29864
29865 2019-04-07 Richard Biener <rguenther@suse.de>
29866
29867 PR middle-end/89618
29868 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
29869 * tree-inline.c (copy_loops): Simplify.
29870
29871 2019-03-07 Martin Liska <mliska@suse.cz>
29872
29873 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
29874
29875 2019-03-07 Richard Biener <rguenther@suse.de>
29876
29877 PR tree-optimization/89595
29878 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
29879 stmt iterator as reference, take boolean output parameter to
29880 indicate whether the stmt was removed and thus the iterator
29881 already advanced.
29882 (dom_opt_dom_walker::before_dom_children): Re-iterate over
29883 stmts created by folding.
29884
29885 2019-03-07 Jakub Jelinek <jakub@redhat.com>
29886
29887 PR c++/89585
29888 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
29889 at toplevel.
29890
29891 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
29892
29893 PR rtl-optimization/88845
29894 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
29895 LRA.
29896 * lra.c (remove_scratches_1): New function.
29897 (remove_scratches): Use it.
29898 (lra_emit_move): Likewise.
29899
29900 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
29901
29902 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
29903 unaligned_access variable.
29904 * config/arc/arc.c (arc_override_options): Set unaligned access
29905 default on for HS CPUs.
29906 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
29907
29908 2019-03-06 Martin Liska <mliska@suse.cz>
29909
29910 PR gcov-profile/89577
29911 * doc/gcov.texi: Prefer to use --coverage.
29912 * doc/sourcebuild.texi: Likewise.
29913
29914 2019-03-02 Jason Merrill <jason@redhat.com>
29915
29916 PR c++/86485 - -Wmaybe-unused with empty class ?:
29917 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
29918
29919 2019-03-05 Jakub Jelinek <jakub@redhat.com>
29920
29921 PR target/89587
29922 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
29923 if_multiarch.
29924
29925 PR middle-end/89590
29926 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
29927 exactly one argument.
29928
29929 2019-03-05 Jakub Jelinek <jakub@redhat.com>
29930 Richard Sandiford <richard.sandiford@arm.com>
29931
29932 PR tree-optimization/89570
29933 * match.pd (vec_cond into cond_op simplification): Don't use
29934 get_conditional_internal_fn, use as_internal_fn (cond_op).
29935
29936 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
29937
29938 PR target/89222
29939 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
29940 to decide when to split off a non-zero offset from a symbol.
29941 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
29942 in function symbols.
29943
29944 2019-03-05 Richard Biener <rguenther@suse.de>
29945
29946 PR tree-optimization/89594
29947 * tree-if-conv.c (pass_if_conversion::execute): Handle
29948 case where .LOOP_VECTORIZED_FUNCTION was removed.
29949
29950 2019-03-05 Jakub Jelinek <jakub@redhat.com>
29951
29952 PR bootstrap/89560
29953 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
29954 instead alloca it only when needed with the needed size.
29955
29956 PR tree-optimization/89570
29957 * match.pd (vec_cond into cond_op simplification): Guard with
29958 vectorized_internal_fn_supported_p test and #if GIMPLE.
29959
29960 PR tree-optimization/89566
29961 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
29962 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
29963 Punt if get_user_idx_format succeeds, but idx_format argument is
29964 not provided or doesn't have pointer type, or if idx_args is above
29965 number of provided arguments.
29966
29967 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
29968
29969 PR tree-optimization/89437
29970 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
29971
29972 2019-03-04 Richard Biener <rguenther@suse.de>
29973
29974 PR middle-end/89572
29975 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
29976 safe_dyn_cast.
29977
29978 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
29979
29980 PR tree-optimization/89487
29981 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
29982 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
29983 (distribute_loop): Don't do runtime alias check if there is non-
29984 addressable data reference.
29985 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
29986 is a register variable.
29987
29988 2019-03-02 Jakub Jelinek <jakub@redhat.com>
29989
29990 PR target/89506
29991 * config/arm/arm.md (cmpsi2_addneg): Use
29992 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
29993 If operands[2] is 0 or INT_MIN, force use of subs.
29994 (*compare_scc splitter): Use gen_int_mode.
29995 (*negscc): Likewise.
29996 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
29997
29998 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
29999 Monk Chiang <sh.chiang04@gmail.com>
30000
30001 * common/config/riscv/riscv-common.c: Include sstream.
30002 (riscv_subset_list::to_string): New.
30003 (riscv_arch_str): Likewise.
30004 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
30005 * config.in: Regen.
30006 * config/riscv/riscv-protos.h (riscv_arch_str): New.
30007 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
30008 (riscv_emit_attribute): New.
30009 (riscv_file_start): Emit attribute if needed.
30010 (riscv_option_override): Init riscv_emit_attribute_p.
30011 * config/riscv/riscv.opt (mriscv-attribute): New option.
30012 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
30013 * configure: Regen.
30014 * doc/install.texi: Document --with-riscv-attribute.
30015 * doc/invoke.texi: Document -mriscv-attribute.
30016
30017 * common/config/riscv/riscv-common.c:
30018 Include config/riscv/riscv-protos.h.
30019 (INCLUDE_STRING): Defined.
30020 (RISCV_DONT_CARE_VERSION): Defined.
30021 (riscv_subset_t): Declare.
30022 (riscv_subset_t::riscv_subset_t): New.
30023 (riscv_subset_list): Declare.
30024 (riscv_subset_list::riscv_subset_list): New.
30025 (riscv_subset_list::~riscv_subset_list): Likewise.
30026 (riscv_subset_list::parsing_subset_version): Likewise.
30027 (riscv_subset_list::parse_std_ext): Likewise.
30028 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30029 (riscv_subset_list::add): Likewise.
30030 (riscv_subset_list::lookup): Likewise.
30031 (riscv_subset_list::xlen): Likewise.
30032 (riscv_subset_list::parse): Likewise.
30033 (riscv_supported_std_ext): Likewise.
30034 (current_subset_list): Likewise.
30035 (riscv_parse_arch_string): Using riscv_subset_list::parse to
30036 parse.
30037
30038 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
30039
30040 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30041 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
30042 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
30043
30044 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
30045
30046 PR rtl-optimization/85899
30047 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
30048 fallthru edges leading to the exit block.
30049
30050 2019-03-01 Tamar Christina <tamar.christina@arm.com>
30051
30052 PR target/89517
30053 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
30054 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
30055
30056 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
30057
30058 PR tree-optimization/89535
30059 * tree-vect-stmts.c (vectorizable_call): Record the vector types
30060 for each operand. Calculate the fallback choice for mask operands
30061 and pass it to vect_get_vec_def_for_operand.
30062
30063 2019-03-01 Richard Biener <rguenther@suse.de>
30064
30065 PR middle-end/89541
30066 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
30067 get virtual operands.
30068 (get_expr_operands): Handle CONST_DECL like other decls.
30069
30070 2019-03-01 Jakub Jelinek <jakub@redhat.com>
30071
30072 PR middle-end/89503
30073 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
30074 on DECL_P and EXPR_P.
30075
30076 2019-03-01 Richard Biener <rguenther@suse.de>
30077
30078 PR middle-end/89497
30079 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
30080 argument, defaulted to zero.
30081 * passes.c (execute_function_todo): Pass down SSA update flags
30082 to cleanup_tree_cfg.
30083 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
30084 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
30085 form if requested.
30086 (cleanup_tree_cfg): Get and pass down SSA update flags.
30087
30088 2019-03-01 Jakub Jelinek <jakub@redhat.com>
30089
30090 PR bootstrap/89539
30091 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
30092 early_lto_debug argument.
30093
30094 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
30095
30096 PR tree-optimization/89536
30097 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
30098 only whether bit #0 of the value is 0 instead of the entire value.
30099
30100 2019-02-28 Marek Polacek <polacek@redhat.com>
30101
30102 PR c++/87068 - missing diagnostic with fallthrough statement.
30103 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
30104 at the end of a seq, save its location to walk_stmt_info.
30105 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
30106 a switch.
30107
30108 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
30109
30110 PR lto/88585
30111 * tree.c (find_atomic_core_type): Move ahead in file.
30112 (check_base_type): Correctly compare alignments of atomic types.
30113
30114 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
30115
30116 PR target/89455
30117 * config/i386/i386.c (get_builtin_code_for_version): Identify
30118 Westmere from PCLMUL, instead of AES.
30119
30120 2019-02-28 Jakub Jelinek <jakub@redhat.com>
30121
30122 PR target/89434
30123 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
30124 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
30125 -UINTVAL (...).
30126
30127 2019-02-28 Tamar Christina <tamar.christina@arm.com>
30128
30129 PR target/88530
30130 * config/aarch64/aarch64-option-extensions.def: Document it.
30131 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
30132 if empty hwcaps.
30133
30134 2019-02-28 Jakub Jelinek <jakub@redhat.com>
30135
30136 PR c/89520
30137 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
30138 builtins if they don't have a single scalar floating point argument.
30139 Formatting fixes.
30140
30141 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
30142
30143 PR rtl-optimization/89490
30144 * varasm.c (get_block_for_section): Bail out for mergeable sections.
30145 (default_use_anchors_for_symbol_p, output_object_block): Assert the
30146 block section is not mergeable.
30147
30148 2019-02-27 Jakub Jelinek <jakub@redhat.com>
30149
30150 PR target/70341
30151 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
30152 old define_insn to ...
30153 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
30154 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
30155 Rename old define_insn to ...
30156 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
30157 (thumb2_casesi_internal_pic): New define_expand. Rename old
30158 define_insn to ...
30159 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
30160 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
30161 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
30162
30163 2019-02-27 Richard Biener <rguenther@suse.de>
30164
30165 PR debug/88878
30166 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
30167
30168 2019-02-27 Richard Biener <rguenther@suse.de>
30169
30170 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
30171 building.
30172
30173 2019-02-27 Richard Biener <rguenther@suse.de>
30174
30175 PR debug/88878
30176 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
30177 parameter, prefix section name with .gnu.debuglto_ if true.
30178 (dwarf2out_finish): Pass false to output_comdat_type_unit.
30179 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
30180
30181 2019-02-27 Richard Biener <rguenther@suse.de>
30182
30183 PR debug/89514
30184 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
30185 rather than on use_debug_types, doing what output_die does.
30186 (value_format): Likewise.
30187
30188 2019-02-27 Martin Jambor <mjambor@suse.cz>
30189 Martin Sebor <msebor@redhat.com>
30190
30191 * doc/invoke.texi (Warning Options): Reword description of
30192 -Wno-absolute-value.
30193
30194 2019-02-27 Jakub Jelinek <jakub@redhat.com>
30195
30196 PR tree-optimization/89280
30197 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
30198 builtin_setjmp_setup_bb): New functions.
30199 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
30200 When visiting __builtin_setjmp_setup block, queue in special
30201 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
30202 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
30203 from visited after the loop if they don't have any visited successor
30204 blocks.
30205
30206 2018-02-26 Steve Ellcey <sellcey@marvell.com>
30207
30208 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
30209 New function.
30210 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
30211
30212 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30213
30214 PR c++/89507
30215 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
30216 with types other than sizetype/ssizetype.
30217
30218 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
30219
30220 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
30221 (enum sparc_processor_type): ...this.
30222 (enum sparc_code_model_type): New enumeration type.
30223 (enum sparc_memory_model_type): Tweak comments.
30224 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
30225 (mtune): Likewise.
30226 (mcmodel): Use sparc_code_model enumeration and variable.
30227 (sparc_code_model): New enumeration.
30228 (mdebug): Add Undocumented marker.
30229 * config/sparc/sparc.h (enum cmodel): Delete.
30230 (sparc_cmodel): Likewise.
30231 (TARGET_CM_MEDLOW): Adjust to above renaming.
30232 (TARGET_CM_MEDMID): Likewise.
30233 (TARGET_CM_MEDANY): Likewise.
30234 (TARGET_CM_EMBMEDANY): Likewise.
30235 * config/sparc/sparc.c (sparc_cmodel): Delete.
30236 (sparc_option_override): Remove string/value mapping support for the
30237 code model. Move code and memory model support to after the handling
30238 of target flags. Do private machine setup last.
30239 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
30240 (sparc_legitimize_reload_address): Likewise.
30241 (sparc_output_mi_thunk): Likewise.
30242 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
30243
30244 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30245
30246 PR tree-optimization/89500
30247 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
30248 (handle_builtin_strlen): Remove noncst_bound variable. Always
30249 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
30250 cst if the first cst bytes starting at x are known to be non-zero,
30251 even if the string is not zero terminated. Don't try to modify
30252 *si for strnlen. Update strlen_to_stridx only for strlen or if
30253 we can prove strnlen returns the same value as strlen would.
30254
30255 2019-02-26 Martin Liska <mliska@suse.cz>
30256
30257 * alloc-pool.h (struct pool_usage): Remove extra
30258 print_dash_line.
30259 * bitmap.h (struct bitmap_usage): Likewise.
30260 * ggc-common.c (struct ggc_usage): Likewise.
30261 * mem-stats.h (struct mem_usage): Likewise.
30262 (mem_alloc_description::dump): Print dash lines
30263 here and repeat header at the end of a table report.
30264 It's then more readable.
30265 * tree-phinodes.c (phinodes_print_statistics): Make
30266 horizontal alignment.
30267 * tree-ssanames.c (ssanames_print_statistics): Likewise.
30268 * vec.c (struct vec_usage): Remove extra print_dash_line.
30269 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
30270
30271 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
30272
30273 * doc/extend.texi (__builtin_object_size):
30274 Use @pxref instead of @xref inside parenthesis.
30275 (__builtin_has_attribute): Add missing comma after @xref.
30276 (__builtin_object_size): Ditto.
30277 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
30278
30279 2019-02-26 Jeff Law <law@redhat.com>
30280
30281 PR rtl-optimization/87761
30282 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
30283 detect obviously dead insns and delete them.
30284
30285 2019-02-26 Richard Biener <rguenther@suse.de>
30286
30287 PR tree-optimization/89505
30288 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
30289 to handle restrict pointed-to vars with multiple subvars
30290 correctly.
30291
30292 2019-02-26 Richard Biener <rguenther@suse.de>
30293
30294 PR tree-optimization/89489
30295 * tree-parloops.c (create_loop_fn): Copy over last_clique.
30296
30297 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
30298
30299 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
30300 and move around comment.
30301 <BIT_AND_EXPR>: Likewise.
30302 <BIT_NOT_EXPR>: Add specific handling for boolean types.
30303
30304 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30305
30306 PR target/89474
30307 * config/i386/i386.c (remove_partial_avx_dependency): Call
30308 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
30309 after changing possibly many instructions to use that pseudo. Fix up
30310 insertion of v4sf_const0 setter at the start of bb.
30311
30312 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
30313
30314 PR c/80409
30315 * doc/extend.texi (Variadic Pointer Args): New section.
30316
30317 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
30318 Martin Sebor <msebor@gmail.com>
30319
30320 * common.opt (Wattribute-alias): Likewise.
30321 * doc/invoke.texi (Option Summary): List general form of
30322 -Wattribute-alias=. List positive form of -Wmissing-attributes.
30323 (-Wmissing-attributes): Invert entry, rewrite and correct default.
30324 Add cross-references.
30325 (-Wattribute-alias): Rewrite and correct default. Mention
30326 considered attributes (same as for -Wmissing-attributes).
30327
30328 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
30329
30330 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
30331 (_mm_cvtpd_ps): Likewise.
30332 (_mm_cvttpd_epi32): Likewise.
30333
30334 PR target/89338
30335 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
30336 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
30337
30338 PR target/89339
30339 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
30340
30341 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30342
30343 PR target/88530
30344 * common/config/aarch64/aarch64-common.c
30345 (struct aarch64_option_extension): Add is_synthetic.
30346 (all_extensions): Use it.
30347 (TARGET_OPTION_INIT_STRUCT): Define hook.
30348 (struct gcc_targetm_common): Moved to end.
30349 (all_extensions_by_on): New.
30350 (opt_ext_cmp, typedef opt_ext): New.
30351 (aarch64_option_init_struct): New.
30352 (aarch64_contains_opt): New.
30353 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
30354 * config/aarch64/aarch64-option-extensions.def
30355 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
30356 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
30357 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
30358 Set is_synthetic to false.
30359 (crypto): Set is_synthetic to true.
30360 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
30361 SYNTHETIC.
30362
30363 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30364
30365 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
30366 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
30367 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
30368 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
30369 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
30370 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
30371 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
30372 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
30373 Rename ...
30374 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
30375 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
30376 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
30377 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
30378 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
30379 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
30380 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
30381 vfmlsl_laneq_high_f16): ... To this.
30382 * config/arm/neon.md: Update comments.
30383
30384 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30385
30386 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
30387 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
30388 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
30389 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
30390 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
30391 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
30392 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
30393 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
30394 Rename ...
30395 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
30396 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
30397 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
30398 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
30399 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
30400 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
30401 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
30402 vfmlslq_laneq_high_f16): ... To this.
30403
30404 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
30405
30406 PR rtl-optimization/86096
30407 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
30408 comparing mw_order values.
30409
30410 2019-02-25 Jakub Jelinek <jakub@redhat.com>
30411
30412 PR target/89434
30413 * config/arm/arm.md (*subsi3_carryin_const): Use
30414 arm_neg_immediate_operand predicate instead of
30415 arm_not_immediate_operand, "L" constraint instead of "K" and
30416 print it using %n2 instead of %B2.
30417 (*subsi3_carryin_const0): New define_insn.
30418 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
30419 instead of arm_not_operand and "I" constraint instead of "K" and
30420 print it using %n3 instead of %B2. Instead of using match_dup 2 add
30421 another match_operand and in the condition check that it is negation
30422 of operands[2].
30423 (*subsi3_carryin_compare_const0): New define_ins.
30424 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
30425 *subsi3_carryin_const.
30426 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
30427 split into *subsi3_carryin_compare_const0 if the highpart is zero.
30428
30429 PR target/89438
30430 * config/arm.vfp.md (*negdf2_vfp): Use
30431 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
30432 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
30433
30434 2019-02-24 Jakub Jelinek <jakub@redhat.com>
30435
30436 PR rtl-optimization/89445
30437 * simplify-rtx.c (simplify_ternary_operation): Don't use
30438 simplify_merge_mask on operands that may trap.
30439 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
30440 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
30441 second operand is CONST_VECTOR, check if any element could be zero.
30442 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
30443 their operands can trap.
30444
30445 2019-02-23 Martin Sebor <msebor@redhat.com>
30446
30447 * gimple-ssa-sprintf.c (target_strtol): Rename...
30448 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
30449 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
30450 check for range error.
30451
30452 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
30453
30454 PR driver/69471
30455 * opts-common.c (prune_options): Also prune joined switches
30456 with Negative and RejectNegative.
30457 * config/i386/i386.opt (march=): Add Negative(march=).
30458 (mtune=): Add Negative(mtune=).
30459 * doc/options.texi: Document Negative used together with Joined
30460 and RejectNegative.
30461
30462 2019-02-22 Martin Sebor <msebor@redhat.com>
30463
30464 * doc/extend.texi (Other Builtins): Add
30465 __builtin_is_constant_evaluated.
30466
30467 2019-02-22 Richard Biener <rguenther@suse.de>
30468
30469 PR tree-optimization/87609
30470 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
30471
30472 2019-02-22 Jeff Law <law@redhat.com>
30473
30474 PR rtl-optimization/87761
30475 * config/mips/mips.md: Add new combiner pattern to recognize
30476 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
30477
30478 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
30479
30480 PR target/89324
30481 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
30482 destination register in peepholes generating patterns for ADDS/SUBS.
30483 (add<mode>3_compare0,
30484 *addsi3_compare0_uxtw, add<mode>3_compareC,
30485 add<mode>3_compareV_imm, add<mode>3_compareV,
30486 *adds_<optab><ALLX:mode>_<GPI:mode>,
30487 *subs_<optab><ALLX:mode>_<GPI:mode>,
30488 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
30489 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
30490 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
30491 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
30492 sub<mode>3_compare1): Allow stack pointer for source register.
30493 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
30494
30495 2019-02-22 Martin Sebor <msebor@redhat.com>
30496
30497 PR tree-optimization/88993
30498 PR tree-optimization/88853
30499 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
30500 New helper.
30501 (sprintf_dom_walker::call_info::is_string_func): New helper.
30502 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
30503 for formatted string functions.
30504 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
30505
30506 2019-02-22 Martin Sebor <msebor@redhat.com>
30507
30508 PR c/89425
30509 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
30510 unreachable subexpressions.
30511
30512 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
30513 Hongtao Liu <hongtao.liu@intel.com>
30514 Sunil K Pandey <sunil.k.pandey@intel.com>
30515
30516 PR target/87007
30517 * config/i386/i386-passes.def: Add
30518 pass_remove_partial_avx_dependency.
30519 * config/i386/i386-protos.h
30520 (make_pass_remove_partial_avx_dependency): New.
30521 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
30522 New function.
30523 (pass_data_remove_partial_avx_dependency): New.
30524 (pass_remove_partial_avx_dependency): Likewise.
30525 (make_pass_remove_partial_avx_dependency): Likewise.
30526 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
30527 (*extendsfdf2): Add avx_partial_xmm_update.
30528 (truncdfsf2): Likewise.
30529 (*float<SWI48:mode><MODEF:mode>2): Likewise.
30530 (SF/DF conversion splitters): Disabled for TARGET_AVX.
30531
30532 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
30533
30534 PR middle-end/85598
30535 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
30536 analysis for pass.
30537
30538 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
30539
30540 PR target/89444
30541 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
30542 (PTA_SKYLAKE): Add PTA_AES.
30543 (PTA_GOLDMONT): Likewise.
30544
30545 2019-02-22 Sudakshina Das <sudi.das@arm.com>
30546
30547 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
30548 instruction if enabled.
30549 (aarch64_override_options): Remove reference to return address key.
30550
30551 2019-02-22 Richard Biener <rguenther@suse.de>
30552
30553 PR tree-optimization/89440
30554 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
30555 not necessary assert.
30556
30557 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
30558
30559 PR fortran/72741
30560 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
30561 (oacc_replace_fn_attrib_attr): ... this new function.
30562 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
30563 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
30564
30565 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30566
30567 * config/arm/arm-cpus.in (ares): Rename to...
30568 (neoverse-n1): ... This. Add ares as alias.
30569 * config/arm/arm-tables.opt: Regenerate.
30570 * config/arm/arm-tune.md: Likewise.
30571 * doc/invoke.txt (ARM Options): Document neoverse-n1.
30572
30573 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30574
30575 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
30576 * config/aarch64/aarch64-tune.md: Regenerate.
30577 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
30578
30579 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30580
30581 * config/aarch64/aarch64.c (ares_tunings): Rename to...
30582 (neoversen1_tunings): ... This.
30583 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
30584 (neoverse-n1): New CPU.
30585 * config/aarch64/aarch64-tune.md: Regenerate.
30586 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
30587
30588 2019-02-22 Richard Biener <rguenther@suse.de>
30589
30590 PR middle-end/87609
30591 * cfghooks.h (dependence_hash): New typedef.
30592 (struct copy_bb_data): New type.
30593 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
30594 (duplicate_block): Likewise.
30595 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
30596 (copy_bbs): Create and pass down copy_bb_data.
30597 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
30598 (rtl_duplicate_bb): Likewise.
30599 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
30600 remap dependence info.
30601
30602 2019-02-22 Richard Biener <rguenther@suse.de>
30603
30604 PR tree-optimization/87609
30605 * tree-core.h (tree_base): Document special clique values.
30606 * tree-inline.c (remap_dependence_clique): Do not use the
30607 special clique value of one.
30608 (maybe_set_dependence_info): Use clique one.
30609 (clear_dependence_clique): New callback.
30610 (compute_dependence_clique): Clear clique one from all refs
30611 before assigning it (again).
30612
30613 2019-02-21 Martin Sebor <msebor@redhat.com>
30614
30615 * doc/extend.texi (__clear_cache): Correct signature.
30616
30617 2019-02-21 Ian Lance Taylor <iant@golang.org>
30618
30619 PR go/89170
30620 * varasm.c (decode_addr_const): Call lookup_constant_def rather
30621 than output_constant_def.
30622 (add_constant_to_table): New static function.
30623 (output_constant_def): Call add_constant_to_table.
30624 (tree_output_constant_def): Likewise.
30625
30626 2019-02-21 Jakub Jelinek <jakub@redhat.com>
30627
30628 PR c++/89285
30629 * builtins.c (fold_builtin_arith_overflow): If first two args are
30630 INTEGER_CSTs, set intres and ovfres to constants rather than calls
30631 to ifn.
30632
30633 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
30634
30635 PR target/87412
30636 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
30637 error for -mindirect-branch/-mfunction-return with incompatible
30638 -fcf-protection.
30639
30640 2019-02-21 Jakub Jelinek <jakub@redhat.com>
30641
30642 PR bootstrap/88714
30643 * constraints.md (q): Remove.
30644 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
30645 instead of q.
30646
30647 2019-02-21 Martin Jambor <mjambor@suse.cz>
30648
30649 PR hsa/89302
30650 * omp-general.c (omp_extract_for_data): Removed a duplicate call
30651 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
30652 (omp_adjust_for_condition): ...here. Added necessary parameters.
30653 * omp-general.h (omp_adjust_for_condition): Updated declaration.
30654 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
30655 proper values to new parameters of omp_adjust_for_condition.
30656
30657 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30658
30659 PR middle-end/89412
30660 * expr.c (expand_assignment): If result is a MEM, use change_address
30661 instead of simplify_gen_subreg.
30662
30663 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30664 David Malcolm <dmalcolm@redhat.com>
30665
30666 PR middle-end/89091
30667 * fold-const.c (decode_field_reference): Return NULL_TREE if
30668 lang_hooks.types.type_for_size returns NULL. Check it before
30669 overwriting *exp_. Use return NULL_TREE instead of return 0.
30670
30671 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30672
30673 PR middle-end/88074
30674 PR middle-end/89415
30675 * toplev.c (do_compile): Double the emin/emax exponents to workaround
30676 buggy mpc_norm.
30677
30678 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
30679
30680 PR target/89397
30681 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
30682 TARGET_SSE in addition to TARGET_SSE_MATH.
30683
30684 (ix86_excess_precision): Ditto.
30685 (ix86_float_exceptions_rounding_supported_p): Ditto.
30686 (use_rsqrt_p): Ditto.
30687 * config/i386/sse.md (rsqrt<mode>2): Ditto.
30688
30689 2019-02-20 David Malcolm <dmalcolm@redhat.com>
30690
30691 PR c/89410
30692 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
30693 linenum_arith_t when determining if two adjacent line spans are
30694 close enough to merge.
30695 (diagnostic_show_locus): Use linenum_arith_t when iterating over
30696 lines within each line_span.
30697
30698 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
30699
30700 PR target/86487
30701 * lra-constraints.c(uses_hard_regs_p): Fix handling of
30702 paradoxical SUBREGS.
30703
30704 2019-02-20 Li Jia He <helijia@linux.ibm.com>
30705
30706 PR target/88100
30707 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
30708 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
30709 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
30710 range checking it.
30711
30712 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
30713
30714 * config/gcn/gcn.c (print_operand): Fix typo.
30715
30716 2019-02-19 Richard Biener <rguenther@suse.de>
30717
30718 PR middle-end/88074
30719 * toplev.c (do_compile): Initialize mpfr's exponent range
30720 based on available float modes.
30721
30722 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
30723
30724 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
30725 as long as the epilogue isn't completed.
30726
30727 2019-02-18 Martin Sebor <msebor@redhat.com>
30728
30729 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
30730 __has_cpp_attribute, and __has_include.
30731
30732 2019-02-18 Martin Sebor <msebor@redhat.com>
30733
30734 * doc/invoke.texi (-Wreturn-type): Correct and expand.
30735
30736 2019-02-18 Martin Sebor <msebor@redhat.com>
30737
30738 PR middle-end/89294
30739 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
30740 expression.
30741 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
30742
30743 2019-02-18 Richard Biener <rguenther@suse.de>
30744
30745 PR tree-optimization/89296
30746 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
30747 of no-warning flag to cases that might emit the bogus warning.
30748
30749 2019-02-18 Jakub Jelinek <jakub@redhat.com>
30750
30751 PR bootstrap/88714
30752 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
30753 "q" constraint.
30754 * config/arm/vfp.md (*movdi_vfp): Likewise.
30755 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
30756 "q" constraint for operands[0].
30757
30758 PR target/89369
30759 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
30760 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
30761 pattern in a temporary buffer.
30762 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
30763 than 64-operands[2].
30764
30765 PR target/89361
30766 * config/s390/s390.c (s390_indirect_branch_attrvalue,
30767 s390_indirect_branch_settings): Define unconditionally.
30768 (s390_set_current_function): Likewise, but guard the whole body except
30769 the s390_indirect_branch_settings call with
30770 #if S390_USE_TARGET_ATTRIBUTE.
30771 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
30772
30773 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
30774 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
30775 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
30776 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
30777 HOST_WIDE_INT_1U instead of 1ULL.
30778 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
30779 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
30780 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
30781 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
30782 instead of 1UL.
30783 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
30784 instead of 1ul.
30785
30786 2019-02-18 Martin Jambor <mjambor@suse.cz>
30787
30788 PR tree-optimization/89209
30789 * tree-sra.c (create_access_replacement): New optional parameter
30790 reg_tree. Use it as a type if non-NULL and access type is not of
30791 a register type.
30792 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
30793 to create_access_replacement.
30794 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
30795 Check lacc is non-NULL before attempting to re-create it on the RHS.
30796
30797 2019-02-18 Martin Liska <mliska@suse.cz>
30798
30799 PR ipa/89306
30800 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
30801 by default.
30802 (symbol_table::free_edge): Recycle m_summary_id.
30803 * cgraph.h (get_summary_id): New.
30804 (symbol_table::release_symbol): Set m_summary_id to -1
30805 by default.
30806 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
30807 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
30808 function_summary to fast_function_summary.
30809 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
30810 * ipa-pure-const.c (class funct_state_summary_t):
30811 Switch from function_summary to fast_function_summary.
30812 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
30813 (class ipa_ref_opt_summary_t): Switch from function_summary
30814 to fast_function_summary.
30815 * symbol-summary.h (class function_summary_base): New class
30816 that is created from base of former function_summary.
30817 (function_summary_base::unregister_hooks): New.
30818 (class function_summary): Inherit from function_summary_base.
30819 (class call_summary_base): New class
30820 that is created from base of former call_summary.
30821 (class call_summary): Inherit from call_summary_base.
30822 (struct is_same): New.
30823 (class fast_function_summary): New summary class.
30824 (class fast_call_summary): New summary class.
30825 * vec.h (vec_safe_grow_cleared): New function.
30826
30827 2019-02-18 Martin Liska <mliska@suse.cz>
30828
30829 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
30830 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
30831 * doc/tm.texi: Document new target hook.
30832 * doc/tm.texi.in: Likewise.
30833 * target.def: Add new target macro.
30834 * gcc.c (find_fortran_preinclude_file): Do not search multilib
30835 suffixes.
30836
30837 2019-02-17 Alan Modra <amodra@gmail.com>
30838
30839 PR target/89271
30840 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
30841 output reg on add insn.
30842 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
30843
30844 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
30845
30846 PR target/89372
30847 * config/i386/sse.md (ssedoublemode): Remove V4HI.
30848 (PMULHRSW): Likewise.
30849 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
30850 TARGET_AVX2.
30851 (ssse3_pmulhrswv4hi3): New expander.
30852
30853 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
30854
30855 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
30856 MMX. Add isa attribute.
30857
30858 2019-02-16 Jakub Jelinek <jakub@redhat.com>
30859
30860 PR rtl-optimization/66152
30861 * builtins.h (c_readstr): Declare.
30862 * builtins.c (c_readstr): Remove forward declaration. Add
30863 null_terminated_p argument, if false, read all bytes from the
30864 string instead of stopping after '\0'.
30865 * expr.c (string_cst_read_str): New function.
30866 (store_expr): Use string_cst_read_str instead of
30867 builtin_strncpy_read_str. Try to store by pieces the whole
30868 exp_len first, and only if that fails, split it up into
30869 store by pieces followed by clear_storage. Formatting fix.
30870
30871 * config/i386/i386.md (*movqi_internal): Remove static from
30872 buf variable. Use output_asm_insn (buf, operands); return "";
30873 instead of return buf;.
30874 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
30875 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
30876 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
30877
30878 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
30879
30880 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
30881 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
30882 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
30883 (CC1_SPEC): Likewise.
30884 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
30885
30886 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
30887
30888 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
30889 the base address on 64-bit strict-alignment platforms.
30890
30891 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
30892
30893 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
30894
30895 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
30896
30897 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
30898
30899 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
30900
30901 PR rtl-optimization/88308
30902 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
30903 on copied instruction.
30904
30905 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
30906
30907 * final.c (insn_current_reference_address): Replace test on JUMP_P
30908 with test on jump_to_label_p.
30909 * config/visium/visium-passes.def: New file.
30910 * config/visium/t-visium (PASSES_EXTRA): Define.
30911 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
30912 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
30913 (TRAMPOLINE_ALIGNMENT): Define.
30914 * config/visium/visium.c (visium_option_override): Do not register
30915 the machine-specific reorg pass here.
30916 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
30917 for the GR6.
30918 (output_branch): Adjust threshold for long branch instruction.
30919 * config/visium/visium.md (cpu): Move around.
30920 (length): Adjust for the GR6.
30921
30922 2019-02-15 Richard Biener <rguenther@suse.de>
30923 Jakub Jelinek <jakub@redhat.com>
30924
30925 PR tree-optimization/89278
30926 * tree-loop-distribution.c: Include tree-eh.h.
30927 (generate_memset_builtin, generate_memcpy_builtin): Call
30928 rewrite_to_non_trapping_overflow on builtin->size before passing it
30929 to force_gimple_operand_gsi.
30930
30931 2019-02-15 Jakub Jelinek <jakub@redhat.com>
30932
30933 PR other/89342
30934 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
30935 optimize_debug.
30936 * opth-gen.awk: Likewise.
30937
30938 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
30939
30940 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
30941 Enable MMX, SSE and SSE2 by default.
30942 * config/i386/i386.c (ix86_option_override_internal): Do not
30943 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
30944
30945 2019-02-14 Jakub Jelinek <jakub@redhat.com>
30946
30947 PR rtl-optimization/89354
30948 * combine.c (make_extraction): Punt if extraction_mode is narrower
30949 than len bits.
30950
30951 2019-02-14 Maya Rashish <coypu@sdf.org>
30952
30953 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
30954 * config/netbsd-d.c: New file.
30955 * config/t-netbsd: Add netbsd-d.o
30956
30957 2018-02-14 Steve Ellcey <sellcey@marvell.com>
30958
30959 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
30960 affects_type_identity to true for aarch64_vector_pcs.
30961 (aarch64_comp_type_attributes): New function.
30962 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
30963
30964 2019-02-14 Tamar Christina <tamar.christina@arm.com>
30965
30966 PR target/88850
30967 * config/arm/iterators.md (ANY64): Add V4HF.
30968
30969 2019-02-14 Martin Liska <mliska@suse.cz>
30970
30971 PR rtl-optimization/89242
30972 * dce.c (delete_unmarked_insns): Call free_dominance_info we
30973 process a transformation.
30974
30975 2019-02-14 Jakub Jelinek <jakub@redhat.com>
30976
30977 PR tree-optimization/89314
30978 * fold-const.c (fold_binary_loc): Cast strlen argument to
30979 const char * before dereferencing it. Formatting fixes.
30980
30981 PR middle-end/89284
30982 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
30983
30984 2019-02-13 Ian Lance Taylor <iant@golang.org>
30985
30986 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
30987 and set current index for other optimizations.
30988
30989 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
30990
30991 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
30992 nonimmediate_operand as operand 2 predicate.
30993 (vec_set<VF2_512_256:mode>_0): Ditto.
30994 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
30995 (*vec_concatv2si): Remove alternative 2.
30996 (*vec_concatv4si_0): Use vm constraint for alternative 0.
30997 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
30998 (vec_concatv2di): Split alternatives 4,5,6 to ...
30999 (*vec_concatv2di_0) ... new pattern.
31000
31001 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
31002
31003 PR target/89190
31004 * config/arm/arm.c (ldm_stm_operation_p) Set
31005 addr_reg_in_reglist correctly for first register.
31006 (load_multiple_sequence): Remove dead base check.
31007 (gen_ldm_seq): Correctly set write_back for Thumb-1.
31008
31009 2019-02-13 Tamar Christina <tamar.christina@arm.com>
31010
31011 PR target/88847
31012 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
31013 Expose as @aarch64_pred_mov.
31014 * config/aarch64/aarch64.c (aarch64_classify_address):
31015 Use expand_insn which legitimizes operands.
31016
31017 2019-02-13 Martin Liska <mliska@suse.cz>
31018
31019 * builtins.h (expand_builtin_with_bounds): Remove declaration.
31020 * calls.c (struct arg_data): Remove special_slot, pointer_arg
31021 and pointer_offset fields.
31022 (initialize_argument_information): Remove usage of dead
31023 fields.
31024 * cgraph.h (struct cgraph_thunk_info): Remove
31025 add_pointer_bounds_args.
31026 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
31027 fields.
31028 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
31029 fields.
31030 * config/i386/i386.c (ix86_function_arg_advance): Remove
31031 unrelated comment.
31032 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
31033 (def_builtin): Remove usage of dead fields.
31034 (ix86_add_new_builtins): Likewise.
31035 * ipa-fnsummary.c (compute_fn_summary): Likewise.
31036 * ipa-icf.c (sem_function::equals_wpa): Likewise.
31037 (sem_function::init): Likewise.
31038 (sem_variable::merge): Likewise.
31039 * ipa-visibility.c (function_and_variable_visibility): Likewise.
31040 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
31041 * lto-cgraph.c (lto_output_node): Likewise.
31042 (lto_output_varpool_node): Likewise.
31043 (input_node): Likewise.
31044 (input_varpool_node): Likewise.
31045 * lto-streamer-out.c (lto_output): Likewise.
31046 * tree-inline.c (expand_call_inline): Remove usage of
31047 assign_stmts.
31048 * tree-inline.h (struct copy_body_data): Likewise.
31049 * varpool.c (varpool_node::dump): Likewise.
31050
31051 2019-02-13 Jakub Jelinek <jakub@redhat.com>
31052
31053 PR middle-end/89303
31054 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
31055 into pt->vars_contains_escaped_heap instead of setting
31056 pt->vars_contains_escaped_heap to it.
31057
31058 PR middle-end/89281
31059 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
31060 INTVAL (size), compare it to GET_MODE_MASK instead of
31061 1 << GET_MODE_BITSIZE.
31062
31063 PR target/89290
31064 * config/i386/predicates.md (x86_64_immediate_operand): Allow
31065 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
31066 -mcmodel=large.
31067
31068 2019-02-13 Martin Liska <mliska@suse.cz>
31069
31070 PR lto/88858
31071 * cfgrtl.c (remove_barriers_from_footer): New function.
31072 (try_redirect_by_replacing_jump): Use it.
31073 (cfg_layout_redirect_edge_and_branch): Likewise.
31074
31075 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
31076
31077 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
31078 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
31079 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
31080 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
31081 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
31082 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
31083 New BU_CRYPTO_2.
31084 * config/rs6000/rs6000.c (builtin_function_type)
31085 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
31086 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
31087 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
31088 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
31089 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
31090
31091 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
31092
31093 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
31094 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
31095
31096 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
31097
31098 PR target/89229
31099 * config/i386/i386.md (*movoi_internal_avx): Revert revision
31100 268678 and revision 268657.
31101 (*movti_internal): Likewise.
31102
31103 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
31104
31105 PR target/89233
31106 * config/s390/s390.c (s390_decompose_address): Update comment.
31107 (s390_check_qrst_address): Reject invalid address forms after
31108 LRA.
31109
31110 2019-02-12 Martin Liska <mliska@suse.cz>
31111
31112 PR lto/88876
31113 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
31114 we need default values of funct_state for a function that
31115 is not optimized.
31116
31117 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
31118
31119 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
31120 the object to pick the size of stores on strict-alignment platforms.
31121
31122 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
31123 (*movdi_insn_sp32): Likewise.
31124 (*movdi_insn_sp64): Likewise.
31125
31126 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
31127
31128 PR lto/88677
31129 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
31130 types that needs constructiong.
31131 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
31132
31133 2019-02-12 Richard Biener <rguenther@suse.de>
31134
31135 PR tree-optimization/89253
31136 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
31137 duplicate the loop.
31138
31139 2019-02-11 David Malcolm <dmalcolm@redhat.com>
31140
31141 PR lto/88147
31142 * input.c (selftest::test_line_offset_overflow): New selftest.
31143 (selftest::input_c_tests): Call it.
31144
31145 2019-02-11 Martin Sebor <msebor@redhat.com>
31146
31147 PR tree-optimization/88771
31148 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
31149 when -Wstringop-overflow is set.
31150 (builtin_memref::builtin_memref): Adjust excessive upper bound
31151 only when lower bound is not excessive.
31152 (maybe_diag_overlap): Detect and diagnose excessive bounds via
31153 -Wstringop-ovefflow.
31154 (maybe_diag_offset_bounds): Rename...
31155 (maybe_diag_access_bounds): ...to this.
31156 (check_bounds_or_overlap): Adjust for name change above.
31157
31158 2019-02-11 Martin Sebor <msebor@redhat.com>
31159
31160 PR c++/87996
31161 * builtins.c (max_object_size): Move from here...
31162 * builtins.h (max_object_size): ...and here...
31163 * tree.c (max_object_size): ...to here...
31164 * tree.h (max_object_size): ...and here.
31165
31166 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
31167
31168 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
31169 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
31170 for correct semantics.
31171
31172 2019-02-11 Alan Modra <amodra@gmail.com>
31173
31174 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
31175 -mlongcall and -mpltseq.
31176 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
31177 (RS/6000 and PowerPC Options <-mpltseq>): Document.
31178 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
31179 * config/rs6000/sysv4.opt (mpltseq): New option.
31180 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
31181 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
31182 support is lacking. Don't allow -mpltseq with -mbss-plt.
31183 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
31184 -mpltseq given for ELFv1.
31185 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
31186 Only use UNSPEC_PLTSEQ for inline PLT calls.
31187 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
31188 use UNSPEC_PLTSEQ for inline PLT calls.
31189 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
31190 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
31191 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
31192 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
31193 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
31194 (pltseq_mtctr_<mode>): Likewise.
31195
31196 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31197
31198 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
31199 Solaris ld.
31200 * configure: Regenerate.
31201
31202 2019-02-11 Jakub Jelinek <jakub@redhat.com>
31203
31204 PR bootstrap/88714
31205 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
31206 instead of r.
31207
31208 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
31209
31210 * function.c (assign_parm_setup_block): Use the stored
31211 size, not the passed size, when allocating stack-space,
31212 also for a parameter with alignment larger than
31213 MAX_SUPPORTED_STACK_ALIGNMENT.
31214
31215 2019-02-11 Martin Liska <mliska@suse.cz>
31216
31217 PR ipa/89009
31218 * ipa-cp.c (build_toporder_info): Remove usage of a param.
31219 * ipa-inline.c (inline_small_functions): Likewise.
31220 * ipa-pure-const.c (propagate_pure_const): Likewise.
31221 (propagate_nothrow): Likewise.
31222 * ipa-reference.c (propagate): Likewise.
31223 * ipa-utils.c (struct searchc_env): Remove unused field.
31224 (searchc): Always search across AVAIL_INTERPOSABLE.
31225 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
31226 the only called IPA pure const can properly not propagate
31227 across interposable boundary.
31228 * ipa-utils.h (ipa_reduced_postorder): Remove param.
31229
31230 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
31231
31232 * config/nds32/nds32.md (call_internal, call_value_internal,
31233 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
31234
31235 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
31236
31237 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
31238 typo.
31239
31240 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
31241
31242 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
31243 in comments
31244
31245 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
31246
31247 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
31248
31249 2019-02-10 Jakub Jelinek <jakub@redhat.com>
31250
31251 PR tree-optimization/89268
31252 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
31253 if preds is non-NULL.
31254
31255 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31256
31257 PR lto/89272
31258 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
31259 polymorphic types.
31260
31261 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
31262
31263 * config/nds32/nds32.md (trap): New pattern.
31264
31265 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
31266
31267 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
31268 dwarf span.
31269
31270 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
31271
31272 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
31273 to split POST_INC.
31274
31275 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31276
31277 * ipa-visibility.c (localize_node): Also do not localize
31278 LDPR_PREVAILING_DEF_IRONLY_EXP.
31279
31280 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31281
31282 PR lto/87957
31283 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
31284 instead of type_with_linkage.
31285
31286 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31287
31288 PR ipa/88755
31289 * params.def (uninlined-function-insns, uninlined-function-time,
31290 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
31291 bound so we don't get overflows.
31292
31293 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
31294
31295 * config/rs6000/rs6000-string.c (expand_compare_loop,
31296 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
31297 memcmp/strncmp.
31298
31299 2019-02-09 Jakub Jelinek <jakub@redhat.com>
31300
31301 PR middle-end/89246
31302 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
31303 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
31304 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
31305
31306 2019-02-09 Alan Modra <amodra@gmail.com>
31307
31308 PR target/88343
31309 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
31310 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
31311 setup.
31312
31313 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
31314
31315 PR middle-end/88560
31316 * lra-constraints.c (process_alt_operands): Don't increase reject
31317 for memory when offset memory is required.
31318
31319 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
31320
31321 * config/s390/vector.md: Implement vector copysign.
31322
31323 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
31324
31325 * expr.c (expand_constructor): Correct indentations.
31326
31327 2019-02-08 Richard Biener <rguenther@suse.de>
31328
31329 PR tree-optimization/89247
31330 * tree-if-conv.c: Include tree-cfgcleanup.h.
31331 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
31332 (tree_if_conversion): Pass through predicate vector.
31333 (pass_if_conversion::execute): Do CFG cleanup and SSA update
31334 inline, see if any if-converted loops we refrece in
31335 LOOP_VECTORIZED calls vanished and fixup.
31336 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
31337
31338 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
31339
31340 * config/s390/constraints.md (jdd): New constraint.
31341
31342 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
31343
31344 PR target/89229
31345 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
31346 upper 16 vector registers without TARGET_AVX512VL.
31347 (*movti_internal): Likewise.
31348
31349 2019-02-08 Jakub Jelinek <jakub@redhat.com>
31350
31351 PR rtl-optimization/89234
31352 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
31353 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
31354 (copy_reg_eh_region_note_backward): Likewise.
31355
31356 2019-02-08 Richard Biener <rguenther@suse.de>
31357
31358 PR middle-end/89223
31359 * tree-data-ref.c (initialize_matrix_A): Fail if constant
31360 doesn't fit in HWI.
31361 (analyze_subscript_affine_affine): Handle failure from
31362 initialize_matrix_A.
31363
31364 2019-02-08 Jakub Jelinek <jakub@redhat.com>
31365
31366 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
31367 cfun everywhere.
31368
31369 2019-02-07 David Malcolm <dmalcolm@redhat.com>
31370
31371 PR tree-optimization/86637
31372 PR tree-optimization/89235
31373 * tree-vect-loop.c (optimize_mask_stores): Add an
31374 auto_purge_vect_location sentinel to ensure that vect_location is
31375 purged on exit.
31376 * tree-vectorizer.c
31377 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
31378 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
31379 to ensure that vect_location is purged on exit.
31380 (pass_slp_vectorize::execute): Likewise, replacing the manual
31381 reset.
31382 * tree-vectorizer.h (class auto_purge_vect_location): New class.
31383
31384 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31385
31386 * config/aarch64/iterators.md (max_opp): New code_attr.
31387 (USMAX): New code iterator.
31388 * config/aarch64/predicates.md (aarch64_smin): New predicate.
31389 (aarch64_smax): Likewise.
31390 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
31391 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
31392 MINUS (MAX MIN).
31393
31394 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
31395
31396 PR target/89229
31397 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
31398 for TARGET_AVX512VL.
31399 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
31400
31401 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
31402
31403 * config/s390/s390-builtin-types.def: Add new types.
31404 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
31405 (s390_vec_xlw4): Make the memory operand into a const pointer.
31406 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
31407 float.
31408 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
31409 a new vector type with the alignment of the scalar memory operand.
31410
31411 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
31412 Jakub Jelinek <jakub@redhat.com>
31413
31414 PR bootstrap/88714
31415 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
31416 arm_count_ldrdstrd_insns): New declarations.
31417 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
31418 MINUS.
31419 (valid_operands_ldrd_strd): New function.
31420 (arm_count_ldrdstrd_insns): New function.
31421 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
31422 sets instead of single DImode set and define new insns to match this.
31423
31424 2019-02-07 Tamar Christina <tamar.christina@arm.com>
31425
31426 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
31427 Make it a C initializer.
31428
31429 2019-02-07 Tamar Christina <tamar.christina@arm.com>
31430
31431 PR/target 88850
31432 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
31433
31434 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31435
31436 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
31437 Use neon_dot<q> for type.
31438 (neon_<sup>dot_lane<vsi2qi>): Likewise.
31439
31440 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31441
31442 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
31443 Use neon_dot<q> for type.
31444 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
31445 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
31446
31447 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
31448
31449 PR rtl-optimization/89225
31450 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
31451 sizes check.
31452
31453 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
31454
31455 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
31456 after restoring registers saved to allocate the frame on Windows.
31457
31458 2019-02-06 Richard Biener <rguenther@suse.de>
31459
31460 PR tree-optimization/89182
31461 * graphite.h (cached_scalar_evolution_in_region): Declare.
31462 * graphite.c (struct seir_cache_key): New.
31463 (struct sese_scev_hash): Likewise.
31464 (seir_cache): New global.
31465 (cached_scalar_evolution_in_region): New function.
31466 (graphite_transform_loops): Allocate and release seir_cache.
31467 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
31468 cached_scalar_evolution_in_region.
31469 * graphite-scop-detection.c (scop_detection::can_represent_loop):
31470 Simplify.
31471 (scop_detection::graphite_can_represent_expr: Use
31472 cached_scalar_evolution_in_region.
31473 (scop_detection::stmt_simple_for_scop_p): Likewise.
31474 (find_params_in_bb): Likewise.
31475 (gather_bbs::before_dom_children): Likewise.
31476 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
31477 (add_loop_constraints): Likewise.
31478
31479 2019-02-06 Jakub Jelinek <jakub@redhat.com>
31480
31481 PR middle-end/89210
31482 * fold-const-call.c (fold_const_vec_convert): Pass true as last
31483 operand to new_unary_operation only if both element types are integral
31484 and it isn't a widening conversion. Return NULL_TREE if
31485 new_unary_operation failed.
31486
31487 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
31488
31489 PR target/88856
31490 * config/s390/s390.md: Remove load and test FP splitter.
31491
31492 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
31493
31494 PR target/89112
31495 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
31496 expand_compare_loop, expand_block_compare_gpr,
31497 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
31498 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
31499 #include "profile-count.h" and "predict.h" for types and functions
31500 needed to work with REG_BR_PROB notes.
31501
31502 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
31503
31504 PR target/89112
31505 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
31506 for the long branch case.
31507
31508 2019-02-05 Jakub Jelinek <jakub@redhat.com>
31509
31510 PR target/89188
31511 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
31512 can throw, non-call exceptions are enabled and we can't delete
31513 dead exceptions or alter cfg. Set must_clean if
31514 delete_insn_and_edges returns true, don't set it blindly for calls.
31515 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
31516
31517 PR rtl-optimization/89195
31518 * combine.c (make_extraction): For MEMs, don't extract bytes outside
31519 of the original MEM.
31520
31521 2019-02-05 Martin Liska <mliska@suse.cz>
31522
31523 PR gcov-profile/89000
31524 * gcov.c (function_summary): Remove argument.
31525 (file_summary): New function.
31526 (print_usage): Replace tabs with spaces.
31527 (generate_results): Use new function file_summary.
31528
31529 2019-02-05 Jakub Jelinek <jakub@redhat.com>
31530
31531 PR target/89186
31532 * optabs.c (prepare_cmp_insn): Pass x and y to
31533 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
31534
31535 2019-02-05 Richard Biener <rguenther@suse.de>
31536
31537 PR middle-end/89150
31538 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
31539 (struct bitmap_element): Drop chain_prev so we properly recurse on
31540 the prev member, supporting tree views.
31541 (struct bitmap_head): GTY skip the obstack member.
31542
31543 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
31544
31545 PR c/88698
31546 * doc/extend.texi (Vector Extensions): Add an example of using vector
31547 types together with x86 intrinsics.
31548
31549 2019-02-04 Alan Modra <amodra@gmail.com>
31550
31551 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
31552 str[] size to 160, and comment.
31553
31554 2019-02-04 Alan Modra <amodra@gmail.com>
31555
31556 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
31557 (rs6000_pltseq_template): Guard output of TLS markers with
31558 TARGET_TLS_MARKERS.
31559 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
31560 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
31561 to use inline PLT sequences.
31562 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
31563 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
31564 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
31565
31566 2019-02-04 Martin Liska <mliska@suse.cz>
31567
31568 PR ipa/88985
31569 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
31570 out when ipa_fn_summaries does not contain entry for callee.
31571
31572 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
31573
31574 * config/sparc/sparc.h: Remove superfluous blank lines.
31575 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
31576 (got_register_rtx): ...this.
31577 (sparc_got): Adjust to above renaming.
31578 (sparc_tls_got): Likewise.
31579 (sparc_delegitimize_address): Likewise.
31580 (sparc_output_mi_thunk): Likewise.
31581 (sparc_init_pic_reg): Likewise.
31582 (save_local_or_in_reg_p): Fix test on the GOT register.
31583 (USE_HIDDEN_LINKONCE): Move around.
31584 (get_pc_thunk_name): Likewise.
31585 (gen_load_pcrel_sym): Likewise.
31586 (load_got_register): Likewise.
31587
31588 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
31589
31590 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
31591 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
31592
31593 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
31594
31595 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
31596 into consideration.
31597
31598 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
31599
31600 * config.gcc (with_nds32_lib, glibc):
31601 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
31602 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
31603 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
31604
31605 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
31606
31607 PR target/89071
31608 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
31609 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
31610 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
31611 (*rcpsf2_sse): Ditto.
31612 (*rsqrtsf2_sse): Ditto.
31613 (sse4_1_round<mode<2): Ditto.
31614
31615 2019-02-03 Richard Biener <rguenther@suse.de>
31616
31617 PR debug/87295
31618 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
31619 orig.
31620
31621 2019-02-02 Jakub Jelinek <jakub@redhat.com>
31622
31623 PR middle-end/87887
31624 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
31625 Punt with warning on aggregate return or argument types. Ignore
31626 type/mode checking for uniform arguments.
31627
31628 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
31629
31630 * combine.c (try_combine): Do not print "Can't combine" messages unless
31631 printing failed combination attempts.
31632
31633 2019-02-01 Martin Jambor <mjambor@suse.cz>
31634
31635 PR hsa/87863
31636 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
31637 segment and global segment variables before making them static.
31638
31639 2019-02-01 Martin Jambor <mjambor@suse.cz>
31640
31641 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
31642 missed optimization dump with dump_enabled_p.
31643
31644 2019-02-01 Richard Biener <rguenther@suse.de>
31645
31646 PR middle-end/88597
31647 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
31648 the instantiate cache.
31649 (instantiate_scev_binary): Elide second operand procesing
31650 if equal to the first.
31651 * tree-chrec.c (chrec_contains_symbols): Add visited set.
31652 (chrec_contains_undetermined): Likewise.
31653 (tree_contains_chrecs): Likewise.
31654
31655 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
31656
31657 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
31658
31659 2019-02-01 Jakub Jelinek <jakub@redhat.com>
31660
31661 PR tree-optimization/89143
31662 * wide-int-range.h (wide_int_range_absu): Declare.
31663 * wide-int-range.cc (wide_int_range_absu): New function.
31664 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
31665
31666 PR tree-optimization/88107
31667 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
31668 instead of assertion that eh_region_outermost is non-NULL, if it
31669 is NULL, set *ALL to true and return NULL.
31670 (move_sese_region_to_fn): Adjust caller, if all is set, call
31671 duplicate_eh_regions with NULL region.
31672
31673 2019-02-01 Richard Biener <rguenth@suse.de>
31674
31675 PR rtl-optimization/88593
31676 * mode-switching.c (optimize_mode_switching): Free dominators before
31677 calling cleanup_cfg.
31678
31679 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
31680
31681 PR tree-optimization/88932
31682 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
31683
31684 2019-01-31 Jakub Jelinek <jakub@redhat.com>
31685
31686 PR middle-end/89137
31687 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
31688 bogus clang warning.
31689
31690 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
31691
31692 PR target/89071
31693 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
31694 alternative to avoid partial SSE register stall for TARGET_AVX.
31695 (truncdfsf2): Ditto.
31696 (sse4_1_round<mode>2): Ditto.
31697
31698 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
31699
31700 PR tree-optimization/89008
31701 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
31702 process anything of the form X * 0.
31703
31704 2019-01-31 Richard Biener <rguenther@suse.de>
31705
31706 PR tree-optimization/89135
31707 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
31708 with abnormal preds.
31709
31710 2019-01-31 Jakub Jelinek <jakub@redhat.com>
31711
31712 PR sanitizer/89124
31713 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
31714 always_inline callees into no_sanitize_address callers.
31715
31716 2019-01-31 Richard Biener <rguenther@suse.de>
31717
31718 PR rtl-optimization/89115
31719 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
31720
31721 2019-01-30 Martin Sebor <msebor@redhat.com>
31722
31723 PR other/89106
31724 * doc/extend.texi (cast to a union): Correct and expand.
31725
31726 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
31727
31728 PR rtl-optimization/87246
31729 * lra-constraints.c (simplify_operand_subreg): Reload memory
31730 in subreg if the address became invalid.
31731
31732 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
31733
31734 PR target/87064
31735 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
31736 Disable for little-endian.
31737
31738 2019-01-30 Richard Biener <rguenther@suse.de>
31739
31740 PR rtl-optimization/89115
31741 * opts.c (default_options_optimization): Reduce
31742 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
31743 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
31744 to the default.
31745
31746 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
31747
31748 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
31749 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
31750 type of vector element when vec_extract is implemented by direct
31751 move.
31752
31753 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
31754
31755 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
31756
31757 2019-01-30 Richard Biener <rguenther@suse.de>
31758
31759 PR tree-optimization/89111
31760 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
31761 canonicalization to appropriately sized access types.
31762
31763 2019-01-30 Jakub Jelinek <jakub@redhat.com>
31764
31765 PR c++/89105
31766 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
31767 for arguments to functions that are TU-local and shouldn't be
31768 referenced by assembly.
31769
31770 2019-01-30 Ulrich Drepper <drepper@redhat.com>
31771
31772 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
31773 after '='.
31774
31775 2019-01-29 Martin Sebor <msebor@redhat.com>
31776
31777 PR c/88956
31778 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
31779
31780 2019-01-29 Jakub Jelinek <jakub@redhat.com>
31781
31782 PR c++/66676
31783 PR ipa/89104
31784 * omp-simd-clone.c (simd_clone_clauses_extract)
31785 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
31786 OMP_CLAUSE_ALIGNED_ALIGNMENT.
31787
31788 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
31789
31790 * config.gcc: Force .init_array for ARC.
31791
31792 2019-01-29 Richard Biener <rguenther@suse.de>
31793
31794 PR debug/87295
31795 * dwarf2out.c (collect_skeleton_dies): New helper.
31796 (copy_decls_for_unworthy_types): Call it.
31797 (build_abbrev_table): Assert we do not try to replace
31798 DW_AT_signature refs with local refs.
31799
31800 2019-01-28 Jakub Jelinek <jakub@redhat.com>
31801
31802 PR middle-end/89002
31803 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
31804 for lastprivate/linear IV, push gimplify context around gimplify_assign
31805 and, if it needed any temporaries, pop it into a gimple bind around the
31806 sequence.
31807
31808 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
31809
31810 * common.opt (-Wattribute-alias): Remove "no-" from name.
31811 Make -Wattribute-alias command line option and
31812 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
31813
31814 2019-01-28 Jakub Jelinek <jakub@redhat.com>
31815
31816 PR target/89073
31817 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
31818 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
31819 x86 ISA options.
31820 (bmi2): Add missing @opindex.
31821 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
31822 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
31823 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
31824 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
31825 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
31826 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
31827 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
31828 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
31829 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
31830 xsavec, xsaveopt and xsaves options.
31831
31832 2019-01-28 Richard Biener <rguenther@suse.de>
31833
31834 PR debug/89076
31835 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
31836 support removal.
31837
31838 2019-01-28 Richard Biener <rguenther@suse.de>
31839
31840 PR tree-optimization/88739
31841 * tree-cfg.c (verify_types_in_gimple_reference): Verify
31842 BIT_FIELD_REFs only are applied to mode-precision operands
31843 when they are integral.
31844 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
31845 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
31846 BIT_FIELD_REFs of non-mode-precision integral operands.
31847
31848 2019-01-27 Jakub Jelinek <jakub@redhat.com>
31849
31850 PR target/87214
31851 * config/i386/sse.md
31852 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
31853 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
31854 first constants in pairs are multiples of 2. Formatting fixes.
31855 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
31856 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
31857 first constants in each quadruple are multiples of 4. Formatting fixes.
31858
31859 2019-01-26 Martin Jambor <mjambor@suse.cz>
31860
31861 PR ipa/88933
31862 * tree-inline.c: Include tree-cfgcleanup.h.
31863 (delete_unreachable_blocks_update_callgraph): Move...
31864 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
31865 ...here, make externally visible, make second argument bool, adjust
31866 all callers.
31867 * tree-cfgcleanup.c: Include cgraph.h.
31868 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
31869 Declare.
31870 * ipa-prop.c: Include tree-cfgcleanup.h.
31871 (ipcp_transform_function): Call
31872 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
31873
31874 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
31875
31876 PR rtl-optimization/88846
31877 * ira.c (process_set_for_memref_referenced_p): New.
31878 (memref_referenced_p): Add new param. Use
31879 process_set_for_memref_referenced_p. Add new switch cases.
31880 (memref_used_between_p): Pass new arg to memref_referenced_p.
31881
31882 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
31883
31884 PR target/88469
31885 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
31886 argument ABI_BREAK. Set to true if the calculated alignment has
31887 changed in gcc-9. Check bit-fields for their base type alignment.
31888 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
31889 (aarch64_function_arg_boundary): Likewise.
31890 (aarch64_gimplify_va_arg_expr): Likewise.
31891
31892 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
31893
31894 PR middle-end/89037
31895 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
31896 instead of accessing TREE_INT_CST_ELT directly.
31897
31898 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
31899
31900 * doc/sourcebuild.texi (Environment attributes): Add fenv and
31901 fenv_exceptions description.
31902
31903 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
31904
31905 PR rtl-optimization/87763
31906 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
31907 Allow SUBREG when matching CC_NZmode compare.
31908
31909 2019-01-25 Richard Biener <rguenther@suse.de>
31910
31911 PR tree-optimization/89049
31912 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
31913 Look at the pattern stmt to determine if the stmt is vectorized.
31914
31915 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
31916
31917 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
31918 (pred_mov<mode>): Handle all-register forms using both a new
31919 alternative and a split.
31920
31921 2019-01-25 Richard Biener <rguenther@suse.de>
31922
31923 PR tree-optimization/86865
31924 * graphite-scop-detection.c (scop_detection::can_represent_loop):
31925 Reject non-do-while loops.
31926
31927 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
31928
31929 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
31930 * config/rs6000/constraints.md (Q constraint): Use REG_P.
31931 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
31932 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
31933 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
31934 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
31935 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
31936 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
31937 vlogical_operand, gpc_reg_operand, int_reg_operand,
31938 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
31939 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
31940 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
31941 (save_world_operation, restore_world_operation, lmw_operation,
31942 stmw_operation): Use MEM_P and REG_P.
31943 (tie_operand): Use MEM_P.
31944 (vrsave_operation, crsave_operation): Use REG_P.
31945 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
31946 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
31947 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
31948 (call_operand): Use HARD_REGISTER_P.
31949 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
31950 Use CONST_INT_P.
31951 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
31952 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
31953 quad_aligned_load_p, replace_swapped_aligned_store,
31954 recombine_lvx_pattern, replace_swapped_aligned_load,
31955 recombine_stvx_pattern): Use MEM_P.
31956 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
31957 Use MEM_P and SYMBOL_REF_P.
31958 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
31959 (insn_is_swappable_p): Use REG_P and MEM_P.
31960 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
31961 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
31962 Use CONST_INT_P.
31963 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
31964 Use CONST_DOUBLE_P.
31965 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
31966 CONST_WIDE_INT_P.
31967 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
31968 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
31969 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
31970 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
31971 reg_or_subregno:
31972 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
31973 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
31974 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
31975 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
31976 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
31977 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
31978 rs6000_split_logical_di): Use CONST_INT_P.
31979 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
31980 REG_P and SYMBOL_REF_P.
31981 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
31982 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
31983 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
31984 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
31985 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
31986 (small_data_operand, print_operand_address): Use CONST_INT_P and
31987 SYMBOL_REF_P.
31988 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
31989 (rs6000_init_hard_regno_mode_ok, direct_move_p):
31990 Use HARD_REGISTER_NUM_P.
31991 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
31992 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
31993 SUBREG_P and SYMBOL_REF_P.
31994 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
31995 and HARD_REGISTER_NUM_P.
31996 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
31997 reg_or_subregno.
31998 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
31999 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
32000 MEM_P and REG_P.
32001 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
32002 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
32003 find_addr_reg): Use REG_P.
32004 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
32005 (rs6000_emit_le_vsx_move): Use SUBREG_P.
32006 (offsettable_ok_by_alignment, constant_pool_expr_p,
32007 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
32008 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
32009 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
32010 rs6000_assemble_integer, create_TOC_reference,
32011 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
32012 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
32013 (rs6000_split_vec_extract_var): Use reg_or_subregno.
32014 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32015 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32016 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32017 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32018 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
32019 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
32020 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
32021 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
32022 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
32023 and cbranch<mode>4): Use CONST_INT_P.
32024 (multiple define_splits): Use REG_P and SUBREG_P.
32025 (define_expands call, call_value): Use MEM_P.
32026 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
32027 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
32028 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
32029 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
32030 and HARD_REGISTER_NUM_P.
32031 (multiple define_splits): Use HARD_REGISTER_NUM_P.
32032
32033 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
32034
32035 PR rtl-optimization/88948
32036 * rtl.h (prepare_copy_insn): New prototype.
32037 * gcse.c (prepare_copy_insn): New function, split out from
32038 process_insert_insn.
32039 (process_insert_insn): Use prepare_copy_insn.
32040 * store-motion.c (replace_store_insn): Use prepare_copy_insn
32041 instead of gen_move_insn.
32042
32043 2019-01-24 Jakub Jelinek <jakub@redhat.com>
32044
32045 PR debug/89006
32046 * config/i386/i386.c (ix86_pic_register_p): Return true for
32047 UNSPEC_SET_GOT too.
32048
32049 PR tree-optimization/88964
32050 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
32051 punt if HONOR_SNANS (chrec).
32052
32053 PR middle-end/89015
32054 * tree-nested.c (convert_nonlocal_reference_stmt,
32055 convert_local_reference_stmt, convert_tramp_reference_stmt,
32056 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
32057 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
32058 or GIMPLE_OMP_TASK.
32059
32060 PR tree-optimization/89027
32061 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
32062 for "omp simd array" variables.
32063
32064 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
32065
32066 PR target/88469
32067 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
32068 force the alignment of m_val.
32069
32070 2019-01-24 Richard Biener <rguenther@suse.de>
32071
32072 PR lto/87187
32073 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
32074 When in "legacy" debug mode make sure to reset self-origins.
32075
32076 2019-01-24 Martin Liska <mliska@suse.cz>
32077
32078 PR gcov-profile/88994
32079 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
32080 result will be always smaller or equal to the original.
32081 * gcov.c (mangle_name): Fix else branch where we should
32082 also copy to PTR and shift the pointer.
32083
32084 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32085
32086 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
32087 * vr-values.c (find_case_label_ranges): Fix a comment typo.
32088
32089 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
32090
32091 * common/config/i386/i386-common.c
32092 (OPTION_MASK_ISA_ENQCMD_SET,
32093 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
32094 (ix86_handle_option): Handle -menqcmd.
32095 * config.gcc (enqcmdintrin.h): New header file.
32096 * config/i386/cpuid.h (bit_ENQCMD): New bit.
32097 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
32098 -menqcmd.
32099 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
32100 function type.
32101 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
32102 __builtin_ia32_enqcmds): New builtins.
32103 * config/i386/i386-c.c (__ENQCMD__): New macro.
32104 * config/i386/i386-option.c (ix86_target_string): Add
32105 -menqcmd.
32106 (ix86_valid_target_attribute_inner_p): Likewise.
32107 * config/i386/i386-expand.c
32108 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
32109 IX86_BUILTIN_ENQCMDS.
32110 * config/i386/i386.h (TARGET_ENQCMD): New.
32111 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
32112 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
32113 (movdir64b_<mode>): Parameterize to enable share expansion code
32114 with ENQCMD in function ix86_expand_builtin.
32115 * config/i386/i386.opt: Add -menqcmd.
32116 * config/i386/immintrin.h: Include enqcmdintrin.h.
32117 * config/i386/enqcmdintrin.h: New intrinsic file.
32118 * doc/invoke.texi: Add -menqcmd.
32119
32120 2019-01-23 Bin Cheng <bin.cheng@arm.com>
32121 Steve Ellcey <sellcey@marvell.com>
32122
32123 PR target/85711
32124 * recog.c (address_operand): Return false on wrong mode for address.
32125 (constrain_operands): Check for mode with 'p' constraint.
32126
32127 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
32128
32129 PR target/88998
32130 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
32131 Disparage MMX alternative.
32132 (sse2_cvtpd2pi): Ditto.
32133 (sse2_cvttpd2pi): Ditto.
32134
32135 2019-01-23 David Malcolm <dmalcolm@redhat.com>
32136
32137 PR driver/89014
32138 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
32139 use-after-free of the result of
32140 aarch64_get_extension_string_for_isa_flags.
32141
32142 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32143
32144 PR c/44715
32145 * doc/extend.texi: Document break and continue behavior in
32146 statement expressions.
32147
32148 2019-01-23 Richard Biener <rguenther@suse.de>
32149
32150 PR tree-optimization/89008
32151 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
32152 not leave another stray operand.
32153
32154 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32155
32156 * BASE-VER: Bump to 9.0.1.
32157
32158 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
32159
32160 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
32161 thunk that returns by reference, use the type of the return object
32162 of the thunk instead of that of the alias to build the dereference.
32163
32164 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
32165
32166 * config/arc/atomic.md: Add operand to DMB instruction.
32167
32168 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32169
32170 PR tree-optimization/88964
32171 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
32172 build_zero_cst instead of build_int_cst. Return false for loop
32173 invariants which honor signed zeros.
32174
32175 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
32176
32177 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
32178
32179 2019-01-22 Jakub Jelinek <jakub@redhat.com>
32180
32181 PR target/88965
32182 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
32183 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
32184 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
32185
32186 PR middle-end/88968
32187 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
32188 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
32189
32190 PR target/87064
32191 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
32192 Disable for little endian.
32193
32194 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
32195
32196 PR target/88469
32197 * config/arm/arm.c (arm_needs_double_word_align): Check
32198 DECL_BIT_FIELD_TYPE.
32199
32200 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
32201 H.J. Lu <hongjiu.lu@intel.com>
32202
32203 PR target/88909
32204 * config/i386/i386-builtin.def: Add mask2 to all builtin
32205 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
32206 SPECIAL_ARGS.
32207 * config/i386/i386.c (BDESC): Add mask2 to the definition.
32208 (BDESC_FIRST): Likewise.
32209 (define_builtin): Add an argument for mask2. Updated to handle
32210 both ix86_isa_flags and ix86_isa_flags2.
32211 (define_builtin_const): Likewise.
32212 (define_builtin_pure): Likewise.
32213 (define_builtin2): Deleted.
32214 (define_builtin_const2): Likewise.
32215 (builtin_description): Add a member, mask2.
32216 (bdesc_*): Add mask2 to builtin initializations.
32217 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
32218 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
32219 support.
32220 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
32221
32222 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
32223
32224 PR target/88954
32225 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
32226 noplt attribute.
32227
32228 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
32229
32230 PR target/88469
32231 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
32232 alignment is dominated by a bitfield with 64-bit aligned base type.
32233 (arm_function_arg): Emit a warning if the alignment has changed since
32234 earlier GCC releases.
32235 (arm_function_arg_boundary): Likewise.
32236 (arm_setup_incoming_varargs): Likewise.
32237
32238 2019-01-22 Richard Biener <rguenther@suse.de>
32239
32240 PR tree-optimization/88862
32241 * graphite-scop-detection.c
32242 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
32243
32244 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
32245
32246 * doc/extend.tex (AMD GCN Function Attributes): New section.
32247 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
32248 * doc/invoke.texi (AMD GCN Options): New section.
32249 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
32250
32251 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
32252
32253 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
32254 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
32255
32256 2019-01-22 Jakub Jelinek <jakub@redhat.com>
32257
32258 PR tree-optimization/88044
32259 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
32260 is false in the first iteration, but !every_iteration, return false
32261 instead of true with niter->niter zero.
32262
32263 PR rtl-optimization/88904
32264 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
32265 any nonequal registers before processing BB_END (b).
32266
32267 PR target/88905
32268 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
32269 GET_MODE (op0).
32270 (expand_binop_directly, expand_doubleword_clz,
32271 expand_doubleword_popcount, expand_ctz, expand_ffs,
32272 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
32273
32274 PR rtl-optimization/49429
32275 PR target/49454
32276 PR rtl-optimization/86334
32277 PR target/88906
32278 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
32279 addressable from here...
32280 (emit_block_op_via_libcall): ... to here.
32281
32282 2019-01-22 Richard Biener <rguenther@suse.de>
32283
32284 * tree-vect-loop.c (vect_analyze_loop_operations): Use
32285 auto_vec for cost vector to fix memleak.
32286 (vectorize_fold_left_reduction): Properly gather SLP defs.
32287 (vectorizable_comparison): Do not swap operands to properly
32288 gather SLP defs.
32289
32290 2019-01-22 Alan Modra <amodra@gmail.com>
32291
32292 PR target/88614
32293 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
32294 stays a reg. Allow a const_int.
32295 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
32296 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
32297 (IS_NOMARK_TLSGETADDR): Define.
32298 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
32299 (rs6000_output_tlsargs): New function.
32300 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
32301 __tls_get_addr call takes an arg.
32302 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
32303 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
32304 delete split..
32305 (call_value_nonlocal_sysv): ..or here, delete split.
32306 (tls_gdld_nomark): Delete.
32307 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
32308 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
32309 (call_value_nonlocal_sysv): Likewise.
32310 (call_value_nonlocal_sysv_secure): Likewise.
32311 (call_value_nonlocal_aix): Likewise.
32312 (call_value_indirect_aix): Likewise.
32313 (call_value_indirect_elfv2): Likewise.
32314 (call_value_local32, call_value_local64): Disable for no-mark tls.
32315 (call_value_local_aix): Likewise.
32316
32317 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
32318
32319 PR target/88938
32320 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
32321 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
32322
32323 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
32324
32325 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
32326 string contents as hash_map keys.
32327
32328 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
32329
32330 PR c/88928
32331 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
32332 for rvalue context. Handle rvalues correctly. Use min_align_of_type
32333 instead of TYPE_ALIGN.
32334 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
32335 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
32336 pointer from TYPE_STUB_DECL.
32337
32338 2019-01-21 Richard Biener <rguenther@suse.de>
32339
32340 PR tree-optimization/88934
32341 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
32342 at the possibly non-constant operand.
32343 (vect_get_constant_vectors): Adjust.
32344
32345 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
32346
32347 PR target/71659
32348 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
32349 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
32350 instead of _X86INTRIN_H_INCLUDED.
32351 * onfig/i386/clwbintrin.h: Likewise.
32352 * config/i386/pkuintrin.h: Likewise.
32353 * config/i386/prfchwintrin.h: Likewise.
32354 * config/i386/rdseedintrin.h: Likewise.
32355 * config/i386/wbnoinvdintrin.h: Likewise.
32356 * config/i386/xsavecintrin.h: Likewise.
32357 * config/i386/xsavesintrin.h: Likewise.
32358 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
32359 * config/i386/xsaveintrin.h: Likewise.
32360 * config/i386/xsaveoptintrin.h: Likewise.
32361 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
32362 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
32363 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
32364 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
32365 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
32366 * config/i386/immintrin.h: Here.
32367
32368 2019-01-20 Martin Jambor <mjambor@suse.cz>
32369
32370 PR ipa/87615
32371 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
32372 with aa_walk_budget.
32373 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
32374 aa_walk_budget_p parameter.
32375 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
32376 walk. Updated all callers.
32377 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
32378 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
32379 unmodified_parm.
32380 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
32381 parameter info. Extract info from fbi. Pass fbi to recursive calls
32382 and to unmodified_parm.
32383 (phi_result_unknown_predicate): New parameter fbi, removed parameter
32384 info, updated call to will_be_nonconstant_expr_predicate.
32385 (param_change_prob): New parameter fbi, limit AA walking.
32386 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
32387 calls to various above functions.
32388 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
32389 parameter. Use it to limit AA walking.
32390 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
32391 fbi, limit AA walk.
32392 (detect_type_change): New parameter fbi, pass it on to
32393 detect_type_change_from_memory_writes.
32394 (detect_type_change_ssa): Likewise.
32395 (aa_overwalked): Removed.
32396 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
32397 accordingly, adjust to the neew AA limiting scheme.
32398 (parm_ref_data_preserved_p): Likewise.
32399 (ipa_compute_jump_functions_for_edge): Adjust call to
32400 get_dynamic_type.
32401 (ipa_analyze_call_uses): Likewise.
32402 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
32403 (ipa_analyze_node): Initialize aa_walk_budget.
32404 (ipcp_transform_function): Likewise.
32405 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
32406 to get_dynamic_type.
32407
32408 2019-01-19 Jakub Jelinek <jakub@redhat.com>
32409
32410 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
32411 outside of #if CHECKING_P code.
32412
32413 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
32414
32415 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
32416 New function, split out from...
32417 (loop_versioning::analyze_stride): ...here.
32418 (loop_versioning::find_per_loop_multiplication): Use gassign.
32419 (loop_versioning::analyze_term_using_scevs): Return a success code.
32420 (loop_versioning::analyze_arbitrary_term): New function.
32421 (loop_versioning::analyze_address_fragment): Use
32422 analyze_arbitrary_term if all else fails.
32423
32424 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
32425
32426 PR target/88892
32427 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
32428 operands.
32429
32430 2019-01-18 Richard Biener <rguenther@suse.de>
32431
32432 PR tree-optimization/88903
32433 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
32434 scalar stmts a SLP shift amount is composed of when detecting
32435 shifts by scalars.
32436
32437 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
32438
32439 PR target/88799
32440 * config/arm/arm-cpus.in (mp): New feature.
32441 (sec): New feature.
32442 (fgroup ARMv7ve): Add mp and sec features.
32443 (arch armv7-a): Add options to allow mp and sec extensions.
32444 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
32445 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
32446 extenstions to the base architecture.
32447 (cpu cortex-a8): Add sec extension to the base architecture.
32448 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
32449 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
32450 variants down to the base v7-a varaint.
32451 * config/arm/t-multilib (v7_a_arch_variants): New variable.
32452 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
32453 of permitted extensions for -march=armv7-a and for
32454 -mcpu=generic-armv7-a.
32455
32456 2019-01-18 Martin Liska <mliska@suse.cz>
32457
32458 * params.def: Fix comment.
32459 * tree-profile.c (gimple_init_gcov_profiler): Bump function
32460 name.
32461 (gimple_gen_ic_func_profiler): Likewise.
32462
32463 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32464
32465 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
32466 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
32467 and put in error checks for stack protector guard options.
32468 (aarch64_stack_protect_guard): New.
32469 (TARGET_STACK_PROTECT_GUARD): Define.
32470 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
32471 (reg_stack_protect_address<mode>): New.
32472 (stack_protect_set): Adjust for SSP_GLOBAL.
32473 (stack_protect_test): Likewise.
32474 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
32475 (-mstack-protector-guard): Likewise.
32476 (-mstack-protector-guard-offset): Likewise.
32477
32478 2019-01-18 Jakub Jelinek <jakub@redhat.com>
32479
32480 PR tree-optimization/86214
32481 * tree-inline.h (struct copy_body_data): Add
32482 add_clobbers_to_eh_landing_pads member.
32483 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
32484 (copy_edges_for_bb): Call it if EH edge destination is <
32485 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
32486 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
32487 if flag_stack_reuse != SR_NONE and clear it afterwards.
32488
32489 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
32490
32491 PR target/85596
32492 * doc/install.texi (with-multilib-list): Document for aarch64.
32493
32494 2019-01-18 Jakub Jelinek <jakub@redhat.com>
32495
32496 PR target/88734
32497 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
32498 (("..."))) with ("...").
32499
32500 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
32501
32502 * doc/extend.texi (Built-in Functions for Memory Model Aware
32503 Atomic Operations): Document atomic fetch and nand.
32504
32505 2019-01-18 Martin Liska <mliska@suse.cz>
32506 Richard Biener <rguenther@suse.de>
32507
32508 PR middle-end/88587
32509 * cgraph.h (create_version_clone_with_body): Add new argument
32510 with attributes.
32511 * cgraphclones.c (cgraph_node::create_version_clone): Add
32512 DECL_ATTRIBUTES to a newly created decl. And call
32513 valid_attribute_p so that proper cl_target_optimization_node
32514 is set for the newly created declaration.
32515 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
32516 for declaration.
32517 (expand_target_clones): Do not call valid_attribute_p, it must
32518 be already done.
32519 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
32520 vector types.
32521
32522 2019-01-17 Jakub Jelinek <jakub@redhat.com>
32523
32524 PR target/88734
32525 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
32526 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
32527 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
32528
32529 2019-01-17 Martin Sebor <msebor@redhat.com>
32530
32531 PR middle-end/88273
32532 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
32533 Handle anti-ranges the same as no range at all.
32534
32535 2018-01-17 Steve Ellcey <sellcey@cavium.com>
32536
32537 * config/aarch64/aarch64.c (cgraph.h): New include.
32538 (intl.h): New include.
32539 (supported_simd_type): New function.
32540 (currently_supported_simd_type): Ditto.
32541 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
32542 (aarch64_simd_clone_adjust): Ditto.
32543 (aarch64_simd_clone_usable): Ditto.
32544 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
32545 (TARGET_SIMD_CLONE_ADJUST): Ditto.
32546 (TARGET_SIMD_CLONE_USABLE): Ditto.
32547 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
32548 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
32549 call.
32550
32551 2019-01-17 Martin Sebor <msebor@redhat.com>
32552
32553 PR tree-optimization/88800
32554 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
32555 NO_WARNING bit here. Avoid folding out-of-bounds calls.
32556 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
32557 redundant argument. Add new argument and issue diagnostics under
32558 its control. Detect out-of-bounds access even with warnings
32559 disabled.
32560 (check_bounds_or_overlap): Change return type. Add argument.
32561 (wrestrict_dom_walker::check_call): Adjust.
32562 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
32563 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
32564 check_bounds_or_overlap's return value.
32565 (handle_builtin_stxncpy): Same.
32566 (handle_builtin_strcat): Same.
32567
32568 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32569 Kwok Cheung Yeung <kcy@codesourcery.com>
32570 Julian Brown <julian@codesourcery.com>
32571 Tom de Vries <tom@codesourcery.com>
32572
32573 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
32574
32575 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32576
32577 * doc/sourcebuild.texi: Document dg-require-effective-target
32578 llvm_binutils and offload_gcn.
32579
32580 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32581 Kwok Cheung Yeung <kcy@codesourcery.com>
32582 Julian Brown <julian@codesourcery.com>
32583 Tom de Vries <tom@codesourcery.com>
32584
32585 * doc/sourcebuild.texi: Document dg-required-effective-target
32586 exceptions.
32587
32588 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32589 Kwok Cheung Yeung <kcy@codesourcery.com>
32590 Julian Brown <julian@codesourcery.com>
32591 Tom de Vries <tom@codesourcery.com>
32592 Jan Hubicka <hubicka@ucw.cz>
32593 Martin Jambor <mjambor@suse.cz>
32594
32595 * config.gcc: Add amdgcn*-*-amdhsa configuration.
32596 * configure.ac: Check for dlopen.
32597 * configure: Regenerate.
32598
32599 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32600 Kwok Cheung Yeung <kcy@codesourcery.com>
32601 Julian Brown <julian@codesourcery.com>
32602 Tom de Vries <tom@codesourcery.com>
32603 Jan Hubicka <hubicka@ucw.cz>
32604 Martin Jambor <mjambor@suse.cz>
32605
32606 * common/config/gcn/gcn-common.c: New file.
32607 * config/gcn/driver-gcn.c: New file.
32608 * config/gcn/gcn-builtins.def: New file.
32609 * config/gcn/gcn-hsa.h: New file.
32610 * config/gcn/gcn-modes.def: New file.
32611 * config/gcn/gcn-opts.h: New file.
32612 * config/gcn/gcn-passes.def: New file.
32613 * config/gcn/gcn-protos.h: New file.
32614 * config/gcn/gcn-run.c: New file.
32615 * config/gcn/gcn-tree.c: New file.
32616 * config/gcn/gcn.c: New file.
32617 * config/gcn/gcn.h: New file.
32618 * config/gcn/gcn.opt: New file.
32619 * config/gcn/t-gcn-hsa: New file.
32620
32621 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32622 Kwok Cheung Yeung <kcy@codesourcery.com>
32623 Julian Brown <julian@codesourcery.com>
32624 Tom de Vries <tom@codesourcery.com>
32625 Jan Hubicka <hubicka@ucw.cz>
32626 Martin Jambor <mjambor@suse.cz>
32627
32628 * config/gcn/constraints.md: New file.
32629 * config/gcn/gcn-valu.md: New file.
32630 * config/gcn/gcn.md: New file.
32631 * config/gcn/predicates.md: New file.
32632
32633 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
32634
32635 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
32636 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
32637 (stmt_uses_0_or_null_in_undefined_way): Likewise.
32638 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
32639
32640 2019-01-17 Tamar Christina <tamar.christina@arm.com>
32641
32642 PR target/88851
32643 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
32644 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
32645 it and document registers.
32646
32647 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32648
32649 * config/aarch64/aarch64.c (ares_tunings): Define.
32650 * config/aarch64/aarch64-cores.def (ares): Use the above.
32651
32652 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32653
32654 PR target/88794
32655 Revert:
32656 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
32657
32658 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
32659 (_mm512_fixupimm_round_pd): Update parameters and builtin.
32660 (_mm512_maskz_fixupimm_round_pd): Ditto.
32661 (_mm512_fixupimm_round_ps): Ditto.
32662 (_mm512_maskz_fixupimm_round_ps): Ditto.
32663 (_mm_fixupimm_round_sd): Ditto.
32664 (_mm_maskz_fixupimm_round_sd): Ditto.
32665 (_mm_fixupimm_round_ss): Ditto.
32666 (_mm_maskz_fixupimm_round_ss): Ditto.
32667 (_mm512_fixupimm_pd): Ditto.
32668 (_mm512_maskz_fixupimm_pd): Ditto.
32669 (_mm512_fixupimm_ps): Ditto.
32670 (_mm512_maskz_fixupimm_ps): Ditto.
32671 (_mm_fixupimm_sd): Ditto.
32672 (_mm_maskz_fixupimm_sd): Ditto.
32673 (_mm_fixupimm_ss): Ditto.
32674 (_mm_maskz_fixupimm_ss): Ditto.
32675 (_mm512_mask_fixupimm_round_pd): Update builtin.
32676 (_mm512_mask_fixupimm_round_ps): Ditto.
32677 (_mm_mask_fixupimm_round_sd): Ditto.
32678 (_mm_mask_fixupimm_round_ss): Ditto.
32679 (_mm512_mask_fixupimm_pd): Ditto.
32680 (_mm512_mask_fixupimm_ps): Ditto.
32681 (_mm_mask_fixupimm_sd): Ditto.
32682 (_mm_mask_fixupimm_ss): Ditto.
32683 * config/i386/avx512vlintrin.h:
32684 (_mm256_fixupimm_pd): Update parameters and builtin.
32685 (_mm256_maskz_fixupimm_pd): Ditto.
32686 (_mm256_fixupimm_ps): Ditto.
32687 (_mm256_maskz_fixupimm_ps): Ditto.
32688 (_mm_fixupimm_pd): Ditto.
32689 (_mm_maskz_fixupimm_pd): Ditto.
32690 (_mm_fixupimm_ps): Ditto.
32691 (_mm_maskz_fixupimm_ps): Ditto.
32692 (_mm256_mask_fixupimm_pd): Update builtin.
32693 (_mm256_mask_fixupimm_ps): Ditto.
32694 (_mm_mask_fixupimm_pd): Ditto.
32695 (_mm_mask_fixupimm_ps): Ditto.
32696 * config/i386/i386-builtin-types.def: Add new types and remove
32697 useless ones.
32698 * config/i386/i386-builtin.def: Update builtin definitions.
32699 * config/i386/i386.c: Handle new builtin types and remove useless ones.
32700 * config/i386/sse.md: Update VFIXUPIMM* patterns.
32701 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32702 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32703 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
32704 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32705 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32706 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
32707 * config/i386/subst.md:
32708 (round_saeonly_sd_mask_operand4): Add new subst_attr.
32709 (round_saeonly_sd_mask_op4): Ditto.
32710 (round_saeonly_expand_operand5): Ditto.
32711 (round_saeonly_expand): Update.
32712
32713 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32714
32715 PR target/88794
32716 Revert:
32717 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
32718
32719 * config/i386/sse.md: Combine VFIXUPIMM* patterns
32720 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32721 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32722 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
32723 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32724 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32725 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
32726
32727 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32728
32729 PR target/88794
32730 Revert:
32731 2018-12-15 Jakub Jelinek <jakub@redhat.com>
32732
32733 PR target/88489
32734 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
32735 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
32736 instead of UNSPEC_FIXUPIMM.
32737
32738 2019-01-17 Richard Biener <rguenther@suse.de>
32739
32740 PR lto/86736
32741 * dwarf2out.c (want_pubnames): Never generate pubnames sections
32742 and friends for the LTO part of debug info.
32743
32744 2019-01-17 Jakub Jelinek <jakub@redhat.com>
32745
32746 PR tree-optimization/86214
32747 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
32748 if x == y.
32749
32750 PR rtl-optimization/88870
32751 * dce.c (deletable_insn_p): Never delete const/pure calls that can
32752 throw if we can't alter the cfg or delete dead exceptions.
32753 (mark_insn): Don't call find_call_stack_args for such calls.
32754
32755 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
32756
32757 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
32758 prototypes for vec_st.
32759 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
32760 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
32761 mainly on signed/unsigned long long and double.
32762
32763 2019-01-16 David Malcolm <dmalcolm@redhat.com>
32764
32765 PR target/88861
32766 * combine.c (delete_noop_moves): Convert to "bool" return,
32767 returning true if any edges are eliminated.
32768 (combine_instructions): Also return true if delete_noop_moves
32769 returns true.
32770
32771 2019-01-16 Tamar Christina <tamar.christina@arm.com>
32772
32773 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
32774 correct max nunits for endian swap.
32775 (aarch64_expand_fcmla_builtin): Correct subreg code.
32776 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
32777 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
32778 lane endianness.
32779
32780 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
32781
32782 * config/alpha/alpha.c (alpha_gimplify_va_arg):
32783 Handle split indirect COMPLEX_TYPE arguments.
32784
32785 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
32786
32787 PR target/86891
32788 * config/aarch64/aarch64-modes.def: Add comment about how the carry
32789 bit is set by add and compare.
32790 (CC_ADC): New CC_MODE.
32791 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
32792 to cache the code and mode of X. Adjust the shape of a CC_Cmode
32793 comparison. Add detection for CC_ADCmode.
32794 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
32795 CC_ADCmode.
32796 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
32797 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
32798 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
32799 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
32800 to eliminate the need for zero-extending the operands.
32801 (add<mode>3_compareC_imm): Delete. Merge into ...
32802 (add<mode>3_compareC): ... this. Restructure the comparison to
32803 eliminate the need for zero-extending the operands.
32804 (add<mode>3_carryin): Use LTU for the overflow detection.
32805 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
32806 Reexpress comparison for overflow.
32807 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
32808 (add<mode>3_carryinC): Likewise.
32809 (add<mode>3_carryinV): Use LTU for carry between partials.
32810 * config/aarch64/predicates.md (aarch64_carry_operation): Update
32811 handling of CC_Cmode and add CC_ADCmode.
32812 (aarch64_borrow_operation): Likewise.
32813
32814 2019-01-16 Tamar Christina <tamar.christina@arm.com>
32815
32816 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
32817 Remove patternmode.
32818 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
32819 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
32820 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
32821 Remove endianness conversion.
32822
32823 2019-01-16 Martin Liska <mliska@suse.cz>
32824
32825 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
32826 for GCC driver.
32827 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
32828 a new argument.
32829 * gcc.c (add_sysrooted_hdrs_prefix): New function.
32830 (path_prefix_reset): Move up in the source file.
32831 (find_fortran_preinclude_file): Make complex search for the
32832 fortran header files.
32833
32834 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
32835
32836 * godump.c (go_output_typedef): When outputting a typedef, refer
32837 to the underlying type by its name and not its structure.
32838
32839 2019-01-15 David Malcolm <dmalcolm@redhat.com>
32840
32841 PR c++/88795
32842 * tree.c (build_function_type): Assert that arg_types is not
32843 error_mark_node.
32844
32845 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
32846
32847 PR inline-asm/52813
32848 * doc/extend.texi: Document that listing the stack pointer in the
32849 clobber list of an asm is a deprecated feature.
32850 * common.opt (Wdeprecated): Moved from c-family/c.opt.
32851 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
32852 warning instead of an error for clobbers of the stack pointer.
32853 Add a note explaining why.
32854
32855 2019-01-15 Richard Biener <rguenther@suse.de>
32856
32857 PR debug/88046
32858 * dwarf2out.c (gen_member_die): Do not generate inheritance
32859 DIEs late.
32860
32861 2019-01-15 Richard Biener <rguenther@suse.de>
32862
32863 PR tree-optimization/88855
32864 * tree-if-conv.c (combine_blocks): Collect
32865 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
32866
32867 2019-01-15 Tom de Vries <tdevries@suse.de>
32868
32869 PR target/80547
32870 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
32871 lhs == NULL_TREE for gang-level reduction.
32872
32873 2019-01-15 Richard Biener <rguenther@suse.de>
32874 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32875
32876 PR ipa/88788
32877 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
32878 return true if SSA_NAME is already marked in visited bitmap.
32879 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
32880
32881 2019-01-15 Jakub Jelinek <jakub@redhat.com>
32882
32883 PR tree-optimization/88775
32884 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
32885 equal == 0 equality pointer comparisons some more if compared in
32886 integral types and either one points to an automatic var and the
32887 other to a global, or we can prove at least one points to the middle
32888 or both point to start or both point to end.
32889
32890 2019-01-14 Andi Kleen <ak@linux.intel.com>
32891
32892 * Makefile.in: Lower autofdo sampling rate by 10x.
32893 * Makefile.tpl: Dito.
32894
32895 2019-01-14 Tom Honermann <tom@honermann.net>
32896
32897 * defaults.h: Define CHAR8_TYPE.
32898
32899 2019-01-14 Martin Sebor <msebor@redhat.com>
32900
32901 PR target/88638
32902 * doc/extend.texi (Darwin Format Checks): Clarify.
32903
32904 2019-01-14 Richard Biener <rguenther@suse.de>
32905
32906 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
32907 whether we are in (simplify ...) or (match ...) context.
32908
32909 2019-01-14 Jakub Jelinek <jakub@redhat.com>
32910
32911 PR rtl-optimization/88796
32912 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
32913 * cfgexpand.c (stack_protect_prologue): Initialize
32914 crtl->stack_protect_guard_decl.
32915 * function.c (stack_protect_epilogue): Use it instead of calling
32916 targetm.stack_protect_guard again.
32917 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
32918 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
32919 crtl->stack_protect_guard_decl.
32920 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
32921 on the returned MEM_EXPR.
32922
32923 2019-01-12 Tom de Vries <tdevries@suse.de>
32924
32925 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
32926 vector length using -fopenacc-dim.
32927
32928 2019-01-12 Tom de Vries <tdevries@suse.de>
32929
32930 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
32931 lengths into account.
32932
32933 2019-01-12 Svante Signell <svante.signell@gmail.com>
32934
32935 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
32936 (TARGET_CAN_SPLIT_STACK): Define.
32937 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
32938
32939 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32940
32941 * params.def (inline-unit-growth): Set to 40.
32942
32943 2019-01-12 Jakub Jelinek <jakub@redhat.com>
32944
32945 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
32946
32947 2019-01-12 Tom de Vries <tdevries@suse.de>
32948
32949 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
32950 region calling vector-partitionable routine, set default_vector_length
32951 to WARP_SIZE.
32952
32953 2019-01-12 Tom de Vries <tdevries@suse.de>
32954
32955 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
32956 variable default_vector_length.
32957
32958 2019-01-12 Tom de Vries <tdevries@suse.de>
32959
32960 PR middle-end/88703
32961 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
32962 from oacc_default_dims, as oacc_validate_dims would do it, and apply
32963 dimensions limits.
32964
32965 2019-01-12 Tom de Vries <tdevries@suse.de>
32966
32967 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
32968 (nvptx_goacc_validate_dims): Add used parameter.
32969 * doc/tm.texi: Regenerate.
32970 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
32971 argument to call to targetm.goacc.validate_dims.
32972 (default_goacc_validate_dims): Add used
32973 parameter.
32974 * target.def (validate_dims): Add used parameter in DEFHOOK.
32975 * targhooks.h (default_goacc_validate_dims): Add used parameter.
32976
32977 2019-01-11 Jakub Jelinek <jakub@redhat.com>
32978
32979 PR middle-end/85956
32980 PR lto/88733
32981 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
32982 field.
32983 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
32984 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
32985 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
32986 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
32987
32988 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
32989
32990 PR rtl-optimization/87305
32991 * lra-assigns.c
32992 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
32993 for little endian pseudos used as paradoxical subreg.
32994
32995 2019-01-11 Jakub Jelinek <jakub@redhat.com>
32996
32997 PR tree-optimization/88693
32998 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
32999 for STRING_CSTs that don't contain any NUL characters in the first
33000 TREE_STRING_LENGTH bytes.
33001
33002 2019-01-11 Alan Modra <amodra@gmail.com>
33003
33004 PR 88777
33005 PR 88614
33006 * genattrtab.c (min_fn): Don't translate values.
33007 (min_attr_value): Return INT_MAX when the value can't be calculated.
33008 Return minimum among any values that can be calculated.
33009 (max_attr_value): Adjust.
33010
33011 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33012
33013 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
33014
33015 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33016
33017 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33018 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
33019 (aarch64_return_call_with_max_clobbers): New function.
33020 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
33021 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
33022 argument.
33023 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
33024 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
33025 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
33026 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
33027 * cselib.c (cselib_process_insn): Add argument to
33028 targetm.hard_regno_call_part_clobbered call.
33029 * ira-conflicts.c (ira_build_conflicts): Ditto.
33030 * ira-costs.c (ira_tune_allocno_costs): Ditto.
33031 * lra-constraints.c (inherit_reload_reg): Ditto.
33032 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
33033 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
33034 argument. Call targetm.return_call_with_max_clobbers.
33035 Add argument to targetm.hard_regno_call_part_clobbered call.
33036 (calls_have_same_clobbers_p): New function.
33037 (process_bb_lives): Add call_insn and last_call_insn variables.
33038 Pass call_insn to check_pseudos_live_through_calls.
33039 Modify if stmt to check targetm.return_call_with_max_clobbers.
33040 Update setting of flush variable.
33041 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
33042 to false.
33043 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
33044 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
33045 targetm.hard_regno_call_part_clobbered call.
33046 * reginfo.c (choose_hard_reg_mode): Ditto.
33047 * regrename.c (check_new_reg_p): Ditto.
33048 * reload.c (find_equiv_reg): Ditto.
33049 * reload1.c (emit_reload_insns): Ditto.
33050 * sched-deps.c (deps_analyze_insn): Ditto.
33051 * sel-sched.c (init_regs_for_mode): Ditto.
33052 (mark_unavailable_hard_regs): Ditto.
33053 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
33054 * target.def (hard_regno_call_part_clobbered): Add insn argument.
33055 (return_call_with_max_clobbers): New target function.
33056 * doc/tm.texi: Regenerate.
33057 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
33058 * hooks.c (hook_bool_uint_mode_false): Change to
33059 hook_bool_insn_uint_mode_false.
33060 * hooks.h (hook_bool_uint_mode_false): Ditto.
33061
33062 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33063
33064 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33065 (aarch64_remove_extra_call_preserved_regs): New function.
33066 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
33067 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
33068 * doc/tm.texi: Regenerate.
33069 * final.c (get_call_reg_set_usage): Call new hook.
33070 * target.def (remove_extra_call_preserved_regs): New hook.
33071 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
33072 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
33073
33074 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33075
33076 PR bootstrap/88714
33077 * passes.c (finish_optimization_passes): Call print_combine_total_stats
33078 inside of pass_combine_1 dump rather than pass_profile_1.
33079
33080 2019-01-11 Tom de Vries <tdevries@suse.de>
33081
33082 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
33083 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
33084 (PTX_NUM_PER_WORKER_BARRIERS): Define.
33085 (nvptx_apply_dim_limits): Prevent vector_length 64 and
33086 num_workers 16.
33087
33088 2019-01-11 Tom de Vries <tdevries@suse.de>
33089
33090 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
33091
33092 2019-01-11 Jan Beulich <jbeulich@suse.com>
33093
33094 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
33095 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
33096 sse2_cvtsi2sd): Add {l}.
33097 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
33098 syntax.
33099
33100 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33101
33102 PR target/88785
33103 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
33104 define_expand.
33105 (*float<floatunssuffix>v2div2sf2): New define_insn.
33106 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
33107 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
33108 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
33109 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
33110 match_operands with "const0_operand" "C".
33111
33112 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33113
33114 * config/aarch64/aarch64-builtins.c
33115 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
33116 (aarch64_init_simd_builtins): ...Here
33117
33118 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
33119
33120 PR rtl-optimization/87305
33121 * lra-assigns.c
33122 (setup_live_pseudos_and_spill_after_risky_transforms): Check
33123 allocation for big endian pseudos used as paradoxical subregs and
33124 spill them if it is wrong.
33125 * lra-constraints.c (lra_constraints): Add a comment.
33126
33127 2019-01-10 Richard Biener <rguenther@suse.de>
33128
33129 PR tree-optimization/88792
33130 * tree-ssa-pre.c (get_representative_for): Do not return a
33131 value-number here.
33132
33133 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33134
33135 PR middle-end/84877
33136 PR bootstrap/88450
33137 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
33138 (assign_parm_setup_block): Do the argument slot realignment here
33139 instead.
33140
33141 2019-01-10 Stefan Agner <stefan@agner.ch>
33142
33143 PR target/88648
33144 * config/arm/arm.c (arm_option_override_internal): Force
33145 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
33146
33147 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33148
33149 PR c/88568
33150 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
33151 DECL_EXTERNAL.
33152
33153 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33154
33155 * config/arm/arm-builtins.c
33156 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
33157 (MAC_LANE_PAIR_QUALIFIERS): New.
33158 (arm_expand_builtin_args): Use it.
33159 (arm_expand_builtin_1): Likewise.
33160 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
33161 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
33162 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
33163 * config/arm/arm_neon.h:
33164 (vcadd_rot90_f16): New.
33165 (vcaddq_rot90_f16): New.
33166 (vcadd_rot270_f16): New.
33167 (vcaddq_rot270_f16): New.
33168 (vcmla_f16): New.
33169 (vcmlaq_f16): New.
33170 (vcmla_lane_f16): New.
33171 (vcmla_laneq_f16): New.
33172 (vcmlaq_lane_f16): New.
33173 (vcmlaq_laneq_f16): New.
33174 (vcmla_rot90_f16): New.
33175 (vcmlaq_rot90_f16): New.
33176 (vcmla_rot90_lane_f16): New.
33177 (vcmla_rot90_laneq_f16): New.
33178 (vcmlaq_rot90_lane_f16): New.
33179 (vcmlaq_rot90_laneq_f16): New.
33180 (vcmla_rot180_f16): New.
33181 (vcmlaq_rot180_f16): New.
33182 (vcmla_rot180_lane_f16): New.
33183 (vcmla_rot180_laneq_f16): New.
33184 (vcmlaq_rot180_lane_f16): New.
33185 (vcmlaq_rot180_laneq_f16): New.
33186 (vcmla_rot270_f16): New.
33187 (vcmlaq_rot270_f16): New.
33188 (vcmla_rot270_lane_f16): New.
33189 (vcmla_rot270_laneq_f16): New.
33190 (vcmlaq_rot270_lane_f16): New.
33191 (vcmlaq_rot270_laneq_f16): New.
33192 (vcadd_rot90_f32): New.
33193 (vcaddq_rot90_f32): New.
33194 (vcadd_rot270_f32): New.
33195 (vcaddq_rot270_f32): New.
33196 (vcmla_f32): New.
33197 (vcmlaq_f32): New.
33198 (vcmla_lane_f32): New.
33199 (vcmla_laneq_f32): New.
33200 (vcmlaq_lane_f32): New.
33201 (vcmlaq_laneq_f32): New.
33202 (vcmla_rot90_f32): New.
33203 (vcmlaq_rot90_f32): New.
33204 (vcmla_rot90_lane_f32): New.
33205 (vcmla_rot90_laneq_f32): New.
33206 (vcmlaq_rot90_lane_f32): New.
33207 (vcmlaq_rot90_laneq_f32): New.
33208 (vcmla_rot180_f32): New.
33209 (vcmlaq_rot180_f32): New.
33210 (vcmla_rot180_lane_f32): New.
33211 (vcmla_rot180_laneq_f32): New.
33212 (vcmlaq_rot180_lane_f32): New.
33213 (vcmlaq_rot180_laneq_f32): New.
33214 (vcmla_rot270_f32): New.
33215 (vcmlaq_rot270_f32): New.
33216 (vcmla_rot270_lane_f32): New.
33217 (vcmla_rot270_laneq_f32): New.
33218 (vcmlaq_rot270_lane_f32): New.
33219 (vcmlaq_rot270_laneq_f32): New.
33220 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
33221 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
33222 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
33223 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
33224 vcmlaq_lane270): New.
33225 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33226 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
33227 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
33228 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
33229 (arm_option_reconfigure_globals): Use them.
33230 * config/arm/iterators.md (VDF, VQ_HSF): New.
33231 (VCADD, VCMLA): New.
33232 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
33233 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
33234 New.
33235 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
33236 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
33237
33238 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33239
33240 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
33241 Add qualifier_lane_pair_index.
33242 (emit-rtl.h): Include.
33243 (TYPES_QUADOP_LANE_PAIR): New.
33244 (aarch64_simd_expand_args): Use it.
33245 (aarch64_simd_expand_builtin): Likewise.
33246 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
33247 New.
33248 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
33249 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
33250 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
33251 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
33252 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
33253 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
33254 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
33255 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
33256 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
33257 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
33258 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
33259 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
33260 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
33261 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
33262 Add __ARM_FEATURE_COMPLEX.
33263 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
33264 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
33265 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
33266 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
33267 fcmlaq_lane270): New.
33268 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33269 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
33270 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
33271 * config/aarch64/arm_neon.h:
33272 (vcadd_rot90_f16): New.
33273 (vcaddq_rot90_f16): New.
33274 (vcadd_rot270_f16): New.
33275 (vcaddq_rot270_f16): New.
33276 (vcmla_f16): New.
33277 (vcmlaq_f16): New.
33278 (vcmla_lane_f16): New.
33279 (vcmla_laneq_f16): New.
33280 (vcmlaq_lane_f16): New.
33281 (vcmlaq_rot90_lane_f16): New.
33282 (vcmla_rot90_laneq_f16): New.
33283 (vcmla_rot90_lane_f16): New.
33284 (vcmlaq_rot90_f16): New.
33285 (vcmla_rot90_f16): New.
33286 (vcmlaq_laneq_f16): New.
33287 (vcmla_rot180_laneq_f16): New.
33288 (vcmla_rot180_lane_f16): New.
33289 (vcmlaq_rot180_f16): New.
33290 (vcmla_rot180_f16): New.
33291 (vcmlaq_rot90_laneq_f16): New.
33292 (vcmlaq_rot270_laneq_f16): New.
33293 (vcmlaq_rot270_lane_f16): New.
33294 (vcmla_rot270_laneq_f16): New.
33295 (vcmlaq_rot270_f16): New.
33296 (vcmla_rot270_f16): New.
33297 (vcmlaq_rot180_laneq_f16): New.
33298 (vcmlaq_rot180_lane_f16): New.
33299 (vcmla_rot270_lane_f16): New.
33300 (vcadd_rot90_f32): New.
33301 (vcaddq_rot90_f32): New.
33302 (vcaddq_rot90_f64): New.
33303 (vcadd_rot270_f32): New.
33304 (vcaddq_rot270_f32): New.
33305 (vcaddq_rot270_f64): New.
33306 (vcmla_f32): New.
33307 (vcmlaq_f32): New.
33308 (vcmlaq_f64): New.
33309 (vcmla_lane_f32): New.
33310 (vcmla_laneq_f32): New.
33311 (vcmlaq_lane_f32): New.
33312 (vcmlaq_laneq_f32): New.
33313 (vcmla_rot90_f32): New.
33314 (vcmlaq_rot90_f32): New.
33315 (vcmlaq_rot90_f64): New.
33316 (vcmla_rot90_lane_f32): New.
33317 (vcmla_rot90_laneq_f32): New.
33318 (vcmlaq_rot90_lane_f32): New.
33319 (vcmlaq_rot90_laneq_f32): New.
33320 (vcmla_rot180_f32): New.
33321 (vcmlaq_rot180_f32): New.
33322 (vcmlaq_rot180_f64): New.
33323 (vcmla_rot180_lane_f32): New.
33324 (vcmla_rot180_laneq_f32): New.
33325 (vcmlaq_rot180_lane_f32): New.
33326 (vcmlaq_rot180_laneq_f32): New.
33327 (vcmla_rot270_f32): New.
33328 (vcmlaq_rot270_f32): New.
33329 (vcmlaq_rot270_f64): New.
33330 (vcmla_rot270_lane_f32): New.
33331 (vcmla_rot270_laneq_f32): New.
33332 (vcmlaq_rot270_lane_f32): New.
33333 (vcmlaq_rot270_laneq_f32): New.
33334 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
33335 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
33336 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
33337 (FCADD, FCMLA): New.
33338 (rot): New.
33339 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
33340
33341 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
33342
33343 PR other/16615
33344
33345 * config/pa/pa.c: Change "can not" to "cannot".
33346 * gimple-ssa-evrp-analyze.c: Likewise.
33347 * ipa-icf.c: Likewise.
33348 * ipa-polymorphic-call.c: Likewise.
33349 * ipa-pure-const.c: Likewise.
33350 * lra-constraints.c: Likewise.
33351 * lra-remat.c: Likewise.
33352 * reload1.c: Likewise.
33353 * reorg.c: Likewise.
33354 * tree-ssa-uninit.c: Likewise.
33355
33356 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
33357
33358 PR other/16615
33359
33360 * Makefile.in: Mechanically replace "can not" with "cannot".
33361 * alias.c: Likewise.
33362 * builtins.c: Likewise.
33363 * calls.c: Likewise.
33364 * cgraph.c: Likewise.
33365 * cgraph.h: Likewise.
33366 * cgraphclones.c: Likewise.
33367 * cgraphunit.c: Likewise.
33368 * combine-stack-adj.c: Likewise.
33369 * combine.c: Likewise.
33370 * common/config/i386/i386-common.c: Likewise.
33371 * config/aarch64/aarch64.c: Likewise.
33372 * config/alpha/sync.md: Likewise.
33373 * config/arc/arc.c: Likewise.
33374 * config/arc/predicates.md: Likewise.
33375 * config/arm/arm-c.c: Likewise.
33376 * config/arm/arm.c: Likewise.
33377 * config/arm/arm.h: Likewise.
33378 * config/arm/arm.md: Likewise.
33379 * config/arm/cortex-r4f.md: Likewise.
33380 * config/csky/csky.c: Likewise.
33381 * config/csky/csky.h: Likewise.
33382 * config/darwin-f.c: Likewise.
33383 * config/epiphany/epiphany.md: Likewise.
33384 * config/i386/i386.c: Likewise.
33385 * config/i386/sol2.h: Likewise.
33386 * config/m68k/m68k.c: Likewise.
33387 * config/mcore/mcore.h: Likewise.
33388 * config/microblaze/microblaze.md: Likewise.
33389 * config/mips/20kc.md: Likewise.
33390 * config/mips/sb1.md: Likewise.
33391 * config/nds32/nds32.c: Likewise.
33392 * config/nds32/predicates.md: Likewise.
33393 * config/pa/pa.c: Likewise.
33394 * config/rs6000/e300c2c3.md: Likewise.
33395 * config/rs6000/rs6000.c: Likewise.
33396 * config/s390/s390.h: Likewise.
33397 * config/sh/sh.c: Likewise.
33398 * config/sh/sh.md: Likewise.
33399 * config/spu/vmx2spu.h: Likewise.
33400 * cprop.c: Likewise.
33401 * dbxout.c: Likewise.
33402 * df-scan.c: Likewise.
33403 * doc/cfg.texi: Likewise.
33404 * doc/extend.texi: Likewise.
33405 * doc/fragments.texi: Likewise.
33406 * doc/gty.texi: Likewise.
33407 * doc/invoke.texi: Likewise.
33408 * doc/lto.texi: Likewise.
33409 * doc/md.texi: Likewise.
33410 * doc/objc.texi: Likewise.
33411 * doc/rtl.texi: Likewise.
33412 * doc/tm.texi: Likewise.
33413 * dse.c: Likewise.
33414 * emit-rtl.c: Likewise.
33415 * emit-rtl.h: Likewise.
33416 * except.c: Likewise.
33417 * expmed.c: Likewise.
33418 * expr.c: Likewise.
33419 * fold-const.c: Likewise.
33420 * genautomata.c: Likewise.
33421 * gimple-fold.c: Likewise.
33422 * hard-reg-set.h: Likewise.
33423 * ifcvt.c: Likewise.
33424 * ipa-comdats.c: Likewise.
33425 * ipa-cp.c: Likewise.
33426 * ipa-devirt.c: Likewise.
33427 * ipa-fnsummary.c: Likewise.
33428 * ipa-icf.c: Likewise.
33429 * ipa-inline-transform.c: Likewise.
33430 * ipa-inline.c: Likewise.
33431 * ipa-polymorphic-call.c: Likewise.
33432 * ipa-profile.c: Likewise.
33433 * ipa-prop.c: Likewise.
33434 * ipa-pure-const.c: Likewise.
33435 * ipa-reference.c: Likewise.
33436 * ipa-split.c: Likewise.
33437 * ipa-visibility.c: Likewise.
33438 * ipa.c: Likewise.
33439 * ira-build.c: Likewise.
33440 * ira-color.c: Likewise.
33441 * ira-conflicts.c: Likewise.
33442 * ira-costs.c: Likewise.
33443 * ira-int.h: Likewise.
33444 * ira-lives.c: Likewise.
33445 * ira.c: Likewise.
33446 * ira.h: Likewise.
33447 * loop-invariant.c: Likewise.
33448 * loop-unroll.c: Likewise.
33449 * lower-subreg.c: Likewise.
33450 * lra-assigns.c: Likewise.
33451 * lra-constraints.c: Likewise.
33452 * lra-eliminations.c: Likewise.
33453 * lra-lives.c: Likewise.
33454 * lra-remat.c: Likewise.
33455 * lra-spills.c: Likewise.
33456 * lra.c: Likewise.
33457 * lto-cgraph.c: Likewise.
33458 * lto-streamer-out.c: Likewise.
33459 * postreload-gcse.c: Likewise.
33460 * predict.c: Likewise.
33461 * profile-count.h: Likewise.
33462 * profile.c: Likewise.
33463 * recog.c: Likewise.
33464 * ree.c: Likewise.
33465 * reload.c: Likewise.
33466 * reload1.c: Likewise.
33467 * reorg.c: Likewise.
33468 * resource.c: Likewise.
33469 * rtl.def: Likewise.
33470 * rtl.h: Likewise.
33471 * rtlanal.c: Likewise.
33472 * sched-deps.c: Likewise.
33473 * sched-ebb.c: Likewise.
33474 * sched-rgn.c: Likewise.
33475 * sel-sched-ir.c: Likewise.
33476 * sel-sched.c: Likewise.
33477 * shrink-wrap.c: Likewise.
33478 * simplify-rtx.c: Likewise.
33479 * symtab.c: Likewise.
33480 * target.def: Likewise.
33481 * toplev.c: Likewise.
33482 * tree-call-cdce.c: Likewise.
33483 * tree-cfg.c: Likewise.
33484 * tree-complex.c: Likewise.
33485 * tree-core.h: Likewise.
33486 * tree-eh.c: Likewise.
33487 * tree-inline.c: Likewise.
33488 * tree-loop-distribution.c: Likewise.
33489 * tree-nrv.c: Likewise.
33490 * tree-profile.c: Likewise.
33491 * tree-sra.c: Likewise.
33492 * tree-ssa-alias.c: Likewise.
33493 * tree-ssa-dce.c: Likewise.
33494 * tree-ssa-dom.c: Likewise.
33495 * tree-ssa-forwprop.c: Likewise.
33496 * tree-ssa-loop-im.c: Likewise.
33497 * tree-ssa-loop-ivcanon.c: Likewise.
33498 * tree-ssa-loop-ivopts.c: Likewise.
33499 * tree-ssa-loop-niter.c: Likewise.
33500 * tree-ssa-phionlycprop.c: Likewise.
33501 * tree-ssa-phiopt.c: Likewise.
33502 * tree-ssa-propagate.c: Likewise.
33503 * tree-ssa-threadedge.c: Likewise.
33504 * tree-ssa-threadupdate.c: Likewise.
33505 * tree-ssa-uninit.c: Likewise.
33506 * tree-ssanames.c: Likewise.
33507 * tree-streamer-out.c: Likewise.
33508 * tree.c: Likewise.
33509 * tree.h: Likewise.
33510 * vr-values.c: Likewise.
33511
33512 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
33513
33514 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
33515 (ix86_split_xorsign): Ditto.
33516 * config/i386/i386.c (ix86_expand_xorsign): New function.
33517 (ix86_split_xorsign): Ditto.
33518 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
33519 (xorsign<mode>3): New expander.
33520 (xorsign<mode>3_1): New insn_and_split pattern.
33521 * config/i386/sse.md (xorsign<mode>3): New expander.
33522
33523 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
33524
33525 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
33526 (*tablejump_sp64): Likewise.
33527 (*tablejump<P:mode>): ...this.
33528 (*call_address_sp32): Merge into...
33529 (*call_address_sp64): Likewise.
33530 (*call_address<P:mode>): ...this.
33531 (*call_symbolic_sp32): Merge into...
33532 (*call_symbolic_sp64): Likewise.
33533 (*call_symbolic<P:mode>): ...this.
33534 (call_value): Remove constraint and add predicate.
33535 (*call_value_address_sp32): Merge into...
33536 (*call_value_address_sp64): Likewise.
33537 (*call_value_address<P:mode>): ...this.
33538 (*call_value_symbolic_sp32): Merge into...
33539 (*call_value_symbolic_sp64): Likewise.
33540 (*call_value_symbolic<P:mode>): ...this.
33541 (*sibcall_symbolic_sp32): Merge into...
33542 (*sibcall_symbolic_sp64): Likewise.
33543 (*sibcall_symbolic<P:mode>): ...this.
33544 (sibcall_value): Remove constraint and add predicate.
33545 (*sibcall_value_symbolic_sp32): Merge into...
33546 (*sibcall_value_symbolic_sp64): Likewise.
33547 (*sibcall_value_symbolic<P:mode>): ...this.
33548 (window_save): Minor tweak.
33549 (*branch_sp32): Merge into...
33550 (*branch_sp64): Likewise.
33551 (*branch<P:mode>): ...this.
33552
33553 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
33554 James Clarke <jrtc27@jrtc27.com>
33555
33556 PR target/84010
33557 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
33558 consistently in TLS address generation and adjust code to the renaming
33559 of patterns. Mark calls to __tls_get_addr as const.
33560 * config/sparc/sparc.md (tgd_hi22): Turn into...
33561 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
33562 (tgd_lo10): Turn into...
33563 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
33564 (tgd_add32): Merge into...
33565 (tgd_add64): Likewise.
33566 (tgd_add<P:mode>): ...this and use Pmode throughout.
33567 (tldm_hi22): Turn into...
33568 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
33569 (tldm_lo10): Turn into...
33570 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
33571 (tldm_add32): Merge into...
33572 (tldm_add64): Likewise.
33573 (tldm_add<P:mode>): ...this and use Pmode throughout.
33574 (tldm_call32): Merge into...
33575 (tldm_call64): Likewise.
33576 (tldm_call<P:mode>): ...this and use Pmode throughout.
33577 (tldo_hix22): Turn into...
33578 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
33579 (tldo_lox10): Turn into...
33580 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
33581 (tldo_add32): Merge into...
33582 (tldo_add64): Likewise.
33583 (tldo_add<P:mode>): ...this and use Pmode throughout.
33584 (tie_hi22): Turn into...
33585 (tie_hi22<P:mode>): ...this and use Pmode throughout.
33586 (tie_lo10): Turn into...
33587 (tie_lo10<P:mode>): ...this and use Pmode throughout.
33588 (tie_ld64): Use DImode throughout.
33589 (tie_add32): Merge into...
33590 (tie_add64): Likewise.
33591 (tie_add<P:mode>): ...this and use Pmode throughout.
33592 (tle_hix22_sp32): Merge into...
33593 (tle_hix22_sp64): Likewise.
33594 (tle_hix22<P:mode>): ...this and use Pmode throughout.
33595 (tle_lox22_sp32): Merge into...
33596 (tle_lox22_sp64): Likewise.
33597 (tle_lox22<P:mode>): ...this and use Pmode throughout.
33598 (*tldo_ldub_sp32): Merge into...
33599 (*tldo_ldub_sp64): Likewise.
33600 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
33601 (*tldo_ldub1_sp32): Merge into...
33602 (*tldo_ldub1_sp64): Likewise.
33603 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
33604 (*tldo_ldub2_sp32): Merge into...
33605 (*tldo_ldub2_sp64): Likewise.
33606 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
33607 (*tldo_ldsb1_sp32): Merge into...
33608 (*tldo_ldsb1_sp64): Likewise.
33609 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
33610 (*tldo_ldsb2_sp32): Merge into...
33611 (*tldo_ldsb2_sp64): Likewise.
33612 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
33613 (*tldo_ldub3_sp64): Use DImode throughout.
33614 (*tldo_ldsb3_sp64): Likewise.
33615 (*tldo_lduh_sp32): Merge into...
33616 (*tldo_lduh_sp64): Likewise.
33617 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
33618 (*tldo_lduh1_sp32): Merge into...
33619 (*tldo_lduh1_sp64): Likewise.
33620 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
33621 (*tldo_ldsh1_sp32): Merge into...
33622 (*tldo_ldsh1_sp64): Likewise.
33623 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
33624 (*tldo_lduh2_sp64): Use DImode throughout.
33625 (*tldo_ldsh2_sp64): Likewise.
33626 (*tldo_lduw_sp32): Merge into...
33627 (*tldo_lduw_sp64): Likewise.
33628 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
33629 (*tldo_lduw1_sp64): Use DImode throughout.
33630 (*tldo_ldsw1_sp64): Likewise.
33631 (*tldo_ldx_sp64): Likewise.
33632 (*tldo_stb_sp32): Merge into...
33633 (*tldo_stb_sp64): Likewise.
33634 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
33635 (*tldo_sth_sp32): Merge into...
33636 (*tldo_sth_sp64): Likewise.
33637 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
33638 (*tldo_stw_sp32): Merge into...
33639 (*tldo_stw_sp64): Likewise.
33640 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
33641 (*tldo_stx_sp64): Use DImode throughout.
33642
33643 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33644
33645 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
33646 check configure option to set BTI and Return Address Signing.
33647 * configure.ac: Add --enable-standard-branch-protection and
33648 --disable-standard-branch-protection.
33649 * configure: Regenerated.
33650 * doc/install.texi: Document the same.
33651
33652 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33653 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33654
33655 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
33656 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
33657 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
33658 if bti is enabled.
33659 * config/aarch64/aarch64-bti-insert.c: New file.
33660 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
33661 pass.
33662 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
33663 new bti pass.
33664 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
33665 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
33666 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
33667 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
33668
33669 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33670
33671 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
33672 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
33673 Disable bti for -mbranch-protection=none.
33674 (aarch64_handle_standard_branch_protection): Enable bti for
33675 -mbranch-protection=standard.
33676 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
33677 -mbranch-protection.
33678 (aarch64_bti_enabled): Check if bti is enabled.
33679 * config/aarch64/aarch64.opt: Declare target variable.
33680 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
33681
33682 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33683
33684 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
33685 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
33686 (aarch64_expand_epilogue): Likewise.
33687 (aarch64_output_mi_thunk): Likewise.
33688 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
33689 TAILCALL_ADDR_REGS to x16 and x17.
33690 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
33691
33692 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33693
33694 * config/aarch64/aarch64-option-extensions.def: Define
33695 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
33696 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
33697 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
33698 (AARCH64_FL_PREDRES): New.
33699 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
33700 AARCH64_FL_PREDRES by default.
33701 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
33702
33703 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33704
33705 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
33706 ARMv8.5-A.
33707 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
33708 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
33709 * doc/invoke.texi: Document ARMv8.5-A.
33710
33711 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
33712
33713 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
33714 (xorsign<mode>3): Likewise.
33715
33716 2019-01-09 Jelinek <jakub@redhat.com>
33717
33718 PR middle-end/88758
33719 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
33720 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
33721
33722 PR rtl-optimization/88331
33723 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
33724 not currently_expanding_to_rtl.
33725
33726 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
33727
33728 * doc/invoke.texi (-Os): Remove trailing spaces.
33729 (-finline-functions): Remove reference to -O2.
33730
33731 2019-01-08 Jakub Jelinek <jakub@redhat.com>
33732
33733 PR rtl-optimization/79593
33734 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
33735
33736 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
33737 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
33738
33739 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
33740
33741 PR bootstrap/88721
33742 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
33743 to -1 on entry.
33744
33745 PR debug/88723
33746 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
33747 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
33748
33749 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
33750
33751 PR target/88717
33752 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
33753 ix86_avx_u128_mode_entry.
33754
33755 2019-01-08 Martin Liska <mliska@suse.cz>
33756
33757 PR tree-optimization/88753
33758 * tree-switch-conversion.c (switch_conversion::build_one_array):
33759 Come up with local variable constructor. Convert first to
33760 type of constructor values.
33761
33762 2019-01-08 Richard Biener <rguenther@suse.de>
33763
33764 PR tree-optimization/86554
33765 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
33766 rpo_avail): Move earlier.
33767 (visit_nary_op): When value-numbering to expressions
33768 with different overflow behavior make sure there's an
33769 available expression on the path.
33770
33771 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
33772
33773 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
33774 aarch64_parse_branch_protection,
33775 struct aarch64_branch_protect_type,
33776 aarch64_handle_no_branch_protection,
33777 aarch64_handle_standard_branch_protection,
33778 aarch64_validate_mbranch_protection,
33779 aarch64_handle_pac_ret_protection,
33780 aarch64_handle_attr_branch_protection,
33781 accepted_branch_protection_string,
33782 aarch64_pac_ret_subtypes,
33783 aarch64_branch_protect_types,
33784 aarch64_handle_pac_ret_leaf): Define.
33785 (aarch64_override_options_after_change_1, aarch64_override_options):
33786 Add check for accepted_branch_protection_string.
33787 (aarch64_option_save): Save accepted_branch_protection_string.
33788 (aarch64_option_restore): Save accepted_branch_protection_string.
33789 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
33790 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
33791 msign-return-address.
33792 * doc/invoke.texi: Add mbranch-protection.
33793
33794 2019-01-08 Alan Modra <amodra@gmail.com>
33795
33796 PR target/88614
33797 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
33798 Delete "unknownp" parameter. Adjust callers. Handle
33799 CONST_INT, PLUS, MINUS, and MULT.
33800 (attr_value_aligned): Renamed from or_attr_value.
33801 (min_attr_value): Return INT_MIN for unhandled rtl case..
33802 (min_fn): ..and translate to INT_MAX here.
33803 (write_length_unit_log): Modify to cope without "unknown".
33804 (write_attr_value): Handle IF_THEN_ELSE.
33805
33806 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33807
33808 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
33809 optimization for masked stores.
33810
33811 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33812
33813 PR middle-end/88567
33814 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
33815 output vector directly to duplicate_and_interleave instead of
33816 going through a temporary. Postpone insertion of ctor_seq to
33817 the end of the loop.
33818
33819 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
33820
33821 PR target/86891
33822 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
33823 unsigned_p. Handle signed and unsigned overflow correction as
33824 required.
33825 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
33826 prototype.
33827 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
33828 for operand 2.
33829 (add<mode>3_compareV_imm): Make this callable for expanding.
33830 (subv<GPI:mode>4): Use register_operand for operand 1. Use
33831 aarch64_plus_operand for operand 2.
33832 (subv<GPI:mode>_insn): New insn pattern.
33833 (subv<GPI:mode>_imm): Likewise.
33834 (negv<GPI:mode>3): New expand pattern.
33835 (negv<GPI:mode>_insn): New insn pattern.
33836 (negv<GPI:mode>_cmp_only): Likewise.
33837 (cmpv<GPI:mode>_insn): Likewise.
33838 (subvti4): Use register_operand for operand 1. Update call to
33839 aarch64_expand_subvti.
33840 (usubvti4): Likewise.
33841 (negvti3): New expand pattern.
33842 (negdi_carryout): New insn pattern.
33843 (negvdi_carryinV): New insn pattern.
33844 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
33845 version the named version.
33846 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
33847 operands.
33848 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
33849 patterns.
33850 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
33851 patterns.
33852 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
33853 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
33854 (sub<mode>3_carryinCV): Delete.
33855 (sub<GPI:mode>3_carryinV): New expand pattern.
33856 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
33857
33858 2019-01-07 Richard Biener <rguenther@suse.de>
33859
33860 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
33861 of tree_operand_hash.
33862
33863 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33864
33865 PR tree-optimization/88598
33866 * tree.h (single_nonzero_element): Declare.
33867 * tree.c (single_nonzero_element): New function.
33868 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
33869 if I is the only nonzero element of CST.
33870
33871 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33872
33873 PR tree-optimization/88598
33874 * tree.h (initializer_each_zero_or_onep): Declare.
33875 * tree.c (initializer_each_zero_or_onep): New function.
33876 (signed_or_unsigned_type_for): Handle float types too.
33877 (unsigned_type_for, signed_type_for): Update comments accordingly.
33878 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
33879 x & { 0 or -1, 0 or -1, ... }.
33880
33881 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
33882
33883 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
33884 with x86_64-pc-linux-gnu.
33885
33886 2019-01-07 Tom de Vries <tdevries@suse.de>
33887
33888 PR target/85486
33889 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
33890 function.
33891 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
33892 routines.
33893
33894 2019-01-07 Jakub Jelinek <jakub@redhat.com>
33895
33896 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
33897 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
33898 TARGET_AVX512F as condition.
33899
33900 PR debug/88723
33901 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
33902 const_not_ok_for_debug_p target hook.
33903 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
33904 on UNSPEC and subexpressions thereof if all subexpressions of the
33905 UNSPEC are CONSTANT_P.
33906
33907 PR tree-optimization/88676
33908 * tree-ssa-phiopt.c (two_value_replacement): New function.
33909 (tree_ssa_phiopt_worker): Call it.
33910
33911 PR sanitizer/88619
33912 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
33913 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
33914
33915 PR c++/85052
33916 * tree-vect-generic.c: Include insn-config.h and recog.h.
33917 (expand_vector_piecewise): Add defaulted ret_type argument,
33918 if non-NULL, use that in preference to type for the result type.
33919 (expand_vector_parallel): Formatting fix.
33920 (do_vec_conversion, do_vec_narrowing_conversion,
33921 expand_vector_conversion): New functions.
33922 (expand_vector_operations_1): Call expand_vector_conversion
33923 for VEC_CONVERT ifn calls.
33924 * internal-fn.def (VEC_CONVERT): New internal function.
33925 * internal-fn.c (expand_VEC_CONVERT): New function.
33926 * fold-const-call.c (fold_const_vec_convert): New function.
33927 (fold_const_call): Use it for CFN_VEC_CONVERT.
33928 * doc/extend.texi (__builtin_convertvector): Document.
33929
33930 2019-01-07 Tom de Vries <tdevries@suse.de>
33931
33932 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
33933 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
33934 vector_red_partition, vector_red_sym): New global variables.
33935 (nvptx_option_override): Initialize vector_red_sym.
33936 (nvptx_declare_function_name): Restore red_partition register.
33937 (nvptx_file_end): Emit code to declare the vector reduction variables.
33938 (nvptx_output_red_partition): New function.
33939 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
33940 large vector reductions.
33941 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
33942 (nvptx_init_builtins): Add VECTOR_ADDR.
33943 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
33944 Handle nvptx_expand_shared_addr.
33945 (nvptx_get_shared_red_addr): Add vector argument and handle large
33946 vectors.
33947 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
33948 large vectors.
33949 (nvptx_goacc_reduction_init): Likewise.
33950 (nvptx_goacc_reduction_fini): Likewise.
33951 (nvptx_goacc_reduction_teardown): Likewise.
33952 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
33953 init,fini,teardown}.
33954 (nvptx_init_axis_predicate): Initialize vector_red_partition.
33955 (nvptx_set_current_function): Init vector_red_partition.
33956 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
33957 (nvptx_red_partition): New insn.
33958 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
33959
33960 2019-01-07 Tom de Vries <tdevries@suse.de>
33961
33962 PR target/85381
33963 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
33964 empty loops.
33965
33966 2019-01-07 Tom de Vries <tdevries@suse.de>
33967
33968 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
33969 (nvptx_option_override): Init oacc_bcast_partition.
33970 (nvptx_init_oacc_workers): New function.
33971 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
33972 (nvptx_needs_shared_bcast): New function.
33973 (nvptx_find_par): Generalize to enable vectors to use shared-memory
33974 to propagate state.
33975 (nvptx_shared_propagate): Initialize vector bcast partition and
33976 synchronization state.
33977 (nvptx_single): Generalize to enable vectors to use shared-memory
33978 to propagate state.
33979 (nvptx_process_pars): Likewise.
33980 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
33981 * config/nvptx/nvptx.h (struct machine_function): Add
33982 bcast_partition and sync_bar members.
33983
33984 2019-01-07 Tom de Vries <tdevries@suse.de>
33985
33986 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
33987 (nvptx_apply_dim_limits): New function.
33988 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
33989 PTX_WARP_SIZE.
33990
33991 2019-01-07 Tom de Vries <tdevries@suse.de>
33992
33993 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
33994 as late as possible.
33995
33996 2019-01-07 Tom de Vries <tdevries@suse.de>
33997
33998 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
33999 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
34000 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
34001 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
34002 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
34003
34004 2019-01-07 Tom de Vries <tdevries@suse.de>
34005
34006 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
34007
34008 2019-01-07 Tom de Vries <tdevries@suse.de>
34009
34010 * omp-offload.c (oacc_get_min_dim): New function.
34011 * omp-offload.h (oacc_get_min_dim): Declare.
34012
34013 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
34014
34015 PR target/88521
34016 * config/i386/i386.c (function_value_ms_64): Return small sturct in
34017 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
34018
34019 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34020
34021 PR tree-opt/86020
34022 Revert:
34023 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
34024
34025 * ipa-inline.c (edge_badness): Use inlined_time instead of
34026 inline_summaries->get.
34027
34028 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34029
34030 * opts.c (enable_fdo_optimizations): Enable
34031 version-loops-for-strides, loop-interchange, unrol-and-jam
34032 and tree-loop-distribution.
34033 * invoke.texi: Document newly enabled options.
34034
34035 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34036
34037 * doc/invoke.texi (max-inline-insns-small): New parameters.
34038 * ipa-inline.c (want_early_inline_function_p): simplify.
34039 (want_inline_small_function_p): Fix pasto from previous patch;
34040 use max-inline-insns-small bound.
34041 * params.def (max-inline-insns-small): New param.
34042 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
34043 variables correctly.
34044
34045 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34046
34047 * doc/invoke.texi: Document max-inline-insns-size,
34048 uninlined-function-insns, uninlined-function-time,
34049 uninlined-thunk-insns and uninlined-thunk-time.
34050 * params.def: Add max-inline-insns-size,
34051 uninlined-function-insns, uninlined-function-time,
34052 uninlined-thunk-insns and uninlined-thunk-time.
34053 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
34054 new parameters.
34055 * ipa-inline.c (can_inline_edge_by_limits_p,
34056 want_inline_small_function_p): Use new parameters.
34057
34058 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34059
34060 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
34061
34062 2019-01-05 Jakub Jelinek <jakub@redhat.com>
34063
34064 PR middle-end/82564
34065 PR target/88620
34066 * expr.c (expand_assignment): For calls returning VLA structures
34067 if to_rtx is not a MEM, force it into a stack temporary.
34068
34069 PR debug/88635
34070 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
34071 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
34072 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
34073 subexpressions of both operands.
34074 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
34075 subrtxes are CONSTANT_P.
34076 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
34077 2018-11-09 changes.
34078
34079 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
34080
34081 * params.def (hot-bb-count-ws-permille): Set to 990.
34082
34083 2019-01-04 Martin Sebor <msebor@redhat.com>
34084
34085 PR c/88546
34086 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
34087 leaf.
34088
34089 2019-01-04 Martin Sebor <msebor@redhat.com>
34090
34091 PR c/88363
34092 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
34093
34094 2019-01-04 Jakub Jelinek <jakub@redhat.com>
34095
34096 * gdbinit.in: Turn off pagination for the skip commands, restore
34097 it to previous state afterwards.
34098
34099 2019-01-04 Jakub Jelinek <jakub@redhat.com>
34100
34101 PR target/88594
34102 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
34103 of GET_MODE (opN) as modes of the libcall arguments.
34104
34105 2019-01-04 Jan Beulich <jbeulich@suse.com>
34106
34107 * config/i386/sse.md
34108 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
34109 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
34110 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34111 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34112 avx512f_vmcmp<mode>3<round_saeonly_name>,
34113 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
34114 avx512f_maskcmp<mode>3,
34115 <avx512>_cvt<ssemodesuffix>2mask<mode>,
34116 <avx512>_cvt<ssemodesuffix>2mask<mode>,
34117 *<avx512>_cvtmask2<ssemodesuffix><mode>,
34118 *<avx512>_cvtmask2<ssemodesuffix><mode>,
34119 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
34120 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
34121 <avx512>_gt<mode>3<mask_scalar_merge_name>,
34122 <avx512>_gt<mode>3<mask_scalar_merge_name>,
34123 <avx512>_testm<mode>3<mask_scalar_merge_name>,
34124 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
34125 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
34126 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
34127 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
34128 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
34129 avx512cd_maskb_vec_dup<mode>,
34130 avx512cd_maskw_vec_dup<mode>,
34131 avx512dq_fpclass<mode><mask_scalar_merge_name>,
34132 avx512dq_vmfpclass<mode>,
34133 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
34134 instead of =Yk.
34135
34136 2019-01-03 Martin Sebor <msebor@redhat.com>
34137
34138 PR tree-optimization/88659
34139 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
34140
34141 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
34142
34143 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
34144 unaligned vsx and avoid lxvd2x/stxvd2x.
34145 (gen_lvx_v4si_move): New function.
34146
34147 2019-01-03 Tom de Vries <tdevries@suse.de>
34148
34149 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
34150 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
34151 function.
34152 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
34153
34154 2019-01-03 Tom de Vries <tdevries@suse.de>
34155
34156 * config/nvptx/nvptx.c (struct offload_attrs): New.
34157 (populate_offload_attrs): New function. Factor mask extraction out of
34158 nvptx_reorg. Add extraction of dimensions.
34159 (nvptx_reorg): Use populate_offload_attrs.
34160
34161 2019-01-03 Tom de Vries <tdevries@suse.de>
34162
34163 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
34164 cases for oacc_min_dims_p and routine_p. Add asserts for
34165 oacc_default_dims_p and offload_region_p.
34166
34167 2019-01-03 Tom de Vries <tdevries@suse.de>
34168
34169 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
34170 factored out of ...
34171 (nvptx_goacc_validate_dims): ... here.
34172
34173 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
34174
34175 PR tree-optimization/85574
34176 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
34177 structure.
34178 (struct ssa_equip_hash_traits): Declare.
34179 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
34180
34181 2019-01-03 Jakub Jelinek <jakub@redhat.com>
34182
34183 PR debug/88644
34184 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
34185 change it to qualified_type.
34186
34187 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
34188
34189 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
34190 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
34191
34192 2019-01-02 Martin Sebor <msebor@redhat.com>
34193 Jeff Law <law@redhat.com>
34194
34195 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
34196 (get_range_strlen_tree): Update appropriately.
34197 (get_range_strlen)
34198 * gimple-fold.h (get_range_strlen): Drop unused last argument.
34199
34200 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
34201 rather than set_range_info.
34202 * tree-ssa-strlen.c (set_strlen_range): Extracted from
34203 maybe_set_strlen_range. Handle potentially boundary crossing
34204 cases more conservatively.
34205 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
34206 Call set_strlen_range.
34207 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
34208
34209 PR middle-end/88663
34210 * gimple-fold.c (get_range_strlen): Update prototype to no longer
34211 need the flexp argument.
34212 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
34213 from calls to get_range_strlen. Update comments. Just update
34214 VAL for an unterminated const char array and let the reset of the
34215 code handle it normally. No longer try to set *flexp. Adjust
34216 return value.
34217 (get_range_strlen): Update for the new get_range_strlen API.
34218 (get_maxval_strlen): Similarly.
34219 (gimple_fold_builtin_strlen): Handle update meaning of return value
34220 from get_range_strlen.
34221 * gimple-ssa-sprintf.c (get_string_length): Update for the new
34222 get_range_strlen API.
34223
34224 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
34225
34226 PR lto/88130
34227 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
34228 false at WPA time when body was removed.
34229
34230 2019-01-02 Martin Liska <mliska@suse.cz>
34231
34232 PR tree-optimization/88650
34233 * predict.c (set_even_probabilities): Calculate probability
34234 remainer only when really used.
34235
34236 2019-01-02 Richard Biener <rguenther@suse.de>
34237
34238 PR middle-end/88651
34239 * tree-data-ref.c (analyze_subscript_affine_affine): Use
34240 widest_ints when mangling max_stmt_execution results.
34241
34242 2019-01-02 Richard Biener <rguenther@suse.de>
34243
34244 PR tree-optimization/88621
34245 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
34246 bitfields when canoncalizing.
34247
34248 2019-01-02 Richard Biener <rguenther@suse.de>
34249
34250 PR target/87545
34251 * config/i386/x86-tune-costs.h (intel_cost): Adjust
34252 cost of cheap SSE instruction.
34253
34254 2019-01-02 Richard Biener <rguenther@suse.de>
34255
34256 PR ipa/85574
34257 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
34258 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
34259 function.
34260 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
34261 set after UIDs before splitting them.
34262
34263 2019-01-01 Martin Sebor <msebor@redhat.com>
34264 Jeff Law <law@redhat.com>
34265
34266 * gimple-fold.c (get_range_strlen_tree): Record if the computed
34267 length is optimistic. If it is, then arrange to compute the
34268 conservative length as well.
34269
34270 * gimple-fold.h (get_range_strlen): Update prototype.
34271 * builtins.c (check_access): Update call to get_range_strlen to use
34272 c_strlen_data pointer. Change various variable accesses to instead
34273 pull data from the c_strlen_data structure.
34274 (check_strncat_sizes, expand_builtin_strncat): Likewise.
34275 * calls.c (maybe_warn_nonstring_arg): Likewise.
34276 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
34277 minimum length if maximum lengh is unknown.
34278 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
34279 that used c_strlen, it's no longer needed. Restructure slightly.
34280 (format_string): Set unlikely range appropriately.
34281 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
34282 formatting issues.
34283 (get_range_strlen): Accept c_strlen_data pointer for external
34284 call sites as well. Pass through to call to internal get_range_strlen.
34285 Adjust minlen, maxlen and maxbound as needed.
34286 (get_maxval_strlen): Update comments.
34287 (gimple_fold_builtin_strlen): Update call to get_range_strlen
34288 to use c_strlen_data pointer. Change variable accesses to instead
34289 use c_strlen_data data members.
34290
34291 * gimple-fold.c (get_range_strlen): Update prototype.
34292 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
34293 local variables. Use pdata to return information to caller.
34294 Update calls to get_range_strlen. Update pdata->maxbound.
34295 (get_range_strlen -- static version): Similarly.
34296 (get_range_strlen -- extern version): Update for internal
34297 get_range_strlen API change. Convert to external data format.
34298 (get_maxval_strlen): Similarly.
34299
34300 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
34301
34302 * coverage.c (get_coverage_counts): Use current_function_decl.
34303 * profile.c (read_thunk_profile): New function.
34304 (branch_prob): Add THUNK parameter.
34305 * tree-profile.c (tree_profiling): Handle thunks.
34306 * value-prof.c (init_node_map): Handle thunks.
34307 * value-prof.h (branch_prob): Upate prototype.
34308 (read_thunk_profile): Declare.
34309
34310 2019-01-01 Jakub Jelinek <jakub@redhat.com>
34311
34312 Update copyright years.
34313
34314 * gcc.c (process_command): Update copyright notice dates.
34315 * gcov-dump.c (print_version): Ditto.
34316 * gcov.c (print_version): Ditto.
34317 * gcov-tool.c (print_version): Ditto.
34318 * gengtype.c (create_file): Ditto.
34319 * doc/cpp.texi: Bump @copying's copyright year.
34320 * doc/cppinternals.texi: Ditto.
34321 * doc/gcc.texi: Ditto.
34322 * doc/gccint.texi: Ditto.
34323 * doc/gcov.texi: Ditto.
34324 * doc/install.texi: Ditto.
34325 * doc/invoke.texi: Ditto.
34326 \f
34327 Copyright (C) 2019 Free Software Foundation, Inc.
34328
34329 Copying and distribution of this file, with or without modification,
34330 are permitted in any medium without royalty provided the copyright
34331 notice and this notice are preserved.