tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
[gcc.git] / gcc / ChangeLog
1 2019-11-25 Richard Biener <rguenther@suse.de>
2
3 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
4 (vect_detect_hybrid_slp): Swap lane and instance iteration,
5 properly re-building the visited hash-map for each lane.
6
7 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
8
9 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
10 gcn_md_reorg): Remove unused variables.
11 (gcn_emutls_var_init): Add missing (but unreachable) return
12 to silence warning.
13 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
14 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
15 an uninitialized variable.
16
17 2019-11-25 Martin Jambor <mjambor@suse.cz>
18
19 PR ipa/92109
20 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
21 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
22 (cgraph_materialize_clone): Move removel from clone tree to the
23 the new method and use it instead.
24 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
25 bodies of clones, also remove it from the clone tree.
26
27 2019-11-25 Martin Jambor <mjambor@suse.cz>
28
29 PR ipa/91956
30 * ipa-sra.c (process_isra_node_results): Put the new node to the
31 same comdat group as the original node.
32
33 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
34
35 Build double32 / long-double32 multilibs if needed.
36
37 PR target/92055
38 * config/avr/t-avr:
39 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
40 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
41 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
42 tm_defines and pass to genmultilib.awk.
43 * config/avr/genmultilib.awk: Use these variables to add double32
44 and / or long-double32 multilib(s) as needed.
45 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
46
47 2019-11-25 Richard Biener <rguenther@suse.de>
48
49 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
50 loop body, defaulted to NULL.
51 (single_likely_exit): Add exit vector argument
52 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
53 (number_of_iterations_exit): Likewise.
54 (number_of_iterations_exit_assumptions): Likewise.
55 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
56 if not NULL.
57 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
58 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
59 Compute exit vector around call to single_likely_exit.
60 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
61 loop body to loop_only_exit_p.
62 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
63 caller.
64 (number_of_iterations_exit_assumptions): Get loop body from caller
65 if not NULL.
66 (number_of_iterations_exit): Pass through new loop body arg.
67 (infer_loop_bounds_from_undefined): Get loop body from caller.
68 (estimate_numbers_of_iterations): Compute loop body once.
69
70 2019-11-25 Richard Biener <rguenther@suse.de>
71
72 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
73 auto_bb_flag instead of an sbitmap for visited handling.
74
75 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
76
77 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
78 iterator.
79 (vector_fp_comparison_complex): Likewise.
80 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
81 define_and_split.
82 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
83 Likewise.
84 (vector_lt<mode> for VEC_F): Refactor with
85 vector_fp_comparison_simple.
86 (vector_le<mode> for VEC_F): Likewise.
87 (vector_unge<mode> for VEC_F): Likewise.
88 (vector_unle<mode> for VEC_F): Likewise.
89 (vector_ne<mode> for VEC_F): Likewise.
90 (vector_ungt<mode> for VEC_F): Likewise.
91 (vector_unlt<mode> for VEC_F): Likewise.
92 (vector_ltgt<mode> for VEC_F): Refactor with
93 vector_fp_comparison_complex.
94 (vector_ordered<mode> for VEC_F): Likewise.
95 (vector_uneq<mode> for VEC_F): Likewise.
96 (vector_unordered<mode> for VEC_F): Likewise.
97
98 2019-11-24 Jerry DeLisle <jvdelisle@gcc.ngu.org>
99
100 PR fortran/92100
101 gfortran.dg/streamio_18.f90: New test.
102
103 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
104
105 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
106 COMPARE, representing an overflow detection.
107
108 * combine.c (combine_instructions): Record costs for jumps.
109
110 * combine.c (can_combine_p): Allow autoinc in jumps.
111
112 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
113
114 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
115 * doc/invoke.texi (max-inline-insns-single-O2,
116 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
117 early-inlining-insns-O2): Remove documentation.
118 * ipa-fnsummary.c (analyze_function_body,
119 compute_fn_summary): Use opt_for_fn when accessing parameters.
120 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
121 inline_insns_auto, can_inline_edge_by_limits_p,
122 want_early_inline_function_p, big_speedup_p,
123 want_inline_small_function_p, want_inline_self_recursive_call_p,
124 recursive_inlining, compute_max_insns, inline_small_functions):
125 Likewise.
126 * opts.c (default_options): Add -O3 defaults for
127 OPT__param_early_inlining_insns_,
128 OPT__param_inline_heuristics_hint_percent_,
129 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
130 * params.opt (-param=early-inlining-insns-O2=,
131 -param=inline-heuristics-hint-percent-O2=,
132 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
133 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
134 -param=inline-min-speedup=, -param=inline-unit-growth=,
135 -param=large-function-growth=, -param=large-stack-frame=,
136 -param=large-stack-frame-growth=, -param=large-unit-insns=,
137 -param=max-inline-insns-recursive=,
138 -param=max-inline-insns-recursive-auto=,
139 -param=max-inline-insns-single=,
140 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
141 -param=max-inline-recursive-depth=,
142 -param=max-inline-recursive-depth-auto=,
143 -param=min-inline-recursive-probability=,
144 -param=partial-inlining-entry-probability=,
145 -param=uninlined-function-insns=, -param=uninlined-function-time=,
146 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
147 Optimization.
148
149 2019-11-23 Jakub Jelinek <jakub@redhat.com>
150
151 * ipa-fnsummary.c: Fix comment typos.
152 * ipa-ref.h: Likewise.
153 * ipa-predicate.h: Likewise.
154 * ipa-split.c: Likewise.
155 * ipa-inline-analysis.c: Likewise.
156 * ipa-predicate.c: Likewise.
157 * ipa-devirt.c: Likewise.
158 * ipa-icf.h: Likewise.
159 * profile-count.c: Likewise.
160 * ipa-icf.c: Likewise.
161 (sem_function::equals_wpa): Fix typos in dump messages.
162 * ipa-icf-gimple.h: Fix comment typos.
163 * ipa-inline-transform.c: Likewise.
164 * ipa-polymorphic-call.c: Likewise.
165 * ipa-fnsummary.h: Likewise.
166 * ipa-inline.c: Likewise.
167 (dump_inline_stats): Fix typo in debug dump message.
168 * profile-count.h: Fix comment typos.
169
170 PR target/92615
171 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
172 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
173 register_operand, force x into register before storing it into dest.
174 Formatting fix.
175
176 PR middle-end/83859
177 * doc/extend.texi (attribute access): Fix a typo.
178
179 PR rtl-optimization/92610
180 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
181 cse_cfg_altered is set, even when tem is 0.
182 (rest_of_handle_cse_after_global_opts): Likewise.
183
184 2019-11-22 Jakub Jelinek <jakub@redhat.com>
185
186 PR c++/92458
187 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
188 tree_hash): Move to ...
189 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
190 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
191 types.
192 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
193
194 PR tree-optimization/92618
195 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
196 containing the auto_vec and a tree.
197 (undistribute_bitref_for_vector): Handle the case when element type
198 of vec is not the same as type of the BIT_FIELD_REF. Formatting
199 fixes.
200
201 2019-11-22 Martin Sebor <msebor@redhat.com>
202
203 PR middle-end/83859
204 * attribs.h (struct attr_access): New.
205 * attribs.c (decl_attributes): Add an informational note.
206 * builtins.c (check_access): Make extern. Consistently set no-warning
207 after issuing a warning. Handle calls through function pointers. Set
208 no-warning.
209 * builtins.h (check_access): Declare.
210 * calls.c (rdwr_access_hash): New type.
211 (rdwr_map): Same.
212 (init_attr_rdwr_indices): New function.
213 (maybe_warn_rdwr_sizes): Same.
214 (initialize_argument_information): Call init_attr_rdwr_indices.
215 Call maybe_warn_rdwr_sizes.
216 (get_size_range): Avoid null argument.
217 * doc/extend.texi (attribute access): Document new attribute.
218
219 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
220
221 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
222 (ACC_LDS_SIZE): Define.
223 (OTHER_LDS_SIZE): Define.
224 (LDS_SIZE): Redefine using above.
225 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
226
227 2019-11-22 Martin Sebor <msebor@redhat.com>
228
229 PR middle-end/88226
230 * builtins.c (check_nul_terminated_array): New function.
231 (fold_builtin_0): Remove declaration.
232 (fold_builtin_1): Same.
233 (fold_builtin_2): Same.
234 (fold_builtin_3): Same.
235 (fold_builtin_strpbrk): Add argument.
236 (fold_builtin_strspn): Same.
237 (fold_builtin_strcspn): Same.
238 (expand_builtin_strcat): Call it. Remove unused argument.
239 (expand_builtin_stpncpy): Same.
240 (expand_builtin_strncat): Same.
241 (expand_builtin_strncpy): Same. Adjust indentation.
242 (expand_builtin_strcmp): Same.
243 (expand_builtin_strncmp): Same.
244 (expand_builtin_fork_or_exec): Same.
245 (expand_builtin): Handle more built-ins.
246 (fold_builtin_2): Add argument.
247 (fold_builtin_n): Make static. Add argument.
248 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
249 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
250 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
251 (fold_call_stmt): Pass new argument to fold_builtin_n.
252 * builtins.h: Correct a comment.
253 * gimple-fold.c (gimple_fold_builtin_strchr): Call
254 check_nul_terminated_array.
255 * tree-ssa-strlen.c (handle_builtin_strlen): Call
256 check_nul_terminated_array.
257 (handle_builtin_strchr): Same.
258 (handle_builtin_string_cmp): Same.
259
260 2019-11-22 Martin Sebor <msebor@redhat.com>
261
262 PR tree-optimization/92501
263 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
264 handle unterminated arrays. Rename local variables for clarity.
265
266 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
267
268 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
269 granulated_sgprs according to architecture.
270
271 2019-11-22 Jan Hubicka <jh@suse.cz>
272
273 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
274 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
275 (memory_block_pool::reduce_free_list): ... this one.
276 (memory_block_pool::trim): New static function.
277 * memory-block.h (memory_block_pool::freelist_size): New constant
278 (memory_block_pool::clear_free_list): Rename to ...
279 (memory_block_pool::reduce_free_list): ... this one.
280 (memory_block_pool::trim): Declare.
281
282 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
283
284 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
285 vect_cost_for_stmt.
286 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
287 here rather than...
288 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
289
290 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
291
292 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
293 (bic_cmp0_noout): New pattern.
294 (bic_cmp0): Likewise.
295 (neg_scc_insn): Remove pattern.
296 (not_scc_insn): Likewise.
297
298 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
299
300 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
301
302 2019-11-21 Joseph Myers <joseph@codesourcery.com>
303
304 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
305 pedwarn instead of warning_at for fallthrough not preceding a case
306 or default label.
307
308 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
309
310 PR tree-optimization/92608
311 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
312 of dyn_cast.
313
314 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
315
316 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
317 New predicate.
318 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
319 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
320 special for FP comparisons that need a cror instruction eventually.
321 (rs6000_emit_fp_cror): New function.
322 (rs6000_emit_sCOND): Expand all floating point comparisons to one
323 instruction, for normal FP modes, with HONOR_NANS.
324 (rs6000_emit_cbranch): Reformat.
325 * config/rs6000/rs6000.md (fp_rev): New iterator.
326 (fp_two): New iterator.
327 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
328 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
329 *cbranch_2insn: New define_insn_and_split.
330
331 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
332
333 PR tree-optimization/92526
334 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
335 versioning for alignment if the accesses do not have a consistent
336 mask, rather than asserting that the masks are consistent.
337
338 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
339
340 PR tree-optimization/92595
341 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
342 check.
343 (vectorizable_store, vectorizable_load): Likewise.
344
345 2019-11-21 Jan Hubicka <jh@suse.cz>
346
347 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
348 (resolve_noninline_speculation, inline_small_functions): Avoid
349 redundant updates.
350
351 2019-11-21 Richard Biener <rguenther@suse.de>
352
353 * lra.c (lra_insn_recog_data_pool): New.
354 (free_insn_recog_data): Adjust.
355 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
356 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
357
358 2019-11-21 Richard Biener <rguenther@suse.de>
359
360 PR tree-optimization/92596
361 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
362
363 2019-11-21 Jan Hubicka <jh@suse.cz>
364
365 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
366 ready for some vectors to not be allocated.
367 (evaluate_properties_for_edge): Document better; make
368 known_vals and known_aggs caller allocated; avoid determining
369 values of parameters which are not used.
370 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
371 known_aggs.
372 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
373 (do_estimate_edge_size): Likewise.
374 (do_estimate_edge_hints): Likewise.
375 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
376 values are not known.
377 (ipa_release_agg_values): Add option to not release vector itself.
378 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
379
380 2019-11-21 Richard Biener <rguenther@suse.de>
381
382 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
383 (loop_iterator::to_visit): Use an auto_vec with internal storage.
384 (loop_iterator::loop_iterator): Adjust.
385 * cfganal.c (compute_dominance_frontiers_1): Fold into...
386 (compute_dominance_frontiers): ... this. Hoist invariant
387 get_immediate_dominator call.
388 (compute_idf): Use a work-set instead of a work-list for more
389 optimal iteration order and duplicate avoidance.
390 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
391 the vector all the time, instead pre-allocate the vector only
392 once.
393 (delete_update_ssa): Simplify.
394 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
395
396 2019-11-21 Jakub Jelinek <jakub@redhat.com>
397
398 PR tree-optimization/91355
399 * tree-ssa-sink.c (select_best_block): Use >= rather than >
400 for early_bb scaled count with best_bb count comparison.
401
402 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
403 preffer -> prefer.
404 * ipa-inline.c (edge_badness): Likewise.
405 * lto-streamer.h (class lto_location_cache): Likewise.
406 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
407 gratutious -> gratuitous.
408
409 2019-11-21 Richard Biener <rguenther@suse.de>
410
411 Revert
412 2019-09-17 Richard Biener <rguenther@suse.de>
413
414 PR tree-optimization/91790
415 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
416 use the correct DR for setting up realignment.
417
418 2019-11-21 Richard Biener <rguenther@suse.de>
419
420 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
421 (equiv_class_obstack): New.
422 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
423 (perform_var_substitution): Initialize equiv_class_obstack.
424 (free_var_substitution_info): Free equiv_class_obstack.
425
426 2019-11-20 Jan Hubicka <jh@suse.cz>
427
428 * ipa-inline.c (want_early_inline_function_p): Do not estimate
429 edge growth when callee function is very large.
430 * ipa-inline.h (estimate_min_edge_growth): New.
431
432 2019-11-20 Jan Hubicka <jh@suse.cz>
433
434 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
435 negative time in calls summary; correct roundoff errors
436 leading to negative times.
437 (ipa_merge_fn_summary_after_inlining): Update calls size time table
438 if present.
439 (ipa_update_overall_fn_summary): Add RESET parameter.
440 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
441 * ipa-inline-transform.c (inline_call): Enable incremental updates.
442
443 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
444
445 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
446 def types for two-operation SLP.
447
448 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
449
450 PR testsuite/92366
451 * doc/sourcebuild.texi (vect_char_add): Document.
452
453 2019-11-20 Alexandre Oliva <oliva@adacore.com>
454
455 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
456 * function.c (record_final_call): Record even calls that might
457 have been in the cgraph.
458 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
459 callees.
460
461 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
462
463 * configure.ac: Use https for gcc.gnu.org
464 * configure: Regenerated.
465 * doc/install.texi: Use https for gcc.gnu.org.
466 * doc/sourcebuild.texi: Likewise.
467
468 2019-11-20 Julian Brown <julian@codesourcery.com>
469
470 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
471
472 2019-11-20 Jan Hubicka <jh@suse.cz>
473
474 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
475 parameter and update call_size_time_table.
476 (ipa_fn_summary::max_size_time_table_size): New constant.
477 (estimate_calls_size_and_time_1): Break out from ...
478 (estimate_calls_size_and_time): ... here; implement summary production.
479 (summarize_calls_size_and_time): New function.
480 (ipa_call_context::estimate_size_and_time): Bypass
481 estimate_calls_size_and_time for leaf functions.
482 (ipa_update_overall_fn_summary): Likewise.
483 * ipa-fnsummary.h (call_size_time_table): New.
484 (ipa_fn_summary::account_size_time): Update prototype.
485
486 2019-11-20 Joseph Myers <joseph@codesourcery.com>
487
488 * doc/invoke.texi (-Wc11-c2x-compat): Document.
489
490 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
491
492 PR85678
493 * common.opt (fcommon): Change init to 1.
494 * doc/invoke.texi (-fcommon): Update documentation.
495
496 2019-11-20 Jan Hubicka <jh@suse.cz>
497
498 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
499 to ordinary array.
500
501 2019-11-20 Jan Hubicka <jh@suse.cz>
502
503 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
504 Add allocator parameter.
505 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
506 (fibonacci_heap<K,V>::m_allocator): New.
507 (fibonacci_heap<K,V>::m_own_allocator): New.
508 (fibonacci_heap<K,V>::insert): Use allocator.
509 (fibonacci_heap<K,V>::extract_min): Likewise.
510 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
511 allocator.
512 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
513 on stack.
514 * fibonacci_heap.c: Include alloc-pool
515 (test_empty_heap): Initialize allocator.
516 (test_union): Likewise.
517 * bb-reorder.c: Include alloc-pool.h.
518 * tracer.c: Inlclude alloc-pool.h.
519
520 2019-11-20 Jan Hubicka <jh@suse.cz>
521
522 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
523 Preallocate for 32 entries.
524 (DFS::worklist): Likewise.
525 (DFS::DFS): Do not initialize sccstack and worklist.
526 (DFS::~DFS): Do not release sccstack.
527
528 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
529
530 PR target/92573
531 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
532 Handle UNORDERED if !HONOR_NANS.
533
534 2019-11-20 Jan Hubicka <jh@suse.cz>
535
536 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
537 (edge_badness): ... here.
538 (inline_small_functions): Use monotonicity of badness calculation
539 to avoid redundant updates.
540
541 2019-11-20 Richard Biener <rguenther@suse.de>
542
543 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
544 constructors we are actually analyzing.
545 (vect_slp_check_for_constructors): Do not vectorize uniform
546 constuctors, do not dump here.
547
548 2019-11-20 Richard Biener <rguenther@suse.de>
549
550 PR tree-optimization/92537
551 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
552 vectorization validity check...
553 (vect_slp_analyze_operations): ... here.
554
555 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
556
557 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
558 (make_pass_arc_predicate_delay_insns): Likewise.
559 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
560 method, remove clone.
561 (class pass_arc_predicate_delay_insns): Likewise.
562 (arc_init): Remove registering of ARC specific passes.
563 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
564 * config/arc/arc-passes.def: New file.
565
566 2019-11-20 Jakub Jelinek <jakub@redhat.com>
567
568 PR middle-end/90840
569 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
570 and has a mode that doesn't have corresponding integral type.
571
572 PR target/90867
573 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
574 clear opts->x_ix86_isa_flags{,2} here...
575 (ix86_valid_target_attribute_inner_p): ... but here when seeing
576 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
577
578 PR c/90898
579 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
580 assertion.
581 (insert_clobbers_for_var): Fix a typo in function comment.
582
583 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
584 Jakub Jelinek <jakub@redhat.com>
585
586 PR middle-end/91195
587 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
588 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
589 load.
590
591 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
592
593 Make 0-series device specs work with older versions of avr-gcc.
594
595 PR target/92545
596 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
597 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
598 <*link_pm_base_address>: Don't write spec.
599 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
600
601 2019-11-20 Richard Biener <rguenther@suse.de>
602
603 PR c/92088
604 * builtins.c (compute_objsize): Deal with VLAs.
605
606 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
607
608 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
609 from common code.
610 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
611 call new function.
612 (power9_sched_reorder2): Call new function.
613 (rs6000_sched_reorder2): Likewise.
614
615 2019-11-18 Jan Hubicka <jh@suse.cz>
616
617 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
618 (estimate_calls_size_and_time): Update.
619
620 2019-11-18 Jan Hubicka <jh@suse.cz>
621
622 * ipa-inline.c (inlining_speedup): New function.
623 (edge_badness): Use it.
624
625 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
626 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
627
628 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
629 Mark as not having "likely" version.
630 * config/mips/mips.md (insn_count): The simd_div instruction with
631 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
632 (can_delay): Exclude simd_branch.
633 (defile_delay *): Add simd_branch instructions.
634 They have one regular delay slot.
635
636 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
637
638 Revert:
639 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
640
641 * cse.c (cse_insn): Delete no-op register moves too.
642 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
643 Take a second comparison to control the value for NE.
644 (mask_to_comparison): Handle unsigned comparisons.
645 (simplify_logical_relational_operation): Likewise. Update call
646 to comparison_to_mask. Handle AND if !HONOR_NANs.
647 (simplify_binary_operation_1): Call the above for AND too.
648
649 2019-11-19 Martin Liska <mliska@suse.cz>
650
651 * toplev.c (general_init): Move the call...
652 (toplev::main): ... here as we need init_options_struct
653 being called.
654
655 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
656
657 PR target/79262
658 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
659 vec_to_scalar_cost.
660
661 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
662
663 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
664 (armv7-a): Likewise.
665 (armv7ve): Likewise.
666
667 2019-11-19 Richard Biener <rguenther@suse.de>
668
669 PR tree-optimization/92581
670 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
671 condition reduction chains gather all conditions involved
672 for computing the index reduction vector.
673
674 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
675
676 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
677 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
678 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
679 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
680 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
681 (aarch64_init_memtag_builtins): New.
682 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
683 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
684 (aarch64_expand_builtin_memtag): New.
685 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
686 (AARCH64_BUILTIN_SUBCODE): New macro.
687 (aarch64_resolve_overloaded_memtag): New.
688 (aarch64_resolve_overloaded_builtin_general): New. Call
689 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
690 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
691 __ARM_FEATURE_MEMORY_TAGGING when enabled.
692 (aarch64_resolve_overloaded_builtin): Call
693 aarch64_resolve_overloaded_builtin_general.
694 * config/aarch64/aarch64-protos.h
695 (aarch64_resolve_overloaded_builtin_general): New declaration.
696 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
697 (TARGET_MEMTAG): Likewise.
698 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
699 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
700 (irg, gmi, subp, addg, ldg, stg): New instructions.
701 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
702 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
703 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
704 (__arm_mte_get_tag): Likewise.
705 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
706 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
707 * config/arm/types.md (memtag): New.
708 * doc/invoke.texi (-memtag): Update description.
709
710 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
711
712 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
713 to define __GCC_ASM_FLAG_OUTPUTS__.
714 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
715 (arm_option_params_internal): Swap out targetm.md_asm_adjust
716 depending on TARGET_THUMB1.
717 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
718
719 2019-11-19 Jakub Jelinek <jakub@redhat.com>
720
721 PR target/92549
722 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
723
724 PR middle-end/91450
725 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
726 operand is negative and one non-negative, compare the non-negative
727 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
728 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
729 and s2 == 0, unless one of them is known to be negative. Remove
730 tem2 variable, use tem where tem2 has been used before.
731
732 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
733
734 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
735
736 2019-11-19 Jakub Jelinek <jakub@redhat.com>
737
738 PR tree-optimization/92557
739 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
740 vmode rather than asserting it always is.
741
742 2019-11-19 Richard Biener <rguenther@suse.de>
743
744 PR tree-optimization/92554
745 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
746 for the actual condition stmt and deal with sign-changes.
747
748 2019-11-19 Richard Biener <rguenther@suse.de>
749
750 PR tree-optimization/92555
751 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
752 for non-SLP stmts.
753
754 2019-11-19 Martin Liska <mliska@suse.cz>
755
756 PR bootstrap/92540
757 * config/riscv/riscv.c (riscv_address_insns): Initialize
758 addr in order to remove boostrap -Wmaybe-uninitialized
759 error.
760
761 2019-11-18 Martin Sebor <msebor@redhat.com>
762
763 PR tree-optimization/92493
764 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
765 assignment.
766
767 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
768
769 * cfgloop.c (get_loop_body_in_custom_order): New.
770 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
771 * tree-loop-distribution.c (class loop_distribution): New.
772 (bb_top_order_cmp): Remove.
773 (bb_top_order_cmp_r): New.
774 (create_rdg_vertices): Move into class loop_distribution.
775 (stmts_from_loop): Same as above.
776 (update_for_merge): Same as above.
777 (partition_merge_into): Same as above.
778 (get_data_dependence): Same as above.
779 (data_dep_in_cycle_p): Same as above.
780 (update_type_for_merge): Same as above.
781 (build_rdg_partition_for-vertex): Same as above.
782 (classify_builtin_ldst): Same as above.
783 (classify_partition): Same as above.
784 (share_memory_accesses): Same as above.
785 (rdg_build_partitions): Same as above.
786 (pg_add_dependence_edges): Same as above.
787 (build_partition_graph): Same as above.
788 (merge_dep_scc_partitions): Same as above.
789 (break_alias_scc_partitions): Same as above.
790 (finalize_partitions): Same as above.
791 (distribute_loop): Same as above.
792 (bb_top_order_init): New method
793 (bb_top_order_destroy): New method.
794 (get_bb_top_order_index_size): New method.
795 (get_bb_top_order_index_index): New method.
796 (get_bb_top_order_index_index): New method.
797 (loop_distribution::execute): New method.
798 (pass_loop_distribution::execute): Instantiate loop_distribution.
799
800 2019-11-18 Jan Hubicka <jh@suse.cz>
801
802 PR ipa/92508
803 * ipa-inline.c (inline_small_functions): Add new edges after reseting
804 caches.
805 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
806
807 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
808
809 * doc/sourcebuild.texi (vect_check_ptrs): Document.
810 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
811 * doc/md.texi: Document them.
812 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
813 internal functions.
814 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
815 * internal-fn.c (check_ptrs_direct): New macro.
816 (expand_check_ptrs_optab_fn): Likewise.
817 (direct_check_ptrs_optab_supported_p): Likewise.
818 (internal_check_ptrs_fn_supported_p): New fuction.
819 * tree-data-ref.c: Include internal-fn.h.
820 (create_ifn_alias_checks): New function.
821 (create_intersect_range_checks): Use it.
822 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
823 (optab, cmp_op): Handle it.
824 (raw_war, unspec): New int attributes.
825 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
826 constants.
827 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
828 New predicate.
829 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
830 expander.
831 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
832 pattern.
833
834 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
835
836 * tree.c (build_vector_from_ctor): Directly return a zero vector for
837 empty constructors.
838
839 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
840
841 * cse.c (cse_insn): Delete no-op register moves too.
842 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
843 Take a second comparison to control the value for NE.
844 (mask_to_comparison): Handle unsigned comparisons.
845 (simplify_logical_relational_operation): Likewise. Update call
846 to comparison_to_mask. Handle AND if !HONOR_NANs.
847 (simplify_binary_operation_1): Call the above for AND too.
848
849 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
850
851 * fold-const.c (native_encode_vector): Turn into a wrapper function,
852 splitting the main code out into...
853 (native_encode_vector_part): ...this new function.
854 (native_decode_vector_tree): New function.
855 (fold_view_convert_vector_encoding): Likewise.
856 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
857 to VECTOR_TYPEs.
858
859 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
860
861 * tree-data-ref.c (create_intersect_range_checks_index): If the
862 alias pair describes simple WAW and WAR dependencies, just check
863 whether the first B access overlaps later A accesses.
864 (create_waw_or_war_checks): New function that performs the same
865 optimization on addresses.
866 (create_intersect_range_checks): Call it.
867
868 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
869
870 * lra-constraints.c (valid_address_p): Take the operand and a
871 constraint as argument. If the operand is a MEM and the constraint
872 is a memory constraint, check whether the eliminated form of the
873 MEM already satisfies the constraint.
874 (process_address_1): Update calls accordingly.
875
876 2019-11-18 Tom Tromey <tromey@adacore.com>
877
878 * doc/tm.texi: Rebuild.
879 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
880 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
881
882 2019-11-18 Richard Biener <rguenther@suse.de>
883
884 PR tree-optimization/92516
885 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
886 argument, hoist bst_map creation/destruction to ...
887 (vect_analyze_slp): ... here, forming a true graph with
888 SLP instances being the entries.
889 (vect_detect_hybrid_slp_stmts): Remove wrapper.
890 (vect_detect_hybrid_slp): Use one visited set for all
891 graph entries.
892 (vect_slp_analyze_node_operations): Simplify visited/lvisited
893 to hash-sets of slp_tree.
894 (vect_slp_analyze_operations): Likewise.
895 (vect_bb_slp_scalar_cost): Remove wrapper.
896 (vect_bb_vectorization_profitable_p): Use one visited set for
897 all graph entries.
898 (vect_schedule_slp_instance): Elide bst_map use.
899 (vect_schedule_slp): Likewise.
900
901 2019-11-18 Richard Biener <rguenther@suse.de>
902
903 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
904 was vectorized with just external refs fail.
905
906 2019-11-18 Martin Liska <mliska@suse.cz>
907
908 PR ipa/92525
909 * ipa-icf.c (sem_function::init): Unset m_checker
910 at the end of the function.
911
912 2019-11-18 Richard Biener <rguenther@suse.de>
913
914 PR tree-optimization/92558
915 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
916 reducting the width of a reduction vector def update new_phis.
917
918 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
919
920 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
921 and s390*-*-linux-musl* targets.
922 * configure: Regenerate.
923
924 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
925
926 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
927 (MUSL_DYNAMIC_LINKER64): Define.
928
929 2019-11-18 Martin Liska <mliska@suse.cz>
930
931 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
932 message for an unknown counter.
933 (dbg_cnt_process_single_pair): Support 0 as minimum value.
934 (dbg_cnt_process_opt): Remove unreachable code.
935
936 2019-11-18 Martin Liska <mliska@suse.cz>
937
938 PR ipa/92529
939 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
940 Compare LHS types of NOP_EXPR.
941
942 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
943
944 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
945 "initial_pass_name" argument -- by running "*clean_state" pass.
946 Also free the "initial_pass_name" when done.
947
948 2019-11-18 Richard Biener <rguenther@suse.de>
949
950 PR rtl-optimization/92462
951 * alias.c (find_base_term): Restrict the look through ANDs.
952 (find_base_value): Likewise.
953
954 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
955
956 Add support for AVR devices from the 0-series.
957
958 PR target/92545
959 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
960 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
961 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
962 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
963 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
964 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
965 for spec definitions.
966 * doc/avr-mmcu.texi: Regenerate.
967
968 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
969
970 PR target/92448
971 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
972 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
973 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
974 (ix86_reassociation_width): Ditto.
975 * config/i386/i386-options.c (ix86_option_override_internal):
976 Replace TARGET_AVX128_OPTIAML with
977 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
978 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
979 (TARGET_AVX128_OPTIMAL): Deleted.
980 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
981 DEF_TUNE.
982
983 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
984
985 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
986 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
987 just SI.
988 (cceq_rev_compare): Rename to...
989 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
990 just SI.
991 (define_split for <bd>tf_<mode>): Add SImode first argument to
992 gen_cceq_ior_compare.
993
994 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
995
996 * common/config/powerpcspe: Delete.
997
998 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
999
1000 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
1001 output in UNSPEC_WRFFR.
1002
1003 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1004
1005 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
1006 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
1007
1008 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1009
1010 * tree-data-ref.c (create_intersect_range_checks_index)
1011 (create_intersect_range_checks): Print dump messages.
1012
1013 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1014
1015 * tree-data-ref.c (dump_alias_pair): New function.
1016 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
1017
1018 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1019
1020 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
1021 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
1022 merging data references with different steps.
1023 (create_intersect_range_checks_index): Take a
1024 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
1025 Bail out if DR_ALIAS_MIXED_STEPS is set.
1026 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
1027 instead of two dr_with_seg_lens. Update call to
1028 create_intersect_range_checks_index.
1029 (create_runtime_alias_checks): Update call accordingly.
1030
1031 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1032
1033 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
1034 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
1035 (dr_with_seg_len_pair_t::sequencing): New enum.
1036 (dr_with_seg_len_pair_t::flags): New member variable.
1037 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
1038 parameter and initialize the flags member variable.
1039 * tree-loop-distribution.c (compute_alias_check_pairs): Update
1040 call accordingly.
1041 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1042 Ensure the two data references in an alias pair are in statement
1043 order, if there is a defined order.
1044 * tree-data-ref.c (prune_runtime_alias_test_list): Use
1045 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
1046 swapped the references in a dr_with_seg_len_pair_t. OR together
1047 the flags when merging two dr_with_seg_len_pair_ts. After merging,
1048 try to restore the original dr_with_seg_len order, updating the
1049 flags if that fails.
1050
1051 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1052
1053 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
1054 swapping the dr_as based on init values until we've decided
1055 whether to merge them.
1056
1057 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1058
1059 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
1060 two accesses in each dr_with_seg_len_pair_t before trying to
1061 combine separate dr_with_seg_len_pair_ts.
1062 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
1063 that here.
1064 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1065
1066 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1067
1068 * config/aarch64/aarch64-sve.md
1069 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1070 (scatter_store<SVE_24:mode><v_int_container>): ...this.
1071 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1072 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
1073 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1074 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
1075 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
1076 pattern.
1077 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1078 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1079 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1080 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1081
1082 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1083
1084 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
1085 (SVE_4HSI): New mode iterators.
1086 (ANY_EXTEND2): New code iterator.
1087 * config/aarch64/aarch64-sve.md
1088 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
1089 Extend to...
1090 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
1091 ...this, handling extension to partial modes as well as full modes.
1092 Describe the extension as a predicated rather than unpredicated
1093 extension.
1094 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1095 Likewise extend to...
1096 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
1097 ...this, making the same adjustments.
1098 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1099 Likewise extend to...
1100 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
1101 ...this, making the same adjustments.
1102 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1103 Likewise extend to...
1104 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
1105 ...this, making the same adjustments.
1106 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
1107 New pattern.
1108 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
1109 extension predicate.
1110 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1111 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
1112 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1113 Describe the extension as a predicated rather than unpredicated
1114 extension.
1115 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1116 Likewise. Canonicalize to a constant extension predicate.
1117 * config/aarch64/aarch64-sve-builtins-base.cc
1118 (svld1_gather_extend_impl::expand): Add an extra predicate for
1119 the extension.
1120 (svldff1_gather_extend_impl::expand): Likewise.
1121
1122 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1123
1124 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
1125 iterators.
1126 * config/aarch64/aarch64-sve.md
1127 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1128 (gather_load<SVE_24:mode><v_int_container>): ...this.
1129 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1130 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
1131 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1132 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
1133 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
1134 New pattern.
1135 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1136 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1137 Allow the nominal extension predicate to be different from the
1138 load predicate.
1139 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1140 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1141
1142 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1143
1144 * config/aarch64/aarch64-sve.md
1145 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
1146 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
1147 function.
1148 (aarch64_sve_adjust_stmt_cost): Call it.
1149
1150 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1151
1152 * config/aarch64/aarch64-sve.md
1153 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
1154 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1155 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1156 Combine into...
1157 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
1158 ...this new pattern, handling extension to partial modes as well
1159 as full modes. Describe the extension as a predicated rather than
1160 unpredicated extension.
1161 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
1162 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1163 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1164 Combine into...
1165 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
1166 ...this new pattern, handling extension to partial modes as well
1167 as full modes. Describe the extension as a predicated rather than
1168 unpredicated extension.
1169 * config/aarch64/aarch64-sve-builtins.cc
1170 (function_expander::use_contiguous_load_insn): Add an extra
1171 predicate for extending loads.
1172 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
1173 (aarch64_sve_adjust_stmt_cost): Likewise.
1174 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
1175 the cost of SVE vector stmts.
1176
1177 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1178
1179 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
1180 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
1181 * config/aarch64/aarch64-sve.md
1182 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
1183 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
1184 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
1185 comment. Avoid new narrower_mask ambiguity.
1186 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
1187 (*cond_uxt<mode>_2): Update comment.
1188 (*cond_uxt<mode>_any): Likewise.
1189
1190 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1191
1192 * config/aarch64/aarch64-modes.def: Define partial SVE vector
1193 float modes.
1194 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
1195 function.
1196 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
1197 new vector float modes.
1198 (aarch64_sve_container_bits): New function.
1199 (aarch64_sve_pred_mode): Likewise.
1200 (aarch64_get_mask_mode): Use it.
1201 (aarch64_sve_element_int_mode): Handle structure modes and partial
1202 modes.
1203 (aarch64_sve_container_int_mode): New function.
1204 (aarch64_vectorize_related_mode): Return SVE modes when given
1205 SVE modes. Handle partial modes, taking the preferred number
1206 of units from the size of the given mode.
1207 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
1208 in registers.
1209 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
1210 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
1211 (aarch64_split_sve_subreg_move): Use the mode form of
1212 aarch64_sve_pred_mode.
1213 (aarch64_secondary_reload): Handle partial modes in the same way
1214 as full big-endian vectors.
1215 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
1216 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
1217 merging with the Advanced SIMD modes. If two modes have the
1218 same size, try the Advanced SIMD mode first.
1219 (aarch64_simd_valid_immediate): Use the container rather than
1220 the element mode for INDEX constants.
1221 (aarch64_simd_vector_alignment): Make the alignment of partial
1222 SVE vector modes the same as their minimum size.
1223 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
1224 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
1225 (mov<SVE_ALL:mode>): ...this.
1226 (movmisalign<SVE_FULL:mode>): Extend to...
1227 (movmisalign<SVE_ALL:mode>): ...this.
1228 (*aarch64_sve_mov<mode>_le): Rename to...
1229 (*aarch64_sve_mov<mode>_ldr_str): ...this.
1230 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
1231 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
1232 partial modes regardless of endianness.
1233 (aarch64_sve_reload_be): Rename to...
1234 (aarch64_sve_reload_mem): ...this and enable for little-endian.
1235 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
1236 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
1237 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
1238 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
1239 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
1240 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
1241 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
1242 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
1243 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
1244 (maskload<SVE_FULL:mode><vpred>): Extend to...
1245 (maskload<SVE_ALL:mode><vpred>): ...this.
1246 (maskstore<SVE_FULL:mode><vpred>): Extend to...
1247 (maskstore<SVE_ALL:mode><vpred>): ...this.
1248 (vec_duplicate<SVE_FULL:mode>): Extend to...
1249 (vec_duplicate<SVE_ALL:mode>): ...this.
1250 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
1251 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
1252 (sve_ld1r<SVE_FULL:mode>): Extend to...
1253 (sve_ld1r<SVE_ALL:mode>): ...this.
1254 (vec_series<SVE_FULL_I:mode>): Extend to...
1255 (vec_series<SVE_I:mode>): ...this.
1256 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
1257 (*vec_series<SVE_I:mode>_plus): ...this.
1258 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
1259 new VPRED ambiguity.
1260 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
1261 (add<SVE_FULL_I:mode>3): Extend to...
1262 (add<SVE_I:mode>3): ...this.
1263 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
1264 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
1265 (VPRED, vpred): Likewise.
1266 (Vctype): New iterator.
1267 (vw): Remove SVE modes.
1268
1269 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1270
1271 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
1272 (SVE_PARTIAL_I): ...this.
1273 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
1274
1275 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1276
1277 * config/aarch64/iterators.md (SVE_ALL): Rename to...
1278 (SVE_FULL): ...this.
1279 (SVE_I): Rename to...
1280 (SVE_FULL_I): ...this.
1281 (SVE_F): Rename to...
1282 (SVE_FULL_F): ...this.
1283 (SVE_BHSI): Rename to...
1284 (SVE_FULL_BHSI): ...this.
1285 (SVE_HSD): Rename to...
1286 (SVE_FULL_HSD): ...this.
1287 (SVE_HSDI): Rename to...
1288 (SVE_FULL_HSDI): ...this.
1289 (SVE_HSF): Rename to...
1290 (SVE_FULL_HSF): ...this.
1291 (SVE_SD): Rename to...
1292 (SVE_FULL_SD): ...this.
1293 (SVE_SDI): Rename to...
1294 (SVE_FULL_SDI): ...this.
1295 (SVE_SDF): Rename to...
1296 (SVE_FULL_SDF): ...this.
1297 (SVE_S): Rename to...
1298 (SVE_FULL_S): ...this.
1299 (SVE_D): Rename to...
1300 (SVE_FULL_D): ...this.
1301 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
1302 * config/aarch64/aarch64-sve2.md: Likewise.
1303
1304 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1305
1306 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
1307 New option.
1308 * doc/invoke.texi: Document it.
1309 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
1310 By default, return VECT_COMPARE_COSTS for SVE.
1311
1312 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1313
1314 * target.h (VECT_COMPARE_COSTS): New constant.
1315 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
1316 * doc/tm.texi: Regenerate.
1317 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
1318 * targhooks.c (default_autovectorize_vector_modes): Likewise.
1319 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
1320 Likewise.
1321 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
1322 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
1323 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
1324 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
1325 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
1326 (_loop_vec_info::vec_inside_cost): New member variables.
1327 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
1328 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
1329 (vect_analyze_loop): When autovectorize_vector_modes returns
1330 VECT_COMPARE_COSTS, try vectorizing the loop with each available
1331 vector mode and picking the one with the lowest cost.
1332 (vect_estimate_min_profitable_iters): Record the computed costs
1333 in the loop_vec_info.
1334
1335 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1336
1337 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
1338 element type rather than an element mode.
1339 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
1340 Use get_vectype_for_scalar_type to query the natural types
1341 for a given element type rather than basing everything on
1342 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
1343 query to MAX_FIXED_MODE_SIZE.
1344 (duplicate_and_interleave): Update call accordingly.
1345 * tree-vect-loop.c (vectorizable_reduction): Likewise.
1346
1347 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1348
1349 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
1350 optional maximum nunits.
1351 (get_vectype_for_scalar_type): Likewise. Also declare a form that
1352 takes an slp_tree.
1353 (get_mask_type_for_scalar_type): Take an optional slp_tree.
1354 (vect_get_mask_type_for_stmt): Likewise.
1355 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
1356 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
1357 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
1358 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
1359 to get an assumed vector type for data references.
1360 * tree-vect-slp.c (vect_update_shared_vectype): New function.
1361 (vect_update_all_shared_vectypes): Likewise.
1362 (vect_build_slp_tree_1): Pass the group size to
1363 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
1364 for BB vectorization.
1365 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
1366 before building the vectof from scalars.
1367 (vect_analyze_slp_instance): Pass the group size to
1368 get_vectype_for_scalar_type.
1369 (vect_slp_analyze_node_operations_1): Don't recompute the vector
1370 types for BB vectorization here; just handle the case in which
1371 we deferred the choice for booleans.
1372 (vect_get_constant_vectors): Pass the slp_tree to
1373 get_vectype_for_scalar_type.
1374 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
1375 (vectorizable_call): Likewise.
1376 (vectorizable_simd_clone_call): Likewise.
1377 (vectorizable_conversion): Likewise.
1378 (vectorizable_shift): Likewise.
1379 (vectorizable_operation): Likewise.
1380 (vectorizable_comparison): Likewise.
1381 (vect_is_simple_cond): Take the slp_tree as argument and
1382 pass it to get_vectype_for_scalar_type.
1383 (vectorizable_condition): Update call accordingly.
1384 (get_vectype_for_scalar_type): Take a group_size argument.
1385 For BB vectorization, limit the the vector to that number
1386 of elements. Also define an overload that takes an slp_tree.
1387 (get_mask_type_for_scalar_type): Add an slp_tree argument and
1388 pass it to get_vectype_for_scalar_type.
1389 (vect_get_vector_types_for_stmt): Add a group_size argument
1390 and pass it to get_vectype_for_scalar_type. Don't use the
1391 cached vector type for BB vectorization if a group size is given.
1392 Handle data references in that case.
1393 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
1394 pass it to get_mask_type_for_scalar_type.
1395
1396 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
1397
1398 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
1399 parameter.
1400 (estimate_edge_time): Use it.
1401 * ipa-inline-analysis.c (do_estimate_edge_time): Add
1402 ret_nonspec_time parameter.
1403
1404 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
1405
1406 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
1407
1408 2019-11-15 Nick Clifton <nickc@redhat.com>
1409 Szabolcs Nagy <szabolcs.nagy@arm.com>
1410
1411 PR target/65649
1412 * config/microblaze/microblaze.c (print_operand): Print value as long.
1413
1414 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
1415
1416 * ipa-inline.c (edge_badness, inline_small_functions): Revert
1417 accidental commit.
1418
1419 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1420
1421 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
1422 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
1423
1424 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1425
1426 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
1427 (gcn_conditional_register_usage): Use constants in place of hard-coded
1428 values.
1429 (gcn_hsa_declare_function_name): Set lower bound for number of
1430 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
1431 MAX_NORMAL_VGPR_COUNT.
1432
1433 2019-11-15 Martin Jambor <mjambor@suse.cz>
1434
1435 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
1436 declaration.
1437
1438 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1439
1440 * config/gcn/gcn.c (default_requested_args): New.
1441 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
1442 set with default_requested_args.
1443 (gcn_conditional_register_usage): Limit register usage of non-kernel
1444 functions. Reassign fixed registers if a non-standard set of args is
1445 requested.
1446 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
1447
1448 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
1449
1450 PR ipa/92528
1451 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
1452 aggregate jump function when inlined-to caller has no edge summary.
1453
1454 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1455
1456 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
1457
1458 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1459
1460 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
1461 prologue use of v0.
1462 (print_operand_address): Use v1 for zero vector offset.
1463
1464 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
1465
1466 PR tree-optimization/92515
1467 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
1468 types when converting a vector/scalar shift into a vector/vector one,
1469 using tree_nop_conversion_p instead of useless_type_conversion_p.
1470 Move the conversion code to the transform block.
1471
1472 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
1473
1474 * read-rtl-function.c
1475 (function_reader::add_fixup_source_location): Take additional
1476 parameter of a column.
1477 (function_reader::maybe_read_location): Optionally parse column
1478 information and pass to add_fixup_source_location.
1479
1480 2019-11-15 Richard Biener <rguenther@suse.de>
1481
1482 PR tree-optimization/92512
1483 * tree-vect-loop.c (check_reduction_path): Fix operand index
1484 computability check. Add check for second use in COND_EXPRs.
1485
1486 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
1487
1488 PR target/92515
1489 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
1490 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
1491
1492 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1493
1494 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
1495 register class for VCC_LO and VCC_HI.
1496 (gcn_spill_class): Use SGPR_REGS to spill registers in
1497 VCC_CONDITIONAL_REG.
1498
1499 2019-11-15 Richard Biener <rguenther@suse.de>
1500
1501 PR tree-optimization/92324
1502 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
1503 singedness of SLP reduction epilouge operations. Also reduce
1504 the vector width for SLP reductions before doing elementwise
1505 operations if possible.
1506
1507 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
1508
1509 * passes.c (skip_pass): Set epilogue_completed if skipping the
1510 pro_and_epilogue pass.
1511
1512 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
1513
1514 * passes.c (should_skip_pass_p): Always run "dfinish".
1515
1516 2019-11-15 Richard Biener <rguenther@suse.de>
1517
1518 * ipa-inline.c (inline_small_functions): Move assignment
1519 to next before call destroying edge.
1520
1521 2019-11-15 Richard Biener <rguenther@suse.de>
1522
1523 PR tree-optimization/92039
1524 PR tree-optimization/91975
1525 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
1526 previous change, treat invariants consistently as non-constant.
1527 (tree_estimate_loop_size): Ternary ops with just the first op
1528 constant are not optimized away.
1529
1530 2019-11-15 Jakub Jelinek <jakub@redhat.com>
1531
1532 * gimplify.c (gimplify_call_expr): Don't call
1533 omp_resolve_declare_variant after gimplification.
1534 * omp-general.c (omp_context_selector_matches): For isa that might
1535 match in some other function, defer if in declare simd function.
1536 (omp_context_compute_score): Don't look for " score" in construct
1537 trait set. Set *score to -1 if it can't ever match.
1538 (omp_resolve_declare_variant): If any variants need to be deferred,
1539 don't punt immediately, but compute scores of all variants and if
1540 ther eis a score winner that doesn't need to be deferred, return that.
1541
1542 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
1543
1544 * ipa-comdats.c: Fix comments typo.
1545 * ipa-profile.c: Fix comments typo.
1546 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
1547 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
1548 (gimple_gen_ic_func_profiler): Likewise.
1549 (pass_ipa_tree_profile::gate): Fix comments typo.
1550
1551 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
1552
1553 * ipa-inline.c (inline_small_functions): Update iterator of next.
1554
1555 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
1556
1557 * lra-spills.c (assign_spill_hard_regs): Check that the spill
1558 register is suitable for the mode.
1559
1560 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
1561
1562 * range-op.h (range_operator::fold_range): Return a bool.
1563 * range-op.cc (range_operator::wi_fold): Assert supported type.
1564 (range_operator::fold_range): Assert supported type and return true.
1565 (operator_equal::fold_range): Return true.
1566 (operator_not_equal::fold_range): Same.
1567 (operator_lt::fold_range): Same.
1568 (operator_le::fold_range): Same.
1569 (operator_gt::fold_range): Same.
1570 (operator_ge::fold_range): Same.
1571 (operator_plus::op1_range): Adjust call to fold_range.
1572 (operator_plus::op2_range): Same.
1573 (operator_minus::op1_range): Same.
1574 (operator_minus::op2_range): Same.
1575 (operator_exact_divide::op1_range): Same.
1576 (operator_lshift::fold_range): Return true and adjust fold_range call.
1577 (operator_rshift::fold_range): Same.
1578 (operator_cast::fold_range): Return true.
1579 (operator_logical_and::fold_range): Same.
1580 (operator_logical_or::fold_range): Same.
1581 (operator_logical_not::fold_range): Same.
1582 (operator_bitwise_not::fold_range): Adjust call to fold_range.
1583 (operator_bitwise_not::op1_range): Same.
1584 (operator_cst::fold_range): Return true.
1585 (operator_identity::fold_range): Return true.
1586 (operator_negate::fold_range): Return true and adjust fold_range call.
1587 (operator_addr_expr::fold_range): Return true.
1588 (operator_addr_expr::op1_range): Adjust call to fold_range.
1589 (range_cast): Same.
1590 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
1591 (range_fold_unary_symbolics_p): Same.
1592
1593 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
1594
1595 PR tree-optimization/92506
1596 * range-op.cc (range_operator::fold_range): Start with range undefined.
1597 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
1598 overflow is varying.
1599
1600 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
1601
1602 * range-op.cc (*operator*::*range): Remove calls to
1603 range_intersect, range_invert, and range_union in favor of calling
1604 the in-place API methods.
1605 (range_tests): Same.
1606 * range.cc (range_intersect): Remove.
1607 (range_union): Remove.
1608 (range_invert): Remove.
1609 * range.h (range_intersect): Remove.
1610 (range_union): Remove.
1611 (range_intersect): Remove.
1612
1613 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
1614
1615 PR rtl-optimization/92430
1616 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
1617 (pass_jump_after_combine::execute): Perform jump threading
1618 unconditionally.
1619
1620 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
1621 Doug Rupp <rupp@adacore.com>
1622 Olivier Hainque <hainque@adacore.com>
1623
1624 * config.gcc: Collapse the arm-vxworks entries into
1625 a single arm-wrs-vxworks7* one, bpabi based. Update
1626 the default cpu from arm8 to armv7-a
1627 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
1628 we always use ARM_UNWIND_INFO.
1629 (DWARF2_UNWIND_INFO): Remove redefinition.
1630 (ARM_TARGET2_DWARF_FORMAT): Likewise.
1631 (VXWORKS_PERSONALITY): Define, to "llvm".
1632 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
1633
1634 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
1635
1636 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
1637 _VX_CPU instead of CPU and handle arm_arch8.
1638
1639 2019-11-14 Doug Rupp <rupp@adacore.com>
1640 Olivier Hainque <hainque@adacore.com>
1641 Jerome Lambourg <lambourg@adacore.com>
1642
1643 * config.gcc: Handle aarch64*-wrs-vxworks7*.
1644 * config/aarch64/aarch64-vxworks.h: New file.
1645 * config/aarch64/t-aarch64-vxworks: New file.
1646
1647 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
1648 Olivier Hainque <hainque@adacore.com>
1649
1650 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
1651 definition, pointless with a VxWorks specific version
1652 of crtstuff.
1653 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
1654 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
1655 New local macros, controlling the addition of vxworks specific
1656 crtstuff objects depending on the EH mechanism and kind of
1657 module being linked.
1658 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
1659
1660 2019-11-06 Pat Bernardi <bernardi@adacore.com>
1661 Jerome Lambourg <lambourg@adacore.com>
1662 Olivier Hainque <hainque@adacore.com>
1663
1664 * config.gcc: Add comment to introduce the TARGET_VXWORKS
1665 common macro definitions, conveying VXWORKS7 or 64bit general
1666 variations. Add a block to set gcc_cv_initfini_array
1667 unconditionally to "yes" for VxWorks7.
1668 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
1669 by default. Update some comments.
1670 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
1671 default, to be added the end of VXWORKS_LIBS_RTP.
1672 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
1673 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
1674 redefine.
1675 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
1676 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
1677 to account for the now available TLS abilities.
1678 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
1679 (VXWORKS_HAVE_TLS): Likewise.
1680
1681 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1682
1683 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
1684 (vect_slp_convert_to_external): Likewise.
1685 (vect_slp_analyze_node_operations): If analysis fails, try building
1686 the node from scalars instead.
1687
1688 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1689
1690 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
1691 between vector types.
1692 * tree-vect-stmts.c (vectorizable_conversion): Extend the
1693 non-widening and non-narrowing path to handle standard
1694 conversion codes, if the target supports them.
1695 * expr.c (convert_move): Try using the extend and truncate optabs
1696 for vectors.
1697 * optabs-tree.c (supportable_convert_operation): Likewise.
1698 * config/aarch64/iterators.md (Vnarroqw): New iterator.
1699 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
1700 (trunc<mode><Vnarrowq>2): New patterns.
1701
1702 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1703
1704 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
1705 require vectype and nunits_vectype to have the same size;
1706 instead assert that nunits_vectype has at least as many
1707 elements as vectype. Don't compute a separate nunits_vectype
1708 if the scalar type is obviously the same as vectype's.
1709 Tweak dump messages.
1710
1711 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1712
1713 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
1714 function.
1715 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
1716 (TARGET_VECTORIZE_RELATED_MODE): Define.
1717
1718 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1719
1720 * tree-vectorizer.h (vec_info::mode_set): New typedef.
1721 (vec_info::used_vector_mode): New member variable.
1722 (vect_chooses_same_modes_p): Declare.
1723 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
1724 chosen vector mode in vec_info::used_vector_mode.
1725 (vect_chooses_same_modes_p): New function.
1726 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
1727 the same vector statements multiple times.
1728 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
1729
1730 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1731
1732 * machmode.h (opt_machine_mode::operator==): New function.
1733 (opt_machine_mode::operator!=): Likewise.
1734 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
1735 (get_related_vectype_for_scalar_type): Delete.
1736 (get_vectype_for_scalar_type_and_size): Declare.
1737 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
1738 whether analysis passed or failed, and with what vector modes.
1739 Use related_vector_mode to check whether trying a particular
1740 vector mode would be redundant with the autodetected mode,
1741 and print a dump message if we decide to skip it.
1742 * tree-vect-loop.c (vect_analyze_loop): Likewise.
1743 (vect_create_epilog_for_reduction): Use
1744 get_related_vectype_for_scalar_type instead of
1745 get_vectype_for_scalar_type_and_size.
1746 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
1747 with...
1748 (get_related_vectype_for_scalar_type): ...this new function.
1749 Take a starting/"prevailing" vector mode rather than a vector size.
1750 Take an optional nunits argument, with the same meaning as for
1751 related_vector_mode. Use related_vector_mode when not
1752 auto-detecting a mode, falling back to mode_for_vector if no
1753 target mode exists.
1754 (get_vectype_for_scalar_type): Update accordingly.
1755 (get_same_sized_vectype): Likewise.
1756 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
1757
1758 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1759
1760 * tree-vect-stmts.c (vectorizable_call): Require the types
1761 to have the same size.
1762
1763 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1764
1765 * tree-vect-stmts.c (vectorizable_call): If an operand is
1766 constant or external, use get_vectype_for_scalar_type
1767 rather than get_same_sized_vectype to get its vector type.
1768 (vectorizable_conversion, vectorizable_shift): Likewise.
1769 (vectorizable_operation): Likewise.
1770
1771 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1772
1773 * tree-vectorizer.h (vec_info::vector_size): Replace with...
1774 (vec_info::vector_mode): ...this new field.
1775 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
1776 (vect_analyze_loop, vect_transform_loop): Likewise.
1777 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
1778 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
1779 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
1780 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
1781 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
1782
1783 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1784
1785 * target.h (vector_sizes, auto_vector_sizes): Delete.
1786 (vector_modes, auto_vector_modes): New typedefs.
1787 * target.def (autovectorize_vector_sizes): Replace with...
1788 (autovectorize_vector_modes): ...this new hook.
1789 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
1790 Replace with...
1791 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
1792 * doc/tm.texi: Regenerate.
1793 * targhooks.h (default_autovectorize_vector_sizes): Delete.
1794 (default_autovectorize_vector_modes): New function.
1795 * targhooks.c (default_autovectorize_vector_sizes): Delete.
1796 (default_autovectorize_vector_modes): New function.
1797 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
1798 of autovectorize_vector_sizes. Use the number of units in the mode
1799 to calculate the maximum VF.
1800 * omp-low.c (omp_clause_aligned_alignment): Use
1801 autovectorize_vector_modes instead of autovectorize_vector_sizes.
1802 Use a loop based on related_mode to iterate through all supported
1803 vector modes for a given scalar mode.
1804 * optabs-query.c (can_vec_mask_load_store_p): Use
1805 autovectorize_vector_modes instead of autovectorize_vector_sizes.
1806 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
1807 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
1808 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
1809 Replace with...
1810 (aarch64_autovectorize_vector_modes): ...this new function.
1811 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1812 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1813 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
1814 (arc_autovectorize_vector_modes): ...this new function.
1815 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1816 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1817 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
1818 (arm_autovectorize_vector_modes): ...this new function.
1819 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1820 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1821 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
1822 (ix86_autovectorize_vector_modes): ...this new function.
1823 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1824 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1825 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
1826 (mips_autovectorize_vector_modes): ...this new function.
1827 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1828 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1829
1830 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1831
1832 * tree-vect-stmts.c (vectorizable_shift): Check the number
1833 of vector elements as well as the type mode when deciding
1834 whether an op1_vectype is compatible. Reuse the result of
1835 this check when generating vector statements.
1836
1837 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1838
1839 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
1840 targetm.vectorize.preferred_simd_mode returns an integer mode,
1841 use mode_for_vector to decide what the vector type's mode
1842 should actually be. Use build_vector_type_for_mode instead
1843 of build_vector_type.
1844
1845 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1846
1847 * target.def (get_mask_mode): Take a vector mode itself as argument,
1848 instead of properties about the vector mode.
1849 * doc/tm.texi: Regenerate.
1850 * targhooks.h (default_get_mask_mode): Update to reflect new
1851 get_mode_mask interface.
1852 * targhooks.c (default_get_mask_mode): Likewise. Use
1853 related_int_vector_mode.
1854 * optabs-query.c (can_vec_mask_load_store_p): Update call
1855 to get_mask_mode.
1856 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
1857 first that the original mode really is a vector.
1858 * tree.c (build_truth_vector_type_for): Likewise.
1859 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
1860 get_mode_mask interface.
1861 (aarch64_expand_sve_vcond): Update call accordingly.
1862 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
1863 get_mode_mask interface.
1864 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
1865
1866 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1867
1868 * tree.h (build_truth_vector_type): Delete.
1869 (build_same_sized_truth_vector_type): Likewise.
1870 * tree.c (build_truth_vector_type): Rename to...
1871 (build_truth_vector_type_for): ...this. Make static and take
1872 a vector type as argument.
1873 (truth_type_for): Update accordingly.
1874 (build_same_sized_truth_vector_type): Delete.
1875 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
1876 instead of build_same_sized_truth_vector_type.
1877 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
1878 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
1879 * tree-vect-patterns.c (build_mask_conversion): Likeise.
1880 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1881 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
1882 (vect_build_gather_load_calls, vectorizable_call): Likewise.
1883 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
1884 (vectorizable_store, vectorizable_condition): Likewise.
1885 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
1886 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
1887 build_truth_vector_type.
1888 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
1889 Use truth_type_for instead of build_same_sized_truth_vector_type.
1890 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
1891
1892 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1893
1894 * tree.h (build_truth_vector_type_for_mode): Declare.
1895 * tree.c (build_truth_vector_type_for_mode): New function,
1896 split out from...
1897 (build_truth_vector_type): ...here.
1898 (build_opaque_vector_type): Fix head comment.
1899 * tree-vectorizer.h (supportable_narrowing_operation): Remove
1900 vec_info parameter.
1901 (vect_halve_mask_nunits): Replace vec_info parameter with the
1902 mode of the new vector.
1903 (vect_double_mask_nunits): Likewise.
1904 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
1905 (vect_double_mask_nunits): Likewise.
1906 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
1907 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
1908 to vect_halve_mask_nunits, getting the required mode from the unpack
1909 patterns.
1910 (vect_set_loop_condition_masked): Update call accordingly.
1911 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
1912 parameter and update call to vect_double_mask_nunits.
1913 (vectorizable_conversion): Update call accordingly.
1914 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
1915 (vectorizable_call): Update call accordingly.
1916 (supportable_widening_operation): Update call to
1917 vect_halve_mask_nunits.
1918 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
1919 Use build_truth_vector_type_mode instead of build_truth_vector_type.
1920
1921 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1922
1923 * machmode.h (mode_for_int_vector): Delete.
1924 (related_int_vector_mode): Declare.
1925 * stor-layout.c (mode_for_int_vector): Delete.
1926 (related_int_vector_mode): New function.
1927 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
1928 instead of mode_for_int_vector.
1929 (expand_vec_perm_const): Likewise.
1930 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
1931 (aarch64_evpc_sve_tbl): Likewise.
1932 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
1933 (s390_expand_vcond): Likewise.
1934
1935 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1936
1937 * target.def (related_mode): New hook.
1938 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
1939 * doc/tm.texi: Regenerate.
1940 * targhooks.h (default_vectorize_related_mode): Declare.
1941 * targhooks.c (default_vectorize_related_mode): New function.
1942 * machmode.h (related_vector_mode): Declare.
1943 * stor-layout.c (related_vector_mode): New function.
1944 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
1945 * optabs-query.c (qimode_for_vec_perm): Likewise.
1946 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
1947 (vectorizable_store, vectorizable_load): Likewise
1948
1949 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
1950
1951 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
1952 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
1953 * config/arm/arm-c.c (arm_cpu_builtins): Define
1954 __GCC_ASM_FLAG_OUTPUTS__.
1955 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
1956 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
1957 Define __GCC_ASM_FLAG_OUTPUTS__.
1958 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
1959 * doc/extend.texi (FlagOutputOperands): Add documentation
1960 for ARM and AArch64.
1961
1962 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
1963 * config/arm/predicates.md (nz_comparison_operator): Rename
1964 from noov_comparison_operator.
1965 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
1966 (arm_gen_dicompare_reg): Likewise.
1967 (maybe_get_arm_condition_code): Likewise.
1968 (thumb1_final_prescan_insn): Likewise.
1969 (arm_emit_coreregs_64bit_shift): Likewise.
1970 * config/arm/arm.md (addsi3_compare0): Likewise.
1971 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
1972 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
1973 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
1974 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
1975 (*mulsi3addsi_compare0_scratch): Likewise.
1976 (*mulsi3addsi_compare0_scratch_v6): Likewise.
1977 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
1978 (*zeroextractsi_compare0_scratch): Likewise.
1979 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
1980 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
1981 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
1982 (andsi_not_shiftsi_si_scc): Likewise.
1983 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
1984 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
1985 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
1986 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
1987 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
1988 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
1989 (return_addr_mask, *check_arch2): Likewise.
1990 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
1991 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
1992 (compare_scc splitters): Likewise.
1993 (movcond_addsi): Likewise.
1994 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
1995 (*thumb2_addsi3_compare0_scratch): Likewise.
1996 (*thumb2_mulsi_short_compare0): Likewise.
1997 (*thumb2_mulsi_short_compare0_scratch): Likewise.
1998 (compare peephole2s): Likewise.
1999 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
2000 nz_comparison_operator names.
2001 (cbranchsi4_insn): Likewise.
2002
2003 * config/arm/constraints.md (c): Use cc_register predicate.
2004
2005 * config/aarch64/constraints.md (c): New constraint.
2006
2007 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2008
2009 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
2010 ipa_merge_fn_summary_after_inlining): Micro optimize.
2011
2012 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2013
2014 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
2015
2016 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2017
2018 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
2019 (ipa_value_range_from_jfunc): New function.
2020 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
2021 known_value_ranges parameter; use it to evalulate conditions.
2022 (evaluate_properties_for_edge): Compute known value ranges.
2023 (ipa_fn_summary_t::duplicate): Update use of
2024 evaluate_conditions_for_known_args.
2025 (estimate_ipcp_clone_size_and_time): Likewise.
2026 (ipa_merge_fn_summary_after_inlining): Likewise.
2027 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
2028
2029 2019-11-14 Martin Liska <mliska@suse.cz>
2030
2031 * ipa-inline.c (want_inline_small_function_p): Use
2032 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
2033 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
2034
2035 2019-11-14 Martin Liska <mliska@suse.cz>
2036
2037 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
2038 of a callee to get value of the param.
2039 * ipa-inline.c (inline_insns_auto): Use proper
2040 opt_for_fn.
2041 * opts.c (maybe_default_option): Do not overwrite param
2042 value if optimization level does not match. Note that
2043 params usually have default value set via Init() keyword.
2044 * params.opt: Remove -param=max-inline-insns-auto-O2.
2045 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
2046 * doc/invoke.texi: Remove documentation of
2047 max-inline-insns-auto-O2.
2048
2049 2019-11-14 Martin Liska <mliska@suse.cz>
2050
2051 * tree-switch-conversion.c (switch_conversion::switch_conversion):
2052 Do not initialize m_other_count.
2053 (switch_conversion::collect): Do not count m_default_count and
2054 m_other_count as we use frequencies for edges.
2055 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
2056
2057 2019-11-14 Martin Liska <mliska@suse.cz>
2058
2059 PR other/92329
2060 * doc/invoke.texi: Document -fallocation-dce.
2061
2062 2019-11-14 Martin Liska <mliska@suse.cz>
2063
2064 PR target/92389
2065 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
2066 PTA_ICELAKE_CLIENT which is later interited by
2067 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
2068
2069 2019-11-14 Martin Liska <mliska@suse.cz>
2070
2071 * ipa-icf.c (sem_item_optimizer::execute): Save
2072 loaded_symbols.
2073 (sem_item_optimizer::parse_nonsingleton_classes):
2074 Return number of loaded symbols.
2075 (sem_item_optimizer::merge_classes): Print
2076 statistics about totally needed symbols.
2077 * ipa-icf.h (parse_nonsingleton_classes): Change return
2078 type.
2079 (merge_classes): Add one argument.
2080
2081 2019-11-14 Martin Liska <mliska@suse.cz>
2082
2083 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
2084 func_checker::hash_operand by handling of FIELD_DECLs.
2085
2086 2019-11-14 Martin Liska <mliska@suse.cz>
2087
2088 * ipa-icf-gimple.h (func_checker::func_checker): Add
2089 default constructor.
2090 * ipa-icf.c (sem_function::init): Make operand_equal_p
2091 and hash_operand public.
2092 (sem_item::add_expr): Remove.
2093 (sem_item::add_type): Remove.
2094 (sem_function::hash_stmt): Use m_checker for hashing
2095 of GIMPLE statements.
2096 (sem_function::parse): Init with checker.
2097 (sem_variable::parse): Pass NULL as checker.
2098 (sem_item_optimizer::parse_funcs_and_vars):
2099 Pass checker to ::parse function.
2100 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
2101 (sem_variable::parse): New function.
2102 (sem_variable::get_hash): Only return computed hash value.
2103 (sem_variable::init): Initialize hash of a variable.
2104 * ipa-icf.h: Remove add_expr, add_type and add func_checker
2105 to couple of functions as a new argument.
2106
2107 2019-11-14 Martin Liska <mliska@suse.cz>
2108
2109 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
2110 bail out reason.
2111 (func_checker::compare_gimple_assign): Likewise.
2112
2113 2019-11-14 Jakub Jelinek <jakub@redhat.com>
2114
2115 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
2116 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
2117 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
2118
2119 * omp-general.c (omp_context_name_list_prop): New function.
2120 (omp_context_selector_matches): Use it. Return 0 if it returns
2121 NULL.
2122 (omp_context_selector_props_compare): Allow equivalency of an
2123 identifier and a string literal containing no embedded zeros.
2124
2125 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2126
2127 * range-op.cc (RANGE3): Remove.
2128 (range_tests): Remove all selftest that check for multi-ranges.
2129 Put tests in namespace selftest.
2130 * selftest.h: Move range_tests into namespace selftest.
2131 * value-range.h (class value_range): Unfriend range_tests.
2132
2133 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2134
2135 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
2136 normalize_symbolics and normalize_addresses working in place.
2137 (range_fold_unary_symbolics_p): Same.
2138 (range_fold_unary_symbolics_p): Same.
2139 * value-range.cc (num_pairs): Same.
2140 (lower_bound): Same.
2141 (upper_bound): Same.
2142 (contains_p): Same.
2143 (normalize_addresses): Same.
2144 (normalize_symbolics): Same.
2145 * value-range.h (normalize_symbolics): Same.
2146 (normalize_addresses): Same.
2147
2148 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
2149
2150 PR ipa/91682
2151 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
2152 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
2153 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
2154 (ipa_agg_jump_function): Remove member function equal_to.
2155 (ipa_agg_jump_function_p): Remove typedef.
2156 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
2157 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
2158 information for aggregate jump function.
2159 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
2160 record last definition statement.
2161 (load_from_unmodified_param_or_agg): New function.
2162 (ipa_known_agg_contents_list): Add new field type and value, remove
2163 field constant.
2164 (build_agg_jump_func_from_list): Rename parameter const_count to
2165 value_count, build aggregate jump function from ipa_load_agg_data.
2166 (analyze_agg_content_value): New function.
2167 (extract_mem_content): Analyze memory store assignment to prepare
2168 information for aggregate jump function generation.
2169 (determine_known_aggregate_parts): Add new parameter fbi, remove
2170 parameter aa_walk_budeget_p.
2171 (update_jump_functions_after_inlining): Update aggregate jump function.
2172 (ipa_find_agg_cst_for_param): Change type of parameter agg.
2173 (try_make_edge_direct_simple_call): Add new parameter new_root.
2174 (try_make_edge_direct_virtual_call): Add new parameter new_root and
2175 new_root_info.
2176 (update_indirect_edges_after_inlining): Pass new argument to
2177 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
2178 (ipa_write_jump_function): Write aggregate jump function to file.
2179 (ipa_read_jump_function): Read aggregate jump function from file.
2180 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
2181 * ipa-cp.c (ipa_get_jf_arith_result): New function.
2182 (ipa_agg_value_from_node): Likewise.
2183 (ipa_agg_value_set_from_jfunc): Likewise.
2184 (propagate_vals_across_arith_jfunc): Likewise.
2185 (propagate_aggregate_lattice): Likewise.
2186 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
2187 (propagate_vals_across_pass_through): Call
2188 propagate_vals_across_arith_jfunc.
2189 (get_clone_agg_value): Move forward.
2190 (propagate_aggs_across_jump_function): Handle value propagation for
2191 aggregate jump function.
2192 (agg_jmp_p_vec_for_t_vec): Remove.
2193 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
2194 with vec<ipa_agg_value>.
2195 (copy_plats_to_inter, intersect_with_plats): Likewise.
2196 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
2197 (intersect_aggregate_with_edge): Likewise.
2198 (find_aggregate_values_for_callers_subset): Likewise.
2199 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
2200 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
2201 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2202 (gather_context_independent_values): Likewise.
2203 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
2204 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
2205 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2206 (evaluate_properties_for_edge): Likewise.
2207 (estimate_edge_devirt_benefit): Likewise.
2208 (estimate_edge_size_and_time): Likewise.
2209 (estimate_calls_size_and_time): Likewise.
2210 (ipa_call_context::ipa_call_context): Likewise.
2211 (estimate_ipcp_clone_size_and_time): Likewise.
2212 * ipa-fnsummary.h (ipa_call_context): Replace
2213 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2214 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
2215 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2216 (do_estimate_edge_size): Likewise.
2217 (do_estimate_edge_hints): Likewise.
2218
2219 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2220
2221 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
2222 binary operations.
2223
2224 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2225
2226 * ipa-profile.c (check_argument_count): Check properly that e_info
2227 is non-NULL; do not check descriptors.
2228
2229 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2230
2231 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
2232 check for ipa profiles.
2233
2234 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2235
2236 PR c++/92421
2237 * ipa-prop.c (update_indirect_edges_after_inlining):
2238 Mark parameter as used.
2239 * ipa-inline.c (recursive_inlining): Reset node cache
2240 after inlining.
2241 (inline_small_functions): Remove checking ifdef.
2242 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
2243 cache consistency.
2244
2245 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2246
2247 PR ipa/92498
2248 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
2249 is NULL.
2250 (ipa_profile): Fix reversed test.
2251
2252 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2253
2254 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
2255 (propagate_constants_topo): Fix typo.
2256
2257 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
2258
2259 * Makefile.in (OBJS): Add value-range.o.
2260 (GTFILES): Add value-range.h.
2261 * gengtype.c (open_base_files): Add value-range.h to list of
2262 header files.
2263 * tree-vrp.c: Move the following value_range related functions:
2264 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
2265 constant_p, set_undefined, set_varying, may_contain_p,
2266 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
2267 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
2268 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
2269 value_inside_range, ranges_from_anti_range, union_ranges,
2270 intersect_ranges, intersect_helper, union_helper, union_,
2271 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
2272 upper_bound, contains_p, invert, intersect...
2273 * value-range.cc: ...to here.
2274 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
2275 associated inline methods from here...
2276 * value-range.h: ...to here.
2277
2278 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2279
2280 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
2281 instead of asserting its value.
2282
2283 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
2284
2285 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
2286 constructors and set methods so value_range_kind is the last
2287 argument and defaults to VR_RANGE.
2288 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
2289 * ipa-cp.c (propagate_vr_across_jump_function): Same.
2290 * ipa-prop.c (ipa_get_value_range): Same.
2291 (ipa_compute_jump_functions_for_edge): Same.
2292 * range-op.cc (value_range_from_overflowed_bounds): Same.
2293 (operator_cast::op1_range): Same.
2294 (range_tests): Same.
2295 * range.cc (range_nonzero): Same.
2296 * tree-ssanames.c (get_range_info): Same.
2297 * tree-vrp.c (value_range_equiv::set): Same.
2298 (value_range::value_range): Same.
2299 (value_range_equiv::value_range_equiv): Same.
2300 (value_range_equiv::update): Same.
2301 (value_range_equiv::deep_copy): Same.
2302 (value_range_equiv::move): Same.
2303 (value_range_equiv::set_undefined): Same.
2304 (value_range::set): Same.
2305 (value_range::set_nonzero): Same.
2306 (ranges_from_anti_range): Same.
2307 (extract_range_from_plus_minus_expr): Same.
2308 (value_range::intersect_helper): Same.
2309 (value_range_equiv::intersect): Same.
2310 (value_range::union_helper): Same.
2311 (value_range_equiv::union_): Same.
2312 (value_range::normalize_symbolics): Same.
2313 (value_range::invert): Same.
2314 (determine_value_range_1): Same.
2315 * tree-vrp.h (class value_range): Same.
2316 (class value_range_equiv): Same.
2317 * vr-values.c (set_value_range_to_nonnegative): Same.
2318 (set_value_range_to_truthvalue): Same.
2319 (vr_values::update_value_range): Same.
2320 (vr_values::extract_range_for_var_from_comparison_expr): Same.
2321 (vr_values::extract_range_from_binary_expr): Same.
2322 (vr_values::extract_range_from_comparison): Same.
2323 (vr_values::extract_range_basic): Same.
2324 (vr_values::adjust_range_with_scev): Same.
2325 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
2326 (vr_values::extract_range_from_phi_node): Same.
2327
2328 2019-11-13 Ulrich Drepper <drepper@redhat.com>
2329
2330 * tree-dump.c (dequeue_and_dump): Print first tree operand
2331 for VIEW_CONVERT_EXPR.
2332
2333 2019-11-13 Joseph Myers <joseph@codesourcery.com>
2334
2335 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
2336 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
2337 * real.c (get_max_float): Add norm_max argument.
2338 * real.h (get_max_float): Update prototype.
2339 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
2340 get_max_float.
2341
2342 2019-11-13 Martin Liska <mliska@suse.cz>
2343
2344 * dbgcnt.c (test_sorted_dbg_counters): New.
2345 (dbgcnt_c_tests): Likewise.
2346 * selftest-run-tests.c (selftest::run_tests): Likewise.
2347 * selftest.h (dbgcnt_c_tests): Likewise.
2348
2349 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2350 Martin Jambor <mjambor@suse.cz>
2351
2352 PR ipa/92454
2353 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
2354 (identify_dead_nodes): Likewise.
2355
2356 2019-11-13 Martin Liska <mliska@suse.cz>
2357
2358 * ipa-icf.c (sem_function::equals_private): Do not overuse
2359 push/pop_cfun functions.
2360
2361 2019-11-13 Martin Liska <mliska@suse.cz>
2362
2363 * common.opt: Document change of -fdbg-cnt option.
2364 * dbgcnt.c (DEBUG_COUNTER): Remove.
2365 (dbg_cnt_is_enabled): Remove.
2366 (dbg_cnt): Work with new intervals.
2367 (dbg_cnt_set_limit_by_index): Set to new
2368 list of intervals.
2369 (dbg_cnt_set_limit_by_name): Likewise.
2370 (dbg_cnt_process_single_pair): Process new format.
2371 (dbg_cnt_process_opt): Likewise.
2372 (dbg_cnt_list_all_counters): Likewise.
2373 * doc/invoke.texi: Document change of -fdbg-cnt option.
2374 (cmp_tuples): New.
2375
2376 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2377
2378 * ipa-inline.c (ipa_inline): Check that function is defined before
2379 flattening.
2380
2381 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2382 Julian Brown <julian@codesourcery.com>
2383
2384 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
2385 flag_worker_partitioning is not set.
2386 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
2387 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
2388
2389 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2390
2391 * config/gcn/gcn-run.c (heap_region): New global variable.
2392 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
2393 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
2394 (get_kernarg_region): Move contents to ....
2395 (get_memory_region): .... here.
2396 (get_heap_region): New function.
2397 (init_device): Initialize the heap_region.
2398 (device_malloc): Add region parameter.
2399 (struct kernargs): Move heap ....
2400 (heap): ... to global scope.
2401 (main): Allocate heap separate to kernargs.
2402
2403 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2404
2405 * ipa-prop.c (ipa_print_node_jump_functions,
2406 ipa_print_node_params): Print info about missing summaries.
2407
2408 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2409
2410 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
2411 the cost of generating loop masks.
2412
2413 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2414
2415 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
2416 New function.
2417 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
2418 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2419 (vect_transform_loop): Likewise.
2420 (vect_analyze_loop_costing): Don't take the cost of versioning
2421 into account for the static profitability threshold if it turns
2422 out that no versioning is needed.
2423
2424 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2425
2426 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
2427 and target_option_default_node to get -fprofile-generate ctors working
2428 right with LTO.
2429
2430 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2431
2432 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
2433 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
2434 (vectorizable_assignment): Don't add a cost for nop conversions.
2435 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
2436 Likewise.
2437 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
2438
2439 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2440
2441 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
2442 number of ncopies as an additional argument.
2443 (vectorizable_conversion): Update call accordingly. Use "modifier"
2444 to check whether a conversion is between vectors with the same
2445 numbers of units.
2446
2447 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2448
2449 * config/aarch64/aarch64-sve-builtins-functions.h
2450 (unary_count::expand): Use aarch64_sve_int_mode instead of
2451 mode_for_int_vector.
2452
2453 2019-11-13 Martin Liska <mliska@suse.cz>
2454
2455 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
2456
2457 2019-11-13 Martin Liska <mliska@suse.cz>
2458
2459 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
2460 Remove call to finalize_options_struct.
2461
2462 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
2463
2464 PR target/92055
2465 * config/avr/t-avr (avr-mcus): Do not depend on
2466 $(srcdir)/config/avr/t-multilib.
2467
2468 2019-11-13 Richard Biener <rguenther@suse.de>
2469
2470 PR tree-optimization/92473
2471 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
2472 direct optab reduction in the correct type.
2473
2474 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
2475
2476 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
2477 hexadecimal literal.
2478
2479 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
2480
2481 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
2482 UNORDERED if !HONOR_NANS (DFmode).
2483 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
2484 if !HONOR_NANS (<MODE>mode).
2485
2486 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
2487
2488 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
2489 (ipcp_verify_propagated_values): Likewise.
2490 (propagate_constants_across_call): Likewise.
2491 (propagate_constants_topo): Likewise.
2492 (ipcp_propagate_stage): Likewise.
2493
2494 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
2495
2496 PR ipa/92471
2497 * ipa-profile.c (check_argument_count): Break out from ...;
2498 watch for missing summaries.
2499 (ipa_profile): Here.
2500
2501 2019-11-12 Martin Sebor <msebor@redhat.com>
2502
2503 PR tree-optimization/92412
2504 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
2505 extern variables.
2506
2507 2019-11-12 Martin Sebor <msebor@redhat.com>
2508
2509 PR middle-end/83688
2510 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
2511 (directive::argno): New member.
2512 (format_result::aliases, format_result::alias_count): New data members.
2513 (format_result::append_alias): New member function.
2514 (fmtresult::dst_offset): New data member.
2515 (pass_sprintf_length::call_info::dst_origin): New data member.
2516 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
2517 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
2518 (get_origin_and_offset): Same.
2519 (format_string): Call it.
2520 (format_directive): Call append_alias and set directive argument
2521 number.
2522 (maybe_warn_overlap): New function.
2523 (pass_sprintf_length::compute_format_length): Call it.
2524 (pass_sprintf_length::handle_gimple_call): Initialize new members.
2525 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
2526
2527 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
2528
2529 PR rtl-optimization/92430
2530 * cfgcleanup.c (pass_jump_after_combine::execute): Free
2531 dominance info at the beginning.
2532
2533 2019-11-12 Richard Biener <rguenther@suse.de>
2534
2535 PR tree-optimization/92460
2536 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
2537 expression before gimplifying.
2538
2539 2019-11-12 Richard Biener <rguenther@suse.de>
2540
2541 PR tree-optimization/92461
2542 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
2543 stmt after propagation.
2544
2545 2019-11-12 Martin Liska <mliska@suse.cz>
2546
2547 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
2548 Use SET_OPTION_IF_UNSET.
2549 (ix86_option_override_internal): Likewise.
2550 * opts.c (default_options_optimization): Likewise.
2551 (finish_options): Likewise.
2552 (enable_fdo_optimizations): Likewise.
2553 (common_handle_option): Likewise.
2554
2555 2019-11-12 Martin Liska <mliska@suse.cz>
2556
2557 * common/common-target.def: Remove option_validate_param and
2558 option_default_params.
2559 * common/common-targhooks.c (default_option_validate_param):
2560 Remove.
2561 * common/common-targhooks.h (default_option_validate_param):
2562 Remove.
2563 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
2564 Remove usage of this.
2565 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
2566 (aarch64_option_validate_param): Likewise.
2567 (aarch64_option_default_params): Likewise
2568 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
2569 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2570 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
2571 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2572 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
2573 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2574 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
2575 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2576 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
2577 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2578 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
2579 guard_size here.
2580 * doc/tm.texi: Remove option_default_params and option_validate_param.
2581 * doc/tm.texi.in: Likewise.
2582
2583 2019-11-12 Martin Liska <mliska@suse.cz>
2584
2585 * common/common-target.def:
2586 Do not mention set_default_param_value
2587 and set_param_value.
2588 * doc/tm.texi: Likewise.
2589
2590 2019-11-12 Martin Liska <mliska@suse.cz>
2591
2592 * common.opt: Remove param_values.
2593 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
2594 Remove finalize_options_struct.
2595 * gcc.c (driver::decode_argv): Do not call global_init_params
2596 and finish_params.
2597 (driver::finalize): Do not call params_c_finalize
2598 and finalize_options_struct.
2599 * opt-suggestions.c (option_proposer::get_completions): Remove
2600 special casing of params.
2601 (option_proposer::find_param_completions): Remove.
2602 (test_completion_partial_match): Update expected output.
2603 * opt-suggestions.h: Remove find_param_completions.
2604 * opts-common.c (add_misspelling_candidates): Add
2605 --param with a space.
2606 * opts.c (handle_param): Remove.
2607 (init_options_struct):. Remove init_options_struct and
2608 similar calls.
2609 (finalize_options_struct): Remove.
2610 (common_handle_option): Use SET_OPTION_IF_UNSET.
2611 * opts.h (finalize_options_struct): Remove.
2612 * toplev.c (general_init): Do not call global_init_params.
2613 (toplev::finalize): Do not call params_c_finalize and
2614 finalize_options_struct.
2615
2616 2019-11-12 Martin Liska <mliska@suse.cz>
2617
2618 * Makefile.in: Remove PARAMS_H and params.list
2619 and params.options.
2620 * params-enum.h: Remove.
2621 * params-list.h: Remove.
2622 * params-options.h: Remove.
2623 * params.c: Remove.
2624 * params.def: Remove.
2625 * params.h: Remove.
2626 * asan.c: Do not include params.h.
2627 * auto-profile.c: Likewise.
2628 * bb-reorder.c: Likewise.
2629 * builtins.c: Likewise.
2630 * cfgcleanup.c: Likewise.
2631 * cfgexpand.c: Likewise.
2632 * cfgloopanal.c: Likewise.
2633 * cgraph.c: Likewise.
2634 * combine.c: Likewise.
2635 * common/config/aarch64/aarch64-common.c: Likewise.
2636 * common/config/gcn/gcn-common.c: Likewise.
2637 * common/config/ia64/ia64-common.c: Likewise.
2638 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
2639 * common/config/rs6000/rs6000-common.c: Likewise.
2640 * common/config/sh/sh-common.c: Likewise.
2641 * config/aarch64/aarch64.c: Likewise.
2642 * config/alpha/alpha.c: Likewise.
2643 * config/arm/arm.c: Likewise.
2644 * config/avr/avr.c: Likewise.
2645 * config/csky/csky.c: Likewise.
2646 * config/i386/i386-builtins.c: Likewise.
2647 * config/i386/i386-expand.c: Likewise.
2648 * config/i386/i386-features.c: Likewise.
2649 * config/i386/i386-options.c: Likewise.
2650 * config/i386/i386.c: Likewise.
2651 * config/ia64/ia64.c: Likewise.
2652 * config/rs6000/rs6000-logue.c: Likewise.
2653 * config/rs6000/rs6000.c: Likewise.
2654 * config/s390/s390.c: Likewise.
2655 * config/sparc/sparc.c: Likewise.
2656 * config/visium/visium.c: Likewise.
2657 * coverage.c: Likewise.
2658 * cprop.c: Likewise.
2659 * cse.c: Likewise.
2660 * cselib.c: Likewise.
2661 * dse.c: Likewise.
2662 * emit-rtl.c: Likewise.
2663 * explow.c: Likewise.
2664 * final.c: Likewise.
2665 * fold-const.c: Likewise.
2666 * gcc.c: Likewise.
2667 * gcse.c: Likewise.
2668 * ggc-common.c: Likewise.
2669 * ggc-page.c: Likewise.
2670 * gimple-loop-interchange.cc: Likewise.
2671 * gimple-loop-jam.c: Likewise.
2672 * gimple-loop-versioning.cc: Likewise.
2673 * gimple-ssa-split-paths.c: Likewise.
2674 * gimple-ssa-sprintf.c: Likewise.
2675 * gimple-ssa-store-merging.c: Likewise.
2676 * gimple-ssa-strength-reduction.c: Likewise.
2677 * gimple-ssa-warn-alloca.c: Likewise.
2678 * gimple-ssa-warn-restrict.c: Likewise.
2679 * graphite-isl-ast-to-gimple.c: Likewise.
2680 * graphite-optimize-isl.c: Likewise.
2681 * graphite-scop-detection.c: Likewise.
2682 * graphite-sese-to-poly.c: Likewise.
2683 * graphite.c: Likewise.
2684 * haifa-sched.c: Likewise.
2685 * hsa-gen.c: Likewise.
2686 * ifcvt.c: Likewise.
2687 * ipa-cp.c: Likewise.
2688 * ipa-fnsummary.c: Likewise.
2689 * ipa-inline-analysis.c: Likewise.
2690 * ipa-inline.c: Likewise.
2691 * ipa-polymorphic-call.c: Likewise.
2692 * ipa-profile.c: Likewise.
2693 * ipa-prop.c: Likewise.
2694 * ipa-split.c: Likewise.
2695 * ipa-sra.c: Likewise.
2696 * ira-build.c: Likewise.
2697 * ira-conflicts.c: Likewise.
2698 * loop-doloop.c: Likewise.
2699 * loop-invariant.c: Likewise.
2700 * loop-unroll.c: Likewise.
2701 * lra-assigns.c: Likewise.
2702 * lra-constraints.c: Likewise.
2703 * modulo-sched.c: Likewise.
2704 * opt-suggestions.c: Likewise.
2705 * opts.c: Likewise.
2706 * postreload-gcse.c: Likewise.
2707 * predict.c: Likewise.
2708 * reload.c: Likewise.
2709 * reorg.c: Likewise.
2710 * resource.c: Likewise.
2711 * sanopt.c: Likewise.
2712 * sched-deps.c: Likewise.
2713 * sched-ebb.c: Likewise.
2714 * sched-rgn.c: Likewise.
2715 * sel-sched-ir.c: Likewise.
2716 * sel-sched.c: Likewise.
2717 * shrink-wrap.c: Likewise.
2718 * stmt.c: Likewise.
2719 * targhooks.c: Likewise.
2720 * toplev.c: Likewise.
2721 * tracer.c: Likewise.
2722 * trans-mem.c: Likewise.
2723 * tree-chrec.c: Likewise.
2724 * tree-data-ref.c: Likewise.
2725 * tree-if-conv.c: Likewise.
2726 * tree-inline.c: Likewise.
2727 * tree-loop-distribution.c: Likewise.
2728 * tree-parloops.c: Likewise.
2729 * tree-predcom.c: Likewise.
2730 * tree-profile.c: Likewise.
2731 * tree-scalar-evolution.c: Likewise.
2732 * tree-sra.c: Likewise.
2733 * tree-ssa-ccp.c: Likewise.
2734 * tree-ssa-dom.c: Likewise.
2735 * tree-ssa-dse.c: Likewise.
2736 * tree-ssa-ifcombine.c: Likewise.
2737 * tree-ssa-loop-ch.c: Likewise.
2738 * tree-ssa-loop-im.c: Likewise.
2739 * tree-ssa-loop-ivcanon.c: Likewise.
2740 * tree-ssa-loop-ivopts.c: Likewise.
2741 * tree-ssa-loop-manip.c: Likewise.
2742 * tree-ssa-loop-niter.c: Likewise.
2743 * tree-ssa-loop-prefetch.c: Likewise.
2744 * tree-ssa-loop-unswitch.c: Likewise.
2745 * tree-ssa-math-opts.c: Likewise.
2746 * tree-ssa-phiopt.c: Likewise.
2747 * tree-ssa-pre.c: Likewise.
2748 * tree-ssa-reassoc.c: Likewise.
2749 * tree-ssa-sccvn.c: Likewise.
2750 * tree-ssa-scopedtables.c: Likewise.
2751 * tree-ssa-sink.c: Likewise.
2752 * tree-ssa-strlen.c: Likewise.
2753 * tree-ssa-structalias.c: Likewise.
2754 * tree-ssa-tail-merge.c: Likewise.
2755 * tree-ssa-threadbackward.c: Likewise.
2756 * tree-ssa-threadedge.c: Likewise.
2757 * tree-ssa-uninit.c: Likewise.
2758 * tree-switch-conversion.c: Likewise.
2759 * tree-vect-data-refs.c: Likewise.
2760 * tree-vect-loop.c: Likewise.
2761 * tree-vect-slp.c: Likewise.
2762 * tree-vrp.c: Likewise.
2763 * tree.c: Likewise.
2764 * value-prof.c: Likewise.
2765 * var-tracking.c: Likewise.
2766
2767 2019-11-12 Martin Liska <mliska@suse.cz>
2768
2769 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
2770 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
2771 macro.
2772 (asan_sanitize_allocas_p): Likewise.
2773 (asan_emit_stack_protection): Likewise.
2774 (asan_protect_global): Likewise.
2775 (instrument_derefs): Likewise.
2776 (instrument_builtin_call): Likewise.
2777 (asan_expand_mark_ifn): Likewise.
2778 * auto-profile.c (auto_profile): Likewise.
2779 * bb-reorder.c (copy_bb_p): Likewise.
2780 (duplicate_computed_gotos): Likewise.
2781 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
2782 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
2783 (try_crossjump_bb): Likewise.
2784 * cfgexpand.c (defer_stack_allocation): Likewise.
2785 (stack_protect_classify_type): Likewise.
2786 (pass_expand::execute): Likewise.
2787 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
2788 (estimate_reg_pressure_cost): Likewise.
2789 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
2790 * combine.c (combine_instructions): Likewise.
2791 (record_value_for_reg): Likewise.
2792 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
2793 (aarch64_option_default_params): Likewise.
2794 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
2795 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
2796 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
2797 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
2798 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
2799 (aarch64_allocate_and_probe_stack_space): Likewise.
2800 (aarch64_expand_epilogue): Likewise.
2801 (aarch64_override_options_internal): Likewise.
2802 * config/alpha/alpha.c (alpha_option_override): Likewise.
2803 * config/arm/arm.c (arm_option_override): Likewise.
2804 (arm_valid_target_attribute_p): Likewise.
2805 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
2806 * config/i386/i386.c (get_probe_interval): Likewise.
2807 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
2808 (ix86_max_noce_ifcvt_seq_cost): Likewise.
2809 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
2810 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
2811 (get_stack_clash_protection_guard_size): Likewise.
2812 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
2813 * config/s390/s390.c (allocate_stack_space): Likewise.
2814 (s390_emit_prologue): Likewise.
2815 (s390_option_override_internal): Likewise.
2816 * config/sparc/sparc.c (sparc_option_override): Likewise.
2817 * config/visium/visium.c (visium_option_override): Likewise.
2818 * coverage.c (get_coverage_counts): Likewise.
2819 (coverage_compute_profile_id): Likewise.
2820 (coverage_begin_function): Likewise.
2821 (coverage_end_function): Likewise.
2822 * cse.c (cse_find_path): Likewise.
2823 (cse_extended_basic_block): Likewise.
2824 (cse_main): Likewise.
2825 * cselib.c (cselib_invalidate_mem): Likewise.
2826 * dse.c (dse_step1): Likewise.
2827 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
2828 (get_max_insn_count): Likewise.
2829 (make_debug_insn_raw): Likewise.
2830 (init_emit): Likewise.
2831 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
2832 * final.c (compute_alignments): Likewise.
2833 * fold-const.c (fold_range_test): Likewise.
2834 (fold_truth_andor): Likewise.
2835 (tree_single_nonnegative_warnv_p): Likewise.
2836 (integer_valued_real_single_p): Likewise.
2837 * gcse.c (want_to_gcse_p): Likewise.
2838 (prune_insertions_deletions): Likewise.
2839 (hoist_code): Likewise.
2840 (gcse_or_cprop_is_too_expensive): Likewise.
2841 * ggc-common.c: Likewise.
2842 * ggc-page.c (ggc_collect): Likewise.
2843 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
2844 (MAX_DATAREFS): Likewise.
2845 (OUTER_STRIDE_RATIO): Likewise.
2846 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
2847 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
2848 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
2849 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
2850 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
2851 (imm_store_chain_info::output_merged_store): Likewise.
2852 (pass_store_merging::process_store): Likewise.
2853 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
2854 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
2855 (scop_to_isl_ast): Likewise.
2856 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
2857 (optimize_isl): Likewise.
2858 * graphite-scop-detection.c (build_scops): Likewise.
2859 * haifa-sched.c (set_modulo_params): Likewise.
2860 (rank_for_schedule): Likewise.
2861 (model_add_to_worklist): Likewise.
2862 (model_promote_insn): Likewise.
2863 (model_choose_insn): Likewise.
2864 (queue_to_ready): Likewise.
2865 (autopref_multipass_dfa_lookahead_guard): Likewise.
2866 (schedule_block): Likewise.
2867 (sched_init): Likewise.
2868 * hsa-gen.c (init_prologue): Likewise.
2869 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
2870 (cond_move_process_if_block): Likewise.
2871 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
2872 (merge_agg_lats_step): Likewise.
2873 (devirtualization_time_bonus): Likewise.
2874 (hint_time_bonus): Likewise.
2875 (incorporate_penalties): Likewise.
2876 (good_cloning_opportunity_p): Likewise.
2877 (ipcp_propagate_stage): Likewise.
2878 * ipa-fnsummary.c (decompose_param_expr): Likewise.
2879 (set_switch_stmt_execution_predicate): Likewise.
2880 (analyze_function_body): Likewise.
2881 (compute_fn_summary): Likewise.
2882 * ipa-inline-analysis.c (estimate_growth): Likewise.
2883 * ipa-inline.c (caller_growth_limits): Likewise.
2884 (inline_insns_single): Likewise.
2885 (inline_insns_auto): Likewise.
2886 (can_inline_edge_by_limits_p): Likewise.
2887 (want_early_inline_function_p): Likewise.
2888 (big_speedup_p): Likewise.
2889 (want_inline_small_function_p): Likewise.
2890 (want_inline_self_recursive_call_p): Likewise.
2891 (edge_badness): Likewise.
2892 (recursive_inlining): Likewise.
2893 (compute_max_insns): Likewise.
2894 (early_inliner): Likewise.
2895 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
2896 * ipa-profile.c (ipa_profile): Likewise.
2897 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
2898 (ipa_analyze_node): Likewise.
2899 (ipcp_transform_function): Likewise.
2900 * ipa-split.c (consider_split): Likewise.
2901 * ipa-sra.c (allocate_access): Likewise.
2902 (process_scan_results): Likewise.
2903 (ipa_sra_summarize_function): Likewise.
2904 (pull_accesses_from_callee): Likewise.
2905 * ira-build.c (loop_compare_func): Likewise.
2906 (mark_loops_for_removal): Likewise.
2907 * ira-conflicts.c (build_conflict_bit_table): Likewise.
2908 * loop-doloop.c (doloop_optimize): Likewise.
2909 * loop-invariant.c (gain_for_invariant): Likewise.
2910 (move_loop_invariants): Likewise.
2911 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
2912 (decide_unroll_runtime_iterations): Likewise.
2913 (decide_unroll_stupid): Likewise.
2914 (expand_var_during_unrolling): Likewise.
2915 * lra-assigns.c (spill_for): Likewise.
2916 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
2917 * modulo-sched.c (sms_schedule): Likewise.
2918 (DFA_HISTORY): Likewise.
2919 * opts.c (default_options_optimization): Likewise.
2920 (finish_options): Likewise.
2921 (common_handle_option): Likewise.
2922 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
2923 (if): Likewise.
2924 * predict.c (get_hot_bb_threshold): Likewise.
2925 (maybe_hot_count_p): Likewise.
2926 (probably_never_executed): Likewise.
2927 (predictable_edge_p): Likewise.
2928 (predict_loops): Likewise.
2929 (expr_expected_value_1): Likewise.
2930 (tree_predict_by_opcode): Likewise.
2931 (handle_missing_profiles): Likewise.
2932 * reload.c (find_equiv_reg): Likewise.
2933 * reorg.c (redundant_insn): Likewise.
2934 * resource.c (mark_target_live_regs): Likewise.
2935 (incr_ticks_for_insn): Likewise.
2936 * sanopt.c (pass_sanopt::execute): Likewise.
2937 * sched-deps.c (sched_analyze_1): Likewise.
2938 (sched_analyze_2): Likewise.
2939 (sched_analyze_insn): Likewise.
2940 (deps_analyze_insn): Likewise.
2941 * sched-ebb.c (schedule_ebbs): Likewise.
2942 * sched-rgn.c (find_single_block_region): Likewise.
2943 (too_large): Likewise.
2944 (haifa_find_rgns): Likewise.
2945 (extend_rgns): Likewise.
2946 (new_ready): Likewise.
2947 (schedule_region): Likewise.
2948 (sched_rgn_init): Likewise.
2949 * sel-sched-ir.c (make_region_from_loop): Likewise.
2950 * sel-sched-ir.h (MAX_WS): Likewise.
2951 * sel-sched.c (process_pipelined_exprs): Likewise.
2952 (sel_setup_region_sched_flags): Likewise.
2953 * shrink-wrap.c (try_shrink_wrapping): Likewise.
2954 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
2955 * toplev.c (print_version): Likewise.
2956 (process_options): Likewise.
2957 * tracer.c (tail_duplicate): Likewise.
2958 * trans-mem.c (tm_log_add): Likewise.
2959 * tree-chrec.c (chrec_fold_plus_1): Likewise.
2960 * tree-data-ref.c (split_constant_offset): Likewise.
2961 (compute_all_dependences): Likewise.
2962 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
2963 * tree-inline.c (remap_gimple_stmt): Likewise.
2964 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
2965 * tree-parloops.c (MIN_PER_THREAD): Likewise.
2966 (create_parallel_loop): Likewise.
2967 * tree-predcom.c (determine_unroll_factor): Likewise.
2968 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
2969 * tree-sra.c (analyze_all_variable_accesses): Likewise.
2970 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2971 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
2972 (dse_optimize_redundant_stores): Likewise.
2973 (dse_classify_store): Likewise.
2974 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
2975 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
2976 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
2977 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
2978 (try_peel_loop): Likewise.
2979 (tree_unroll_loops_completely): Likewise.
2980 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2981 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
2982 (MAX_CONSIDERED_GROUPS): Likewise.
2983 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
2984 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
2985 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
2986 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
2987 (L1_CACHE_SIZE_BYTES): Likewise.
2988 (L2_CACHE_SIZE_BYTES): Likewise.
2989 (should_issue_prefetch_p): Likewise.
2990 (schedule_prefetches): Likewise.
2991 (determine_unroll_factor): Likewise.
2992 (volume_of_references): Likewise.
2993 (add_subscript_strides): Likewise.
2994 (self_reuse_distance): Likewise.
2995 (mem_ref_count_reasonable_p): Likewise.
2996 (insn_to_prefetch_ratio_too_small_p): Likewise.
2997 (loop_prefetch_arrays): Likewise.
2998 (tree_ssa_prefetch_arrays): Likewise.
2999 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
3000 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3001 (convert_mult_to_fma): Likewise.
3002 (math_opts_dom_walker::after_dom_children): Likewise.
3003 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
3004 (hoist_adjacent_loads): Likewise.
3005 (gate_hoist_loads): Likewise.
3006 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
3007 (compute_partial_antic_aux): Likewise.
3008 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
3009 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
3010 (vn_reference_lookup): Likewise.
3011 (do_rpo_vn): Likewise.
3012 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
3013 * tree-ssa-sink.c (select_best_block): Likewise.
3014 * tree-ssa-strlen.c (new_stridx): Likewise.
3015 (new_addr_stridx): Likewise.
3016 (get_range_strlen_dynamic): Likewise.
3017 (class ssa_name_limit_t): Likewise.
3018 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
3019 (create_variable_info_for_1): Likewise.
3020 (init_alias_vars): Likewise.
3021 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
3022 (tail_merge_optimize): Likewise.
3023 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
3024 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
3025 (thread_jumps::find_jump_threads_backwards): Likewise.
3026 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
3027 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
3028 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
3029 (jump_table_cluster::can_be_handled): Likewise.
3030 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
3031 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
3032 (param_switch_conversion_branch_ratio): Likewise.
3033 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
3034 (vect_enhance_data_refs_alignment): Likewise.
3035 (vect_prune_runtime_alias_test_list): Likewise.
3036 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
3037 (vect_get_datarefs_in_loop): Likewise.
3038 (vect_analyze_loop): Likewise.
3039 * tree-vect-slp.c (vect_slp_bb): Likewise.
3040 * tree-vectorizer.h: Likewise.
3041 * tree-vrp.c (find_switch_asserts): Likewise.
3042 (vrp_prop::check_mem_ref): Likewise.
3043 * tree.c (wide_int_to_tree_1): Likewise.
3044 (cache_integer_cst): Likewise.
3045 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
3046 (reverse_op): Likewise.
3047 (vt_find_locations): Likewise.
3048
3049 2019-11-12 Martin Liska <mliska@suse.cz>
3050
3051 * Makefile.in: Include params.opt.
3052 * flag-types.h (enum parloops_schedule_type): Add
3053 parloops_schedule_type used in params.opt.
3054 * params.opt: New file.
3055
3056 2019-11-12 Martin Liska <mliska@suse.cz>
3057
3058 * common.opt: Remove --param and --param= options.
3059 * opt-functions.awk: Mark CL_PARAMS for options
3060 that have Param keyword.
3061 * opts-common.c (decode_cmdline_options_to_array):
3062 Replace --param key=value with --param=key=value.
3063 * opts.c (print_filtered_help): Remove special
3064 printing of params.
3065 (print_specific_help): Update title for params.
3066 (common_handle_option): Do not handle OPT__param.
3067 opts.h (SET_OPTION_IF_UNSET): New macro.
3068 * doc/options.texi: Document Param keyword.
3069
3070 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
3071 Frederik Harwath <frederik@codesourcery.com>
3072 Thomas Schwinge <thomas@codesourcery.com>
3073
3074 gcc/
3075 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
3076 enumeration constant.
3077 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3078 (is_gimple_omp_offloaded): Likewise.
3079 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
3080 constant. Adjust the value of ORT_NONE accordingly.
3081 (is_gimple_stmt): Handle OACC_SERIAL.
3082 (oacc_default_clause): Handle ORT_ACC_SERIAL.
3083 (gomp_needs_data_present): Likewise.
3084 (gimplify_adjust_omp_clauses): Likewise.
3085 (gimplify_omp_workshare): Handle OACC_SERIAL.
3086 (gimplify_expr): Likewise.
3087 * omp-expand.c (expand_omp_target):
3088 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3089 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
3090 * omp-low.c (is_oacc_parallel): Rename function to...
3091 (is_oacc_parallel_or_serial): ... this.
3092 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3093 (scan_sharing_clauses): Adjust accordingly.
3094 (scan_omp_for): Likewise.
3095 (lower_oacc_head_mark): Likewise.
3096 (convert_from_firstprivate_int): Likewise.
3097 (lower_omp_target): Likewise.
3098 (check_omp_nesting_restrictions): Handle
3099 GF_OMP_TARGET_KIND_OACC_SERIAL.
3100 (lower_oacc_reductions): Likewise.
3101 (lower_omp_target): Likewise.
3102 * tree.def (OACC_SERIAL): New tree code.
3103 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
3104
3105 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
3106
3107 2019-11-12 Jakub Jelinek <jakub@redhat.com>
3108
3109 PR target/92449
3110 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
3111 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
3112
3113 PR tree-optimization/92452
3114 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
3115 into NULL_TREE, set up_bound to NULL_TREE instead of computing
3116 MINUS_EXPR on it.
3117
3118 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
3119
3120 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
3121 safelen with 0.
3122
3123 2019-11-12 Alan Modra <amodra@gmail.com>
3124
3125 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
3126 element of unspec vec.
3127 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
3128 PC-relative TLS.
3129 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
3130 (tls_gd_pcrel, tls_ld_pcrel): New insns.
3131 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
3132 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
3133
3134 2019-11-12 Alan Modra <amodra@gmail.com>
3135
3136 * config/rs6000/rs6000.opt (mtls-markers): Delete.
3137 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
3138 (IS_NOMARK_TLSGETADDR): Likewise.
3139 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
3140 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
3141 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
3142 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
3143 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
3144 (rs6000_indirect_call_template_1): Likewise.
3145 (rs6000_pltseq_template): Likewise.
3146 (rs6000_opt_vars): Remove "tls-markers" entry.
3147 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
3148 with TARGET_ELF.
3149 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
3150 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
3151 (pltseq_plt_pcrel<mode>): Likewise.
3152 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
3153 (call_value_local64): Likewise.
3154 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
3155 output and length attribute sub-expression.
3156 (call_value_nonlocal_sysv<mode>),
3157 (call_value_nonlocal_sysv_secure<mode>),
3158 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
3159 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
3160 (call_value_indirect_pcrel<mode>): Likewise.
3161 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
3162 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
3163 * configure: Regenerate.
3164 * config.in: Regenerate.
3165
3166 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
3167
3168 * config/rs6000/predicates.md (prefixed_memory): New predicate.
3169 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
3170 address being a prefixed load/store.
3171 (stack_protect_testdi): Deal with either address being a prefixed
3172 load.
3173
3174 2019-11-11 Jakub Jelinek <jakub@redhat.com>
3175
3176 PR bootstrap/92433
3177 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
3178 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
3179 std::swap.
3180
3181 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
3182
3183 PR tree-optimization/92420
3184 * tree-vect-stmts.c (get_negative_load_store_type): Move further
3185 up file.
3186 (get_group_load_store_type): Use it for reversed SLP accesses.
3187
3188 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
3189
3190 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
3191 summary.
3192 (ipcp_transformation_t::duplicate): Break out from ...
3193 (ipa_node_params_t::duplicate): ... here; add copying of agg
3194 replacements.
3195 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
3196 (ipcp_transformation_t): Add duplicate.
3197
3198 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
3199
3200 PR fortran/91828
3201 * doc/install.texi: Document that the minimum MPFR version is
3202 3.1.0.
3203
3204 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
3205
3206 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
3207 use new register constraint letters.
3208
3209 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
3210
3211 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
3212 as well, if interesting recover the symbol and re-legitimize the
3213 pic address.
3214
3215 2019-11-11 Martin Liska <mliska@suse.cz>
3216
3217 * dbgcnt.def (DEBUG_COUNTER): Sort counters
3218 alphabetically.
3219
3220 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
3221
3222 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
3223 account when checking if there are enough iterations to vectorize
3224 epilogue.
3225
3226 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
3227 Kwok Cheung Yeung <kcy@codesourcery.com>
3228
3229 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
3230 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
3231 (LANG_HOOKS_DECLS): Rename also here.
3232 * langhooks.h (lang_hooks_for_decls): Rename
3233 omp_is_optional_argument to omp_check_optional_argument; take
3234 additional bool argument.
3235 * omp-general.h (omp_check_optional_argument): Likewise.
3236 * omp-general.h (omp_check_optional_argument): Likewise.
3237 * omp-low.c (lower_omp_target): Update calls; handle absent
3238 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
3239
3240 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
3241
3242 PR target/87833
3243 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
3244 -fPIC and -shared the last to create offload image.
3245
3246 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
3247
3248 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
3249 of 'offset'.
3250
3251 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
3252 (config.status): Use/depend on it.
3253 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
3254 * configure: Regenerate.
3255
3256 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
3257
3258 PR tree-optimization/88760
3259 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
3260 * gcc/common/config/rs6000/rs6000-common.c
3261 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
3262 Turn on -funroll-loops and -munroll-only-small-loops.
3263 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
3264 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
3265 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
3266 Turn off -munroll-only-small-loops for explicit -funroll-loops.
3267 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
3268 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
3269
3270 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
3271
3272 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
3273 Make scalar_load, vector_load, unaligned_load and
3274 vector_gather_load cost more to conform hardware latency and
3275 insn cost settings.
3276
3277 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
3278
3279 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
3280 (MACHO_SYMBOL_LINKER_VIS_P): New.
3281
3282 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
3283
3284 * lra-spills.c (assign_spill_hard_regs): Do not spill into
3285 registers in eliminable_regset.
3286
3287 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3288
3289 * ipa-inline.c (compute_uninlined_call_time,
3290 compute_inlined_call_time): Take edge frequency as
3291 parameter rather than computing it by itself.
3292 (big_speedup_p, edge_badness): Manually CSE sreal
3293 frequency calculations.
3294
3295 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3296
3297 * profile-count.c (profile_count::to_sreal_scale): Short circuit
3298 case where profiles are same.
3299
3300 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3301
3302 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
3303
3304 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3305
3306 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
3307 args summaries of inlined edge unless it holds info about
3308 described reference.
3309
3310 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
3311
3312 * config/rs6000/rs6000.md (CC_any): New mode iterator.
3313 (*movcc_internal1): Rename to...
3314 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
3315
3316 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3317
3318 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
3319 (cgraph_node::create_virtual_clone): Copy it.
3320 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
3321 summaries.
3322 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
3323 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
3324 is disabled.
3325 (propagate_constants_across_call): If callee is not analyzed, give up.
3326 (propagate_constants_topo): Lower to bottom latties of all callees of
3327 functions with ipa-cp disabled.
3328 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
3329 (cgraph_edge_brings_value_p): Check for availability first.
3330 (create_specialized_node): Set ipcp_clone.
3331 (ipcp_store_bits_results): Check that info is present.
3332 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
3333 thunks.
3334 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
3335 conservative when callee summary is missing.
3336 (remap_edge_summaries): Lookup call summary only when needed.
3337 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
3338 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
3339 Use get_create.
3340 (ipa_analyze_node): Use get_create.
3341 (propagate_controlled_uses): Do not propagate when function is not
3342 analyzed.
3343 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
3344 (ipa_read_node_info): Use get_create.
3345 * ipa-prop.h (IPA_NODE_REF): Use get.
3346 (IPA_NODE_REF_GET_CREATE): New.
3347
3348 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3349
3350 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
3351 on function symbol.
3352
3353 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3354
3355 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
3356 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
3357 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
3358 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
3359
3360 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3361
3362 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
3363 capping the growth cumulated.
3364 (offline_size): Break out from ...
3365 (estimate_growth): ... here.
3366 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
3367 parameters.
3368 (growth_likely_positive): Turn to ...
3369 (growth_positive_p): Re-implement.
3370 * ipa-inline.h (growth_likely_positive): Remove.
3371 (growth_positive_p): Declare.
3372 * ipa-inline.c (want_inline_small_function_p): Use
3373 growth_positive_p.
3374 (want_inline_function_to_all_callers_p): Likewise.
3375
3376 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3377
3378 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
3379 calculation of min_size.
3380 (ipa_update_overall_fn_summary): Likewise.
3381
3382 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3383
3384 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
3385 estimate_edge_devirt_benefit when not computing hints;
3386 do not compute time when not asked for.
3387 (estimate_calls_size_and_time): Pass NULL hints and time when
3388 these are not computed; do not evaluate hint predicates when these are
3389 not computed.
3390 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
3391 frequency.
3392
3393 2019-11-09 Jakub Jelinek <jakub@redhat.com>
3394
3395 PR tree-optimization/92401
3396 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
3397 if res_op->code is an expression with code length 1.
3398 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
3399 if res_op->code is an expression with code length 2.
3400 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
3401 if res_op->code is an expression with code length 3.
3402
3403 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
3404
3405 * config/darwin.c (machopic_mcount_stub_name): Validate the
3406 symbol stub name when it is created.
3407 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
3408 stub validation.
3409
3410 2019-11-09 Jakub Jelinek <jakub@redhat.com>
3411
3412 * symtab.c: Fix comment typos.
3413 * cgraphunit.c: Likewise.
3414 * cgraph.h: Likewise.
3415 * cgraphclones.c: Likewise.
3416 * cgraph.c: Likewise.
3417 * varpool.c: Likewise.
3418 * tree-ssa-strlen.c: Likewise.
3419 * ipa-sra.c: Likewise.
3420 (scan_expr_access, check_all_callers_for_issues): Fix typo
3421 in a dump message.
3422
3423 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
3424
3425 * config/darwin-protos.h: Add include quard.
3426
3427 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
3428
3429 * range-op.h (range_operator::fold_range): Return result in a
3430 reference parameter instead of by value.
3431 (range_operator::wi_fold): Same.
3432 * range-op.cc (range_operator::wi_fold): Return result in a reference
3433 parameter instead of by value.
3434 (range_operator::fold_range): Same.
3435 (value_range_from_overflowed_bounds): Same.
3436 (value_range_with_overflow): Same
3437 (create_possibly_reversed_range): Same.
3438 (operator_equal::fold_range): Same.
3439 (operator_not_equal::fold_range): Same.
3440 (operator_lt::fold_range): Same.
3441 (operator_le::fold_range): Same.
3442 (operator_gt::fold_range): Same.
3443 (operator_ge::fold_range): Same.
3444 (operator_plus::wi_fold): Same.
3445 (operator_plus::op1_range): Change call to fold_range.
3446 (operator_plus::op2_range): Change call to fold_range.
3447 (operator_minus::wi_fold): Return result via reference parameter.
3448 (operator_minus::op1_range): Change call to fold_range.
3449 (operator_minus::op2_range): Change call to fold_range.
3450 (operator_min::wi_fold): Return result via reference parameter.
3451 (operator_max::wi_fold): Same.
3452 (cross_product_operator::wi_cross_product): Same.
3453 (operator_mult::wi_fold): Same.
3454 (operator_div::wi_fold): Same.
3455 (operator_div op_floor_div): Fix whitespace.
3456 (operator_exact_divide::op1_range): Change call to fold_range.
3457 (operator_lshift::fold_range): Return result via reference parameter.
3458 (operator_lshift::wi_fold): Same.
3459 (operator_rshift::fold_range): Same.
3460 (operator_rshift::wi_fold): Same.
3461 (operator_cast::fold_range): Same.
3462 (operator_cast::op1_range): Change calls to fold_range.
3463 (operator_logical_and::fold_range): Return result via reference.
3464 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
3465 (operator_bitwise_and::wi_fold): Return result via reference.
3466 (operator_logical_or::fold_range): Same.
3467 (operator_bitwise_or::wi_fold): Same.
3468 (operator_bitwise_xor::wi_fold): Same.
3469 (operator_trunc_mod::wi_fold): Same.
3470 (operator_logical_not::fold_range): Same.
3471 (operator_bitwise_not::fold_range): Same.
3472 (operator_bitwise_not::op1_range): Change call to fold_range.
3473 (operator_cst::fold_range): Return result via reference.
3474 (operator_identity::fold_range): Same.
3475 (operator_abs::wi_fold): Same.
3476 (operator_absu::wi_fold): Same.
3477 (operator_negate::fold_range): Same.
3478 (operator_negate::op1_range): Change call to fold_range.
3479 (operator_addr_expr::fold_range): Return result via reference.
3480 (operator_addr_expr::op1_range): Change call to fold_range.
3481 (operator_pointer_plus::wi_fold): Return result via reference.
3482 (operator_pointer_min_max::wi_fold): Same.
3483 (operator_pointer_and::wi_fold): Same.
3484 (operator_pointer_or::wi_fold): Same.
3485 (range_op_handler): Change call to fold_range.
3486 (range_cast): Same.
3487 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
3488 fold_range.
3489 (range_fold_unary_symbolics_p): Same.
3490 (range_fold_binary_expr): Same.
3491 (range_fold_unary_expr): Same.
3492
3493 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3494
3495 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
3496 vector type as an argument rather than reading it from the
3497 stmt_vec_info.
3498 (vect_create_epilog_for_reduction): Update accordingly.
3499 (vectorizable_reduction): Likewise.
3500 (vect_transform_cycle_phi): Likewise.
3501
3502 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
3503
3504 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
3505 the comparison codes that make sense for the mode used, and only the
3506 codes that can be done with a single branch instruction.
3507
3508 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
3509
3510 PR tree-optimization/92351
3511 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
3512 peeling the main loop for alignment, make sure to set the misalignment
3513 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
3514
3515 2019-11-08 Richard Biener <rguenther@suse.de>
3516
3517 * dbgcnt.def (ivopts_loop): Add.
3518 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
3519 ivopts_loop before optimizing a loop.
3520
3521 2019-11-08 Richard Biener <rguenther@suse.de>
3522
3523 PR ipa/92409
3524 * tree-inline.c (declare_return_variable): Properly handle
3525 type mismatches for the return slot.
3526
3527 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
3528
3529 PR target/92095
3530 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
3531 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
3532 change.
3533 (got_helper_needed): New static variable.
3534 (output_load_pcrel_sym): New function.
3535 (get_pc_thunk_name): Remove after inlining...
3536 (load_got_register): ...here. Rework the initialization of the GOT
3537 register and of the GOT helper.
3538 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
3539 (sparc_file_end): Test got_helper_needed to decide whether the GOT
3540 helper must be emitted. Use output_asm_insn instead of fprintf.
3541 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
3542 if optimization is enabled.
3543 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
3544 by calling output_load_pcrel_sym.
3545
3546 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3547
3548 * tree-sra.c (create_access): Delay disqualifying the base
3549 for poly_int values until we know we have a base.
3550
3551 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
3552
3553 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
3554 for loops with SIMDUID set. Enable epilogue vectorization for loops
3555 with SIMDLEN set after finding a main loop with a VF that matches it.
3556
3557 2019-11-08 Jakub Jelinek <jakub@redhat.com>
3558
3559 PR target/92038
3560 * gimple-ssa-store-merging.c (find_constituent_stores): For return
3561 value only, return non-NULL if there is a single non-clobber
3562 constituent store even if there are constituent clobbers and return
3563 one of clobber constituent stores if all constituent stores are
3564 clobbers.
3565 (split_group): Handle clobbers.
3566 (imm_store_chain_info::output_merged_store): When computing
3567 bzero_first, look after all clobbers at the start. Don't count
3568 clobber stmts in orig_num_stmts, except if the first orig store is
3569 a clobber covering the whole area and split_stores cover the whole
3570 area, consider equal number of stmts ok. Punt if split_stores
3571 contains only ->orig stores and their number plus number of original
3572 clobbers is equal to original number of stmts. For ->orig, look past
3573 clobbers in the constituent stores.
3574 (imm_store_chain_info::output_merged_stores): Don't remove clobber
3575 stmts.
3576 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
3577 rhs.
3578 (store_valid_for_store_merging_p): Allow clobber stmts.
3579 (verify_clear_bit_region_be): Fix up a thinko in function comment.
3580
3581 PR c++/92384
3582 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
3583 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
3584 slot.
3585 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
3586 force creation of a unique data.stack_parm slot.
3587
3588 2019-11-08 Richard Biener <rguenther@suse.de>
3589
3590 * genmatch.c (expr::gen_transform): Use the resimplify
3591 member function instead of hard-coding the gimple_resimplifyN variant.
3592 (dt_simplify::gen_1): Likewise.
3593
3594 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3595
3596 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
3597 POLY_INT_CST.
3598
3599 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3600
3601 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
3602 instead of INTEGER_CST.
3603
3604 2019-11-08 Richard Biener <rguenther@suse.de>
3605
3606 PR tree-optimization/92324
3607 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
3608 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
3609 sign-conversions as necessary.
3610 (vectorizable_reduction): Reject conversions in the chain
3611 that are not sign-conversions, base analysis on a non-converting
3612 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
3613 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
3614 for debug stmts.
3615 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
3616 (STMT_VINFO_REDUC_VECTYPE): Likewise.
3617
3618 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
3619
3620 PR target/92055
3621 * config/avr/avr.opt (-mdouble=, -mlong-double=):
3622 Fix a missing '-' when displaying these options in the
3623 help screen.
3624
3625 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3626
3627 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
3628
3629 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3630
3631 * config/aarch64/aarch64-builtins.c
3632 (aarch64_builtin_vectorized_function): Remove bswap handling.
3633
3634 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3635
3636 * tree-core.h (tree_type_common::indivisible_p): New member variable.
3637 * tree.h (TYPE_INDIVISIBLE_P): New macro.
3638 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3639 Treat the vector types as indivisible.
3640
3641 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3642
3643 * optabs.def (gather_load_optab, mask_gather_load_optab)
3644 (scatter_store_optab, mask_scatter_store_optab): Turn into
3645 conversion optabs, with the offset mode given explicitly.
3646 * doc/md.texi: Update accordingly.
3647 * config/aarch64/aarch64-sve-builtins-base.cc
3648 (svld1_gather_impl::expand): Likewise.
3649 (svst1_scatter_impl::expand): Likewise.
3650 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
3651 (expand_scatter_store_optab_fn): Likewise.
3652 (direct_gather_load_optab_supported_p): Likewise.
3653 (direct_scatter_store_optab_supported_p): Likewise.
3654 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
3655 to be argument 4.
3656 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
3657 (internal_gather_scatter_fn_supported_p): Replace the offset sign
3658 argument with the offset vector type. Require the two vector
3659 types to have the same number of elements but allow their element
3660 sizes to be different. Treat the optabs as conversion optabs.
3661 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
3662 prototype accordingly.
3663 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
3664 (supports_vec_convert_optab_p): ...this new function.
3665 (supports_vec_gather_load_p): Update accordingly.
3666 (supports_vec_scatter_store_p): Likewise.
3667 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
3668 Replace the offset sign and bits parameters with a scalar type tree.
3669 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
3670 Pass back the offset vector type instead of the scalar element type.
3671 Allow the offset to be wider than the memory elements. Search for
3672 an offset type that the target supports, stopping once we've
3673 reached the maximum of the element size and pointer size.
3674 Update call to internal_gather_scatter_fn_supported_p.
3675 (vect_check_gather_scatter): Update calls accordingly.
3676 When testing a new scale before knowing the final offset type,
3677 check whether the scale is supported for any signed or unsigned
3678 offset type. Check whether the target supports the source and
3679 target types of a conversion before deciding whether to look
3680 through the conversion. Record the chosen offset_vectype.
3681 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
3682 (vect_recog_gather_scatter_pattern): Get the scalar offset type
3683 directly from the gs_info's offset_vectype instead. Pass a zero
3684 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
3685 * tree-vect-stmts.c (check_load_store_masking): Update call to
3686 internal_gather_scatter_fn_supported_p, passing the offset vector
3687 type recorded in the gs_info.
3688 (vect_truncate_gather_scatter_offset): Update call to
3689 vect_check_gather_scatter, leaving it to search for a valid
3690 offset vector type.
3691 (vect_use_strided_gather_scatters_p): Convert the offset to the
3692 element type of the gs_info's offset_vectype.
3693 (vect_get_gather_scatter_ops): Get the offset vector type directly
3694 from the gs_info.
3695 (vect_get_strided_load_store_ops): Likewise.
3696 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
3697 and IFN_MASK_GATHER_LOAD.
3698 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
3699 (gather_load<mode><v_int_equiv>): ...this.
3700 (mask_gather_load<mode>): Rename to...
3701 (mask_gather_load<mode><v_int_equiv>): ...this.
3702 (scatter_store<mode>): Rename to...
3703 (scatter_store<mode><v_int_equiv>): ...this.
3704 (mask_scatter_store<mode>): Rename to...
3705 (mask_scatter_store<mode><v_int_equiv>): ...this.
3706
3707 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
3708
3709 PR target/92132
3710 * config/rs6000/predicates.md
3711 (signed_or_equality_comparison_operator): New predicate.
3712 (unsigned_or_equality_comparison_operator): Likewise.
3713 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
3714 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
3715 * config/rs6000/vector.md
3716 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
3717 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
3718 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
3719 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
3720 vector modes and same-size integer vector modes.
3721 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
3722 (vector_lt<mode> for VEC_F): New expand.
3723 (vector_le<mode> for VEC_F): Likewise.
3724 (vector_ne<mode> for VEC_F): Likewise.
3725 (vector_unge<mode> for VEC_F): Likewise.
3726 (vector_ungt<mode> for VEC_F): Likewise.
3727 (vector_unle<mode> for VEC_F): Likewise.
3728 (vector_unlt<mode> for VEC_F): Likewise.
3729 (vector_uneq<mode>): Expose name.
3730 (vector_ltgt<mode>): Likewise.
3731 (vector_unordered<mode>): Likewise.
3732 (vector_ordered<mode>): Likewise.
3733
3734 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
3735
3736 PR target/92295
3737 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
3738 Enhance ix86_expand_vector_init_concat.
3739
3740 2019-11-08 Joseph Myers <joseph@codesourcery.com>
3741
3742 * doc/invoke.texi (-Wold-style-definition): Document () not being
3743 considered an old-style definition for C2x.
3744
3745 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
3746
3747 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
3748 Enhance comment.
3749 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
3750 insn patterns using ldcw instruction.
3751 (memory_barrier): Remove insn pattern using sync instruction.
3752 * config/pa/pa.opt (coherent-ldcw): New option.
3753 (ordered): New option.
3754
3755 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3756
3757 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
3758 valid conditions.
3759
3760 2019-11-07 Jakub Jelinek <jakub@redhat.com>
3761
3762 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
3763 typo - mistmatch -> mismatch.
3764 * ipa-profile.c (ipa_profile): Likewise.
3765 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
3766 - mistmatch -> mismatch.
3767
3768 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3769
3770 * simplify-rtx.c (comparison_to_mask): New function.
3771 (mask_to_comparison): New function.
3772 (simplify_logical_relational_operation): New function.
3773 (simplify_binary_operation_1): Call
3774 simplify_logical_relational_operation.
3775
3776 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
3777
3778 PR other/92090
3779 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
3780 modes for integer constants.
3781
3782 2019-11-07 Jan Hubicka <jh@suse.cz>
3783
3784 PR ipa/92406
3785 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
3786 summary.
3787
3788 2019-11-07 Jan Hubicka <jh@suse.cz>
3789
3790 * optc-save-gen.awk: Generate cl_target_option_free
3791 and cl_optimization_option_free.
3792 * opth-en.awk: Declare cl_target_option_free
3793 and cl_optimization_option_free.
3794 * tree.c (free_node): Use it.
3795
3796 2019-11-06 Jan Hubicka <jh@suse.cz>
3797
3798 * lto-streamer-in.c: Include alloc-pool.h.
3799 (freeing_string_slot_hasher): Remove.
3800 (string_slot_allocator): New object allocator.
3801 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
3802 (file_name_obstack): New obstack.
3803 (canon_file_name): Allocate in obstack and allocator.
3804 (lto_reader_init): Initialize obstack and allocator.
3805 (lto_free_file_name_hash): New function.
3806 * lto-streamer.h (lto_free_file_name_hash): New.
3807
3808 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
3809
3810 PR tree-optimization/89134
3811 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
3812 * params.def: Add min-loop-cond-split-prob.
3813 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
3814 outside checks on loop into the function.
3815 (split_info): New class.
3816 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
3817 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
3818 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
3819 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
3820 (stmt_semi_invariant_p, branch_removable_p): Likewise.
3821 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
3822 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
3823 (split_loop_on_cond): Likewise.
3824 (tree_ssa_split_loops): Add loop split on conditional statement.
3825
3826 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
3827
3828 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
3829 pattern.
3830
3831 2019-11-07 Richard Biener <rguenther@suse.de>
3832
3833 PR tree-optimization/92405
3834 * tree-vect-loop.c (vectorizable_reduction): Appropriately
3835 restrict lane-reducing ops to single stmt chains.
3836
3837 2019-11-07 Martin Jambor <mjambor@suse.cz>
3838
3839 PR lto/70929
3840 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
3841 * cgraph.h (gimple_check_call_matching_types): Remove
3842 * cgraph.c (gimple_check_call_args): Likewise.
3843 (gimple_check_call_matching_types): Likewise.
3844 (symbol_table::create_edge): Do not call
3845 gimple_check_call_matching_types.
3846 (cgraph_edge::make_direct): Likewise.
3847 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
3848 * value-prof.h (check_ic_target): Remove.
3849 * value-prof.c (check_ic_target): Remove.
3850 (gimple_ic_transform): Do nat call check_ic_target.
3851 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
3852 (afdo_indirect_call): Likewise.
3853 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
3854 gimple_check_call_matching_types.
3855 * ipa-inline.c (early_inliner): Likewise.
3856
3857 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3858
3859 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
3860 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
3861 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
3862 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3863 * config/arm/iterators.md (USSAT16): New int_iterator.
3864 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
3865 (sup): Likewise.
3866 * config/arm/predicates.md (ssat16_imm): New predicate.
3867 (usat16_imm): Likewise.
3868 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
3869
3870 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3871
3872 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
3873 New define_insns.
3874 (arm_<simd32_op>): New define_expands.
3875 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
3876 __smuad, __smuadx): Define.
3877 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3878 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
3879 (SIMD32_BINOP_Q): Likewise.
3880 (simd32_op): Handle the above.
3881 * config/arm/unspecs.md: Define unspecs for the above.
3882
3883 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3884
3885 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
3886 * config/arm/arm.md (APSRGE_REGNUM): Define.
3887 (arm_<simd32_op>): New define_insn.
3888 (arm_sel): Likewise.
3889 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
3890 (CALL_USED_REGISTERS): Likewise.
3891 (REG_ALLOC_ORDER): Likewise.
3892 (FIRST_PSEUDO_REGISTER): Update value.
3893 (ARM_GE_BITS_READ): Define.
3894 * config/arm/arm.c (arm_conditional_register_usage): Clear
3895 APSRGE_REGNUM from operand_reg_set.
3896 (arm_ge_bits_access): Define.
3897 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
3898 ARM_BUIILTIN_sel.
3899 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
3900 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
3901 FAIL if ARM_GE_BITS_READ.
3902 (*arm_add<mode>3): New define_insn.
3903 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
3904 (*arm_sub<mode>3): New define_insn.
3905 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
3906 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
3907 __usub16): Define.
3908 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3909 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
3910 (simd32_op): Handle the above.
3911 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
3912 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
3913 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
3914 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
3915
3916 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3917
3918 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
3919 (arm_smlabb): New define_expand.
3920 (*maddhisi4tb): Rename to...
3921 (maddhisi4tb): ... This.
3922 (*maddhisi4tt): Rename to...
3923 (maddhisi4tt): ... This.
3924 (arm_smlatb_setq): New define_insn.
3925 (arm_smlatb): New define_expand.
3926 (arm_smlatt_setq): New define_insn.
3927 (arm_smlatt): New define_expand.
3928 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
3929 (arm_<smlaw_op>): New define_expand.
3930 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
3931 __smlawb, __smlawt): Define.
3932 * config/arm_acle_builtins.def: Define builtins for the above.
3933 * config/arm/iterators.md (SMLAWBT): New int_iterator.
3934 (slaw_op): New int_attribute.
3935 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
3936
3937 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3938
3939 * config/arm/arm.md (arm_<ss_op>): New define_expand.
3940 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
3941 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
3942 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
3943 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
3944 (ss_op): New code_attr.
3945
3946 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3947
3948 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
3949 * config/arm/arm.md (APSRQ_REGNUM): Define.
3950 (add_setq): New define_subst.
3951 (add_clobber_q_name): New define_subst_attr.
3952 (add_clobber_q_pred): Likewise.
3953 (maddhisi4): Change to define_expand. Split into mult and add if
3954 ARM_Q_BIT_READ.
3955 (arm_maddhisi4): New define_insn.
3956 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
3957 (*maddhisi4tt): Likewise.
3958 (arm_ssat): New define_expand.
3959 (arm_usat): Likewise.
3960 (arm_get_apsr): New define_insn.
3961 (arm_set_apsr): Likewise.
3962 (arm_saturation_occurred): New define_expand.
3963 (arm_set_saturation): Likewise.
3964 (*satsi_<SAT:code>): Rename to...
3965 (satsi_<SAT:code><add_clobber_q_name>): ... This.
3966 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
3967 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
3968 (CALL_USED_REGISTERS): Mark apsrq.
3969 (FIRST_PSEUDO_REGISTER): Update value.
3970 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
3971 (machine_function): Add q_bit_access.
3972 (ARM_Q_BIT_READ): Define.
3973 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
3974 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
3975 operand_reg_set.
3976 (arm_q_bit_access): Define.
3977 * config/arm/arm-builtins.c: Include stringpool.h.
3978 (arm_sat_binop_imm_qualifiers,
3979 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
3980 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
3981 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
3982 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
3983 SET_SAT_QUALIFIERS): Likewise.
3984 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
3985 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
3986 Handle 0 argument expander.
3987 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
3988 (arm_check_builtin_call): Define.
3989 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
3990 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
3991 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
3992 (arm_q_bit_access): Likewise.
3993 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
3994 __saturation_occurred, __set_saturation_occurred): Define.
3995 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
3996 saturation_occurred, set_saturation_occurred.
3997 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
3998 (UNSPEC_APSR_READ): Likewise.
3999 (VUNSPEC_APSR_WRITE): Likewise.
4000 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
4001 (*arm_ssadd<mode>3): New define_insn.
4002 (sssub<mode>3): Convert to define_expand.
4003 (*arm_sssub<mode>3): New define_insn.
4004 (ssmulsa3): Convert to define_expand.
4005 (*arm_ssmulsa3): New define_insn.
4006 (usmulusa3): Convert to define_expand.
4007 (*arm_usmulusa3): New define_insn.
4008 (ssmulha3): FAIL if ARM_Q_BIT_READ.
4009 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
4010 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
4011
4012 2019-11-07 Martin Liska <mliska@suse.cz>
4013
4014 PR c++/92354
4015 * cgraph.c (delete_function_version): Clear global
4016 variable version_info_node if equal to deleted
4017 function.
4018
4019 2019-11-07 Martin Liska <mliska@suse.cz>
4020
4021 * fold-const.c (operand_compare::operand_equal_p): Add comparison
4022 of CONSTRUCTOR_NO_CLEARING.
4023 (operand_compare::hash_operand): Likewise.
4024
4025 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
4026
4027 Support 64-bit double and 64-bit long double configurations.
4028
4029 PR target/92055
4030 * config.gcc (tm_defines) [avr]: Set from --with-double=,
4031 --with-long-double=.
4032 * config/avr/t-multilib: Remove.
4033 * config/avr/t-avr: Output of genmultilib.awk is now fully
4034 dynamically generated and no more part of the repo.
4035 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
4036 Pass them down to...
4037 * config/avr/genmultilib.awk: ...here and handle them.
4038 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
4039 (-mlong-double=, avr_long_double). New option and var.
4040 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
4041 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
4042 Set default as requested by --with-double=
4043 (TARGET_HANDLE_OPTION): Define to this...
4044 (avr_handle_option): ...new hook worker.
4045 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
4046 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
4047 (avr_double_lib): New proto for spec function.
4048 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
4049 (DRIVER_SELF_SPECS): Call %:double-lib.
4050 * config/avr/avr.c (avr_option_override): Assert
4051 sizeof(long double) >= sizeof(double) for the target.
4052 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
4053 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
4054 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
4055 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
4056 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
4057 New built-in define depending on --with-double=, --with-long-double=.
4058 * config/avr/driver-avr.c (avr_double_lib): New spec function.
4059 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
4060 * doc/install.texi (Cross-Compiler-Specific Options)
4061 <--with-double=, --with-long-double=>: Doc.
4062
4063 2019-11-07 Richard Biener <rguenther@suse.de>
4064
4065 * dbgcnt.def (gimple_unroll): New.
4066 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
4067 gimple_unroll debug counter before applying transform.
4068 (try_peel_loop): Likewise.
4069
4070 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
4071
4072 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
4073 frame pointer in multiple registers.
4074 (ira_setup_eliminable_regset): Setup eliminable_regset,
4075 ira_no_alloc_regs and regs_ever_live for frame pointer in
4076 multiple registers.
4077
4078 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
4079
4080 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
4081 V2DI modes.
4082
4083 2019-11-06 Jan Hubicka <jh@suse.cz>
4084
4085 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
4086 allocations.
4087 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
4088 Do not silently ignore summary corruptions.
4089
4090 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4091
4092 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
4093 the epilogue if there are peeled iterations for it to handle.
4094
4095 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4096
4097 * config/arc/arc.c (arc_split_ior): Add asserts.
4098 (arc_split_mov_const): Likewise.
4099 (arc_check_ior_const): Do not match known short immediate values.
4100 * config/arc/arc.md (movsi): Don't split predicated instructions
4101 (iorsi): Likewise.
4102
4103 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4104
4105 * config/arc/arc.opt (mea): Update help string.
4106 * doc/invoke.texi(ARC): Update mea option info.
4107
4108 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4109
4110 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
4111 (zero_extendqisi2_ac): Likewise.
4112 (zero_extendhisi2_i): Likewise.
4113 (extendqihi2_i): Likewise.
4114 (extendqisi2_ac): Likewise.
4115 (extendhisi2_i): Likewise.
4116
4117 2019-11-06 Richard Biener <rguenther@suse.de>
4118
4119 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
4120 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
4121 Simplify single_defuse_cycle condition.
4122
4123 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4124
4125 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
4126 epilogue loop, make sure that the VF is small enough or that
4127 the epilogue loop can be fully-masked.
4128
4129 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4130
4131 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
4132 loop when we've finished, rather than returning directly from
4133 the loop. Use a local variable to track whether we're still
4134 searching for the preferred simdlen. Make vect_epilogues
4135 record whether the next iteration should try to treat the
4136 loop as an epilogue.
4137
4138 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
4139
4140 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
4141 __arc_hard_float__, __ARC_HARD_FLOAT__,
4142 __arc_soft_float__, __ARC_SOFT_FLOAT__
4143
4144 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
4145
4146 PR tree-optimization/92317
4147 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
4148 update phi's with constant phi arguments.
4149
4150 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
4151 Alexandre Oliva <oliva@adacore.com>
4152
4153 * common.opt (-fcallgraph-info[=]): New option.
4154 * doc/invoke.texi (Developer options): Document it.
4155 * opts.c (common_handle_option): Handle it.
4156 * builtins.c (expand_builtin_alloca): Record allocation if
4157 -fcallgraph-info=da.
4158 * calls.c (expand_call): If -fcallgraph-info, record the call.
4159 (emit_library_call_value_1): Likewise.
4160 * flag-types.h (enum callgraph_info_type): New type.
4161 * explow.c: Include stringpool.h.
4162 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
4163 * function.c (allocate_stack_usage_info): New.
4164 (allocate_struct_function): Call it for -fcallgraph-info.
4165 (prepare_function_start): Call it otherwise.
4166 (record_final_call, record_dynamic_alloc): New.
4167 * function.h (struct callinfo_callee): New.
4168 (CALLEE_FROM_CGRAPH_P): New.
4169 (struct callinfo_dalloc): New.
4170 (struct stack_usage): Add callees and dallocs.
4171 (record_final_call, record_dynamic_alloc): Declare.
4172 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
4173 object if -fcallgraph-info=da.
4174 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
4175 * print-tree.h (print_decl_identifier): Declare.
4176 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
4177 * print-tree.c: Include print-tree.h.
4178 (print_decl_identifier): New function.
4179 * toplev.c: Include print-tree.h.
4180 (callgraph_info_file): New global variable.
4181 (callgraph_info_external_printed): Likewise.
4182 (output_stack_usage): Rename to...
4183 (output_stack_usage_1): ... this. Make it static, add cf
4184 parameter. If -fcallgraph-info=su, print stack usage to cf.
4185 If -fstack-usage, use print_decl_identifier for
4186 pretty-printing.
4187 (INDIRECT_CALL_NAME): New.
4188 (dump_final_node_vcg_start): New.
4189 (dump_final_callee_vcg, dump_final_node_vcg): New.
4190 (output_stack_usage): New.
4191 (lang_dependent_init): Open and start file if
4192 -fcallgraph-info. Allocated callgraph_info_external_printed.
4193 (finalize): If callgraph_info_file is not null, finish it,
4194 close it, and release callgraph_info_external_printed.
4195
4196 2019-11-06 Gergö Barany <gergo@codesourcery.com>
4197 Frederik Harwath <frederik@codesourcery.com>
4198 Thomas Schwinge <thomas@codesourcery.com>
4199
4200 * omp-low.c (struct omp_context): New fields
4201 local_reduction_clauses, outer_reduction_clauses.
4202 (new_omp_context): Initialize these.
4203 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
4204 (scan_omp_for): Check reduction clauses for incorrect nesting.
4205
4206 2019-11-06 Jakub Jelinek <jakub@redhat.com>
4207
4208 PR inline-asm/92352
4209 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
4210 operands with non-memory constraints.
4211
4212 2019-11-05 Martin Sebor <msebor@redhat.com>
4213
4214 PR tree-optimization/92373
4215 * tree.c (component_ref_size): Only consider initializers of objects
4216 of matching struct types.
4217 Return null for instances of interior zero-length arrays.
4218
4219 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
4220
4221 * doc/md.texi (Insn Splitting): Fix combiner documentation.
4222
4223 2019-11-05 Jason Merrill <jason@redhat.com>
4224
4225 PR tree-optimization/91825
4226 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
4227
4228 2019-11-05 Jim Wilson <jimw@sifive.com>
4229
4230 PR middle-end/92263
4231 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
4232 optimize_insn_for_speed_p is true.
4233
4234 2019-11-05 Martin Sebor <msebor@redhat.com>
4235
4236 PR middle-end/92333
4237 PR middle-end/82608
4238 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
4239 size.
4240 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
4241 name and location for a temporary variable.
4242
4243 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4244
4245 * tree-vrp.c (value_range::value_range): Fix whitespace.
4246 (defined_ranges_p): Same.
4247 (range_fold_binary_symbolics_p): Same.
4248 (value_range::intersect_helper): Same.
4249 (value_range::union_helper): Same.
4250 * tree-vrp.h (range_fold_binary_expr): Same.
4251
4252 2019-11-04 Martin Sebor <msebor@redhat.com>
4253
4254 PR middle-end/92341
4255 PR middle-end/82612
4256 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
4257 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
4258 of message printed in a warning for empty arrays.
4259 (vrp_prop::check_mem_ref): Also handle function parameters and
4260 empty arrays.
4261
4262 2019-11-05 Richard Biener <rguenther@suse.de>
4263
4264 PR tree-optimization/92371
4265 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
4266 on the original stmt of live stmts in the chain.
4267 (vectorizable_live_operation): Look at the original stmt when
4268 checking STMT_VINFO_REDUC_DEF.
4269
4270 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4271
4272 * gimple-fold.c, gimple-loop-versioning.cc,
4273 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
4274 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
4275 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
4276 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
4277 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
4278 value_range_equiv, and value_range_base to value_range.
4279
4280 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
4281
4282 * expr.c (build_personality_function): Fix generated type to
4283 match actual personality functions.
4284
4285 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
4286
4287 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
4288 enough bytes for the NULL character.
4289
4290 2019-11-05 Richard Biener <rguenther@suse.de>
4291
4292 PR tree-optimization/92280
4293 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
4294 had a single use do not create a new CTOR.
4295 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
4296 BIT_FIELD_REF of a CTOR via GENERIC.
4297
4298 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
4299
4300 * config/s390/s390.c (s390_vector_alignment): Check if the value
4301 fits into uhwi before using it.
4302
4303 2019-11-05 Martin Liska <mliska@suse.cz>
4304
4305 * symbol-summary.h: Use ggc_delete.
4306
4307 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4308
4309 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
4310 Change vec_perm field to 10.
4311
4312 2019-11-05 Arnaud Charlet <charlet@adacore.com>
4313
4314 * doc/install.texi: Further fix syntax for html generation.
4315
4316 2019-11-05 Martin Liska <mliska@suse.cz>
4317
4318 * symbol-summary.h: Rename allocator to m_allocator and
4319 add comment.
4320
4321 2019-11-05 Richard Biener <rguenther@suse.de>
4322
4323 PR tree-optimization/92324
4324 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
4325 all signed or unsigned operations.
4326
4327 2019-11-05 Jan Hubicka <jh@suse.cz>
4328
4329 * hsa-brig.c: Include alloc-pool.h
4330 * hsa-dump.c: Likewise.
4331 * hsa-gen.c: Likewise.
4332 * hse-regalloc.c: Likewise.
4333 * ipa-hsa.c: Likewise.
4334 * ipa-predicate.c: Likewise.
4335 * ipa-reference.c: Likewise.
4336 * ipa-sra.c: Likewise.
4337 * omp-expand.c: Likewise.
4338 * omp-general.c: Likewise.
4339 * omp-low.c: Likewise.
4340 * sumbol-summary.h (function_summary_base): Add allocator.
4341 (function_summary<T *>::function_summary): Update construction.
4342 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
4343 (call_summary_base): Add allcator.
4344 (call_summary<T *>::call_summary): Update construction.
4345 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
4346
4347 2019-11-05 Jakub Jelinek <jakub@redhat.com>
4348
4349 PR tree-optimization/91945
4350 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
4351 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
4352 Formatting fix.
4353
4354 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4355
4356 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
4357 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
4358 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
4359 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
4360 (vrp_set_zero_nonzero_bits): Move to...
4361 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
4362 (vr_values::simplify_bit_ops_using_ranges): Rename
4363 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
4364
4365 2019-11-05 Martin Liska <mliska@suse.cz>
4366
4367 PR c++/92339
4368 * fold-const.c (operand_compare::hash_operand): Remove
4369 FIELD_DECL handling.
4370
4371 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4372
4373 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
4374 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
4375 static.
4376
4377 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4378
4379 * tree-vrp.c (value_range_base::operator==): Use equal_p to
4380 properly handle symbolics.
4381 (range_compatible_p): Remove.
4382
4383 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
4384
4385 * common.opt (-fabi-version): Document =14.
4386 * doc/invoke.texi (C++ Dialect Options): Likewise.
4387
4388 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4389
4390 * tree-vrp.c (value_range_base::set): Do not special case pointers.
4391
4392 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
4393
4394 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
4395 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
4396 gcn_omp_device_kind_arch_isa.
4397 * config/gcn/t-omp-device: New file.
4398 * configure.ac: Support gcn for omp_device_property.
4399 * configure: Regenerate.
4400
4401 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4402
4403 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
4404 (vrp_val_max): Same.
4405 (vrp_val_is_min): Same.
4406 (vrp_val_is_max): Same.
4407 (value_range_base::nonzero_p): Remove last argument to
4408 vrp_val_is_max.
4409 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
4410 (vrp_val_max): Same.
4411 (vrp_val_is_min): Same.
4412 (vrp_val_is_max): Same.
4413 (value_range_base::set_varying): Remove last argument to vrp_val*.
4414 (value_range_base::dump): Same.
4415 (value_range_base::set): Same.
4416 (value_range_base::normalize_symbolics): Same.
4417 (value_range_base::num_pairs): Same.
4418 (value_range_base::lower_bound): Same.
4419 (value_range_base::upper_bound): Same.
4420 (ranges_from_anti_range): Remove handle_pointers argument.
4421 (value_range_base::singleton_p): Remove last argument to
4422 ranges_from_anti_range.
4423
4424 2019-11-04 Jan Hubicka <jh@suse.cz>
4425
4426 * ipa-reference.c (init_function_info): Initialize
4427 info->global.statics_read.
4428
4429 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4430
4431 * tree-vrp.c (value_range_base::invert): Use constructors to build
4432 range.
4433
4434 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4435
4436 * tree-vrp.c (range_int_cst_singleton_p): Remove.
4437 * tree-vrp.h (range_int_cst_singleton_p): Remove.
4438
4439 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4440
4441 * tree-vrp.c (value_range_base::normalize_addresses): Handle
4442 VR_UNDEFINED.
4443
4444 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4445
4446 * tree-vrp.c (dump_assert_info): New.
4447 (dump_asserts_info): New.
4448
4449 2019-11-04 Jan Hubicka <jh@suse.cz>
4450
4451 * ipa-inline-transform.c: Include ipa-utils.h
4452 (inline_call): Set thunk_expansion flag.
4453 * ipa-utils.h (thunk_expansion): Declare.
4454 * ipa-devirt.c (thunk_expansion): New global var.
4455 (devirt_node_removal_hook): Do not invalidate cache while
4456 doing thunk expansion.
4457
4458 2019-11-04 Tamar Christina <tamar.christina@arm.com>
4459
4460 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
4461
4462 2019-11-04 Martin Sebor <msebor@redhat.com>
4463
4464 PR tree-optimization/92349
4465 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
4466 memebers have constant sizes.
4467
4468 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
4469
4470 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
4471 parameter.
4472 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
4473 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
4474 vect_analyze_loop.
4475
4476 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
4477
4478 * expr.c (store_constructor): Modify to handle single element vectors.
4479 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
4480 constructors.
4481 (vect_slp_check_for_constructors): New function.
4482 (vect_slp_analyze_bb_1): Call new function to check for vector
4483 constructors.
4484 (vectorize_slp_instance_root_stmt): New function.
4485 (vect_schedule_slp): Call new function to vectorize root stmt of vector
4486 constructors.
4487 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
4488
4489 2019-11-04 Richard Biener <rguenther@suse.de>
4490
4491 PR tree-optimization/92345
4492 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
4493 we produced a reduction chain.
4494 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
4495 LOOP_VINFO_REDUCTIONS.
4496
4497 2019-11-04 Jan Hubicka <jh@suse.cz>
4498
4499 * cgraphclones.c (cgraph_node::create_version_clone): Do not
4500 duplicate summaries.
4501 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
4502 first.
4503 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
4504 access call summaries.
4505 (dump_ipa_call_summary): Be ready for missing edge summaries.
4506 (analyze_function_body): Use get instead of get_create to access
4507 edge summary.
4508 (estimate_calls_size_and_time): Do not access summaries of
4509 inlined edges; sanity check they are missing.
4510 (ipa_call_context::estimate_size_and_time): Use get instead
4511 of get_create to access node summary.
4512 (inline_update_callee_summaries): Do not update depth of
4513 inlined edge.
4514 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
4515 growth caches.
4516 (ipa_merge_fn_summary_after_inlining): Use get instead
4517 of get_create.
4518 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
4519 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
4520 fast summary.
4521 (initialize_growth_caches): Update.
4522 (do_estimate_edge_time): Remove redundant copy of context.
4523 (ipa_remove_from_growth_caches): New function.
4524 * ipa-inline.c (flatten_function): Update overall summary
4525 only when optimizing.
4526 (inline_to_all_callers): Update overall summary of function
4527 inlined to.
4528 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
4529 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
4530 to false.
4531
4532 2019-11-04 Richard Biener <rguenther@suse.de>
4533
4534 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
4535 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
4536
4537 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
4538
4539 * ggc-common.c: Include system.h before malloc.h.
4540
4541 2019-11-04 Alexandre Oliva <oliva@adacore.com>
4542
4543 * configure.ac: Pass --enable-obsolete=* and
4544 --enable-option-checking=* down to build configure, and fail
4545 if it fails. AC_SUBST HAVE_AUTO_BUILD.
4546 * configure: Rebuild.
4547 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
4548 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
4549
4550 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4551
4552 * config.in: Regenerate.
4553 * config/msp430/msp430.c (msp430_option_override): Emit an error if
4554 -mtiny-printf is used without GCC being configured with
4555 --enable-newlib-nano-formatted-io.
4556 * config/msp430/msp430.h (LINK_SPEC): Pass
4557 "--wrap puts --wrap printf" when -mtiny-printf is used.
4558 * config/msp430/msp430.opt: Document -mtiny-printf.
4559 * configure: Regenerate.
4560 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
4561 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
4562 --enable-newlib-nano-formatted-io is passed.
4563 * doc/invoke.texi: Document -mtiny-printf.
4564
4565 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4566
4567 * configure: Regenerate.
4568
4569 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4570
4571 * config/msp430/driver-msp430.c
4572 (msp430_get_linker_devices_include_path): New spec function.
4573 * config/msp430/msp430-devices.c (msp430_dirname): New function.
4574 (extract_devices_dir_from_exec_prefix): New function.
4575 (extract_devices_dir_from_collect_gcc): New function.
4576 (msp430_check_env_var_for_devices): New function.
4577 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
4578 (parse_devices_csv): Call msp430_check_env_var_for_devices if
4579 devices.csv was not found using other methods.
4580 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
4581 New prototype.
4582 (msp430_dirname): Likewise.
4583 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
4584 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
4585 msp430_get_linker_devices_include_path.
4586 (TARGET_EXTRA_PRE_INCLUDES): Define.
4587 * doc/invoke.texi: Document new ways of searching for support files.
4588
4589 2019-11-04 Richard Biener <rguenther@suse.de>
4590
4591 PR tree-optimization/92301
4592 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
4593 as required by epilogue generation
4594
4595 2019-11-04 Martin Liska <mliska@suse.cz>
4596
4597 PR ipa/92304
4598 * fold-const.c (operand_compare::hash_operand): Fix field
4599 hashing of CONSTRUCTOR.
4600
4601 2019-11-04 Martin Liska <mliska@suse.cz>
4602
4603 * ggc.h (ggc_delete): New function.
4604 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
4605 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
4606 (ipa_free_all_node_params): Likewise.
4607 * ipa-sra.c (ipa_sra_analysis): Likewise.
4608
4609 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4610
4611 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
4612 set_switch_stmt_execution_predicate, compute_bb_predicates,
4613 will_be_nonconstant_expr_predicate,
4614 phi_result_unknown_predicate,
4615 analyze_function_body): Pass arround params summary.
4616 (ipa_call_context::duplicate_from): New comment;
4617 only duplicate useful values.
4618 (ipa_call_context::equal_to): Only compare useful values.
4619 (remap_edge_summaries): Pass params_summary.
4620 (remap_hint_predicate): Likewise.
4621 (ipa_merge_fn_summary_after_inlining): Likewise.
4622 (inline_read_section): Initialize params summary used flags.
4623 * ipa-predicate.c (predicate::remap_after_inlining): Pass
4624 around param_summary.
4625 (add_condition): Initialized used params summary flags.
4626 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
4627 (inline_param_summary::useless_p): New predicate.
4628 (remap_after_inlining, add_condition): Update prototype
4629 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
4630 move_cost.
4631 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
4632 summaries.
4633 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
4634 (ipa_analyze_virtual_call_uses): Likewise.
4635 (update_indirect_edges_after_inlining): Update param summaries.
4636 (ipa_print_node_params): Print used flags.
4637 (ipa_read_indirect_edge_info): Update param summareis.
4638 * ipa-prop.h (ipa_param_descriptor): Add
4639 used_by_ipa_predicates, used_by_indirect_call
4640 and used_by_polymorphic_call.
4641 (ipa_set_param_used_by_ipa_predicates,
4642 ipa_set_param_used_by_indirect_call,
4643 ipa_set_param_used_by_polymorphic_call,
4644 ipa_is_param_used_by_ipa_predicates,
4645 ipa_is_param_used_by_indirect_call,
4646 ipa_is_param_used_by_polymorphic_call): New inline functions.
4647
4648 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4649
4650 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
4651 member function.
4652 (ipa_call_context::release): Add ALL parameter.
4653 (ipa_call_context::equal_to): New member function.
4654 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
4655 duplicate_form, release, equal_to and exists_p member functoins.
4656 * ipa-inline-analysis.c (node_context_cache_entry): New
4657 class.
4658 (node_context_summary): Likewise.
4659 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
4660 node_context_clear): New static vars.
4661 (initialize_growth_caches): New function.
4662 (free_growth_caches): Also delete node_context_cache; output stats.
4663 (do_estimate_edge_time): Cache contexts.
4664 (reset_node_cache): New function.
4665 * ipa-inline.c (reset_edge_caches): Reset also node cache.
4666 (inline_small_functions): Initialize growth caches.
4667 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
4668 Declare.
4669 * ipa-predicate.h (inline_param_summary::equal_to): New.
4670 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
4671 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
4672 (ipa_agg_jump_function): Implement equal_to member function.
4673
4674 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4675
4676 * ipa-fnsummary.c (inline_read_section): Set vector size
4677 ahead of time.
4678
4679 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4680
4681 * ipa-fnsummary.c (ipa_call_context): New constructor.
4682 (estimate_node_size_and_time): Turn to ...
4683 (ipa_call_context::estimate_size_and_time): ... this one.
4684 (ipa_call_context::release): New.
4685 * ipa-fnsummary.h (ipa_call_context): New class.
4686 (estimate_node_size_and_time): Remove.
4687 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
4688 do_estimate_edge_hints): Update.
4689
4690 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4691
4692 * config.in: Regenerate.
4693 * configure: Regenerate.
4694 * configure.ac: Check for mallinfo.
4695 * ggc-common.c: Include malloc.h if available;
4696 include options.h
4697 (report_heap_memory_use): New functoin.
4698 * ggc-page.c (ggc_grow): Do not print "start".
4699 * ggc.h (report_heap_memory_use): Declare.
4700 * pases.c (execute_one_pass): Report memory after IPA passes.
4701 (ipa_read_summaries_1): Likewise.
4702 (ipa_read_optimization_summaries_1): Likewise.
4703
4704 2019-11-02 Jakub Jelinek <jakub@redhat.com>
4705
4706 * gimplify.h (omp_construct_selector_matches): Change return
4707 type to int, add a new SCORES argument.
4708 * gimplify.c (omp_construct_selector_matches): Likewise. If
4709 SCORES is non-NULL, compute scores of each construct.
4710 * omp-general.h (omp_get_context_selector): Declare.
4711 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
4712 Adjust omp_construct_selector_matches callers.
4713 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
4714 (omp_context_compute_score): New function.
4715 (omp_resolve_declare_variant): Compute scores and decide based on
4716 that.
4717
4718 PR bootstrap/92314
4719 * configure.ac: Don't look for omp-device-properties files from
4720 installed offloading compilers. Instead add tmake_file snippets
4721 for configured offloading targets and use files they generate.
4722 * Makefile.in (install): Don't depend on
4723 install-omp-device-properties.
4724 (install-omp-device-properties): Remove goal.
4725 * config/i386/t-omp-device: New file.
4726 * config/i386/t-intelmic (omp-device-properties): Remove goal.
4727 * config/nvptx/t-omp-device: New file.
4728 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
4729 * configure: Regenerated.
4730
4731 * omp-general.h (omp_context_selector_set_compare): Declare.
4732 * omp-general.c (omp_construct_simd_compare,
4733 omp_context_selector_props_compare, omp_context_selector_set_compare,
4734 omp_context_selector_compare): New functions.
4735 (omp_resolve_declare_variant): Prune variants that are strict subset
4736 of another variant.
4737
4738 2019-11-01 Martin Sebor <msebor@redhat.com>
4739
4740 PR middle-end/91679
4741 PR middle-end/91647
4742 PR middle-end/91463
4743 PR middle-end/92312
4744 * doc/invoke.texi (-Wzero-length-bounds): Document.
4745 * gimple-match-head.c (try_conditional_simplification): Use memcpy
4746 instead of a hand-rolled loop to avoid PR 92323.
4747 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
4748 with initializers.
4749 (vrp_prop::check_mem_ref): Handle declared struct objects.
4750 * tree.c (last_field): New function.
4751 (array_at_struct_end_p): Handle MEM_REF.
4752 (get_initializer_for): New helper.
4753 (component_ref_size): Add argument. Rename locals. Call
4754 get_initializer_for instead of fold_ctor_reference. Correct handling
4755 of flexible array members.
4756 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
4757
4758 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
4759
4760 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
4761 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
4762 UNSPEC_VSX_CVSPUXDS): Remove.
4763 (vsx_xvcvspdp): New define_expand, old define_insn split to...
4764 (vsx_xvcvspdp_be): ... this. New. And...
4765 (vsx_xvcvspdp_le): ... this. New.
4766 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
4767 (vsx_xvcv<su>xwdp_be): ... this. New. And...
4768 (vsx_xvcv<su>xwdp_le): ... this. New.
4769 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
4770 (vsx_xvcvsp<su>xds_be): ... this. New. And...
4771 (vsx_xvcvsp<su>xds_le): ... this. New.
4772
4773 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
4774
4775 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
4776 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
4777 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
4778 UNSPEC_VSX_XVCVSPSXWS): Remove.
4779 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
4780 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
4781
4782 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
4783
4784 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
4785 (UNSPEC_VSX_XVCDPSP): Remove.
4786 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
4787 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
4788
4789 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
4790
4791 * hooks.c (hook_tree_tree_bool_null): New.
4792 * hooks.h (hook_tree_tree_bool_null): Declare.
4793 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
4794 (LANG_HOOKS_DECLS): Add it.
4795 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
4796 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
4797 (lower_omp_target): Handle Fortran array with descriptor in
4798 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
4799
4800 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
4801
4802 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4803 Assert that the type we store in abi_vector_types is its own
4804 main variant.
4805 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
4806
4807 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
4808
4809 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
4810 from a CONST_INT address when TARGET_THUMB2.
4811
4812 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
4813
4814 * config/arm/arm.md (add_not_cin): New insn.
4815 (add_not_shift_cin): Likewise.
4816
4817 2019-10-31 Martin Liska <mliska@suse.cz>
4818
4819 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
4820 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
4821 and compare_memory_operand.
4822
4823 2019-10-31 Jakub Jelinek <jakub@redhat.com>
4824
4825 * configure.ac: Compute and substitute omp_device_properties and
4826 omp_device_property_deps.
4827 * Makefile.in (generated_files): Add omp-device-properties.h.
4828 (omp-general.o): Depend on omp-device-properties.h.
4829 (omp_device_properties): New make variable.
4830 (omp-device-properties.h, s-omp-device-properties-h,
4831 install-omp-device-properties): New goals.
4832 (install): Depend on install-omp-device-properties for accelerators.
4833 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
4834 * target.h (enum omp_device_kind_arch_isa): New enum.
4835 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
4836 documentation.
4837 * omp-general.c: Include omp-device-properties.h.
4838 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
4839 colon instead of comma.
4840 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
4841 functions.
4842 (omp_context_selector_matches): Implement device set arch/isa
4843 selectors, improve device set kind selector handling.
4844 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
4845 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
4846 TARGET_SIMD_CLONE_USABLE): Formatting fix.
4847 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
4848 ix86_omp_device_kind_arch_isa.
4849 * config/i386/i386-options.c (struct ix86_target_opts): Move type
4850 definition from ix86_target_string to file scope.
4851 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
4852 to file scope.
4853 (ix86_omp_device_kind_arch_isa): New function.
4854 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
4855 isa_opts definitions to file scope.
4856 * config/i386/t-intelmic (omp-device-properties): New goal.
4857 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
4858 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
4859 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
4860 nvptx_omp_device_kind_arch_isa.
4861 * configure: Regenerate.
4862 * doc/tm.texi: Regenerate.
4863
4864 PR middle-end/92231
4865 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
4866 DECL_BUILT_IN in comment. Remove redundant ()s around return
4867 argument.
4868 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
4869 before calling fndecl_built_in_p.
4870 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
4871 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
4872 fndecl_built_in_p on it.
4873
4874 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
4875
4876 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
4877
4878 2019-10-31 Martin Liska <mliska@suse.cz>
4879
4880 * config/arm/arm.c (arm_get_pcs_model): Remove usage
4881 of cgraph_local_info and use local_info_node instead.
4882 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
4883 (bfin_function_ok_for_sibcall): Likewise.
4884 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
4885 (must_reload_pic_reg_p): Likewise.
4886
4887 2019-10-31 Jakub Jelinek <jakub@redhat.com>
4888
4889 PR c++/90947
4890 * tree.h (type_initializer_zero_p): Remove.
4891 * tree.c (type_initializer_zero_p): Remove.
4892
4893 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
4894
4895 * doc/invoke.texi (-Wshadow, -Wshadow=global
4896 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
4897
4898 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4899
4900 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
4901 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
4902 and 'target exit data'.
4903
4904 2019-10-30 Martin Jambor <mjambor@suse.cz>
4905
4906 ipa/92278
4907 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
4908 availability comparison.
4909
4910 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4911
4912 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
4913 calls to __mspabi_mpy* functions.
4914 * config/msp430/msp430.md (mulhisi3): New define_expand.
4915 (umulhisi3): New define_expand.
4916 (*mulhisi3_inline): Use old mulhisi3 define_insn.
4917 (*umulhisi3_inline): Use old umulhisi3 define_insn.
4918
4919 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4920
4921 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
4922 (msp430_check_plus_not_high_mem): New.
4923 (msp430_op_not_in_high_mem): Use new functions to check if the operand
4924 might be in low memory.
4925 Indicate that a 16-bit absolute address is in lower memory.
4926
4927 2019-10-30 Martin Jambor <mjambor@suse.cz>
4928
4929 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
4930 ultimate_alias_target.
4931
4932 2019-10-30 Richard Biener <rguenther@suse.de>
4933
4934 PR tree-optimization/92275
4935 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
4936 Copy all loop-closed PHIs.
4937
4938 2019-10-30 Martin Liska <mliska@suse.cz>
4939
4940 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
4941 const_tree as function argument.
4942 (func_checker::compare_decl): Likewise.
4943 (func_checker::operand_equal_p): Likewise.
4944 (func_checker::compare_variable_decl): Likewise.
4945 (func_checker::parse_labels): Likewise.
4946 * ipa-icf-gimple.h: Likewise.
4947
4948 2019-10-30 Martin Liska <mliska@suse.cz>
4949
4950 * ipa-icf-gimple.c (func_checker::compatible_types_p):
4951 Do not compare alias sets. It's handled by operand_equal_p.
4952
4953 2019-10-30 Martin Liska <mliska@suse.cz>
4954
4955 * ipa-icf-gimple.c (func_checker::func_checker): Do not
4956 initialize m_compare_polymorphic.
4957 (func_checker::compare_decl): Do not compare polymorphic types.
4958 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
4959 * ipa-icf.c (sem_function::equals_private): Do not call
4960 compare_polymorphic_p.
4961
4962 2019-10-30 Martin Liska <mliska@suse.cz>
4963
4964 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
4965 compare_operand.
4966 (func_checker::compare_memory_operand): Remove.
4967 (func_checker::compare_cst_or_decl): Remove.
4968 (func_checker::operand_equal_valueize): Do not handle
4969 FIELD_DECL.
4970 (func_checker::compare_gimple_call): Call compare_operand.
4971 (func_checker::compare_gimple_assign): Likewise.
4972 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
4973 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
4974 * ipa-icf.h (icf_handled_component_p): Remove.
4975
4976 2019-10-30 Martin Liska <mliska@suse.cz>
4977
4978 * ipa-icf-gimple.c (func_checker::hash_operand): New.
4979 (func_checker::compare_cst_or_decl): Remove handling
4980 of FIELD_DECL.
4981 (func_checker::compare_operand): Transform to ...
4982 (func_checker::operand_equal_p): ... this.
4983 * ipa-icf-gimple.h (class func_checker): Add
4984 operand_equal_p and hash_operand.
4985 * ipa-icf.c (sem_function::equals_private): Fix
4986 pushing and popping of cfun.
4987
4988 2019-10-30 Martin Liska <mliska@suse.cz>
4989
4990 * fold-const.c (operand_equal_p): Move to ...
4991 (operand_compare::operand_equal_p): ... here.
4992 (operand_compare::verify_hash_value): New.
4993 (add_expr): Move to ...
4994 (operand_compare::hash_operand): ... here.
4995 * fold-const.h (operand_equal_p): Move to the class.
4996 (class operand_compare): New.
4997 * tree.c (add_expr): Remove.
4998
4999 2019-10-30 Martin Liska <mliska@suse.cz>
5000
5001 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
5002 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
5003
5004 2019-10-30 Martin Liska <mliska@suse.cz>
5005
5006 PR lto/91393
5007 PR lto/88220
5008 * cgraph.c (cgraph_node::get_create): Overwrite node->order
5009 from a first_clone in order to get proper LTO section
5010 in LTO stream.
5011 (cgraph_node::get_untransformed_body):
5012 Use lto_get_section_data where symtab_node::order
5013 must be provided.
5014 * cgraphclones.c (cgraph_node::find_replacement):
5015 Update also symbol order.
5016 * ipa-fnsummary.c (ipa_fn_summary_read):
5017 Use new function lto_get_summary_section_data.
5018 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
5019 * ipa-icf.c (sem_item_optimizer::read_summary):
5020 Likewise.
5021 * ipa-prop.c (ipa_prop_read_jump_functions):
5022 Likewise.
5023 (ipcp_read_transformation_summaries): Likewise.
5024 * ipa-sra.c (ipa_sra_read_summary): Likewise.
5025 * lto-cgraph.c (input_node): Add also order_base.
5026 (input_varpool_node): Likewise.
5027 (input_cgraph_1): Assign the order_base.
5028 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
5029 * lto-opts.c (lto_write_options): Pass new argument.
5030 * lto-section-in.c (lto_get_section_data): Add new argumente order.
5031 (lto_get_summary_section_data): New.
5032 (lto_get_raw_section_data): Add order argument.
5033 (lto_create_simple_input_block): Likewise.
5034 * lto-section-out.c (lto_destroy_simple_output_block):
5035 Likewise.
5036 * lto-streamer-in.c (lto_input_toplevel_asms):
5037 Use lto_get_summary_section_data.
5038 (lto_input_mode_table): Likewise.
5039 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
5040 (lto_output_toplevel_asms): Pass new argument.
5041 (copy_function_or_variable): Likewise.
5042 (produce_lto_section):Likewise.
5043 (produce_symtab): Likewise.
5044 (lto_write_mode_table): Likewise.
5045 (produce_asm_for_decls): Likewise.
5046 * lto-streamer.c (lto_get_section_name): Concat symbol name
5047 and symbol order.
5048 * lto-streamer.h (lto_get_section_data): Add order argument.
5049 (lto_get_summary_section_data): New.
5050 (lto_get_raw_section_data): Add order argument.
5051 (lto_get_section_name): Likewise.
5052 * varpool.c (varpool_node::get_constructor): Pass order argument.
5053
5054 2019-10-30 Jakub Jelinek <jakub@redhat.com>
5055
5056 PR tree-optimization/92262
5057 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
5058 ubase or cbase here.
5059 (remove_unused_ivs): Unshare comp before using it.
5060
5061 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
5062
5063 * ipa-prop.c (update_jump_functions_after_inlining):
5064 Watch for missing summaries.
5065
5066 2019-10-30 Richard Biener <rguenther@suse.de>
5067
5068 PR tree-optimization/65930
5069 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
5070 chains also allow a leading and trailing conversion.
5071 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
5072 intermediate reduction chains.
5073 (vect_analyze_slp_instance): Likewise. Build a SLP
5074 node for a trailing conversion manually.
5075
5076 2019-10-30 Martin Liska <mliska@suse.cz>
5077
5078 * cgraph.c (cgraph_node::local_info): Transform to ...
5079 (cgraph_node::local_info_node): ... this.
5080 (cgraph_node::dump): Remove cgraph_local_info and
5081 put its fields directly into cgraph_node.
5082 (cgraph_node::get_availability): Likewise.
5083 (cgraph_node::make_local): Likewise.
5084 (cgraph_node::verify_node): Likewise.
5085 * cgraph.h (struct GTY): Likewise.
5086 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
5087 (duplicate_thunk_for_node): Likewise.
5088 (cgraph_node::create_clone): Likewise.
5089 (cgraph_node::create_virtual_clone): Likewise.
5090 (cgraph_node::create_version_clone): Likewise.
5091 * cgraphunit.c (cgraph_node::reset): Likewise.
5092 (cgraph_node::finalize_function): Likewise.
5093 (cgraph_node::add_new_function): Likewise.
5094 (analyze_functions): Likewise.
5095 * combine.c (setup_incoming_promotions): Likewise.
5096 * config/i386/i386.c (ix86_function_regparm): Likewise.
5097 (ix86_function_sseregparm): Likewise.
5098 (init_cumulative_args): Likewise.
5099 * ipa-cp.c (determine_versionability): Likewise.
5100 (count_callers): Likewise.
5101 (set_single_call_flag): Likewise.
5102 (initialize_node_lattices): Likewise.
5103 (estimate_local_effects): Likewise.
5104 (create_specialized_node): Likewise.
5105 (identify_dead_nodes): Likewise.
5106 * ipa-fnsummary.c (compute_fn_summary): Likewise.
5107 (ipa_fn_summary_generate): Likewise.
5108 * ipa-hsa.c (check_warn_node_versionable): Likewise.
5109 (process_hsa_functions): Likewise.
5110 * ipa-icf.c (set_local): Likewise.
5111 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
5112 * ipa-inline.c (speculation_useful_p): Likewise.
5113 * ipa-profile.c (ipa_propagate_frequency): Likewise.
5114 (ipa_profile): Likewise.
5115 * ipa-split.c (split_function): Likewise.
5116 (execute_split_functions): Likewise.
5117 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
5118 (ipa_sra_ipa_function_checks): Likewise.
5119 * ipa-visibility.c (function_and_variable_visibility): Likewise.
5120 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5121 * lto-cgraph.c (lto_output_node): Likewise.
5122 (input_overwrite_node): Likewise.
5123 * multiple_target.c (expand_target_clones): Likewise.
5124 * omp-simd-clone.c (simd_clone_create): Likewise.
5125 * trans-mem.c (expand_call_tm): Likewise.
5126 (ipa_tm_mayenterirr_function): Likewise.
5127 (ipa_tm_diagnose_tm_safe): Likewise.
5128 (ipa_tm_diagnose_transaction): Likewise.
5129 (ipa_tm_create_version): Likewise.
5130 (ipa_tm_transform_calls_redirect): Likewise.
5131 (ipa_tm_execute): Likewise.
5132 * tree-inline.c (expand_call_inline): Likewise.
5133
5134 2019-10-29 Martin Liska <mliska@suse.cz>
5135
5136 * symbol-summary.h (function_summary): Pass memory location
5137 to underlaying hash_map (or vec).
5138 (V>::fast_function_summary): Likewise.
5139
5140 2019-10-29 Martin Liska <mliska@suse.cz>
5141
5142 * ggc.h (ggc_alloc_no_dtor): New function.
5143 * ipa-fnsummary.c (ipa_free_fn_summary): Call
5144 destructor and ggc_free.
5145 (ipa_free_size_summary): Call delete instead
5146 of release.
5147 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
5148 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
5149 (ipa_free_all_edge_args): Call destructor and ggc_free.
5150 (ipa_free_all_node_params): Likewise.
5151 (ipcp_free_transformation_sum): Likewise.
5152 * ipa-prop.h (ipa_check_create_node_params):
5153 Call new ggc_alloc_no_dtor.
5154 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
5155 (ipa_sra_analysis): Call destructor and ggc_free.
5156 Replace release with delete operator.
5157 * symbol-summary.h (release): Remove ..
5158 (V>::~fast_function_summary): and move logic here.
5159 Likewise for other classes.
5160
5161 2019-10-29 Richard Biener <rguenther@suse.de>
5162
5163 PR tree-optimization/92260
5164 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
5165 lane-reducing ops.
5166
5167 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
5168
5169 PR tree-optimization/88915
5170 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
5171 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
5172 and make the valueize function pointer also take a void pointer.
5173 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
5174 around vn_valueize, to call it without a context.
5175 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
5176 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
5177 (~_loop_vec_info): Release epilogue_vinfos.
5178 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
5179 number of iterations of epilogue.
5180 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
5181 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
5182 versioning threshold needed for main loop.
5183 (vect_analyze_loop): Likewise.
5184 (find_in_mapping): New helper function.
5185 (update_epilogue_loop_vinfo): New function.
5186 (vect_transform_loop): When vectorizing epilogues re-use analysis done
5187 on main loop and call update_epilogue_loop_vinfo to update it.
5188 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
5189 stmts on loop preheader edge.
5190 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
5191 we decided to vectorize epilogues. Update epilogues NITERS and
5192 construct ADVANCE to update epilogues data references where needed.
5193 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
5194 (vect_do_peeling, vect_update_inits_of_drs,
5195 determine_peel_for_niter, vect_analyze_loop): Add or update
5196 declarations.
5197 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
5198 created loop_vec_info's for epilogues when available. Otherwise analyse
5199 epilogue separately.
5200
5201 2019-10-29 Richard Biener <rguenther@suse.de>
5202
5203 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
5204 example.
5205
5206 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5207
5208 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
5209 index for the COND_EXPR from stmt_info rather than reduc_info.
5210
5211 2019-10-29 Richard Biener <rguenther@suse.de>
5212
5213 PR tree-optimization/65930
5214 * tree-vect-loop.c (check_reduction_path): Relax single-use
5215 check allowing out-of-loop uses.
5216 (vect_is_simple_reduction): SLP reduction chains cannot have
5217 intermediate stmts used outside of the loop.
5218 (vect_create_epilog_for_reduction): The adjustment might need
5219 to be converted.
5220 (vectorizable_reduction): Annotate live stmts of the reduction
5221 chain with STMT_VINFO_REDUC_DEF.
5222 * tree-vect-stms.c (process_use): Remove no longer true asserts.
5223
5224 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5225
5226 * calls.c (pass_by_reference): Leave the target to decide whether
5227 POLY_INT_CST-sized arguments should be passed by value or reference,
5228 rather than forcing them to be passed by reference.
5229 (must_pass_in_stack_var_size): Likewise.
5230 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
5231 V31_REGNUM to P15_REGNUM.
5232 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
5233 Take an extra "silent_p" parameter, defaulting to false.
5234 (aarch64_sve::svbool_type_p): Declare.
5235 (aarch64_sve::nvectors_if_data_type): Likewise.
5236 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
5237 (aarch64_frame::reg_offset): Turn into poly_int64s.
5238 (aarch64_frame::save_regs_size): Likewise.
5239 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
5240 (aarch64_frame::sve_callee_adjust): Likewise.
5241 (aarch64_frame::spare_reg_reg): Likewise.
5242 (ARM_PCS_SVE): New arm_pcs value.
5243 (CUMULATIVE_ARGS::aapcs_nprn): New field.
5244 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
5245 (CUMULATIVE_ARGS::silent_p): Likewise.
5246 (BITS_PER_SVE_PRED): New macro.
5247 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
5248 function. Reject aarch64_vector_pcs attributes on SVE functions.
5249 (aarch64_attribute_table): Use the above handler.
5250 (aarch64_sve_abi): New function.
5251 (aarch64_sve_argument_p): Likewise.
5252 (aarch64_returns_value_in_sve_regs_p): Likewise.
5253 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
5254 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
5255 descriptor for them.
5256 (aarch64_simd_decl_p): Delete.
5257 (aarch64_emit_cfi_for_reg_p): New function.
5258 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
5259 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
5260 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
5261 as partly clobbered for the SVE PCS.
5262 (aarch64_function_ok_for_sibcall): Check whether the two functions
5263 use the same ABI, rather than checking specifically for whether
5264 they're aarch64_vector_pcs functions.
5265 (aarch64_pass_by_reference): Raise an error for attempts to pass
5266 SVE arguments when SVE is disabled. Pass SVE arguments by reference
5267 if there are not enough free registers left, or if the argument is
5268 variadic.
5269 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
5270 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
5271 tuples in memory.
5272 (aarch64_layout_arg): Take a function_arg_info rather than
5273 individual properties. Handle SVE predicates, vectors and tuples.
5274 Raise an error if they are passed to unprototyped functions.
5275 (aarch64_function_arg): If the silent_p flag is set, suppress the
5276 usual error about using float registers without TARGET_FLOAT.
5277 (aarch64_init_cumulative_args): Take a silent_p parameter and store
5278 it in the cumulative_args structure. Initialize aapcs_nprn and
5279 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
5280 error about using float registers without TARGET_FLOAT.
5281 If the silent_p flag is not set, also raise an error about
5282 using SVE functions when SVE is disabled.
5283 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
5284 and call it for SVE functions too. Update aapcs_nprn similarly
5285 to the other register counts.
5286 (aarch64_layout_frame): If a big-endian function needs to save
5287 and restore Z8-Z15, search for a spare predicate that it can use.
5288 Store SVE predicates at the bottom of the register save area,
5289 followed by SVE vectors, then followed by the normal slots.
5290 Keep pointing the hard frame pointer at the base of the normal slots,
5291 above the SVE vectors. Update the various frame creation and
5292 tear-down strategies for the new layout, initializing the new
5293 sve_callee_adjust field. Add an additional layout for frames
5294 whose saved registers are all SVE registers.
5295 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
5296 (aarch64_return_address_signing_enabled): Likewise.
5297 (aarch64_push_regs, aarch64_pop_regs): Update calls to
5298 aarch64_reg_save_mode.
5299 (aarch64_adjust_sve_callee_save_base): New function.
5300 (aarch64_add_cfa_expression): Move earlier in file. Take the
5301 saved register as an rtx rather than a register number and use
5302 its mode for the MEM slot.
5303 (aarch64_save_callee_saves): Remove the mode argument and instead
5304 use aarch64_reg_save_mode to get the mode of each save slot.
5305 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
5306 offsets. Allow GP offsets to be saved at a VL-based offset from
5307 the stack, handling this case using the frame pointer if available
5308 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
5309 big-endian SVE functions; use normal moves for other SVE saves.
5310 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
5311 returns true. Add explicit CFA notes when not storing via the
5312 stack pointer. Do not try to pair SVE saves.
5313 (aarch64_restore_callee_saves): Cope with poly_int64 register
5314 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
5315 use normal moves for other SVE restores. Only add CFA restore notes
5316 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
5317 SVE restores.
5318 (aarch64_get_separate_components): Always keep the first SVE save
5319 in the prologue if we need to use it as a stack probe. Don't allow
5320 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
5321 Likewise the spare predicate register that they need. Update the
5322 offset calculation to account for the SVE save area. Use the
5323 appropriate range check for SVE LDR and STR instructions.
5324 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
5325 (aarch64_process_components): Likewise. Update the offset
5326 calculation to account for the SVE save area. Only mark the
5327 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
5328 Do not try to pair SVE saves.
5329 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
5330 reg_offsets. When handling the final allocation, expect the
5331 first SVE register save to be part of the initial allocation
5332 and for it to act as a probe at SP. Account for the SVE callee
5333 save area in the dump information.
5334 (aarch64_expand_prologue): Update the frame diagram. Fold the
5335 SVE callee allocation into the initial allocation if stack clash
5336 protection is enabled. Use new variables to track the offset
5337 of the frame chain (and hard frame pointer) from the current
5338 stack pointer, and likewise the offset of the bottom of the
5339 register save area. Update calls to aarch64_save_callee_saves
5340 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
5341 saving the FP&SIMD registers. Save the predicate registers.
5342 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
5343 into account when setting the stack pointer from the frame pointer,
5344 and when deciding whether we can inherit the initial adjustment
5345 amount from the prologue. Restore the predicate registers after
5346 the vector registers, then apply sve_callee_adjust, then restore
5347 the general registers.
5348 (aarch64_secondary_reload): Don't use secondary SVE reloads
5349 for VNx16BImode.
5350 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
5351 (aarch64_short_vector_p): Return false for SVE types.
5352 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
5353 at the start of the function. Return false for SVE types.
5354 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
5355 functions too.
5356 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
5357 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
5358 to big-endian targets for bytewise moves.
5359 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
5360
5361 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5362 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5363 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5364
5365 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
5366 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
5367 aarch64-sve-builtins-base.o to extra_objs. Add
5368 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
5369 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
5370 (aarch64-sve-builtins-shapes.o): Likewise.
5371 (aarch64-sve-builtins-base.o): New rules.
5372 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
5373 (aarch64_resolve_overloaded_builtin): Likewise.
5374 (aarch64_check_builtin_call): Likewise.
5375 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
5376 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
5377 pragma.
5378 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
5379 (aarch64_svprfop): New enum.
5380 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
5381 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
5382 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
5383 (aarch64_output_sve_cnt_pat_immediate): Likewise.
5384 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
5385 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
5386 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
5387 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
5388 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
5389 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
5390 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
5391 (aarch64_sve::mangle_builtin_type): Likewise.
5392 (aarch64_sve::resolve_overloaded_builtin): Likewise.
5393 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
5394 (aarch64_sve::expand_builtin): Likewise.
5395 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
5396 (aarch64_sve_int_mode): Likewise.
5397 (aarch64_ptrue_all_mode): New function.
5398 (aarch64_convert_sve_data_to_pred): Make public.
5399 (svprfop_token): New function.
5400 (aarch64_output_sve_prefetch): Likewise.
5401 (aarch64_fold_sve_cnt_pat): Likewise.
5402 (aarch64_output_sve_cnt_pat_immediate): Likewise.
5403 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
5404 instead of gen_while_ult.
5405 (aarch64_replace_reg_mode): Make public.
5406 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
5407 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
5408 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
5409 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
5410 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
5411 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
5412 (aarch64_sve_ptrue_svpattern_p): Likewise.
5413 (aarch64_sve_pred_valid_immediate): Check
5414 aarch64_sve_ptrue_svpattern_p.
5415 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
5416 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
5417 functions.
5418 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
5419 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
5420 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
5421 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
5422 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
5423 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
5424 New unspecs.
5425 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
5426 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
5427 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
5428 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
5429 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
5430 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
5431 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
5432 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
5433 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
5434 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
5435 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
5436 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
5437 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
5438 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
5439 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
5440 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
5441 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
5442 (Vesize): Handle partial vector modes.
5443 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
5444 mode attributes.
5445 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
5446 iterators.
5447 (s, paired_extend, inc_dec): New code attributes.
5448 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
5449 (SVE_INT_UNARY): Add UNSPEC_RBIT.
5450 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
5451 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
5452 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
5453 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
5454 UNSPEC_COND_FMULX.
5455 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
5456 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
5457 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
5458 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
5459 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
5460 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
5461 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
5462 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
5463 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
5464 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
5465 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
5466 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
5467 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
5468 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
5469 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
5470 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
5471 UNSPEC_COND_FSCALE.
5472 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
5473 (binqops_op, binqops_op_rev, last_op): New int attributes.
5474 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
5475 (fn, ab): New int attributes.
5476 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
5477 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
5478 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
5479 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
5480 UNSPEC_RBIT.
5481 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
5482 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
5483 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
5484 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
5485 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
5486 UNSPEC_COND_FMULX.
5487 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
5488 (brk_reg_con, brk_reg_opno): New int attributes.
5489 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
5490 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
5491 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
5492 UNSPEC_COND_FMIN.
5493 (max_elem_bits): New int attribute.
5494 (min_elem_bits): Handle UNSPEC_RBIT.
5495 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
5496 TRUNCATE as well as SUBREG.
5497 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
5498 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
5499 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
5500 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
5501 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
5502 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
5503 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
5504 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
5505 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
5506 (aarch64_gather_scale_operand_h): New predicates.
5507 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
5508 (vgd, vgh, vgw, vsQ, vsS): New constraints.
5509 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
5510 (*aarch64_sve_reinterpret<mode>): Allow any source register
5511 instead of requiring an exact match.
5512 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
5513 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
5514 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
5515 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
5516 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
5517 (aarch64_update_ffrt): New patterns.
5518 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
5519 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5520 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5521 (@aarch64_ld<fn>f1<mode>): New patterns.
5522 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
5523 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5524 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5525 (@aarch64_ldnt1<mode>): New patterns.
5526 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
5527 the scalar part of the address.
5528 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
5529 scalar part of the addresse and add an alternative for handling
5530 nonzero offsets.
5531 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
5532 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
5533 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5534 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5535 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
5536 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
5537 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
5538 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
5539 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5540 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5541 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
5542 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
5543 (@aarch64_sve_prefetch<mode>): New patterns.
5544 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
5545 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
5546 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
5547 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
5548 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
5549 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
5550 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
5551 (@aarch64_stnt1<mode>): New patterns.
5552 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
5553 the scalar part of the address.
5554 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
5555 the scalar part of the addresse and add an alternative for handling
5556 nonzero offsets.
5557 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
5558 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
5559 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
5560 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
5561 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
5562 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
5563 New patterns.
5564 (vec_duplicate<mode>): Use QI as the mode of the input operand.
5565 (extract_last_<mode>): Generalize to...
5566 (@extract_<LAST:last_op>_<mode>): ...this.
5567 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
5568 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
5569 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
5570 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
5571 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
5572 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
5573 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
5574 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
5575 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
5576 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
5577 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
5578 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
5579 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
5580 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
5581 (*aarch64_adr_uxtw_unspec): Likewise.
5582 (*aarch64_adr_uxtw): Rename to...
5583 (*aarch64_adr_uxtw_and): ...this.
5584 (@aarch64_adr<mode>_shift): New expander.
5585 (*aarch64_adr_shift_sxtw): New pattern.
5586 (aarch64_<su>abd<mode>_3): Rename to...
5587 (@aarch64_pred_<su>abd<mode>): ...this.
5588 (<su>abd<mode>_3): Update accordingly.
5589 (@aarch64_cond_<su>abd<mode>): New expander.
5590 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
5591 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
5592 (*<su>mul<mode>3_highpart): Rename to...
5593 (@aarch64_pred_<optab><mode>): ...this.
5594 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
5595 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
5596 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
5597 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
5598 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
5599 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
5600 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
5601 (*v<ASHIFT:optab><mode>3): Rename to...
5602 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
5603 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
5604 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
5605 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
5606 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
5607 (@cond_asrd<mode>): New expander.
5608 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
5609 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
5610 (*sdiv_pow2<mode>3): Delete.
5611 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
5612 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
5613 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
5614 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
5615 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
5616 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
5617 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
5618 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
5619 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
5620 (*add<SVE_F:mode>3): Rename to...
5621 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
5622 for SVE_STRICT_GP.
5623 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
5624 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
5625 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
5626 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
5627 (*sub<SVE_F:mode>3): Rename to...
5628 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
5629 for SVE_STRICT_GP.
5630 (@aarch64_pred_abd<SVE_F:mode>): New expander.
5631 (*fabd<SVE_F:mode>3): Rename to...
5632 (*aarch64_pred_abd<SVE_F:mode>): ...this.
5633 (@aarch64_cond_abd<SVE_F:mode>): New expander.
5634 (*mul<SVE_F:mode>3): Rename to...
5635 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
5636 for SVE_STRICT_GP.
5637 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
5638 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
5639 to...
5640 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
5641 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
5642 (*<nlogical><PRED_ALL:mode>3): Rename to...
5643 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
5644 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
5645 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
5646 (*<logical_nn><PRED_ALL:mode>3): Rename to...
5647 (aarch64_pred_<logical_nn><mode>_z): ...this.
5648 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
5649 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
5650 (*fma<SVE_I:mode>4): Rename to...
5651 (@aarch64_pred_fma<SVE_I:mode>): ...this.
5652 (*fnma<SVE_I:mode>4): Rename to...
5653 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
5654 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
5655 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
5656 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
5657 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
5658 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
5659 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
5660 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
5661 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
5662 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
5663 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
5664 (@aarch64_sve_tmad<mode>): Likewise.
5665 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
5666 (*aarch64_sel_dup<mode>): Rename to...
5667 (@aarch64_sel_dup<mode>): ...this.
5668 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
5669 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
5670 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
5671 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
5672 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
5673 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
5674 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
5675 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
5676 (*fcm<cmp_op><mode>): Rename to...
5677 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
5678 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
5679 (*fcmuo<mode>): Rename to...
5680 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
5681 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
5682 (@aarch64_pred_fac<cmp_op><mode>): New expander.
5683 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
5684 (fold_extract_last_<mode>): Generalize to...
5685 (@fold_extract_<last_op>_<mode>): ...this.
5686 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
5687 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
5688 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
5689 DImode result explicit.
5690 (reduc_plus_scal_<mode>): Update accordingly.
5691 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
5692 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
5693 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
5694 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
5695 (*aarch64_sve_tbl<mode>): Rename to...
5696 (@aarch64_sve_tbl<mode>): ...this.
5697 (@aarch64_sve_compact<mode>): New pattern.
5698 (*aarch64_sve_dup_lane<mode>): Rename to...
5699 (@aarch64_sve_dup_lane<mode>): ...this.
5700 (@aarch64_sve_dupq_lane<mode>): New pattern.
5701 (@aarch64_sve_splice<mode>): Likewise.
5702 (aarch64_sve_<perm_insn><mode>): Rename to...
5703 (@aarch64_sve_<perm_insn><mode>): ...this.
5704 (*aarch64_sve_ext<mode>): Rename to...
5705 (@aarch64_sve_ext<mode>): ...this.
5706 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
5707 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
5708 to...
5709 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
5710 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
5711 Rename to...
5712 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
5713 ...this.
5714 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
5715 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
5716 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
5717 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
5718 to...
5719 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
5720 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
5721 a "@" marker.
5722 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
5723 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
5724 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
5725 pattern.
5726 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
5727 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
5728 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
5729 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
5730 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
5731 "@" marker.
5732 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
5733 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
5734 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
5735 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
5736 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
5737 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
5738 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
5739 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
5740 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
5741 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
5742 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
5743 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
5744 (aarch64_sve_cnt_pat): Likewise.
5745 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
5746 (*aarch64_sve_incsi_pat): Likewise.
5747 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
5748 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
5749 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
5750 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
5751 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
5752 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
5753 (*aarch64_sve_decsi_pat): Likewise.
5754 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
5755 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
5756 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
5757 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
5758 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
5759 (@aarch64_pred_cntp<mode>): Likewise.
5760 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
5761 New expander.
5762 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
5763 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
5764 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5765 New expander.
5766 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5767 New pattern.
5768 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
5769 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
5770 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
5771 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
5772 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
5773 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
5774 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
5775 New expander.
5776 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
5777 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
5778 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5779 New expander.
5780 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5781 New pattern.
5782 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
5783 expander.
5784 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
5785 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
5786 expander.
5787 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
5788 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
5789 expander.
5790 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
5791 * config/aarch64/arm_sve.h: New file.
5792 * config/aarch64/aarch64-sve-builtins.h: Likewise.
5793 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
5794 * config/aarch64/aarch64-sve-builtins.def: Likewise.
5795 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
5796 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
5797 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
5798 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
5799 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
5800 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
5801
5802 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5803
5804 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
5805 New pattern.
5806 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
5807 SVE modes.
5808
5809 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5810
5811 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
5812 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
5813 FFRT_REGNUM + 1.
5814 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
5815 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
5816 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
5817 (aarch64_hard_regno_nregs): Handle the new register classes.
5818 (aarch64_hard_regno_mode_ok): Likewise.
5819 (aarch64_regno_regclass): Likewise.
5820 (aarch64_class_max_nregs): Likewise.
5821 (aarch64_register_move_cost): Likewise.
5822 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
5823 as general register_operands.
5824
5825 2019-10-29 Martin Liska <mliska@suse.cz>
5826
5827 * ggc-common.c: One can't subtract unsigned types
5828 in compare function.
5829
5830 2019-10-29 Martin Liska <mliska@suse.cz>
5831
5832 * cgraphunit.c (symbol_table::compile): Pass
5833 title as dump_memory_report argument.
5834 * toplev.c (dump_memory_report): New argument.
5835 (finalize): Pass new argument.
5836 * toplev.h (dump_memory_report): Add argument.
5837
5838 2019-10-29 Martin Liska <mliska@suse.cz>
5839
5840 * ggc-common.c: Move Leak to the first column.
5841
5842 2019-10-29 Martin Liska <mliska@suse.cz>
5843
5844 * cgraphunit.c (symbol_table::compile): Remove argument
5845 for dump_memory_report.
5846 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
5847 (compare_final): Remove in order to make report
5848 better readable.
5849 * ggc.h (dump_ggc_loc_statistics): Remove argument.
5850 * mem-stats.h (mem_alloc_description::get_list):
5851 Do not pass cmp.
5852 (mem_alloc_description::dump): Likewise here.
5853 * toplev.c (dump_memory_report): Remove final
5854 argument.
5855 (finalize): Likewise.
5856 * toplev.h (dump_memory_report): Remove argument.
5857
5858 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5859
5860 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
5861 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
5862 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
5863 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
5864 accept "const".
5865
5866 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5867
5868 * coretypes.h (string_int_pair): New typedef.
5869 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
5870 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
5871 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
5872
5873 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5874
5875 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
5876 (simulate_builtin_function_decl): Declare.
5877 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
5878 (LANG_HOOKS_INITIALIZER): Include it.
5879 * langhooks.c (add_builtin_function_common): Rename to...
5880 (build_builtin_function): ...this. Add a location parameter and use
5881 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
5882 the decl instead.
5883 (add_builtin_function): Update accordingly, passing the returned
5884 decl to the lang hook.
5885 (add_builtin_function_ext_scope): Likewise
5886 (simulate_builtin_function_decl): New function.
5887
5888 2019-10-29 Jakub Jelinek <jakub@redhat.com>
5889
5890 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
5891 example, use actual names of supported offload targets.
5892
5893 PR target/92258
5894 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
5895
5896 2019-10-28 Martin Sebor <msebor@redhat.com>
5897
5898 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
5899 (handle_store): Pass argument to get_addr_stridx.
5900
5901 2019-10-28 Martin Sebor <msebor@redhat.com>
5902
5903 PR tree-optimization/92226
5904 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
5905 the offset is in the open range outlined by SI's length.
5906
5907 2019-10-28 Martin Sebor <msebor@redhat.com>
5908
5909 PR c/66970
5910 * doc/cpp.texi (__has_builtin): Document.
5911 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
5912
5913 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5914
5915 PR target/82981
5916 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
5917 doubleword and low doubleword result of multiplication on
5918 MIPS64R6.
5919
5920 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
5921 pure qualifier to the built-in.
5922 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
5923 built-ins.
5924 (struct mips_builtin_description): Add is_pure flag.
5925 (mips_init_builtins): Mark built-in as pure if the flag in the
5926 corresponding mips_builtin_description struct is set.
5927
5928 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
5929 alternative which covers the floating-point input value. Also
5930 forbid the split of insert.d pattern for floating-point values.
5931
5932 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
5933
5934 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
5935 * config/riscv/riscv-sr.c: New file.
5936 * config/riscv/riscv.c (riscv_reorg): New function.
5937 (TARGET_MACHINE_DEPENDENT_REORG): Define.
5938 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
5939 (riscv_remove_unneeded_save_restore_calls): Declare.
5940 * config/riscv/t-riscv (riscv-sr.o): New build rule.
5941
5942 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5943
5944 PR tree-optimization/92163
5945 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
5946 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
5947 before calling bitmap_set_bit.
5948 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
5949 delete_dead_or_redundant_assignment.
5950 (dse_dom_walker::dse_optimize_stmt): Likewise.
5951 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
5952
5953 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5954
5955 PR middle-end/91272
5956 * tree-vect-stmts.c (vectorizable_condition): Support
5957 EXTRACT_LAST_REDUCTION with fully-masked loops.
5958
5959 2019-10-28 Richard Biener <rguenther@suse.de>
5960
5961 PR tree-optimization/92252
5962 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
5963 STMT_VINFO_REDUC_IDX when swapping operands.
5964
5965 2019-10-28 Richard Biener <rguenther@suse.de>
5966
5967 PR tree-optimization/92241
5968 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
5969 we failed to update the reduction index do not use the pattern
5970 stmts for the reduction chain.
5971 (vectorizable_reduction): When the reduction chain is corrupt,
5972 fail.
5973 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
5974 fail to update the reduction chain.
5975
5976 2019-10-28 Richard Biener <rguenther@suse.de>
5977
5978 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5979 STMT_VINFO_REDUC_IDX from the actual stmt.
5980 (vect_transform_reduction): Likewise.
5981 (vectorizable_reduction): Compute the reduction chain length,
5982 do not recompute the reduction operand index. Remove no longer
5983 necessary restriction for condition reduction chains.
5984
5985 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
5986
5987 PR target/92225
5988 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
5989 condition for V2DImode.
5990
5991 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
5992
5993 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
5994 Remove %k operand modifier.
5995 (*vec_extractv2df_1_sse): Remove %q operand modifier.
5996
5997 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
5998
5999 PR rtl-optimization/92007
6000 * cfgcleanup.c (thread_jump): Add an assertion that we don't
6001 call it after reload if hot/cold partitioning has been done.
6002 (class pass_postreload_jump): Rename to
6003 pass_jump_after_combine.
6004 (make_pass_postreload_jump): Rename to
6005 make_pass_jump_after_combine.
6006 * passes.def(pass_postreload_jump): Move before reload, rename
6007 to pass_jump_after_combine.
6008 * tree-pass.h (make_pass_postreload_jump): Rename to
6009 make_pass_jump_after_combine.
6010
6011 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
6012
6013 PR ipa/92242
6014 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
6015 for missing EDGE_REF
6016 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
6017
6018 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
6019
6020 PR tree-optimization/88760
6021 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
6022 Enable -funroll-loops for -O2 and above.
6023 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
6024 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
6025 do not turn on web and rngreg implicitly, if the unroller is not
6026 explicitly enabled.
6027
6028 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6029
6030 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
6031 jump functions.
6032
6033 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
6034
6035 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
6036 * cgraph.h (cgraph_node::rtl_info): Likewise.
6037
6038 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6039
6040 * ipa-cp.c (propagate_constants_across_call): If args are not available
6041 just drop everything to varying.
6042 (find_aggregate_values_for_callers_subset): Watch for missing
6043 edge summary.
6044 (find_more_scalar_values_for_callers_subs): Likewise.
6045 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
6046 update_jump_functions_after_inlining, propagate_controlled_uses):
6047 Watch for missing summaries.
6048 (ipa_propagate_indirect_call_infos): Remove summary after propagation
6049 is finished.
6050 (ipa_write_node_info): Watch for missing summaries.
6051 (ipa_read_edge_info): Create new ref.
6052 (ipa_edge_args_sum_t): Add remove.
6053 (IPA_EDGE_REF_GET_CREATE): New macro.
6054 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
6055 edge summary.
6056 (remap_edge_change_prob): Likewise.
6057
6058 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6059
6060 * ipa-inline-transform.c (inline_call): update function summaries
6061 after expanidng thunk.
6062
6063 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6064
6065 * ipa-icf.c (sem_function::merge): Update function summaries.
6066 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
6067
6068 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
6069
6070 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
6071 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
6072 operand already has scalar mode.
6073 (iptr): Remove SF/DF.
6074
6075 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
6076
6077 PR target/91289
6078 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
6079 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
6080 this.
6081
6082 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
6083
6084 * config/i386/sse.md
6085 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
6086 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
6087 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
6088 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
6089 <sse>_vmmaskcmp<mode>3):
6090 Change predicates from vector_operand to nonimmediate_operand,
6091 constraints xBm to xm, since scalar operations don't need
6092 memory address alignment.
6093 (avx512f_vmcmp<mode>3<round_saeonly_name>,
6094 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
6095 round_saeonly_nimm_predicate with
6096 round_saeonly_nimm_scalar_predicate.
6097 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
6098 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
6099 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
6100 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
6101 avx512f_vmfmadd_<mode>_mask3<round_name>,
6102 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
6103 *avx512f_vmfmsub_<mode>_mask<round_name>,
6104 avx512f_vmfmsub_<mode>_mask3<round_name>,
6105 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
6106 *avx512f_vmfnmadd_<mode>_mask<round_name>,
6107 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
6108 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
6109 *avx512f_vmfnmsub_<mode>_mask<round_name>,
6110 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
6111 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
6112 cvtusi2<ssescalarmodesuffix>32<round_name>,
6113 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
6114 round_nimm_predicate with round_nimm_scalr_predicate.
6115 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
6116 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
6117 avx512er_vmrcp28<mode><round_saeonly_name>,
6118 avx512er_vmrsqrt28<mode><round_saeonly_name>,
6119 ): Replace round_saeonly_nimm_predicate with
6120 round_saeonly_nimm_scalar_predicate.
6121 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
6122 vector_operand with nonimmediate_operand.
6123 * config/i386/subst.md (round_scalar_nimm_predicate,
6124 round_saeonly_scalar_nimm_predicate): Replace
6125 vector_operand with nonimmediate_operand.
6126
6127 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
6128
6129 PR target/89071
6130 * config/i386/i386.md (*rcpsf2_sse): Add
6131 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
6132 (*rsqrtsf2_sse): Ditto.
6133 (*sqrt<mode>2_sse): Ditto.
6134 (sse4_1_round<mode>2): separate constraint vm, add
6135 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
6136 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
6137 by pass rpad.
6138 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
6139 Ditto.
6140 (*sse_vmrsqrtv4sf2): Ditto.
6141 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
6142 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
6143 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
6144 <iptr> pointer size modifier since vround support memory operand.
6145
6146 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
6147
6148 PR target/85969
6149 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
6150 static function.
6151
6152 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
6153 Tobias Burnus <tobias@codesourcery.com>
6154
6155 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
6156 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
6157 common block decls.
6158
6159 2019-10-25 Richard Biener <rguenther@suse.de>
6160
6161 PR tree-optimization/92222
6162 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
6163 (_slp_oprnd_info::second_pattern): Likewise.
6164 (_slp_oprnd_info::any_pattern): New.
6165 (vect_create_oprnd_info): Adjust.
6166 (vect_get_and_check_slp_defs): Compute whether any stmt is
6167 in a pattern.
6168 (vect_build_slp_tree_2): Avoid building up a node from scalars
6169 if any of the operand defs, not just the first, is in a pattern.
6170
6171 2019-10-25 Richard Biener <rguenther@suse.de>
6172
6173 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
6174 swapping if we actually have to modify the IL on a shared stmt.
6175 (vect_build_slp_tree_2): Never fail swapping on shared stmts
6176 because we no longer modify the IL.
6177
6178 2019-10-25 Martin Liska <mliska@suse.cz>
6179
6180 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
6181
6182 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
6183
6184 * tree-vect-loop.c (vectorizable_reduction): Restrict the
6185 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
6186 handled by vect_transform_reduction. Allow fully-masked loops
6187 to be used with reduction chains.
6188 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
6189 operations in fully-masked loops.
6190 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
6191 operations in fully-masked loops.
6192
6193 2019-10-25 Richard Biener <rguenther@suse.de>
6194
6195 * tree-vect-loop.c (vectorizable_reduction): Verify
6196 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
6197 correctly.
6198 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
6199 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
6200 stmts.
6201
6202 2019-10-24 Jakub Jelinek <jakub@redhat.com>
6203
6204 * gimplify.h (omp_construct_selector_matches): Declare.
6205 * gimplify.c (struct gimplify_omp_ctx): Add code member.
6206 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
6207 called function if needed for flag_openmp.
6208 (gimplify_scan_omp_clauses): Set ctx->code.
6209 (omp_construct_selector_matches): New function.
6210 * omp-general.h (omp_constructor_traits_to_codes,
6211 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
6212 * omp-general.c (omp_constructor_traits_to_codes,
6213 omp_context_selector_matches, omp_resolve_declare_variant): New
6214 functions.
6215
6216 * config/arc/arc.c (hwloop_optimize): Add missing space in string
6217 literal.
6218 * config/rx/rx.c (rx_print_operand): Likewise.
6219 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6220 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
6221 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
6222 Likewise.
6223 * genemit.c (emit_c_code): Likewise.
6224 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
6225
6226 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6227
6228 * symbols-summary.h (fast_function_summary<T *, V>::release,
6229 fast_call_summary<T *, V>::release): Free m_vector.
6230
6231 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6232
6233 * cgraphunit.c (symbol_table::process_new_functions): Call
6234 ipa_free_size_summary.
6235 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
6236 (devirtualization_time_bonus): Update.
6237 (ipcp_propagate_stage): Update.
6238 * ipa-fnsummary.c (ipa_size_summaries): New.
6239 (ipa_fn_summary_alloc): Alloc size summary.
6240 (dump_ipa_call_summary): Update.
6241 (ipa_dump_fn_summary): Update.
6242 (analyze_function_body): Update.
6243 (compute_fn_summary): Likewise.
6244 (ipa_get_stack_frame_offset): New function.
6245 (inline_update_callee_summaries): Do not update frame offsets.
6246 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
6247 remove call and function summary.
6248 (ipa_update_overall_fn_summary): Update.
6249 (inline_read_section): Update.
6250 (ipa_fn_summary_write): Update.
6251 (ipa_free_fn_summary): Do not remove summaries.
6252 (ipa_free_size_summary): New.
6253 (release summary pass): Also run at WPA.
6254 * ipa-fnsummary.h (ipa_size_summary): Declare.
6255 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
6256 estimated_self_stack_size.
6257 (ipa_size_summary_t): New type.
6258 (ipa_size_summaries): Declare.
6259 (ipa_free_size_summary): Declare.
6260 (ipa_get_stack_frame_offset): Declare.
6261 * ipa-icf.c (sem_function::merge): Update.
6262 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
6263 (estimate_growth): Update.
6264 (growth_likely_positive): Update.
6265 (clone_inlined_nodes): Update.
6266 (inline_call): Update.
6267 * ipa-inline.c (caller_growth_limits): Update.
6268 (edge_badness): Update.
6269 (recursive_inlining): Update.
6270 (inline_small_functions): Update.
6271 (inline_to_all_callers_1): Update.
6272 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
6273
6274 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
6275
6276 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
6277 (uavg<mode>3_ceil): ... This.
6278 (altivec_vavgs<VI_char>): Rename to...
6279 (avg<mode>3_ceil): ... This.
6280 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
6281 VAVGUW, VAVGSW): Adjust.
6282
6283 2019-10-24 Nathan Sidwell <nathan@acm.org>
6284
6285 * dumpfile.c (dump_begin): Reorder decls to use RAII.
6286
6287 2019-10-24 Martin Liska <mliska@suse.cz>
6288
6289 * symbol-summary.h (gt_pch_nx): Mark all functions
6290 with gcc_unreachable as we do not expect to be called.
6291
6292 2019-10-24 Richard Biener <rguenther@suse.de>
6293
6294 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
6295 chains try harder with operand swapping and instead of
6296 putting a shifted chain into the reduction operands put
6297 a repetition of the final reduction op there as if we'd
6298 reassociate the expression.
6299
6300 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6301
6302 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
6303 statics_not_read and statics_not_written to statics_read and
6304 statics_written respectively.
6305 (no_module_statics): New static var.
6306 (ipa_reference_get_not_read_global): Rename to ...
6307 (ipa_reference_get_read_global): ... this.
6308 (ipa_reference_get_not_written_global): Rename to ...
6309 (ipa_reference_get_written_global): ... this.
6310 (dump_static_vars_set_to_file): Dump no_module_statics.
6311 (copy_static_var_set): Add for propagation parameter.
6312 (ipa_init): Initialize no_module_statics.
6313 (ipa_ref_opt_summary_t::duplicate): Update.
6314 (ipa_ref_opt_summary_t::remove): Update.
6315 (propagate): Update.
6316 (write_node_summary_p): Look correctly for bitmap differences.
6317 (ipa_reference_write_optimization_summary): Update.
6318 (ipa_reference_read_optimization_summary): Update.
6319 * ipa-reference.h
6320 (ipa_reference_get_not_read_global): Rename to ...
6321 (ipa_reference_get_read_global): ... this.
6322 (ipa_reference_get_not_written_global): Rename to ...
6323 (ipa_reference_get_written_global): ... this.
6324 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
6325 (call_may_clobber_ref_p_1): Update.
6326
6327 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6328
6329 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
6330 and add comment.
6331 (msp430_hard_regno_nregs_with_padding): Remove.
6332
6333 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6334
6335 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
6336 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
6337 shift amount is between 1 and 4.
6338 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
6339 is between 1 and 4.
6340
6341 2019-10-24 Richard Biener <rguenther@suse.de>
6342
6343 PR tree-optimization/92205
6344 * tree-vect-loop.c (vectorizable_reduction): Restrict
6345 search for alternate vectype_in to lane-reducing patterns
6346 we support.
6347
6348 2019-10-24 Richard Biener <rguenther@suse.de>
6349
6350 PR tree-optimization/92203
6351 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
6352 Skip eliminating conversion stmts inserted by insertion.
6353
6354 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
6355
6356 * config/s390/s390.c (s390_get_thread_pointer): Use
6357 gen_get_thread_pointer.
6358 (s390_expand_split_stack_prologue): Likewise.
6359 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
6360 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
6361 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
6362 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
6363 parameterized name.
6364
6365 2019-10-24 Richard Biener <rguenther@suse.de>
6366
6367 * tree-vect-slp.c (vect_analyze_slp): When reduction group
6368 SLP discovery fails try to handle the reduction as part
6369 of SLP reduction discovery.
6370
6371 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
6372
6373 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
6374 declaration.
6375 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
6376 attribute if it exists, rather than the insn size. If we use the
6377 insn size, adjust the size to remove the extra size that prefixed
6378 instructions take.
6379 (rs6000_adjust_insn_length): New function.
6380 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
6381 update the instruction sized if prefixed instructions are used.
6382 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
6383 (non_prefixed_length attribute): Delete.
6384 (num_insns attribute): New insn attribute to return the number of
6385 instructions.
6386 (max_prefixed_insns attribute): New insn attribute to return the
6387 maximum number of prefixed instructions in an insn.
6388 (length attribute): Do not adjust for prefix instructions here,
6389 punt to ADJUST_INSN_LENGTH.
6390 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
6391 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
6392 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
6393 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
6394 max_prefixed_insns and num_insns.
6395
6396 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
6397 (movtd_64bit_nodm): Reformat.
6398 (mov<mode>_32bit): Reformat.
6399 (mov<mode>_softfloat): Reformat.
6400 (FMOVE128_GPR splitter): Reformat.
6401 (DIFD splitter): Reformat.
6402 (TI2 splitter): Reformat.
6403 * config/rs6000/predicates.md (lwa_operand): If the bottom two
6404 bits of the offset for the memory address are non-zero, use PLWA
6405 if prefixed instructions are available.
6406
6407 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6408
6409 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
6410
6411 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6412
6413 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
6414 previous patch.
6415
6416 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6417
6418 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
6419 (cmp_symbol_files): New.
6420 (lto_output): Copy sections in file order.
6421 * lto-streamer.h (lto_file_decl_data): Add field order.
6422
6423 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6424
6425 * ipa-reference.h (ipa_reference_var_uid): Move offline.
6426 * ipa-reference.c (reference_vars_map_t): new type.
6427 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
6428 (ipa_reference_var_uid): Implement.
6429 (varpool_node_hooks): New static var.
6430 (varpool_removal_hook): New function.
6431 (is_improper): Do not check bitmap for id==-1
6432 (get_static_name): Update.
6433 (ipa_init): Initialize new datastructures.
6434 (analyze_function): Do not recompute ids.
6435 (propagate): Free reference_vars_to_consider.
6436 (stream_out_bitmap): Update.
6437 (ipa_reference_read_optimization_summary): Update.
6438
6439 2019-10-23 qing zhao <qing.zhao@oracle.com>
6440
6441 PR gcov-profile/91971
6442 * coverage.c (coverage_init): Mangle the full path of filename when
6443 filename is a absolute path.
6444
6445 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6446
6447 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
6448 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
6449 (msp430_has_hwmult): New.
6450 (msp430_output_labelref):
6451 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
6452 * config/msp430/msp430.md (mulhisi3): Likewise.
6453 (umulhisi3): Likewise.
6454 (mulsidi3): Likewise.
6455 (umulsidi3): Likewise.
6456
6457 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6458
6459 PR ipa/92074
6460 * params.def (inline-heuristics-hint-percent): Set to 600.
6461
6462 2019-10-23 Richard Biener <rguenther@suse.de>
6463
6464 PR tree-optimization/65930
6465 * tree-vect-loop.c (check_reduction_path): Allow conversions
6466 that only change the sign.
6467 (vectorizable_reduction): Relax latch def stmts we handle further.
6468
6469 2019-10-23 Jakub Jelinek <jakub@redhat.com>
6470
6471 PR debug/90231
6472 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
6473 (remove_unused_ivs): Use it instead of get_computation_at. When
6474 choosing best candidate, only consider candidates where
6475 get_debug_computation_at actually returns non-NULL.
6476
6477 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
6478
6479 PR tree-optimization/92131
6480 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
6481 range would be symbolic, drop to varying for any explicit overflow
6482 in the constant part or if neither range is a singleton.
6483
6484 2019-10-23 Martin Liska <mliska@suse.cz>
6485
6486 PR middle-end/81669
6487 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
6488 Initialize m_data.
6489
6490 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
6491
6492 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
6493 int_mode_for_mode rather than mode_for_int_vector for scalars.
6494
6495 2019-10-23 Richard Biener <rguenther@suse.de>
6496
6497 PR tree-optimization/92179
6498 * tree-vect-stmts.c (vectorizable_shift): For shift args
6499 that are all the same remove type restriction in the SLP case.
6500 Adjust SLP code to handle converting of the shift arg to
6501 only apply in case the modes are different.
6502
6503 2019-10-23 Martin Liska <mliska@suse.cz>
6504
6505 PR ipa/91969
6506 * ipa-inline.c (recursive_inlining): Do not print
6507 when curr->count is not initialized.
6508
6509 2019-10-23 Richard Biener <rguenther@suse.de>
6510
6511 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
6512 op from scalars in case there's a constant operand in its
6513 definition.
6514
6515 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
6516
6517 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
6518 against out of range max skip or log values.
6519
6520 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
6521
6522 * cgraph.c (dump_graphviz): Change name to dump_name
6523
6524 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
6525
6526 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
6527 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
6528 subtraction from a carry operation.
6529
6530 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
6531
6532 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
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 Michael Matz <matz@suse.de>
6544
6545 PR middle-end/90796
6546 * gimple-loop-jam.c (any_access_function_variant_p): New function.
6547 (adjust_unroll_factor): Use it to constrain safety, new parameter.
6548 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
6549
6550 2019-10-22 Richard Biener <rguenther@suse.de>
6551
6552 PR tree-optimization/92173
6553 * tree-vect-loop.c (vectorizable_reduction): If
6554 vect_transform_reduction cannot handle code-generation try without
6555 the single-def-use-cycle optimization. Pass optab_vector to
6556 optab_for_tree_code to get vector shifts as that's what we'd
6557 generate.
6558
6559 2019-10-22 Martin Liska <mliska@suse.cz>
6560
6561 * diagnostic-format-json.cc (json_from_expanded_location):
6562 Use json::integer_number.
6563 * gcov.c (output_intermediate_json_line): Use new
6564 json::integer_number.
6565 (output_json_intermediate_file): Likewise.
6566 * json.cc (number::print): Move to ...
6567 (float_number::print): ... this.
6568 (integer_number::print): New.
6569 (test_writing_numbers): Move to ...
6570 (test_writing_float_numbers): ... this.
6571 (test_writing_integer_numbers): New.
6572 (json_cc_tests): Register test_writing_integer_numbers.
6573 * json.h (class value): Add forward declaration
6574 for float_number and integer_number.
6575 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
6576 (class number): Move to ...
6577 (class float_number): ... this.
6578 (class integer_number): New.
6579 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
6580 Use json::integer_number.
6581 (optrecord_json_writer::location_to_json): Likewise.
6582 (optrecord_json_writer::profile_count_to_json): Likewise.
6583 (optrecord_json_writer::pass_to_json): Likewise.
6584
6585 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
6586
6587 * tree-vect-slp.c (vect_slp_bb_region): Check whether
6588 autodetected_vector_size rather than vector_size is zero.
6589 * tree-vect-loop.c (vect_analyze_loop): Likewise.
6590 Set autodetected_vector_size immediately after calling
6591 vect_analyze_loop_2. Check for a fatal error before advancing
6592 next_size.
6593
6594 2019-10-21 Jason Merrill <jason@redhat.com>
6595
6596 * lock-and-run.sh: Check for process existence rather than timeout.
6597
6598 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6599
6600 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
6601 widening multiplication.
6602
6603 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
6604
6605 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
6606 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
6607 type attribute.
6608 (subsi3_carryin_shift): Separate into register and constant controlled
6609 alternatives. Use shift_amount_operand for operand 4. Set shift
6610 attribute and simplify type attribute.
6611 (subsi3_carryin_shift_alt): Likewise.
6612 (rsbsi3_carryin_shift): Likewise.
6613 (rsbsi3_carryin_shift_alt): Likewise.
6614 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
6615 and register controlled shifts into distinct alternatives.
6616 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
6617 (andsi_not_shiftsi_si_scc): Likewise.
6618 (arm_cmpsi_negshiftsi_si): Likewise.
6619 (not_shiftsi): Remove redundant M constraint from alternative 1.
6620 (not_shiftsi_compare0): Likewise.
6621 (arm_cmpsi_insn): Remove redundant alternative 2.
6622 (cmpsi_shift_swp): Likewise.
6623 (sub_shiftsi): Likewise.
6624 (sub_shiftsi_compare0_scratch): Likewise.
6625 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
6626 (thumb2_cmpsi_neg_shiftsi): Likewise.
6627
6628 2019-10-21 Richard Biener <rguenther@suse.de>
6629
6630 PR tree-optimization/92162
6631 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
6632 STMT_VINFO_REDUC_IDX in reduc_info.
6633 * tree-vect-stmts.c (vectorizable_condition): Likewise.
6634
6635 2019-10-21 Richard Biener <rguenther@suse.de>
6636
6637 * tree-vectorizer.h (_slp_tree::ops): New member.
6638 (SLP_TREE_SCALAR_OPS): New.
6639 (vect_get_slp_defs): Adjust prototype.
6640 * tree-vect-slp.c (vect_free_slp_tree): Release
6641 SLP_TREE_SCALAR_OPS.
6642 (vect_create_new_slp_node): Initialize it. New overload for
6643 initializing by an operands array.
6644 (_slp_oprnd_info::ops): New member.
6645 (vect_create_oprnd_info): Initialize it.
6646 (vect_free_oprnd_info): Release it.
6647 (vect_get_and_check_slp_defs): Populate the operands array.
6648 Do not swap operands in the IL when not necessary.
6649 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
6650 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
6651 swap operands in the operands array. Do not swap operands in
6652 the IL.
6653 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
6654 (vect_gather_slp_loads): Fix.
6655 (vect_detect_hybrid_slp_stmts): Likewise.
6656 (vect_slp_analyze_node_operations_1): Search for a internal
6657 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
6658 (vect_slp_analyze_node_operations): Skip ops-only stmts for
6659 the def-type push/pop dance.
6660 (vect_get_constant_vectors): Compute number_of_vectors here.
6661 Use SLP_TREE_SCALAR_OPS and simplify greatly.
6662 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
6663 (vect_get_slp_defs): Simplify greatly.
6664 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
6665 (vect_transform_reduction): Likewise.
6666 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
6667 (vectorizable_call): Likewise.
6668 (vectorizable_operation): Likewise.
6669 (vectorizable_load): Likewise.
6670 (vectorizable_condition): Likewise.
6671 (vectorizable_comparison): Likewise.
6672
6673 2019-10-21 Richard Biener <rguenther@suse.de>
6674
6675 PR tree-optimization/92161
6676 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
6677 for reductions.
6678
6679 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6680
6681 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
6682 (aarch64_rndr): New define_insn.
6683 (aarch64_rndrrs): Likewise.
6684 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
6685 (TARGET_RNG): Likewise.
6686 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
6687 argument.
6688 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
6689 Add fourth argument in prototype.
6690 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
6691 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
6692 (aarch64_init_rng_builtins): Define.
6693 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
6694 (aarch64_expand_rng_builtin): Define.
6695 (aarch64_general_expand_builtin): Use IGNORE argument, handle
6696 RNG builtins.
6697 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
6698 __ARM_FEATURE_RNG when TARGET_RNG.
6699 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
6700
6701 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
6702
6703 * tree-vect-stmts (ensure_base_align): Only change alignment if new
6704 alignment is more restrictive.
6705
6706 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6707
6708 * tree-vectorizer.h (vec_info::vector_size): New member variable.
6709 (vect_update_max_nunits): Update comment.
6710 (current_vector_size): Delete.
6711 * tree-vect-stmts.c (current_vector_size): Likewise.
6712 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
6713 of current_vector_size.
6714 (get_mask_type_for_scalar_type): Likewise.
6715 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
6716 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
6717 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
6718 (vect_double_mask_nunits, vect_transform_loop): Likewise.
6719 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
6720 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
6721
6722 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6723
6724 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
6725 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
6726 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
6727 accordingly.
6728
6729 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6730
6731 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
6732 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
6733 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
6734 call accordingly.
6735 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
6736
6737 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6738
6739 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
6740 a loop_vec_info.
6741 (vect_set_loop_condition_masked): Update call accordingly.
6742
6743 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6744
6745 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
6746 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
6747 (simple_integer_narrowing): Update call accordingly.
6748 (vectorizable_conversion): Likewise.
6749
6750 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6751
6752 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
6753 (vectorizable_call): Update call accordingly.
6754
6755 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6756
6757 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
6758 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
6759 (duplicate_and_interleave): Update call accordingly.
6760 * tree-vect-loop.c (vectorizable_reduction): Likewise.
6761
6762 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6763
6764 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
6765 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
6766 (vect_get_constant_vectors): Update call accordingly.
6767 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
6768
6769 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6770
6771 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
6772 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
6773 (vect_prologue_cost_for_slp_op): Update call accordingly.
6774 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
6775 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
6776 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
6777 (get_mask_type_for_scalar_type): Likewise.
6778 (vect_get_vector_types_for_stmt): Likewise.
6779 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6780 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
6781 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
6782 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
6783 (vect_split_statement, vect_convert_input): Likewise.
6784 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
6785 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
6786 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
6787 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
6788 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
6789 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
6790 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
6791 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
6792 (vect_recog_mask_conversion_pattern): Likewise.
6793 (vect_add_conversion_to_pattern): Likewise.
6794 (vect_recog_gather_scatter_pattern): Likewise.
6795 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
6796 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
6797
6798 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6799
6800 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
6801 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
6802 (vect_check_load_store_mask): Update call accordingly.
6803 (vect_get_mask_type_for_stmt): Likewise.
6804 * tree-vect-patterns.c (check_bool_pattern): Likewise.
6805 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
6806 (vect_convert_mask_for_vectype): Likewise.
6807
6808 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6809
6810 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
6811 a vec_info.
6812 (vect_recog_dot_prod_pattern): Update call accordingly.
6813 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
6814 (vect_recog_widen_sum_pattern): Likewise.
6815
6816 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6817
6818 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
6819 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
6820 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
6821 accordingly.
6822
6823 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6824
6825 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
6826 get_vectype_for_scalar_type_and_size instead of
6827 get_vectype_for_scalar_type.
6828
6829 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6830
6831 * common.opt (-fcommon): Fix description.
6832
6833 2019-10-20 Jakub Jelinek <jakub@redhat.com>
6834
6835 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
6836 * config/i386/i386.c (ix86_pre_reload_split): New function.
6837 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
6838 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
6839 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
6840 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
6841 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
6842 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
6843 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
6844 *<shift_insn><dwi>3_doubleword_mask,
6845 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
6846 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
6847 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
6848 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
6849 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
6850 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
6851 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
6852 *avx2_<code>v8qiv8si2<mask_name>_2,
6853 *sse4_1_<code>v4qiv4si2<mask_name>_2,
6854 *sse4_1_<code>v4hiv4si2<mask_name>_2,
6855 *avx512f_<code>v8qiv8di2<mask_name>_2,
6856 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
6857 *sse4_1_<code>v2hiv2di2<mask_name>_2,
6858 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
6859 sse4_2_pcmpistr): Likewise.
6860
6861 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
6862
6863 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
6864 now defaults to https.
6865
6866 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
6867
6868 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
6869 skip non-zero array accesses.
6870
6871 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
6872
6873 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
6874 and return a boolean success value. Move the allocation and
6875 initialization of the bb_vec_info to...
6876 (vect_slp_bb_region): ...here. Update call accordingly.
6877 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
6878 than in vect_slp_analyze_bb_1.
6879
6880 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
6881
6882 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
6883 when processing the given datarefs for the first time and
6884 check_datarefs subsequently.
6885 (vect_slp_bb_region): New function, split out of...
6886 (vect_slp_bb): ...here. Don't recompute the region bounds and
6887 dataref sets when retrying with a different vector size.
6888
6889 2019-10-19 Jakub Jelinek <jakub@redhat.com>
6890 Uroš Bizjak <ubizjak@gmail.com>
6891
6892 PR target/92140
6893 * config/i386/predicates.md (int_nonimmediate_operand): New special
6894 predicate.
6895 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
6896 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
6897 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
6898 define_insn_and_split patterns.
6899
6900 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
6901
6902 * config/rs6000/rs6000.md: Delete out--of-date comment about
6903 special-casing integer loads.
6904
6905 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
6906
6907 * escaped_string.h (escaped_string): New header.
6908 * tree.c (escaped_string): Remove escaped_string class.
6909
6910 2019-10-18 Martin Sebor <msebor@redhat.com>
6911
6912 PR tree-optimization/92157
6913 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
6914 compute_string_length to return a negative result.
6915
6916 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6917
6918 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
6919 (negvsi3, negvdi3): Delete.
6920 (negdi2_compare): Delete.
6921
6922 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6923
6924 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
6925 operations.
6926 (subdi3_compare1): Delete pattern.
6927 (subvsi3_borrow): New insn pattern.
6928 (subvsi3_borrow_imm): Likewise.
6929
6930 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6931
6932 * config/arm/arm.md (subv<mode>4): Delete.
6933 (subvdi4): New expander pattern.
6934 (subvsi4): Likewise. Handle some immediate values.
6935 (subvsi3_intmin): New insn pattern.
6936 (subvsi3): Likewise.
6937 (subvsi3_imm1): Likewise.
6938 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
6939 idioms.
6940
6941 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6942
6943 * config/arm/arm.md (usubvdi4): Allow registers or integers for
6944 incoming operands. Early split the calculation into SImode
6945 operations.
6946 (usubvsi3_borrow): New insn pattern.
6947 (usubvsi3_borrow_imm): Likewise.
6948
6949 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6950
6951 * config/arm/arm.md (usubv<mode>4): Delete expansion.
6952 (usubvsi4): New pattern. Allow some immediate values for inputs.
6953 (usubvdi4): New pattern.
6954
6955 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6956
6957 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
6958 or second operand of the PLUS inside a DImode equality test to be
6959 sign-extend when selecting CC_Vmode.
6960 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
6961 instructions.
6962 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
6963 expand patterns.
6964 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
6965 (addsi3_cin_vout_0): Likewise.
6966 (adddi3_compareV): Delete.
6967
6968 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6969
6970 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
6971 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
6972 to transform this back into the summation version when that leads
6973 to smaller code.
6974
6975 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6976
6977 * config/arm/arm.md (addv<mode>4): Delete.
6978 (addvsi4): New pattern. Handle immediate values that the architecture
6979 supports.
6980 (addvdi4): New pattern.
6981 (addsi3_compareV): Rename to ...
6982 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
6983 and use COMPARE rather than NE.
6984 (addsi3_compareV_imm): New pattern.
6985 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
6986 a signed-overflow check.
6987
6988 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6989
6990 * config/arm/arm-modes.def (CC_ADC): New CC mode.
6991 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
6992 CC_ADCmode.
6993 (maybe_get_arm_condition_code): Handle CC_ADCmode.
6994 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
6995 with overflow.
6996 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
6997 expand patterns.
6998 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
6999 (addsi3_cin_cout_imm_insn): Likewise.
7000 (adddi3_compareC): Delete insn.
7001 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
7002
7003 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7004
7005 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
7006 * (uaddv<mode>4): Delete expansion pattern.
7007 (uaddvsi4): New pattern.
7008 (uaddvdi4): Likewise.
7009 (addsi3_compareC): Delete pattern, change callers to use
7010 addsi3_compare_op1.
7011 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
7012 reduce the number of alternatives and re-work type attribute handling.
7013 (addsi3_compare_op2): Clean up constraints to reduce the number of
7014 alternatives and re-work type attribute handling.
7015 (compare_addsi2_op0): Likewise.
7016 (compare_addsi2_op1): Likewise.
7017
7018 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7019
7020 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
7021 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
7022 for DImode operands.
7023 (arm_gen_dicompare_reg): Remove unreachable expansion code.
7024 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
7025 CC_NCVmode.
7026 * config/arm/arm.md (arm_cmpdi_insn): Delete.
7027 (arm_cmpdi_unsigned): Delete.
7028
7029 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7030
7031 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
7032 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
7033 unchanged only if that will be cheaper.
7034 (arm_select_cc_mode): Recognize a swapped comparison that will
7035 be regenerated using RSBS or RSCS. Relax restriction on selecting
7036 CC_RSBmode.
7037 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
7038 a constant.
7039 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
7040 is CC_RSBmode.
7041 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
7042 as CCmode.
7043 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
7044 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
7045
7046 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7047
7048 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
7049 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
7050 need these modes.
7051 (arm_gen_dicompare_reg): New code to early expand the sub-operations
7052 of EQ, NE, LT, GE, LTU and GEU.
7053 * config/arm/iterators.md (CC_EXTEND): New code attribute.
7054 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
7055 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
7056 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
7057 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
7058
7059 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7060
7061 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
7062 operand 2.
7063 (cstoredi4): Similarly, but for operand 3.
7064 * config/arm/arm.c (arm_canoncialize_comparison): Allow
7065 canonicalization of unsigned compares with a constant on Arm.
7066 Prefer using const+1 and adjusting the comparison over swapping the
7067 operands whenever the original constant was not valid.
7068 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
7069 register here.
7070 (arm_validize_comparison): Do not force invalid DImode operands to
7071 registers here.
7072
7073 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7074
7075 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
7076 return CC_Zmode if comparing against a constant where one word is
7077 zero.
7078 (arm_gen_compare_reg): Split DImode handling to ...
7079 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
7080 against simple constants.
7081 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
7082
7083 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7084
7085 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
7086 (rsbsi3_carryin_shift_alt): Likewise.
7087
7088 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7089
7090 * config/arm/arm.md (negscc_borrow): New pattern.
7091 (mov_negscc): Don't split if the insn would match negscc_borrow.
7092 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
7093 (thumb2_mov_negscc_strict_it): Likewise.
7094
7095 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7096
7097 * config/arm/arm.c (arm_insn_cost): New function.
7098 (TARGET_INSN_COST): Override default definition.
7099
7100 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7101
7102 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7103 borrow operations.
7104
7105 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7106
7107 * config/arm/arm.c (strip_carry_operation): New function.
7108 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
7109 for SImode.
7110
7111 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7112
7113 * config/arm/predicates.md (arm_carry_operation): New special
7114 predicate.
7115 * config/arm/iterators.md (LTUGEU): Delete iterator.
7116 (cnb): Delete code attribute.
7117 (optab): Delete ltu and geu elements.
7118 * config/arm/arm.md (addsi3_carryin): Renamed from
7119 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
7120 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
7121 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
7122 (addsi3_carryin_clobercc): Similarly.
7123 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
7124 Thumb2 state.
7125
7126 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7127
7128 * config/arm/arm.md (arm_subdi3): Delete insn.
7129 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
7130
7131 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7132
7133 * config/arm/arm-modes.def (CC_RSB): New CC mode.
7134 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
7135 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
7136 return CC_RSBmode.
7137 (maybe_get_arm_condition_code): Handle CC_RSBmode.
7138 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
7139 expand.
7140 (subdi3): Rewrite to early-expand the sub-operations.
7141 (rsb_im_compare): New pattern.
7142 (negdi2): Delete.
7143 (negdi2_insn): Delete.
7144 (arm_negsi2): Correct type attribute to alu_imm.
7145 (negsi2_0compare): New insn pattern.
7146 (negsi2_carryin): New insn pattern.
7147
7148 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7149
7150 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
7151 operand 2.
7152
7153 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7154
7155 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
7156 to match canonical form.
7157
7158 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7159
7160 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
7161 (extend<mode>di2): Likewise.
7162
7163 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7164
7165 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
7166 * config/arm/arm.c (arm_decompose_di_binop): New function.
7167 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
7168 If not generating Thumb-1 code, decompose the operation into 32-bit
7169 pieces.
7170 * add0si_carryin_<optab>: New pattern.
7171
7172 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7173
7174 * arm.md (adddi3): Only accept register operands.
7175 (arm_adddi3): Convert to simple insn with no split. Do not accept
7176 constants.
7177 (adddi_sesidi_di): Delete patern.
7178 (adddi_zesidi_di): Likewise.
7179 (uaddv<mode>4): Use LTU as condition for branch.
7180 (adddi3_compareV): Convert to simple insn with no split.
7181 (addsi3_compareV_upper): Delete pattern.
7182 (adddi3_compareC): Convert to simple insn with no split. Correct
7183 flags setting expression.
7184 (addsi3_compareC_upper): Delete pattern.
7185 (addsi3_compareC): Correct flags setting expression.
7186 (subdi3_compare1): Convert to simple insn with no split.
7187 (subsi3_carryin_compare): Delete pattern.
7188 (arm_subdi3): Convert to simple insn with no split.
7189 (subdi_zesidi): Delete pattern.
7190 (subdi_di_sesidi): Delete pattern.
7191 (subdi_zesidi_di): Delete pattern.
7192 (subdi_sesidi_di): Delete pattern.
7193 (subdi_zesidi_zesidi): Delete pattern.
7194 (negvdi3): Use s_register_operand.
7195 (negdi2_compare): Convert to simple insn with no split.
7196 (negdi2_insn): Likewise.
7197 (negsi2_carryin_compare): Delete pattern.
7198 (negdi_zero_extendsidi): Delete pattern.
7199 (arm_cmpdi_insn): Convert to simple insn with no split.
7200 (negdi2): Don't call gen_negdi2_neon.
7201 * config/arm/neon.md (adddi3_neon): Delete pattern.
7202 (subdi3_neon): Delete pattern.
7203 (negdi2_neon): Delete pattern.
7204 (splits for negdi2_neon): Delete splits.
7205
7206 2019-10-18 Jakub Jelinek <jakub@redhat.com>
7207
7208 PR middle-end/92153
7209 * ggc-page.c (release_pages): Read g->alloc_size before free rather
7210 than after it.
7211
7212 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
7213
7214 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
7215 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
7216 new multilib variants and new mappings.
7217
7218 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7219
7220 PR target/86040
7221 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
7222
7223 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7224 Richard Sandiford <richard.sandiford@arm.com>
7225
7226 PR target/86753
7227 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
7228 and define hashmap traits for it.
7229 (loop_vec_info::scalar_cond_masked_set): New member.
7230 (vect_record_loop_mask): Adjust prototype.
7231 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
7232 Implement method.
7233 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
7234 vect_record_loop_mask.
7235 (vectorizable_live_operation): Likewise.
7236 (vect_record_loop_mask): New param scalar_mask. Add entry
7237 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
7238 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
7239 Pass it as last arg to vect_record_loop_mask.
7240 (vectorizable_call): Pass scalar_mask as last arg to
7241 vect_record_loop_mask.
7242 (vectorizable_store): Likewise.
7243 (vectorizable_load): Likewise.
7244 (vectorizable_condition): Check if another part of vectorized code
7245 applies loop_mask to condition or to it's inverse, and if yes,
7246 apply loop_mask to result of vector comparison.
7247
7248 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
7249
7250 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
7251
7252 2019-10-18 Jakub Jelinek <jakub@redhat.com>
7253
7254 PR tree-optimization/92056
7255 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
7256 before calling compute_builtin_object_size.
7257
7258 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
7259
7260 PR target/65342
7261 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
7262 (movdi_low_st): Delete.
7263 * config/rs6000/rs6000.c
7264 (darwin_rs6000_legitimate_lo_sum_const_p): New.
7265 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
7266 * config/rs6000/rs6000.md (movsi_low): Delete.
7267
7268 2019-10-17 Jason Merrill <jason@redhat.com>
7269
7270 * gimplify.h (get_initialized_tmp_var): Add default argument to
7271 post_p.
7272 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
7273 NULL post_p argument.
7274 * targhooks (std_gimplify_va_arg_expr): Likewise.
7275
7276 2019-10-17 Richard Biener <rguenther@suse.de>
7277
7278 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
7279 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
7280 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
7281 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
7282 * tree-vect-loop.c (vect_is_simple_reduction): Set
7283 STMT_VINFO_REDUC_CODE.
7284 (vectorizable_reduction): Remove dead and redundant code, use
7285 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
7286
7287 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
7288
7289 Fix breakage introduced by r276985.
7290
7291 * config/avr/avr.c (avr_option_override): Remove set of
7292 PARAM_ALLOW_STORE_DATA_RACES.
7293 * common/config/avr/avr-common.c (avr_option_optimization_table)
7294 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
7295
7296 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
7297
7298 * config/i386/i386.h (processor_costs): Add clear_ratio.
7299 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
7300 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
7301 of 6 and move_ratio in all cost models.
7302
7303 2019-10-17 Richard Biener <rguenther@suse.de>
7304
7305 * tree-vect-loop.c (check_reduction_path): Compute reduction
7306 operation here.
7307 (vect_is_simple_reduction): Remove special-case of single-stmt
7308 reduction path detection.
7309
7310 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
7311
7312 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
7313
7314 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
7315
7316 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
7317 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
7318 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
7319 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
7320 New combine patterns.
7321 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
7322 above.
7323 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
7324
7325 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
7326
7327 * tree-vrp.c (value_range_base::dump): Display +INF for both
7328 pointers and integers when appropriate.
7329
7330 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7331
7332 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
7333 when to use versioning threshold.
7334
7335 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7336
7337 * tree-vect-loop.c (determine_peel_for_niter): New function contained
7338 outlined code from ...
7339 (vect_analyze_loop_2): ... here.
7340
7341 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7342
7343 * tree-vect-loop.c (vect_transform_loop): Move code from here...
7344 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
7345 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
7346
7347 2019-10-17 Richard Biener <rguenther@suse.de>
7348
7349 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
7350 (vect_is_simple_reduction): Move all validity checks ...
7351 (vectorizable_reduction): ... here. Compute whether we
7352 need a fold-left reduction here.
7353 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
7354 both overloads, check needs_fold_left_reduction_p directly.
7355 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
7356
7357 2019-10-17 Richard Biener <rguenther@suse.de>
7358
7359 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
7360 TARGET_MEM_REF creation.
7361
7362 2019-10-17 Richard Biener <rguenther@suse.de>
7363
7364 PR tree-optimization/92129
7365 * tree-vect-loop.c (vectorizable_reduction): Also fail
7366 on GIMPLE_SINGLE_RHS.
7367
7368 2019-10-17 Jakub Jelinek <jakub@redhat.com>
7369
7370 PR tree-optimization/92056
7371 * tree-object-size.c (cond_expr_object_size): Return early if then_
7372 processing resulted in unknown size.
7373
7374 PR tree-optimization/92115
7375 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
7376 temporary if it could trap.
7377
7378 2019-10-17 Richard Biener <rguenther@suse.de>
7379
7380 PR debug/91887
7381 * dwarf2out.c (gen_formal_parameter_die): Also try to match
7382 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
7383
7384 2019-10-16 Jakub Jelinek <jakub@redhat.com>
7385
7386 * tree-ssa-strlen.c (maybe_invalidate): Use
7387 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
7388
7389 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
7390 Jim Wilson <jimw@sifive.com>
7391
7392 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
7393 regs to SIBCALL_REGS.
7394 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
7395 passing regs to SIBCALL_REGS.
7396
7397 2019-10-16 Martin Sebor <msebor@redhat.com>
7398
7399 PR tree-optimization/83821
7400 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
7401 the length of a string when available.
7402 (handle_builtin_memset) Add argument.
7403 (handle_store, strlen_check_and_optimize_call): Same.
7404 (check_and_optimize_stmt): Same. Pass it to callees.
7405
7406 2019-10-16 Martin Sebor <msebor@redhat.com>
7407
7408 PR tree-optimization/91996
7409 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
7410 information.
7411 (compare_nonzero_chars): Add an overload.
7412 (count_nonzero_bytes): Add an argument. Call overload above.
7413 Handle non-constant lengths in some range.
7414 (handle_store): Add an argument.
7415 (check_and_optimize_stmt): Pass an argument to handle_store.
7416
7417 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
7418
7419 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
7420
7421 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7422
7423 * config/mips/mips.c (mips_expand_builtin_insn): Force the
7424 operands which correspond to the same input-output register to
7425 have the same pseudo assigned to them.
7426
7427 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
7428
7429 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
7430
7431 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
7432
7433 * config/aarch64/aarch64.c (aarch64_classify_symbol):
7434 Apply reasonable limit to symbol offsets.
7435
7436 2019-10-16 Richard Biener <rguenther@suse.de>
7437
7438 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
7439 (vect_is_simple_reduction): Delay checking to
7440 vectorizable_reduction and relax the checking.
7441 (vectorizable_reduction): Check we have a simple use. Check
7442 for bogus condition reductions.
7443 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
7444 are looking at the last stmt in a pattern sequence when
7445 filling in backedge PHI values.
7446
7447 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
7448 Jiufu Guo <guojiufu@linux.ibm.com>
7449
7450 PR target/70010
7451 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
7452 the callee explicitly disables some isa_flags the caller is using.
7453
7454 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7455
7456 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
7457
7458 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7459
7460 * genmodes.c (mode_data::order): New field.
7461 (blank_mode): Update accordingly.
7462 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
7463 (make_vector_modes): Likewise.
7464 (VECTOR_MODES): Update use accordingly.
7465 (cmp_modes): Sort by the new order field ahead of sorting by size.
7466 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
7467 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
7468 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
7469 (aarch64_classify_vector_mode): Handle the new partial modes.
7470 (aarch64_vl_bytes): New function.
7471 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
7472 when counting the number of registers in an SVE mode.
7473 (aarch64_class_max_nregs): Likewise.
7474 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
7475 in registers yet.
7476 (aarch64_classify_address): Treat partial vectors analogously
7477 to full vectors.
7478 (aarch64_print_address_internal): Consolidate the printing of
7479 MUL VL addresses, using aarch64_vl_bytes as the number of
7480 bytes represented by "VL".
7481 (aarch64_vector_mode_supported_p): Reject partial vector modes.
7482
7483 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7484
7485 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
7486 rather than known_lt when choosing frame layouts.
7487
7488 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7489
7490 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
7491 that all the adjustments add up to the full frame size.
7492 Use crtl->outgoing_args_size directly as the final adjustment
7493 where appropriate.
7494
7495 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7496
7497 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
7498 "frame" reference instead of always referring directly to
7499 "cfun->machine->frame".
7500
7501 2019-10-16 Richard Biener <rguenther@suse.de>
7502
7503 PR tree-optimization/92119
7504 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
7505 against missing bswap lhs.
7506
7507 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7508
7509 PR middle-end/92033
7510 * poly-int.h (constant_lower_bound_with_limit): New function.
7511 (constant_upper_bound_with_limit): Likewise.
7512 * doc/poly-int.texi: Document them.
7513 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
7514 into the worst-case INTEGER_CST bounds.
7515
7516 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
7517
7518 PR ipa/91088
7519 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
7520 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
7521 * ipa-predicat.h (struct expr_eval_op): New struct.
7522 (expr_eval_ops): New typedef.
7523 (struct condition): Add type and param_ops fields, remove size field.
7524 (add_condition): Replace size parameter with type parameter, add
7525 param_ops parameter.
7526 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
7527 (predicate::add_clause): Add comparisons on type and param_ops.
7528 (dump_condition): Add debug dump for param_ops.
7529 (remap_after_inlining): Adjust call arguments to add_condition.
7530 (add_condition): Replace size parameter with type parameter, add
7531 param_ops parameter. Unshare constant value used in conditions.
7532 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
7533 parameter expressions using param_ops.
7534 (decompose_param_expr): New function.
7535 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
7536 to replace call to unmodified_parm_or_parm_agg_item.
7537 (set_switch_stmt_execution_predicate): Likewise.
7538 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
7539 with type.
7540 (inline_read_section): Read param_ops from summary stream.
7541 (ipa_fn_summary_write): Write param_ops to summary stream.
7542
7543 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
7544
7545 PR rtl-optimization/92107
7546 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
7547 expression written.
7548
7549 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
7550
7551 * config/darwin.c: Update description of fix and continue.
7552
7553 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
7554
7555 * config/darwin.c (darwin_binds_local_p): Update to call
7556 default_binds_local_p_3 () directly. amend comments.
7557
7558 2019-10-15 Richard Biener <rguenther@suse.de>
7559
7560 * lto-streamer-out.c (lto_variably_modified_type_p): New.
7561 (tree_is_indexable): Use it.
7562 * tree-streamer-out.c (pack_ts_type_common_value_fields):
7563 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
7564 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
7565
7566 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7567
7568 * config/msp430/msp430.md (zero_extendqipsi2): New.
7569 (zero_extendqisi2): Optimize case where src register and base dst
7570 register are the same.
7571 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
7572 (zero_extendpsisi2): Optimize r->m case.
7573 Add unnamed insn patterns to catch insns combine searches for when
7574 optimizing pointer manipulation.
7575
7576 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7577
7578 * config/msp430/msp430.md: Group zero_extend* insns together.
7579
7580 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7581
7582 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
7583 constraint.
7584 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
7585 POST_INC.
7586 (msp430_subreg): Likewise.
7587 (msp430_split_addsi): Likewise.
7588 (msp430_print_operand_addr): Likewise.
7589 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
7590 (USE_STORE_POST_INCREMENT): Define.
7591 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
7592 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
7593 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
7594 (msp430_general_dst_operand): New.
7595 (msp430_general_dst_nonv_operand): New.
7596 (msp430_nonsubreg_operand): Remove.
7597 (msp430_nonsubreg_dst_operand): New.
7598 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
7599 of defunct msp430_nonsubreg_operand.
7600 (msp430_nonsubregnonpostinc_or_imm_operand): New.
7601
7602 2019-10-15 Richard Biener <rguenther@suse.de>
7603
7604 PR tree-optimization/91929
7605 * tree-ssa-pre.c (pre_expr_d::loc): New member.
7606 (get_or_alloc_expr_for_name): Initialize it.
7607 (get_or_alloc_expr_for_constant): Likewise.
7608 (phi_translate_1): Copy it.
7609 (create_expression_by_pieces): Use the original location
7610 of the expression for the inserted stmt.
7611 (compute_avail): Record the location of the stmt for the
7612 expressions created.
7613
7614 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
7615
7616 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
7617 before using tree_to_uhwi.
7618
7619 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
7620
7621 * config/s390/s390.md: Run %a0:DI splitters only after reload.
7622
7623 2019-10-15 Richard Biener <rguenther@suse.de>
7624
7625 PR tree-optimization/92094
7626 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
7627 do not adjust the reduction definition def type.
7628 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
7629 defines the latch argument of the PHI.
7630
7631 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
7632
7633 PR target/92035
7634 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
7635 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
7636 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
7637 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
7638 _mm_maskz_roundscale_round_sd): New intrinsics.
7639 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
7640 __builtin_ia32_rndscales?_mask_round builtins instead of
7641 __builtin_ia32_rndscales?_round.
7642 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
7643 __builtin_ia32_rndscalesd_round): Remove.
7644 (__builtin_ia32_rndscaless_mask_round,
7645 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
7646 * config/i386/sse.md
7647 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
7648 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
7649 ... this, adjust and add subst atrributes to make it maskable.
7650
7651 2019-10-15 Richard Biener <rguenther@suse.de>
7652
7653 PR middle-end/92046
7654 * common.opt (fallow-store-data-races): New.
7655 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
7656 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
7657 * doc/invoke.texi (fallow-store-data-races): Document.
7658 (--param allow-store-data-races): Remove docs.
7659 * opts.c (default_options_table): Enable -fallow-store-data-races
7660 at -Ofast.
7661 (default_options_optimization): Do not enable --param
7662 allow-store-data-races at -Ofast.
7663 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
7664 instead of PARAM_ALLOW_STORE_DATA_RACES.
7665 * tree-ssa-loop-im.c (execute_sm): Likewise.
7666
7667 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7668
7669 PR tree-optimization/92085
7670 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
7671 instead of calling it unconditionally after
7672 delete_dead_or_redundant_assignment and fix indentation.
7673
7674 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7675
7676 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
7677 TARGET_VFP_DOUBLE.
7678 (*fmsub<SDF:mode>4): Likewise.
7679 *fnmsub<SDF:mode>4): Likewise.
7680 (*fnmadd<SDF:mode>4): Likewise.
7681
7682 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
7683
7684 * doc/tree-ssa.texi: Update renamed macro name.
7685
7686 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7687
7688 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
7689 vector constants.
7690
7691 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
7692
7693 * config/darwin.c: Use unsigned ints for the picbase label
7694 counters, initialise the vars explicitly.
7695 (update_pic_label_number_if_needed): Move a variable declaration
7696 to where it's needed.
7697 (machopic_output_function_base_name): Use a more strict checking
7698 assert, and and unsigned int for the picbase label counter.
7699 (machopic_get_function_picbase): Likewise.
7700
7701 2019-10-14 Richard Biener <rguenther@suse.de>
7702
7703 PR middle-end/92046
7704 * dse.c (scan_insn): Use param max_active_local_stores.
7705 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
7706 based on optimization level.
7707 * loop-invariant.c (move_loop_invariants): Adjust
7708 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
7709 * opts.c (default_options_optimization): Do not adjust
7710 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
7711 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
7712
7713 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
7714
7715 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
7716
7717 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
7718
7719 * config/arm/arm.c (arm_option_override): Don't override sched
7720 pressure algorithm.
7721
7722 2019-10-14 Richard Biener <rguenther@suse.de>
7723
7724 PR tree-optimization/92069
7725 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
7726 cycles do not set vect_nested_cycle on the latch definition.
7727
7728 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
7729
7730 * function-abi.h (expr_callee_abi): Declare.
7731 * function-abi.cc (expr_callee_abi): New function.
7732
7733 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
7734
7735 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
7736 into [1,MAX].
7737 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
7738 non-zero being represented as [1,MAX].
7739
7740 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
7741
7742 * tree-sra.c (dump_access): Add missing braces.
7743
7744 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
7745
7746 * config/darwin.c (machopic_indirection_name): Rework the
7747 function to emit linker-visible symbols only for indirections
7748 in the data section. Clean up the code and update comments.
7749
7750 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
7751
7752 * config/darwin.c (machopic_indirect_data_reference): Remove
7753 redundant code.
7754
7755 2019-10-13 Nathan Sidwell <nathan@acm.org>
7756
7757 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
7758
7759 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7760
7761 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
7762 c99_runtime.
7763
7764 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
7765
7766 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
7767 so non-virutal are before virutals.
7768 (output_function): Avoid body modifications.
7769
7770 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
7771
7772 * config/pa/pa.c (pa_output_call): Load descriptor address to register
7773 %r22. Load function address before global pointer.
7774 (pa_attr_length_indirect_call): Adjust length of inline versions of
7775 $$dyncall.
7776 (pa_output_indirect_call): Remove fast inline version of $$dyncall
7777 before normal cases. Update inline $$dyncall sequences to preserve
7778 function descriptor address in register %r22.
7779 (TRAMPOLINE_CODE_SIZE): Adjust.
7780 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
7781 register %r22 contains trampoline address.
7782 (pa_trampoline_init): Adjust offsets.
7783 (pa_trampoline_adjust_address): Likewise.
7784 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
7785
7786 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
7787
7788 PR target/67183
7789 * config/darwin.c (machopic_indirection): New field to flag
7790 non-lazy-symbol-pointers in the data section.
7791 (machopic_indirection_name): Compute if an indirection should
7792 appear in the data section.
7793 (machopic_output_data_section_indirection): New callback split
7794 from machopic_output_indirection.
7795 (machopic_output_stub_indirection): Likewise.
7796 (machopic_output_indirection): Retain the code for non-lazy
7797 symbol pointers in their regular section.
7798 (machopic_finish): Use the new callbacks to order the indirection
7799 output.
7800
7801 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
7802
7803 * config/darwin-protos.h (machopic_finish): Delete.
7804 * config/darwin.c (machopic_finish): Make static.
7805
7806 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
7807
7808 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
7809 sections when building kernel extension code.
7810
7811 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
7812
7813 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
7814 later standard."
7815
7816 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
7817
7818 * config/pa/pa.c (pa_option_override): Remove trailing comma
7819 from warning.
7820
7821 2019-10-12 Jakub Jelinek <jakub@redhat.com>
7822
7823 PR middle-end/92063
7824 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
7825 <case VEC_COND_EXPR>: Return false with *handled = false.
7826 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
7827 recursing on the first operand.
7828 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
7829 instead of tree_could_trap_p.
7830 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
7831
7832 2019-10-11 Jim Wilson <jimw@sifive.com>
7833
7834 PR rtl-optimization/91860
7835 * combine.c (subst): If new_rtx is a constant, also check for
7836 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
7837
7838 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
7839
7840 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
7841 INTVAL when calling store_bit_field.
7842
7843 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
7844
7845 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
7846 size.
7847
7848 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
7849
7850 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
7851 vectorizable_live_operation.
7852 (vectorizable_live_operation): Adjust parameters.
7853 * tree-vect-stmts.c (vect_init_vector,
7854 vect_gen_widened_results_half): Fix typo in function comment.
7855 (can_vectorize_live_stmts): Adjust function comment.
7856 Adjust parameters. Adjust call to vectorizable_live_operation.
7857 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
7858 (vect_transform_stmt): Adjust function comment. Adjust call to
7859 can_vectorize_live_stmts.
7860 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
7861
7862 2019-10-11 Richard Biener <rguenther@suse.de>
7863
7864 PR tree-optimization/90883
7865 PR tree-optimization/91091
7866 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
7867 alias-sets both for recording VN table entries and continuing
7868 walking after translating through copies. Handle same-sized
7869 reads from SSA names by returning the plain SSA name.
7870 (eliminate_dom_walker::eliminate_stmt): Properly handle
7871 non-size precision stores in redundant store elimination.
7872
7873 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
7874
7875 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
7876 (ggc_collect): Dump later to not interfere with release_page dump.
7877 (ggc_trim): New function.
7878 * ggc-none.c (ggc_trim): New.
7879 * ggc.h (ggc_trim): Declare.
7880
7881 2019-10-11 Richard Biener <rguenther@suse.de>
7882
7883 PR tree-optimization/92066
7884 PR tree-optimization/92046
7885 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7886 Fix bogus cost model check.
7887
7888 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
7889
7890 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
7891 (LANG_HOOKS_DECLS): Add it.
7892 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
7893 update comment for omp_is_optional_argument.
7894 * omp-general.c (omp_is_allocatable_or_ptr): New.
7895 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
7896 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
7897 Fortran's optional arguments and allocatable/pointer scalars
7898 with use_device_addr.
7899
7900 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
7901
7902 PR target/77918
7903 * config/s390/2827.md: Add new opcodes.
7904 * config/s390/2964.md: Likewise.
7905 * config/s390/3906.md: Likewise.
7906 * config/s390/8561.md: Likewise.
7907 * config/s390/s390-builtins.def (s390_vfchesb): Use
7908 the new vec_cmpgev4sf_quiet_nocc.
7909 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
7910 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
7911 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
7912 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
7913 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
7914 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
7915 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
7916 * config/s390/s390-modes.def (CCSFPS): New mode.
7917 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
7918 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
7919 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
7920 (s390_expand_vec_compare): Use non-signaling patterns where
7921 necessary.
7922 (s390_reverse_condition): Support CCSFPS.
7923 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
7924 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
7925 (asm_fcmp_op): Likewise.
7926 (*smaxv2df3_vx): Use pattern for quiet comparison.
7927 (*sminv2df3_vx): Likewise.
7928 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
7929 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
7930 (vec_cmpgt<mode>_quiet_nocc): Likewise.
7931 (vec_cmplt<mode>_quiet_nocc): New expander.
7932 (vec_cmpge<mode>_quiet_nocc): New pattern.
7933 (vec_cmple<mode>_quiet_nocc): New expander.
7934 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
7935 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
7936 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
7937 (*vec_cmpge<mode>_signaling_nocc): Likewise.
7938 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
7939 (vec_cmpungt<mode>): New expander.
7940 (vec_cmpunge<mode>): Likewise.
7941 (vec_cmpuneq<mode>): Use quiet patterns.
7942 (vec_cmpltgt<mode>): Allow only on z14+.
7943 (vec_cmpordered<mode>): Use quiet patterns.
7944 (vec_cmpunordered<mode>): Likewise.
7945 (VEC_CMP_EXPAND): Add ungt and unge.
7946
7947 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
7948
7949 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
7950 parameter.
7951 * lto-streamer-out.c: Include tree-dfa.h.
7952 (output_cfg): Do not use cfun.
7953 (lto_prepare_function_for_streaming): New.
7954 (output_function): Do not push cfun; do not initialize loop optimizer.
7955 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
7956 * passes.c (ipa_write_summaries): Use it.
7957 (ipa_write_optimization_summaries): Do not modify bodies.
7958 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
7959 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
7960 * tree-ssa-dse.c (pass_dse::execute): Update use of
7961 renumber_gimple_stmt_uids.
7962 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
7963
7964 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
7965
7966 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
7967 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
7968
7969 2019-10-10 Joseph Myers <joseph@codesourcery.com>
7970
7971 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
7972 macros.
7973 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
7974 Also define DFP macros for these conditions.
7975 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
7976 DEC128_SUBNORMAL_MIN): Do not define.
7977 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
7978 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
7979
7980 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
7981 Sandra Loosemore <sandra@codesourcery.com>
7982
7983 PR middle-end/26241
7984 * doc/lto.texi (IPA): Reference to the IPA passes.
7985 * doc/passes.texi (Pass manager): Add node IPA passes and
7986 description for each IPA pass.
7987
7988 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
7989
7990 * ipa-reference.c: Do not include splay-tree.h
7991 (reference_vars_to_consider): Turn to hash map.
7992 (get_static_name, ipa_init, analyze_function, propagate,
7993 stream_out_bitmap, ipa_reference_write_optimization_summary,
7994 ipa_reference_write_optimization_summary): Update.
7995
7996 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
7997
7998 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
7999
8000 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
8001
8002 * config/darwin.c: Lookup Objective C metadata and force indirection
8003 for IVAR refs.
8004
8005 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
8006
8007 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
8008 addresses.
8009 (mem_operand_gpr): Add check for prefixed addresses.
8010 (mem_operand_ds_form): Add check for prefixed addresses.
8011 (rs6000_legitimate_offset_address_p): If we support prefixed
8012 addresses, check for a 34-bit offset instead of 16-bit.
8013 (rs6000_legitimate_address_p): Add check for prefixed addresses.
8014 Do not allow load/store with update if the address is prefixed.
8015 (rs6000_mode_dependent_address): If we support prefixed
8016 addresses, check for a 34-bit offset instead of 16-bit.
8017
8018 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
8019
8020 PR target/77918
8021 * config/s390/vector.md (vcond_comparison_operator): New
8022 predicate.
8023 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
8024
8025 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8026
8027 PR 87488
8028 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
8029 -D.
8030 * configure.ac (--with-documentation-root-url): New option.
8031 * configure: Regenerate.
8032 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
8033 option URL, add it as a new string field of the diagnostic option.
8034 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
8035 (print_option_information): If get_option_url is non-NULL, call
8036 it, and if the result is non-NULL, potentially emit an escape
8037 sequence to markup the option text with the resulting URL.
8038 * diagnostic.h (diagnostic_context::get_option_url): New callback.
8039 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
8040 example of JSON output.
8041 * opts-diagnostic.h (get_option_url): New decl.
8042 * opts.c (get_option_url): New function.
8043 * toplev.c (general_init): Initialize the get_option_url callback.
8044
8045 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8046
8047 PR 87488
8048 * common.opt (fdiagnostics-urls=): New option.
8049 (diagnostic-url.h): Add SourceInclude.
8050 (diagnostic_url_rule): New enum.
8051 * diagnostic-color.c: Include "diagnostic-url.h".
8052 (diagnostic_urls_enabled_p): New function.
8053 * diagnostic-url.h: New file.
8054 * diagnostic.c: Include "diagnostic-url.h".
8055 (diagnostic_urls_init): New function.
8056 * diagnostic.h (diagnostic_urls_init): New decl.
8057 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8058 -fdiagnostics-urls to the list.
8059 (-fdiagnostics-urls): New option.
8060 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
8061 (driver::global_initializations): Call diagnostic_urls_init.
8062 * opts-global.c (init_options_once): Likewise.
8063 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
8064 * pretty-print.c (pretty_printer::pretty_printer): Initialize
8065 show_urls.
8066 (pp_begin_url): New function.
8067 (pp_end_url): New function.
8068 (selftest::test_urls): New selftest.
8069 (selftest::pretty_print_c_tests): Call it.
8070 * pretty-print.h (pretty_printer::show_urls): New field.
8071 (pp_begin_url): New decl.
8072 (pp_end_url): New decl.
8073
8074 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
8075
8076 PR target/92022
8077 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
8078
8079 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
8080
8081 PR target/88630
8082 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
8083 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
8084 also for TARGET_FPU_SH4_300.
8085 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
8086 TARGET_SH4_300.
8087 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
8088 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
8089 (*negsf2_i): Split into ...
8090 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
8091 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
8092 (**abssf2_i): Split into ...
8093 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
8094 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
8095 (*negdf2_i): Split into ...
8096 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
8097 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
8098 (**abssf2_i): Split into ...
8099 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
8100
8101 2019-10-10 Richard Biener <rguenther@suse.de>
8102
8103 PR middle-end/92046
8104 * opts.c (finish_options): Do not influence global --params
8105 from options that are adjustable per function.
8106 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8107 Apply --param adjustment based on active cost-model.
8108 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
8109 further store-sinking when vectorization or if-conversion
8110 are not enabled.
8111
8112 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8113
8114 PR middle-end/92037
8115 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
8116 rather than ggc_alloc_cleared to alloc symbol table.
8117 * toplev.c (general_init): Likewise.
8118 * cgraph.h (symbol_table): Explicitly construct every field.
8119
8120 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
8121
8122 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
8123 (PF_Z15): ... this.
8124 * config.gcc: Add z15 as option for --with-arch and --with-tune
8125 configure switches.
8126 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
8127 error reporting for unsupported builtins.
8128 * config/s390/s390-opts.h (enum processor_type): Rename
8129 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
8130 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
8131 * config/s390/driver-native.c (s390_host_detect_local_cpu):
8132 Likewise.
8133 * config/s390/s390-builtins.def: Likewise.
8134 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
8135 (s390_expand_builtin): Add missing check for unsupported builtins.
8136 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
8137 (s390_rtx_costs): Likewise.
8138 (s390_get_sched_attrmask): Rename arch13 to z15.
8139 (s390_get_unit_mask): Likewise.
8140 (s390_is_fpd): Likewise.
8141 (s390_is_fxd): Likewise.
8142 * config/s390/s390.h (enum processor_flags): Likewise.
8143 * config/s390/s390.md: Likewise.
8144 * config/s390/vector.md: Likewise.
8145 * config/s390/vx-builtins.md: Likewise.
8146 * config/s390/s390.opt: Add z15 to processor_type value.
8147
8148 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
8149
8150 PR target/91035
8151 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
8152 prototype.
8153 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
8154 ("split_stack_data", "split_stack_call")
8155 ("split_stack_call_<mode>", "split_stack_cond_call")
8156 ("split_stack_cond_call_<mode>"): Remove.
8157 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
8158 insn definition.
8159 * config/s390/s390.c (s390_output_split_stack_data): New function.
8160 (s390_expand_split_stack_prologue): Use the merged expander.
8161
8162 2019-10-09 Martin Sebor <msebor@redhat.com>
8163
8164 PR tree-optimization/90879
8165 * builtins.c (check_access): Avoid using maxbound when null.
8166 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
8167 * doc/invoke.texi (-Wstring-compare): Document new warning option.
8168 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
8169 conditional.
8170 (get_range_strlen): Overwrite initial maxbound when non-null.
8171 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
8172 changes.
8173 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
8174 (used_only_for_zero_equality): New function.
8175 (handle_builtin_memcmp): Call it.
8176 (determine_min_objsize): Return an integer instead of tree.
8177 (get_len_or_size, strxcmp_eqz_result): New functions.
8178 (maybe_warn_pointless_strcmp): New function.
8179 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
8180 between a longer string and a smaller array.
8181 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
8182
8183 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
8184
8185 * config/darwin.c (darwin_override_options): Make the check for
8186 Objective-C ABI version more specific for 64bit code.
8187
8188 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
8189
8190 * config/darwin.c (machopic_indirect_data_reference): Set flag to
8191 indicate that the new symbol is an indirection.
8192 (machopic_indirect_call_target): Likewise.
8193 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
8194 (MACHO_SYMBOL_INDIRECTION_P): New.
8195 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
8196
8197 2019-10-08 Jason Merrill <jason@redhat.com>
8198
8199 * doc/invoke.texi: Document -fconcepts-ts.
8200
8201 2019-10-09 Richard Biener <rguenther@suse.de>
8202
8203 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
8204 allow stmts other than GIMPLE_ASSIGN in nested cycles.
8205
8206 2019-10-08 Richard Biener <rguenther@suse.de>
8207
8208 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
8209 (_stmt_vec_info::force_single_cycle): Likewise.
8210 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
8211 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
8212 * tree-vect-loop.c (vectorizable_reduction): Set
8213 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
8214 (vect_transform_reduction): Use them to remove redundant code.
8215 (vect_transform_cycle_phi): Likewise.
8216
8217 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
8218
8219 PR tree-optimization/90836
8220 * match.pd (popcount): New pattern.
8221
8222 2019-10-08 Martin Sebor <msebor@redhat.com>
8223
8224 PR middle-end/92026
8225 PR middle-end/92014
8226 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
8227 again once nbytes has been set. Set the access size when not yet set.
8228
8229 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
8230
8231 * config/darwin.c (machopic_select_section): Remove dead code for
8232 old Objective-C section selection method, replace with unreachable.
8233
8234 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
8235
8236 * config/darwin.c (machopic_indirect_data_reference): Check for
8237 required indirections before making direct access to defined
8238 values.
8239 (machopic_output_indirection): Place the indirected pointes for
8240 required indirections into the non-lazy symbol pointers section.
8241 (darwin_encode_section_info):
8242 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
8243 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
8244
8245 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
8246
8247 PR target/91994
8248 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
8249 instead of ALL_SSE_REG to check if function call preserves some
8250 256-bit SSE registers.
8251
8252 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8253
8254 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
8255 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
8256 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
8257
8258 2019-10-08 Richard Biener <rguenther@suse.de>
8259
8260 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
8261 (_stmt_vec_info::is_reduc_info): Add.
8262 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
8263 (vectorizable_condition): Remove.
8264 (vectorizable_shift): Likewise.
8265 (vectorizable_reduction): Adjust.
8266 (info_for_reduction): New.
8267 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
8268 (vect_analyze_scalar_cycles_1): ... here.
8269 (vect_analyze_loop_operations): Adjust.
8270 (needs_fold_left_reduction_p): Simplify for single caller.
8271 (vect_is_simple_reduction): Likewise. Remove stmt restriction
8272 for nested cycles not part of double reductions.
8273 (vect_model_reduction_cost): Pass in the reduction type.
8274 (info_for_reduction): New function.
8275 (vect_create_epilog_for_reduction): Use it, access reduction
8276 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
8277 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
8278 (vectorize_fold_left_reduction): Remove pointless assert.
8279 (vectorizable_reduction): Analyze the full reduction when
8280 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
8281 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
8282 stmt code-generation to vectorizable_* in most cases. Verify
8283 code-generation only for cases handled by
8284 vect_transform_reductuon.
8285 (vect_transform_reduction): Use info_for_reduction to get at
8286 reduction meta. Simplify.
8287 (vect_transform_cycle_phi): Likewise.
8288 (vectorizable_live_operation): Likewise.
8289 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
8290 at the PHI node for STMT_VINFO_REDUC_TYPE.
8291 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
8292 longer necessary code.
8293 * tree-vect-stmts.c (vectorizable_shift): Make static again.
8294 (vectorizable_condition): Likewise. Get at reduction related
8295 info via info_for_reduction.
8296 (vect_analyze_stmt): Adjust.
8297 (vect_transform_stmt): Likewise.
8298 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
8299 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
8300
8301 2019-10-08 Joseph Myers <joseph@codesourcery.com>
8302
8303 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
8304 -fno-fp-int-builtin-inexact default for C2X.
8305
8306 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8307 Richard Biener <rguenther@suse.de>
8308
8309 PR tree-optimization/91532
8310 * tree-if-conv.c: Include tree-ssa-dse.h.
8311 (ifcvt_local_dce): Change param from bb to loop,
8312 and call dse_classify_store.
8313 (tree_if_conversion): Pass loop instead of loop->header as arg
8314 to ifcvt_local_dce.
8315 * tree-ssa-dse.c: Include tree-ssa-dse.h.
8316 (delete_dead_or_redundant_assignment): Remove static qualifier from
8317 declaration, and add prototype in tree-ssa-dse.h.
8318 (dse_store_status): Move to tree-ssa-dse.h.
8319 (dse_classify_store): Remove static qualifier and add new tree param
8320 stop_at_vuse, and add prototype in tree-ssa-dse.h.
8321 * tree-ssa-dse.h: New header.
8322
8323 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
8324
8325 * config/darwin.c (machopic_output_indirection): Don't put
8326 hidden symbol indirections into the .data section, use the
8327 non-lazy symbol pointers section as normal.
8328 (darwin_encode_section_info): Record if a symbol is hidden.
8329 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
8330 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
8331
8332 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
8333
8334 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
8335 predicates instead of accessing bits directly.
8336 (machopic_indirect_call_target): Likewise.
8337 (machopic_output_indirection): Likewise.
8338 (darwin_encode_section_info): Improve description. Use renamed
8339 symbol flags. Use predicate macros for variables and functions.
8340 * config/darwin.h:
8341 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
8342 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
8343 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
8344 (MACHO_SYMBOL_VARIABLE_P): New.
8345 (MACHO_SYMBOL_DEFINED_P):New.
8346 (MACHO_SYMBOL_STATIC_P): New.
8347 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
8348 (SYMBOL_FLAG_SUBT_DEP): New.
8349 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
8350
8351 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8352
8353 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
8354 (msp430_expand_epilogue): Likewise.
8355 * config/msp430/predicates.md: Likewise.
8356 * config/msp430/msp430.md: Likewise.
8357 Replace blocks of 8 spaces with tabs.
8358
8359 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8360
8361 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
8362 * config/msp430/msp430.c (msp430_split_addsi): New.
8363 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
8364 a block of C code for splitting addsi.
8365
8366 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
8367
8368 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
8369 ix86_expand_rounddf_32): Reorder functions.
8370 * config/i386/i386-protos.h: Update.
8371
8372 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8373
8374 * config.in: Regenerate.
8375 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
8376 Add new "Yx" constraint.
8377 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
8378 function.
8379 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
8380 prototype.
8381 * config/msp430/msp430.c (msp430_option_override): Allow the lower
8382 code/data region to be selected in the small memory model.
8383 (msp430_section_attr): Don't warn if the "section" and "lower"
8384 attributes are used together.
8385 (msp430_handle_generic_attribute): Likewise.
8386 (msp430_var_in_low_mem): New function.
8387 (TARGET_ENCODE_SECTION_INFO): Define.
8388 (msp430_encode_section_info): New function.
8389 (gen_prefix): Return early in the small memory model.
8390 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
8391 ".lower" prefix if -m{code,data}-region=lower have been passed.
8392 (msp430_output_aligned_decl_common): Emit common symbols when
8393 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
8394 set.
8395 (TARGET_ASM_FILE_END): Define.
8396 (msp430_file_end): New function.
8397 (msp430_do_not_relax_short_jumps): Allow relaxation when
8398 function will be in the lower region.
8399 (msp430_op_not_in_high_mem): New function.
8400 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
8401 the 'X' operand selector.
8402 Clarify comment for 'x' operand selector.
8403 * config/msp430/msp430.h (LINK_SPEC): Propagate
8404 -m{code,data}-region to the linker via spec function
8405 msp430_propagate_region_opt.
8406 (msp430_propagate_region_opt): New prototype.
8407 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
8408 (SYMBOL_FLAG_LOW_MEM): Define.
8409 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
8410 selector.
8411 (zero_extendqihi2): Fix operand number used by "%X" selector.
8412 (zero_extendqisi2): Likewise.
8413 (zero_extendhisi2): Likewise.
8414 (movqi): Use "Yx" constraint in place of "%X" operand selector.
8415 (movhi): Likewise.
8416 (addqi3): Likewise.
8417 (addhi3): Likewise.
8418 (addsi3): Likewise.
8419 (addhi3_cy): Likewise.
8420 (addchi4_cy): Likewise.
8421 (subqi3): Likewise.
8422 (subhi3): Likewise.
8423 (subsi3): Likewise.
8424 (bic<mode>3): Likewise.
8425 (and<mode>3): Likewise.
8426 (ior<mode>3): Likewise.
8427 (xor<mode>3): Likewise.
8428 (slli_1): Add missing "%X" operand selector.
8429 (slll_1): Likewise.
8430 (slll_2): Likewise.
8431 (srai_1): Likewise.
8432 (sral_1): Likewise.
8433 (sral_2): Likewise.
8434 (srli_1): Likewise.
8435 (srll_1): Likewise.
8436 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
8437 selector.
8438 (cbranchhi4_real): Likewise.
8439 (cbranchqi4_reversed): Likewise.
8440 (cbranchhi4_reversed): Likewise.
8441 (*bitbranch<mode>4): Likewise.
8442 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
8443 * config/msp430/msp430.opt (mcode-region=): Set default to
8444 MSP430_REGION_LOWER. Improve docstring.
8445 (mdata-region=): Likewise.
8446 (muse-lower-region-prefix): New option.
8447 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
8448 mdata-region=none multilib.
8449 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
8450 mdata-region=none multilib.
8451 MULTILIB_EXCEPTIONS: Remove.
8452 MULTILIB_REQUIRED: Define.
8453 * configure: Regenerate.
8454 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
8455 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
8456 * doc/extend.texi: Clarify comment for {upper,lower,either}
8457 function attributes.
8458 Add separate description for "lower" variable attribute.
8459
8460 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
8461
8462 PR target/77918
8463 * optabs-tree.c (vcond_icode_p): New function.
8464 (vcond_eq_icode_p): Likewise.
8465 (expand_vec_cond_expr_p): Use vcond_icode_p and
8466 vcond_eq_icode_p.
8467 * optabs.c (can_vcond_compare_p): New function.
8468 * optabs.h (can_vcond_compare_p): Likewise.
8469
8470 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
8471
8472 PR target/77918
8473 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
8474 caller passes a non-trapping condition.
8475 (is_gimple_condexpr): Allow trapping conditions.
8476 (is_gimple_condexpr_1): New helper function.
8477 (is_gimple_condexpr_for_cond): New function, acts like old
8478 is_gimple_condexpr.
8479 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
8480 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
8481 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
8482 * gimplify.c (gimplify_cond_expr): Use
8483 is_gimple_condexpr_for_cond.
8484 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
8485 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
8486 VEC_COND_EXPR.
8487 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
8488 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
8489 is_gimple_condexpr_for_cond, remove pointless tmp check
8490 (forward_propagate_into_cond): Remove pointless tmp check.
8491
8492 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
8493
8494 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
8495 match that of other gsi_next_* functions. Adjust the comment.
8496 (gsi_start_nonvirtual_phis): New function.
8497 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
8498 gsi_next_nonvirtual_phi accordingly. (No functional change.)
8499
8500 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
8501
8502 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
8503 setjmp situation here. Fix a verb's ending: "the exact variables or
8504 elements for which there are warnings depends" -> "... depend".
8505
8506 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
8507
8508 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
8509
8510 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
8511
8512 * ipa-prop.c (ipa_vr::nonzero_p): New.
8513 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
8514 non-zero range.
8515 * ipa-prop.h (class ipa_vr): Add nonzero_p.
8516 * tree-vrp.c (range_has_numeric_bounds_p): New.
8517 (range_int_cst_p): Use range_has_numeric_bounds_p.
8518 (get_range_op_handler): New.
8519 (supported_types_p): New.
8520 (defined_ranges_p): New.
8521 (drop_undefines_to_varying): New.
8522 (range_fold_binary_symbolics_p): New.
8523 (range_fold_unary_symbolics_p): New.
8524 (range_fold_unary_expr): Extract out into above functions.
8525 (range_fold_binary_expr): Same.
8526 (value_range_base::normalize_addresses): New.
8527 (value_range_base::normalize_symbolics): Normalize addresses.
8528 * tree-vrp.h (class value_range_base): Add normalize_addresses.
8529
8530 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
8531
8532 * tree-vrp.c (value_range_base::singleton_p): Use
8533 value_range_base::num_pairs instead of vrp_val_is* to check
8534 if a range has one sub-range.
8535
8536 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
8537
8538 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
8539 DEF is not a true earlyclobber but is tied to a specific input
8540 operand, and so is effectively earlyclobber wrt inputs that have
8541 different values.
8542 (make_early_clobber_and_input_conflicts): Pass this case to the above.
8543
8544 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
8545
8546 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
8547 (pod_mode): Mark operators likewise.
8548 (scalar_int_mode): Mark non-default constructors and
8549 operators with CONSTEXPR.
8550 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
8551 (fixed_size_mode): Likewise.
8552
8553 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
8554
8555 PR target/91994
8556 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
8557 and wrap the unspec_volatile in a parallel.
8558 (*avx_vzeroupper): New define_insn. Use a match_parallel around
8559 the unspec_volatile.
8560 * config/i386/predicates.md (vzeroupper_pattern): Expect the
8561 unspec_volatile to be wrapped in a parallel.
8562 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
8563 (ix86_add_reg_usage_to_vzerouppers): New functions.
8564 (rest_of_handle_insert_vzeroupper): Use them to add register
8565 usage information to the vzeroupper instructions.
8566
8567 2019-10-07 Richard Biener <rguenther@suse.de>
8568
8569 PR tree-optimization/91975
8570 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
8571 handle invariants.
8572
8573 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
8574
8575 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
8576 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
8577
8578 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
8579
8580 * config/darwin.c (darwin_override_options): Adjust objective-c
8581 ABI version error messages to avoid punctuation and contracted
8582 negations.
8583
8584 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
8585
8586 * ipa-inline.c: Fix type; compute size rather than self_size
8587 for size of caller function.
8588
8589 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
8590
8591 PR target/59888
8592 * config/darwin.c (darwin_rodata_section): Add relocation flag,
8593 choose const_data section for constants with relocations.
8594 (machopic_select_section): Pass relocation flag to
8595 darwin_rodata_section ().
8596
8597 2019-10-05 Jakub Jelinek <jakub@redhat.com>
8598
8599 PR tree-optimization/91734
8600 * generic-match-head.c: Include fold-const-call.h.
8601 * match.pd (sqrt(x) cmp c): Check the boundary value and
8602 in case inexact computation of c*c affects comparison of the boundary,
8603 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
8604 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
8605 for -frounding-math. For c2, try the next smaller or larger floating
8606 point constant depending on comparison code and if it has the same
8607 sqrt as c2, use it instead of c2.
8608
8609 2019-10-04 Martin Sebor <msebor@redhat.com>
8610
8611 PR middle-end/91977
8612 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
8613 MEM_REF right operand. Avoid failing for MEM_REF assignments from
8614 uninitialized objects.
8615
8616 2019-10-04 Martin Sebor <msebor@redhat.com>
8617
8618 * builtins.c (compute_objsize): Add an argument.
8619 * tree-object-size.c (addr_object_size): Same.
8620 (compute_builtin_object_size): Same.
8621 * tree-object-size.h (compute_builtin_object): Same.
8622
8623 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
8624
8625 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
8626
8627 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
8628
8629 * match.pd (sinh (x) / cosh (x)): New simplification rule.
8630
8631 2019-10-04 Martin Jambor <mjambor@suse.cz>
8632
8633 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
8634 fntype when switching to calling memcpy instead of memset.
8635
8636 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8637
8638 * hash-table.h (hash_table::empty_slow): Don't assign
8639 size_t values to int variables.
8640
8641 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8642
8643 * expr.c (convert_mode_scalar): Remove shadowing local var.
8644 (emit_block_move): Rename local vars.
8645 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
8646 (emit_push_insn): Rename local vars.
8647 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
8648 shadowing local vars.
8649 (store_constructor): Remove shadowing local vars. Rename local var.
8650 (store_field, expand_cond_expr_using_cmove,
8651 expand_expr_real_2): Remove shadowing local vars.
8652 (expand_expr_real_1,
8653 do_store_flag): Remove shadowing local vars. Rename local vars.
8654
8655 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8656
8657 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
8658
8659 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8660
8661 * genmatch.c (commutate): Rename local var.
8662 (lower_cond): Reuse local var.
8663 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
8664 dt_operand::gen, dt_operand::gen_gimple_expr,
8665 dt_simplify::gen): Add a param. Rename generated vars.
8666 (decision_tree::insert_operand,
8667 (capture_info::walk_match, capture_info::walk_result,
8668 capture_info::walk_c_expr): Rename local vars.
8669 (expr::gen_transform): Rename generated vars.
8670 Use snprintf. Rename local vars.
8671 (capture::gen_transform, dt_operand::get_name,
8672 dt_operand::gen_opname): Rename generated vars.
8673 (write_predicate): Adjust call to gen_kids.
8674 (parser::get_internal_capture_id): Rename generated vars.
8675 (parser::parse_expr): Rename local vars.
8676 (parser::parse_if): Remove local var.
8677 (parser::parse_pattern, add_operator): Rename local vars.
8678
8679 2019-10-04 Joseph Myers <joseph@codesourcery.com>
8680
8681 * builtins.def (DEF_C2X_BUILTIN): New macro.
8682 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
8683 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
8684 (strndup): Use DEF_C2X_BUILTIN.
8685 * coretypes.h (enum function_class): Add function_c2x_misc.
8686
8687 2019-10-04 Maya Rashish <coypu@sdf.org>
8688
8689 * ira-color.c (update_costs_from_allocno): Call
8690 ira_init_register_move_cost_if_necessary.
8691
8692 2019-10-04 Jeff Law <law@redhat.com>
8693
8694 * config/h8300/h8300.md (cpymemsi): Disable.
8695 (movmd, movmd_internal_<mode>, movstr, movsd):
8696 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
8697 (movmd splitter, movsd splitter): Likewise.
8698
8699 * range-op.cc (range_tests): Avoid two tests when ints and
8700 shorts are the same size.
8701
8702 2019-10-04 Richard Biener <rguenther@suse.de>
8703
8704 PR lto/91968
8705 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
8706 BLOCK_VARS.
8707
8708 2019-10-04 Richard Biener <rguenther@suse.de>
8709
8710 PR tree-optimization/91982
8711 * tree-vect-loop.c (vectorizable_live_operation): Also guard
8712 against EXTRACT_LAST_REDUCTION.
8713 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
8714
8715 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
8716
8717 * range-op.o (value_range_from_overflowed_bounds): Rename from
8718 adjust_overflow_bound.
8719 (value_range_with_overflow): Rename from
8720 create_range_with_overflow.
8721 (create_possibly_reversed_range): Adjusted for above renames.
8722 (operator_*::wi_fold): Same.
8723 (cross_product_operator::wi_cross_productor): Same.
8724
8725 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8726
8727 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
8728 -Wshadow=compatible-local): Fix description.
8729 Add an example where -Wshadow=compatible-local does not
8730 warn.
8731
8732 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
8733
8734 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
8735
8736 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
8737 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
8738
8739 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
8740
8741 * expr.c (emit_block_move_hints): Slightly cleaner fix to
8742 can_move_by_pieces issue.
8743
8744 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
8745
8746 PR target/87243
8747 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
8748 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
8749 is available and the user has not set one on the command line.
8750
8751 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
8752
8753 PR target/91769
8754 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
8755 instead of REGNO equality check on addr.reg.
8756
8757 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
8758
8759 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
8760 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
8761 * doc/invoke.texi (inline-heuristics-hint-percent,
8762 inline-heuristics-hint-percent-O2): Document.
8763 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
8764 hint attribute.
8765 (can_inline_edge_by_limits_p): Use it.
8766
8767 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
8768
8769 * config/arm/arm.c (arm_print_value): Use real_to_decimal
8770 to print CONST_DOUBLEs.
8771
8772 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
8773
8774 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
8775 * ipa-prop.c (ipcp_free_transformation_sum): New function.
8776 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
8777
8778 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
8779
8780 * Makefile.in (OBJS): Add range.o and range-op.o.
8781 Remove wide-int-range.o.
8782 * function-tests.c (test_ranges): New.
8783 (function_tests_c_tests): Call test_ranges.
8784 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
8785 range_fold_unary_expr instead of extract_range_from_unary_expr.
8786 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
8787 * range-op.cc: New file.
8788 * range-op.h: New file.
8789 * range.cc: New file.
8790 * range.h: New file.
8791 * selftest.h (range_tests): New prototype.
8792 * ssa.h: Include range.h.
8793 * tree-vrp.c (value_range_base::value_range_base): New
8794 constructors.
8795 (value_range_base::singleton_p): Do not call
8796 ranges_from_anti_range until sure we will need to.
8797 (value_range_base::type): Rename gcc_assert to
8798 gcc_checking_assert.
8799 (vrp_val_is_max): New argument.
8800 (vrp_val_is_min): Same.
8801 (wide_int_range_set_zero_nonzero_bits): Move from
8802 wide-int-range.cc.
8803 (extract_range_into_wide_ints): Remove.
8804 (extract_range_from_multiplicative_op): Remove.
8805 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
8806 from extract_range_from_binary_expr.
8807 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
8808 from extract_range_from_binary_expr.
8809 (extract_range_from_binary_expr): Remove.
8810 (normalize_for_range_ops): New.
8811 (range_fold_binary_expr): New.
8812 (range_fold_unary_expr): New.
8813 (value_range_base::num_pairs): New.
8814 (value_range_base::lower_bound): New.
8815 (value_range_base::upper_bound): New.
8816 (value_range_base::upper_bound): New.
8817 (value_range_base::contains_p): New.
8818 (value_range_base::invert): New.
8819 (value_range_base::union_): New.
8820 (value_range_base::intersect): New.
8821 (range_compatible_p): New.
8822 (value_range_base::operator==): New.
8823 (determine_value_range_1): Call range_fold_*expr instead of
8824 extract_range_from_*expr.
8825 * tree-vrp.h (class value_range_base): Add new constructors.
8826 Add methods for union_, intersect, operator==, contains_p,
8827 num_pairs, lower_bound, upper_bound, invert.
8828 (vrp_val_is_min): Add handle_pointers argument.
8829 (vrp_val_is_max): Same.
8830 (extract_range_from_unary_expr): Remove.
8831 (extract_range_from_binary_expr): Remove.
8832 (range_fold_unary_expr): New.
8833 (range_fold_binary_expr): New.
8834 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
8835 range_fold_binary_expr instead of extract_range_from_binary_expr.
8836 (vr_values::extract_range_basic): Same.
8837 (vr_values::extract_range_from_unary_expr): Call
8838 range_fold_unary_expr instead of extract_range_from_unary_expr.
8839 * wide-int-range.cc: Remove.
8840 * wide-int-range.h: Remove.
8841
8842 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
8843
8844 * config/rs6000/rs6000.c (mem_operand_gpr): Use
8845 SIGNED_16BIT_OFFSET_EXTRA_P macro.
8846 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
8847 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
8848 macro.
8849
8850 2019-10-02 Joseph Myers <joseph@codesourcery.com>
8851
8852 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
8853 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
8854 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
8855 * glimits.h: Likewise.
8856
8857 2019-10-03 Jakub Jelinek <jakub@redhat.com>
8858
8859 PR rtl-optimization/91976
8860 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
8861 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
8862 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
8863
8864 2019-10-02 Martin Sebor <msebor@redhat.com>
8865
8866 PR tree-optimization/80936
8867 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
8868
8869 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
8870
8871 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
8872 instead of reg_class_contents[ALL_REGS].
8873
8874 2019-09-30 Jason Merrill <jason@redhat.com>
8875
8876 Add some hash_map_safe_* functions like vec_safe_*.
8877 * hash-map.h (default_hash_map_size): New variable.
8878 (create_ggc): Use it as default argument.
8879 (hash_map_maybe_create, hash_map_safe_get)
8880 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
8881
8882 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
8883
8884 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
8885 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
8886 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
8887 (can_inline_edge_by_limits_p): Use it.
8888 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
8889 (want_inline_small_function_p): Use O2 bounds.
8890 (edge_badness): LIkewise.
8891 * opts.c (default_options): Add OPT_finline_functions.
8892 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
8893 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
8894 New parameters.
8895 * doc/invoke.texi (-finline-functions): Update documentation.
8896 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
8897 inline-min-speedup-O2): Document.
8898 (early-inlining-insns-O2): Simplify docs.
8899
8900 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
8901
8902 PR rtl-optimization/87047
8903 * ifcvt.c (average_cost): New static function. Use it...
8904 (noce_process_if_block): ... here.
8905
8906 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
8907
8908 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
8909 * config/rs6000/rs6000-string.c (expand_block_move): Add
8910 might_overlap parm.
8911 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
8912 (cpymemsi): Add might_overlap parm to expand_block_move() call.
8913
8914 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
8915
8916 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
8917 (expand_builtin_memcpy): Use might_overlap parm.
8918 (expand_builtin_mempcpy_args): Use might_overlap parm.
8919 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
8920 (expand_builtin_memory_copy_args): Add might_overlap parm.
8921 * expr.c (emit_block_move_via_cpymem): Rename to
8922 emit_block_move_via_pattern, add might_overlap parm, use cpymem
8923 or movmem optab as appropriate.
8924 (emit_block_move_hints): Add might_overlap parm, do the right
8925 thing for might_overlap==true.
8926 * expr.h (emit_block_move_hints): Update prototype.
8927
8928 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
8929
8930 * tree-eh.h (unsplit_eh_edges): Declare.
8931 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
8932 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
8933 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
8934 (struct store_immediate_info): Add lp_nr field.
8935 (store_immediate_info::store_immediate_info): Add NR2 parameter and
8936 initialize lp_nr with it.
8937 (struct merged_store_group): Add lp_nr and only_constants fields.
8938 (merged_store_group::merged_store_group): Initialize them.
8939 (merged_store_group::can_be_merged_into): Deal with them.
8940 (pass_store_merging): Rename terminate_and_release_chain into
8941 terminate_and_process_chain.
8942 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
8943 renaming and remove useless assertions.
8944 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
8945 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
8946 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
8947 instead of always recomputing it and compare lp_nr.
8948 (imm_store_chain_info::output_merged_store): If the group is in an
8949 active EH region, register new stores if they can throw. Moreover,
8950 if the insertion has created new basic blocks, adjust the PHI nodes
8951 of the post landing pad.
8952 (imm_store_chain_info::output_merged_stores): If the original stores
8953 are in an active EH region, deregister them.
8954 (lhs_valid_for_store_merging_p): Prettify.
8955 (adjust_bit_pos): New function extracted from...
8956 (mem_valid_for_store_merging): ...here. Use it for the base address
8957 and also for the offset if it is the addition of a constant.
8958 (lp_nr_for_store): New function.
8959 (pass_store_merging::process_store): Change return type to bool.
8960 Call lp_nr_for_store to initialize the store info. Propagate the
8961 return status of various called functions to the return value.
8962 (store_valid_for_store_merging_p): New predicate.
8963 (enum basic_block_status): New enumeration.
8964 (get_status_for_store_merging): New function.
8965 (pass_store_merging::execute): If the function can throw and catch
8966 non-call exceptions, unsplit the EH edges on entry and clean up the
8967 CFG on exit if something changed. Call get_status_for_store_merging
8968 for every basic block and keep the chains open across basic blocks
8969 when possible. Terminate and process open chains at the end, if any.
8970
8971 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
8972
8973 * reginfo.c (globalize_reg): Fix shadowed variable in
8974 function_abis walk.
8975
8976 2019-10-02 Martin Jambor <mjambor@suse.cz>
8977
8978 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
8979 do not compute some stuff when set.
8980 (cgraph_node::create_edge): Likewise.
8981 (cgraph_node::create_indirect_edge): Renamed last parameter to
8982 coning_p and flipped its meaning, don't even calculate
8983 inline_failed when set.
8984 * cgraph.h (cgraph_node::create_edge): Add new parameter.
8985 (symbol_table::::create_edge): Likewise.
8986 (cgraph_node::create_indirect_edge): Rename last parameter, flip
8987 the default value.
8988 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
8989 call graph edge creating functions.
8990
8991 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
8992
8993 PR c++/91222
8994 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
8995 namespace types.
8996
8997 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
8998
8999 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
9000
9001 2019-10-02 Richard Biener <rguenther@suse.de>
9002
9003 * tree-vectorizer.h (vect_transform_reduction): Declare.
9004 * tree-vect-stmts.c (vect_transform_stmt): Use it.
9005 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
9006 stmt transform to ...
9007 (vect_transform_reduction): ... this.
9008
9009 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
9010
9011 * omp-low.c (lower_omp_target): Dereference optional argument
9012 to work with the right pointer.
9013
9014 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
9015
9016 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
9017 false.
9018 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
9019 * langhooks.h (omp_is_optional_argument): New hook.
9020 * omp-general.c (omp_is_optional_argument): New.
9021 * omp-general.h (omp_is_optional_argument): New declaration.
9022 * omp-low.c (lower_omp_target): Create temporary for received value
9023 and take the address for new_var if the original variable was a
9024 DECL_BY_REFERENCE. Use size of referenced object when a
9025 pass-by-reference optional argument used as argument to firstprivate.
9026
9027 2019-10-02 Jakub Jelinek <jakub@redhat.com>
9028
9029 PR tree-optimization/91940
9030 * tree-vect-patterns.c: Include tree-vector-builder.h and
9031 vec-perm-indices.h.
9032 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
9033 unpromoting the argument back to uint16_t, or by converting into a
9034 rotate, or into shifts plus ior.
9035
9036 2019-10-02 Richard Biener <rguenther@suse.de>
9037
9038 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
9039 New.
9040 (vect_transform_cycle_phi): Declare.
9041 * tree-vect-stmts.c (vect_transform_stmt): Call
9042 vect_transform_cycle_phi.
9043 * tree-vect-loop.c (vectorizable_reduction): Split out
9044 PHI transformation stage to ...
9045 (vect_transform_cycle_phi): ... here.
9046
9047 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9048
9049 PR middle-end/91957
9050 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
9051 eliminable registers.
9052 (make_hard_regno_live): Likewise, and don't make them live.
9053
9054 2019-10-01 David Malcolm <dmalcolm@redhat.com>
9055
9056 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
9057 Call pp_emit_prefix.
9058 (layout::print_source_line): Likewise.
9059 (layout::start_annotation_line): Likewise.
9060 (diagnostic_show_locus): Remove call to temporarily clear the
9061 prefix.
9062 (selftest::test_one_liner_fixit_remove): Add test coverage for the
9063 interaction of pp_set_prefix with rulers and fix-it hints.
9064 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
9065 prefix when calling diagnostic_show_locus, rather than destroying
9066 it afterwards.
9067 (print_parseable_fixits): Temporarily clear prefix.
9068 * pretty-print.c (pp_format): Save and restore line_length, rather
9069 than assuming it is zero.
9070 (pp_output_formatted_text): Remove assertion that line_length is
9071 zero.
9072
9073 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9074
9075 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
9076 Rename to ...
9077 (nonoverlapping_refs_since_match_p): ... this; handle also
9078 ARRAY_REFs.
9079 (alias_stats): Update stats.
9080 (dump_alias_stats): Likewise.
9081 (cheap_array_ref_low_bound): New function.
9082 (aliasing_matching_component_refs_p): Add partial_overlap
9083 argument;
9084 pass it to nonoverlapping_refs_since_match_p.
9085 (aliasing_component_refs_walk): Update call of
9086 aliasing_matching_component_refs_p
9087 (nonoverlapping_array_refs_p): New function.
9088 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
9089 indirect_refs_may_alias_p): Update calls of
9090 nonoverlapping_refs_since_match_p.
9091
9092 2019-10-01 Maya Rashish <coypu@sdf.org>
9093
9094 PR target/85401
9095 * ira-color.c (allocno_copy_cost_saving): Call
9096 ira_init_register_move_cost_if_necessary.
9097
9098 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
9099
9100 * Makefile.in (gnat_install_lib): New variable.
9101 * configure.ac: Substitute it.
9102 * configure: Regenerate.
9103
9104 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9105
9106 PR lto/91222
9107 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
9108 is matched with non-C++ type
9109
9110 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9111
9112 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
9113 after local CSE.
9114
9115 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9116
9117 * doc/invoke.texi (early-inlining-insns-O2): Document.
9118 (early-inlining-insns): Update.
9119 * params.def (early-inlining-insns-O2): New bound.
9120 (early-inlining-insns): Update docs.
9121 * ipa-inline.c (want_early_inline_function_p): Use new bound.
9122
9123 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
9124
9125 PR target/88562
9126 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
9127 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
9128 a memory access insn.
9129
9130 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
9131
9132 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
9133 vpmsumd.
9134
9135 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
9136
9137 PR target/77918
9138 * config/s390/s390.c (s390_expand_vec_compare): Use
9139 gen_vec_cmpordered and gen_vec_cmpunordered.
9140 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
9141 vec_unordered): Delete.
9142 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
9143 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
9144 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
9145 (vec_cmp<code>): Generic dispatcher.
9146
9147 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
9148
9149 PR target/77918
9150 * config/s390/vector.md (V_HW): Add V1TI in order to make
9151 vcond$a$b generate vcondv1tiv1tf.
9152
9153 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9154
9155 PR rtl-optimization/91948
9156 * ira-build.c (ira_create_allocno): Initialize
9157 ALLOCNO_CROSSED_CALLS_ABIS.
9158 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
9159 than regno to ira_need_caller_save_p.
9160
9161 2019-10-01 Alexandre Oliva <oliva@adacore.com>
9162
9163 * config/i386/i386-options.c
9164 (ix86_recompute_optlev_based_flags): New, moved out of...
9165 (ix86_option_override_internal): ... this. Call it.
9166 (ix86_override_options_after_change): Call it here too.
9167
9168 PR debug/91507
9169 * dwarf2out.c (override_type_for_decl_p): New.
9170 (gen_variable_die): Use it.
9171
9172 2019-10-01 Richard Biener <rguenther@suse.de>
9173
9174 * tree-vect-loop.c (vectorizable_reduction): Move variables
9175 to where they are used.
9176
9177 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9178
9179 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
9180 (build_def_use): Use PC instead of CC0 in a comment.
9181
9182 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9183
9184 * rtl.def (CLOBBER_HIGH): Delete.
9185 * doc/rtl.texi (clobber_high): Remove documentation.
9186 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
9187 (reg_is_clobbered_by_clobber_high): Delete.
9188 (gen_hard_reg_clobber_high): Likewise.
9189 * alias.c (record_set): Remove CLOBBER_HIGH handling.
9190 * cfgexpand.c (expand_gimple_stmt): Likewise.
9191 * combine-stack-adj.c (single_set_for_csa): Likewise.
9192 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
9193 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
9194 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
9195 * cse.c (invalidate_reg): Remove clobber_high parameter.
9196 (invalidate): Update call accordingly.
9197 (canonicalize_insn): Remove CLOBBER_HIGH handling.
9198 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
9199 (count_reg_usage, insn_live_p): Likewise.
9200 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
9201 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
9202 (cselib_invalidate_rtx_note_stores): Update call accordingly.
9203 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
9204 (cselib_invalidate_regno, cselib_process_insn): Likewise.
9205 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
9206 (mark_nonreg_stores_2): Likewise.
9207 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
9208 (df_get_call_refs): Likewise.
9209 * dwarf2out.c (mem_loc_descriptor): Likewise.
9210 * emit-rtl.c (verify_rtx_sharing): Likewise.
9211 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
9212 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
9213 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
9214 * genemit.c (gen_exp, gen_insn): Likewise.
9215 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
9216 * haifa-sched.c (haifa_classify_rtx): Likewise.
9217 * ira-build.c (create_insn_allocnos): Likewise.
9218 * ira-costs.c (scan_one_insn): Likewise.
9219 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
9220 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
9221 * jump.c (mark_jump_label_1): Likewise.
9222 * lra-int.h (lra_insn_reg::clobber_high): Delete.
9223 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
9224 handling.
9225 (mark_not_eliminable): Likewise.
9226 * lra-lives.c (process_bb_lives): Likewise.
9227 * lra.c (new_insn_reg): Remove clobber_high parameter.
9228 (collect_non_operand_hard_regs): Likewise. Update call to new
9229 insn_reg. Remove CLOBBER_HIGH handling.
9230 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
9231 to collect_non_operand_hard_regs.
9232 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
9233 Update call to new_insn_reg.
9234 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
9235 * postreload.c (reload_cse_simplify, reload_combine_note_use)
9236 (move2add_note_store): Likewise.
9237 * print-rtl.c (print_pattern): Likewise.
9238 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
9239 (if_test_bypass_p): Likewise.
9240 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
9241 * reginfo.c (reg_scan_mark_refs): Likewise.
9242 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
9243 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
9244 (forget_old_reloads_1): Likewise.
9245 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
9246 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
9247 (dbr_schedule): Likewise.
9248 * resource.c (update_live_status, mark_referenced_resources)
9249 (mark_set_resources): Likewise.
9250 * rtl.c (copy_rtx): Likewise.
9251 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
9252 (note_pattern_stores): Likewise.
9253 (reg_is_clobbered_by_clobber_high): Delete.
9254 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
9255 CLOBBER_HIGH handling.
9256
9257 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9258
9259 PR target/91452
9260 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
9261 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
9262 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9263 Handle ARM_PCS_TLSDESC.
9264 (aarch64_tlsdesc_abi_id): New function.
9265 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
9266 rtx instead of a list of clobbers and clobber_highs.
9267 (tlsdesc_small_<mode>): Update accordingly.
9268
9269 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9270
9271 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
9272 extra callee_abi argument.
9273 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
9274 Insert a CALLEE_ABI unspec into the call pattern as the second
9275 element in the PARALLEL.
9276 (aarch64_simd_call_p): Delete.
9277 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
9278 the new CALLEE_ABI element of the PARALLEL.
9279 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
9280 from the function type, if given.
9281 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
9282 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
9283 when passed the function_arg_info end marker.
9284 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
9285 final argument of gen_sibcall.
9286 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
9287 (call): Make operand 2 a const_int_operand and pass it to expand_call.
9288 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
9289 pattern.
9290 (call_value): Likewise operand 3.
9291 (sibcall): Likewise operand 2. Place the unspec before rather than
9292 after the return.
9293 (sibcall_value): Likewise operand 3.
9294 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
9295 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
9296 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
9297 constraint strings.
9298 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
9299
9300 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9301
9302 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
9303 choose_hard_reg_mode.
9304 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9305
9306 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9307
9308 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
9309 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
9310 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
9311
9312 2019-09-30 David Malcolm <dmalcolm@redhat.com>
9313
9314 * diagnostic-show-locus.c (line_label::line_label): Initialize
9315 m_has_vbar.
9316 (line_label::comparator): Reverse the sort order by m_state_idx,
9317 so that when the list is walked backwards the labels appear in
9318 order of insertion into the rich_location.
9319 (line_label::m_has_vbar): New field.
9320 (layout::print_any_labels): When dealing with multiple labels at
9321 the same line and column, only print vertical bars for the one
9322 with the highest label_line.
9323 (selftest::test_one_liner_labels): Update test for multiple labels
9324 to expect the labels to be in the order of insertion into the
9325 rich_location. Add a test for many such labels, where the column
9326 numbers are out-of-order relative to the insertion order.
9327
9328 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9329
9330 * config/i386/i386.h (ix86_frame::expensive_p): New field.
9331 (ix86_frame::expensive_count): Likewise.
9332 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
9333 of use_fast_prologue_epilogue robust against incidental changes
9334 in function size.
9335
9336 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
9337
9338 PR target/77918
9339 * config/s390/vector.md (vec_unordered<mode>): Call
9340 gen_vec_ordered<mode>.
9341
9342 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
9343
9344 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
9345 New pattern for ASRD.
9346 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
9347 * internal-fn.def (IFN_DIV_POW2): New internal function.
9348 * optabs.def (sdiv_pow2_optab): New optab.
9349 * tree-vect-patterns.c (vect_recog_divmod_pattern):
9350 Modify pattern to support new operation.
9351 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
9352 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
9353 Document new target selector.
9354
9355 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9356
9357 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
9358 to test whether we're compiling a vector PCS function and to test
9359 whether the function needs to save a particular register.
9360 Remove the vector PCS handling of df_set_regs_ever_live.
9361 (aarch64_components_for_bb): Use crtl->abi to test whether
9362 the function needs to save a particular register.
9363 (aarch64_process_components): Use crtl->abi to test whether
9364 we're compiling a vector PCS function.
9365 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
9366 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
9367
9368 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9369
9370 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
9371 Delete.
9372 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
9373 whether the block calls a function that clobbers more registers
9374 than the current function is allowed to.
9375 (aarch64_use_simple_return_insn_p): Delete.
9376 * config/aarch64/aarch64.md (simple_return): Remove condition.
9377
9378 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9379
9380 * function-abi.h (function_abi_aggregator): New class.
9381 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
9382 function.
9383 * ira.c (update_equiv_regs_prescan): New function. Call
9384 set_paradoxical_subreg here rather than...
9385 (update_equiv_regs): ...here.
9386 (ira): Call update_equiv_regs_prescan.
9387
9388 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9389
9390 * hard-reg-set.h (regs_invalidated_by_call): Only define if
9391 IN_TARGET_CODE.
9392 (call_used_or_fixed_regs): Likewise.
9393 (call_used_or_fixed_reg_p): Likewise.
9394 * reginfo.c (regs_invalidated_by_call): New macro.
9395
9396 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9397
9398 * shrink-wrap.c: Include function-abi.h.
9399 (requires_stack_frame_p): Use crtl->abi to test whether the
9400 current function can use a register without saving it first.
9401
9402 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9403
9404 * sel-sched-ir.h (_def::crosses_call): Replace with...
9405 (_def::crossed_call_abis): ..this new field.
9406 (def_list_add): Take a mask of ABIs instead of a crosses_call
9407 boolean.
9408 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
9409 of _def accordingly.
9410 * sel-sched.c: Include function-abi.h.
9411 (hard_regs_data::regs_for_call_clobbered): Delete.
9412 (reg_rename::crosses_call): Replace with...
9413 (reg_rename::crossed_call_abis): ...this new field.
9414 (fur_static_params::crosses_call): Replace with...
9415 (fur_static_params::crossed_call_abis): ...this new field.
9416 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
9417 (init_hard_regs_data): Use crtl->abi to test which registers the
9418 current function would need to save before it uses them.
9419 (mark_unavailable_hard_regs): Update handling of call-clobbered
9420 registers, using call_clobbers_in_region to find out which registers
9421 might be call-clobbered (but without taking -fipa-ra into account
9422 for now). Remove separate handling of partially call-clobbered
9423 registers.
9424 (verify_target_availability): Use crossed_call_abis instead of
9425 crosses_call.
9426 (get_spec_check_type_for_insn, find_used_regs): Likewise.
9427 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
9428
9429 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9430
9431 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
9432 function to test whether a register is fully or partly clobbered.
9433
9434 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9435
9436 * rtlanal.c: Include function-abi.h.
9437 (reg_set_p): Use insn_callee_abi to get the ABI of the called
9438 function and clobbers_reg_p to test whether the register
9439 is call-clobbered.
9440 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
9441 to get the ABI of the called function and full_reg_clobbers to
9442 get the set of fully call-clobbered registers. Warn about the
9443 pitfalls of using this mode.
9444
9445 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9446
9447 * reload.c: Include function-abi.h.
9448 (find_equiv_reg): Use clobbers_reg_p to test whether either
9449 of the equivalent registers is clobbered by a call.
9450 * reload1.c: Include function-abi.h.
9451 (reg_reloaded_call_part_clobbered): Delete.
9452 (reload): Use crtl->abi to test which registers would need
9453 saving in the prologue before use.
9454 (find_reg): Likewise.
9455 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
9456 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
9457 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
9458
9459 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9460
9461 * regrename.h (du_head::call_clobber_mask): New field.
9462 (du_head::need_caller_save_reg): Replace with...
9463 (du_head::call_abis): ...this new field.
9464 * regrename.c: Include function-abi.h.
9465 (call_clobbered_in_chain_p): New function.
9466 (check_new_reg_p): Use crtl->abi when deciding whether a register
9467 is free for use after RA. Use call_clobbered_in_chain_p to test
9468 whether a candidate register would be clobbered by a call.
9469 (find_rename_reg): Don't add call-clobber conflicts here.
9470 (rename_chains): Check call_abis instead of need_caller_save_reg.
9471 (merge_chains): Update for changes to du_head.
9472 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
9473 target. Record the ABI identifier in call_abis and the set of
9474 fully or partially clobbered registers in call_clobber_mask.
9475 Add fully-clobbered registers to hard_conflicts here rather
9476 than in find_rename_reg.
9477 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
9478 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
9479 * config/aarch64/falkor-tag-collision-avoidance.c: Include
9480 function-abi.h.
9481 * config/c6x/c6x.c: Likewise.
9482
9483 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9484
9485 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
9486 mode of the register when deciding whether it is no longer
9487 available after a call.
9488
9489 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9490
9491 * recog.c: Include function-abi.h.
9492 (peep2_find_free_register): Use crtl->abi when deciding whether
9493 a register is free for use after RA.
9494
9495 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9496
9497 * postreload-gcse.c: Include regs.h and function-abi.h.
9498 (record_opr_changes): Use insn_callee_abi to get the ABI of the
9499 call insn target. Conservatively assume that partially-clobbered
9500 registers are altered.
9501
9502 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9503
9504 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
9505 when deciding whether a register is free for use after RA.
9506 (reload_combine): Remove unnecessary use of fixed_reg_set.
9507 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
9508 call insn target. Use reg_mode when testing whether a register
9509 is no longer available.
9510
9511 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9512
9513 * target.def (return_call_with_max_clobbers): Delete.
9514 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
9515 * doc/tm.texi: Regenerate.
9516 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
9517 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
9518 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
9519 (lra_reg::call_insn): Delete.
9520 * lra.c: Include function-abi.h.
9521 (initialize_lra_reg_info_element): Don't initialize the fields above.
9522 (lra): Use crtl->abi to test whether the current function needs to
9523 save a register in the prologue. Remove special pre-inheritance
9524 lra_create_live_ranges pass for flag_ipa_ra.
9525 * lra-assigns.c: Include function-abi.h
9526 (find_hard_regno_for_1): Use crtl->abi to test whether the current
9527 function needs to save a register in the prologue.
9528 (lra_assign): Assert that registers aren't allocated to a
9529 conflicting register, rather than checking only for overlaps
9530 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
9531 and for registers that are not live across a call.
9532 * lra-constraints.c (last_call_for_abi): New variable.
9533 (full_and_partial_call_clobbers): Likewise.
9534 (setup_next_usage_insn): Remove the register from
9535 full_and_partial_call_clobbers.
9536 (need_for_call_save_p): Use call_clobbered_in_region_p to test
9537 whether the register needs a caller save.
9538 (need_for_split_p): Use full_and_partial_reg_clobbers instead
9539 of call_used_or_fixed_regs.
9540 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
9541 full_and_partial_call_clobbers.
9542 * lra-lives.c (check_pseudos_live_through_calls): Replace
9543 last_call_used_reg_set and call_insn arguments with an abi argument.
9544 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
9545 as the set of conflicting registers.
9546 (calls_have_same_clobbers_p): Delete.
9547 (process_bb_lives): Track the ABI of the last call instead of an
9548 insn/HARD_REG_SET pair. Update calls to
9549 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
9550 the set of registers that could be clobbered by an EH edge.
9551 Include partially-clobbered as well as fully-clobbered registers.
9552 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
9553 * lra-remat.c: Include function-abi.h.
9554 (call_used_regs_arr_len, call_used_regs_arr): Delete.
9555 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
9556 registers and bitmap_view to combine them into dead_regs.
9557 (call_used_input_regno_present_p): Take a function_abi argument
9558 and use it to test whether a register is call-clobbered.
9559 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
9560 call insn target. Update tje call to call_used_input_regno_present_p.
9561 (do_remat): Likewise.
9562 (lra_remat): Remove the initialization of call_used_regs_arr_len
9563 and call_used_regs_arr.
9564
9565 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9566
9567 * loop-iv.c: Include regs.h and function-abi.h.
9568 (simplify_using_initial_values): Use insn_callee_abi to get the
9569 ABI of the call insn target. Conservatively assume that
9570 partially-clobbered registers are altered.
9571
9572 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9573
9574 * function-abi.h (call_clobbers_in_region): Declare.
9575 (call_clobbered_in_region_p): New function.
9576 * function-abi.cc (call_clobbers_in_region): Likewise.
9577 * ira-int.h: Include function-abi.h.
9578 (ira_allocno::crossed_calls_abis): New field.
9579 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
9580 (ira_need_caller_save_regs): New function.
9581 (ira_need_caller_save_p): Likewise.
9582 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
9583 of call_used_or_fixed_regs.
9584 (do_reload): Use crtl->abi to test whether the current function
9585 needs to save a register in the prologue. Count registers that
9586 need to be saved rather than registers that don't.
9587 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
9588 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9589 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
9590 (propagate_some_info_from_allocno): Likewise.
9591 (copy_info_to_removed_store_destinations): Likewise.
9592 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
9593 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
9594 (ira_build): Use ira_need_caller_save_regs instead of
9595 call_used_or_fixed_regs.
9596 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
9597 whether the current function would need to save a register
9598 before using it.
9599 (calculate_spill_cost): Likewise.
9600 (allocno_reload_assign): Use ira_need_caller_save_regs and
9601 ira_need_caller_save_p instead of call_used_or_fixed_regs.
9602 * ira-conflicts.c (ira_build_conflicts): Use
9603 ira_need_caller_save_regs rather than call_used_or_fixed_regs
9604 as the set of call-clobbered registers. Remove the
9605 call_used_or_fixed_regs mask from the calculation of
9606 temp_hard_reg_set and mask its use instead. Remove special
9607 handling of partially-clobbered registers.
9608 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
9609 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
9610 calculate the set of conflicting registers for calls that
9611 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
9612 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
9613 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9614 Use eh_edge_abi to calculate the set of registers that could
9615 be clobbered by an EH edge. Include partially-clobbered as
9616 well as fully-clobbered registers.
9617
9618 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9619
9620 * haifa-sched.c: Include function-abi.h.
9621 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
9622 the function would need to save a register before using it.
9623
9624 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9625
9626 * gcse.c: Include function-abi.h.
9627 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
9628 the call insn target. Invalidate partially call-clobbered
9629 registers as well as fully call-clobbered ones.
9630
9631 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9632
9633 * function.c (aggregate_value_p): Work out which ABI the
9634 function is using before testing which registers are at least
9635 partly preserved by a call.
9636
9637 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9638
9639 * early-remat.c: Include regs.h and function-abi.h.
9640 (early_remat::maybe_add_candidate): Don't check for call-clobbered
9641 registers here.
9642 (early_remat::restrict_remat_for_unavail_regs): New function.
9643 (early_remat::restrict_remat_for_call): Likewise.
9644 (early_remat::process_block): Before calling emit_remat_insns
9645 for a previous call in the block, invalidate any candidates
9646 that would clobber call-preserved registers.
9647 (early_remat::emit_remat_insns_for_block): Likewise for the
9648 final call in a block. Do the same thing for live-in registers
9649 when calling emit_remat_insns at the head of a block.
9650
9651 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9652
9653 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
9654 whether the current function needs to save at least part of a
9655 register before using it.
9656 (df_get_exit_block_use_set): Likewise for epilogue restores.
9657
9658 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9659
9660 * df-problems.c: Include regs.h and function-abi.h.
9661 (df_rd_problem_data): Rename sparse_invalidated_by_call to
9662 sparse_invalidated_by_eh and dense_invalidated_by_call to
9663 dense_invalidated_by_eh.
9664 (df_print_bb_index): Update accordingly.
9665 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
9666 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
9667 that are clobbered by an EH edge. Clobber partially-clobbered
9668 registers as well as fully-clobbered ones.
9669 (df_md_confluence_n): Likewise.
9670 (df_rd_local_compute): Likewise. Update for changes to
9671 df_rd_problem_data.
9672 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
9673 of registers that are clobbered by an EH edge. Includde partially-
9674 clobbered registers as well as fully-clobbered ones.
9675
9676 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9677
9678 * cselib.c (cselib_process_insn): If we know what mode a
9679 register was set in, check whether it is clobbered in that
9680 mode by a call. Only fall back to reg_raw_mode if that fails.
9681
9682 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9683
9684 * cse.c: Include regs.h and function-abi.h.
9685 (invalidate_for_call): Take the call insn as an argument.
9686 Use insn_callee_abi to get the ABI of the call and invalidate
9687 partially clobbered registers as well as fully clobbered ones.
9688 (cse_insn): Update call accordingly.
9689
9690 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9691
9692 * combine.c: Include function-abi.h.
9693 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
9694 of the target of call insns. Invalidate partially-clobbered
9695 registers as well as fully-clobbered ones.
9696
9697 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9698
9699 * cfgloopanal.c: Include regs.h and function-abi.h.
9700 (init_set_costs): Use default_function_abi to test whether
9701 a general register is call-clobbered.
9702
9703 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9704
9705 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
9706 instead of the call-clobbered sets.
9707
9708 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9709
9710 * caller-save.c (setup_save_areas): Remove redundant |s of
9711 fixed_reg_set.
9712 (save_call_clobbered_regs): Likewise. Use the call ABI rather
9713 than call_used_or_fixed_regs to decide whether a REG_RETURNED
9714 value is useful.
9715
9716 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9717
9718 * rtl.h (predefined_function_abi): Declare.
9719 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
9720 instead of a boolean call_save flag.
9721 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
9722 accordingly.
9723 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9724 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9725 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
9726 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9727 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9728 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
9729 * reginfo.c (init_reg_modes_target): Likewise.
9730 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
9731 instead of a boolean call_save flag.
9732 * targhooks.c: Include function-abi.h.
9733 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
9734 using eh_edge_abi to choose the mode.
9735
9736 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9737
9738 * target.def (hard_regno_call_part_clobbered): Take an ABI
9739 identifier instead of an rtx_insn.
9740 * doc/tm.texi: Regenerate.
9741 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
9742 (hook_bool_uint_uint_mode_false): New function.
9743 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
9744 (hook_bool_uint_uint_mode_false): New function.
9745 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9746 Take an ABI identifier instead of an rtx_insn.
9747 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
9748 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
9749 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
9750 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
9751 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
9752 Likewise.
9753 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
9754 * cselib.c: Include function-abi.h.
9755 (cselib_process_insn): Update call to
9756 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
9757 to get the appropriate ABI identifier.
9758 * function-abi.cc (predefined_function_abi::initialize): Update call
9759 to targetm.hard_regno_call_part_clobbered.
9760 * ira-conflicts.c (ira_build_conflicts): Likewise.
9761 * ira-costs.c (ira_tune_allocno_costs): Likewise.
9762 * lra-constraints.c: Include function-abi.h.
9763 (need_for_call_save_p): Update call to
9764 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
9765 to get the appropriate ABI identifier.
9766 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
9767 * regcprop.c (copyprop_hardreg_forward_1): Update call
9768 to targetm.hard_regno_call_part_clobbered.
9769 * reginfo.c (choose_hard_reg_mode): Likewise.
9770 * regrename.c (check_new_reg_p): Likewise.
9771 * reload.c (find_equiv_reg): Likewise.
9772 * reload1.c (emit_reload_insns): Likewise.
9773 * sched-deps.c: Include function-abi.h.
9774 (deps_analyze_insn): Update call to
9775 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
9776 to get the appropriate ABI identifier.
9777 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
9778 call to targetm.hard_regno_call_part_clobbered.
9779 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
9780
9781 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9782
9783 * config/i386/i386.c: Include function-abi.h.
9784 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
9785 if they preserve some 256-bit or 512-bit SSE registers.
9786
9787 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9788
9789 * target.def (insn_callee_abi): New hook.
9790 (remove_extra_call_preserved_regs): Delete.
9791 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
9792 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
9793 * doc/tm.texi: Regenerate.
9794 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
9795 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
9796 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
9797 insn argument.
9798 (aarch64_remove_extra_call_preserved_regs): Delete.
9799 (aarch64_insn_callee_abi): New function.
9800 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
9801 (TARGET_INSN_CALLEE_ABI): New macro.
9802 * rtl.h (get_call_fndecl): Declare.
9803 (cgraph_rtl_info): Fix formatting. Tweak comment for
9804 function_used_regs. Remove function_used_regs_valid.
9805 * rtlanal.c (get_call_fndecl): Moved from final.c
9806 * function-abi.h (insn_callee_abi): Declare.
9807 (target_function_abi_info): Mention insn_callee_abi.
9808 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
9809 way to get_call_reg_set_usage did.
9810 (insn_callee_abi): New function.
9811 * regs.h (get_call_reg_set_usage): Delete.
9812 * final.c: Include function-abi.h.
9813 (collect_fn_hard_reg_usage): Add fixed and stack registers to
9814 function_used_regs before the main loop rather than afterwards.
9815 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
9816 if function_used_regs ends up not being useful.
9817 (get_call_fndecl): Move to rtlanal.c
9818 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
9819 * caller-save.c: Include function-abi.h.
9820 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
9821 instead of get_call_reg_set_usage.
9822 * cfgcleanup.c: Include function-abi.h.
9823 (old_insns_match_p): Use insn_callee_abi instead of
9824 get_call_reg_set_usage.
9825 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
9826 a tree.
9827 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
9828 function_used_regs.
9829 * df-scan.c: Include function-abi.h.
9830 (df_get_call_refs): Use insn_callee_abi instead of
9831 get_call_reg_set_usage.
9832 * ira-lives.c: Include function-abi.h.
9833 (process_bb_node_lives): Use insn_callee_abi instead of
9834 get_call_reg_set_usage.
9835 * lra-lives.c: Include function-abi.h.
9836 (process_bb_lives): Use insn_callee_abi instead of
9837 get_call_reg_set_usage.
9838 * postreload.c: Include function-abi.h.
9839 (reload_combine): Use insn_callee_abi instead of
9840 get_call_reg_set_usage.
9841 * regcprop.c: Include function-abi.h.
9842 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
9843 get_call_reg_set_usage.
9844 * resource.c: Include function-abi.h.
9845 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
9846 instead of get_call_reg_set_usage.
9847 * var-tracking.c: Include function-abi.h.
9848 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
9849 get_call_reg_set_usage.
9850
9851 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9852
9853 * target.def (fntype_abi): New target hook.
9854 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
9855 * doc/tm.texi: Regenerate.
9856 * target.h (predefined_function_abi): Declare.
9857 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
9858 if defined.
9859 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
9860 * config/aarch64/aarch64.c: Include function-abi.h.
9861 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
9862 (TARGET_FNTYPE_ABI): Define.
9863
9864 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9865
9866 * Makefile.in (OBJS): Add function-abi.o.
9867 (GTFILES): Add function-abi.h.
9868 * function-abi.cc: New file.
9869 * function-abi.h: Likewise.
9870 * emit-rtl.h (rtl_data::abi): New field.
9871 * function.c: Include function-abi.h.
9872 (prepare_function_start): Initialize crtl->abi.
9873 * read-rtl-function.c: Include regs.h and function-abi.h.
9874 (read_rtl_function_body): Initialize crtl->abi.
9875 (read_rtl_function_body_from_file_range): Likewise.
9876 * reginfo.c: Include function-abi.h.
9877 (init_reg_sets_1): Initialize default_function_abi.
9878 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
9879 when making a register global.
9880 * target-globals.h (this_target_function_abi_info): Declare.
9881 (target_globals::function_abi_info): New field.
9882 (restore_target_globals): Copy it.
9883 * target-globals.c: Include function-abi.h.
9884 (default_target_globals): Initialize the function_abi_info field.
9885 (target_globals): Allocate it.
9886 (save_target_globals): Free it.
9887
9888 2019-09-30 Nick Clifton <nickc@redhat.com>
9889
9890 PR target/85978
9891 * config/frv/frv.c (frv_register_move_cost): Add break statements
9892 to avoid falling through to the wrong cases. Tidy code.
9893
9894 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9895
9896 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9897 For multi-registers modes, test how big each register part is.
9898
9899 2019-09-30 Nick Clifton <nickc@redhat.com>
9900
9901 PR target/59205
9902 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
9903 (TARGET_ASM_SELECT_SECTION): Remove definition.
9904 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
9905
9906 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
9907
9908 * emit-rtl.c (init_raw_REG): New function.
9909 (gen_raw_REG): Use init_raw_REG.
9910 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
9911 macros.
9912 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
9913 * rtl.h (rtx_init): New function.
9914 (rtx_alloca): New function.
9915 (init_raw_REG): New function.
9916 (alloca_raw_REG): New macro.
9917
9918 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
9919
9920 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
9921 (pcrel_local_address): Replace pcrel_address predicate, use the
9922 new function address_to_insn_form.
9923 (pcrel_external_address): Replace with new implementation using
9924 address_to_insn_form..
9925 (prefixed_mem_operand): Delete predicate which is now unused.
9926 (pcrel_external_mem_operand): Delete predicate which is now
9927 unused.
9928 * config/rs6000/rs6000-protos.h (enum insn_form): New
9929 enumeration.
9930 (enum non_prefixed_form): New enumeration.
9931 (address_to_insn_form): New declaration.
9932 (prefixed_load_p): New declaration.
9933 (prefixed_store_p): New declaration.
9934 (prefixed_paddi_p): New declaration.
9935 (rs6000_asm_output_opcode): New declaration.
9936 (rs6000_final_prescan_insn): Move declaration and update calling
9937 signature.
9938 (address_is_prefixed): New helper inline function.
9939 * config/rs6000/rs6000.c(print_operand_address): Check for either
9940 PC-relative local symbols or PC-relative external symbols.
9941 (rs6000_emit_move): Support loading PC-relative addresses.
9942 (mode_supports_prefixed_address_p): Delete, no longer used.
9943 (rs6000_prefixed_address_mode_p): Delete, no longer used.
9944 (address_to_insn_form): New function to decode an address format.
9945 (reg_to_non_prefixed): New function to identify what the
9946 non-prefixed memory instruction format is for a register.
9947 (prefixed_load_p): New function to identify prefixed loads.
9948 (prefixed_store_p): New function to identify prefixed stores.
9949 (prefixed_paddi_p): New function to identify prefixed load
9950 immediates.
9951 (next_insn_prefixed_p): New static state variable.
9952 (rs6000_final_prescan_insn): New function to determine if an insn
9953 uses a prefixed instruction.
9954 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
9955 prefixed instruction.
9956 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
9957 (ASM_OUTPUT_OPCODE): New target hook.
9958 * config/rs6000/rs6000.md (prefixed): New insn attribute for
9959 prefixed instructions.
9960 (prefixed_length): New insn attribute for the size of prefixed
9961 instructions.
9962 (non_prefixed_length): New insn attribute for the size of
9963 non-prefixed instructions.
9964 (pcrel_local_addr): New insn to load up a local PC-relative
9965 address.
9966 (pcrel_extern_addr): New insn to load up an external PC-relative
9967 address.
9968 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
9969 GPR and loading a 128-bit floating point type to a GPR.
9970
9971 2019-09-30 Richard Biener <rguenther@suse.de>
9972
9973 * gimple.c (gimple_get_lhs): For PHIs return the result.
9974 * tree-vectorizer.h (vectorizable_live_operation): Also get the
9975 SLP instance as argument.
9976 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
9977 double-reduction PHIs with vectorizable_lc_phi.
9978 (vect_analyze_loop_operations): Adjust.
9979 (vect_create_epilog_for_reduction): Remove all code not dealing
9980 with reduction LC PHI or epilogue generation.
9981 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
9982 for live stmts of reductions.
9983 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
9984 do not handle defs that are not vect_internal_def.
9985 (can_vectorize_live_stmts): Adjust.
9986 (vect_analyze_stmt): When the vectorized stmt defined a value
9987 used on backedges adjust the backedge uses of vectorized PHIs.
9988
9989 2019-09-30 Martin Jambor <mjambor@suse.cz>
9990
9991 PR ipa/91853
9992 * tree-inline.c (force_value_to_type): New function.
9993 (setup_one_parameter): Use force_value_to_type to convert type.
9994 * tree-inline.c (force_value_to_type): Declare.
9995 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
9996 with register type mismatches.
9997
9998 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
9999
10000 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
10001 32-bit PowerPC.
10002 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
10003 * config/rs6000/t-freebsd64: Make use of the above define and build
10004 the 32-bit libraries with secure-plt.
10005
10006 2019-09-30 Jakub Jelinek <jakub@redhat.com>
10007
10008 PR target/91931
10009 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
10010 gen_int_mode instead of GEN_INT.
10011
10012 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
10013
10014 * config/darwin.c (gen_macho_low): Amend to include the mode
10015 argument.
10016 (machopic_indirect_data_reference): Amend gen_macho_low call
10017 to include mode argument
10018 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
10019 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
10020 the macho_high expander and two define_insn entries.
10021
10022 2019-09-29 Jakub Jelinek <jakub@redhat.com>
10023
10024 PR bootstrap/90543
10025 * optc-save-gen.awk: Fix up printing string option differences.
10026
10027 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10028
10029 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
10030 vec_perm cost to 1 for non-Power7 VSX architectures.
10031
10032 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10033
10034 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
10035 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
10036 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
10037
10038 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
10039
10040 * config/darwin.c (gen_macho_high): Amend to include the mode
10041 argument.
10042 (machopic_indirect_data_reference): Amend gen_macho_high call
10043 to include mode argument.
10044 (machopic_legitimize_pic_address): Likewise.
10045 * config/rs6000/rs6000.c (rs6000_legitimize_address):
10046 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
10047 the macho_high expander and two define_insn entries.
10048
10049 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10050
10051 PR target/86805
10052 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
10053
10054 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10055
10056 PR target/80672
10057 * config/sh/sh.c (parse_validate_atomic_model_option): Use
10058 std::string::compare instead of std::string::find.
10059
10060 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
10061
10062 * configure: Regenerate.
10063
10064 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10065
10066 PR middle-end/91920
10067 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
10068 variables as shared.
10069
10070 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
10071
10072 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
10073 replaces the expander and two define_insn entries.
10074 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
10075 call.
10076 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
10077
10078 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10079
10080 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
10081 (fibonacci_heap::nodes): Likewise.
10082 (fibonacci_heap::min_key): Likewise.
10083 (fibonacci_heap::min): Likewise.
10084
10085 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10086
10087 * cgraph.c (cgraph_node::get_fun): Make const.
10088 * cgraph.h (cgraph_node::get_fun): Likewise.
10089
10090 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10091
10092 PR target/91919
10093 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
10094 of SImode MULT.
10095
10096 2019-09-27 Richard Biener <rguenther@suse.de>
10097
10098 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
10099 (STMT_VINFO_REDUC_FN): Likewise.
10100 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10101 STMT_VINFO_REDUC_FN.
10102 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
10103 for condition reductions.
10104 (vect_create_epilog_for_reduction): Compute all required state
10105 from the stmt to be vectorized.
10106 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
10107 invocation and remove then dead code. For single def-use chains
10108 record only a single vector stmt.
10109
10110 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10111
10112 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
10113 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
10114 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
10115 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
10116 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
10117 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
10118 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
10119 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
10120 (aarch64_general_builtin_rsqrt): Declare.
10121 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
10122 New function.
10123 (aarch64_mangle_builtin_type): Rename to...
10124 (aarch64_general_mangle_builtin_type): ...this.
10125 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
10126 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
10127 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
10128 aarch64_general_add_builtin instead of add_builtin_function.
10129 (aarch64_init_builtins): Rename to...
10130 (aarch64_general_init_builtins): ...this. Use
10131 aarch64_general_add_builtin instead of add_builtin_function.
10132 (aarch64_builtin_decl): Rename to...
10133 (aarch64_general_builtin_decl): ...this and remove the unused
10134 arguments.
10135 (aarch64_expand_builtin): Rename to...
10136 (aarch64_general_expand_builtin): ...this and remove the unused
10137 arguments.
10138 (aarch64_builtin_rsqrt): Rename to...
10139 (aarch64_general_builtin_rsqrt): ...this.
10140 (aarch64_fold_builtin): Rename to...
10141 (aarch64_general_fold_builtin): ...this. Take the function subcode
10142 and return type as arguments. Remove the "ignored" argument.
10143 (aarch64_gimple_fold_builtin): Rename to...
10144 (aarch64_general_gimple_fold_builtin): ...this. Take the function
10145 subcode and gcall as arguments, and return the new function call.
10146 * config/aarch64/aarch64.c (aarch64_init_builtins)
10147 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
10148 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
10149 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
10150 instead of aarch64_builtin_rsqrt.
10151 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
10152 instead of aarch64_mangle_builtin_type.
10153
10154 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10155
10156 * target.def (check_builtin_call): New target hook.
10157 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
10158 * doc/tm.texi: Regenerate.
10159
10160 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10161
10162 PR tree-optimization/91909
10163 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
10164 reduc_index parameter. When handling COND_REDUCTION, make sure
10165 that the reduction phi operand is in the correct arm of the
10166 VEC_COND_EXPR.
10167 (vectorizable_reduction): Pass reduc_index to the above.
10168
10169 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
10170
10171 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
10172 New combine pattern.
10173
10174 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
10175
10176 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
10177 loop instruction into new basic block before the loop when basic
10178 block that precedes the loop is empty.
10179
10180 2019-09-26 Jakub Jelinek <jakub@redhat.com>
10181
10182 * function.c (gimplify_parameters): Use build_clobber function.
10183 * tree-ssa.c (execute_update_addresses_taken): Likewise.
10184 * tree-inline.c (expand_call_inline): Likewise.
10185 * tree-sra.c (clobber_subtree): Likewise.
10186 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
10187 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
10188 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
10189 lower_omp_target): Likewise.
10190 * omp-expand.c (expand_omp_for_generic): Likewise.
10191 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
10192
10193 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
10194
10195 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
10196 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
10197 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
10198 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
10199 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
10200 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
10201 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
10202 LD_ELEMREV_V16QI): Use the PURE attribute.
10203
10204 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
10205
10206 * config/rs6000/darwin.md: Replace the expanders for
10207 load_macho_picbase and reload_macho_picbase with use of '@'
10208 and <mode> in their respective define_insns.
10209 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
10210 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
10211 Pmode to gen_load_macho_picbase.
10212 * config/rs6000/rs6000.md: Likewise.
10213
10214 2019-09-25 Richard Biener <rguenther@suse.de>
10215
10216 PR tree-optimization/91896
10217 * tree-vect-loop.c (vectorizable_reduction): The single
10218 def-use cycle optimization cannot apply when there's more
10219 than one pattern stmt involved.
10220
10221 2019-09-26 Richard Biener <rguenther@suse.de>
10222
10223 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
10224 loop-closed PHIs that are vect_internal_def.
10225 (vect_create_epilog_for_reduction): Exit early for nested cycles.
10226 Simplify.
10227 (vectorizable_lc_phi): New.
10228 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
10229 (vect_transform_stmt): Likewise.
10230 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
10231 (vectorizable_lc_phi): Declare.
10232
10233 2019-09-26 Richard Biener <rguenther@suse.de>
10234
10235 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
10236 vectorizable_reduction for vect_double_reduction_def.
10237 (vect_transform_loop): Likewise.
10238 (vect_create_epilog_for_reduction): Move double-reduction
10239 PHI creation and preheader argument setting of PHIs ...
10240 (vectorizable_reduction): ... here. Also process
10241 vect_double_reduction_def PHIs, creating the vectorized
10242 PHI nodes, remembering the scalar adjustment computed for
10243 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
10244 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
10245 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
10246 Initialize STMT_VINFO_REDUC_CODE.
10247 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
10248 (_stmt_vec_info::reduc_code): Likewise.
10249 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
10250 (STMT_VINFO_REDUC_CODE): Likewise.
10251
10252 2019-09-26 Matt Turner <mattst88@gmail.com>
10253
10254 PR driver/69471
10255 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
10256 (mtune=): Add Negative(mtune=).
10257 (mcpu=): Add Negative(mcpu=).
10258 * config/arm/arm.opt: Likewise.
10259
10260 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10261
10262 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
10263 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
10264 Define.
10265 * config/arm/arm_acle.h: Define builtins for the above.
10266 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
10267 (simd32_op): Handle the above.
10268 * config/arm/unspecs.md: Define unspecs for the above.
10269
10270 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10271
10272 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
10273 (arm_<sup>xtb16): Likewise.
10274 (arm_usada8): Likewise.
10275 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
10276 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
10277 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
10278 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
10279 __sxtb16, __uxtab16, __uxtb16): Define.
10280 * config/arm/arm_acle_builtins.def: Define builtins for the above.
10281 * config/arm/unspecs.md: Define unspecs for the above.
10282 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
10283 (USXTB16): Likewise.
10284 (simd32_op): New int_attribute.
10285 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
10286 * doc/sourcebuild.exp (arm_simd32_ok): Document.
10287
10288 2019-09-26 Martin Jambor <mjambor@suse.cz>
10289
10290 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
10291 internal_error.
10292
10293 2019-09-26 Martin Jambor <mjambor@suse.cz>
10294
10295 * ipa-sra.c (process_scan_results): Fix continue condition.
10296
10297 2019-09-26 Martin Liska <mliska@suse.cz>
10298
10299 PR tree-optimization/91885
10300 * tree-vectorizer.c (try_vectorize_loop_1): Add
10301 TODO_update_ssa_only_virtuals similarly to what slp pass does.
10302
10303 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
10304
10305 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
10306 aarch64_plus_immediate rather than aarch64_uimm12_shift
10307 to test for valid PLUS immediates.
10308
10309 2019-09-25 Martin Jambor <mjambor@suse.cz>
10310
10311 * tree-sra.c (no_accesses_p): Remove.
10312 (no_accesses_representant): Likewise.
10313
10314 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10315
10316 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
10317 consistenly.
10318 (vaba_s16): Likewise.
10319 (vaba_s32): Likewise.
10320 (vaba_u8): Likewise.
10321 (vaba_u16): Likewise.
10322 (vaba_u32): Likewise.
10323 (vabal_high_s8): Likewise.
10324 (vabal_high_s16): Likewise.
10325 (vabal_high_s32): Likewise.
10326 (vabal_high_u8): Likewise.
10327 (vabal_high_u16): Likewise.
10328 (vabal_high_u32): Likewise.
10329 (vabal_s8): Likewise.
10330 (vabal_s16): Likewise.
10331 (vabal_s32): Likewise.
10332 (vabal_u8): Likewise.
10333 (vabal_u16): Likewise.
10334 (vabal_u32): Likewise.
10335 (vabaq_s8): Likewise.
10336 (vabaq_s16): Likewise.
10337 (vabaq_s32): Likewise.
10338 (vabaq_u8): Likewise.
10339 (vabaq_u16): Likewise.
10340 (vabaq_u32): Likewise.
10341 (vabd_s8): Likewise.
10342 (vabd_s16): Likewise.
10343 (vabd_s32): Likewise.
10344 (vabd_u8): Likewise.
10345 (vabd_u16): Likewise.
10346 (vabd_u32): Likewise.
10347 (vabdl_high_s8): Likewise.
10348 (vabdl_high_s16): Likewise.
10349 (vabdl_high_s32): Likewise.
10350 (vabdl_high_u8): Likewise.
10351 (vabdl_high_u16): Likewise.
10352 (vabdl_high_u32): Likewise.
10353 (vabdl_s8): Likewise.
10354 (vabdl_s16): Likewise.
10355 (vabdl_s32): Likewise.
10356 (vabdl_u8): Likewise.
10357 (vabdl_u16): Likewise.
10358 (vabdl_u32): Likewise.
10359 (vabdq_s8): Likewise.
10360 (vabdq_s16): Likewise.
10361 (vabdq_s32): Likewise.
10362 (vabdq_u8): Likewise.
10363 (vabdq_u16): Likewise.
10364 (vabdq_u32): Likewise.
10365 (vaddlv_s8): Likewise.
10366 (vaddlv_s16): Likewise.
10367 (vaddlv_u8): Likewise.
10368 (vaddlv_u16): Likewise.
10369 (vaddlvq_s8): Likewise.
10370 (vaddlvq_s16): Likewise.
10371 (vaddlvq_s32): Likewise.
10372 (vaddlvq_u8): Likewise.
10373 (vaddlvq_u16): Likewise.
10374 (vaddlvq_u32): Likewise.
10375 (vcvtx_f32_f64): Likewise.
10376 (vcvtx_high_f32_f64): Likewise.
10377 (vcvtxd_f32_f64): Likewise.
10378 (vmla_n_f32): Likewise.
10379 (vmla_n_s16): Likewise.
10380 (vmla_n_s32): Likewise.
10381 (vmla_n_u16): Likewise.
10382 (vmla_n_u32): Likewise.
10383 (vmla_s8): Likewise.
10384 (vmla_s16): Likewise.
10385 (vmla_s32): Likewise.
10386 (vmla_u8): Likewise.
10387 (vmla_u16): Likewise.
10388 (vmla_u32): Likewise.
10389 (vmlal_high_n_s16): Likewise.
10390 (vmlal_high_n_s32): Likewise.
10391 (vmlal_high_n_u16): Likewise.
10392 (vmlal_high_n_u32): Likewise.
10393 (vmlal_high_s8): Likewise.
10394 (vmlal_high_s16): Likewise.
10395 (vmlal_high_s32): Likewise.
10396 (vmlal_high_u8): Likewise.
10397 (vmlal_high_u16): Likewise.
10398 (vmlal_high_u32): Likewise.
10399 (vmlal_n_s16): Likewise.
10400 (vmlal_n_s32): Likewise.
10401 (vmlal_n_u16): Likewise.
10402 (vmlal_n_u32): Likewise.
10403 (vmlal_s8): Likewise.
10404 (vmlal_s16): Likewise.
10405 (vmlal_s32): Likewise.
10406 (vmlal_u8): Likewise.
10407 (vmlal_u16): Likewise.
10408 (vmlal_u32): Likewise.
10409 (vmlaq_n_f32): Likewise.
10410 (vmlaq_n_s16): Likewise.
10411 (vmlaq_n_s32): Likewise.
10412 (vmlaq_n_u16): Likewise.
10413 (vmlaq_n_u32): Likewise.
10414 (vmlaq_s8): Likewise.
10415 (vmlaq_s16): Likewise.
10416 (vmlaq_s32): Likewise.
10417 (vmlaq_u8): Likewise.
10418 (vmlaq_u16): Likewise.
10419 (vmlaq_u32): Likewise.
10420 (vmls_n_f32): Likewise.
10421 (vmls_n_s16): Likewise.
10422 (vmls_n_s32): Likewise.
10423 (vmls_n_u16): Likewise.
10424 (vmls_n_u32): Likewise.
10425 (vmls_s8): Likewise.
10426 (vmls_s16): Likewise.
10427 (vmls_s32): Likewise.
10428 (vmls_u8): Likewise.
10429 (vmls_u16): Likewise.
10430 (vmls_u32): Likewise.
10431 (vmlsl_high_n_s16): Likewise.
10432 (vmlsl_high_n_s32): Likewise.
10433 (vmlsl_high_n_u16): Likewise.
10434 (vmlsl_high_n_u32): Likewise.
10435 (vmlsl_high_s8): Likewise.
10436 (vmlsl_high_s16): Likewise.
10437 (vmlsl_high_s32): Likewise.
10438 (vmlsl_high_u8): Likewise.
10439 (vmlsl_high_u16): Likewise.
10440 (vmlsl_high_u32): Likewise.
10441 (vmlsl_n_s16): Likewise.
10442 (vmlsl_n_s32): Likewise.
10443 (vmlsl_n_u16): Likewise.
10444 (vmlsl_n_u32): Likewise.
10445 (vmlsl_s8): Likewise.
10446 (vmlsl_s16): Likewise.
10447 (vmlsl_s32): Likewise.
10448 (vmlsl_u8): Likewise.
10449 (vmlsl_u16): Likewise.
10450 (vmlsl_u32): Likewise.
10451 (vmlsq_n_f32): Likewise.
10452 (vmlsq_n_s16): Likewise.
10453 (vmlsq_n_s32): Likewise.
10454 (vmlsq_n_u16): Likewise.
10455 (vmlsq_n_u32): Likewise.
10456 (vmlsq_s8): Likewise.
10457 (vmlsq_s16): Likewise.
10458 (vmlsq_s32): Likewise.
10459 (vmlsq_u8): Likewise.
10460 (vmlsq_u16): Likewise.
10461 (vmlsq_u32): Likewise.
10462 (vmovl_high_s8): Likewise.
10463 (vmovl_high_s16): Likewise.
10464 (vmovl_high_s32): Likewise.
10465 (vmovl_high_u8): Likewise.
10466 (vmovl_high_u16): Likewise.
10467 (vmovl_high_u32): Likewise.
10468 (vmovl_s8): Likewise.
10469 (vmovl_s16): Likewise.
10470 (vmovl_s32): Likewise.
10471 (vmovl_u8): Likewise.
10472 (vmovl_u16): Likewise.
10473 (vmovl_u32): Likewise.
10474 (vmovn_high_s16): Likewise.
10475 (vmovn_high_s32): Likewise.
10476 (vmovn_high_s64): Likewise.
10477 (vmovn_high_u16): Likewise.
10478 (vmovn_high_u32): Likewise.
10479 (vmovn_high_u64): Likewise.
10480 (vmovn_s16): Likewise.
10481 (vmovn_s32): Likewise.
10482 (vmovn_s64): Likewise.
10483 (vmovn_u16): Likewise.
10484 (vmovn_u32): Likewise.
10485 (vmovn_u64): Likewise.
10486 (vmull_high_n_s16): Likewise.
10487 (vmull_high_n_s32): Likewise.
10488 (vmull_high_n_u16): Likewise.
10489 (vmull_high_n_u32): Likewise.
10490 (vmull_high_p8): Likewise.
10491 (vmull_high_s8): Likewise.
10492 (vmull_high_s16): Likewise.
10493 (vmull_high_s32): Likewise.
10494 (vmull_high_u8): Likewise.
10495 (vmull_high_u16): Likewise.
10496 (vmull_high_u32): Likewise.
10497 (vmull_n_s16): Likewise.
10498 (vmull_n_s32): Likewise.
10499 (vmull_n_u16): Likewise.
10500 (vmull_n_u32): Likewise.
10501 (vmull_p8): Likewise.
10502 (vmull_s8): Likewise.
10503 (vmull_s16): Likewise.
10504 (vmull_s32): Likewise.
10505 (vmull_u8): Likewise.
10506 (vmull_u16): Likewise.
10507 (vmull_u32): Likewise.
10508 (vpadal_s8): Likewise.
10509 (vpadal_s16): Likewise.
10510 (vpadal_s32): Likewise.
10511 (vpadal_u8): Likewise.
10512 (vpadal_u16): Likewise.
10513 (vpadal_u32): Likewise.
10514 (vpadalq_s8): Likewise.
10515 (vpadalq_s16): Likewise.
10516 (vpadalq_s32): Likewise.
10517 (vpadalq_u8): Likewise.
10518 (vpadalq_u16): Likewise.
10519 (vpadalq_u32): Likewise.
10520 (vpaddl_s8): Likewise.
10521 (vpaddl_s16): Likewise.
10522 (vpaddl_s32): Likewise.
10523 (vpaddl_u8): Likewise.
10524 (vpaddl_u16): Likewise.
10525 (vpaddl_u32): Likewise.
10526 (vpaddlq_s8): Likewise.
10527 (vpaddlq_s16): Likewise.
10528 (vpaddlq_s32): Likewise.
10529 (vpaddlq_u8): Likewise.
10530 (vpaddlq_u16): Likewise.
10531 (vpaddlq_u32): Likewise.
10532 (vpaddq_s8): Likewise.
10533 (vpaddq_s16): Likewise.
10534 (vpaddq_s32): Likewise.
10535 (vpaddq_s64): Likewise.
10536 (vpaddq_u8): Likewise.
10537 (vpaddq_u16): Likewise.
10538 (vpaddq_u32): Likewise.
10539 (vpaddq_u64): Likewise.
10540 (vqdmulh_n_s16): Likewise.
10541 (vqdmulh_n_s32): Likewise.
10542 (vqdmulhq_n_s16): Likewise.
10543 (vqdmulhq_n_s32): Likewise.
10544 (vqmovn_high_s16): Likewise.
10545 (vqmovn_high_s32): Likewise.
10546 (vqmovn_high_s64): Likewise.
10547 (vqmovn_high_u16): Likewise.
10548 (vqmovn_high_u32): Likewise.
10549 (vqmovn_high_u64): Likewise.
10550 (vqmovun_high_s16): Likewise.
10551 (vqmovun_high_s32): Likewise.
10552 (vqmovun_high_s64): Likewise.
10553 (vqrdmulh_n_s16): Likewise.
10554 (vqrdmulh_n_s32): Likewise.
10555 (vqrdmulhq_n_s16): Likewise.
10556 (vqrdmulhq_n_s32): Likewise.
10557 (vrsqrte_u32): Likewise.
10558 (vrsqrteq_u32): Likewise.
10559 (vtst_p8): Likewise.
10560 (vtst_p16): Likewise.
10561 (vtst_p64): Likewise.
10562 (vtstq_p8): Likewise.
10563 (vtstq_p16): Likewise.
10564 (vtstq_p64): Likewise.
10565 (vaddlv_s32): Likewise.
10566 (vaddlv_u32): Likewise.
10567 (vqtbl1_p8): Likewise.
10568 (vqtbl1_s8): Likewise.
10569 (vqtbl1_u8): Likewise.
10570 (vqtbl1q_p8): Likewise.
10571 (vqtbl1q_s8): Likewise.
10572 (vqtbl1q_u8): Likewise.
10573 (vqtbx1_s8): Likewise.
10574 (vqtbx1_u8): Likewise.
10575 (vqtbx1_p8): Likewise.
10576 (vqtbx1q_s8): Likewise.
10577 (vqtbx1q_u8): Likewise.
10578 (vqtbx1q_p8): Likewise.
10579 (vtbl1_s8): Likewise.
10580 (vtbl1_u8): Likewise.
10581 (vtbl1_p8): Likewise.
10582 (vtbl2_s8): Likewise.
10583 (vtbl2_u8): Likewise.
10584 (vtbl2_p8): Likewise.
10585 (vtbl3_s8): Likewise.
10586 (vtbl3_u8): Likewise.
10587 (vtbl3_p8): Likewise.
10588 (vtbl4_s8): Likewise.
10589 (vtbl4_u8): Likewise.
10590 (vtbl4_p8): Likewise.
10591 (vtbx2_s8): Likewise.
10592 (vtbx2_u8): Likewise.
10593 (vtbx2_p8): Likewise.
10594 (vld1_f32): Likewise.
10595 (vld1_f64): Likewise.
10596 (vld1_p8): Likewise.
10597 (vld1_p16): Likewise.
10598 (vld1_p64): Likewise.
10599 (vld1_s8): Likewise.
10600 (vld1_s16): Likewise.
10601 (vld1_s32): Likewise.
10602 (vld1_s64): Likewise.
10603 (vld1_u8): Likewise.
10604 (vld1_u16): Likewise.
10605 (vld1_u32): Likewise.
10606 (vld1_u64): Likewise.
10607 (vld1q_f32): Likewise.
10608 (vld1q_f64): Likewise.
10609 (vld1q_p8): Likewise.
10610 (vld1q_p16): Likewise.
10611 (vld1q_p64): Likewise.
10612 (vld1q_s8): Likewise.
10613 (vld1q_s16): Likewise.
10614 (vld1q_s32): Likewise.
10615 (vld1q_s64): Likewise.
10616 (vld1q_u8): Likewise.
10617 (vld1q_u16): Likewise.
10618 (vld1q_u32): Likewise.
10619 (vld1q_u64): Likewise.
10620 (vpmax_s8): Likewise.
10621 (vpmax_s16): Likewise.
10622 (vpmax_s32): Likewise.
10623 (vpmax_u8): Likewise.
10624 (vpmax_u16): Likewise.
10625 (vpmax_u32): Likewise.
10626 (vpmaxq_s8): Likewise.
10627 (vpmaxq_s16): Likewise.
10628 (vpmaxq_s32): Likewise.
10629 (vpmaxq_u8): Likewise.
10630 (vpmaxq_u16): Likewise.
10631 (vpmaxq_u32): Likewise.
10632 (vpmax_f32): Likewise.
10633 (vpmaxq_f32): Likewise.
10634 (vpmaxq_f64): Likewise.
10635 (vpmaxqd_f64): Likewise.
10636 (vpmaxs_f32): Likewise.
10637 (vpmaxnm_f32): Likewise.
10638 (vpmaxnmq_f32): Likewise.
10639 (vpmaxnmq_f64): Likewise.
10640 (vpmaxnmqd_f64): Likewise.
10641 (vpmaxnms_f32): Likewise.
10642 (vpmin_s8): Likewise.
10643 (vpmin_s16): Likewise.
10644 (vpmin_s32): Likewise.
10645 (vpmin_u8): Likewise.
10646 (vpmin_u16): Likewise.
10647 (vpmin_u32): Likewise.
10648 (vpminq_s8): Likewise.
10649 (vpminq_s16): Likewise.
10650 (vpminq_s32): Likewise.
10651 (vpminq_u8): Likewise.
10652 (vpminq_u16): Likewise.
10653 (vpminq_u32): Likewise.
10654 (vpmin_f32): Likewise.
10655 (vpminq_f32): Likewise.
10656 (vpminq_f64): Likewise.
10657 (vpminqd_f64): Likewise.
10658 (vpmins_f32): Likewise.
10659 (vpminnm_f32): Likewise.
10660 (vpminnmq_f32): Likewise.
10661 (vpminnmq_f64): Likewise.
10662 (vpminnmqd_f64): Likewise.
10663 (vpminnms_f32): Likewise.
10664 (vmla_f32): Likewise.
10665 (vmlaq_f32): Likewise.
10666 (vmlaq_f64): Likewise.
10667 (vmls_f32): Likewise.
10668 (vmlsq_f32): Likewise.
10669 (vmlsq_f64): Likewise.
10670 (vqtbl2_s8): Likewise.
10671 (vqtbl2_u8): Likewise.
10672 (vqtbl2_p8): Likewise.
10673 (vqtbl2q_s8): Likewise.
10674 (vqtbl2q_u8): Likewise.
10675 (vqtbl2q_p8): Likewise.
10676 (vqtbl3_s8): Likewise.
10677 (vqtbl3_u8): Likewise.
10678 (vqtbl3_p8): Likewise.
10679 (vqtbl3q_s8): Likewise.
10680 (vqtbl3q_u8): Likewise.
10681 (vqtbl3q_p8): Likewise.
10682 (vqtbl4_s8): Likewise.
10683 (vqtbl4_u8): Likewise.
10684 (vqtbl4_p8): Likewise.
10685 (vqtbl4q_s8): Likewise.
10686 (vqtbl4q_u8): Likewise.
10687 (vqtbl4q_p8): Likewise.
10688 (vqtbx2_s8): Likewise.
10689 (vqtbx2_u8): Likewise.
10690 (vqtbx2_p8): Likewise.
10691 (vqtbx2q_s8): Likewise.
10692 (vqtbx2q_u8): Likewise.
10693 (vqtbx2q_p8): Likewise.
10694 (vqtbx3_s8): Likewise.
10695 (vqtbx3_u8): Likewise.
10696 (vqtbx3_p8): Likewise.
10697 (vqtbx3q_s8): Likewise.
10698 (vqtbx3q_u8): Likewise.
10699 (vqtbx3q_p8): Likewise.
10700 (vqtbx4_s8): Likewise.
10701 (vqtbx4_u8): Likewise.
10702 (vqtbx4_p8): Likewise.
10703 (vqtbx4q_s8): Likewise.
10704 (vqtbx4q_u8): Likewise.
10705 (vqtbx4q_p8): Likewise.
10706 (vrev16_p8): Likewise.
10707 (vrev16_s8): Likewise.
10708 (vrev16_u8): Likewise.
10709 (vrev16q_p8): Likewise.
10710 (vrev16q_s8): Likewise.
10711 (vrev16q_u8): Likewise.
10712 (vrev32_p8): Likewise.
10713 (vrev32_p16): Likewise.
10714 (vrev32_s8): Likewise.
10715 (vrev32_s16): Likewise.
10716 (vrev32_u8): Likewise.
10717 (vrev32_u16): Likewise.
10718 (vrev32q_p8): Likewise.
10719 (vrev32q_p16): Likewise.
10720 (vrev32q_s8): Likewise.
10721 (vrev32q_s16): Likewise.
10722 (vrev32q_u8): Likewise.
10723 (vrev32q_u16): Likewise.
10724 (vrev64_f32): Likewise.
10725 (vrev64_p8): Likewise.
10726 (vrev64_p16): Likewise.
10727 (vrev64_s8): Likewise.
10728 (vrev64_s16): Likewise.
10729 (vrev64_s32): Likewise.
10730 (vrev64_u8): Likewise.
10731 (vrev64_u16): Likewise.
10732 (vrev64_u32): Likewise.
10733 (vrev64q_f32): Likewise.
10734 (vrev64q_p8): Likewise.
10735 (vrev64q_p16): Likewise.
10736 (vrev64q_s8): Likewise.
10737 (vrev64q_s16): Likewise.
10738 (vrev64q_s32): Likewise.
10739 (vrev64q_u8): Likewise.
10740 (vrev64q_u16): Likewise.
10741 (vrev64q_u32): Likewise.
10742 (vsha1cq_u32): Likewise.
10743 (vsha1mq_u32): Likewise.
10744 (vsha1pq_u32): Likewise.
10745 (vsha1h_u32): Likewise.
10746 (vsha1su0q_u32): Likewise.
10747 (vsha1su1q_u32): Likewise.
10748 (vsha256hq_u32): Likewise.
10749 (vsha256h2q_u32): Likewise.
10750 (vsha256su0q_u32): Likewise.
10751 (vsha256su1q_u32): Likewise.
10752 (vmull_p64): Likewise.
10753 (vmull_high_p64): Likewise.
10754 (vsqrt_f32): Likewise.
10755 (vsqrtq_f32): Likewise.
10756 (vsqrt_f64): Likewise.
10757 (vsqrtq_f64): Likewise.
10758 (vst1_f32): Likewise.
10759 (vst1_f64): Likewise.
10760 (vst1_p8): Likewise.
10761 (vst1_p16): Likewise.
10762 (vst1_p64): Likewise.
10763 (vst1_s8): Likewise.
10764 (vst1_s16): Likewise.
10765 (vst1_s32): Likewise.
10766 (vst1_s64): Likewise.
10767 (vst1_u8): Likewise.
10768 (vst1_u16): Likewise.
10769 (vst1_u32): Likewise.
10770 (vst1_u64): Likewise.
10771 (vst1q_f32): Likewise.
10772 (vst1q_f64): Likewise.
10773 (vst1q_p8): Likewise.
10774 (vst1q_p16): Likewise.
10775 (vst1q_p64): Likewise.
10776 (vst1q_s8): Likewise.
10777 (vst1q_s16): Likewise.
10778 (vst1q_s32): Likewise.
10779 (vst1q_s64): Likewise.
10780 (vst1q_u8): Likewise.
10781 (vst1q_u16): Likewise.
10782 (vst1q_u32): Likewise.
10783 (vst1q_u64): Likewise.
10784 (vst1_s64_x2): Likewise.
10785 (vst1_u64_x2): Likewise.
10786 (vst1_f64_x2): Likewise.
10787 (vst1_s8_x2): Likewise.
10788 (vst1_p8_x2): Likewise.
10789 (vst1_s16_x2): Likewise.
10790 (vst1_p16_x2): Likewise.
10791 (vst1_s32_x2): Likewise.
10792 (vst1_u8_x2): Likewise.
10793 (vst1_u16_x2): Likewise.
10794 (vst1_u32_x2): Likewise.
10795 (vst1_f16_x2): Likewise.
10796 (vst1_f32_x2): Likewise.
10797 (vst1_p64_x2): Likewise.
10798 (vst1q_s8_x2): Likewise.
10799 (vst1q_p8_x2): Likewise.
10800 (vst1q_s16_x2): Likewise.
10801 (vst1q_p16_x2): Likewise.
10802 (vst1q_s32_x2): Likewise.
10803 (vst1q_s64_x2): Likewise.
10804 (vst1q_u8_x2): Likewise.
10805 (vst1q_u16_x2): Likewise.
10806 (vst1q_u32_x2): Likewise.
10807 (vst1q_u64_x2): Likewise.
10808 (vst1q_f16_x2): Likewise.
10809 (vst1q_f32_x2): Likewise.
10810 (vst1q_f64_x2): Likewise.
10811 (vst1q_p64_x2): Likewise.
10812 (vst1_s64_x3): Likewise.
10813 (vst1_u64_x3): Likewise.
10814 (vst1_f64_x3): Likewise.
10815 (vst1_s8_x3): Likewise.
10816 (vst1_p8_x3): Likewise.
10817 (vst1_s16_x3): Likewise.
10818 (vst1_p16_x3): Likewise.
10819 (vst1_s32_x3): Likewise.
10820 (vst1_u8_x3): Likewise.
10821 (vst1_u16_x3): Likewise.
10822 (vst1_u32_x3): Likewise.
10823 (vst1_f16_x3): Likewise.
10824 (vst1_f32_x3): Likewise.
10825 (vst1_p64_x3): Likewise.
10826 (vst1q_s8_x3): Likewise.
10827 (vst1q_p8_x3): Likewise.
10828 (vst1q_s16_x3): Likewise.
10829 (vst1q_p16_x3): Likewise.
10830 (vst1q_s32_x3): Likewise.
10831 (vst1q_s64_x3): Likewise.
10832 (vst1q_u8_x3): Likewise.
10833 (vst1q_u16_x3): Likewise.
10834 (vst1q_u32_x3): Likewise.
10835 (vst1q_u64_x3): Likewise.
10836 (vst1q_f16_x3): Likewise.
10837 (vst1q_f32_x3): Likewise.
10838 (vst1q_f64_x3): Likewise.
10839 (vst1q_p64_x3): Likewise.
10840 (vst2_s64): Likewise.
10841 (vst2_u64): Likewise.
10842 (vst2_f64): Likewise.
10843 (vst2_s8): Likewise.
10844 (vst2_p8): Likewise.
10845 (vst2_s16): Likewise.
10846 (vst2_p16): Likewise.
10847 (vst2_s32): Likewise.
10848 (vst2_u8): Likewise.
10849 (vst2_u16): Likewise.
10850 (vst2_u32): Likewise.
10851 (vst2_f16): Likewise.
10852 (vst2_f32): Likewise.
10853 (vst2_p64): Likewise.
10854 (vst2q_s8): Likewise.
10855 (vst2q_p8): Likewise.
10856 (vst2q_s16): Likewise.
10857 (vst2q_p16): Likewise.
10858 (vst2q_s32): Likewise.
10859 (vst2q_s64): Likewise.
10860 (vst2q_u8): Likewise.
10861 (vst2q_u16): Likewise.
10862 (vst2q_u32): Likewise.
10863 (vst2q_u64): Likewise.
10864 (vst2q_f16): Likewise.
10865 (vst2q_f32): Likewise.
10866 (vst2q_f64): Likewise.
10867 (vst2q_p64): Likewise.
10868 (vst3_s64): Likewise.
10869 (vst3_u64): Likewise.
10870 (vst3_f64): Likewise.
10871 (vst3_s8): Likewise.
10872 (vst3_p8): Likewise.
10873 (vst3_s16): Likewise.
10874 (vst3_p16): Likewise.
10875 (vst3_s32): Likewise.
10876 (vst3_u8): Likewise.
10877 (vst3_u16): Likewise.
10878 (vst3_u32): Likewise.
10879 (vst3_f16): Likewise.
10880 (vst3_f32): Likewise.
10881 (vst3_p64): Likewise.
10882 (vst3q_s8): Likewise.
10883 (vst3q_p8): Likewise.
10884 (vst3q_s16): Likewise.
10885 (vst3q_p16): Likewise.
10886 (vst3q_s32): Likewise.
10887 (vst3q_s64): Likewise.
10888 (vst3q_u8): Likewise.
10889 (vst3q_u16): Likewise.
10890 (vst3q_u32): Likewise.
10891 (vst3q_u64): Likewise.
10892 (vst3q_f16): Likewise.
10893 (vst3q_f32): Likewise.
10894 (vst3q_f64): Likewise.
10895 (vst3q_p64): Likewise.
10896 (vst4_s64): Likewise.
10897 (vst4_u64): Likewise.
10898 (vst4_f64): Likewise.
10899 (vst4_s8): Likewise.
10900 (vst4_p8): Likewise.
10901 (vst4_s16): Likewise.
10902 (vst4_p16): Likewise.
10903 (vst4_s32): Likewise.
10904 (vst4_u8): Likewise.
10905 (vst4_u16): Likewise.
10906 (vst4_u32): Likewise.
10907 (vst4_f16): Likewise.
10908 (vst4_f32): Likewise.
10909 (vst4_p64): Likewise.
10910 (vst4q_s8): Likewise.
10911 (vst4q_p8): Likewise.
10912 (vst4q_s16): Likewise.
10913 (vst4q_p16): Likewise.
10914 (vst4q_s32): Likewise.
10915 (vst4q_s64): Likewise.
10916 (vst4q_u8): Likewise.
10917 (vst4q_u16): Likewise.
10918 (vst4q_u32): Likewise.
10919 (vst4q_u64): Likewise.
10920 (vst4q_f16): Likewise.
10921 (vst4q_f32): Likewise.
10922 (vst4q_f64): Likewise.
10923 (vst4q_p64): Likewise.
10924 (vtbx4_s8): Likewise.
10925 (vtbx4_u8): Likewise.
10926 (vtbx4_p8): Likewise.
10927 (vtrn_f32): Likewise.
10928 (vtrn_p8): Likewise.
10929 (vtrn_p16): Likewise.
10930 (vtrn_s8): Likewise.
10931 (vtrn_s16): Likewise.
10932 (vtrn_s32): Likewise.
10933 (vtrn_u8): Likewise.
10934 (vtrn_u16): Likewise.
10935 (vtrn_u32): Likewise.
10936 (vtrnq_f32): Likewise.
10937 (vtrnq_p8): Likewise.
10938 (vtrnq_p16): Likewise.
10939 (vtrnq_s8): Likewise.
10940 (vtrnq_s16): Likewise.
10941 (vtrnq_s32): Likewise.
10942 (vtrnq_u8): Likewise.
10943 (vtrnq_u16): Likewise.
10944 (vtrnq_u32): Likewise.
10945 (vrsqrte_f16): Likewise.
10946 (vrsqrteq_f16): Likewise.
10947 (vsqrt_f16): Likewise.
10948 (vsqrtq_f16): Likewise.
10949 (vabd_f16): Likewise.
10950 (vabdq_f16): Likewise.
10951 (vpadd_f16): Likewise.
10952 (vpaddq_f16): Likewise.
10953 (vpmax_f16): Likewise.
10954 (vpmaxq_f16): Likewise.
10955 (vpmaxnm_f16): Likewise.
10956 (vpmaxnmq_f16): Likewise.
10957 (vpmin_f16): Likewise.
10958 (vpminq_f16): Likewise.
10959 (vpminnm_f16): Likewise.
10960 (vpminnmq_f16): Likewise.
10961 (vrsqrts_f16): Likewise.
10962 (vrsqrtsq_f16): Likewise.
10963
10964 2019-09-25 Richard Biener <rguenther@suse.de>
10965
10966 PR tree-optimization/91896
10967 * tree-vect-loop.c (vectorizable_reduction): The single
10968 def-use cycle optimization cannot apply when there's more
10969 than one pattern stmt involved.
10970
10971 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
10972
10973 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
10974 the 'P' mode iterator, replacing the (removed) SI and DI variants.
10975 (reload_macho_picbase_<mode>): Likewise.
10976
10977 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
10978
10979 * config/rs6000/rs6000.md: Move darwin.md include until
10980 after the definition of the mode iterators.
10981
10982 2019-09-23 Martin Sebor <msebor@redhat.com>
10983
10984 PR tree-optimization/91570
10985 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
10986 non-constant minlen, maxlen and maxbound.
10987
10988 2019-09-24 Richard Biener <rguenther@suse.de>
10989
10990 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
10991 Rename to...
10992 (_stmt_vec_info::cond_reduc_code): ... this.
10993 (_stmt_vec_info::induc_cond_initial_val): Add.
10994 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
10995 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
10996 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
10997 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
10998 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
10999 the reduction code.
11000 (vect_create_epilog_for_reduction): Drop special
11001 induction condition reduction params, pass in reduction code
11002 and simplify.
11003 (vectorizable_reduction): Perform condition reduction kind
11004 selection only at analysis time. Adjust passing on state.
11005
11006 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11007
11008 * config/aarch64/aarch64.md (mov<mode>): Don't call
11009 aarch64_split_dimode_const_store on volatile MEM.
11010
11011 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
11012
11013 * config/aarch64/aarch64-option-extensions.def (fp16fml):
11014 Update hwcap string for fp16fml.
11015
11016 2019-09-24 Jakub Jelinek <jakub@redhat.com>
11017
11018 PR middle-end/91866
11019 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
11020 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
11021
11022 2019-09-24 Martin Liska <mliska@suse.cz>
11023
11024 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
11025 instead of if-elseif-elseif-...
11026 * gimple-expr.c (extract_ops_from_tree): Likewise.
11027 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11028 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
11029
11030 2019-09-24 Martin Jambor <mjambor@suse.cz>
11031
11032 PR ipa/91831
11033 * ipa-param-manipulation.c (carry_over_param): Make a method of
11034 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
11035 in case of a context mismatch.
11036 (ipa_param_body_adjustments::common_initialization): Adjust call to
11037 carry_over_param.
11038 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
11039 private method carry_over_param.
11040
11041 2019-09-24 Martin Jambor <mjambor@suse.cz>
11042
11043 PR ipa/91832
11044 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
11045
11046 2019-09-24 Richard Biener <rguenther@suse.de>
11047
11048 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
11049 base.
11050
11051 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11052
11053 * config/arm/t-arm (arm-builtins.o): Add dependency on
11054 arm_acle_builtins.def.
11055
11056 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11057
11058 PR target/91823
11059 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
11060 canonical CONST_INTs. Use gen_rtvec.
11061
11062 2019-09-23 Richard Biener <rguenther@suse.de>
11063
11064 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
11065 avoid adjusting by + 0 or * 1.
11066 (vect_create_epilog_for_reduction): Get reduction code only
11067 when necessary. Deal with adjustment_def only when necessary.
11068
11069 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11070
11071 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
11072 memmodel index.
11073
11074 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11075
11076 PR ipa/91835
11077 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
11078 "ipa-sra".
11079
11080 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
11081
11082 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
11083 code. Merge code blocks with common conditionals. Use declared
11084 macro instead of a magic number for PIC level.
11085
11086 2019-09-21 Martin Sebor <msebor@redhat.com>
11087
11088 PR middle-end/91830
11089 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
11090 Simplify computation of the offset of the referenced subobject.
11091
11092 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
11093
11094 * config/darwin.c (machopic_legitimize_pic_address): Check
11095 for lra not reload.
11096
11097 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
11098
11099 * ira-conflicts.c (can_use_same_reg_p): New function.
11100 (process_reg_shuffles): Take an insn parameter. Ignore cases
11101 in which input operand op_num could seemingly never be allocated
11102 to the same register as the destination.
11103 (add_insn_allocno_copies): Update call to process_reg_shuffles.
11104
11105 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
11106
11107 * simplify-rtx.c (neg_const_int): Replace with...
11108 (neg_poly_int_rtx): ...this new function.
11109 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
11110 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
11111 (simplify_plus_minus): Likewise for constant terms here.
11112
11113 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
11114
11115 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
11116 HOST_WIDE_PRINT_UNSIGNED.
11117
11118 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
11119
11120 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
11121 character.
11122
11123 2019-09-20 Maya Rashish <coypu@sdf.org>
11124
11125 PR target/86811
11126 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
11127 Define to speculation_safe_value_not_needed.
11128
11129 2019-09-20 Richard Biener <rguenther@suse.de>
11130 Uros Bizjak <ubizjak@gmail.com>
11131
11132 PR target/91814
11133 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
11134 previous change.
11135 (general_scalar_chain::convert_op): Force not suitable memory
11136 operands to a register.
11137
11138 2019-09-20 Richard Biener <rguenther@suse.de>
11139
11140 PR tree-optimization/91821
11141 * tree-vect-loop.c (check_reduction_path): Check we can compute
11142 reduc_idx.
11143 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
11144 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
11145 operands in canonical order.
11146 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11147 STMT_VINFO_REDUC_IDX.
11148 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
11149 (STMT_VINFO_REDUC_IDX): Likewise.
11150
11151 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
11152
11153 PR target/91269
11154 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11155
11156 2019-09-20 Richard Biener <rguenther@suse.de>
11157
11158 PR tree-optimization/91822
11159 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
11160 parameter.
11161 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
11162 for reduc_index in nested cycles, adjust vectorizable_condition
11163 calls.
11164 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
11165 parameter.
11166 (vect_analyze_stmt): Adjust.
11167 (vect_transform_stmt): Likewise.
11168
11169 2019-09-20 Richard Biener <rguenther@suse.de>
11170
11171 PR target/91767
11172 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
11173 Ensure there's a sequence point between allocating the new register
11174 and passing a reference to a reg via regno_reg_rtx.
11175
11176 2019-09-20 Martin Jambor <mjambor@suse.cz>
11177
11178 * coretypes.h (cgraph_edge): Declare.
11179 * ipa-param-manipulation.c: Rewrite.
11180 * ipa-param-manipulation.h: Likewise.
11181 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
11182 (OBJS): Added ipa-sra.o.
11183 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
11184 and ref_p, added fields param_adjustments and performed_splits.
11185 (struct cgraph_clone_info): Remove ags_to_skip and
11186 combined_args_to_skip, new field param_adjustments.
11187 (cgraph_node::create_clone): Changed parameters to use
11188 ipa_param_adjustments.
11189 (cgraph_node::create_virtual_clone): Likewise.
11190 (cgraph_node::create_virtual_clone_with_body): Likewise.
11191 (tree_function_versioning): Likewise.
11192 (cgraph_build_function_type_skip_args): Removed.
11193 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
11194 using ipa_param_adjustments.
11195 (clone_of_p): Likewise.
11196 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
11197 (build_function_decl_skip_args): Likewise.
11198 (duplicate_thunk_for_node): Adjust parameters using
11199 ipa_param_body_adjustments, copy param_adjustments instead of
11200 args_to_skip.
11201 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
11202 (cgraph_node::create_virtual_clone): Likewise.
11203 (cgraph_node::create_version_clone_with_body): Likewise.
11204 (cgraph_materialize_clone): Likewise.
11205 (symbol_table::materialize_all_clones): Likewise.
11206 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
11207 ipa_replace_map check.
11208 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
11209 (initialize_node_lattices): Make aware that some parameters might have
11210 already been removed.
11211 (want_remove_some_param_p): New function.
11212 (create_specialized_node): Convert to using ipa_param_adjustments and
11213 deal with possibly pre-existing adjustments.
11214 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
11215 (output_node_opt_summary): Do not stream removed fields. Stream
11216 parameter adjustments instead of argumetns to skip.
11217 (input_node_opt_summary): Likewise.
11218 (input_node_opt_summary): Likewise.
11219 * lto-section-in.c (lto_section_name): Added ipa-sra section.
11220 * lto-streamer.h (lto_section_type): Likewise.
11221 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
11222 param_body_adjs.
11223 (copy_decl_to_var): Declare.
11224 * tree-inline.c (update_clone_info): Do not remap old_tree.
11225 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
11226 statements, walk all extra generated statements and remap their
11227 operands.
11228 (redirect_all_calls): Add killed SSA names to a hash set.
11229 (remap_ssa_name): Do not remap killed SSA names.
11230 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
11231 half of functionality moved to ipa_param_body_adjustments.
11232 (copy_decl_to_var): Make exported.
11233 (copy_body): Destroy killed_new_ssa_names hash set.
11234 (expand_call_inline): Remap performed splits.
11235 (update_clone_info): Likewise.
11236 (tree_function_versioning): Simplify tree_map processing. Updated to
11237 accept ipa_param_adjustments and use ipa_param_body_adjustments.
11238 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
11239 for the new interface.
11240 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
11241 (simd_clone_compute_base_data_type): Likewise.
11242 (simd_clone_init_simd_arrays): Adjust for the new interface.
11243 (simd_clone_adjust_argument_types): Likewise.
11244 (struct modify_stmt_info): Likewise.
11245 (ipa_simd_modify_stmt_ops): Likewise.
11246 (ipa_simd_modify_function_body): Likewise.
11247 (simd_clone_adjust): Likewise.
11248 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
11249 (type_internals_preclude_sra_p): Make public.
11250 * tree-sra.h: New file.
11251 * ipa-inline-transform.c (save_inline_function_body): Update to
11252 refelct new tree_function_versioning signature.
11253 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
11254 ipa_param_adjustments to get current parameter indices.
11255 (ipcp_modif_dom_walker::before_dom_children): Likewise.
11256 (ipcp_update_bits): Likewise.
11257 (ipcp_update_vr): Likewise.
11258 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
11259 * ipa-sra.c: New file.
11260 * multiple_target.c (create_target_clone): Update to reflet new type
11261 of create_version_clone_with_body.
11262 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
11263 tree_function_versioning.
11264 (modify_function): Update to reflect new type of
11265 tree_function_versioning.
11266 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
11267 * passes.def: Remove old IPA-SRA and add new one.
11268 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
11269 (make_pass_ipa_sra): Declare.
11270 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
11271 ipa_sra_retvalues.
11272 * doc/invoke.texi (ipa-sra-max-replacements): New.
11273
11274 2019-09-19 Martin Sebor <msebor@redhat.com>
11275
11276 PR middle-end/91631
11277 * builtins.c (component_size): Correct trailing array computation,
11278 rename to component_ref_size and move...
11279 (compute_objsize): Adjust.
11280 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
11281 (builtin_access::strict): Do not consider memmove.
11282 (builtin_access::write_off): New function.
11283 (builtin_memref::builtin_memref): Initialize refsize.
11284 (builtin_memref::set_base_and_offset): Adjust refoff and compute
11285 refsize.
11286 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
11287 Handle refsize.
11288 (builtin_access::builtin_access): Initialize dstoff to destination
11289 refeence offset here instead of in maybe_diag_overlap. Adjust
11290 referencess even to unrelated objects. Adjust sizrange of bounded
11291 string functions to reflect bound. For strcat, adjust destination
11292 sizrange by that of source.
11293 (builtin_access::strcat_overlap): Adjust offsets and sizes
11294 to reflect the increase in destination sizrange above.
11295 (builtin_access::overlap): Do not set dstoff here but instead
11296 in builtin_access::builtin_access.
11297 (check_bounds_or_overlap): Use builtin_access::write_off.
11298 (maybe_diag_access_bounds): Add argument. Add informational notes.
11299 (dump_builtin_memref, dump_builtin_access): New functions.
11300 * tree.c (component_ref_size): ...to here.
11301 * tree.h (component_ref_size): Declare.
11302 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
11303 nul in the size of the source string.
11304
11305 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
11306
11307 PR c/67224
11308 * doc/cpp.texi: Document support for extended characters in
11309 identifiers.
11310 * doc/cppopts.texi: Likewise.
11311
11312 2019-09-19 Richard Biener <rguenther@suse.de>
11313
11314 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
11315 (check_reduction_path): New overload having the path as result.
11316 (vect_is_simple_reduction): From the detected reduction
11317 path build a SLP reduction chain if possible.
11318
11319 2019-09-19 Richard Biener <rguenther@suse.de>
11320
11321 PR target/91814
11322 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
11323 Force operand to a register if it isn't nonimmediate_operand.
11324
11325 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
11326
11327 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
11328 * config/arm/iterators.md (optab): Add and, ior, xor entries.
11329 (logical_op): Remove code attribute.
11330 (logical_OP): Likewise.
11331
11332 2019-09-19 Martin Liska <mliska@suse.cz>
11333
11334 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
11335 Use proper casting.
11336
11337 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
11338
11339 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
11340 registers with %R.
11341
11342 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
11343 for NE comparison of TImode values.
11344 (aarch64_emit_load_exclusive): Add support for TImode.
11345 (aarch64_emit_store_exclusive): Likewise.
11346 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
11347 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
11348 Change iterator from ALLI to ALLI_TI.
11349 (@atomic_compare_and_swap<JUST_TI>): New.
11350 (@atomic_compare_and_swap<JUST_TI>_lse): New.
11351 (aarch64_load_exclusive_pair): New.
11352 (aarch64_store_exclusive_pair): New.
11353 * config/aarch64/iterators.md (JUST_TI): New.
11354
11355 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
11356 strong_zero_p for aarch64_track_speculation; unify some code paths;
11357 use aarch64_gen_compare_reg instead of open-coding.
11358
11359 * config/aarch64/aarch64.opt (-moutline-atomics): New.
11360 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
11361 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
11362 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
11363 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
11364 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
11365 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
11366 (atomic_<atomic_op><ALLI>): Likewise.
11367 (atomic_fetch_<atomic_op><ALLI>): Likewise.
11368 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
11369 * doc/invoke.texi: Document -moutline-atomics.
11370
11371 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
11372
11373 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
11374 trivial predicate for condition branch.
11375 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
11376 for switch case.
11377 (compute_bb_predicates): Update predicate based on post-dominating
11378 relationship.
11379 (analyze_function_body): Calculate post-dominating information.
11380
11381 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
11382
11383 * tree-vectorizer.h (vectorizable_condition): Take an int
11384 reduction index instead of a boolean flag.
11385 * tree-vect-stmts.c (vectorizable_condition): Likewise.
11386 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
11387 reductions if the reduction accumulator is the "then" rather
11388 than the "else" value.
11389 (vect_analyze_stmt): Update call accordingly.
11390 (vect_transform_stmt): Likewise.
11391 * tree-vect-loop.c (vectorizable_reduction): Likewise,
11392 asserting that the index is > 0.
11393
11394 2019-09-19 Martin Liska <mliska@suse.cz>
11395
11396 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
11397 (sort_congruence_classes_by_decl_uid): Likewise.
11398 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
11399 easier sorting.
11400 (sem_item_optimizer::merge_classes): Likewise.
11401
11402 2019-09-19 Richard Biener <rguenther@suse.de>
11403
11404 PR tree-optimization/91812
11405 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
11406 volatile loads.
11407
11408 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
11409
11410 * defaults.h (TARGET_UNIT): New macro.
11411 (target_unit): New type.
11412 * rtl.h (native_encode_rtx, native_decode_rtx)
11413 (native_decode_vector_rtx, subreg_size_lsb): Declare.
11414 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
11415 * rtlanal.c (subreg_lsb_1): Delete.
11416 (subreg_size_lsb): New function.
11417 * simplify-rtx.c: Include rtx-vector-builder.h
11418 (simplify_immed_subreg): Delete.
11419 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
11420 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
11421 functions.
11422 (simplify_subreg): Use them.
11423 (test_vector_subregs_modes, test_vector_subregs_repeating)
11424 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
11425 (test_vector_subregs): New functions.
11426 (test_vector_ops): Call test_vector_subregs for integer vector
11427 modes with at least 2 elements.
11428
11429 2019-09-19 Richard Biener <rguenther@suse.de>
11430
11431 * tree-parloops.c (parloops_is_slp_reduction): Do not set
11432 LOOP_VINFO_OPERANDS_SWAPPED.
11433 (parloops_is_simple_reduction): Likewise.
11434 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
11435 initialize operands_swapped.
11436 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
11437 (vect_is_slp_reduction): Do not swap operands.
11438 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
11439 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
11440
11441 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
11442
11443 PR target/87007
11444 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
11445 Add avx_partial_xmm_update.
11446
11447 2019-09-18 Jim Wilson <jimw@sifive.com>
11448
11449 PR target/91683
11450 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
11451 (riscv_move_integer): Likewise.
11452 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
11453 riscv_move_integer arg.
11454 (riscv_legitimize_move): Likewise.
11455 (riscv_force_temporary): New parameter in_splitter. Don't call
11456 force_reg if true.
11457 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
11458 arg.
11459 (riscv_add_offset): Likewise.
11460 (riscv_split_symbol): New parameter in_splitter. Pass to
11461 riscv_force_temporary.
11462 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
11463 arg.
11464 (riscv_move_integer): New parameter in_splitter. New local
11465 can_create_psuedo. Don't call riscv_split_integer or force_reg when
11466 in_splitter TRUE.
11467 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
11468 riscv_split_symbol, and riscv_force_temporary args.
11469 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
11470 riscv_move_integer arg.
11471 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
11472
11473 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
11474
11475 PR target/90878
11476 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
11477 hard register store cost to 6.
11478
11479 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
11480
11481 PR target/91446
11482 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
11483 pseudo register store cost from 3 to 6 to make it the same as
11484 QImode and HImode.
11485
11486 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11487
11488 PR target/91738
11489 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
11490 (one_cmpldi2): Likewise.
11491 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
11492 of the constant parts is simple.
11493 * config/arm/iterators.md (LOGICAL): Add new code iterator.
11494 (logical_op): Add new code attribute.
11495 (logical_OP): Likewise.
11496 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
11497 (arm_iordi_operand): Add predicate.
11498 (arm_xordi_operand): Add predicate.
11499
11500 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11501
11502 * config/arm/arm.md (maddsidi4): Remove expander.
11503 (mulsidi3adddi): Remove pattern.
11504 (mulsidi3adddi_v6): Likewise.
11505 (mulsidi3_nov6): Likewise.
11506 (mulsidi3_v6): Likewise.
11507 (umulsidi3): Remove expander.
11508 (umulsidi3_nov6): Remove pattern.
11509 (umulsidi3_v6): Likewise.
11510 (umulsidi3adddi): Likewise.
11511 (umulsidi3adddi_v6): Likewise.
11512 (<Us>mulsidi3): Add combined expander.
11513 (<Us>maddsidi4): Likewise.
11514 (<US>mull): Add combined umull and smull pattern.
11515 (<US>mlal): Likewise.
11516 * config/arm/iterators.md (Us): Add new iterator.
11517
11518 2019-09-18 Richard Biener <rguenther@suse.de>
11519
11520 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
11521 swapping.
11522 (vectorize_fold_left_reduction): Remove assert.
11523 (vectorizable_reduction): Also expect COND_EXPR non-reduction
11524 operand in position 2. Remove assert.
11525
11526 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11527
11528 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
11529 (smulsi3_highpart_nov6): Remove pattern.
11530 (smulsi3_highpart_v6): Likewise.
11531 (umulsi3_highpart): Likewise.
11532 (umulsi3_highpart_nov6): Likewise.
11533 (umulsi3_highpart_v6): Likewise.
11534 (<US>mull_high): Add new combined multiply pattern.
11535
11536 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11537
11538 * config/arm/arm.md (arm_mulsi3): Remove pattern.
11539 (arm_mulsi3_v6): Likewise.
11540 (mulsi3addsi_v6): Likewise.
11541 (mulsi3subsi): Likewise.
11542 (mul): Add new multiply pattern.
11543 (mla): Likewise.
11544 (mls): Likewise.
11545
11546 2019-09-18 Richard Biener <rguenther@suse.de>
11547
11548 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
11549 (parloops_valid_reduction_input_p): Copy from
11550 valid_reduction_input_p.
11551 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
11552 (parloops_needs_fold_left_reduction_p): Copy from
11553 needs_fold_left_reduction_p.
11554 (parloops_is_simple_reduction): Copy from
11555 vect_is_simple_reduction.
11556 (parloops_force_simple_reduction): Copy from
11557 vect_force_simple_reduction.
11558 (gather_scalar_reductions): Adjust.
11559 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
11560 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
11561
11562 2019-09-18 Richard Biener <rguenther@suse.de>
11563
11564 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
11565 * tree-vect-loop.c (get_initial_def_for_reduction): Make
11566 static.
11567 (vect_create_epilog_for_reduction): Remove dead code.
11568
11569 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11570
11571 * varasm.c (assemble_real): Generate canonical const_ints.
11572
11573 2019-09-18 Richard Biener <rguenther@suse.de>
11574
11575 PR lto/91763
11576 * lto-streamer-in.c (input_eh_regions): Move EH init to
11577 lto_materialize_function.
11578 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
11579 Likewise.
11580
11581 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11582
11583 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
11584 are INTEGER_CSTs.
11585
11586 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11587
11588 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
11589 of checking specifically for INTEGER_CST.
11590
11591 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11592
11593 * stor-layout.c (compute_record_mode): Operate on poly_uint64
11594 sizes instead of uhwi sizes.
11595
11596 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11597
11598 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
11599 (add_const_value_attribute): Handle CONST_POLY_INT.
11600
11601 2019-09-18 Martin Liska <mliska@suse.cz>
11602
11603 * dbgcnt.def (store_merging): New counter.
11604 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
11605 Use it in store merging.
11606
11607 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11608
11609 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
11610 function.
11611 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
11612 * config/arm/arm.c (arm_sched_variable_issue): New function.
11613 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
11614
11615 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11616
11617 * config/arm/types.md (no_reservation): New reservation.
11618 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
11619 no_insn here.
11620 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
11621 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
11622 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
11623 * config/arm/arm1020e.md (1020alu_op): Likewise.
11624 * config/arm/arm1026ejs.md (alu_op): Likewise.
11625 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
11626 * config/arm/arm926ejs.md (9_alu_op): Likewise.
11627 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
11628 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
11629 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
11630 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
11631 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
11632 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
11633 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
11634 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
11635 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
11636 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
11637 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
11638 * config/arm/fa526.md (526_alu_op): Likewise.
11639 * config/arm/fa606te.md (606te_alu_op): Likewise.
11640 * config/arm/fa626te.md (626te_alu_op): Likewise.
11641 * config/arm/fa726te.md (726te_alu_op): Likewise.
11642 * config/arm/xgene1.md (xgene1_nop): Likewise.
11643
11644 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11645
11646 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
11647 "no_insn" to "branch".
11648
11649 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11650
11651 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
11652
11653 2019-09-17 Richard Biener <rguenther@suse.de>
11654
11655 PR debug/91772
11656 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
11657 was missing generate locations only once.
11658
11659 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
11660
11661 PR ipa/91089
11662 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
11663 option.
11664 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
11665 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
11666 for switch default case using range analysis information.
11667
11668 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
11669
11670 PR target/91749
11671 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
11672 mode attributed is supported by FDPIC.
11673
11674 2019-09-17 Richard Biener <rguenther@suse.de>
11675
11676 PR tree-optimization/91790
11677 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
11678 use the correct DR for setting up realignment.
11679
11680 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
11681
11682 PR target/91719
11683 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
11684 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
11685 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
11686 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
11687
11688 2019-09-16 Jason Merrill <jason@redhat.com>
11689
11690 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
11691
11692 2019-09-16 Martin Liska <mliska@suse.cz>
11693
11694 * gimple-fold.c (or_comparisons_1): Remove rules moved
11695 to ...
11696 * match.pd: ... here.
11697
11698 2019-09-16 Martin Liska <mliska@suse.cz>
11699
11700 * gimple-fold.c (or_comparisons_1): Remove rules
11701 moved to ...
11702 * match.pd: ... here.
11703
11704 2019-09-16 Martin Liska <mliska@suse.cz>
11705
11706 * genmatch.c (dt_node::append_simplify): Do not print
11707 warning when we have duplicate patterns belonging
11708 to a same simplify rule.
11709 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
11710 (maybe_fold_comparisons_from_match_pd): Handle
11711 tcc_comparison as a results.
11712 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
11713
11714 2019-09-16 Li Jia He <helijia@linux.ibm.com>
11715 Qi Feng <ffengqi@linux.ibm.com>
11716
11717 PR middle-end/88784
11718 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
11719 (x > y && x == XXX_MIN): Optimize into 'false'.
11720 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
11721 (x < y && x != XXX_MAX): Optimize into 'x < y'.
11722 (x < y && x == XXX_MAX): Optimize into 'false'.
11723 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
11724 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
11725 (x <= y || x != XXX_MIN): Optimize into 'true'.
11726 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
11727 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
11728 (x >= y || x != XXX_MAX): Optimize into 'true'.
11729 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
11730
11731 2019-09-16 Li Jia He <helijia@linux.ibm.com>
11732 Martin Liska <mliska@suse.cz>
11733
11734 * gimple-fold.c (and_comparisons_1): Add type as first
11735 argument.
11736 (and_var_with_comparison): Likewise.
11737 (and_var_with_comparison_1): Likewise.
11738 (or_comparisons_1): Likewise.
11739 (or_var_with_comparison): Likewise.
11740 (or_var_with_comparison_1): Likewise.
11741 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
11742 (maybe_fold_or_comparisons): Likewise.
11743 (maybe_fold_comparisons_from_match_pd): New.
11744 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
11745 (maybe_fold_or_comparisons): Likewise.
11746 * gimple.c (gimple_size): Make it public and add num_ops argument.
11747 (gimple_init): New function.
11748 (gimple_alloc): Call gimple_init.
11749 * gimple.h (gimple_size): New.
11750 (gimple_init): Likewise.
11751 * tree-if-conv.c (fold_or_predicates): Pass type.
11752 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
11753 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
11754 (optimize_vec_cond_expr): Likewise.
11755 (ovce_extract_ops): Return type of conditional expression.
11756 * tree-ssanames.c (init_ssa_name_imm_use): New.
11757 (make_ssa_name_fn): Use init_ssa_name_imm_use.
11758 * tree-ssanames.h (init_ssa_name_imm_use): New.
11759
11760 2019-09-16 Richard Biener <rguenther@suse.de>
11761
11762 PR tree-optimization/91756
11763 PR tree-optimization/87132
11764 * tree-ssa-alias.h (enum translate_flags): New.
11765 (get_continuation_for_phi): Use it instead of simple bool flag.
11766 (walk_non_aliased_vuses): Likewise.
11767 * tree-ssa-alias.c (maybe_skip_until): Adjust.
11768 (get_continuation_for_phi): When looking across backedges only
11769 disallow valueization.
11770 (walk_non_aliased_vuses): Adjust.
11771 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
11772 if requested.
11773
11774 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
11775
11776 PR middle-end/80791
11777 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
11778 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
11779 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
11780 * target.def (have_count_reg_decr_p): New hook.
11781 (doloop_cost_for_generic): Likewise.
11782 (doloop_cost_for_address): Likewise.
11783 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
11784 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
11785 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
11786 * doc/tm.texi: Regenerate.
11787 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
11788 addend.
11789 (record_group): Init doloop_p.
11790 (add_candidate_1): Add optional argument doloop, change the handlings
11791 accordingly.
11792 (add_candidate): Likewise.
11793 (generic_predict_doloop_p): Update attribute.
11794 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
11795 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
11796 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
11797 MIN_EXPR.
11798 (get_computation_cost): Update for doloop IV cand extra cost.
11799 (determine_group_iv_cost_cond): Update for doloop IV cand.
11800 (determine_iv_cost): Likewise.
11801 (ivopts_estimate_reg_pressure): Likewise.
11802 (may_eliminate_iv): Update handlings for doloop IV cand.
11803 (add_iv_candidate_for_doloop): New function.
11804 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
11805 (iv_ca_set_no_cp): Update for doloop IV cand.
11806 (iv_ca_set_cp): Likewise.
11807 (iv_ca_dump): Dump register cost.
11808 (find_doloop_use): New function.
11809 (analyze_and_mark_doloop_use): Likewise.
11810 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
11811
11812 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
11813
11814 PR middle-end/91708
11815 * cse.c (cse_insn): Do not replace anything with a
11816 MEM.
11817
11818 2019-09-13 Ian Lance Taylor <iant@golang.org>
11819
11820 * doc/invoke.texi (Optimize Options): Fix typo.
11821
11822 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
11823
11824 PR tree-optimization/89386
11825 * config/i386/sse.md (smulhrs<mode>3): New expander.
11826 (smulhrsv4hi3): Ditto.
11827
11828 2019-09-12 Richard Biener <rguenther@suse.de>
11829
11830 PR tree-optimization/91750
11831 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
11832 in the type of the evolution.
11833
11834 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
11835
11836 PR tree-optimization/89386
11837 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
11838 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
11839 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
11840 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
11841 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
11842 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
11843 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
11844 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
11845 (su, r): Handle the unspecs above.
11846 (bt): New int attribute.
11847 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
11848 * internal-fn.c (first_commutative_argument): Commutativity info for
11849 above.
11850 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
11851 (umulhrs_optab): New optabs.
11852 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
11853 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
11854 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
11855 function.
11856 (vect_vect_recog_func_ptrs): Add it.
11857
11858 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
11859
11860 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
11861 code.
11862
11863 2019-09-11 Nathan Sidwell <nathan@acm.org>
11864
11865 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
11866 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
11867
11868 2019-09-11 Richard Biener <rguenther@suse.de>
11869
11870 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
11871 * lto-wrapper.c (merge_and_complain): Pick up -g.
11872 (append_compiler_options): Likewise.
11873 (run_gcc): Re-instantiate handling -g0 at link-time.
11874 * doc/invoke.texi (flto): Document debug info generation.
11875
11876 2019-09-11 Richard Biener <rguenther@suse.de>
11877
11878 PR tree-optimization/90387
11879 * vr-values.c (vr_values::extract_range_basic): After inlining
11880 simplify non-constant __builtin_constant_p to false.
11881
11882 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
11883
11884 PR rtl-optimization/89795
11885 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
11886 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
11887
11888 2019-09-11 Jakub Jelinek <jakub@redhat.com>
11889
11890 PR tree-optimization/91723
11891 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
11892 instead of pointer equality when checking if argument vectypes are
11893 the same.
11894
11895 PR middle-end/91725
11896 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
11897 of get_nonzero_bits, only call it for integral types.
11898
11899 2019-09-11 Richard Biener <rguenther@suse.de>
11900
11901 Revert
11902 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
11903
11904 * match.pd: Add flag_unsafe_math_optimizations check
11905 before deciding on the widest type in a binary math operation.
11906
11907 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11908
11909 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
11910 and CALL_REALLY_USED_REGISTERS must be defined, and that
11911 CALL_REALLY_USED_REGISTERS is preferred.
11912 * doc/tm.texi: Regenerate.
11913 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
11914 (call_really_used_regs): Likewise.
11915 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
11916 CALL_REALLY_USED_REGISTERS are defined.
11917 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
11918 initial value if defined.
11919 (initial_call_really_used_regs): Delete.
11920 (saved_call_really_used_regs): Likewise.
11921 (CALL_REALLY_USED_REGNO_P): Likewise.
11922 (init_reg_sets): Remove handling of call_really_used_regs.
11923 (save_register_info, restore_register_info, globalize_reg): Likewise.
11924 (init_reg_sets_1): Likewise. Use call_used_regs instead of
11925 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
11926 outside operand_reg_set.
11927 (fix_register): Don't change call_used_regs if
11928 CALL_REALLY_USED_REGISTERS is defined.
11929 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
11930 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
11931 instead of call_really_used_regs.
11932 (csky_conditional_register_usage): Remove the old handling of
11933 call_used_regs and change the handling of call_really_used_regs
11934 to use call_used_regs instead.
11935 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
11936 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
11937 making a register fixed.
11938 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
11939 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
11940 instead of call_really_used_regs.
11941 (m32r_conditional_register_usage): Don't set call_used_regs when
11942 making a register fixed.
11943 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
11944 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
11945 instead of call_really_used_regs.
11946 (mips_interrupt_extra_call_saved_reg_p): Likewise.
11947 (mips_cfun_call_saved_reg_p): Likewise.
11948 (mips_swap_registers): Remove the old handling of call_used_regs
11949 and change the handling of call_really_used_regs to use call_used_regs
11950 instead.
11951 (mips_conditional_register_usage): Likewise.
11952 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
11953 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
11954 instead of call_really_used_regs.
11955 (mn10300_get_live_callee_saved_regs): Likewise.
11956 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
11957 (mn10300_conditional_register_usage): Don't set call_used_regs when
11958 making a register fixed.
11959 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
11960 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
11961 Remove the old handling of call_used_regs and change the handling
11962 of call_really_used_regs to use call_used_regs instead.
11963 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
11964 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
11965 instead of call_really_used_regs.
11966 (s390_register_info_gprtofpr, s390_register_info): Likewise.
11967 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
11968 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
11969 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
11970 (s390_conditional_register_usage): Remove the old handling of
11971 call_used_regs and change the handling of call_really_used_regs
11972 to use call_used_regs instead.
11973 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
11974 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
11975 (sh_fix_range, reg_unused_after): Likewise.
11976 (sh_conditional_register_usage): Remove the old handling of
11977 call_used_regs and change the handling of call_really_used_regs
11978 to use call_used_regs instead.
11979 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
11980 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
11981 call_used_regs when making a register fixed.
11982 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
11983 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
11984 call_used_regs when making a register fixed.
11985 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
11986 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
11987 set call_used_regs when making a register fixed.
11988 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
11989 * config/visium/visium.c (visium_conditional_register_usage): Remove
11990 the old handling of call_used_regs and change the handling of
11991 call_really_used_regs to use call_used_regs instead.
11992
11993 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11994
11995 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
11996 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
11997 * reginfo.c (call_used_regs): New macro.
11998
11999 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12000
12001 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
12002 fixed_regs test.
12003 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12004 (bpf_expand_epilogue): Likewise.
12005 * config/c6x/c6x.c (c6x_save_reg): Likewise.
12006 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12007 (ft32_expand_epilogue): Likewise.
12008 * config/i386/i386.c (ix86_save_reg): Likewise.
12009 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
12010 (moxie_expand_epilogue): Likewise.
12011 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12012 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12013 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12014
12015 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12016
12017 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
12018 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
12019 instead of testing call_used_regs directly.
12020 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
12021 (aarch64_components_for_bb): Likewise.
12022 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
12023 * config/arc/arc.c (arc_must_save_register): Likewise.
12024 (arc_epilogue_uses): Likewise.
12025 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
12026 (legitimize_pic_address, callee_saved_reg_p): Likewise.
12027 (arm_compute_save_reg0_reg12_mask): Likewise.
12028 (arm_compute_save_core_reg_mask): Likewise.
12029 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
12030 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
12031 (cmse_nonsecure_entry_clear_before_return): Likewise.
12032 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
12033 (arm_expand_epilogue): Likewise.
12034 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
12035 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
12036 (_reg_unused_after): Likewise.
12037 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
12038 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
12039 (add_to_reg, hwloop_optimize): Likewise.
12040 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12041 (bpf_expand_epilogue): Likewise.
12042 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
12043 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
12044 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
12045 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
12046 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
12047 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
12048 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
12049 * config/frv/frv.c (frv_stack_info): Likewise.
12050 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
12051 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
12052 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
12053 (move_callee_saved_registers): Likewise.
12054 * config/h8300/h8300.c (byte_reg): Likewise.
12055 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
12056 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
12057 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
12058 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
12059 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
12060 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
12061 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
12062 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
12063 * config/m32c/m32c.c (need_to_save): Likewise.
12064 * config/m68k/m68k.c (m68k_save_reg): Likewise.
12065 * config/mcore/mcore.c (calc_live_regs): Likewise.
12066 * config/microblaze/microblaze.c (microblaze_must_save_register):
12067 Likewise.
12068 * config/mmix/mmix.c (mmix_local_regno): Likewise.
12069 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
12070 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
12071 (mmix_expand_epilogue): Likewise.
12072 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
12073 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
12074 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
12075 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
12076 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
12077 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
12078 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
12079 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
12080 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
12081 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
12082 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
12083 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
12084 * config/rl78/rl78.c (need_to_save): Likewise.
12085 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
12086 (rs6000_stack_info, generate_set_vrsave): Likewise.
12087 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
12088 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
12089 * config/rx/rx.c (rx_get_stack_layout): Likewise.
12090 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12091 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
12092 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
12093 (save_local_or_in_reg_p): Likewise.
12094 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
12095 (xstormy16_epilogue_uses): Likewise.
12096 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12097 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12098 * config/v850/v850.c (compute_register_save_size): Likewise.
12099 * config/vax/vax.c (vax_expand_prologue): Likewise.
12100 * config/visium/visium.c (visium_save_reg_p): Likewise.
12101 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12102 * cselib.c (cselib_process_insn): Likewise.
12103 * df-scan.c (df_get_entry_block_def_set): Likewise.
12104 * function.c (aggregate_value_p): Likewise.
12105 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
12106 * ira-lives.c (process_bb_node_lives): Likewise.
12107 * ira.c (do_reload): Likewise.
12108 * lra-lives.c (process_bb_lives): Likewise.
12109 * lra-remat.c (lra_remat): Likewise.
12110 * lra.c (lra): Likewise.
12111 * postreload.c (reload_combine_recognize_pattern): Likewise.
12112 (reload_cse_move2add): Likewise.
12113 * recog.c (peep2_find_free_register): Likewise.
12114 * regrename.c (check_new_reg_p): Likewise.
12115 * reload.c (find_equiv_reg): Likewise.
12116 * reload1.c (reload, find_reg): Likewise.
12117 * sel-sched.c (init_hard_regs_data): Likewise.
12118
12119 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12120
12121 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
12122 regs_invalidated_by_call & ~fixed_reg_set instead of
12123 call_used_or_fixed_regs & ~fixed_reg_set.
12124 * config/sh/sh.c (output_stack_adjust): Likewise.
12125
12126 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12127
12128 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
12129 (call_used_reg_set): Delete.
12130 (call_used_or_fixed_regs): New macro.
12131 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
12132 of call_used_reg_set.
12133 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
12134 instead of call_used_regs.
12135 (save_call_clobbered_regs): Likewise.
12136 * cfgcleanup.c (old_insns_match_p): Likewise.
12137 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
12138 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
12139 Likewise.
12140 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12141 * config/sh/sh.c (output_stack_adjust): Likewise.
12142 * final.c (collect_fn_hard_reg_usage): Likewise.
12143 * ira-build.c (ira_build): Likewise.
12144 * ira-color.c (calculate_saved_nregs): Likewise.
12145 (allocno_reload_assign, calculate_spill_cost): Likewise.
12146 * ira-conflicts.c (ira_build_conflicts): Likewise.
12147 * ira-costs.c (ira_tune_allocno_costs): Likewise.
12148 * ira-lives.c (process_bb_node_lives): Likewise.
12149 * ira.c (setup_reg_renumber): Likewise.
12150 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
12151 * lra-constraints.c (need_for_call_save_p): Likewise.
12152 (need_for_split_p, inherit_in_ebb): Likewise.
12153 * lra-lives.c (process_bb_lives): Likewise.
12154 * lra-remat.c (call_used_input_regno_present_p): Likewise.
12155 * postreload.c (reload_combine): Likewise.
12156 * regrename.c (find_rename_reg): Likewise.
12157 * reload1.c (reload_as_needed): Likewise.
12158 * rtlanal.c (find_all_hard_reg_sets): Likewise.
12159 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12160 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12161
12162 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12163
12164 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
12165 (no_caller_save_reg_set): Delete.
12166 * caller-save.c (init_caller_save): Don't initialize it.
12167 * ira-conflicts.c (ira_build_conflicts): Calculate
12168 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
12169
12170 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12171
12172 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
12173 (target_hard_regs::x_savable_regs): New field.
12174 (call_fixed_reg_set): Delete.
12175 (savable_regs): New macro,
12176 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
12177 (init_reg_sets_1): Likewise. Initialize savable_regs.
12178 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
12179 for all registers. Set savable_regs instead of call_fixed_reg_set.
12180 (setup_save_areas, save_call_clobbered_regs): Replace uses of
12181 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
12182 * config/sh/sh.c (output_stack_adjust): Likewise.
12183
12184 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12185
12186 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
12187 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
12188 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
12189
12190 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12191
12192 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
12193 * rtlanal.c (get_call_rtx_from): Likewise.
12194 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
12195 than the pattern to get_call_rtx_from.
12196 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
12197 an rtx_insn * instead of an rtx.
12198 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
12199
12200 2019-09-10 Martin Liska <mliska@suse.cz>
12201
12202 * common.opt: Use newly added WarnRemoved.
12203 * config/aarch64/aarch64.opt: Likewise.
12204 * config/arm/arm.opt: Likewise.
12205 * config/i386/i386.opt: Likewise.
12206 * config/ia64/ia64.opt: Likewise.
12207 * config/rs6000/rs6000.opt: Likewise.
12208 * doc/options.texi: Document WarnRemoved properly.
12209 * dwarf2out.c (gen_producer_string): Handle renamed
12210 OPT_SPECIAL_warn_removed.
12211 * lto-opts.c (lto_write_options): Likewise.
12212 * lto-wrapper.c (merge_and_complain): Likewise.
12213 * opts-common.c (decode_cmdline_option): Likewise.
12214 (prune_options): Likewise.
12215 (read_cmdline_option): Likewise.
12216 (control_warning_option): Likewise.
12217 * opts.c (print_filtered_help): Likewise.
12218 * optc-gen.awk: Parse for WarnRemoved and make usage
12219 of Deprecated an error.
12220 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
12221
12222 2019-09-10 Arnaud Charlet <charlet@adacore.com>
12223
12224 * doc/install.texi: Fix syntax for html generation.
12225
12226 2019-09-10 Jakub Jelinek <jakub@redhat.com>
12227
12228 PR middle-end/91680
12229 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
12230 the shift type to type.
12231
12232 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12233
12234 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
12235 FDPIC mode.
12236 (stack_protect_combined_test_insn): Likewise.
12237
12238 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12239 Mickaël Guêné <mickael.guene@st.com>
12240
12241 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
12242 * config/arm/arm.md (FDPIC_REGNUM): New constant.
12243 (load_tp_soft_fdpic): New pattern.
12244 (load_tp_soft): Disable in FDPIC mode.
12245
12246 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12247 Mickaël Guêné <mickael.guene@st.com>
12248
12249 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
12250 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
12251 (arm_call_tls_get_addr): Add FDPIC support.
12252 (legitimize_tls_address): Likewise.
12253 (arm_emit_tls_decoration): Likewise.
12254
12255 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12256 Mickaël Guêné <mickael.guene@st.com>
12257
12258 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
12259 support.
12260 (arm_trampoline_init): Likewise.
12261 (arm_trampoline_adjust_address): Likewise.
12262 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
12263
12264 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12265 Mickaël Guêné <mickael.guene@st.com>
12266
12267 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
12268 (legitimize_pic_address): Enforce binding rules on function
12269 pointers in FDPIC mode.
12270 (arm_assemble_integer): Likewise.
12271
12272 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12273 Mickaël Guêné <mickael.guene@st.com>
12274
12275 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
12276 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
12277 FDPIC.
12278
12279 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12280 Mickaël Guêné <mickael.guene@st.com>
12281
12282 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
12283 field.
12284
12285 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12286 Mickaël Guêné <mickael.guene@st.com>
12287
12288 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
12289 in FDPIC mode.
12290 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
12291 new function.
12292 * config/arm/arm.c (arm_option_override): Define pic register to
12293 FDPIC_REGNUM.
12294 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
12295 have no decl or go through PLT.
12296 (calculate_pic_address_constant): New function.
12297 (legitimize_pic_address): Call calculate_pic_address_constant.
12298 (arm_load_pic_register): Handle TARGET_FDPIC.
12299 (arm_is_segment_info_known): New function.
12300 (arm_pic_static_addr): Add support for FDPIC.
12301 (arm_load_function_descriptor): New function.
12302 (arm_emit_call_insn): Add support for FDPIC.
12303 (arm_assemble_integer): Add support for FDPIC.
12304 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
12305 Define. (FDPIC_REGNUM): New define.
12306 * config/arm/arm.md (call): Add support for FDPIC.
12307 (call_value): Likewise.
12308 (restore_pic_register_after_call): New pattern.
12309 (untyped_call): Disable if FDPIC.
12310 (untyped_return): Likewise.
12311 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
12312
12313 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12314 Mickaël Guêné <mickael.guene@st.com>
12315
12316 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
12317 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
12318 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
12319 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
12320 (CC1_SPEC): Use FDPIC_CC1_SPEC.
12321 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
12322 * config/arm/uclinuxfdpiceabi.h: New file.
12323
12324 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12325
12326 * config.gcc: Handle *-*-uclinuxfdpiceabi.
12327
12328 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12329 Mickaël Guêné <mickael.guene@st.com>
12330
12331 * config/arm/arm.opt: Add -mfdpic option.
12332 * doc/invoke.texi: Add documentation for -mfdpic.
12333
12334 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12335
12336 * expmed.c (extract_bit_field): Update function comment
12337 regarding alt_rtl.
12338 * expr.c (expand_expr_real): Update function comment
12339 regarding alt_rtl.
12340 (expand_misaligned_mem_ref): New helper function.
12341 (expand_expr_real_2): Use expand_misaligned_mem_ref.
12342 Remove duplicate assignment to "base" at case MEM_REF.
12343 Remove a shadowed variable "unsignedp" at case VCE.
12344
12345 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12346
12347 * regset.h (regs_invalidated_by_call_regset): Delete.
12348 (fixed_reg_set_regset): Likewise.
12349 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
12350 (fixed_reg_set_regset, persistent_obstack): Likewise.
12351 (init_reg_sets_1, globalize_reg): Update accordingly.
12352 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
12353 instead of a bitmap.
12354 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
12355 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
12356 instead of regs_invalidated_by_call_regset.
12357 (df_lr_confluence_n, df_md_confluence_n): Likewise.
12358 * df-scan.c (df_scan_start_dump): Likewise.
12359 * dse.c (copy_fixed_regs): Likewise.
12360 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
12361
12362 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12363
12364 * array-traits.h: New file.
12365 * coretypes.h (array_traits, bitmap_view): New types.
12366 * bitmap.h: Include "array-traits.h"
12367 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
12368 (base_bitmap_view, bitmap_view): New classes.
12369 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
12370 * hard-reg-set.h: Include array-traits.h.
12371 (array_traits<HARD_REG_SET>): New struct.
12372 * regset.h (IOR_REG_SET_HRS): New macro.
12373 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
12374 rather than iterating over each hard register.
12375 * sched-deps.c (sched_analyze_insn): Likewise.
12376 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
12377
12378 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12379
12380 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
12381 instead of a HARD_REG_SET *.
12382 * ira-build.c (ior_hard_reg_conflicts): Likewise.
12383 (ira_build): Update call accordingly.
12384 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
12385
12386 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12387
12388 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
12389 (HARD_REG_SET::operator!=): Likewise.
12390 (hard_reg_set_equal_p): Delete.
12391 * cfgcleanup.c (old_insns_match_p): Use == instead of
12392 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
12393 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
12394 (add_allocno_hard_regs_to_forest): Likewise.
12395 (setup_allocno_available_regs_num): Likewise.
12396 * ira.c (setup_pressure_classes): Likewise.
12397 (setup_allocno_and_important_classes): Likewise.
12398 (setup_reg_class_relations): Likewise.
12399 * lra-lives.c (process_bb_lives): Likewise.
12400 * reg-stack.c (change_stack, convert_regs_1): Likewise.
12401
12402 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12403
12404 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
12405 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
12406 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
12407 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
12408 Likewise.
12409 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
12410 * ira.c (setup_reg_renumber): Likewise.
12411 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12412 * regrename.c (regrename_find_superclass): Likewise.
12413 * reload1.c (find_reg): Likewise.
12414
12415 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12416
12417 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
12418 * caller-save.c (setup_save_areas): Use "&~" instead of
12419 AND_COMPL_HARD_REG_SET.
12420 (save_call_clobbered_regs): Likewise.
12421 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
12422 Likewise.
12423 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12424 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12425 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
12426 * config/mips/mips.c (mips_class_max_nregs): Likewise.
12427 (mips_conditional_register_usage): Likewise.
12428 * config/sh/sh.c (output_stack_adjust): Likewise.
12429 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
12430 (setup_profitable_hard_regs): Likewise.
12431 (get_conflict_and_start_profitable_regs): Likewise.
12432 * ira-conflicts.c (print_allocno_conflicts): Likewise.
12433 (ira_build_conflicts): Likewise.
12434 * ira-costs.c (restrict_cost_classes): Likewise.
12435 (setup_regno_cost_classes_by_aclass): Likewise.
12436 * ira-lives.c (process_bb_node_lives): Likewise.
12437 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
12438 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
12439 (setup_allocno_and_important_classes, setup_class_translate_array)
12440 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
12441 Likewise.
12442 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12443 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
12444 (process_alt_operands, inherit_in_ebb): Likewise.
12445 * lra-eliminations.c (update_reg_eliminate): Likewise.
12446 * lra-lives.c (process_bb_lives): Likewise.
12447 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
12448 * resource.c (find_dead_or_set_registers): Likewise.
12449 (mark_target_live_regs): Likewise.
12450 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
12451 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12452 (implicit_clobber_conflict_p): Likewise.
12453 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12454 (try_shrink_wrapping): Likewise.
12455
12456 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12457
12458 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
12459 (HARD_REG_SET::operator|=): Likewise.
12460 (IOR_HARD_REG_SET): Delete.
12461 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
12462 IOR_HARD_REG_SET.
12463 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
12464 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
12465 * final.c (collect_fn_hard_reg_usage): Likewise.
12466 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
12467 * ira-build.c (merge_hard_reg_conflicts): Likewise.
12468 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
12469 (propagate_some_info_from_allocno): Likewise.
12470 (copy_info_to_removed_store_destinations): Likewise.
12471 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
12472 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
12473 (fast_allocation): Likewise.
12474 * ira-conflicts.c (ira_build_conflicts): Likewise.
12475 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
12476 (process_bb_node_lives): Likewise.
12477 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
12478 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12479 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
12480 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
12481 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
12482 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
12483 (process_bb_lives): Likewise.
12484 * lra-spills.c (assign_spill_hard_regs): Likewise.
12485 * postreload.c (reload_combine): Likewise.
12486 * reginfo.c (init_reg_sets_1): Likewise.
12487 * regrename.c (merge_overlapping_regs, find_rename_reg)
12488 (merge_chains): Likewise.
12489 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
12490 (find_reload_regs, finish_spills, choose_reload_regs_init)
12491 (emit_reload_insns): Likewise.
12492 * reorg.c (redundant_insn): Likewise.
12493 * resource.c (find_dead_or_set_registers, mark_set_resources)
12494 (mark_target_live_regs): Likewise.
12495 * rtlanal.c (find_all_hard_reg_sets): Likewise.
12496 * sched-deps.c (sched_analyze_insn): Likewise.
12497 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12498 (find_best_reg_for_expr): Likewise.
12499 * shrink-wrap.c (try_shrink_wrapping): Likewise.
12500
12501 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12502
12503 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
12504 (HARD_REG_SET::operator&): Likewise.
12505 (AND_HARD_REG_SET): Delete.
12506 * caller-save.c (setup_save_areas): Use "&" instead of
12507 AND_HARD_REG_SET.
12508 (save_call_clobbered_regs): Likewise.
12509 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12510 * config/m32c/m32c.c (reduce_class): Likewise.
12511 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
12512 * final.c (get_call_reg_set_usage): Likewise.
12513 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
12514 (setup_left_conflict_sizes_p): Likewise.
12515 * ira-conflicts.c (print_allocno_conflicts): Likewise.
12516 (ira_build_conflicts): Likewise.
12517 * ira-costs.c (restrict_cost_classes): Likewise.
12518 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
12519 (setup_reg_class_relations): Likewise.
12520 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
12521 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
12522 * resource.c (find_dead_or_set_registers): Likewise.
12523 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12524
12525 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12526
12527 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
12528 (COMPL_HARD_REG_SET): Delete.
12529 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
12530 of COMPL_HARD_REG_SET.
12531 (try_rename_operands): Likewise.
12532 * config/sh/sh.c (push_regs): Likewise.
12533 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12534 * lra-constraints.c (contains_reg_p): Likewise.
12535 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
12536
12537 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12538
12539 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
12540 * caller-save.c (save_call_clobbered_regs): Use assignment instead
12541 of COPY_HARD_REG_SET.
12542 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
12543 (epiphany_conditional_register_usage): Likewise.
12544 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12545 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12546 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
12547 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
12548 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
12549 * config/mips/mips.c (mips_class_max_nregs): Likewise.
12550 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
12551 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
12552 * config/sh/sh.c (output_stack_adjust): Likewise.
12553 * final.c (collect_fn_hard_reg_usage): Likewise.
12554 (get_call_reg_set_usage): Likewise.
12555 * ira-build.c (ira_create_object, remove_low_level_allocnos)
12556 (ira_flattening): Likewise.
12557 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
12558 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
12559 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
12560 (ira_reassign_pseudos): Likewise.
12561 * ira-conflicts.c (print_allocno_conflicts): Likewise.
12562 (ira_build_conflicts): Likewise.
12563 * ira-costs.c (restrict_cost_classes): Likewise.
12564 (setup_regno_cost_classes_by_aclass): Likewise.
12565 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
12566 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
12567 (setup_stack_reg_pressure_class, setup_pressure_classes)
12568 (setup_allocno_and_important_classes, setup_class_translate_array)
12569 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
12570 (ira_setup_eliminable_regset): Likewise.
12571 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12572 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
12573 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
12574 (process_alt_operands, inherit_in_ebb): Likewise.
12575 * lra-lives.c (process_bb_lives): Likewise.
12576 * lra-spills.c (assign_spill_hard_regs): Likewise.
12577 * lra.c (lra): Likewise.
12578 * mode-switching.c (new_seginfo): Likewise.
12579 * postreload.c (reload_combine): Likewise.
12580 * reg-stack.c (straighten_stack): Likewise.
12581 * reginfo.c (save_register_info, restore_register_info): Likewise.
12582 (init_reg_sets_1, record_subregs_of_mode): Likewise
12583 * regrename.c (create_new_chain, rename_chains): Likewise.
12584 * reload1.c (order_regs_for_reload, find_reg): Likewise.
12585 (find_reload_regs): Likewise.
12586 * resource.c (find_dead_or_set_registers): Likewise.
12587 (mark_target_live_regs): Likewise.
12588 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12589
12590 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12591
12592 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
12593 (note_pattern_stores): Declare.
12594 (note_stores): Take an rtx_insn *.
12595 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
12596 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
12597 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
12598 (note_stores): Take an rtx_insn * as argument and process
12599 CALL_INSN_FUNCTION_USAGE. Rename old function to...
12600 (note_pattern_stores): ...this.
12601 (find_first_parameter_load): Pass the insn rather than
12602 its pattern to note_stores.
12603 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
12604 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
12605 (insert_one_insn): Likewise.
12606 * combine.c (combine_instructions): Likewise.
12607 (likely_spilled_retval_p): Likewise.
12608 (try_combine): Use note_pattern_stores instead of note_stores.
12609 (record_dead_and_set_regs): Pass the insn rather than its pattern
12610 to note_stores.
12611 (reg_dead_at_p): Likewise.
12612 * config/bfin/bfin.c (workaround_speculation): Likewise.
12613 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
12614 rather than an rtx.
12615 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
12616 instead of note_stores.
12617 (frv_optimize_membar_local): Pass the insn rather than its pattern
12618 to note_stores.
12619 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12620 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
12621 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
12622 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
12623 (mips_reorg_process_insns): Likewise.
12624 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
12625 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
12626 rather than rtxes.
12627 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
12628 its pattern to note_stores.
12629 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
12630 of note_stores.
12631 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
12632 the insn to note_stores.
12633 (prescan_insns_for_dce): Update call accordingly.
12634 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
12635 to note_stores.
12636 * df-problems.c (can_move_insns_across): Likewise.
12637 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
12638 * function.c (assign_parm_setup_reg): Likewise.
12639 * gcse-common.c (record_last_mem_set_info_common): Likewise.
12640 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
12641 (single_set_gcse): Likewise.
12642 * ira.c (validate_equiv_mem): Likewise.
12643 (update_equiv_regs): Use note_pattern_stores rather than note_stores
12644 for no_equiv.
12645 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
12646 pattern to note_stores.
12647 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12648 * loop-iv.c (simplify_using_initial_values): Likewise.
12649 * mode-switching.c (optimize_mode_switching): Likewise.
12650 * optabs.c (emit_libcall_block_1): Likewise.
12651 (expand_atomic_compare_and_swap): Likewise.
12652 * postreload-gcse.c (load_killed_in_block_p): Likewise.
12653 (record_opr_changes): Likewise. Remove explicit handling of
12654 CALL_INSN_FUNCTION_USAGE.
12655 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
12656 * regcprop.c (kill_clobbered_values): Likewise.
12657 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
12658 to note_stores.
12659 * regrename.c (build_def_use): Likewise.
12660 * reload1.c (reload): Use note_pattern_stores instead of note_stores
12661 for mark_not_eliminable.
12662 (reload_as_needed): Pass the insn rather than its pattern
12663 to note_stores.
12664 (emit_output_reload_insns): Likewise.
12665 * resource.c (mark_target_live_regs): Likewise.
12666 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12667 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
12668 instead of note_stores.
12669 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
12670 its pattern to note_stores.
12671 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
12672 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
12673
12674 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12675
12676 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
12677 than a #define. Use a structure rather than an array as the
12678 fallback definition. Remove special cases for low array sizes.
12679 (const_hard_reg_set): New typedef.
12680 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
12681 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
12682 (hard_reg_set_empty_p): Likewise.
12683 (SET_HARD_REG_BIT): Use a function rather than a macro to
12684 handle the case in which HARD_REG_SET is a structure.
12685 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
12686 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
12687 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
12688 (IOR_COMPL_HARD_REG_SET): Likewise.
12689 (hard_reg_set_iterator::pset): Constify the pointer target.
12690 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
12691 of a "const HARD_REG_SET". Update the handling of non-integer
12692 HARD_REG_SETs.
12693 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
12694 * reload.h: Likewise.
12695 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
12696 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
12697 of a "const HARD_REG_SET".
12698 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
12699 (range_in_hard_reg_set_p): Likewise.
12700 * ira-costs.c (restrict_cost_classes): Likewise.
12701 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
12702 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
12703 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
12704 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
12705 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
12706 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
12707 take an unsigned int and open-code the HARD_REG_SET operations.
12708
12709 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12710
12711 * Makefile.in (OBJS): Remove bt-load.o.
12712 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
12713 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
12714 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
12715 document that the option no longer does anything.
12716 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
12717 * target.def (branch_target_register_class): Delete.
12718 (branch_target_register_callee_saved): Likewise.
12719 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
12720 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
12721 * doc/tm.texi: Regenerate.
12722 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
12723 (make_pass_branch_target_load_optimize2): Likewise.
12724 * passes.def (pass_branch_target_load_optimize1): Likewise.
12725 (pass_branch_target_load_optimize2): Likewise.
12726 * targhooks.h (default_branch_target_register_class): Likewise.
12727 * targhooks.c (default_branch_target_register_class): Likewise.
12728 * opt-suggestions.c (test_completion_valid_options): Remove
12729 -fbtr-bb-exclusive from the list of test options.
12730 * bt-load.c: Remove.
12731
12732 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12733
12734 * match.pd: Add flag_unsafe_math_optimizations check
12735 before deciding on the widest type in a binary math operation.
12736
12737 2019-09-09 Martin Liska <mliska@suse.cz>
12738
12739 * config/i386/i386.opt: Update comment of removed
12740 options that are preserved only for backward
12741 compatibility.
12742
12743 2019-09-09 Jakub Jelinek <jakub@redhat.com>
12744
12745 PR target/87853
12746 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
12747 instead of __v16qs.
12748
12749 PR target/91704
12750 * config/i386/avxintrin.h (__v32qs): New typedef.
12751 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
12752 instead of __v32qi.
12753
12754 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12755
12756 * doc/invoke.texi (Option Summary): Cover eBPF.
12757 (eBPF Options): New section.
12758 * doc/extend.texi (BPF Built-in Functions): Likewise.
12759 (BPF Kernel Helpers): Likewise.
12760
12761 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12762
12763 * config.gcc: Support for bpf-*-* targets.
12764 * common/config/bpf/bpf-common.c: New file.
12765 * config/bpf/t-bpf: Likewise.
12766 * config/bpf/predicates.md: Likewise.
12767 * config/bpf/constraints.md: Likewise.
12768 * config/bpf/bpf.opt: Likewise.
12769 * config/bpf/bpf.md: Likewise.
12770 * config/bpf/bpf.h: Likewise.
12771 * config/bpf/bpf.c: Likewise.
12772 * config/bpf/bpf-protos.h: Likewise.
12773 * config/bpf/bpf-opts.h: Likewise.
12774 * config/bpf/bpf-helpers.h: Likewise.
12775 * config/bpf/bpf-helpers.def: Likewise.
12776
12777 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12778
12779 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12780 indirect_calls.
12781
12782 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12783
12784 * opt-functions.awk (integer_range_info): Make sure values are in
12785 numeric context before operating with them.
12786
12787 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
12788
12789 * genemit.c (gen_split): Print the filename and line number where the
12790 splitter (or peephole2) was defined, to the dump file.
12791
12792 2019-09-07 Jakub Jelinek <jakub@redhat.com>
12793
12794 PR tree-optimization/91665
12795 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
12796 incompatible with the type of PHI result.
12797
12798 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
12799
12800 PR target/91684
12801 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
12802 gen_unaligned_storedi for 4-byte aligned addresses.
12803
12804 2019-09-06 Jim Wilson <jimw@sifive.com>
12805
12806 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
12807 change.
12808
12809 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
12810
12811 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
12812
12813 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
12814
12815 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
12816 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
12817
12818 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
12819
12820 PR target/91654
12821 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
12822 cost of SSE->integer and integer->SSE moves from 2 to 6.
12823 (core_cost): Ditto.
12824
12825 2019-09-06 Jakub Jelinek <jakub@redhat.com>
12826
12827 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
12828 before testing TYPE_TRANSPARENT_AGGR.
12829 * calls.c (initialize_argument_information, load_register_parameters):
12830 Likewise.
12831
12832 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
12833
12834 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
12835 high regs.
12836 (cmp_ior): Likewise.
12837
12838 2019-09-06 Martin Liska <mliska@suse.cz>
12839
12840 * doc/match-and-simplify.texi: Separate tuples with ;.
12841
12842 2019-09-06 Martin Liska <mliska@suse.cz>
12843
12844 PR c++/91125
12845 * Makefile.in: Remove tlink.o.
12846 * collect2.c (do_link): New function isolated
12847 from do_tlink.
12848 (main): Use.
12849 * collect2.h (do_tlink): Remove declaration of do_tlink.
12850 * doc/extend.texi: Remove documentation of -frepo.
12851 * doc/invoke.texi: Likewise.
12852 * doc/sourcebuild.texi: Remove cleanup-repo-files.
12853 * tlink.c: Remove.
12854
12855 2019-09-05 Jakub Jelinek <jakub@redhat.com>
12856 Jim Wilson <jimw@sifive.com>
12857
12858 PR target/91635
12859 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
12860 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
12861 paradoxical_subreg_p (operands[0]).
12862 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
12863 use as intermediate value.
12864
12865 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
12866
12867 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
12868 (sync_compare_and_swap<mode>_insn): Likewise.
12869
12870 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
12871
12872 PR middle-end/91615
12873 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
12874 without movmisalign optab.
12875
12876 2019-09-05 Jakub Jelinek <jakub@redhat.com>
12877
12878 PR middle-end/91001
12879 PR middle-end/91105
12880 PR middle-end/91106
12881 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
12882 types, use type of their first field instead of type of
12883 args[i].tree_value.
12884
12885 2019-09-05 Richard Biener <rguenther@suse.de>
12886
12887 PR rtl-optimization/91656
12888 * postreload-gcse.c (record_last_mem_set_info): Revert addition
12889 of early out.
12890
12891 2019-09-05 Richard Biener <rguenther@suse.de>
12892
12893 PR middle-end/90501
12894 * tree-inline.c (declare_return_variable): Mark the return
12895 slot as addressable after building an address of it.
12896
12897 2019-09-05 Arnaud Charlet <charlet@adacore.com>
12898
12899 * doc/install.texi: Update and clarify requirements to build GNAT.
12900
12901 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
12902
12903 PR middle-end/91577
12904 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
12905 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
12906 call to be in memory.
12907 (pass_expand::execute): Call discover_nonconstant_array_refs before
12908 setting currently_expanding_to_rtl.
12909
12910 2019-09-04 Caroline Tice <cmtice@google.com>
12911
12912 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
12913 specified together.
12914
12915 2019-09-04 Marek Polacek <polacek@redhat.com>
12916
12917 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
12918
12919 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
12920
12921 PR target/32413
12922 * config/i386/i386.c (inline_secondary_memory_needed): Return true
12923 for QI and HImode moves between SSE and general registers.
12924
12925 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12926
12927 PR c/78736
12928 * doc/invoke.texi: Document -Wenum-conversion.
12929
12930 2019-09-04 Richard Biener <rguenther@suse.de>
12931
12932 PR rtl-optimization/36262
12933 * postreload-gcse.c: Include intl.h and gcse.h.
12934 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
12935 to avoid linear list walk.
12936 (record_last_mem_set_info): Gate off if not computing transparentness.
12937 (get_bb_avail_insn): If transparentness isn't computed give up
12938 early.
12939 (gcse_after_reload_main): Skip compute_transp and extended PRE
12940 if gcse_or_cprop_is_too_expensive says so.
12941
12942 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12943
12944 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
12945 noinit section.
12946 (msp430_select_section): Handle decls with the "noinit" attribute with
12947 default_elf_select_section.
12948 Handle SECCAT_RODATA_MERGE_* section types with
12949 default_elf_select_section.
12950 Add comments about handling of unsupported section types.
12951 (msp430_section_type_flags): Remove handling of the noinit section.
12952
12953 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12954
12955 * config/msp430/msp430.c (msp430_attr): Remove warnings about
12956 conflicting msp430-specific attributes.
12957 (msp430_section_attr): Likewise.
12958 Add warnings about conflicts with generic "noinit" and "section"
12959 attributes.
12960 Fix grammar in -mlarge error message.
12961 (msp430_data_attr): Rename to msp430_persist_attr.
12962 Add warnings about conflicts with generic "noinit" and "section"
12963 attributes.
12964 Add warning for when variable is not initialized.
12965 Chain conditionals which prevent the attribute being added.
12966 (ATTR_EXCL): New helper.
12967 (attr_reent_exclusions): New exclusion table.
12968 (attr_naked_exclusions): Likewise.
12969 (attr_crit_exclusions): Likewise.
12970 (attr_lower_exclusions): Likewise.
12971 (attr_upper_exclusions): Likewise.
12972 (attr_either_exclusions): Likewise.
12973 (attr_persist_exclusions): Likewise.
12974 (msp430_attribute_table): Update with exclusion rules.
12975 (msp430_output_aligned_decl_common): Don't output common symbol if decl
12976 has a section.
12977
12978 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12979
12980 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
12981 (msp430_handle_generic_attribute): New function.
12982 * doc/tm.texi: Regenerate.
12983 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
12984 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
12985 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
12986 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
12987
12988 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
12989
12990 PR tree-optimization/91504
12991 * match.pd: Add ((~a & b) ^a) --> (a | b).
12992
12993 2019-09-03 Jakub Jelinek <jakub@redhat.com>
12994
12995 PR target/91604
12996 * config/i386/i386-expand.c (split_double_mode): If there is more than
12997 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
12998 already split matching MEM operand instead of calling adjust_address
12999 again.
13000
13001 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
13002
13003 * config.gcc: Obsolete spu target. Remove references to spu.
13004 * configure.ac: Remove references to spu.
13005 * configure: Regenerate.
13006 * config/spu/: Remove directory.
13007 * common/config/spu/: Remove directory.
13008
13009 * doc/extend.texi: Remove references to spu.
13010 * doc/invoke.texi: Likewise.
13011 * doc/md.texi: Likewise.
13012 * doc/sourcebuild.texi: Likewise.
13013
13014 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13015
13016 PR middle-end/91603
13017 PR middle-end/91612
13018 PR middle-end/91613
13019 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
13020 and SSA_NAME referring to CONSTANT_P correctly.
13021
13022 2019-09-03 Richard Biener <rguenther@suse.de>
13023
13024 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
13025 (vn_nary_op_insert): Likewise.
13026 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
13027 (vn_nary_op_lookup): Likewise.
13028 (vn_nary_op_insert): Likewise.
13029
13030 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
13031
13032 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
13033 (*op0, 1) instead of XEXP (*op1, 0).
13034
13035 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13036
13037 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
13038 (aarch64_fjcvtzs): New define_insn.
13039 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
13040 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
13041 Add AARCH64_JSCVT.
13042 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
13043 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
13044 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13045 __ARM_FEATURE_JCVT where appropriate.
13046 * config/aarch64/arm_acle.h (__jcvt): Define.
13047
13048 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13049
13050 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
13051 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
13052 (aarch64_<frintnzs_op><mode>): New define_insn.
13053 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
13054 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13055 __ARM_FEATURE_FRINT when appropriate.
13056 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
13057 frint32x, frint64z, frint64x.
13058 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
13059 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
13060 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
13061 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
13062 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
13063 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
13064 * config/aarch64/iterators.md (VSFDF): Define.
13065 (FRINTNZX): Likewise.
13066 (frintnzs_op): Likewise.
13067
13068 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
13069
13070 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
13071 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
13072 Cortex-A34.
13073 * config/aarch64/aarch64-tune.md: Regenerated.
13074 * doc/invoke.texi: Document the new processors.
13075
13076 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13077
13078 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
13079 string.
13080 (ssbs): Likewise.
13081 (sve2): Likewise.
13082 (sve2-sm4): Likewise.
13083 (sveaes): Likewise.
13084 (svesha3): Likewise.
13085 (svebitperm): Likewise.
13086
13087 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13088 Richard Biener <rguenther@suse.de>
13089
13090 PR tree-optimization/91597
13091 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
13092 BIT_AND_EXPR optimization for pointers, even if both operand
13093 ranges don't include NULL, the result can be NULL.
13094
13095 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
13096
13097 PR middle-end/91605
13098 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
13099 (non_mem_decl_p): ...this.
13100 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
13101 (expand_assignment): Call mem_ref_referes_to_non_mem_p
13102 unconditionally as before.
13103
13104 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
13105
13106 PR target/91323
13107 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
13108 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
13109 * tree.def (LTGT_EXPR): Likewise.
13110 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
13111
13112 2019-09-02 Jakub Jelinek <jakub@redhat.com>
13113
13114 PR go/91617
13115 * fold-const.c (range_check_type): For enumeral and boolean
13116 type, pass 1 to type_for_size langhook instead of
13117 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
13118 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
13119 (build_range_check): Don't call unsigned_type_for for pointer types.
13120 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
13121 range_check_type result.
13122
13123 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
13124
13125 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
13126 (replace_ref): Do not replace a chain of only two candidates which are
13127 valid memory references.
13128
13129 2019-09-02 Martin Liska <mliska@suse.cz>
13130
13131 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
13132 Bail out when we'll end up with the same number of clusters as
13133 at the beginning.
13134 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
13135 (jump_table_cluster::can_be_handled): Remove the guard
13136 as it's already handled in ::is_enabled. Allocate output
13137 after early bail out.
13138
13139 2019-09-02 Martin Liska <mliska@suse.cz>
13140
13141 PR gcov-profile/91601
13142 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
13143 (path_contains_zero_or_negative_cycle_arc): ... this and handle
13144 also negative edges.
13145 (circuit): Handle also negative edges as they can happen
13146 in some situations.
13147
13148 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
13149
13150 PR target/91472
13151 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
13152 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
13153 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
13154
13155 2019-09-01 Jakub Jelinek <jakub@redhat.com>
13156
13157 PR middle-end/91623
13158 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
13159 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
13160 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
13161 zero vector.
13162
13163 PR lto/91572
13164 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
13165 GIMPLE_ASM TREE_LIST operands.
13166
13167 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
13168
13169 * doc/generic.texi (Unary and Binary Expressions): Mark up
13170 an instance of TYPE_MIN.
13171
13172 2019-08-31 Stafford Horne <shorne@gmail.com>
13173
13174 * config/or1k/constraints.md (t): New constraint.
13175 * config/or1k/or1k.h (GOT_REGS): New register class.
13176 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
13177
13178 2019-08-30 Jim Wilson <jimw@sifive.com>
13179
13180 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
13181 and -fpic and -mplt then disable -msave-restore and warn.
13182
13183 2019-08-30 Martin Sebor <msebor@redhat.com>
13184
13185 PR middle-end/91599
13186 * tree-ssa-strlen.c (handle_store): Use a fallback location if
13187 the statement doesn't have one.
13188 * gimple-pretty-print.c (percent_G_format): Same.
13189
13190 PR middle-end/91584
13191 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
13192 before using them to validate MEM_REF offset.
13193
13194 2019-08-30 Marek Polacek <polacek@redhat.com>
13195
13196 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
13197
13198 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
13199
13200 * config/arm/arm.md (unaligned_loaddi,
13201 unaligned_storedi): New unspec insn patterns.
13202 * config/arm/neon.md (unaligned_storev8qi): Likewise.
13203 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
13204 and unaligned_storedi for 4-byte aligned memory.
13205 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
13206 4-byte aligned memory.
13207
13208 2019-08-30 Martin Jambor <mjambor@suse.cz>
13209
13210 tree-optimization/91579
13211 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
13212 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
13213 appropriate.
13214 (arg_needs_copy_p): Removed.
13215 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
13216 arg_needs_copy_p.
13217 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
13218
13219 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
13220
13221 * config/i386/i386-features.c
13222 (general_scalar_chain::compute_convert_gain):
13223 Correct cost for double-word shifts.
13224 (general_scalar_to_vector_candidate_p): Reject count operands
13225 greater or equal to mode bitsize.
13226
13227 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
13228
13229 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13230 for moves between SSE and non-general registers and between
13231 mask and non-general registers.
13232 (ix86_register_move_cost): Remove stalled comment.
13233
13234 2019-08-29 Richard Biener <rguenther@suse.de>
13235
13236 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
13237 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
13238
13239 2019-08-29 Richard Biener <rguenther@suse.de>
13240
13241 PR bootstrap/91580
13242 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
13243 Do not emit scalar copies for debug-insns, instead replace
13244 their uses with the reg copy used in the chain or reset them
13245 if there is a reaching definition outside of the chain as well.
13246
13247 2019-08-29 Jakub Jelinek <jakub@redhat.com>
13248
13249 PR target/91560
13250 * config/i386/i386-expand.c (expand_vec_perm_movs,
13251 expand_vec_perm_blend, expand_vec_perm_vpermil,
13252 expand_vec_perm_pshufb, expand_vec_perm_1,
13253 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
13254 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
13255 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
13256 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
13257 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
13258 comments - replace ix86_expand_vec_perm_builtin_1 with
13259 ix86_expand_vec_perm_const_1.
13260 (expand_vec_perm2_vperm2f128_vblend): New function.
13261 (ix86_expand_vec_perm_const_1): New forward declaration. Call
13262 expand_vec_perm2_vperm2f128_vblend as last resort.
13263 (canonicalize_perm): Formatting fix.
13264
13265 PR tree-optimization/91351
13266 * tree-cfg.c (generate_range_test): Use range_check_type instead of
13267 unsigned_type_for.
13268 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
13269 range_check_type returns NULL.
13270 * tree-switch-conversion.c (switch_conversion::build_one_array):
13271 Use range_check_type instead of unsigned_type_for, don't perform
13272 linear opt if it returns NULL.
13273 (bit_test_cluster::find_bit_tests): Formatting fix.
13274 (bit_test_cluster::emit): Use range_check_type instead of
13275 unsigned_type_for.
13276 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
13277 returns NULL.
13278
13279 2019-08-29 Richard Biener <rguenther@suse.de>
13280
13281 PR tree-optimization/91568
13282 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
13283 (vect_update_max_nunits): Add overload for poly_uint64.
13284 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
13285 (vect_build_slp_tree): Record max_nunits into the subtree
13286 and merge it upwards.
13287 (vect_print_slp_tree): Print max_nunits.
13288
13289 2019-08-28 Marek Polacek <polacek@redhat.com>
13290
13291 Implement P1152R4: Deprecating some uses of volatile.
13292 PR c++/91361
13293 * doc/invoke.texi: Document -Wvolatile.
13294
13295 2019-08-28 Marek Polacek <polacek@redhat.com>
13296
13297 PR c++/91360 - Implement C++20 P1143R2: constinit.
13298 * doc/invoke.texi: Document -Wc++20-compat.
13299
13300 2019-08-28 Martin Sebor <msebor@redhat.com>
13301
13302 PR tree-optimization/91457
13303 * builtins.c (component_size): New function.
13304 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
13305 * builtins.h (compute_objsize): Add argument.
13306 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
13307 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
13308 (vrp_prop::check_mem_ref): Same.
13309 (vrp_prop::search_for_addr_array): Set no-warning bit.
13310 (check_array_bounds): Same.
13311
13312 2019-08-28 Martin Sebor <msebor@redhat.com>
13313
13314 PR driver/80545
13315 * opts-common.c (option_enabled): Correct checking for language
13316 options.
13317
13318 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
13319
13320 * config/i386/i386.c (ix86_register_move_cost): Do not
13321 limit the cost of moves to/from XMM register to minimum 8.
13322
13323 2019-08-28 Martin Jambor <mjambor@suse.cz>
13324
13325 PR ipa/91468
13326 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
13327 checking assert a normal assert to test it really is redundant.
13328 * ipa-prop.c (compute_complex_assign_jump_func): Removed
13329 redundant test.
13330 (update_jump_functions_after_inlining): Removed combining unary
13331 arithmetic operations with an ancestor jump function.
13332 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
13333 instead of t.
13334
13335 2019-08-28 Richard Biener <rguenther@suse.de>
13336
13337 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
13338 add the MD problem.
13339
13340 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13341 Richard Biener <rguenther@suse.de>
13342
13343 * expr.c (expand_assignment): Handle misaligned DECLs.
13344 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
13345 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
13346 too.
13347 (assign_parm_setup_stack): Allocate properly aligned stack slots.
13348 * varasm.c (build_constant_desc): Align constants of misaligned types.
13349 * config/arm/predicates.md (aligned_operand): New predicate.
13350 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
13351 aligned_operand to check restrictions on memory addresses.
13352 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
13353 * config/arm/vec-common.md (mov<VALL>): Likewise.
13354
13355 2019-08-28 Jakub Jelinek <jakub@redhat.com>
13356
13357 PR libgomp/91530
13358 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
13359 V_128 iterator instead of VI_128.
13360
13361 2019-08-28 Martin Liska <mliska@suse.cz>
13362
13363 PR tree-optimization/90970
13364 * builtins.c (check_access): Remove assignment to maxread
13365 as it hasn't been used since when it was introduced in r255755.
13366
13367 2019-08-27 Martin Sebor <msebor@redhat.com>
13368
13369 PR tree-optimization/91567
13370 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
13371 of unknown strings.
13372 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
13373 to PTRDIFF_MAX - 2.
13374
13375 2019-08-27 Jeff Law <law@redhat.com>
13376
13377 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
13378 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
13379
13380 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
13381
13382 PR target/91528
13383 * config/i386/i386-features.c (convert_scalars_to_vector):
13384 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
13385 crtl->stack_realign_processed. Update crtl->drap_reg by calling
13386 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
13387 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
13388
13389 2019-08-27 Richard Biener <rguenther@suse.de>
13390
13391 * config/i386/i386-features.h
13392 (general_scalar_chain::~general_scalar_chain): Add.
13393 (general_scalar_chain::insns_conv): New bitmap.
13394 (general_scalar_chain::n_sse_to_integer): New.
13395 (general_scalar_chain::n_integer_to_sse): Likewise.
13396 (general_scalar_chain::make_vector_copies): Adjust signature.
13397 * config/i386/i386-features.c
13398 (general_scalar_chain::general_scalar_chain): Outline,
13399 initialize new members.
13400 (general_scalar_chain::~general_scalar_chain): New.
13401 (general_scalar_chain::mark_dual_mode_def): Record insns
13402 we need to insert conversions at and count them.
13403 (general_scalar_chain::compute_convert_gain): Account
13404 for conversion instructions at chain boundary.
13405 (general_scalar_chain::make_vector_copies): Generate a single
13406 copy for a def by a specific insn.
13407 (general_scalar_chain::convert_registers): First populate
13408 defs_map, then make copies at out-of chain insns.
13409
13410 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
13411
13412 * config/arm/arm.md (stack_protect_set_insn): Add security-related
13413 comment.
13414 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
13415
13416 2019-08-27 Martin Liska <mliska@suse.cz>
13417
13418 * cgraph.c (cgraph_node::remove): Remove dead assignment before
13419 loop.
13420 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
13421 Enclose in anonymous namespace.
13422 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
13423 hard_register initialization in braces.
13424 * tree-vrp.h (value_range_base::supports_type_p): Return false
13425 for function with boolean return type.
13426
13427 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
13428
13429 * config/i386/i386.c (emit_i387_cw_initialization)
13430 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
13431
13432 2019-08-26 Martin Sebor <msebor@redhat.com>
13433
13434 PR c++/83431
13435 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
13436 (sprintf_dom_walker): Remove class.
13437 (get_int_range): Make argument const.
13438 (directive::fmtfunc, directive::set_precision): Same.
13439 (format_none): Same.
13440 (build_intmax_type_nodes): Same.
13441 (adjust_range_for_overflow): Same.
13442 (format_floating): Same.
13443 (format_character): Same.
13444 (format_string): Same.
13445 (format_plain): Same.
13446 (get_int_range): Cast away constness.
13447 (format_integer): Same.
13448 (get_string_length): Call get_range_strlen_dynamic. Handle
13449 null lendata.maxbound.
13450 (should_warn_p): Adjust argument scope qualifier.
13451 (maybe_warn): Same.
13452 (format_directive): Same.
13453 (parse_directive): Same.
13454 (is_call_safe): Same.
13455 (try_substitute_return_value): Same.
13456 (sprintf_dom_walker::handle_printf_call): Rename...
13457 (handle_printf_call): ...to this. Initialize target to host charmap
13458 here instead of in pass_sprintf_length::execute.
13459 (struct call_info): Make global.
13460 (sprintf_dom_walker::compute_format_length): Make global.
13461 (sprintf_dom_walker::handle_gimple_call): Same.
13462 * passes.def (pass_sprintf_length): Replace with pass_strlen.
13463 * print-rtl.c (print_pattern): Reduce the number of spaces to
13464 avoid -Wformat-truncation.
13465 * tree-pass.h (make_pass_warn_printf): New function.
13466 * tree-ssa-strlen.c (strlen_optimize): New variable.
13467 (get_string_length): Add comments.
13468 (get_range_strlen_dynamic): New function.
13469 (check_and_optimize_call): New function.
13470 (handle_integral_assign): New function.
13471 (strlen_check_and_optimize_stmt): Factor code out into
13472 strlen_check_and_optimize_call and handle_integral_assign.
13473 (strlen_dom_walker::evrp): New member.
13474 (strlen_dom_walker::before_dom_children): Use evrp member.
13475 (strlen_dom_walker::after_dom_children): Use evrp member.
13476 (printf_strlen_execute): New function.
13477 (pass_strlen::gate): Update to handle printf calls.
13478 (dump_strlen_info): New function.
13479 (pass_data_warn_printf): New variable.
13480 (pass_warn_printf): New class.
13481 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
13482 (handle_printf_call): Same.
13483 * tree-vrp.c (value_range_base::type): Adjust assertion.
13484 * vr-values.c (vr_values::update_value_range): Use type of the first
13485 argument rather than the second.
13486
13487 2019-08-26 Richard Biener <rguenther@suse.de>
13488
13489 * config/i386/i386-features.c (general_remove_non_convertible_regs):
13490 Remove.
13491 (convert_scalars_to_vector): Do not call it.
13492
13493 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
13494 Uros Bizjak <ubizjak@gmail.com>
13495
13496 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
13497 CASE_MATHFN_FLOATN for roundeven.
13498 * config/i386/i386.c (ix86_i387_mode_needed): Add case
13499 I387_ROUNDEVEN.
13500 (ix86_mode_needed): Likewise.
13501 (ix86_mode_after): Likewise.
13502 (ix86_mode_entry): Likewise.
13503 (ix86_mode_exit): Likewise.
13504 (ix86_emit_mode_set): Likewise.
13505 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
13506 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
13507 (ix86_entity): Add I387_ROUNDEVEN.
13508 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
13509 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
13510 (define_int_iterator): Likewise.
13511 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
13512 (define_constant): Define ROUND_ROUNDEVEN mode.
13513 (define_attr): Add roundeven mode for i387_cw.
13514 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
13515 * internal-fn.def (ROUNDEVEN): New builtin function.
13516 * optabs.def (roundeven_optab): New optab.
13517
13518 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
13519
13520 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
13521 for ROUNDEVEN.
13522 * builtins.def: Added function definitions for roundeven function
13523 variants.
13524 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
13525 function call. Adjust condition for floor, ceil, trunc and round.
13526 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
13527 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
13528 (integer_valued_real_call_p): Added case for roundeven function.
13529 * real.c (is_even): New function. Returns true if real number is even,
13530 otherwise returns false.
13531 (is_halfway_below): New function. Returns true if real number is
13532 halfway between two integers, else return false.
13533 (real_roundeven): New function. Round real number to nearest integer,
13534 rounding halfway cases towards even.
13535 * real.h (real_value): Added descriptive comments. Added function
13536 declaration for roundeven function.
13537 * doc/extend.texi (Other Builtins): List roundeven variants among
13538 functions which can be handled as builtins.
13539
13540 2019-08-26 Richard Biener <rguenther@suse.de>
13541
13542 PR target/91522
13543 PR target/91527
13544 * config/i386/i386-features.h (general_scalar_chain::defs_map):
13545 New member.
13546 (general_scalar_chain::replace_with_subreg): Remove.
13547 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
13548 (general_scalar_chain::convert_reg): Adjust signature.
13549 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
13550 iterate over all defs of a reg.
13551 (general_scalar_chain::replace_with_subreg): Remove.
13552 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
13553 (general_scalar_chain::make_vector_copies): Populate defs_map,
13554 place copy only after defs that are used as vectors in the chain.
13555 (general_scalar_chain::convert_reg): Emit a copy for a specific
13556 def in a specific instruction.
13557 (general_scalar_chain::convert_op): All reg uses are converted here.
13558 (general_scalar_chain::convert_insn): Emit copies for scalar
13559 uses of defs here. Replace uses with the copies we created.
13560 Replace and convert the def. Adjust REG_DEAD notes, remove
13561 REG_EQUIV/EQUAL notes.
13562 (general_scalar_chain::convert_registers): Only handle copies
13563 into the chain here.
13564
13565 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
13566
13567 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
13568
13569 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
13570
13571 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
13572 Add nop_convert case.
13573 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
13574 Fold all statements if requested.
13575 * tree-ssa-propagate.h (class substitute_and_fold_engine):
13576 Allow to fold all statements.
13577 * tree-vrp.c (class vrp_folder):
13578 Let substitute_and_fold_engine fold all statements.
13579
13580 2019-08-26 Richard Biener <rguenther@suse.de>
13581
13582 PR tree-optimization/91526
13583 * passes.def: Note that after late FRE we do TODO_update_address_taken.
13584 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
13585 TODO_update_address_taken.
13586
13587 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
13588
13589 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
13590 __STDC_HOSTED__.
13591
13592 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
13593
13594 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
13595 machine mode for unspec_volatile operand.
13596
13597 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13598
13599 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
13600 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
13601 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
13602 (prefer_neon_for_64bits): Remove.
13603 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
13604 (tune_params): Remove PREF_NEON_64_FALSE uses.
13605 (arm_option_override): Remove prefer_neon selection code.
13606 (arm_print_tune_info): Remove prefer_neon_for_64bits.
13607 * config/arm/arm-protos.h (tune_params): Remove
13608 prefer_neon_for_64bits.
13609 (prefer_neon_for_64bits): Remove.
13610
13611 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
13612
13613 PR pch/61250
13614 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
13615 and issue any diagnostics needed before collecting the pre-PCH
13616 state.
13617
13618 2019-08-23 Jakub Jelinek <jakub@redhat.com>
13619
13620 PR middle-end/91283
13621 * common.opt (fexcess-precision=): Add Optimization flag. Use
13622 flag_excess_precision variable instead of
13623 flag_excess_precision_cmdline.
13624 * flags.h (class target_flag_state): Remove x_flag_excess_precision
13625 member.
13626 (flag_excess_precision): Don't define.
13627 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
13628 flag_excess_precision_cmdline. Remove comment.
13629 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
13630 and x_flag_excess_precision instead of
13631 frontend_set_flag_excess_precision_cmdline and
13632 x_flag_excess_precision_cmdline.
13633 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
13634 x_flag_excess_precision_cmdline.
13635 * toplev.c (init_excess_precision): Remove.
13636 (lang_dependent_init_target): Don't call it.
13637
13638 2019-08-23 Martin Liska <mliska@suse.cz>
13639
13640 * lto-wrapper.c (run_gcc): When setting jobserver
13641 set also parallel to 1. This was done so before r273908.
13642
13643 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
13644
13645 * config/arm/arm-cpus.in (cortex-m35p): New entry.
13646 (cortex-a76ae): Likewise.
13647 (cortex-a77): Likewise
13648 * config/arm/arm-tables.opt: Regenerate.
13649 * config/arm/arm-tune.md: Likewise.
13650 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
13651 cortex-a77 CPU options.
13652
13653 2019-08-23 Martin Liska <mliska@suse.cz>
13654
13655 * profile.c (instrument_values): Do not set
13656 0 as last argument.
13657 * tree-profile.c (gimple_gen_interval_profiler): Remove
13658 last argument.
13659 (gimple_gen_pow2_profiler): Likewise.
13660 (gimple_gen_topn_values_profiler): Likewise.
13661 (gimple_gen_ic_profiler): Likewise.
13662 (gimple_gen_time_profiler): Likewise.
13663 (gimple_gen_average_profiler): Likewise.
13664 (gimple_gen_ior_profiler): Likewise.
13665 * value-prof.c (dump_histogram_value): Use default
13666 in switch statement instead of HIST_TYPE_MAX.
13667 (stream_in_histogram_value): Likewise.
13668 (gimple_duplicate_stmt_histograms): Do not
13669 use NULL for implicitly set arguments.
13670 (gimple_divmod_values_to_profile): Do not use
13671 reserve+quick_push.
13672 (gimple_indirect_call_to_profile): Likewise.
13673 (gimple_find_values_to_profile): Use implicit
13674 function call arguments.
13675 * value-prof.h (gimple_alloc_histogram_value):
13676 Set default values.
13677 (gimple_gen_interval_profiler): Remove last argument.
13678 (gimple_gen_pow2_profiler): Likewise.
13679 (gimple_gen_topn_values_profiler): Likewise.
13680 (gimple_gen_ic_profiler): Likewise.
13681 (gimple_gen_time_profiler): Likewise.
13682 (gimple_gen_average_profiler): Likewise.
13683 (gimple_gen_ior_profiler): Likewise.
13684
13685 2019-08-22 Martin Sebor <msebor@redhat.com>
13686
13687 PR middle-end/91490
13688 * builtins.c (c_strlen): Rename argument and introduce new local.
13689 Set no-warning bit on original argument.
13690 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
13691 Fold empty and zero constructors into empty strings.
13692 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
13693 for missing initializers.
13694 * tree.c (build_string_literal): Handle optional argument.
13695 * tree.h (build_string_literal): Add defaulted argument.
13696 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
13697 no-warning bit on original expression.
13698
13699 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
13700
13701 PR target/91481
13702 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
13703 and UNSPEC_DARN_RAW.
13704 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
13705 UNSPECV_DARN_RAW.
13706 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
13707 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
13708 (darn): Use an unspec_volatile, and UNSPECV_DARN.
13709
13710 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
13711
13712 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
13713 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
13714 * config/rs6000/rs6000.md (unspec): ... here.
13715 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
13716 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
13717 cmpeqb, *cmpeqb_internal): Delete, move to...
13718 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
13719 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
13720 cmpeqb, *cmpeqb_internal): ... here.
13721
13722 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13723
13724 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
13725 intrinsics if __ARM_FP.
13726 Use __ARM_FEATURE_CRC32 ifdef guard.
13727
13728 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13729
13730 * config/arm/arm.md (neon_for_64bits): Remove.
13731 (avoid_neon_for_64bits): Remove.
13732 (arm_adddi3): Always split early.
13733 (arm_subdi3): Always split early.
13734 (negdi2): Remove Neon expansion.
13735 (split zero_extend): Split before reload.
13736 (split sign_extend): Split before reload.
13737
13738 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13739
13740 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
13741 (qhs_extenddi_cstr): Likewise.
13742 * config/arm/arm.md (ashldi3): Always expand early.
13743 (ashlsi3): Likewise.
13744 (ashrsi3): Likewise.
13745 (zero_extend<mode>di2): Remove Neon variants.
13746 (extend<mode>di2): Likewise.
13747 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
13748 (signed_shift_di3_neon): Likewise.
13749 (unsigned_shift_di3_neon): Likewise.
13750 (ashrdi3_neon_imm_noclobber): Likewise.
13751 (lshrdi3_neon_imm_noclobber): Likewise.
13752 (<shift>di3_neon): Likewise.
13753 (split extend): Remove DI extend split patterns.
13754
13755 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13756
13757 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
13758 (split not): Add DImode not splitter.
13759 (anddi3): Remove pattern.
13760 (anddi3_insn): Likewise.
13761 (anddi_zesidi_di): Likewise.
13762 (anddi_sesdi_di): Likewise.
13763 (anddi_notdi_di): Likewise.
13764 (anddi_notzesidi_di): Likewise.
13765 (anddi_notsesidi_di): Likewise.
13766 (iordi3): Likewise.
13767 (iordi3_insn): Likewise.
13768 (iordi_zesidi_di): Likewise.
13769 (iordi_sesidi_di): Likewise.
13770 (xordi3): Likewise.
13771 (xordi3_insn): Likewise.
13772 (xordi_sesidi_di): Likewise.
13773 (xordi_zesidi_di): Likewise.
13774 (one_cmpldi2): Likewise.
13775 (one_cmpldi2_insn): Likewise.
13776 * config/arm/constraints.md: Remove De, Df, Dg constraints.
13777 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
13778 alternative.
13779 (iwmmxt_xordi3): Likewise.
13780 (iwmmxt_anddi3): Likewise.
13781 * config/arm/neon.md (orndi3_neon): Remove pattern.
13782 (anddi_notdi_di): Likewise.
13783 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
13784 (arm_iordi_operand_neon): Likewise.
13785 (arm_xordi_operand_neon): Likewise.
13786 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
13787 (iordi_notzesidi_di): Likewise.
13788 (iordi_notdi_zesidi): Likewise.
13789 (iordi_notsesidi_di): Likewise.
13790
13791 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
13792
13793 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
13794 insn.
13795 (iorsi3_compare0_scratch): Likewise.
13796
13797 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
13798
13799 * config/aarch64/aarch64-simd-builtins.def:
13800 (ld1x4): New.
13801 (st1x4): Likewise.
13802 * config/aarch64/aarch64-simd.md:
13803 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
13804 (aarch64_st1x4<VALLDIF:mode>): Likewise.
13805 (aarch64_ld1_x4_<mode>): Likewise.
13806 (aarch64_st1_x4_<mode>): Likewise.
13807 * config/aarch64/arm_neon.h:
13808 (vld1_s8_x4): New function.
13809 (vld1q_s8_x4): Likewise.
13810 (vld1_s16_x4): Likewise.
13811 (vld1q_s16_x4): Likewise.
13812 (vld1_s32_x4): Likewise.
13813 (vld1q_s32_x4): Likewise.
13814 (vld1_u8_x4): Likewise.
13815 (vld1q_u8_x4): Likewise.
13816 (vld1_u16_x4): Likewise.
13817 (vld1q_u16_x4): Likewise.
13818 (vld1_u32_x4): Likewise.
13819 (vld1q_u32_x4): Likewise.
13820 (vld1_f16_x4): Likewise.
13821 (vld1q_f16_x4): Likewise.
13822 (vld1_f32_x4): Likewise.
13823 (vld1q_f32_x4): Likewise.
13824 (vld1_p8_x4): Likewise.
13825 (vld1q_p8_x4): Likewise.
13826 (vld1_p16_x4): Likewise.
13827 (vld1q_p16_x4): Likewise.
13828 (vld1_s64_x4): Likewise.
13829 (vld1_u64_x4): Likewise.
13830 (vld1_p64_x4): Likewise.
13831 (vld1q_s64_x4): Likewise.
13832 (vld1q_u64_x4): Likewise.
13833 (vld1q_p64_x4): Likewise.
13834 (vld1_f64_x4): Likewise.
13835 (vld1q_f64_x4): Likewise.
13836 (vst1_s8_x4): Likewise.
13837 (vst1q_s8_x4): Likewise.
13838 (vst1_s16_x4): Likewise.
13839 (vst1q_s16_x4): Likewise.
13840 (vst1_s32_x4): Likewise.
13841 (vst1q_s32_x4): Likewise.
13842 (vst1_u8_x4): Likewise.
13843 (vst1q_u8_x4): Likewise.
13844 (vst1_u16_x4): Likewise.
13845 (vst1q_u16_x4): Likewise.
13846 (vst1_u32_x4): Likewise.
13847 (vst1q_u32_x4): Likewise.
13848 (vst1_f16_x4): Likewise.
13849 (vst1q_f16_x4): Likewise.
13850 (vst1_f32_x4): Likewise.
13851 (vst1q_f32_x4): Likewise.
13852 (vst1_p8_x4): Likewise.
13853 (vst1q_p8_x4): Likewise.
13854 (vst1_p16_x4): Likewise.
13855 (vst1q_p16_x4): Likewise.
13856 (vst1_s64_x4): Likewise.
13857 (vst1_u64_x4): Likewise.
13858 (vst1_p64_x4): Likewise.
13859 (vst1q_s64_x4): Likewise.
13860 (vst1q_u64_x4): Likewise.
13861 (vst1q_p64_x4): Likewise.
13862 (vst1_f64_x4): Likewise.
13863 (vst1q_f64_x4): Likewise.
13864
13865 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13866
13867 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
13868
13869 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13870 Richard Sandiford <richard.sandiford@arm.com>
13871
13872 PR target/88839
13873 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
13874 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
13875
13876 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13877
13878 PR target/90724
13879 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
13880 in reg if it fails aarch64_plus_operand predicate.
13881
13882 2019-08-21 Richard Biener <rguenther@suse.de>
13883
13884 PR tree-optimization/91482
13885 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
13886 BUILT_IN_ASSUME_ALIGNED calls.
13887
13888 2019-08-21 Richard Biener <rguenther@suse.de>
13889
13890 PR target/91498
13891 PR target/91503
13892 * config/i386/i386-features.c
13893 (general_scalar_chain::make_vector_copies): Copy stack temporary
13894 rtx when using it multiple times.
13895 (general_scalar_chain::convert_reg): Likewise.
13896
13897 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13898
13899 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
13900
13901 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
13902
13903 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
13904 catch more redundant zero initialization cases.
13905 (dse_dom_walker::dse_optimize_stmt): Likewise.
13906
13907 2019-08-20 Richard Biener <rguenther@suse.de>
13908
13909 PR lto/91307
13910 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
13911 by collect2 when targetm.have_ctors_dtors which avoids dragging
13912 in temporary filenames from LTO input objects.
13913
13914 2019-08-20 Richard Biener <rguenther@suse.de>
13915
13916 PR tree-optimization/37242
13917 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
13918 to (T)a + (T)b if we know that a + b does not overflow.
13919
13920 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
13921
13922 PR rtl-optimization/91347
13923 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
13924 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
13925
13926 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13927
13928 * calls.h (function_arg_info): Add a pass_by_reference field,
13929 defaulting to false.
13930 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
13931 when applying pass-by-reference semantics.
13932 (initialize_argument_information): Likewise.
13933 (emit_library_call_value_1): Likewise.
13934 * function.c (assign_parm_data_one): Remove passed_pointer field.
13935 (assign_parm_find_data_types): Don't set it.
13936 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
13937 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
13938 arg.pass_by_reference instead of passed_pointer.
13939
13940 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13941
13942 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
13943 into a single function_arg_info, updating its fields when we
13944 apply pass-by-reference and promotion semantics. Use the
13945 function_arg_info to track the mode rather than keeping it in
13946 a separate local variable.
13947 (initialize_argument_information): Likewise. Base the final
13948 arg_to_skip on this new function_arg_info rather than creating
13949 a new one from scratch.
13950
13951 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13952
13953 * function.c (assign_parm_data_one): Replace passed_type,
13954 promoted_mode and named_arg with a function_arg_info field.
13955 (assign_parm_find_data_types): Remove local variables and
13956 assign directly to "data". Make data->passed_mode shadow
13957 data->arg.mode until promotion, then assign the promoted
13958 mode to data->arg.mode.
13959 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
13960 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
13961 (assign_parm_remove_parallels, assign_parm_setup_block_p)
13962 (assign_parm_setup_block, assign_parm_setup_reg)
13963 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
13964 arg.mode instead of promoted_mode, arg.type instead of passed_type
13965 and arg.named instead of named_arg. Use data->arg for
13966 function_arg_info structures that had the field values passed_type,
13967 promoted_mode and named_arg. Base other function_arg_infos on
13968 data->arg, changing the necessary properties.
13969
13970 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13971
13972 * calls.h (apply_pass_by_reference_rules): Declare.
13973 * calls.c (apply_pass_by_reference_rules): New function.
13974 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
13975 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
13976 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13977 * function.c (assign_parm_find_data_types): Likewise.
13978 * var-tracking.c (prepare_call_arguments): Likewise.
13979
13980 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13981
13982 * target.def (must_pass_in_stack): Take a function_arg_info instead
13983 of a mode and a type.
13984 * doc/tm.texi: Regenerate.
13985 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
13986 instead of a mode and a type.
13987 (must_pass_in_stack_var_size_or_pad): Likewise.
13988 * calls.c (must_pass_in_stack_var_size): Likewise.
13989 (must_pass_in_stack_var_size_or_pad): Likewise.
13990 (initialize_argument_information): Update call to
13991 targetm.calls.must_pass_in_stack.
13992 (must_pass_va_arg_on_stack): Likewise.
13993 * function.c (assign_parm_find_entry_rtl): Likewise.
13994 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
13995 * config/alpha/alpha.c (alpha_function_arg): Likewise.
13996 (alpha_function_arg_advance): Likewise.
13997 * config/cr16/cr16.c (cr16_function_arg): Likewise.
13998 (cr16_function_arg_advance): Likewise.
13999 * config/cris/cris.c (cris_pass_by_reference): Likewise.
14000 (cris_arg_partial_bytes): Likewise.
14001 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14002 * config/lm32/lm32.c (lm32_function_arg): Likewise.
14003 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
14004 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
14005 * config/mips/mips.c (mips_pass_by_reference): Likewise.
14006 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
14007 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
14008 * config/sh/sh.c (sh_pass_by_reference): Likewise.
14009 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14010 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
14011 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
14012 instead of a mode and a type.
14013 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
14014 (fr30_num_arg_regs): Likewise.
14015 (fr30_setup_incoming_varargs): Update calls accordingly.
14016 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
14017 (fr30_function_arg_advance): Likewise.
14018 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
14019 instead of a mode and a type.
14020 * config/gcn/gcn.c (num_arg_regs): Likewise.
14021 (gcn_function_arg, gcn_function_arg_advance): Update calls to
14022 num_arg_regs and targetm.calls.must_pass_in_stack.
14023 (gcn_arg_partial_bytes): Likewise.
14024 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
14025 function_arg_info instead of a mode and a type.
14026 (classify_argument): Update call accordingly.
14027 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
14028 function_arg_info instead of a mode and a type.
14029 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
14030 Likewise.
14031 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
14032 (rs6000_parm_needs_stack): Update call accordingly.
14033 (setup_incoming_varargs): Likewise.
14034
14035 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14036
14037 * target.def (callee_copies): Take a function_arg_info instead
14038 of a mode, type and named flag.
14039 * doc/tm.texi: Regenerate.
14040 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
14041 instead of a mode, type and named flag.
14042 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14043 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14044 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14045 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
14046 instead of a mode, type and named flag.
14047 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14048 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14049 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14050 * calls.h (reference_callee_copied): Take a function_arg_info
14051 instead of a mode, type and named flag.
14052 * calls.c (reference_callee_copied): Likewise.
14053 (initialize_argument_information): Update call accordingly.
14054 (emit_library_call_value_1): Likewise.
14055 * function.c (gimplify_parameters): Likewise.
14056 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
14057 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
14058 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
14059 * config/c6x/c6x.c (c6x_callee_copies): Delete.
14060 (TARGET_CALLEE_COPIES): Define to
14061 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14062 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
14063 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14064 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14065 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
14066 instead of a mode, type and named flag.
14067 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
14068 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14069 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14070 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
14071 * config/msp430/msp430.c (msp430_callee_copies): Delete.
14072 (TARGET_CALLEE_COPIES): Define to
14073 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14074 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
14075 instead of a mode, type and named flag.
14076 * config/sh/sh.c (sh_callee_copies): Likewise.
14077 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
14078 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14079 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14080
14081 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14082
14083 * target.def (function_arg_advance): Take a function_arg_info instead
14084 of a mode, type and named flag.
14085 * doc/tm.texi: Regenerate.
14086 * targhooks.h (default_function_arg_advance): Take a function_arg_info
14087 instead of a mode, type and named flag.
14088 * targhooks.c (default_function_arg_advance): Likewise.
14089 * calls.c (initialize_argument_information): Update call to
14090 targetm.calls.function_arg_advance.
14091 (emit_library_call_value_1): Likewise.
14092 * dse.c (get_call_args): Likewise.
14093 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14094 * function.c (assign_parms, gimplify_parameters): Likewise.
14095 * var-tracking.c (prepare_call_arguments): Likewise.
14096 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
14097 function_arg_info instead of a mode, type and named flag.
14098 (aarch64_setup_incoming_varargs): Update call accordingly.
14099 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
14100 function_arg_info instead of a mode, type and named flag.
14101 (alpha_setup_incoming_varargs): Update call accordingly.
14102 * config/arc/arc.c (arc_function_arg_advance): Take a
14103 function_arg_info instead of a mode, type and named flag.
14104 (arc_setup_incoming_varargs): Update call accordingly.
14105 * config/arm/arm.c (arm_function_arg_advance): Take a
14106 function_arg_info instead of a mode, type and named flag.
14107 (cmse_func_args_or_return_in_stack): Update call accordingly.
14108 (arm_function_ok_for_sibcall): Likewise.
14109 (cmse_nonsecure_call_clear_caller_saved): Likewise.
14110 * config/avr/avr.c (avr_function_arg_advance): Take a
14111 function_arg_info instead of a mode, type and named flag.
14112 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
14113 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
14114 (c6x_call_saved_register_used): Update call accordingly.
14115 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
14116 function_arg_info instead of a mode, type and named flag.
14117 * config/cris/cris.c (cris_function_arg_advance): Likewise.
14118 * config/csky/csky.c (csky_function_arg_advance): Likewise.
14119 (csky_setup_incoming_varargs): Update call accordingly.
14120 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
14121 function_arg_info instead of a mode, type and named flag.
14122 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
14123 * config/frv/frv.c (frv_function_arg_advance): Likewise.
14124 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
14125 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
14126 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
14127 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
14128 (ix86_setup_incoming_varargs): Update call accordingly.
14129 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
14130 function_arg_info instead of a mode, type and named flag.
14131 (ia64_setup_incoming_varargs): Update call accordingly.
14132 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
14133 function_arg_info instead of a mode, type and named flag.
14134 (iq2000_expand_prologue): Update call accordingly.
14135 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
14136 function_arg_info instead of a mode, type and named flag.
14137 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
14138 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
14139 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
14140 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
14141 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
14142 Likewise.
14143 (microblaze_expand_prologue): Update call accordingly.
14144 * config/mips/mips.c (mips_function_arg_advance): Take a
14145 function_arg_info instead of a mode, type and named flag.
14146 (mips_setup_incoming_varargs): Update call accordingly.
14147 (mips_output_args_xfer): Likewise.
14148 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
14149 function_arg_info instead of a mode, type and named flag.
14150 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
14151 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
14152 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
14153 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
14154 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
14155 (nios2_setup_incoming_varargs): Update call accordingly.
14156 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
14157 function_arg_info instead of a mode, type and named flag.
14158 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
14159 * config/pa/pa.c (pa_function_arg_advance): Likewise.
14160 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
14161 * config/pru/pru.c (pru_function_arg_advance): Likewise.
14162 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
14163 (riscv_setup_incoming_varargs): Update call accordingly.
14164 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
14165 function_arg_info instead of a mode, type and named flag.
14166 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
14167 Likewise.
14168 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
14169 (rs6000_parm_needs_stack): Update call accordingly.
14170 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
14171 instead of a mode, type and named flag.
14172 * config/s390/s390.c (s390_function_arg_advance): Likewise.
14173 (s390_call_saved_register_used): Update call accordingly.
14174 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
14175 instead of a mode, type and named flag.
14176 (sh_output_mi_thunk): Update call accordingly.
14177 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
14178 function_arg_info instead of a mode, type and named flag.
14179 * config/spu/spu.c (spu_function_arg_advance): Likewise.
14180 (spu_setup_incoming_varargs): Update call accordingly.
14181 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
14182 function_arg_info instead of a mode, type and named flag.
14183 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
14184 (tilegx_setup_incoming_varargs): Update call accordingly.
14185 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
14186 function_arg_info instead of a mode, type and named flag.
14187 (tilegx_setup_incoming_varargs): Update call accordingly.
14188 * config/v850/v850.c (v850_function_arg_advance): Take a
14189 function_arg_info instead of a mode, type and named flag.
14190 * config/vax/vax.c (vax_function_arg_advance): Likewise.
14191 * config/visium/visium.c (visium_function_arg_advance): Likewise.
14192 (visium_setup_incoming_varargs): Update call accordingly.
14193 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
14194 function_arg_info instead of a mode, type and named flag.
14195
14196 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14197
14198 * target.def (function_arg, function_incoming_arg): Take a
14199 function_arg_info instead of a mode, tree and named flag.
14200 * doc/tm.texi: Regenerate.
14201 * targhooks.h (default_function_arg): Take a function_arg_info
14202 instead of a mode, tree and named flag.
14203 (default_function_incoming_arg): Likewise.
14204 * targhooks.c (default_function_arg): Likewise.
14205 (default_function_incoming_arg): Likewise.
14206 * calls.h (function_arg_info::end_marker_p): New function.
14207 (function_arg_info::end_marker): Likewise.
14208 * calls.c (prepare_call_address, initialize_argument_information)
14209 (expand_call, emit_library_call_value_1): Update calls to
14210 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
14211 * dse.c: Include calls.h.
14212 (get_call_args): Update call to targetm.calls.function_arg.
14213 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14214 * var-tracking.c (prepare_call_arguments): Likewise.
14215 * function.c (assign_parm_find_entry_rtl): Update call to
14216 targetm.calls.function_incoming_arg.
14217 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
14218 function_arg_info instead of a mode, tree and named flag.
14219 * config/alpha/alpha.c (alpha_function_arg): Likewise.
14220 * config/arc/arc.c (arc_function_arg): Likewise.
14221 * config/arm/arm.c (arm_function_arg): Likewise.
14222 (cmse_func_args_or_return_in_stack): Update call accordingly.
14223 (arm_function_ok_for_sibcall): Likewise.
14224 (cmse_nonsecure_call_clear_caller_saved): Likewise.
14225 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
14226 instead of a mode, tree and named flag.
14227 * config/bfin/bfin.c (bfin_function_arg): Likewise.
14228 * config/c6x/c6x.c (c6x_function_arg): Likewise.
14229 (c6x_call_saved_register_used): Update call accordingly.
14230 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
14231 instead of a mode, tree and named flag.
14232 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
14233 (cris_function_arg_1): Likewise.
14234 * config/csky/csky.c (csky_function_arg): Likewise.
14235 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
14236 * config/fr30/fr30.c (fr30_function_arg): Likewise.
14237 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
14238 (frv_function_arg_1): Likewise.
14239 * config/ft32/ft32.c (ft32_function_arg): Likewise.
14240 * config/gcn/gcn.c (gcn_function_arg): Likewise.
14241 * config/h8300/h8300.c (h8300_function_arg): Likewise.
14242 * config/i386/i386.c (ix86_function_arg): Likewise.
14243 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
14244 (ia64_function_arg_1): Likewise.
14245 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
14246 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
14247 accordingly.
14248 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
14249 instead of a mode, tree and named flag.
14250 * config/m32c/m32c.c (m32c_function_arg): Likewise.
14251 * config/m32r/m32r.c (m32r_function_arg): Likewise.
14252 * config/m68k/m68k.c (m68k_function_arg): Likewise.
14253 * config/mcore/mcore.c (mcore_function_arg): Likewise.
14254 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
14255 (microblaze_expand_prologue): Update call accordingly.
14256 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
14257 instead of a mode, tree and named flag.
14258 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
14259 (mmix_function_arg_1): Likewise.
14260 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
14261 * config/moxie/moxie.c (moxie_function_arg): Likewise.
14262 * config/msp430/msp430.c (msp430_function_arg): Likewise.
14263 * config/nds32/nds32.c (nds32_function_arg): Likewise.
14264 * config/nios2/nios2.c (nios2_function_arg): Likewise.
14265 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
14266 (nvptx_function_incoming_arg): Likewise.
14267 * config/or1k/or1k.c (or1k_function_arg): Likewise.
14268 * config/pa/pa.c (pa_function_arg): Likewise.
14269 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
14270 * config/pru/pru.c (pru_function_arg): Likewise.
14271 * config/riscv/riscv.c (riscv_function_arg): Likewise.
14272 * config/rl78/rl78.c (rl78_function_arg): Likewise.
14273 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
14274 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
14275 (rs6000_parm_needs_stack): Update call accordingly.
14276 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
14277 instead of a mode, tree and named flag.
14278 * config/s390/s390.c (s390_function_arg): Likewise.
14279 (s390_call_saved_register_used): Update call accordingly.
14280 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
14281 instead of a mode, tree and named flag.
14282 (sh_output_mi_thunk): Update call accordingly.
14283 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
14284 (sparc_function_incoming_arg): Take a function_arg_info instead of
14285 a mode, tree and named flag.
14286 * config/spu/spu.c (spu_function_arg): Likewise.
14287 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14288 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
14289 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
14290 * config/v850/v850.c (v850_function_arg): Likewise.
14291 * config/vax/vax.c (vax_function_arg): Likewise.
14292 * config/visium/visium.c (visium_function_arg): Likewise.
14293 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
14294 (xtensa_function_incoming_arg): Likewise.
14295
14296 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14297
14298 * target.def (setup_incoming_varargs): Take a function_arg_info
14299 instead of a mode and tree.
14300 * doc/tm.texi: Regenerate.
14301 * targhooks.h (default_setup_incoming_varargs): Take a
14302 function_arg_info instead of a mode and tree.
14303 * targhooks.c (default_setup_incoming_varargs): Likewise.
14304 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
14305 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
14306 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
14307 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
14308 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
14309 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
14310 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
14311 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
14312 Likewise.
14313 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
14314 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
14315 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
14316 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
14317 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
14318 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
14319 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
14320 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
14321 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
14322 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
14323 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
14324 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
14325 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
14326 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
14327 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
14328 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
14329 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
14330 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
14331 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
14332 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
14333 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
14334 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
14335 * function.c (assign_parms_setup_varargs): Update call to
14336 targetm.calls.setup_incoming_varargs.
14337
14338 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14339
14340 * target.def (pass_by_reference): Take a function_arg_info instead
14341 of a mode, type and named flag.
14342 * doc/tm.texi: Regenerate.
14343 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
14344 accordingly.
14345 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
14346 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
14347 function_arg_info instead of a mode, type and named flag.
14348 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
14349 * calls.h (pass_by_reference): Take a function_arg_info instead of a
14350 mode, type and named flag.
14351 * calls.c (pass_by_reference): Likewise.
14352 (pass_va_arg_by_reference): Update call accordingly.
14353 (initialize_argument_information): Likewise.
14354 (emit_library_call_value_1): Likewise.
14355 * function.c (assign_parm_find_data_types): Likewise.
14356 * var-tracking.c (prepare_call_arguments): Likewise.
14357 * stor-layout.c: Include calls.h.
14358 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
14359 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
14360 function_arg_info instead of a mode, type and named flag.
14361 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
14362 * config/arc/arc.c (arc_pass_by_reference): Likewise.
14363 * config/arm/arm.c (arm_pass_by_reference): Likewise.
14364 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
14365 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
14366 (c6x_call_saved_register_used): Update call to pass_by_reference.
14367 * config/cris/cris.c (cris_pass_by_reference): Take a
14368 function_arg_info instead of a mode, type and named flag.
14369 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
14370 function_arg_info instead of a mode, type and named flag.
14371 (epiphany_arg_partial_bytes): Update call accordingly.
14372 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
14373 function_arg_info instead of a mode, type and named flag.
14374 (ft32_arg_partial_bytes): Update call accordingly.
14375 * config/i386/i386.c (ix86_pass_by_reference): Take a
14376 function_arg_info instead of a mode, type and named flag.
14377 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14378 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
14379 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
14380 (m32r_return_in_memory): Update call accordingly.
14381 * config/mips/mips.c (mips_pass_by_reference): Take a
14382 function_arg_info instead of a mode, type and named flag.
14383 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
14384 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
14385 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
14386 (moxie_arg_partial_bytes): Update call accordingly.
14387 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
14388 function_arg_info instead of a mode, type and named flag.
14389 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
14390 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
14391 * config/pa/pa.c (pa_pass_by_reference): Likewise.
14392 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
14393 (riscv_return_in_memory): Update call accordingly.
14394 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
14395 function_arg_info instead of a mode, type and named flag.
14396 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
14397 (rs6000_parm_needs_stack): Update call to pass_by_reference.
14398 * config/s390/s390.c (s390_pass_by_reference): Take a
14399 function_arg_info instead of a mode, type and named flag.
14400 (s390_call_saved_register_used): Update call accordingly.
14401 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
14402 instead of a mode, type and named flag.
14403 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
14404 * config/spu/spu.c (spu_pass_by_reference): Likewise.
14405 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
14406 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
14407 * config/v850/v850.c (v850_pass_by_reference): Likewise.
14408 * config/visium/visium.c (visium_pass_by_reference): Likewise.
14409
14410 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14411
14412 * target.def (arg_partial_bytes): Take a function_arg_info instead
14413 of a mode, type and named flag.
14414 * doc/tm.texi: Regenerate.
14415 * target.h (function_arg_info): Declare.
14416 * calls.h (function_arg_info): New class.
14417 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
14418 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
14419 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
14420 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
14421 * calls.c (initialize_argument_information): Update call to
14422 targetm.calls.partial_bytes.
14423 (emit_library_call_value_1): Likewise.
14424 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14425 * function.c (assign_parm_find_entry_rtl): Likewise.
14426 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
14427 function_arg_info instead of a mode, type and named flag.
14428 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
14429 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
14430 (cmse_func_args_or_return_in_stack): Update accordingly.
14431 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
14432 function_arg_info instead of a mode, type and named flag.
14433 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
14434 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
14435 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
14436 * config/fr30/fr30.c: Include calls.h.
14437 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
14438 type and named flag.
14439 * config/frv/frv.c: Include calls.h.
14440 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
14441 type and named flag.
14442 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
14443 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
14444 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
14445 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
14446 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
14447 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
14448 * config/microblaze/microblaze.c (function_arg_partial_bytes):
14449 Likewise.
14450 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
14451 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
14452 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
14453 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
14454 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
14455 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
14456 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
14457 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
14458 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
14459 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
14460 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
14461 (rs6000_parm_needs_stack): Update call accordingly.
14462 * config/sh/sh.c (sh_arg_partial_bytes): Take a
14463 function_arg_info instead of a mode, type and named flag.
14464 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
14465 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
14466
14467 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14468
14469 * calls.h (must_pass_va_arg_in_stack): Declare.
14470 * calls.c (must_pass_va_arg_in_stack): New function.
14471 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
14472 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
14473 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
14474 Likewise.
14475 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
14476
14477 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14478
14479 * calls.h (pass_va_arg_by_reference): Declare.
14480 * calls.c (pass_va_arg_by_reference): New function.
14481 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
14482 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
14483 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
14484 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
14485 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
14486 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
14487 (mips_gimplify_va_arg_expr): Likewise.
14488 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
14489 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
14490 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
14491 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
14492 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
14493 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
14494 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
14495 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
14496 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
14497 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
14498 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
14499
14500 2019-08-20 Richard Biener <rguenther@suse.de>
14501
14502 PR target/91498
14503 * config/i386/i386-features.c (general_scalar_chain::convert_op):
14504 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
14505 (convert_scalars_to_vector): Add timode_p parameter and use it
14506 to guard TImode-only operation.
14507 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
14508 (pass_stv::execute): Pass down timode_p.
14509
14510 2019-08-20 Lili Cui <lili.cui@intel.com>
14511
14512 * common/config/i386/i386-common.c
14513 (processor_names): Add tigerlake and cooperlake.
14514 (processor_alias_table): Add tigerlake and cooperlake.
14515 * config.gcc: Add -march=tigerlake and cooperlake.
14516 * config/i386/driver-i386.c
14517 (host_detect_local_cpu): Detect tigerlake and cooperlake.
14518 Add "has_avx" to classify processor.
14519 * config/i386/i386-builtins.c (processor_model) :
14520 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
14521 (arch_names_table): Add tigerlake and cooperlake.
14522 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
14523 and PROCESSOR_COOPERLAKE.
14524 * config/i386/i386-c.c
14525 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
14526 * config/i386/i386-options.c
14527 (m_TIGERLAKE): Define.
14528 (m_COOPERLAKE): Ditto.
14529 (m_CORE_AVX512): Ditto.
14530 (processor_cost_table): Add cascadelake.
14531 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
14532 * config/i386/i386.h
14533 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
14534 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
14535 (PTA_MOVDIRI): Ditto.
14536 (PTA_MOVDIR64B): Ditto.
14537 (PTA_COOPERLAKE): Ditto.
14538 (PTA_TIGERLAKE): Ditto.
14539 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
14540 * doc/extend.texi: Add tigerlake and cooperlake.
14541 * doc/invoke.texi: Add tigerlake and cooperlake.
14542
14543 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
14544
14545 * doc/install.texi (Specific, alpha): Remove note to use
14546 binutils 2.11.2 or later.
14547
14548 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14549
14550 PR middle-end/89544
14551 * function.c (assign_parm_find_stack_rtl): Use larger alignment
14552 when possible.
14553
14554 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
14555
14556 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
14557 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
14558 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
14559 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
14560 * config/aarch64/constraints.md (Dt): New constraint
14561 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
14562
14563 2019-08-19 Richard Biener <rguenther@suse.de>
14564
14565 PR tree-optimization/91403
14566 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
14567 cases we can handle with tail-recursion...
14568 (follow_ssa_edge_expr): ... here. Do so.
14569
14570 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
14571
14572 PR target/91441
14573 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
14574 implemented for -fsanitize=kernel-address, and merge check logic
14575 with -fsanitize=address.
14576
14577 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
14578
14579 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
14580 for cpu and machine. Factor 64/32b builtins.
14581
14582 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
14583
14584 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
14585 gone, point to sourceforge.net.
14586
14587 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
14588
14589 * doc/ux.texi (User Experience Guidelines): Update reference.
14590
14591 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
14592
14593 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
14594 not LGPL".
14595
14596 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
14597
14598 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
14599 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
14600
14601 2019-08-16 Martin Sebor <msebor@redhat.com>
14602
14603 * tree.def (TYPE_SIZE): Clarify.
14604 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
14605
14606 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
14607
14608 PR tree-optimization/91109
14609 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
14610 * lra.c (lra): Use lra_need_for_scratch_reg_p.
14611 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
14612
14613 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
14614
14615 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
14616 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
14617 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
14618 (uavg<mode>3_ceil): New expander.
14619 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
14620 mode iterator when creating CONST1_RTX.
14621 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
14622 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
14623 mode iterator for const1_operand predicate.
14624
14625 2019-08-16 Richard Biener <rguenther@suse.de>
14626
14627 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
14628 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
14629 follow_ssa_edge.
14630 (follow_ssa_edge_in_condition_phi_branch): Likewise.
14631 (analyze_evolution_in_loop): Likewise.
14632 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
14633 (follow_ssa_edge_expr): ... here. Refactor code.
14634
14635 2019-08-16 Richard Biener <rguenther@suse.de>
14636
14637 PR target/91469
14638 * config/i386/i386-features.c
14639 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
14640
14641 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14642
14643 PR other/91255
14644 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
14645 only if subst_name matches curr_attr string.
14646
14647 2019-08-16 Richard Biener <rguenther@suse.de>
14648
14649 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
14650 stmt at gsi_p, instead replace it with a NOP removed later.
14651 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
14652 that became dead because of that.
14653
14654 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
14655
14656 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
14657 for which we can't represent a range.
14658 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
14659 set_varying.
14660 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
14661 Set VR_UNDEFINED if type is not supported.
14662 * tree-ssanames.c (get_range_info): Pass type to set_varying.
14663 * tree-vrp.c (value_range_base::check): Assert that a varying has
14664 min/max set.
14665 (value_range_base::equal_p): Early bail for undefines.
14666 (value_range_base::set_varying): Accept a type.
14667 (value_range::set_varying): Same.
14668 (value_range_base::type): VARYING can have a type, while UNDEFINE
14669 is typeless.
14670 (value_range_base::dump): Print type for VARYING nodes.
14671 (value_range_base::set): Add type to VARYING.
14672 (extract_range_from_multiplicative_op): Pass type to set_varying.
14673 (extract_range_from_binary_expr): Same.
14674 (value_range_base::intersect_helper): Same.
14675 (value_range_base::union_helper): Same.
14676 (value_range_base::normalize_symbolics): Same.
14677 (determine_value_range_1): Same.
14678 * tree-vrp.h (class value_range_base): Add type to set_varying.
14679 Add prototype for dump(void).
14680 Add prototype for supports_type_p.
14681 (class value_range): Add type to set_varying.
14682 Add prototype for dump(void).
14683 * vr-values.c (set_value_range_to_truthvalue): Pass type to
14684 set_varying.
14685 (vr_values::get_lattice_entry): Set varying even if propagation
14686 finished.
14687 Pass type to set_varying.
14688 (vr_values::get_value_range): Remove vr_const_varying.
14689 Reallocate the lattice if needed.
14690 (vr_values::update_value_range): Pass type to set_varying.
14691 (vr_values::extract_range_for_var_from_comparison_expr): Same.
14692 (vr_values::extract_range_from_binary_expr): Same.
14693 (vr_values::extract_range_from_unary_expr): Same.
14694 (vr_values::extract_range_from_cond_expr): Same.
14695 (vr_values::check_for_binary_op_overflow): Same.
14696 (vr_values::extract_range_basic): Same.
14697 (vr_values::extract_range_from_assignment): Same.
14698 (vr_values::vr_values): Increase size of num_vr_values.
14699 (vr_values::extract_range_from_phi_node): Pass type to
14700 set_varying.
14701
14702 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
14703
14704 PR target/90878
14705 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
14706 for costs of hard register moves.
14707 (ix86_register_move_cost): Likewise.
14708 * config/i386/i386.h (processor_costs): Move costs of hard
14709 register moves to hard_register. Add int_load, int_store,
14710 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
14711 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
14712 for costs of RTL expressions.
14713 * config/i386/x86-tune-costs.h: Move costs of hard register
14714 moves to hard_register. Duplicate int_load, int_store,
14715 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
14716 sse_load, sse_store for costs of RTL expressions.
14717
14718 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14719
14720 * target.def (setup_incoming_vararg_bounds): Remove.
14721 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
14722 * doc/tm.texi: Regenerate.
14723 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
14724 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
14725 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14726 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
14727
14728 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14729
14730 MSP430: Fix lines over 80 characters long in
14731 config/msp430/*.{c,h} files
14732
14733 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
14734 specifier in string.
14735 (msp430_select_hwmult_lib): Split line more than 80 characters long.
14736 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
14737 redundant old comment.
14738 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
14739 Split line more than 80 characters long.
14740 * config/msp430/msp430.c (msp430_option_override): Likewise.
14741 (msp430_return_in_memory): Likewise.
14742 (msp430_gimplify_va_arg_expr): Likewise.
14743 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
14744 (msp430_legitimate_constant): Likewise.
14745 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
14746 (msp430_attr): Likewise.
14747 (msp430_data_attr): Likewise.
14748 (msp430_start_function): Likewise.
14749 (gen_prefix): Likewise.
14750 (msp430_init_sections): Likewise.
14751 (msp430_select_section): Likewise.
14752 (msp430_function_section): Likewise.
14753 (msp430_unique_section): Likewise.
14754 (msp430_output_aligned_decl_common): Likewise.
14755 (msp430_do_not_relax_short_jumps): Likewise.
14756 (msp430_init_builtins): Likewise.
14757 (msp430_expand_delay_cycles): Likewise.
14758 (msp430_expand_prologue): Likewise.
14759 (msp430_expand_epilogue): Likewise.
14760 (msp430_expand_helper): Likewise.
14761 (msp430_split_movsi): Likewise.
14762 (msp430_print_operand): Likewise.
14763 (msp430_return_addr_rtx): Likewise.
14764 (msp430x_extendhisi): Likewise.
14765 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
14766 (ASM_SPEC): Likewise.
14767 Remove very obvious comments.
14768 (LIB_SPEC): Split line more than 80 characters long.
14769 (EH_RETURN_HANDLER_RTX): Likewise.
14770 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
14771
14772 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14773
14774 MSP430: Fix whitespace errors and incorrect indentation in
14775 config/msp430/*.{c,h} files
14776
14777 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
14778 (msp430_select_hwmult_lib): Likewise.
14779 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
14780 (msp430_extract_mcu_data): Likewise.
14781 (struct t_msp430_mcu_data): Likewise.
14782 * config/msp430/msp430.c (struct machine_function): Remove whitespace
14783 before left square bracket.
14784 (msp430_option_override): Fix indentation.
14785 (msp430_hard_regno_nregs_with_padding): Likewise.
14786 (msp430_initial_elimination_offset): Likewise.
14787 (msp430_special_register_convention_p): Remove whitespace before left
14788 square bracket and after exclamation mark.
14789 (msp430_evaluate_arg): Likewise.
14790 (msp430_callee_copies): Fix indentation.
14791 (msp430_gimplify_va_arg_expr): Likewise.
14792 (msp430_function_arg_advance): Remove whitespace before left square
14793 bracket.
14794 (reg_ok_for_addr): Likewise.
14795 (msp430_preserve_reg_p): Likewise.
14796 (msp430_compute_frame_info): Likewise.
14797 (msp430_asm_output_addr_const_extra): Add space between function name
14798 and open parenthesis.
14799 (has_section_name): Fix indentation.
14800 (msp430_attr): Remove trailing whitespace.
14801 (msp430_section_attr): Likewise.
14802 (msp430_data_attr): Likewise.
14803 (struct msp430_attribute_table): Fix comment and whitespace.
14804 (msp430_start_function): Remove whitespace before left square bracket.
14805 Add space between function name and open parenthesis.
14806 (msp430_select_section): Remove trailing whitespace.
14807 (msp430_section_type_flags): Remove trailing whitespace.
14808 (msp430_unique_section): Remove space before closing parenthesis.
14809 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
14810 (msp430_builtins): Remove whitespace before left square bracket.
14811 (msp430_init_builtins): Fix indentation.
14812 (msp430_expand_prologue): Remove whitespace before left square bracket.
14813 Remove space before closing parenthesis.
14814 (msp430_expand_epilogue): Remove whitespace before left square bracket.
14815 (msp430_split_movsi): Remove space before closing parenthesis.
14816 (helper_function_name_mappings): Fix indentation.
14817 (msp430_use_f5_series_hwmult): Fix whitespace.
14818 (use_32bit_hwmult): Likewise.
14819 (msp430_no_hwmult): Likewise.
14820 (msp430_output_labelref): Remove whitespace before left square bracket.
14821 (msp430_print_operand_raw): Likewise.
14822 (msp430_print_operand_addr): Likewise.
14823 (msp430_print_operand): Add two spaces after '.' in comment.
14824 Fix trailing whitespace.
14825 (msp430x_extendhisi): Fix indentation.
14826 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
14827 tab.
14828 (PC_REGNUM): Likewise.
14829 (STACK_POINTER_REGNUM): Likewise.
14830 (CC_REGNUM): Likewise.
14831
14832 2019-08-15 Richard Biener <rguenther@suse.de>
14833
14834 PR target/91454
14835 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
14836 helper.
14837 (general_scalar_chain::make_vector_copies): Use it.
14838
14839 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
14840
14841 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
14842
14843 2019-08-15 Martin Liska <mliska@suse.cz>
14844
14845 * tree-ssa-dce.c (propagate_necessity): We can't reach now
14846 operators with no arguments.
14847 (eliminate_unnecessary_stmts): Likewise here.
14848
14849 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
14850
14851 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
14852 <case COMPARE>: Revert 2019-08-14 change.
14853 (convertible_comparison_p): Revert 2019-08-14 change. Return false
14854 for (TARGET_64BIT || mode != DImode).
14855
14856 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
14857
14858 * tree-vrp.c (value_range_base::set): Merge in code from
14859 value_range_base::set_and_canonicalize.
14860 Enforce canonicalization at set time.
14861 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
14862 (value_range_base::set_undefined): Inline call to set().
14863 (value_range_base::set_varying): Same.
14864 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
14865 (vrp_val_max): New argument handle_pointers.
14866 (vrp_val_min): Same.
14867 (ranges_from_anti_range): Same.
14868 (extract_range_into_wide_ints): Use tree argument instead of sign
14869 and precision.
14870 (extract_range_from_multiplicative_op): Take in tree type instead
14871 of precision and sign. Adapt function for canonicalized ranges.
14872 (extract_range_from_binary_expr): Pass type to
14873 extract_range_from_multiplicative_op.
14874 Adapt for canonicalized ranges.
14875 (extract_range_from_unary_expr): Same.
14876 (value_range_base::intersect_helper): Adjust for canonicalized
14877 ranges.
14878 (value_range_base::union_helper): Same.
14879 (value_range_base::normalize_symbolics): New.
14880 * tree-vrp.h (class value_range_base): Remove
14881 set_and_canonicalize.
14882 New prototype for normalize_symbolics.
14883 (class value_range): Remove set_and_canonicalize.
14884 (vrp_val_min): Adjust prototype.
14885 (vrp_val_max): Same.
14886 * vr-values.c
14887 (vr_values::extract_range_for_var_from_comparison_expr): Call set
14888 instead of set_and_canonicalize.
14889
14890 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14891
14892 PR middle-end/91444
14893 * tree-vect-stmts.c (vectorizable_call): Check that the function
14894 is a BUILT_IN_MD function before passing it to
14895 targetm.vectorize.builtin_md_vectorized_function.
14896
14897 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14898
14899 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
14900 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
14901 (aarch64_select_early_remat_modes): Use it.
14902
14903 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14904
14905 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
14906 16 for SVE predicates even if they are fixed-length.
14907
14908 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14909
14910 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
14911 operand order match the MOV /Z alias.
14912
14913 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14914
14915 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
14916 the vector pattern as an aarch64_svpattern argument. Update the
14917 overloaded caller accordingly.
14918 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
14919 (aarch64_output_sve_vector_inc_dec): Likewise.
14920
14921 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14922
14923 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
14924 multiplication case, try to compute VG * (lowest set bit) directly
14925 rather than always basing the multiplication on VG. Use
14926 expand_mult for the multiplication if we can.
14927
14928 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14929
14930 * config/aarch64/aarch64-protos.h
14931 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
14932 (aarch64_sve_inc_dec_immediate_p): Rename to...
14933 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
14934 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
14935 (aarch64_output_sve_scalar_inc_dec): Declare.
14936 (aarch64_output_sve_inc_dec_immediate): Rename to...
14937 (aarch64_output_sve_vector_inc_dec): ...this.
14938 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
14939 (aarch64_output_sve_scalar_inc_dec): New functions.
14940 (aarch64_output_sve_addvl_addpl): Remove the base and offset
14941 arguments. Only handle true ADDVL and ADDPL instructions;
14942 don't emit an INC or DEC.
14943 (aarch64_sve_inc_dec_immediate_p): Rename to...
14944 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
14945 (aarch64_output_sve_inc_dec_immediate): Rename to...
14946 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
14947 aarch64_sve_vector_inc_dec_immediate_p.
14948 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
14949 (aarch64_sve_plus_immediate): New predicates.
14950 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
14951 rather than aarch64_sve_addvl_addpl_immediate.
14952 (aarch64_sve_inc_dec_immediate): Rename to...
14953 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
14954 aarch64_sve_vector_inc_dec_immediate_p.
14955 (aarch64_sve_add_operand): Update accordingly.
14956 * config/aarch64/constraints.md (Uai): New constraint.
14957 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
14958 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
14959 operand into a register if it satisfies aarch64_sve_plus_immediate.
14960 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
14961 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
14962 * config/aarch64/aarch64-sve.md (add<mode>3): Call
14963 aarch64_output_sve_vector_inc_dec instead of
14964 aarch64_output_sve_inc_dec_immediate.
14965
14966 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14967
14968 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
14969 (UNSPEC_REVW): New constants.
14970 (elem_bits): New mode attribute.
14971 (SVE_INT_UNARY): New int iterator.
14972 (optab): Handle UNSPEC_REV[BHW].
14973 (sve_int_op): New int attribute.
14974 (min_elem_bits): Handle VNx16QI and the predicate modes.
14975 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
14976 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
14977 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
14978 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
14979 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
14980 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
14981 unspecs based on the total width of the reversed data.
14982 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
14983 reinterpret followed by a subreg on big-endian targets.
14984
14985 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14986 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14987
14988 * config/aarch64/aarch64-sve.md
14989 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
14990 alternatives in which one of the inputs is in the same register
14991 as the output.
14992
14993 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14994
14995 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
14996 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
14997
14998 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14999
15000 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
15001 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
15002
15003 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15004 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15005
15006 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
15007 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
15008 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
15009
15010 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15011 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15012
15013 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
15014 Add an alternative that uses reversed shifts.
15015
15016 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15017
15018 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
15019 struct.
15020
15021 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15022
15023 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
15024 a commutativity marker.
15025
15026 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15027 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15028
15029 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
15030 (aarch64_prepare_sve_cond_int_fma): Declare.
15031 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
15032 (aarch64_prepare_sve_int_fma): New functions.
15033 (aarch64_prepare_sve_cond_int_fma): Likewise.
15034 * config/aarch64/aarch64-sve.md
15035 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
15036 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
15037 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
15038 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
15039 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
15040 (*madd<mode>): Rename to...
15041 (*fma<mode>4): ...this.
15042 (*msub<mode>): Rename to...
15043 (*fnma<mode>4): ...this.
15044
15045 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15046 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15047
15048 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
15049 Print 2.0 naturally.
15050 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
15051 * config/aarch64/predicates.md
15052 (aarch64_sve_float_negated_arith_immediate): New predicate,
15053 renamed from aarch64_sve_float_arith_with_sub_immediate.
15054 (aarch64_sve_float_arith_with_sub_immediate): Test for both
15055 positive and negative constants.
15056 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
15057 or an aarch64_sve_float_arith_with_sub_immediate.
15058 * config/aarch64/constraints.md (vsN): Use
15059 aarch64_sve_float_negated_arith_immediate.
15060 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
15061 iterator.
15062 (sve_pred_fp_rhs2_immediate): New int attribute.
15063 * config/aarch64/aarch64-sve.md
15064 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
15065 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
15066 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
15067 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
15068 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
15069 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
15070
15071 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15072 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15073
15074 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
15075 (*aarch64_cond_abd<SVE_F:mode>_3)
15076 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
15077
15078 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15079 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15080
15081 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
15082 (*aarch64_cond_<su>abd<mode>_any): New patterns.
15083
15084 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15085 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15086
15087 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
15088 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
15089 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
15090 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
15091 optabs.
15092 * optabs.h (create_convert_operand_from): Expand comment.
15093 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
15094 when mapping scalar rtxes to vector operands.
15095 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
15096 ashiftrt and lshiftrt.
15097 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
15098 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
15099 (*cond_<optab><mode>_any_const): New patterns.
15100
15101 2019-08-15 Martin Liska <mliska@suse.cz>
15102
15103 PR ipa/91438
15104 * cgraph.c (cgraph_node::remove): When setting
15105 n->origin = NULL for all nested functions, reset
15106 also next_nested.
15107
15108 2019-08-15 Martin Liska <mliska@suse.cz>
15109
15110 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
15111 and next_nested.
15112
15113 2019-08-15 Martin Liska <mliska@suse.cz>
15114
15115 PR ipa/91404
15116 * passes.c (order): Remove.
15117 (uid_hash_t): Likewise).
15118 (remove_cgraph_node_from_order): Remove from set
15119 of pointers (cgraph_node *).
15120 (insert_cgraph_node_to_order): New.
15121 (duplicate_cgraph_node_to_order): New.
15122 (do_per_function_toporder): Register all 3 cgraph hooks.
15123 Skip removed_nodes now as we know about all of them.
15124
15125 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
15126
15127 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
15128 <case E_V8QImode>: Use vector_set path for
15129 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15130 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
15131 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15132
15133 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15134
15135 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
15136
15137 2019-08-14 Martin Sebor <msebor@redhat.com>
15138
15139 PR tree-optimization/91294
15140 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
15141 source length as exact.
15142
15143 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
15144
15145 * doc/extend.texi: Add "noinit" attribute documentation.
15146 * doc/sourcebuild.texi: Add noinit effective target documentation.
15147 * varasm.c (default_section_type_flags): Add support for "noinit"
15148 section.
15149 (default_elf_select_section): Add support for "noinit" attribute.
15150 * config/msp430/msp430.c (msp430_attribute_table): Remove
15151 "noinit" entry.
15152
15153 2019-08-14 Richard Biener <rguenther@suse.de>
15154 Uroš Bizjak <ubizjak@gmail.com>
15155
15156 PR target/91154
15157 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
15158 mode arguments.
15159 (scalar_chain::smode): New member.
15160 (scalar_chain::vmode): Likewise.
15161 (dimode_scalar_chain): Rename to...
15162 (general_scalar_chain): ... this.
15163 (general_scalar_chain::general_scalar_chain): Take mode arguments.
15164 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
15165 base with TImode and V1TImode.
15166 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
15167 (general_scalar_chain::vector_const_cost): Adjust for SImode
15168 chains.
15169 (general_scalar_chain::compute_convert_gain): Likewise. Add
15170 {S,U}{MIN,MAX} support.
15171 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
15172 (general_scalar_chain::make_vector_copies): Likewise. Handle
15173 non-DImode chains appropriately.
15174 (general_scalar_chain::convert_reg): Likewise.
15175 (general_scalar_chain::convert_op): Likewise.
15176 (general_scalar_chain::convert_insn): Likewise. Add
15177 fatal_insn_not_found if the result is not recognized.
15178 (convertible_comparison_p): Pass in the scalar mode and use that.
15179 (general_scalar_to_vector_candidate_p): Likewise. Rename from
15180 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
15181 (scalar_to_vector_candidate_p): Remove by inlining into single
15182 caller.
15183 (general_remove_non_convertible_regs): Rename from
15184 dimode_remove_non_convertible_regs.
15185 (remove_non_convertible_regs): Remove by inlining into single caller.
15186 (convert_scalars_to_vector): Handle SImode and DImode chains
15187 in addition to TImode chains.
15188 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
15189 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
15190 (*<maxmin>di3_doubleword): Likewise.
15191
15192 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15193 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15194
15195 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
15196 (*cond_bic<mode>_any): New patterns.
15197
15198 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15199
15200 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
15201 take the equivalent mask, as well as a bit count.
15202 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
15203 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
15204 (aarch64_sve_pred_and_operand): New predicates.
15205 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
15206 code attribute.
15207 * config/aarch64/aarch64-sve.md
15208 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
15209 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
15210
15211 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15212
15213 * config/aarch64/aarch64-sve.md
15214 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
15215 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
15216 New patterns.
15217
15218 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15219 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15220
15221 * config/aarch64/aarch64-sve.md
15222 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
15223 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
15224
15225 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15226 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15227
15228 * config/aarch64/aarch64-sve.md
15229 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
15230 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
15231
15232 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15233
15234 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
15235 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
15236 New pattern.
15237
15238 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15239 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15240
15241 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
15242
15243 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15244 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15245
15246 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
15247 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
15248 (aarch64_print_operand): Add support for %I.
15249 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
15250 Bitcast floating-point constants to the corresponding integer constant.
15251 (aarch64_float_const_representable_p): Handle vectors as well
15252 as scalars.
15253 (aarch64_expand_sve_vcond): Make sure that the operands are valid
15254 for the new vcond_mask_<mode><vpred> expander.
15255 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
15256 test aarch64_float_const_representable_p.
15257 (aarch64_sve_reg_or_dup_imm): New predicate.
15258 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
15259 gen_vcond_mask_<mode><vpred> instead of
15260 gen_aarch64_sve_dup<mode>_const.
15261 (vcond_mask_<mode><vpred>): Turn into a define_expand that
15262 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
15263 for operands 1 and 2 respectively. Force operand 2 into a
15264 register if operand 1 is a register. Fold old define_insn...
15265 (aarch64_sve_dup<mode>_const): ...and this define_insn...
15266 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
15267 floating-point constants that can be moved as integers. Add
15268 alternatives for MOV /M and FMOV /M.
15269 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
15270 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
15271 1 and 2 respectively.
15272 * config/aarch64/constraints.md (Ufc): Handle vectors as well
15273 as scalars.
15274 (vss): New constraint.
15275
15276 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15277
15278 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
15279 (aarch64_sve_float_maxmin_operand): New predicates.
15280 * config/aarch64/constraints.md (vsB): New constraint.
15281 (vsM): Fix typo.
15282 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
15283 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
15284 UNSPEC_COND_FMINNM.
15285 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
15286 Use aarch64_sve_float_maxmin_operand for operand 2.
15287 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
15288 Add alternatives for the constant forms.
15289
15290 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15291
15292 * config/aarch64/constraints.md (vsb): New constraint.
15293 (vsm): Generalize description.
15294 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
15295 iterator.
15296 (sve_imm_con): Handle smax, smin, umax and umin.
15297 (sve_imm_prefix): New code attribute.
15298 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
15299 (aarch64_sve_vsb_operand): New predicates.
15300 (aarch64_sve_mul_immediate): Rename to...
15301 (aarch64_sve_vsm_immediate): ...this.
15302 (aarch64_sve_mul_operand): Rename to...
15303 (aarch64_sve_vsm_operand): ...this.
15304 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
15305 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
15306 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
15307 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
15308 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
15309 add movprfx support for the immediate alternatives.
15310 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
15311 of the above.
15312 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
15313 for operand 3.
15314
15315 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15316
15317 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
15318 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
15319 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
15320
15321 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15322
15323 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
15324 (optab, sve_int_op): Handle them.
15325 * config/aarch64/aarch64-sve.md: Expand comment.
15326
15327 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15328
15329 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
15330 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
15331 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
15332
15333 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15334
15335 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
15336 (aarch64_expand_sve_const_pred_trn): New functions.
15337 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
15338 use the above functions when the parameter is true.
15339 (aarch64_expand_sve_const_pred): Update call accordingly.
15340 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
15341 Rename to...
15342 (@aarch64_sve_<perm_insn><mode>): ...this.
15343
15344 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15345
15346 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
15347 Declare.
15348 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
15349 (aarch64_sve_emit_int_cmp): New functions.
15350 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
15351 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
15352 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
15353 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
15354 (UNSPEC_PRED_Z): New unspec.
15355 (set_clobber_cc_nzc): Delete.
15356 * config/aarch64/aarch64-sve.md: Add a block comment about
15357 UNSPEC_PRED_Z.
15358 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
15359 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
15360 the old pattern with that name. Use UNSPEC_PRED_Z instead of
15361 UNSPEC_MERGE_PTRUE.
15362 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
15363 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
15364 check for compatible predicates.
15365 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
15366 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
15367 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
15368 comparisons above.
15369
15370 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15371
15372 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
15373 * config/aarch64/aarch64-sve.md: Add a section describing it.
15374 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
15375 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
15376 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
15377 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
15378 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
15379 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
15380 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
15381 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
15382 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
15383 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
15384 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
15385 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
15386 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
15387 (aarch64_evpc_rev_local): Update accordingly.
15388
15389 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15390
15391 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
15392 iterators.
15393 (SVE_BHSI, SVE_SDI): Tweak comment.
15394 (SVE_HSDI): Likewise. Fix definition.
15395 (SVE_SDF): New mode iterator.
15396 (elem_bits): New mode attribute.
15397 (SVE_COND_FCVT): New int iterator.
15398 * config/aarch64/aarch64-sve.md
15399 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
15400 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
15401 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
15402 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
15403 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
15404 ...these new patterns.
15405 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
15406 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
15407 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
15408 Merge into...
15409 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
15410 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
15411 ...these new patterns.
15412 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
15413 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
15414 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
15415 ...this new pattern.
15416 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
15417 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
15418 ...this new pattern.
15419 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
15420
15421 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15422
15423 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
15424 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
15425 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
15426 unspecs.
15427 (optab, su): Handle them.
15428 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
15429 * config/aarch64/aarch64-sve.md
15430 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
15431 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
15432 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
15433 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
15434 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
15435 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
15436 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
15437 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
15438 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
15439 FIXUORS.
15440 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
15441 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
15442 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
15443 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
15444 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
15445 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
15446 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
15447 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
15448 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
15449 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
15450 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
15451 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
15452 of UNSPEC_FLOAT_CONVERT.
15453 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
15454 aarch64_sve_extend<mode><Vwide>2.
15455
15456 2019-08-14 Richard Biener <rguenther@suse.de>
15457
15458 PR target/91154
15459 * config/i386/i386-features.c
15460 (dimode_scalar_chain::compute_convert_gain): Compute and dump
15461 individual instruction gain. Fix reg-reg copy GRP cost. Use
15462 ix86_cost->sse_op for vector instruction costs.
15463
15464 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15465
15466 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
15467 (cmp_op): Handle it.
15468 (SVE_COND_FP_CMP): Rename to...
15469 (SVE_COND_FP_CMP_I0): ...this.
15470 (SVE_FP_CMP): Remove.
15471 * config/aarch64/aarch64-sve.md
15472 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
15473 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
15474 using unspecs to represent the comparison.
15475 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
15476 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
15477 accordingly.
15478 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
15479 (aarch64_unspec_cond_code): Move after integer code. Handle
15480 UNORDERED.
15481 (aarch64_emit_sve_predicated_cond): Replace with...
15482 (aarch64_emit_sve_fp_cond): ...this new function.
15483 (aarch64_emit_sve_or_conds): Replace with...
15484 (aarch64_emit_sve_or_fp_conds): ...this new function.
15485 (aarch64_emit_sve_inverted_cond): Replace with...
15486 (aarch64_emit_sve_invert_fp_cond): ...this new function.
15487 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
15488
15489 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15490
15491 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
15492 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
15493 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
15494 SVE_HSD instead of SVE_SD.
15495
15496 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15497 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15498
15499 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
15500 iterator.
15501 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
15502 attributes.
15503 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
15504 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
15505 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
15506 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
15507 (*div<SVE_F:mode>3): Generalize to...
15508 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
15509
15510 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15511 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15512
15513 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
15514 constants.
15515 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
15516 predicate.
15517 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
15518 Declare.
15519 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
15520 function.
15521 * config/aarch64/aarch64-sve.md: Add a block comment about the
15522 handling of predicated FP operations.
15523 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
15524 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
15525 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
15526 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
15527 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
15528 operand.
15529 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
15530 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
15531 operand.
15532 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
15533 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
15534 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
15535 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
15536 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
15537 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
15538 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
15539 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
15540 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
15541 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
15542 strictness operands. Use aarch64_sve_pred_dominates_p to check
15543 whether the predicate on the conditional operation is suitable
15544 for merging. Split patterns into the canonical equal-predicate form.
15545 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
15546 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
15547
15548 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15549 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15550
15551 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
15552 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
15553 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
15554 rtx codes.
15555 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
15556 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
15557 unspecs.
15558
15559 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15560 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15561
15562 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
15563 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
15564 actually has, rather than relying on REG_EQUAL notes.
15565 Make the insn operand order match the SVE operand order.
15566 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
15567 the SVE operand order.
15568
15569 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15570
15571 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
15572 (aarch64_emit_set_immediate): Likewise.
15573 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
15574 (aarch64_pfalse_reg): Likewise.
15575 (aarch64_convert_sve_data_to_pred): New function.
15576 (aarch64_sve_move_pred_via_while): Take an optional target register
15577 and the required register mode.
15578 (aarch64_expand_sve_const_pred_1): New function.
15579 (aarch64_expand_sve_const_pred): Likewise.
15580 (aarch64_expand_mov_immediate): Build an all-true predicate
15581 if the significant bits of the immediate are all true. Use
15582 aarch64_expand_sve_const_pred for all compile-time predicate constants.
15583 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
15584 before register allocation.
15585 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
15586 a VNx16BI PTRUE when splitting the memory alternative.
15587 (vec_duplicate<mode>): Update accordingly.
15588 (*pred_cmp<cmp_op><mode>): Rename to...
15589 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
15590
15591 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15592
15593 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
15594 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
15595 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
15596 (UNSPEC_PTEST): New unspec.
15597 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
15598 * config/aarch64/iterators.md (data_bytes): New mode attribute.
15599 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
15600 * config/aarch64/aarch64-sve.md: Add a new section describing the
15601 handling of UNSPEC_PTEST.
15602 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
15603 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
15604 (ptest_ptrue<mode>): Replace with...
15605 (aarch64_ptest<mode>): ...this new pattern.
15606 (cbranch<mode>4): Update after above changes.
15607 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
15608 UNSPEC_PTEST_PTRUE.
15609 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
15610 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
15611 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
15612
15613 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
15614
15615 PR lto/91287
15616 * builtins.c (builtin_with_linkage_p): New function.
15617 * builtins.h (builtin_with_linkage_p): New function.
15618 * symtab.c (write_symbol): Remove redundant assert.
15619 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
15620 Remove FIXME and use builtin_with_linkage_p.
15621
15622 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15623
15624 PR middle-end/91421
15625 * tree-core.h (function_decl::function_code): Change type to
15626 unsigned int.
15627 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
15628 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
15629 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
15630 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
15631 is BUILT_IN_NORMAL.
15632 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
15633 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
15634 (fndecl_built_in_p): Change the type of the "name" argument to
15635 unsigned int.
15636 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
15637 after check for DECL_BUILT_IN_CLASS.
15638 * cgraphclones.c (build_function_decl_skip_args): Use
15639 set_decl_built_in_function.
15640 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
15641 * ipa-split.c (split_function): Likewise.
15642 * langhooks.c (add_builtin_function_common): Likewise.
15643 * omp-simd-clone.c (simd_clone_create): Likewise.
15644 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
15645 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
15646 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
15647 DECL_FUNCTION_CODE.
15648 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
15649 instead of DECL_FUNCTION_CODE.
15650 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
15651 instead of DECL_FUNCTION_CODE.
15652 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
15653 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
15654 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
15655 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
15656 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
15657 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
15658 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
15659 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
15660 (alpha_gimple_fold_builtin): Likewise.
15661 * config/arc/arc.c (arc_expand_builtin): Likewise.
15662 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
15663 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
15664 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
15665 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
15666 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
15667 * config/frv/frv.c (frv_expand_builtin): Likewise.
15668 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
15669 (gcn_expand_builtin): Likewise.
15670 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
15671 (fold_builtin_cpu): Likewise.
15672 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
15673 * config/i386/i386.c (ix86_fold_builtin): Likewise.
15674 (ix86_gimple_fold_builtin): Likewise.
15675 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
15676 (ia64_expand_builtin): Likewise.
15677 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
15678 * config/mips/mips.c (mips_expand_builtin): Likewise.
15679 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
15680 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
15681 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
15682 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
15683 * config/pa/pa.c (pa_expand_builtin): Likewise.
15684 * config/pru/pru.c (pru_expand_builtin): Likewise.
15685 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
15686 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15687 Likewise.
15688 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
15689 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
15690 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
15691 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
15692 (rs6000_builtin_reciprocal): Likewise.
15693 * config/rx/rx.c (rx_expand_builtin): Likewise.
15694 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
15695 * config/s390/s390.c (s390_expand_builtin): Likewise.
15696 * config/sh/sh.c (sh_expand_builtin): Likewise.
15697 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
15698 (sparc_fold_builtin): Likewise.
15699 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
15700 * config/spu/spu.c (spu_expand_builtin): Likewise.
15701 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
15702 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
15703 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
15704 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
15705 (xtensa_expand_builtin): Likewise.
15706
15707 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15708
15709 PR middle-end/91421
15710 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
15711 before the DECL_FUNCTION_CODE.
15712 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
15713 to check for a BUILT_IN_ALLOCA call.
15714 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
15715 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
15716 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
15717 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
15718 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
15719 for BUILT_IN_NORMAL functions.
15720 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
15721 test for BUILT_IN_TM_ABORT.
15722 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
15723 to check for a BUILT_IN_STACK_RESTORE call.
15724 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
15725 * tree-ssa-threadedge.c
15726 (record_temporary_equivalences_from_stmts_at_dest): Check for a
15727 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
15728 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
15729 test for a BUILT_IN_NORMAL call instead of a negative test for
15730 an internal function call.
15731
15732 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15733
15734 * tree.h (build_vector_a_then_b): Declare.
15735 * tree.c (build_vector_a_then_b): New function.
15736 * fold-const-call.c (fold_while_ult): Likewise.
15737 (fold_const_call): Use it to handle IFN_WHILE_ULT.
15738 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
15739 (aarch64_svpattern): New enum.
15740 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
15741 constants through aarch64_expand_mov_immediate.
15742 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
15743 than general_operand as the predicate for operand 1.
15744 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
15745 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
15746 insn_type.
15747 (simd_immediate_info::simd_immediate_info): New overload that
15748 takes a scalar_int_mode and an svpattern.
15749 (simd_immediate_info::u): Add a "pattern" field.
15750 (svpattern_token): New function.
15751 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
15752 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
15753 (aarch64_sve_move_pred_via_while): New functions.
15754 (aarch64_expand_mov_immediate): Try using
15755 aarch64_sve_move_pred_via_while for predicates that contain N ones
15756 followed by M zeros but that do not correspond to a VLnnn pattern.
15757 (aarch64_sve_pred_valid_immediate): New function.
15758 (aarch64_simd_valid_immediate): Use it instead of dealing directly
15759 with PTRUE and PFALSE.
15760 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
15761 forms.
15762
15763 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
15764
15765 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
15766 flag.
15767 (darwin_override_options): Likewise.
15768 * config/darwin.h: Likewise.
15769 * config/darwin.opt: Likewise.
15770 * config/i386/i386.c (output_pic_addr_const): Likewise.
15771 * config/rs6000/darwin.h: Likewise.
15772 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
15773 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
15774 ... this TARGET_MACHO_SYMBOL_STUBS.
15775 (FUNCTION_PROFILER):Likewise.
15776 * config/i386/i386.h: Likewise.
15777
15778 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
15779
15780 * config/i386/i386-expand.c (ix86_expand_vector_extract)
15781 <case E_V2SImode>: Use vec_extr path for
15782 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15783 <case E_V8QImode>: Ditto.
15784 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
15785 Use SWI48 mode iterator. Use %k to output operand 0.
15786 (*mmx_pextrw): New insn pattern.
15787 (*mmx_pextrb): Ditto.
15788 (*mmx_pextrb_zext): Ditto.
15789
15790 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
15791
15792 * target.def (libc_has_function, libc_has_fast_function): Improve
15793 documentation strings.
15794 * doc/tm.texi: Regenerate.
15795
15796 2019-08-13 Caroline Tice <cmtice@google.com>
15797
15798 PR other/91396
15799 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
15800 vtv_end.o or vtv_end_preinit.o files if !static.
15801
15802 2019-08-13 Olivier Hainque <hainque@adacore.com>
15803
15804 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
15805
15806 2019-08-13 Olivier Hainque <hainque@adacore.com>
15807
15808 * rtlanal.c (tablejump_casesi_pattern): New function, to
15809 determine if a tablejump insn is a casesi dispatcher. Extracted
15810 from patch_jump_insn.
15811 * rtl.h (tablejump_casesi_pattern): Declare.
15812 * cfgrtl.c (patch_jump_insn): Use it.
15813 * dwarf2cfi.c (create_trace_edges): Use it.
15814
15815 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
15816
15817 PR target/81800
15818 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
15819 operand is larger than a long int.
15820
15821 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15822
15823 * machmode.h (opt_mode::else_mode): New function.
15824 (opt_mode::else_blk): Use it.
15825 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
15826 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
15827 (aarch64_gen_stepped_int_parallel): Likewise.
15828 (aarch64_stepped_int_parallel_p): Likewise.
15829 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
15830 argument.
15831 * config/aarch64/aarch64.c
15832 (aarch64_expand_sve_widened_duplicate): Delete.
15833 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
15834 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
15835 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
15836 argument. Use early returns in the !CONST_INT_P handling.
15837 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
15838 than handling some inline.
15839 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
15840 from...
15841 (aarch64_simd_container_mode): ...here.
15842 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
15843 (aarch64_sve_ld1rq_operand_p): New functions.
15844 * config/aarch64/predicates.md (descending_int_parallel)
15845 (aarch64_sve_ld1rq_operand): New predicates.
15846 * config/aarch64/constraints.md (UtQ): New constraint.
15847 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
15848 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
15849 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
15850 (@aarch64_sve_reinterpret<mode>): New expander.
15851 (*aarch64_sve_reinterpret<mode>): New pattern.
15852 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
15853 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
15854 (*sve_ld1rq<Vesize>): Replace with...
15855 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
15856
15857 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
15858
15859 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
15860 16:12.
15861
15862 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15863
15864 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
15865 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
15866 (msp430_check_path_for_devices): New.
15867 (parse_devices_csv_1): New.
15868 (parse_devices_csv): New.
15869 (msp430_extract_mcu_data): Try to find devices.csv and search for the
15870 MCU data in devices.csv before using the hard-coded data.
15871 Warn if devices.csv isn't found and the MCU wasn't found in the
15872 hard-coded data either.
15873 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
15874 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
15875 Search for devices.csv on -I and -L paths.
15876 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
15877 msp430_set_driver_var.
15878 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
15879 -mdevices-csv-loc=.
15880 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
15881 searched for devices.csv.
15882 (mwarn-devices-csv): Document option.
15883
15884 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15885
15886 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
15887 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
15888 Use a single Dn alternative instead of separate Dz and Dm
15889 alternatives. Use aarch64_output_sve_move_immediate.
15890 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
15891 function.
15892 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
15893 for predicates too.
15894 (aarch64_output_sve_mov_immediate): Handle predicate modes.
15895 (aarch64_output_ptrue): Delete.
15896
15897 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15898
15899 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
15900 INDEX.
15901 (simd_immediate_info::value, simd_immediate_info::step)
15902 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
15903 with...
15904 (simd_immediate_info::u): ...this new union.
15905 (simd_immediate_info::simd_immediate_info): Update accordingly.
15906 (aarch64_output_simd_mov_immediate): Likewise.
15907 (aarch64_output_sve_mov_immediate): Likewise.
15908
15909 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15910
15911 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
15912 extra_gcc_objs.
15913 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
15914 (msp430_select_cpu): New spec function.
15915 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
15916 MCU data.
15917 * config/msp430/msp430-devices.c: New file.
15918 * config/msp430/msp430-devices.h: New file.
15919 * config/msp430/msp430.c: Remove msp430_mcu_data.
15920 (msp430_option_override): Use msp430_extract_mcu_data to extract
15921 MCU data.
15922 (msp430_use_f5_series_hwmult): Likewise.
15923 (use_32bit_hwmult): Likewise.
15924 (msp430_no_hwmult): Likewise.
15925 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
15926 assembler.
15927 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
15928 and -mcpu option.
15929 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
15930 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
15931 Remove hard-coded MCU multilib data.
15932
15933 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15934
15935 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
15936 based on the mode instead of testing properties of it.
15937
15938 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15939
15940 * doc/md.texi: Document the x and y constraints for AArch64.
15941 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
15942 (FP_LO8_REGS): New reg_class.
15943 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
15944 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
15945 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
15946 * config/aarch64/predicates.md (aarch64_simd_register): Use
15947 FP_REGNUM_P instead of checking the classes manually.
15948 * config/aarch64/constraints.md (y): New constraint.
15949
15950 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15951
15952 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
15953 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
15954 * config/aarch64/aarch64-simd.md
15955 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
15956 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
15957 from the asm template.
15958 * config/aarch64/aarch64-sve.md
15959 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
15960 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
15961 from the asm template.
15962 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
15963 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
15964 from the asm template.
15965 * config/aarch64/aarch64-simd-builtins.def: Update comment.
15966
15967 2019-08-13 Martin Liska <mliska@suse.cz>
15968
15969 * value-prof.c (gimple_ic_transform): Add new line.
15970 Print details with MSG_NOTE.
15971
15972 2019-08-13 Martin Liska <mliska@suse.cz>
15973
15974 * doc/invoke.texi: Document automatic detection of jobserver.
15975 * lto-wrapper.c (run_gcc): Detect jobserver always.
15976
15977 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
15978
15979 * config/i386/i386-expand.c (ix86_expand_vector_set)
15980 <case E_V2SImode>: Use vec_merge path for
15981 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15982 <case E_V8QImode>: Ditto.
15983 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
15984 (*mmx_pinsrb): Ditto.
15985
15986 2019-08-12 Jakub Jelinek <jakub@redhat.com>
15987
15988 PR target/83250
15989 PR target/91340
15990 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
15991 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
15992 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
15993 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
15994 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
15995
15996 2019-08-12 Richard Biener <rguenther@suse.de>
15997
15998 PR lto/91375
15999 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
16000 flag_devirtualize.
16001
16002 2019-08-12 Richard Biener <rguenther@suse.de>
16003
16004 PR driver/91130
16005 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
16006 lang_mask option, always use CL_DRIVER.
16007 (get_options_from_collect_gcc_options): Adjust.
16008 (find_and_merge_options): Likewise.
16009 (run_gcc): Likewise.
16010
16011 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16012
16013 * ipa-predicate.c (add_condition): Restore inverted test.
16014
16015 2019-08-10 Jakub Jelinek <jakub@redhat.com>
16016
16017 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
16018 (enum omp_clause_device_type_kind): New enum.
16019 (struct tree_omp_clause): Add subcode.device_type_kind.
16020 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
16021 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16022 for device_type clause.
16023 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
16024 * tree-pretty-print.c (dump_omp_clause): Likewise.
16025
16026 PR target/91408
16027 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
16028 vector_operand.
16029
16030 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
16031
16032 * reload1.c (finish_spills): Do not check ira_conflicts_p when
16033 handling spilled pseudos.
16034
16035 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16036
16037 PR target/91386
16038 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
16039 to preserve the contents of the original insns.
16040
16041 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16042
16043 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
16044 (addsi3_compare_op2): Likewise.
16045
16046 2019-08-09 Martin Liska <mliska@suse.cz>
16047
16048 * alias.c (alias_ptr_types_compatible_p): Strengten
16049 type comparison in LTO mode.
16050
16051 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
16052
16053 PR middle-end/90313
16054 * tree-tailcall.c (find_tail_calls): Reject calls that might
16055 read from an escaped RESULT_DECL.
16056
16057 2019-08-09 Martin Liska <mliska@suse.cz>
16058
16059 * doc/invoke.texi: Document the option value.
16060 * lto-wrapper.c (run_gcc): Set auto_parallel
16061 only with -flto=auto.
16062
16063 2019-08-09 Martin Liska <mliska@suse.cz>
16064
16065 * opts.c (common_handle_option): Error for an invalid argument
16066 to -flto=.
16067
16068 2019-08-09 Martin Liska <mliska@suse.cz>
16069
16070 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
16071 use dump_printf to report optimization.
16072 (sem_variable::merge): Likwise.
16073 (sem_item_optimizer::merge_classes): Use dump_printf to report
16074 ICF hits.
16075
16076 2019-08-09 Martin Liska <mliska@suse.cz>
16077
16078 * value-prof.c (gimple_divmod_fixed_value_transform):
16079 Use dump_printf_loc.
16080 (gimple_mod_pow2_value_transform): Likewise.
16081 (gimple_mod_subtract_transform): Likewise.
16082 (init_node_map): Likewise.
16083 (gimple_ic_transform): Likewise.
16084 (gimple_stringops_transform): Likewise.
16085
16086 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
16087
16088 * doc/extend.texi: Add const qualifier to ld intrinsics.
16089
16090 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16091
16092 * config/rs6000/dfp.md (D64_D128): Rename to ...
16093 (DDTD): ... this, throughout.
16094 (dfp_suffix): Rename to ...
16095 (q): ... this, throughout.
16096
16097 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16098
16099 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
16100 (dfp_suffix): Ditto.
16101 (adddd3, addtd3): Merge to ...
16102 (add<mode>3 for D64_D128): ... this.
16103 (subdd3, subtd3): Merge to ...
16104 (sub<mode>3 for D64_D128): ... this.
16105 (muldd3, multd3): Merge to ...
16106 (mul<mode>3 for D64_D128): ... this.
16107 (divdd3, divtd3): Merge to ...
16108 (div<mode>3 for D64_D128): ... this.
16109 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
16110 (*cmp<mode>_internal1 for D64_D128): ... this.
16111 (ftruncdd2, ftrunctd2): Merge to ...
16112 (ftrunc<mode>2 for D64_D128): ... this.
16113 (fixdddi2, fixtddi2): Merge to ...
16114 (fix<mode>di2 for D64_D128): ... this.
16115
16116 2019-08-08 Jim Wilson <jimw@sifive.com>
16117
16118 PR target/91229
16119 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
16120 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
16121 Pass into recursive call.
16122 (riscv_flatten_aggregate_argument): New arg. Pass to
16123 riscv_flatten_aggregate_field.
16124 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
16125 riscv_flatten_aggregate_argument twice, with false and true as last
16126 arg. Process result twice. Compare results and warn if different.
16127 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
16128
16129 2019-08-08 Martin Liska <mliska@suse.cz>
16130
16131 PR bootstrap/91352
16132 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
16133 * lto-wrapper.c (jobserver_active_p): Likewise.
16134
16135 2019-08-08 Martin Liska <mliska@suse.cz>
16136
16137 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
16138 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
16139 (create_version_clone_with_body): Likewise.
16140
16141 2019-08-08 Jakub Jelinek <jakub@redhat.com>
16142
16143 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
16144 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
16145 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
16146 GOVD_EXPLICIT flags.
16147 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
16148 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
16149 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
16150 call install_var_field with mask 11 instead of 3.
16151 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
16152 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
16153
16154 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16155
16156 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
16157 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
16158
16159 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16160
16161 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
16162 MOVPRFX alternatives. Make the GPR alternatives more expensive
16163 than the FPR ones.
16164
16165 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16166
16167 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
16168 Disparage the GPR alternative relative to the FPR one.
16169 Fix handling of 8-bit and 16-bit FPR values.
16170
16171 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16172
16173 * config/aarch64/iterators.md (BITWISEV): Delete.
16174 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
16175 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
16176 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
16177 UNSPEC_FMINNMV, UNSPEC_FMINV.
16178 (bit_reduc_op): Delete.
16179 (sve_int_op): New int attribute.
16180 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
16181 UNSPEC_FMINNMV, UNSPEC_FMINV.
16182 * config/aarch64/aarch64-sve.md
16183 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
16184 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
16185 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
16186 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
16187 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
16188 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
16189 new patterns.
16190 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
16191 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
16192 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
16193 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
16194 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
16195 new patterns.
16196
16197 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16198
16199 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
16200 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
16201 (fms<mode>4, *fms<mode>4): Replace with...
16202 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16203 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
16204 Use unspecs instead of rtx codes.
16205 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
16206 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
16207
16208 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16209
16210 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
16211 int iterator.
16212 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
16213 * config/aarch64/aarch64-sve.md
16214 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
16215 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
16216 use a single unspec for the rhs.
16217 (*<su><maxmin><mode>3): Delete.
16218 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
16219
16220 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16221
16222 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
16223 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
16224 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
16225 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
16226 (optab, sve_fp_op): Handle them.
16227 (SVE_FP_UNARY): Delete.
16228 (optab): Remove sqrt entry.
16229 (sve_fp_op): Remove neg, abs and sqrt entries.
16230 (SVE_COND_FP_UNARY): New int iterator.
16231 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
16232 (*<frint_pattern><mode>2): Delete.
16233 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
16234 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
16235 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
16236 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
16237
16238 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16239
16240 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
16241
16242 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16243
16244 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
16245 (UNSPEC_COND_FADD): ...this.
16246 (UNSPEC_COND_SUB): Rename to...
16247 (UNSPEC_COND_FSUB): ...this.
16248 (UNSPEC_COND_MUL): Rename to...
16249 (UNSPEC_COND_FMUL): ...this.
16250 (UNSPEC_COND_DIV): Rename to...
16251 (UNSPEC_COND_FDIV): ...this.
16252 (UNSPEC_COND_MAX): Rename to...
16253 (UNSPEC_COND_FMAXNM): ...this.
16254 (UNSPEC_COND_MIN): Rename to...
16255 (UNSPEC_COND_FMINNM): ...this.
16256 (UNSPEC_COND_LT): Rename to...
16257 (UNSPEC_COND_FCMLT): ...this.
16258 (UNSPEC_COND_LE): Rename to...
16259 (UNSPEC_COND_FCMLE): ...this.
16260 (UNSPEC_COND_EQ): Rename to...
16261 (UNSPEC_COND_FCMEQ): ...this.
16262 (UNSPEC_COND_NE): Rename to...
16263 (UNSPEC_COND_FCMNE): ...this.
16264 (UNSPEC_COND_GE): Rename to...
16265 (UNSPEC_COND_FCMGE): ...this.
16266 (UNSPEC_COND_GT): Rename to...
16267 (UNSPEC_COND_FCMGT): ...this.
16268 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
16269 (sve_fp_op_rev): Update accordingly.
16270 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
16271
16272 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16273
16274 * config/aarch64/aarch64-sve.md: Reorganize contents and add
16275 banner comments.
16276 * config/aarch64/check-sve-md.awk: New file.
16277 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
16278 (insn-conditions.md): Depend on it.
16279
16280 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
16281
16282 PR target/91385
16283 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
16284 (*negsi2_cmpz_zext): Ditto.
16285
16286 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16287
16288 * config/aarch64/iterators.md (commutative): Remove.
16289
16290 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
16291
16292 PR driver/91130
16293 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
16294 processing COLLECT_GCC_OPTIONS.
16295 (run_gcc): Likewise.
16296
16297 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
16298
16299 PR tree-optimization/91109
16300 * lra-remat.c (update_scratch_ops): Remove assignment of the
16301 hard register.
16302
16303 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16304
16305 * data-streamer.h (streamer_write_poly_uint64): Declare.
16306 (streamer_read_poly_uint64): Likewise.
16307 * data-streamer-in.c (streamer_read_poly_uint64): New function.
16308 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
16309 * ipa-predicate.h (condition::size): Turn into a poly_int64.
16310 (add_condition): Take a poly_int64 size.
16311 * ipa-predicate.c (add_condition): Likewise.
16312 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
16313 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
16314 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
16315 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
16316 condition::size as a poly_int64.
16317 (unmodified_parm_1): Take a poly_int64 size pointer.
16318 (unmodified_parm): Likewise.
16319 (unmodified_parm_or_parm_agg_item): Likewise.
16320 (set_cond_stmt_execution_predicate): Update accordingly.
16321 (set_switch_stmt_execution_predicate): Likewise.
16322 (will_be_nonconstant_expr_predicate): Likewise.
16323 (will_be_nonconstant_predicate): Likewise.
16324 (inline_read_section): Stream condition::size as a poly_int.
16325 (ipa_fn_summary_write): Likewise.
16326
16327 2019-08-07 Martin Liska <mliska@suse.cz>
16328
16329 * fold-const.c (twoval_comparison_p): Replace int
16330 with bool as a return type.
16331 (simple_operand_p): Likewise.
16332 (operand_equal_p): Replace int with bool as a return type.
16333 * fold-const.h (operand_equal_p): Likewise.
16334
16335 2019-08-07 Jakub Jelinek <jakub@redhat.com>
16336
16337 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
16338 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
16339 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16340 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
16341 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
16342 * tree-pretty-print.c (dump_omp_clause): Likewise.
16343 * tree-nested.c (convert_nonlocal_omp_clauses,
16344 convert_local_omp_clauses): Likewise.
16345 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
16346 Likewise.
16347 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
16348 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
16349 clause with array or reference to array types, no matter what type
16350 except for reference it has.
16351
16352 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
16353
16354 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
16355
16356 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
16357
16358 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
16359 (arch_canonicalize): Support rv32g and rv64g and fix error
16360 handling.
16361
16362 2019-08-06 Martin Liska <mliska@suse.cz>
16363
16364 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
16365 and DECL_IS_OPERATOR_DELETE_P.
16366
16367 2019-08-06 Jakub Jelinek <jakub@redhat.com>
16368
16369 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
16370 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
16371 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
16372 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
16373 (gimplify_omp_for): Don't do C++ random access iterator clause
16374 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
16375 don't predetermine the artificial iterator in case of C++ random
16376 access iterators as lastprivate, but private. For OMP_LOOP, force
16377 bind expr around simd body and force for_pre_body before the
16378 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
16379 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
16380 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
16381 diff var of C++ random access iterators. Handle
16382 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
16383 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
16384 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
16385 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
16386 * omp-low.c (lower_rec_input_clauses): For
16387 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
16388 variables instead of default constructing them.
16389 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
16390 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
16391 is_taskloop_ctx check from the assert to the guarding condition.
16392
16393 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
16394
16395 * config/riscv/multilib-generator: (canonical_order): New.
16396 (arch_canonicalize): Dito.
16397 Apply arch_canonicalize for alts.
16398
16399 2019-08-05 Martin Sebor <msebor@redhat.com>
16400
16401 * doc/extend.texi (Common Variable Attributes): Document alias
16402 attribute.
16403
16404 2019-08-05 Marek Polacek <polacek@redhat.com>
16405
16406 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
16407 * doc/invoke.texi: Document -Wcomma-subscript.
16408
16409 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
16410
16411 * tree-core.h (tree_function_decl): Make function_code an
16412 independent field. Group the remaining bitfields into bytes
16413 and move decl_type so that it contines to be at a byte boundary.
16414 Leave 12 bits for future expansion.
16415
16416 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
16417
16418 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
16419 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
16420 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
16421 IFN_MASK_STORE.
16422
16423 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
16424
16425 * gimple.h (gimple_move_vops): Declare.
16426 * gimple.c (gimple_move_vops): New function
16427 * gimple-fold.c (replace_call_with_call_and_fold)
16428 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
16429 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
16430 (gimple_fold_call): Use it.
16431 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
16432 * tree-call-cdce.c (use_internal_fn): Likewise.
16433 * tree-if-conv.c (predicate_load_or_store): Likewise.
16434 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
16435 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
16436 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
16437 (update_call_from_tree): Likewise.
16438 * tree-vect-stmts.c (vectorizable_load): Likewise.
16439 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
16440
16441 2019-08-05 Martin Liska <mliska@suse.cz>
16442
16443 PR c++/91334
16444 * tree-ssa-dce.c (propagate_necessity): Handle new operators
16445 with not arguments.
16446 (eliminate_unnecessary_stmts): Likewise.
16447
16448 2019-08-05 Richard Biener <rguenther@suse.de>
16449
16450 PR middle-end/91169
16451 * fold-const.c (get_array_ctor_element_at_index): Create
16452 offset_ints according to the sign of the index type and treat
16453 that as signed if it is obviously so.
16454
16455 2019-08-05 Jakub Jelinek <jakub@redhat.com>
16456
16457 PR target/91341
16458 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
16459 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
16460 _mm256_storeu2_m128i): New function.
16461
16462 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
16463
16464 * config/riscv/riscv.c (riscv_promote_function_mode): New.
16465 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
16466
16467 2019-08-05 Alan Modra <amodra@gmail.com>
16468
16469 PR target/91349
16470 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
16471 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
16472
16473 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
16474
16475 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
16476 bug that was fixed in Tcl 8.6.1.
16477
16478 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
16479
16480 * config/rs6000/future.md: New file.
16481 * config/rs6000/rs6000.md: Include future.md.
16482 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
16483
16484 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
16485
16486 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
16487 check to use targetm.slow_unaligned_access instead.
16488
16489 * function.c (assign_param_data_one): Remove unused data members.
16490
16491 2019-08-02 Steve Ellcey <sellcey@marvell.com>
16492
16493 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
16494 build_distinct_type_copy.
16495 (simd_clone_adjust_argument_types): Ditto.
16496 (simd_clone_adjust): Call build_distinct_type_copy here.
16497 (expand_simd_clones): Ditto.
16498
16499 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
16500
16501 PR target/91201
16502 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
16503
16504 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
16505
16506 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
16507 from 'const void *'.
16508 (sort_locs_in_loop_postorder_cmp): Likewise.
16509
16510 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
16511
16512 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
16513 (hot-bb-count-ws-permille): Likewise.
16514 (hot-bb-frequency-fraction): Likewise.
16515 (unlikely-bb-count-fraction): Likewise.
16516 * params.def (hot-bb-count-fraction): Rework description.
16517 (hot-bb-count-ws-permille): Likewise.
16518 (hot-bb-frequency-fraction): Likewise.
16519 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
16520 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
16521
16522 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
16523
16524 PR target/91323
16525 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
16526 Return false.
16527
16528 2019-08-02 Richard Biener <rguenther@suse.de>
16529
16530 * vec.h (vec::sort): Add gcc_qsort_r support.
16531 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
16532 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
16533 to gcc_qsort_r style callback.
16534 (sort_locs_in_loop_postorder_cmp): Likewise.
16535 (analyze_memory_references): Use gcc_sort_r interfaces.
16536 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
16537
16538 2019-08-02 Martin Liska <mliska@suse.cz>
16539
16540 PR lto/91313
16541 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
16542 to detect working job server.
16543 (driver::detect_jobserver): Test whether jobserver
16544 is active from GCC driver. That will prevent situation where
16545 GCC is invoked from a LD plugin and the linker already uses
16546 file descriptors suggested by make. That leads to a wrong
16547 detection.
16548 * gcc.h (driver): Add detect_jobserver.
16549 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
16550 not scanning for --jobserver-auth prefix.
16551
16552 2019-08-02 Jakub Jelinek <jakub@redhat.com>
16553
16554 PR tree-optimization/91201
16555 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
16556 V16QImode extraction without sse4.1 try to use V4SImode lowpart
16557 extraction.
16558
16559 2019-08-01 Martin Sebor <msebor@redhat.com>
16560
16561 PR c++/90947
16562 * tree.c (type_initializer_zero_p): Define.
16563 * tree.h (type_initializer_zero_p): New function.
16564
16565 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
16566
16567 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
16568
16569 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
16570
16571 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
16572 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
16573 * predict.c (maybe_hot_count_p): Likewise.
16574 (maybe_hot_bb_p): Tweak comment.
16575 (maybe_hot_edge_p): Likewise.
16576 (probably_never_executed): Likewise. Minor tweak.
16577 (probably_never_executed_bb_p): Likewise.
16578 (unlikely_executed_edge_p): Likewise.
16579 (probably_never_executed_edge_p): Likewise.
16580 (optimize_function_for_size_p): Likewise.
16581 (optimize_function_for_speed_p): Likewise.
16582 (function_optimization_type): Likewise.
16583 (optimize_bb_for_size_p): Likewise.
16584 (optimize_bb_for_speed_p): Likewise.
16585 (bb_optimization_type): Likewise.
16586 (optimize_edge_for_size_p): Likewise.
16587 (optimize_edge_for_speed_p): Likewise.
16588 (optimize_insn_for_size_p): Likewise.
16589 (optimize_insn_for_speed_p): Likewise.
16590 (optimize_loop_for_size_p): Likewise.
16591 (optimize_loop_for_speed_p): Likewise.
16592 (optimize_loop_nest_for_speed_p): Likewise.
16593 (optimize_loop_nest_for_size_p): Likewise.
16594 (predictable_edge_p): Likewise.
16595 (handle_missing_profiles): Minor tweak.
16596
16597 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
16598
16599 * config/rs6000/predicates.md (pcrel_external_address): Update
16600 comment.
16601
16602 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
16603
16604 PR target/85693
16605 * config/i386/mmx.md (usadv8qi): New expander.
16606
16607 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
16608
16609 PR c++/90590
16610 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
16611 with reserved names that are in a system header.
16612
16613 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
16614
16615 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
16616 (*vec_extractv2si_0_zext_sse4): New insn pattern.
16617 (*vec_extractv2si_0_zext): Ditto.
16618 (*vec_extractv2si_1): Add (rm,x) alternative.
16619 (*vec_extractv2si_1_zext): New insn pattern.
16620 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
16621 insn constraint.
16622
16623 2019-08-01 Richard Biener <rguenther@suse.de>
16624
16625 * domwalk.c (bb_postorder): Remove static variable.
16626 (cmp_bb_postorder): Adjust.
16627 (sort_bbs_postorder): Adjust and use gcc_sort_r.
16628 (dom_walker::walk): Adjust.
16629
16630 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
16631
16632 * sort.cc (sort_r_ctx): New struct.
16633 (reorder23): Make templated on context type.
16634 (reorder45): Ditto.
16635 (cmp1): Ditto. Adjust signature.
16636 (netsort): Ditto.
16637 (mergesort): Ditto.
16638 [CHECKING_P] (cmp2to3): New static function. Use it...
16639 (gcc_qsort) [CHECKING_P]: ...here.
16640 (gcc_sort_r): New function.
16641 * system.h (sort_r_cmp_fn): New function typedef.
16642 (qsort_chk): Adjust signature.
16643 (gcc_sort_r): Declare.
16644 * vec.c (qsort_chk_error): Adjust.
16645 (qsort_chk): Adjust.
16646
16647 2019-08-01 Richard Biener <rguenther@suse.de>
16648
16649 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
16650 (compute_antic): Localize it here.
16651
16652 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
16653
16654 * common/config/riscv/riscv-common.c: Check -march string ends
16655 with null.
16656
16657 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
16658
16659 * ipa-devirt.c (type_warning_cmp): Make static.
16660 (decl_warning_cmp): Ditto.
16661
16662 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
16663
16664 PR target/91050
16665 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
16666 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
16667 use of deleted rs6000_dejagnu_cpu_index variable.
16668 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
16669 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
16670 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
16671 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
16672 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
16673 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
16674
16675 2019-07-31 Richard Biener <rguenther@suse.de>
16676
16677 PR tree-optimization/91280
16678 * tree-ssa-structalias.c (get_constraint_for_component_ref):
16679 Decompose MEM_REF manually for offset handling.
16680
16681 2019-07-31 Richard Biener <rguenther@suse.de>
16682
16683 PR tree-optimization/91293
16684 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
16685 of reduction stmts.
16686
16687 2019-07-31 Matt Thomas <matt@3am-software.com>
16688 Nick Hudson <nick@nthcliff.demon.co.uk>
16689 Matthew Green <mrg@eterna.com.au>
16690 Maya Rashish <coypu@sdf.org>
16691
16692 * config.gcc (hppa*-*-netbsd*): New target.
16693 * config/pa/pa-netbsd.h: New file.
16694 * config/pa/pa32-netbsd.h: New file.
16695
16696 2019-07-31 Jakub Jelinek <jakub@redhat.com>
16697
16698 PR tree-optimization/91201
16699 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
16700
16701 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
16702
16703 * config/gcn/gcn-valu.md
16704 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
16705 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
16706 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
16707 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
16708 struct ilist. Add nops for delayeduse insns.
16709 * config/gcn/gcn.md (delayeduse): New attribute.
16710 (*movbi): Remove s_waitcnt from stores.
16711 (*mov<mode>_insn): Likewise.
16712 (*movti_insn): Likewise. Add delayeduse attribute.
16713 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
16714 (atomic_store<mode>): Remove or adjust s_waitcnt.
16715
16716 2019-07-31 Richard Biener <rguenther@suse.de>
16717
16718 * vr-values.h (vr_values::swap_vr_value): New.
16719 (vr_values::free_value_range): likewise.
16720 * vr-values.c (vr_values::swap_vr_value): Implement.
16721 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
16722 Do not return a range or take a var.
16723 (evrp_range_analyzer::stack): Change back to recording a non-const
16724 value_range *.
16725 * gimple-ssa-evrp-analyze.c
16726 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
16727 value-range.
16728 (evrp_range_analyzer::pop_to_marker): Adjust.
16729 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
16730 (evrp_range_analyzer::pop_value_range): Likewise. Free the
16731 no longer needed value-range.
16732
16733 2019-07-31 Martin Liska <mliska@suse.cz>
16734
16735 * tree-ssa-dce.c (propagate_necessity): Delete operator can
16736 have size and (or) alignment as 2nd and later arguments.
16737 Mark all of them as necessary.
16738
16739 2019-07-31 Richard Biener <rguenther@suse.de>
16740
16741 PR tree-optimization/91178
16742 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
16743 Use tail-recursion.
16744
16745 2019-07-31 Jakub Jelinek <jakub@redhat.com>
16746
16747 PR tree-optimization/91201
16748 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
16749 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
16750 TARGET_AVX512F.
16751 (reduc_plus_scal_<mode>): Improve formatting by introducing
16752 a temporary.
16753
16754 2019-07-31 Sudakshina Das <sudi.das@arm.com>
16755
16756 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
16757 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
16758 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
16759 (aarch64_init_tme_builtins): New.
16760 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
16761 (aarch64_expand_builtin_tme): New.
16762 (aarch64_expand_builtin): Handle TME builtins.
16763 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
16764 __ARM_FEATURE_TME when enabled.
16765 * config/aarch64/aarch64-option-extensions.def: Add "tme".
16766 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
16767 (TARGET_TME): New.
16768 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
16769 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
16770 UNSPECV_TCANCEL.
16771 (tstart, ttest, tcommit, tcancel): New instructions.
16772 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
16773 (__tcancel, __ttest): New.
16774 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
16775 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
16776 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
16777 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
16778 * config/arm/types.md: Add new tme type attr.
16779 * doc/invoke.texi: Document "tme".
16780
16781 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
16782
16783 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
16784 warn_unused_result attribute.
16785 (cmse_check_address_range): Add warn_unused_result attribute.
16786
16787 2019-07-31 Richard Biener <rguenther@suse.de>
16788
16789 PR tree-optimization/91257
16790 * tree-vrp.c (union_ranges): Unify equality and less tests
16791 by using compare_values. Re-order cheap tests first.
16792
16793 2019-07-31 Jakub Jelinek <jakub@redhat.com>
16794
16795 PR middle-end/91301
16796 * gimplify.c (gimplify_omp_for): If for class iterator on
16797 distribute parallel for there is no data sharing clause
16798 on inner_for_stmt, look for private clause on combined
16799 parallel too and if found, move it to inner_for_stmt.
16800
16801 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
16802
16803 * lra-int.h (lra_operand_data): Remove early_clobber field.
16804 (lra_insn_reg): Likewise.
16805 * lra.c (debug_operand_data): Update accordingly.
16806 (setup_operand_alternative): Likewise.
16807 (new_insn_reg): Likewise. Remove early_clobber parameter.
16808 (collect_non_operand_hard_regs): Update call accordingly.
16809 Don't assign to lra_insn_reg::early_clobber.
16810 (add_regs_to_insn_regno_info): Remove early_clobber parameter
16811 and update calls to new_insn_reg.
16812 (lra_update_insn_regno_info): Update calls accordingly.
16813 * lra-constraints.c (update_and_check_small_class_inputs): Take the
16814 alternative number as a parameter and test whether the operand
16815 is earlyclobbered in that particular alternative.
16816 (process_alt_operands): Update call accordingly. Use per-alternative
16817 checks for earyclobber here too.
16818 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
16819 against zero for IRA_UNKNOWN_ALT.
16820
16821 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
16822
16823 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
16824
16825 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
16826
16827 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
16828 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
16829
16830 2019-07-30 Martin Liska <mliska@suse.cz>
16831
16832 PR ipa/89330
16833 * cgraph.c (cgraph_edge::make_direct): Use
16834 edge->indirect_unknown_callee as edge->resolve_speculation can
16835 deallocate edge which is this pointer.
16836
16837 2019-07-30 Richard Biener <rguenther@suse.de>
16838
16839 PR tree-optimization/91257
16840 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
16841
16842 2019-07-30 Martin Liska <mliska@suse.cz>
16843
16844 * doc/invoke.texi: Document new behavior.
16845 * lto-wrapper.c (cpuset_popcount): New function
16846 is a copy of libgomp/config/linux/proc.c.
16847 (init_num_threads): Likewise.
16848 (run_gcc): Automatically detect core count for -flto.
16849 (jobserver_active_p): New function.
16850
16851 2019-07-30 Richard Biener <rguenther@suse.de>
16852
16853 PR tree-optimization/91257
16854 * bitmap.h (bitmap_ior_into_and_free): Declare.
16855 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
16856 whether to add the unliked element to the freelist.
16857 (bitmap_list_insert_element_after): Add defaulted param for
16858 an already allocated element.
16859 (bitmap_ior_into_and_free): New function.
16860 * tree-ssa-structalias.c (condense_visit): Reduce the
16861 ponts-to and edge bitmaps of the SCC members in a
16862 logarithmic fashion rather than all to one.
16863
16864 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
16865
16866 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
16867 parameter. When nonnull, make sure that the addition or subtraction
16868 has the same condition.
16869 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
16870 for CFN_COND_MUL too.
16871
16872 2019-07-30 Richard Biener <rguenther@suse.de>
16873
16874 PR tree-optimization/91291
16875 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
16876 constant values.
16877
16878 2019-07-30 Jakub Jelinek <jakub@redhat.com>
16879
16880 PR middle-end/91216
16881 * omp-low.c (global_nonaddressable_vars): New variable.
16882 (use_pointer_for_field): For global decls, if they are non-addressable,
16883 remember it in the global_nonaddressable_vars bitmap, if they are
16884 addressable and in the global_nonaddressable_vars bitmap, ignore their
16885 TREE_ADDRESSABLE bit.
16886 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
16887 vars in global_nonaddressable_vars bitmap.
16888 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
16889
16890 PR target/91150
16891 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
16892 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
16893 comparison to unsigned HOST_WIDE_INT before shifting it left.
16894
16895 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
16896
16897 * config/i386/i386.md (movstrict<mode>): Use register_operand
16898 predicate for operand 0. Add expander condition. Assert that
16899 operand 0 is a SUBREG RTX.
16900 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
16901 Update operand constraints and insn condition.
16902 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
16903 (zero_extendqihi2_and): Do not call gen_movstrictqi.
16904 (*setcc_qi_slp): Use register_operand predicate for operand 0.
16905 Update operand 0 constraints.
16906 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
16907
16908 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16909
16910 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
16911 when -m{code,data}-region are used without -mlarge.
16912 * config/msp430/msp430.c (msp430_option_override): Error when a
16913 non-default code or data region is used without -mlarge.
16914 (msp430_section_attr): Emit a warning and do not add upper/lower/either
16915 attributes when they are used without -mlarge.
16916
16917 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16918
16919 PR target/70320
16920 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
16921
16922 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16923
16924 PR middle-end/91242
16925 * wide-int.h (generic_wide_int::sext_elt): New function.
16926 * inchash.h (hash::add_wide_int): Use it instead of elt.
16927
16928 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16929
16930 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
16931 CODE_FOR_arm_##.
16932 * config/arm/arm.md (<crc_variant>): Rename to...
16933 (arm_<crc_variant>): ... This.
16934 (<cdp>): Rename to...
16935 (arm_<cdp>): ... This.
16936 (<ldc>): Rename to...
16937 (arm_<ldc>): ... This.
16938 (<stc>): Rename to...
16939 (arm_<stc>): ... This.
16940 (<mcr>): Rename to...
16941 (arm_<mcr>): ... This.
16942 (<mrc>): Rename to...
16943 (arm_<mrc>): ... This.
16944 (<mcrr>): Rename to...
16945 (arm_<mcrr>): ... This.
16946 (<mrrc>): Rename to...
16947 (arm_<mrrc>): ... This.
16948
16949 2019-07-29 Richard Biener <rguenther@suse.de>
16950
16951 PR tree-optimization/91257
16952 * tree-ssa-sccvn.h (struct vn_avail): New.
16953 (struct vn_ssa_aux): Add avail member.
16954 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
16955 member, add m_avail_freelist one.
16956 (rpo_elim::~rpo_elim): Remove.
16957 (rpo_elim::eliminate_avail): Adjust to new avail tracking
16958 data structure.
16959 (rpo_elim::eliminate_push_avail): Likewise.
16960 (do_unwind): Likewise.
16961 (do_rpo_vn): Likewise.
16962
16963 2019-07-29 Richard Biener <rguenther@suse.de>
16964
16965 PR tree-optimization/91257
16966 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
16967 most cases, instead call compare_values which handles the
16968 symbolic ranges we handle specially.
16969 (compare_values_warnv): Do not call operand_less_p but open-code
16970 the effective fold calls. Avoid converting so much.
16971
16972 2019-07-29 Martin Liska <mliska@suse.cz>
16973
16974 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
16975 remove LHS of operator new call. It's handled latter.
16976
16977 2019-07-29 Richard Biener <rguenther@suse.de>
16978
16979 PR tree-optimization/91267
16980 * vr-values.c (vr_values::update_value_range): Add early return
16981 for effectively VARYING lattice entry.
16982
16983 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16984
16985 PR debug/86638
16986 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
16987 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
16988 necessary if keep_all_vdefs_p is true.
16989 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
16990 that keep_all_vdefs_p is false.
16991 (mark_all_reaching_defs_necessary): Likewise.
16992 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
16993
16994 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16995
16996 * common.opt (Og): Change the initial value of flag_dse to 0.
16997 * opts.c (default_options_table): Move OPT_ftree_dse from
16998 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
16999 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
17000 entry before the OPT_ftree_sra entry.
17001 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
17002 of flags disabled by Og.
17003
17004 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17005
17006 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
17007 variables for -Og.
17008
17009 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17010
17011 * doc/sourcebuild.texi (check-function-bodies): Document.
17012
17013 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17014
17015 * simplify-rtx.c (simplify_const_unary_operation): Fold a
17016 VEC_DUPLICATE of a fixed-length vector even if the result
17017 is variable-length. Likewise fold a duplicate of a
17018 variable-length vector if the variable-length vector is
17019 itself a duplicate of a fixed-length sequence.
17020 (test_vector_ops_duplicate): Test more cases.
17021
17022 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17023
17024 * vector-builder.h (vector_builder): Add a shape template parameter.
17025 (vector_builder::new_unary_operation): New function, generalizing
17026 the old tree_vector_builder function.
17027 (vector_builder::new_binary_operation): Likewise.
17028 (vector_builder::binary_encoded_nelts): Likewise.
17029 * int-vector-builder.h (int_vector_builder): Update template
17030 parameters to vector_builder.
17031 (int_vector_builder::shape_nelts): New function.
17032 * rtx-vector-builder.h (rtx_vector_builder): Update template
17033 parameters to vector_builder.
17034 (rtx_vector_builder::shape_nelts): New function.
17035 (rtx_vector_builder::nelts_of): Likewise.
17036 (rtx_vector_builder::npatterns_of): Likewise.
17037 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
17038 * tree-vector-builder.h (tree_vector_builder): Update template
17039 parameters to vector_builder.
17040 (tree_vector_builder::shape_nelts): New function.
17041 (tree_vector_builder::nelts_of): Likewise.
17042 (tree_vector_builder::npatterns_of): Likewise.
17043 (tree_vector_builder::nelts_per_pattern_of): Likewise.
17044 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
17045 (tree_vector_builder::new_binary_operation): Delete.
17046 (tree_vector_builder::binary_encoded_nelts): Likewise.
17047 * simplify-rtx.c: Include rtx-vector-builder.h.
17048 (distributes_over_addition_p): New function.
17049 (simplify_const_unary_operation)
17050 (simplify_const_binary_operation): Generalize handling of vector
17051 constants to include variable-length vectors.
17052 (test_vector_ops_series): Add more tests.
17053
17054 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
17055
17056 PR lto/91222
17057 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
17058 than INDENTIFIER_POINTER.
17059
17060 2019-07-28 Martin Liska <mliska@suse.cz>
17061
17062 PR ipa/89330
17063 * cgraph.c (symbol_table::create_edge): Always allocate
17064 a cgraph_edge.
17065 (symbol_table::free_edge): Store summary_id to
17066 edge_released_summary_ids if != -1;
17067 * cgraph.h (NEXT_FREE_NODE): Remove.
17068 (SET_NEXT_FREE_NODE): Likewise.
17069 (NEXT_FREE_EDGE): Likewise.
17070 (symbol_table::release_symbol): Store summary_id to
17071 cgraph_released_summary_ids if != -1;
17072 (symbol_table::allocate_cgraph_symbol): Always allocate
17073 a cgraph_node.
17074
17075 2019-07-28 Alan Modra <amodra@gmail.com>
17076
17077 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
17078 gen_sibcall.
17079
17080 2019-07-28 Alan Modra <amodra@gmail.com>
17081
17082 PR target/91135
17083 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
17084 define.
17085 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
17086 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
17087 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
17088
17089 2019-07-28 Alan Modra <amodra@gmail.com>
17090
17091 PR target/91050
17092 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
17093 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
17094 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
17095 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
17096 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
17097 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
17098 in asm_default spec.
17099 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
17100 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
17101
17102 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
17103
17104 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
17105
17106 2019-07-26 Tamar Christina <tamar.christina@arm.com>
17107
17108 PR target/89517
17109 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
17110 * config/aarch64/aarch64-option-extensions.def: Add new comments
17111 and restore easier to read options.
17112
17113 2019-07-26 Tamar Christina <tamar.christina@arm.com>
17114
17115 * convert.c (convert_to_real_1): Move part of conversion code...
17116 * match.pd: ...To here.
17117
17118 2019-07-26 Martin Jambor <mjambor@suse.cz>
17119
17120 PR ipa/89330
17121 * ipa-inline-transform.c (check_speculations_1): New function.
17122 (push_all_edges_in_set_to_vec): Likewise.
17123 (check_speculations): Use check_speculations_1, new parameter
17124 new_edges.
17125 (inline_call): Pass new_edges to check_speculations.
17126 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
17127 NULL.
17128 (speculation_useful_p): Early return true if edge is inlined, remove
17129 later checks for inline_failed.
17130
17131 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
17132
17133 PR rtl-optimization/91223
17134 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
17135 matching with INOUT operand.
17136
17137 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
17138
17139 * stmt.c (expand_case): Try to narrow the index type if it's larger
17140 than a word. Tidy up.
17141
17142 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
17143
17144 * cif-code.def (NEVER_CALL): New code.
17145 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
17146 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
17147
17148 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
17149
17150 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
17151 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17152
17153 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17154
17155 * ipa-devirt.c (add_type_duplicate): Fix return value.
17156
17157 2019-07-25 Richard Biener <rguenther@suse.de>
17158
17159 * tree-vrp.c (extract_range_from_multiplicative_op): Add
17160 type parameter and use it instead of guessing expression
17161 type from the first operand.
17162 (extract_range_from_binary_expr): Pass expr_type down.
17163
17164 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17165
17166 * config/arm/arm.md (SATrev): Change to code attribute.
17167 (*satsi_<SAT:code>): Adjust for the above.
17168 (*satsi_<SAT:code>_shift): Likewise.
17169
17170 2019-07-25 Richard Biener <rguenther@suse.de>
17171
17172 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
17173 Make value_range * temporary const.
17174 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
17175 Likewise.
17176 (evrp_range_analyzer::record_ranges_from_): Likewise.
17177 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
17178 deal with having recorded a const one.
17179 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
17180 Return a const value_range *.
17181 (evrp_range_analyzer::pop_value_range): Likewise.
17182 (evrp_range_analyzer::stack): Record const value_range *s.
17183 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
17184 Adjust.
17185 * gimple-ssa-sprintf.c (get_int_range): Likewise.
17186 (format_integer): Likewise.
17187 (sprintf_dom_walker::handle_gimple_call): Likewise.
17188 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
17189 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
17190 (vrp_prop::get_value_range): Adjust.
17191 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
17192 modifying the lattice in-place.
17193 (vrp_prop::visit_stmt): Likewise.
17194 * vr-values.c (vr_values::get_lattice_entry): New private method.
17195 (vr_values::get_value_range): Wrap it and return a const
17196 value_range *.
17197 (vr_values::set_def_to_varying): New.
17198 (vr_values::set_defs_to_varying): Use it.
17199 (vr_values::update_value_range): Likewise.
17200 (vr_values::vrp_stmt_computes_nonzero): Adjust.
17201 (values::op_with_constant_singleton_va): Likewise.
17202 (vr_values::extract_range_for_var_from_co): Likewise.
17203 (vr_values::extract_range_from_ssa_name): Likewise.
17204 (vr_values::extract_range_from_cond_expr): Likewise.
17205 (vr_values::extract_range_basic): Likewise.
17206 (compare_ranges): Take const value_range *, adjust.
17207 (compare_range_with_value): Likewise.
17208 (vrp_valueize): Adjust.
17209 (vrp_valueize_1): Likewise.
17210 (vr_values::get_vr_for_comparison): Return a const value_range *.
17211 (vr_values::compare_name_with_value): Adjust.
17212 (vr_values::compare_names): Likewise.
17213 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
17214 Likewise.
17215 (vr_values::vrp_evaluate_conditional): Likewise.
17216 (find_case_label_ranges): Take a const value_range *.
17217 (vr_values::vrp_visit_switch_stmt): Adjust.
17218 (vr_values::extract_range_from_phi_node): Likewise.
17219 (vr_values::simplify_div_or_mod_using_ran): Likewise.
17220 (vr_values::simplify_abs_using_ranges): Likewise.
17221 (test_for_singularity): Take a const value_range *.
17222 (range_fits_type_p): Likewise.
17223 (vr_values::simplify_cond_using_ranges_1): Adjust.
17224 (vr_values::simplify_cond_using_ranges_2): Likewise.
17225 (vr_values::simplify_switch_using_ranges): Likewise.
17226 (vr_values::simplify_float_conversion_usi): Likewise.
17227 (vr_values::two_valued_val_range_p): Likewise.
17228 * vr-values.h (vr_values::get_value_range): Return a const
17229 value_range *.
17230 (vr_values::set_def_to_varying): New.
17231 (vr_values::get_lattice_entry): New private method.
17232 (vr_values::get_vr_for_comparison): Return a const value_range *.
17233
17234 2019-07-25 Martin Liska <mliska@suse.cz>
17235 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
17236
17237 PR c++/23383
17238 * common.opt: Add -fallocation-dce
17239 * gimple.c (gimple_call_operator_delete_p): New.
17240 * gimple.h (gimple_call_operator_delete_p): Likewise.
17241 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
17242 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
17243 DECL_IS_OPERATOR_DELETE_P.
17244 (mark_all_reaching_defs_necessary_1): Likewise.
17245 (propagate_necessity): Likewise.
17246 (eliminate_unnecessary_stmts): Handle
17247 gimple_call_operator_delete_p.
17248 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
17249 Add packing of OPERATOR_DELETE.
17250 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
17251 Similarly here.
17252 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
17253 (DECL_SET_IS_OPERATOR_DELETE): New.
17254 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
17255
17256 2019-07-25 Martin Liska <mliska@suse.cz>
17257
17258 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
17259 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
17260 * coverage.c (coverage_begin_function): Likewise.
17261 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
17262 * gimple.c (gimple_call_nonnull_result_p): Likewise.
17263 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
17264 (sem_item::hash_referenced_symbol_properties): Likewise.
17265 * lto-streamer-out.c (hash_tree): Likewise.
17266 * predict.c (expr_expected_value_1): Likewise.
17267 * tree-inline.c (expand_call_inline): Likewise.
17268 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17269 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17270 * tree-core.h (enum function_decl_type): New enum.
17271 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
17272 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
17273 (set_function_decl_type): Likewise.
17274 (DECL_IS_OPERATOR_NEW_P): New.
17275 (DECL_SET_IS_OPERATOR_NEW): Likewise.
17276 (DECL_LAMBDA_FUNCTION): Likewise.
17277 (DECL_LAMBDA_FUNCTION_P): Likewise.
17278 (DECL_IS_OPERATOR_NEW): Remove.
17279 (DECL_SET_LAMBDA_FUNCTION): Likewise.
17280
17281 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
17282
17283 * ipa-profile.c (get_most_common_single_value): Use
17284 get_nth_most_common_value.
17285 * profile.c (sort_hist_value): New function.
17286 (compute_value_histograms): Call sort_hist_value to sort the
17287 values after loading from disk.
17288 * value-prof.c (get_most_common_single_value): Rename to ...
17289 get_nth_most_common_value. Add input params n, return
17290 the n_th value and count.
17291 (gimple_divmod_fixed_value_transform): Use
17292 get_nth_most_common_value.
17293 (gimple_ic_transform): Likewise.
17294 (gimple_stringops_transform): Likewise.
17295 * value-prof.h (get_most_common_single_value): Add input params
17296 n, default to 0.
17297
17298 2019-07-25 Richard Biener <rguenther@suse.de>
17299
17300 PR tree-optimization/91236
17301 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
17302 size of CONSTRUCTOR write. Fix buffer size we pass to
17303 native_encode_expr.
17304
17305 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17306
17307 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
17308 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
17309 r273773.
17310
17311 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17312
17313 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
17314 explicitly disabled with --disable-initfini-array.
17315
17316 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17317
17318 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
17319 if-exists.
17320
17321 2019-07-24 Martin Sebor <msebor@redhat.com>
17322
17323 PR tree-optimization/91183
17324 PR tree-optimization/86688
17325 * builtins.c (compute_objsize): Handle MEM_REF.
17326 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
17327 (get_min_string_length): Remove.
17328 (count_nonzero_bytes): New function.
17329 (handle_char_store): Rename...
17330 (handle_store): to this. Handle multibyte stores via integer types.
17331 (strlen_check_and_optimize_stmt): Adjust conditional and the called
17332 function name.
17333
17334 2019-07-24 Martin Sebor <msebor@redhat.com>
17335
17336 PR driver/80545
17337 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
17338 (diagnostic_report_diagnostic): Same.
17339 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
17340 (diagnostic_context::lang_mask): New data member.
17341 * ipa-pure-const.c (suggest_attribute): Use
17342 lang_hooks.option_lang_mask ().
17343 * opts-common.c (option_enabled): Handle new argument.
17344 (get_option_state): Pass an additional argument.
17345 * opts.c (print_filtered_help): Print supported languages for
17346 unsupported options. Adjust printing of current state.
17347 * opts.h (option_enabled): Add argument.
17348 * toplev.c (print_switch_values): Use lang_mask.
17349 (general_init): Set global_dc->lang_mask.
17350
17351 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
17352
17353 PR bootstrap/87030
17354 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
17355
17356 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
17357
17358 * cgraphunit.c (symbol_table::compile): Start and stop
17359 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
17360 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
17361
17362 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
17363
17364 * gimplify.c (flag_instrument_functions_exclude_p): Include
17365 namespace/class information in the printable name.
17366 * opts.c (add_comma_separated_to_vector): Add NUL terminator
17367 to tokens entered into the vector.
17368
17369 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
17370
17371 * tree-nested.c (build_simple_mem_ref_notrap): New function.
17372 (get_static_chain): Call it instead of build_simple_mem_ref.
17373 (get_frame_field): Likewise.
17374 (get_nonlocal_debug_decl): Likewise.
17375 (convert_nonlocal_reference_op): Likewise.
17376
17377 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
17378
17379 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
17380 declaration.
17381 (arc_compute_frame_size): Millicode is disabled when compiling
17382 ISR.
17383 (arc_return_address_register): Likewise.
17384 (arc_compute_function_type): Likewise.
17385 (arc_compute_frame_size): Likewise.
17386 (secondary_reload_info): Likewise.
17387 (arc_get_unalign): Likewise.
17388 (arc_can_use_return_insn): Declare.
17389 * config/arc/arc.c (AUX_LP_START): Define
17390 (AUX_LP_END): Likewise.
17391 (arc_frame_info): Update gmask member to 64-bit datum.
17392 (GMASK_LEN): Update.
17393 (arc_compute_function_type): Make it static, move it forward.
17394 (arc_must_save_register): Update, consider the extra regs.
17395 (arc_compute_millicode_save_restore_regs): Update to use the 64
17396 bit gmask.
17397 (arc_compute_frame_size): Likewise.
17398 (arc_enter_leave_p): Likewise.
17399 (arc_save_callee_saves): Likewise.
17400 (arc_restore_callee_saves): Likewise.
17401 (arc_save_callee_enter): Likewise.
17402 (arc_restore_callee_leave): Likewise.
17403 (arc_save_callee_milli): Likewise.
17404 (arc_restore_callee_milli): Likewise.
17405 (arc_expand_prologue): Add new interrupt handling.
17406 (arc_return_address_register): Make it static, move it forward.
17407 (arc_expand_epilogue): Add new interrupt handling.
17408 (arc_get_unalign): Delete.
17409 (arc_epilogue_uses): Make sure we do not remove the extra
17410 saved/restored registers when interrupt.
17411 (arc_can_use_return_insn): New function.
17412 (push_reg): Likewise.
17413 (pop_reg): Likewise.
17414 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
17415 procedures.
17416 (arc_restore_callee_saves): Likewise, but restoring.
17417 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
17418 (R33_REG): Likewise.
17419 (R34_REG): Likewise.
17420 (R35_REG): Likewise.
17421 (R36_REG): Likewise.
17422 (R37_REG): Likewise.
17423 (R38_REG): Likewise.
17424 (R39_REG): Likewise.
17425 (R45_REG): Likewise.
17426 (R46_REG): Likewise.
17427 (R47_REG): Likewise.
17428 (R48_REG): Likewise.
17429 (R49_REG): Likewise.
17430 (R50_REG): Likewise.
17431 (R51_REG): Likewise.
17432 (R52_REG): Likewise.
17433 (R53_REG): Likewise.
17434 (R54_REG): Likewise.
17435 (R55_REG): Likewise.
17436 (R56_REG): Likewise.
17437 (R58_REG): Likewise.
17438 (type): Add rtie attribute.
17439 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
17440 (movsi_insn): Accept moves to lp_count.
17441 (rtie): Update pattern.
17442 (simple_return): Simplify it, don't use this pattern as a return
17443 from an interrupt.
17444 (arc600_rtie): New pattern.
17445 (p_return_i): Clean up.
17446 (return): Likewise.
17447 * config/arc/builtins.def (rtie): Only available for non ARC6xx
17448 family CPUs.
17449 * config/arc/predicates.md (move_src_operand): Consider lp_count
17450 as a register.
17451
17452 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
17453
17454 * config/s390/predicates.md (addv_const_operand): New predicate.
17455 * config/s390/s390-modes.def (CCO): New condition code mode.
17456 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
17457 (s390_branch_condition_mask): Likewise.
17458 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
17459 ("mulv<mode>4"): New expanders.
17460 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
17461 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
17462 pattern definitions.
17463
17464 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17465
17466 PR middle-end/91166
17467 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
17468 (define_predicates): Add entry for uniform_vector_p.
17469 (vec_same_elem_p): New match pattern.
17470
17471 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
17472
17473 PR bootstrap/87030
17474 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
17475 * config/i386/darwin32-biarch.h .. to here.
17476 * config/i386/darwin64-biarch.h: Adjust comments.
17477 * config/rs6000/darwin32-biarch.h: Likewise.
17478 * config/rs6000/darwin64-biarch.h: Likewise.
17479 * config.gcc: Missed commit from r273746
17480 (*-*-darwin*): Don't include CPU t-darwin here.
17481 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
17482 an error message if i686-darwin configuration is attempted for
17483 Darwin >= 18.
17484
17485 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
17486
17487 PR bootstrap/87030
17488 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
17489 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
17490 an error message if i686-darwin configuration is attempted for
17491 Darwin >= 18.
17492 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
17493 (powerpc-*-darwin*): Use biarch files where needed.
17494 (powerpc64-*-darwin*): Likewise.
17495 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
17496 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
17497 arch case.
17498 * config/i386/darwin32-biarch.h: New.
17499 * config/i386/darwin64.h: Rename.
17500 * config/i386/darwin64-biarch.h: To this.
17501 * config/i386/t-darwin: Rename.
17502 * config/i386/t-darwin32-biarch: To this.
17503 * config/i386/t-darwin64: Rename.
17504 * config/i386/t-darwin64-biarch: To this.
17505 * config/rs6000/darwin32-biarch.h: New.
17506 * config/rs6000/darwin64.h: Rename.
17507 * config/rs6000/darwin64-biarch.h: To this.
17508 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
17509 arch case.
17510 * config/rs6000/t-darwin8: Rename.
17511 * config/rs6000/t-darwin32-biarch: To this.
17512 * config/rs6000/t-darwin64 Rename.
17513 * config/rs6000/t-darwin64-biarch: To this.
17514
17515 2019-07-23 Martin Sebor <msebor@redhat.com>
17516
17517 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
17518
17519 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
17520
17521 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
17522 (rh): New alias for it.
17523
17524 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
17525
17526 * gdbhooks.py: Pass replace=True to
17527 gdb.printing.register_pretty_printer.
17528
17529 2019-07-23 Richard Biener <rguenther@suse.de>
17530
17531 PR debug/91231
17532 * lto-streamer-in.c (input_function): Drop inline-entry markers
17533 that ended up with an unknown location block.
17534
17535 2019-07-23 Richard Biener <rguenther@suse.de>
17536
17537 PR tree-optimization/83518
17538 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
17539 init from a constant even when partial defs are already recorded.
17540
17541 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17542
17543 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
17544 * config/i386/znver1.md: Enable patterns for znver2 and add store
17545 variants which use extra AGU unit.
17546
17547 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17548
17549 * config/i386/i386-options.c (ix86_option_override_internal): Default
17550 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
17551 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
17552 for ZNVER2.
17553
17554 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17555
17556 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
17557 (znver2_costs): Update 256 bit SSE costs and multiplication.
17558
17559 2019-07-23 Jan Beulich <jbeulich@suse.com>
17560
17561 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
17562 Require only AVX512F.
17563 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
17564 alternative expanding to vpternlog.
17565
17566 2019-07-23 Martin Liska <mliska@suse.cz>
17567
17568 * dwarf2out.c (gen_producer_string): Canonize -flto=N
17569 to -flto in dwarf producer string.
17570
17571 2019-07-23 Richard Biener <rguenther@suse.de>
17572
17573 * tree-cfg.c (label_for_bb): Remove global var.
17574 (main_block_label): Take label_for_bb as argument.
17575 (cleanup_dead_labels_eh): Likewise, adjust.
17576 (cleanup_dead_labels): Adjust.
17577
17578 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
17579
17580 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
17581 Configurations): Add documentation for __builtin_mtfsf.
17582
17583 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
17584
17585 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
17586 * config/riscv/riscv.c (riscv_constant_alignment): Use
17587 riscv_align_data_type.
17588 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
17589 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
17590 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
17591 * config/riscv/riscv.opt (malign-data): New.
17592 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
17593
17594 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
17595
17596 * cgraph.c (dump_graphviz): New function.
17597 * cgraph.h (dump_graphviz): New function.
17598 * symtab.c (dump_graphviz): New function.
17599
17600 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
17601
17602 * config/aarch64/aarch64-simd.md
17603 (*aarch64_simd_sra<mode>): New.
17604 * config/aarch64/iterators.md
17605 (SHIFTRT): New iterator.
17606 (sra_op): New attribute.
17607
17608 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17609
17610 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
17611 callee-saved regs R4->R10 in an interrupt function that calls another
17612 function.
17613
17614 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
17615
17616 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
17617 (_mm_blendv_epi8): New.
17618
17619 2019-07-22 Richard Biener <rguenther@suse.de>
17620
17621 PR tree-optimization/91221
17622 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
17623 restrict partial-def handling of empty constructors and
17624 memset to refs with known offset.
17625
17626 2019-07-22 Jan Beulich <jbeulich@suse.com>
17627
17628 * config/i386/sse.md (ternlogsuffix): New.
17629 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
17630 AVX512F is in use.
17631 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
17632
17633 2019-07-22 Martin Liska <mliska@suse.cz>
17634
17635 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
17636 comment.
17637 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
17638
17639 2019-07-22 Martin Liska <mliska@suse.cz>
17640
17641 * lto-section-in.c (lto_get_section_data):
17642 Use new function get_compression.
17643 * lto-streamer-out.c (produce_lto_section): Use
17644 set_compression to encode compression algorithm.
17645 * lto-streamer.h (struct lto_section): Do not
17646 use bitfields in the format.
17647
17648 2019-07-22 Martin Liska <mliska@suse.cz>
17649
17650 PR driver/91172
17651 * opts-common.c (decode_cmdline_option): Decode
17652 argument of -Werror and check it for a wrong language.
17653 * opts-global.c (complain_wrong_lang): Remove such case.
17654
17655 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
17656
17657 * config/arc/arc.c (prepare_move_operands): Always use an
17658 intermediate register when storing a TLS symbols.
17659
17660 2019-07-22 Stafford Horne <shorne@gmail.com>
17661
17662 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
17663 force_reg.
17664
17665 2019-07-22 Stafford Horne <shorne@gmail.com>
17666
17667 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
17668 and munordered-float validations.
17669 * config/or1k/constraints.md (d): New register constraint.
17670 * config/or1k/predicates.md (fp_comparison_operator): New.
17671 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
17672 operands.
17673 (or1k_expand_compare): Normalize unordered comparisons.
17674 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
17675 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
17676 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
17677 * config/or1k/or1k.md (type): Add fpu.
17678 (fpu): New instruction reservation.
17679 (F, f, fr, fi, FI, FOP, fop): New.
17680 (<fop><F:mode>3): New ALU instruction definition.
17681 (float<fi><F:mode>2): New conversion instruction definition.
17682 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
17683 (fpcmpcc): New code iterator.
17684 (*sf_fp_insn): New instruction definition.
17685 (cstore<F:mode>4): New expand definition.
17686 (cbranch<F:mode>4): New expand definition.
17687 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
17688 munordered-float): New options.
17689 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
17690 munordered-float.
17691
17692 2019-07-22 Stafford Horne <shorne@gmail.com>
17693
17694 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
17695 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
17696 documenation to be more clear.
17697 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
17698 more clear.
17699 * config/or1k/or1k.opt (mrori): New option.
17700 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
17701 msfimm, mshftimm): Rewrite documentation to be more clear.
17702 * config/or1k/or1k.md (insn_support): Add ror and rori.
17703 (enabled): Add conditions for ror and rori.
17704 (rotrsi3): Replace condition for shftimm with ror and rori.
17705
17706 2019-07-22 Stafford Horne <shorne@gmail.com>
17707
17708 PR target/90363
17709 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
17710 (extend<mode>si2): Update predicate.
17711 * config/or1k/predicates.md (volatile_mem_operand): New.
17712 (reg_or_mem_operand): New.
17713
17714 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
17715
17716 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
17717 * config/rs6000/rs6000-call.c: ... to here.
17718
17719 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17720
17721 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
17722 memory.
17723
17724 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17725
17726 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
17727
17728 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17729
17730 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
17731
17732 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17733
17734 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
17735 (any_memory_operand): New predicate.
17736 (reg_or_mem_operand): Use it.
17737
17738 2019-07-20 Jakub Jelinek <jakub@redhat.com>
17739
17740 PR target/91204
17741 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
17742
17743 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
17744
17745 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
17746 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
17747
17748 2019-07-20 Jakub Jelinek <jakub@redhat.com>
17749
17750 * tree.def (OMP_LOOP): New tree code.
17751 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
17752 (enum omp_clause_bind_kind): New enum.
17753 (struct tree_omp_clause): Add subcode.bind_kind.
17754 * tree.h (OMP_LOOP_CHECK): Rename to ...
17755 (OMP_LOOPING_CHECK): ... this.
17756 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
17757 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
17758 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
17759 (OMP_CLAUSE_BIND_KIND): Define.
17760 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17761 bind clause entries.
17762 (walk_tree_1): Handle OMP_CLAUSE_BIND.
17763 * tree-pretty-print.c (dump_omp_clause): Likewise.
17764 (dump_generic_node): Handle OMP_LOOP.
17765 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
17766 (in_omp_construct): New variable.
17767 (is_gimple_stmt): Handle OMP_LOOP.
17768 (gimplify_scan_omp_clauses): For lastprivate don't set
17769 check_non_private if code == OMP_LOOP. For reduction clause
17770 on OMP_LOOP combined with parallel or teams propagate as shared
17771 on the combined construct. Handle OMP_CLAUSE_BIND.
17772 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
17773 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
17774 for constructs from a loop construct to gimplify_scan_omp_clauses.
17775 Don't predetermine iterator linear on OMP_SIMD from loop construct.
17776 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
17777 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
17778 to match the implicit ORT_TARGET construct around whole body.
17779 Temporarily clear in_omp_construct when processing body.
17780 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
17781 etc. temporarily set in_omp_construct when processing body.
17782 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
17783 * omp-low.c (struct omp_context): Add loop_p.
17784 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
17785 in that the original var might be private.
17786 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
17787 (check_omp_nesting_restrictions): Adjust nesting restrictions for
17788 addition of loop construct.
17789 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
17790
17791 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
17792 lastprivate non-addressable iterator of a collapse(1) simd.
17793
17794 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
17795
17796 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
17797 as in rs6000.c.
17798
17799 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
17800
17801 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
17802 refer to default conditions. Warn for the 'y' spec which is ignored
17803 by current linkers.
17804
17805 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
17806
17807 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
17808 cpu_supports_info, builtin_hash_struct, builtin_hasher,
17809 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
17810 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
17811 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
17812 init_cumulative_args, rs6000_promote_function_mode,
17813 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
17814 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
17815 rs6000_function_arg_boundary, rs6000_parm_offset,
17816 rs6000_parm_start, rs6000_arg_size,
17817 rs6000_darwin64_record_arg_advance_flush,
17818 rs6000_darwin64_record_arg_advance_recurse,
17819 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
17820 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
17821 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
17822 rs6000_mixed_function_arg, rs6000_psave_function_arg,
17823 rs6000_finish_function_arg, rs6000_function_arg,
17824 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
17825 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
17826 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
17827 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
17828 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
17829 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
17830 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
17831 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
17832 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
17833 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
17834 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
17835 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
17836 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
17837 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
17838 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
17839 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
17840 get_element_number, altivec_expand_vec_set_builtin,
17841 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
17842 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
17843 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
17844 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
17845 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
17846 rs6000_expand_builtin, rs6000_vector_type,
17847 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
17848 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
17849 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
17850 to rs6000-call.c.
17851 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
17852 cpu_supports_info, builtin_hash_struct, builtin_hasher,
17853 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
17854 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
17855 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
17856 init_cumulative_args, rs6000_promote_function_mode,
17857 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
17858 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
17859 rs6000_function_arg_boundary, rs6000_parm_offset,
17860 rs6000_parm_start, rs6000_arg_size,
17861 rs6000_darwin64_record_arg_advance_flush,
17862 rs6000_darwin64_record_arg_advance_recurse,
17863 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
17864 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
17865 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
17866 rs6000_mixed_function_arg, rs6000_psave_function_arg,
17867 rs6000_finish_function_arg, rs6000_function_arg,
17868 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
17869 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
17870 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
17871 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
17872 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
17873 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
17874 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
17875 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
17876 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
17877 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
17878 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
17879 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
17880 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
17881 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
17882 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
17883 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
17884 get_element_number, altivec_expand_vec_set_builtin,
17885 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
17886 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
17887 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
17888 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
17889 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
17890 rs6000_expand_builtin, rs6000_vector_type,
17891 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
17892 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
17893 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
17894 to here from rs6000.c.
17895 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
17896 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
17897 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
17898 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
17899 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
17900 rs6000_return_in_memory, rs6000_return_in_msb,
17901 rs6000_pass_by_reference, setup_incoming_varargs,
17902 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
17903 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
17904 rs6000_function_arg_padding, rs6000_function_arg,
17905 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
17906 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
17907 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
17908 rs6000_passes_long_double, rs6000_passes_vector,
17909 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
17910 altivec_builtin_mask_for_load) Add declarations.
17911 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
17912 * config/config.gcc: Add new source file rs6000-call.c to garbage
17913 collector and extra_objs.
17914
17915 2019-07-19 Jeff Law <law@redhat.com>
17916
17917 PR tree-optimization/86061
17918 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
17919 strncpy. Drop some trivial dead code.
17920 (maybe_trim_memstar_call): Handle strncpy.
17921
17922 2019-07-19 Richard Biener <rguenther@suse.de>
17923
17924 PR tree-optimization/91211
17925 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
17926 memset encoding size.
17927
17928 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
17929
17930 PR target/91204
17931 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
17932
17933 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
17934
17935 PR ipa/91194
17936 * ipa-inline.c (recursive_inlining): Fix limits check.
17937
17938 2019-07-19 Richard Biener <rguenther@suse.de>
17939
17940 PR tree-optimization/91200
17941 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
17942 no PHI nodes in middle-bb.
17943
17944 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
17945
17946 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
17947 to +sve-bitperm.
17948 * config/aarch64/aarch64-option-extensions.def: Likewise.
17949
17950 2019-07-19 Jakub Jelinek <jakub@redhat.com>
17951
17952 PR middle-end/91190
17953 * function.c (insert_temp_slot_address): Store into the hash table
17954 a copy of address to avoid RTL sharing issues.
17955
17956 2019-07-19 Richard Biener <rguenther@suse.de>
17957
17958 PR tree-optimization/91207
17959 Revert
17960 2019-07-17 Richard Biener <rguenther@suse.de>
17961
17962 PR tree-optimization/91178
17963 * tree-vect-stmts.c (get_group_load_store_type): For SLP
17964 loads with a gap larger than the vector size always use
17965 VMAT_STRIDED_SLP.
17966 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
17967 avoid loading vectors that are only contained in the gap
17968 and thus are not needed.
17969
17970 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
17971
17972 * config/i386/i386.md (*addqi_2_slp): Remove.
17973 (*<code>qi_2_slp): Ditto.
17974
17975 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
17976
17977 * config/rs6000/predicates.md (prefixed_mem_operand): Call
17978 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
17979 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
17980 Rename function from rs6000_prefixed_address.
17981 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17982 TARGET_HAS_TOC.
17983 (TARGET_TOC): Likewise.
17984 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
17985 rs6000.h.
17986 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17987 TARGET_HAS_TOC.
17988 (TARGET_TOC): Likewise.
17989 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
17990 rs6000.h.
17991 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17992 TARGET_HAS_TOC.
17993 (TARGET_TOC): Likewise.
17994 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
17995 check to require -mcmodel=medium for pc-relative addressing.
17996 (create_TOC_reference): Add assertion for TARGET_TOC.
17997 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
17998 TARGET_NO_TOC.
17999 (rs6000_emit_move): Likewise.
18000 (TOC_alias_set): Rename TOC alias set static variable from 'set'
18001 to 'TOC_alias_set'.
18002 (get_TOC_alias_set): Likewise.
18003 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
18004 TARGET_NO_TOC.
18005 (rs6000_can_eliminate): Likewise.
18006 (rs6000_prefixed_address_mode_p): Rename function from
18007 rs6000_prefixed_address.
18008 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
18009 TARGET_HAS_TOC and not pc-relative.
18010 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
18011 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18012 TARGET_HAS_TOC.
18013 (TARGET_TOC): Likewise.
18014 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18015 rs6000.h.
18016
18017 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18018
18019 PR target/91188
18020 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
18021 for operand 0. Do not use (match_dup) to match operand 1 with
18022 operand 0. Add check in insn constraint that either input operand
18023 matches operand 0. Use SWI12 mode iterator to also handle
18024 HImode operands.
18025 (*and<mode>_1_slp): Ditto.
18026 (*<code>qi_1_slp): Ditto.
18027 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
18028 Do not use (match_dup) to match operand 1 with operand 0. Add
18029 check in insn constraint that operand 1 matches operand 0.
18030 Use SWI12 mode iterator to also handle HImode operands.
18031 (*ashl<mode>3_1_slp): Ditto.
18032 (*<shift_insn><mode>3_1_slp): Ditto.
18033 (*<rotate_insn><mode>3_1_slp): Ditto.
18034
18035 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18036
18037 * config/arm/arm-builtins.c
18038 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
18039 (arm_expand_unop_builtin): Likewise.
18040 * config/arm/crypto.md
18041 (crypto_sha1h): Convert from define_insn to define_expand.
18042 (crypto_<crypto_pattern>): Likewise.
18043 (crypto_sha1h_lb): New define_insn.
18044 (crypto_<crypto_pattern>_lb): Likewise.
18045
18046 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18047
18048 PR target/90317
18049 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
18050 (vsha1cq_u32): Likewise.
18051 (vsha1pq_u32): Likewise.
18052 (vsha1mq_u32): Likewise.
18053 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
18054 vec select.
18055 (crypto_sha1c): Correct vec select.
18056 (crypto_sha1m): Likewise.
18057 (crypto_sha1p): Likewise.
18058
18059 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
18060
18061 * config/arm/predicates.md (arm_borrow_operation): New predicate.
18062 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
18063 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
18064 (subdi_zesidi_zesidi): Likewise.
18065 (negdi2_compare, negdi2_insn): Likewise.
18066 (negdi_extensidi): Likewise.
18067 (negdi_zero_extendsidi): Likewise.
18068 (arm_cmpdi_insn): Likewise.
18069 (subsi3_carryin): Use arm_borrow_operation.
18070 (subsi3_carryin_const): Likewise.
18071 (subsi3_carryin_const0): Likewise.
18072 (subsi3_carryin_compare): Likewise.
18073 (subsi3_carryin_compare_const): Likewise.
18074 (subsi3_carryin_compare_const0): Likewise.
18075 (subsi3_carryin_shift): Likewise.
18076 (rsbsi3_carryin_shift): Likewise.
18077 (negsi2_carryin_compare): Likewise.
18078
18079 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
18080
18081 PR tree-optimization/91137
18082 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
18083 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
18084 Init, use and fini the above new field.
18085 (determine_base_object_1): New function.
18086 (determine_base_object): Reimplement using walk_tree.
18087
18088 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
18089
18090 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
18091 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
18092 CLEANUP_FORCE_FAST_DCE is set.
18093 * ifcvt.c (rest_of_handle_if_conversion): Pass
18094 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
18095 if-conversion succeeded.
18096
18097 2019-07-18 Richard Biener <rguenther@suse.de>
18098
18099 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
18100 branches to make code less indented.
18101
18102 2019-07-17 Alexandre Oliva <oliva@adacore.com>
18103
18104 PR middle-end/81824
18105 * attribs.c (decls_mismatched_attributes): Simplify the logic
18106 that avoids duplicates and false positives.
18107
18108 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
18109
18110 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
18111 data into data section when generating PIC code.
18112 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
18113 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
18114 generating code for SOM targets earlier than HP-UX 11. Otherwise,
18115 return 2 for SOM and 0 for other targets.
18116
18117 2019-07-17 Jeff Law <law@redhat.com>
18118
18119 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
18120 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
18121 avoid unexpected switch statement fallthru.
18122
18123 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
18124
18125 * config/i386/i386.md (*add<dwi>3_doubleword):
18126 Remove redundant constraints.
18127 (*add<mode>_1): Ditto.
18128 (*addhi_1): Ditto.
18129 (*addqi_1): Ditto.
18130 (*addqi_1_slp): Ditto.
18131 (*add<mode>_2): Ditto.
18132 (*addv<mode>4): Ditto.
18133 (*sub<dwi>3_doubleword): Ditto.
18134 (*sub<mode>_1): Ditto.
18135 (*subqi_1_slp): Ditto.
18136 (*sub<mode>_2): Ditto.
18137 (*subv<mode>4): Ditto.
18138 (*sub<mode>_3): Ditto.
18139 (@add<mode>3_carry): Ditto.
18140 (@sub<mode>3_carry): Ditto.
18141 (*add<mode>3_cc_overflow_1): Ditto.
18142 (*add<mode>3_zext_cc_overflow_2): Ditto.
18143 (*anddi_1): Ditto.
18144 (*and<mode>_1): Ditto.
18145 (*andqi_1): Ditto.
18146 (*andqi_1_slp): Ditto.
18147 (*anddi_2): Ditto.
18148 (*andqi_2_maybe_si): Ditto.
18149 (*and<mode>_2): Ditto.
18150 (*andqi_2_slp): Ditto.
18151 (*<code><mode>_1): Ditto.
18152 (*<code>qi_1): Ditto.
18153 (*<code>qi_1_slp): Ditto.
18154 (*<code><mode>_2): Ditto.
18155 (*<code>qi_2_slp): Ditto.
18156
18157 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
18158
18159 * alias.c (record_component_aliases): Do not simplify pointed-to
18160 types of ODR types.
18161
18162 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
18163
18164 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
18165 partial reg stall on alternative 2.
18166
18167 2019-07-17 Richard Biener <rguenther@suse.de>
18168
18169 PR tree-optimization/91178
18170 * tree-ssa.c (release_defs_bitset): Iterate from higher to
18171 lower SSA names to avoid quadratic behavior in the common case.
18172 * tree-data-ref.c (split_constant_offset): Add limit argument
18173 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
18174 (split_constant_offset_1): Add limit argument and use it to
18175 limit SSA def walking. Optimize the common plus/minus case.
18176
18177 2019-07-17 Richard Biener <rguenther@suse.de>
18178
18179 PR tree-optimization/91178
18180 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18181 loads with a gap larger than the vector size always use
18182 VMAT_STRIDED_SLP.
18183 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18184 avoid loading vectors that are only contained in the gap
18185 and thus are not needed.
18186
18187 2019-07-17 Richard Biener <rguenther@suse.de>
18188
18189 PR tree-optimization/91180
18190 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
18191 computation for memset partial defs.
18192
18193 2019-07-17 Jakub Jelinek <jakub@redhat.com>
18194
18195 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
18196 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
18197 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
18198 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
18199 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
18200 * omp-grid.c (grid_process_grid_body,
18201 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
18202 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
18203 == GF_OMP_FOR_KIND_SIMD.
18204 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
18205 check_omp_nesting_restrictions, scan_omp_1_stmt,
18206 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
18207 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
18208 omp_find_scan): Likewise.
18209 * omp-expand.c (expand_omp_for): Likewise.
18210 * omp-general.c (omp_extract_for_data): Likewise.
18211
18212 PR tree-optimization/91157
18213 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
18214 a vector boolean with scalar mode.
18215 (expand_vector_condition): Handle first operand being a vector boolean
18216 with scalar mode.
18217 (expand_vector_operations_1): For comparisons, don't bail out early
18218 if the return type is vector boolean with scalar mode, but comparison
18219 operand type is not.
18220
18221 2019-07-17 Richard Biener <rguenther@suse.de>
18222
18223 PR tree-optimization/91181
18224 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
18225 IFN_LOADs as calls.
18226
18227 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
18228
18229 * config/i386/i386.md (*testdi_1): Match CCZmode for
18230 constants that might have the SImode sign bit set.
18231 (*testqi_1_maybe_si): Remove "!" constraint modifier.
18232 Use correct constraints for pentium pairing.
18233 (*test<mode>_1): Ditto.
18234
18235 2019-07-16 Jeff Law <law@redhat.com>
18236
18237 PR rtl-optimization/91173
18238 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
18239 SSA_NAME with a constant value, fold its value into the offset
18240 and clear the base before calling gen_addr_rtx.
18241
18242 2019-07-16 Jakub Jelinek <jakub@redhat.com>
18243
18244 PR rtl-optimization/91164
18245 * dse.c (rest_of_handle_dse): If dead edges have been purged,
18246 invalidate dominance info.
18247
18248 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18249
18250 * read-md.h (md_reader::record_potential_iterator_use): Add a
18251 file_location parameter.
18252 * read-rtl.c (attribute_use::loc): New field.
18253 (map_attr_string): Take a file_location parameter. Report cases
18254 in which attributes map to multiple distinct values.
18255 (apply_attribute_uses): Update call accordingly.
18256 (md_reader::handle_overloaded_name): Likewise.
18257 (md_reader::apply_iterator_to_string): Likewise. Skip empty
18258 nonnull strings.
18259 (record_attribute_use): Take a file_location parameter.
18260 Initialize attribute_use::loc.
18261 (md_reader::record_potential_iterator_use): Take a file_location
18262 parameter. Update call to record_attribute_use.
18263 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
18264 (rtx_reader::read_rtx_code): Likewise.
18265 (rtx_reader::read_rtx_operand): Likewise. Record a location
18266 for implicitly-expanded empty strings.
18267
18268 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18269
18270 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
18271 Use file_location instead of separate fields.
18272 (md_reader::set_md_ptr_loc): Take a file_location instead of a
18273 separate filename and line number.
18274 * read-md.c (ptr_loc): As above.
18275 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
18276 (md_reader::fprint_md_ptr_loc): Likewise.
18277 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
18278 instead of a separate filename and line number.
18279 (md_reader::read_string): Update call accordingly.
18280
18281 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18282
18283 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
18284 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
18285 leaving the choice between SFDF and P implicit.
18286 (*mov<mode>_update2): Likewise.
18287 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
18288 rather than leaving the choice betweem IBM128 and GPR implicit.
18289 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
18290 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
18291 QHSI implicit.
18292 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
18293 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
18294 * config/rs6000/vsx.md
18295 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
18296 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
18297 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
18298 and VSX_EXTRACT_I implicit.
18299
18300 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18301
18302 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
18303 Explicitly use <MOVEP1:MODE> for the mode attribute.
18304
18305 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
18306
18307 PR bootstrap/91176
18308 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
18309
18310 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
18311
18312 PR target/91050
18313 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
18314 .machine directive.
18315
18316 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
18317
18318 * config/i386/i386.md (@test<mode>_ccno_1):
18319 Rename from test<mode>_ccno_1.
18320 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
18321 (*testqi_1_maybe_si): Remove modrm attribute.
18322 (*test<mode>_1): Ditto.
18323 * config/i386/i386-expand.c (ix86_split_idivmod): Use
18324 gen_test_ccno_1 and gen_extend_insn.
18325
18326 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
18327
18328 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
18329 to 0.
18330
18331 2019-07-15 Richard Biener <rguenther@suse.de>
18332
18333 PR middle-end/91162
18334 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
18335 node make sure to replace all uses with something valid.
18336
18337 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
18338
18339 PR tree-optimization/88497
18340 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
18341 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
18342 function undistribute_bitref_for_vector.
18343 (undistribute_bitref_for_vector): New function.
18344 (cleanup_vinfo_map): Likewise.
18345 (sort_by_mach_mode): Likewise.
18346
18347 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
18348
18349 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
18350 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
18351 and testdi_ccno_1 using SWI48 mode attribute.
18352 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
18353 x86_64_szext_general_operand.
18354 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
18355 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
18356 instead of genera_operand mode attribute.
18357
18358 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
18359
18360 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
18361 fopen and fclose to their respective types.
18362 (DotFn.invoke): Ditto.
18363
18364 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
18365
18366 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
18367 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
18368 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
18369 (array_index_predicate): Remove.
18370 (analyze_function_body): Account cost for variable ofsetted array
18371 indexing.
18372 (estimate_node_size_and_time): Do not compute array index hint.
18373 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
18374 (inline_read_section): Do not read array index hint.
18375 (ipa_fn_summary_write): Do not write array index hint.
18376 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
18377 * ipa-cp.c (hint_time_bonus): Remove.
18378 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
18379 (ipa_fnsummary): Remove array_index.
18380 * ipa-inline.c (want_inline_small_function_p): Do not use
18381 array_index.
18382 (edge_badness): Likewise.
18383 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
18384
18385 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
18386
18387 PR target/91148
18388 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
18389 superfluous "builtin function" phrasing.
18390
18391 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
18392
18393 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
18394 Break out from ...
18395 (aliasing_component_refs_walk): Break out from ...
18396 (aliasing_component_refs_p): ... here.
18397
18398 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
18399
18400 PR target/91148
18401 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
18402 "builtin function" phrasing.
18403
18404 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18405
18406 PR target/90723
18407 * recog.h (temporary_volatile_ok): New class.
18408 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
18409 volatile_ok temporarily to true using temporary_volatile_ok.
18410 * expr.c (emit_block_move_via_cpymem): Likewise.
18411 * optabs.c (maybe_legitimize_operand): Likewise.
18412
18413 2019-07-13 Jakub Jelinek <jakub@redhat.com>
18414
18415 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
18416 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
18417 uses inside of order(concurrent) constructs.
18418 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
18419 OMP_CLAUSE_ORDER is seen.
18420 * omp-low.c (struct omp_context): Add order_concurrent member.
18421 (scan_sharing_clauses): Set ctx->order_concurrent if
18422 OMP_CLAUSE_ORDER is seen.
18423 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
18424 of simd order(concurrent). Diagnose constructs not allowed inside of
18425 for order(concurrent).
18426 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
18427 complaining about static double setjmp (double); or class static
18428 methods or non-global namespace setjmps.
18429 (omp_runtime_api_call): New function.
18430 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
18431 order(concurrent) loops.
18432
18433 2019-07-12 Martin Sebor <msebor@redhat.com>
18434
18435 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
18436 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
18437 * tree-vrp.c (vrp_prop::check_mem_ref): Use
18438 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
18439
18440 2019-07-12 Jan Hubicka <jh@suse.cz>
18441
18442 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
18443 (indirect_refs_may_alias_p): ... here.
18444 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
18445 mem refs in the access paths.
18446
18447 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
18448
18449 PR tree-optimization/89430
18450 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
18451 store elimination for local variable without address escape.
18452
18453 2019-07-12 Jeff Law <law@redhat.com>
18454
18455 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
18456 for the ".far" section.
18457
18458 2019-07-12 Richard Biener <rguenther@suse.de>
18459
18460 PR tree-optimization/91145
18461 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
18462 chain check.
18463
18464 2019-07-12 Alexandre Oliva <oliva@adacore.com>
18465
18466 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
18467 rather than this_state as the lowering context for the ELSE
18468 seq in a GIMPLE_EH_ELSE.
18469
18470 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
18471
18472 * vector-builder.h (vector_builder::elt): Allow already-supplied
18473 elements to be read back before building is complete.
18474
18475 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
18476
18477 PR rtl-optimization/91136
18478 * df-core.c (ACCESSING REFS): Fix typos in comment.
18479 * resource.c (mark_target_live_reg): Add artificial defs that occur at
18480 the beginning of the block to the initial set of live registers.
18481
18482 2019-07-12 Richard Biener <rguenther@suse.de>
18483
18484 * fold-const.h (get_array_ctor_element_at_index): Adjust.
18485 * fold-const.c (get_array_ctor_element_at_index): Add
18486 ctor_idx output parameter informing the caller where in
18487 the constructor the element was (not) found. Add early exit
18488 for when the ctor is sorted.
18489 * gimple-fold.c (fold_array_ctor_reference): Support constant
18490 folding across multiple array elements.
18491
18492 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
18493
18494 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
18495 doesn't have location, set the current location to the function's end.
18496
18497 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
18498
18499 * config/aarch64/aarch64.md (*compare_condjump<mode>)
18500 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
18501 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
18502 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
18503 * config/aarch64/aarch64-simd.md
18504 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
18505 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
18506 * config/aarch64/aarch64-sve.md
18507 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
18508 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
18509
18510 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
18511
18512 * doc/md.texi: Document that @ patterns can have different
18513 numbers of operands.
18514 * genemit.c (handle_overloaded_gen): Handle this case.
18515 * genopinit.c (handle_overloaded_gen): Likewise.
18516 * gensupport.c (replace_operands_with_dups): Iterate over
18517 the new rtx's format rather than the old one's.
18518
18519 2019-07-12 Jakub Jelinek <jakub@redhat.com>
18520
18521 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
18522 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18523 order clause entries.
18524 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
18525 * tree-pretty-print.c (dump_omp_clause): Likewise.
18526 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
18527 Likewise.
18528 * omp-low.c (scan_sharing_clauses): Likewise.
18529 * tree-nested.c (convert_nonlocal_omp_clauses,
18530 convert_local_omp_clauses): Likewise.
18531
18532 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
18533
18534 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
18535 fallthrough target of current basic block isn't the placed
18536 right next.
18537
18538 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
18539
18540 PR target/90980
18541 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
18542 (_mm512_storeu_epi64): Likewise.
18543 (_mm512_loadu_epi32): Likewise.
18544 (_mm512_storeu_epi32): Likewise.
18545 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
18546 (_mm_storeu_epi64): Likewise.
18547 (_mm256_storeu_epi32): Likewise.
18548 (_mm_storeu_epi32): Likewise.
18549
18550 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
18551
18552 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
18553
18554 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
18555
18556 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
18557 Handle Modula-2.
18558
18559 2019-07-11 Jakub Jelinek <jakub@redhat.com>
18560
18561 PR target/91124
18562 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
18563 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
18564 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
18565 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
18566 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
18567 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
18568 define_insns.
18569 (ufix_truncv2dfv2si2<mask_name>): Change into ...
18570 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
18571 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
18572 define_insns.
18573 (sse2_cvttpd2dq<mask_name>): Change into ...
18574 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
18575 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
18576 (*sse2_cvtpd2dq<mask_name>): Change into ...
18577 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
18578 Add "C" constraint to const0_operand.
18579 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
18580 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
18581 changes.
18582
18583 PR target/91124
18584 * config/i386/i386-builtin-types.def
18585 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
18586 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
18587 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
18588 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
18589 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
18590 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
18591 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
18592 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
18593 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
18594 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
18595 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
18596 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
18597 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
18598 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
18599 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
18600 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
18601 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
18602 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
18603 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
18604 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
18605 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
18606 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
18607 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
18608 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
18609 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
18610 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
18611 __builtin_ia32_vpdpbusd_v4si_maskz,
18612 __builtin_ia32_vpdpbusds_v16si_mask,
18613 __builtin_ia32_vpdpbusds_v16si_maskz,
18614 __builtin_ia32_vpdpbusds_v8si_mask,
18615 __builtin_ia32_vpdpbusds_v8si_maskz,
18616 __builtin_ia32_vpdpbusds_v4si_mask,
18617 __builtin_ia32_vpdpbusds_v4si_maskz,
18618 __builtin_ia32_vpdpwssd_v16si_mask,
18619 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
18620 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
18621 __builtin_ia32_vpdpwssd_v4si_maskz,
18622 __builtin_ia32_vpdpwssds_v16si_mask,
18623 __builtin_ia32_vpdpwssds_v16si_maskz,
18624 __builtin_ia32_vpdpwssds_v8si_mask,
18625 __builtin_ia32_vpdpwssds_v8si_maskz,
18626 __builtin_ia32_vpdpwssds_v4si_mask,
18627 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
18628 suffixed types rather than *_INT.
18629 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
18630 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
18631 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
18632 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
18633 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
18634 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
18635
18636 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
18637
18638 * tree-vrp.c (intersect_ranges): If we know the intersection is
18639 empty, there is no need to conservatively add anything else to
18640 the set.
18641
18642 2019-07-11 Richard Biener <rguenther@suse.de>
18643
18644 PR middle-end/91131
18645 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
18646 when the object is volatile and we have not cleared it even though
18647 there are no nonzero elements.
18648
18649 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
18650
18651 * config/rs6000/predicates.md (cint34_operand): Update
18652 SIGNED_34BIT_OFFSET_P call.
18653 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
18654 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
18655 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
18656 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
18657 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
18658 argument.
18659 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
18660 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
18661 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
18662 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
18663 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
18664
18665 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
18666
18667 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
18668 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
18669 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
18670 (DEF_MIN_OSX_VERSION): New.
18671
18672 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
18673
18674 * fold-const.c (fold_relational_const): Fix folding of
18675 vector-to-scalar NE_EXPRs.
18676 (test_vector_folding): Add more tests.
18677
18678 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
18679
18680 PR target/91060
18681 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
18682 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
18683 (vec_setv2di_internal): Reexpress as...
18684 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
18685 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
18686 rather than gen_neon_vset_lane<mode>.
18687
18688 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
18689
18690 PR target/91102
18691 * lra-constraints.c (process_alt_operands): Don't match user
18692 defined regs only if they are early clobbers.
18693
18694 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
18695
18696 * wide-int.h (wi::lshift): Reject negative values for the fast path.
18697
18698 2019-07-10 Richard Biener <rguenther@suse.de>
18699
18700 PR tree-optimization/91126
18701 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
18702 native encoding offset for BYTES_BIG_ENDIAN.
18703 (vn_reference_lookup_3): Likewise.
18704
18705 2019-07-10 Richard Biener <rguenther@suse.de>
18706
18707 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
18708 LHS whenever possible.
18709
18710 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
18711
18712 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
18713 from ...; work also on duplicated types.
18714 (nonoverlapping_component_refs_since_match): ... here
18715 (ncr_type_uid): Break out from ...
18716 (ncr_compar): ... here; look for TYPE_UID of canonical type if
18717 available.
18718 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
18719 the types and nonoverlapping_component_refs_p_1 to disambiguate.
18720
18721 2019-07-09 Martin Sebor <msebor@redhat.com>
18722
18723 PR tree-optimization/90989
18724 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
18725 optimization to just single character stores.
18726
18727 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
18728
18729 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
18730 Swap operands only once.
18731
18732 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18733
18734 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
18735 for both call instructions.
18736
18737 2019-07-09 John Darrington <john@darrington.wattle.id.au>
18738
18739 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
18740 rather than GET_MODE_BITSIZE to better handle partial integer modes.
18741
18742 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
18743
18744 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
18745 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
18746 function from rs6000-logue.c back to rs6000.c.
18747 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
18748
18749 2019-07-09 Martin Sebor <msebor@redhat.com>
18750
18751 PR c++/61339
18752 * auto-profile.c: Change class-key of PODs to struct and others
18753 to class.
18754 * basic-block.h: Same.
18755 * bitmap.c (bitmap_alloc): Same.
18756 * bitmap.h: Same.
18757 * builtins.c (expand_builtin_prefetch): Same.
18758 (expand_builtin_interclass_mathfn): Same.
18759 (expand_builtin_strlen): Same.
18760 (expand_builtin_mempcpy_args): Same.
18761 (expand_cmpstr): Same.
18762 (expand_builtin___clear_cache): Same.
18763 (expand_ifn_atomic_bit_test_and): Same.
18764 (expand_builtin_thread_pointer): Same.
18765 (expand_builtin_set_thread_pointer): Same.
18766 * caller-save.c (setup_save_areas): Same.
18767 (replace_reg_with_saved_mem): Same.
18768 (insert_restore): Same.
18769 (insert_save): Same.
18770 (add_used_regs): Same.
18771 * cfg.c (get_bb_copy): Same.
18772 (set_loop_copy): Same.
18773 * cfg.h: Same.
18774 * cfganal.h: Same.
18775 * cfgexpand.c (alloc_stack_frame_space): Same.
18776 (add_stack_var): Same.
18777 (add_stack_var_conflict): Same.
18778 (add_scope_conflicts_1): Same.
18779 (update_alias_info_with_stack_vars): Same.
18780 (expand_used_vars): Same.
18781 * cfghooks.c (redirect_edge_and_branch_force): Same.
18782 (delete_basic_block): Same.
18783 (split_edge): Same.
18784 (make_forwarder_block): Same.
18785 (force_nonfallthru): Same.
18786 (duplicate_block): Same.
18787 (lv_flush_pending_stmts): Same.
18788 * cfghooks.h: Same.
18789 * cfgloop.c (flow_loops_cfg_dump): Same.
18790 (flow_loop_nested_p): Same.
18791 (superloop_at_depth): Same.
18792 (get_loop_latch_edges): Same.
18793 (flow_loop_dump): Same.
18794 (flow_loops_dump): Same.
18795 (flow_loops_free): Same.
18796 (flow_loop_nodes_find): Same.
18797 (establish_preds): Same.
18798 (flow_loop_tree_node_add): Same.
18799 (flow_loop_tree_node_remove): Same.
18800 (flow_loops_find): Same.
18801 (find_subloop_latch_edge_by_profile): Same.
18802 (find_subloop_latch_edge_by_ivs): Same.
18803 (mfb_redirect_edges_in_set): Same.
18804 (form_subloop): Same.
18805 (merge_latch_edges): Same.
18806 (disambiguate_multiple_latches): Same.
18807 (disambiguate_loops_with_multiple_latches): Same.
18808 (flow_bb_inside_loop_p): Same.
18809 (glb_enum_p): Same.
18810 (get_loop_body_with_size): Same.
18811 (get_loop_body): Same.
18812 (fill_sons_in_loop): Same.
18813 (get_loop_body_in_dom_order): Same.
18814 (get_loop_body_in_custom_order): Same.
18815 (release_recorded_exits): Same.
18816 (get_loop_exit_edges): Same.
18817 (num_loop_branches): Same.
18818 (remove_bb_from_loops): Same.
18819 (find_common_loop): Same.
18820 (delete_loop): Same.
18821 (cancel_loop): Same.
18822 (verify_loop_structure): Same.
18823 (loop_preheader_edge): Same.
18824 (loop_exit_edge_p): Same.
18825 (single_exit): Same.
18826 (loop_exits_to_bb_p): Same.
18827 (loop_exits_from_bb_p): Same.
18828 (get_loop_location): Same.
18829 (record_niter_bound): Same.
18830 (get_estimated_loop_iterations_int): Same.
18831 (max_stmt_executions_int): Same.
18832 (likely_max_stmt_executions_int): Same.
18833 (get_estimated_loop_iterations): Same.
18834 (get_max_loop_iterations): Same.
18835 (get_max_loop_iterations_int): Same.
18836 (get_likely_max_loop_iterations): Same.
18837 * cfgloop.h (simple_loop_desc): Same.
18838 (get_loop): Same.
18839 (loop_depth): Same.
18840 (loop_outer): Same.
18841 (loop_iterator::next): Same.
18842 (loop_outermost): Same.
18843 * cfgloopanal.c (mark_irreducible_loops): Same.
18844 (num_loop_insns): Same.
18845 (average_num_loop_insns): Same.
18846 (expected_loop_iterations_unbounded): Same.
18847 (expected_loop_iterations): Same.
18848 (mark_loop_exit_edges): Same.
18849 (single_likely_exit): Same.
18850 * cfgloopmanip.c (fix_bb_placement): Same.
18851 (fix_bb_placements): Same.
18852 (remove_path): Same.
18853 (place_new_loop): Same.
18854 (add_loop): Same.
18855 (scale_loop_frequencies): Same.
18856 (scale_loop_profile): Same.
18857 (create_empty_if_region_on_edge): Same.
18858 (create_empty_loop_on_edge): Same.
18859 (loopify): Same.
18860 (unloop): Same.
18861 (fix_loop_placements): Same.
18862 (copy_loop_info): Same.
18863 (duplicate_loop): Same.
18864 (duplicate_subloops): Same.
18865 (loop_redirect_edge): Same.
18866 (can_duplicate_loop_p): Same.
18867 (duplicate_loop_to_header_edge): Same.
18868 (mfb_keep_just): Same.
18869 (has_preds_from_loop): Same.
18870 (create_preheader): Same.
18871 (create_preheaders): Same.
18872 (lv_adjust_loop_entry_edge): Same.
18873 (loop_version): Same.
18874 * cfgloopmanip.h: Same.
18875 * cgraph.h: Same.
18876 * cgraphbuild.c: Same.
18877 * combine.c (make_extraction): Same.
18878 * config/i386/i386-features.c: Same.
18879 * config/i386/i386-features.h: Same.
18880 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
18881 (ix86_emit_outlined_ms2sysv_restore): Same.
18882 (ix86_noce_conversion_profitable_p): Same.
18883 (ix86_init_cost): Same.
18884 (ix86_simd_clone_usable): Same.
18885 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
18886 Wstruct-not-pod.
18887 * coretypes.h: Same.
18888 * data-streamer-in.c (string_for_index): Change class-key of PODs
18889 to struct and others to class.
18890 (streamer_read_indexed_string): Same.
18891 (streamer_read_string): Same.
18892 (bp_unpack_indexed_string): Same.
18893 (bp_unpack_string): Same.
18894 (streamer_read_uhwi): Same.
18895 (streamer_read_hwi): Same.
18896 (streamer_read_gcov_count): Same.
18897 (streamer_read_wide_int): Same.
18898 * data-streamer.h (streamer_write_bitpack): Same.
18899 (bp_unpack_value): Same.
18900 (streamer_write_char_stream): Same.
18901 (streamer_write_hwi_in_range): Same.
18902 (streamer_write_record_start): Same.
18903 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
18904 (add_cross_iteration_register_deps): Same.
18905 (build_intra_loop_deps): Same.
18906 * df-core.c (df_analyze): Same.
18907 (loop_post_order_compute): Same.
18908 (loop_inverted_post_order_compute): Same.
18909 * df-problems.c (df_rd_alloc): Same.
18910 (df_rd_simulate_one_insn): Same.
18911 (df_rd_local_compute): Same.
18912 (df_rd_init_solution): Same.
18913 (df_rd_confluence_n): Same.
18914 (df_rd_transfer_function): Same.
18915 (df_rd_free): Same.
18916 (df_rd_dump_defs_set): Same.
18917 (df_rd_top_dump): Same.
18918 (df_lr_alloc): Same.
18919 (df_lr_reset): Same.
18920 (df_lr_local_compute): Same.
18921 (df_lr_init): Same.
18922 (df_lr_confluence_n): Same.
18923 (df_lr_free): Same.
18924 (df_lr_top_dump): Same.
18925 (df_lr_verify_transfer_functions): Same.
18926 (df_live_alloc): Same.
18927 (df_live_reset): Same.
18928 (df_live_init): Same.
18929 (df_live_confluence_n): Same.
18930 (df_live_finalize): Same.
18931 (df_live_free): Same.
18932 (df_live_top_dump): Same.
18933 (df_live_verify_transfer_functions): Same.
18934 (df_mir_alloc): Same.
18935 (df_mir_reset): Same.
18936 (df_mir_init): Same.
18937 (df_mir_confluence_n): Same.
18938 (df_mir_free): Same.
18939 (df_mir_top_dump): Same.
18940 (df_word_lr_alloc): Same.
18941 (df_word_lr_reset): Same.
18942 (df_word_lr_init): Same.
18943 (df_word_lr_confluence_n): Same.
18944 (df_word_lr_free): Same.
18945 (df_word_lr_top_dump): Same.
18946 (df_md_alloc): Same.
18947 (df_md_simulate_one_insn): Same.
18948 (df_md_reset): Same.
18949 (df_md_init): Same.
18950 (df_md_free): Same.
18951 (df_md_top_dump): Same.
18952 * df-scan.c (df_insn_delete): Same.
18953 (df_insn_rescan): Same.
18954 (df_notes_rescan): Same.
18955 (df_sort_and_compress_mws): Same.
18956 (df_install_mws): Same.
18957 (df_refs_add_to_chains): Same.
18958 (df_ref_create_structure): Same.
18959 (df_ref_record): Same.
18960 (df_def_record_1): Same.
18961 (df_find_hard_reg_defs): Same.
18962 (df_uses_record): Same.
18963 (df_get_conditional_uses): Same.
18964 (df_get_call_refs): Same.
18965 (df_recompute_luids): Same.
18966 (df_get_entry_block_def_set): Same.
18967 (df_entry_block_defs_collect): Same.
18968 (df_get_exit_block_use_set): Same.
18969 (df_exit_block_uses_collect): Same.
18970 (df_mws_verify): Same.
18971 (df_bb_verify): Same.
18972 * df.h (df_scan_get_bb_info): Same.
18973 * doc/tm.texi: Same.
18974 * dse.c (record_store): Same.
18975 * dumpfile.h: Same.
18976 * emit-rtl.c (const_fixed_hasher::equal): Same.
18977 (set_mem_attributes_minus_bitpos): Same.
18978 (change_address): Same.
18979 (adjust_address_1): Same.
18980 (offset_address): Same.
18981 * emit-rtl.h: Same.
18982 * except.c (dw2_build_landing_pads): Same.
18983 (sjlj_emit_dispatch_table): Same.
18984 * explow.c (allocate_dynamic_stack_space): Same.
18985 (emit_stack_probe): Same.
18986 (probe_stack_range): Same.
18987 * expmed.c (store_bit_field_using_insv): Same.
18988 (store_bit_field_1): Same.
18989 (store_integral_bit_field): Same.
18990 (extract_bit_field_using_extv): Same.
18991 (extract_bit_field_1): Same.
18992 (emit_cstore): Same.
18993 * expr.c (emit_block_move_via_cpymem): Same.
18994 (expand_cmpstrn_or_cmpmem): Same.
18995 (set_storage_via_setmem): Same.
18996 (emit_single_push_insn_1): Same.
18997 (expand_assignment): Same.
18998 (store_constructor): Same.
18999 (expand_expr_real_2): Same.
19000 (expand_expr_real_1): Same.
19001 (try_casesi): Same.
19002 * flags.h: Same.
19003 * function.c (try_fit_stack_local): Same.
19004 (assign_stack_local_1): Same.
19005 (assign_stack_local): Same.
19006 (cut_slot_from_list): Same.
19007 (insert_slot_to_list): Same.
19008 (max_slot_level): Same.
19009 (move_slot_to_level): Same.
19010 (temp_address_hasher::equal): Same.
19011 (remove_unused_temp_slot_addresses): Same.
19012 (assign_temp): Same.
19013 (combine_temp_slots): Same.
19014 (update_temp_slot_address): Same.
19015 (preserve_temp_slots): Same.
19016 * function.h: Same.
19017 * fwprop.c: Same.
19018 * gcc-rich-location.h: Same.
19019 * gcov.c: Same.
19020 * genattrtab.c (check_attr_test): Same.
19021 (check_attr_value): Same.
19022 (convert_set_attr_alternative): Same.
19023 (convert_set_attr): Same.
19024 (check_defs): Same.
19025 (copy_boolean): Same.
19026 (get_attr_value): Same.
19027 (expand_delays): Same.
19028 (make_length_attrs): Same.
19029 (min_fn): Same.
19030 (make_alternative_compare): Same.
19031 (simplify_test_exp): Same.
19032 (tests_attr_p): Same.
19033 (get_attr_order): Same.
19034 (clear_struct_flag): Same.
19035 (gen_attr): Same.
19036 (compares_alternatives_p): Same.
19037 (gen_insn): Same.
19038 (gen_delay): Same.
19039 (find_attrs_to_cache): Same.
19040 (write_test_expr): Same.
19041 (walk_attr_value): Same.
19042 (write_attr_get): Same.
19043 (eliminate_known_true): Same.
19044 (write_insn_cases): Same.
19045 (write_attr_case): Same.
19046 (write_attr_valueq): Same.
19047 (write_attr_value): Same.
19048 (write_dummy_eligible_delay): Same.
19049 (next_comma_elt): Same.
19050 (find_attr): Same.
19051 (make_internal_attr): Same.
19052 (copy_rtx_unchanging): Same.
19053 (gen_insn_reserv): Same.
19054 (check_tune_attr): Same.
19055 (make_automaton_attrs): Same.
19056 (handle_arg): Same.
19057 * genextract.c (gen_insn): Same.
19058 (VEC_char_to_string): Same.
19059 * genmatch.c (print_operand): Same.
19060 (lower): Same.
19061 (parser::parse_operation): Same.
19062 (parser::parse_capture): Same.
19063 (parser::parse_c_expr): Same.
19064 (parser::parse_simplify): Same.
19065 (main): Same.
19066 * genoutput.c (output_operand_data): Same.
19067 (output_get_insn_name): Same.
19068 (compare_operands): Same.
19069 (place_operands): Same.
19070 (process_template): Same.
19071 (validate_insn_alternatives): Same.
19072 (validate_insn_operands): Same.
19073 (gen_expand): Same.
19074 (note_constraint): Same.
19075 * genpreds.c (write_one_predicate_function): Same.
19076 (add_constraint): Same.
19077 (process_define_register_constraint): Same.
19078 (write_lookup_constraint_1): Same.
19079 (write_lookup_constraint_array): Same.
19080 (write_insn_constraint_len): Same.
19081 (write_reg_class_for_constraint_1): Same.
19082 (write_constraint_satisfied_p_array): Same.
19083 * genrecog.c (optimize_subroutine_group): Same.
19084 * gensupport.c (process_define_predicate): Same.
19085 (queue_pattern): Same.
19086 (remove_from_queue): Same.
19087 (process_rtx): Same.
19088 (is_predicable): Same.
19089 (change_subst_attribute): Same.
19090 (subst_pattern_match): Same.
19091 (alter_constraints): Same.
19092 (alter_attrs_for_insn): Same.
19093 (shift_output_template): Same.
19094 (alter_output_for_subst_insn): Same.
19095 (process_one_cond_exec): Same.
19096 (subst_dup): Same.
19097 (process_define_cond_exec): Same.
19098 (mnemonic_htab_callback): Same.
19099 (gen_mnemonic_attr): Same.
19100 (read_md_rtx): Same.
19101 * ggc-page.c: Same.
19102 * gimple-loop-interchange.cc (dump_reduction): Same.
19103 (dump_induction): Same.
19104 (loop_cand::~loop_cand): Same.
19105 (free_data_refs_with_aux): Same.
19106 (tree_loop_interchange::interchange_loops): Same.
19107 (tree_loop_interchange::map_inductions_to_loop): Same.
19108 (tree_loop_interchange::move_code_to_inner_loop): Same.
19109 (compute_access_stride): Same.
19110 (compute_access_strides): Same.
19111 (proper_loop_form_for_interchange): Same.
19112 (tree_loop_interchange_compute_ddrs): Same.
19113 (prune_datarefs_not_in_loop): Same.
19114 (prepare_data_references): Same.
19115 (pass_linterchange::execute): Same.
19116 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
19117 (unroll_jam_possible_p): Same.
19118 (fuse_loops): Same.
19119 (adjust_unroll_factor): Same.
19120 (tree_loop_unroll_and_jam): Same.
19121 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
19122 (loop_versioning::expensive_stmt_p): Same.
19123 (loop_versioning::version_for_unity): Same.
19124 (loop_versioning::dump_inner_likelihood): Same.
19125 (loop_versioning::find_per_loop_multiplication): Same.
19126 (loop_versioning::analyze_term_using_scevs): Same.
19127 (loop_versioning::record_address_fragment): Same.
19128 (loop_versioning::analyze_expr): Same.
19129 (loop_versioning::analyze_blocks): Same.
19130 (loop_versioning::prune_conditions): Same.
19131 (loop_versioning::merge_loop_info): Same.
19132 (loop_versioning::add_loop_to_queue): Same.
19133 (loop_versioning::decide_whether_loop_is_versionable): Same.
19134 (loop_versioning::make_versioning_decisions): Same.
19135 (loop_versioning::implement_versioning_decisions): Same.
19136 * gimple-ssa-evrp-analyze.c
19137 (evrp_range_analyzer::record_ranges_from_phis): Same.
19138 * gimple-ssa-store-merging.c (split_store::split_store): Same.
19139 (count_multiple_uses): Same.
19140 (split_group): Same.
19141 (imm_store_chain_info::output_merged_store): Same.
19142 (pass_store_merging::process_store): Same.
19143 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
19144 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
19145 (is_max): Same.
19146 (alloca_call_type): Same.
19147 (pass_walloca::execute): Same.
19148 * gimple-streamer-in.c (input_phi): Same.
19149 (input_gimple_stmt): Same.
19150 * gimple-streamer.h: Same.
19151 * godump.c (go_force_record_alignment): Same.
19152 (go_format_type): Same.
19153 (go_output_type): Same.
19154 (go_output_fndecl): Same.
19155 (go_output_typedef): Same.
19156 (keyword_hash_init): Same.
19157 (find_dummy_types): Same.
19158 * graph.c (draw_cfg_nodes_no_loops): Same.
19159 (draw_cfg_nodes_for_loop): Same.
19160 * hard-reg-set.h (hard_reg_set_iter_next): Same.
19161 * hsa-brig.c: Same.
19162 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
19163 * hsa-dump.c (dump_hsa_cfun): Same.
19164 * hsa-gen.c (gen_function_def_parameters): Same.
19165 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
19166 * input.c (dump_line_table_statistics): Same.
19167 (test_lexer): Same.
19168 * input.h: Same.
19169 * internal-fn.c (get_multi_vector_move): Same.
19170 (expand_load_lanes_optab_fn): Same.
19171 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
19172 (expand_GOMP_SIMT_EXIT): Same.
19173 (expand_GOMP_SIMT_LAST_LANE): Same.
19174 (expand_GOMP_SIMT_ORDERED_PRED): Same.
19175 (expand_GOMP_SIMT_VOTE_ANY): Same.
19176 (expand_GOMP_SIMT_XCHG_BFLY): Same.
19177 (expand_GOMP_SIMT_XCHG_IDX): Same.
19178 (expand_addsub_overflow): Same.
19179 (expand_neg_overflow): Same.
19180 (expand_mul_overflow): Same.
19181 (expand_call_mem_ref): Same.
19182 (expand_mask_load_optab_fn): Same.
19183 (expand_scatter_store_optab_fn): Same.
19184 (expand_gather_load_optab_fn): Same.
19185 * ipa-cp.c (ipa_get_parm_lattices): Same.
19186 (print_all_lattices): Same.
19187 (ignore_edge_p): Same.
19188 (build_toporder_info): Same.
19189 (free_toporder_info): Same.
19190 (push_node_to_stack): Same.
19191 (ipcp_lattice<valtype>::set_contains_variable): Same.
19192 (set_agg_lats_to_bottom): Same.
19193 (ipcp_bits_lattice::meet_with): Same.
19194 (set_single_call_flag): Same.
19195 (initialize_node_lattices): Same.
19196 (ipa_get_jf_ancestor_result): Same.
19197 (ipcp_verify_propagated_values): Same.
19198 (propagate_scalar_across_jump_function): Same.
19199 (propagate_context_across_jump_function): Same.
19200 (propagate_bits_across_jump_function): Same.
19201 (ipa_vr_operation_and_type_effects): Same.
19202 (propagate_vr_across_jump_function): Same.
19203 (set_check_aggs_by_ref): Same.
19204 (set_chain_of_aglats_contains_variable): Same.
19205 (merge_aggregate_lattices): Same.
19206 (agg_pass_through_permissible_p): Same.
19207 (propagate_aggs_across_jump_function): Same.
19208 (call_passes_through_thunk_p): Same.
19209 (propagate_constants_across_call): Same.
19210 (devirtualization_time_bonus): Same.
19211 (good_cloning_opportunity_p): Same.
19212 (context_independent_aggregate_values): Same.
19213 (gather_context_independent_values): Same.
19214 (perform_estimation_of_a_value): Same.
19215 (estimate_local_effects): Same.
19216 (value_topo_info<valtype>::add_val): Same.
19217 (add_all_node_vals_to_toposort): Same.
19218 (value_topo_info<valtype>::propagate_effects): Same.
19219 (ipcp_propagate_stage): Same.
19220 (ipcp_discover_new_direct_edges): Same.
19221 (same_node_or_its_all_contexts_clone_p): Same.
19222 (cgraph_edge_brings_value_p): Same.
19223 (gather_edges_for_value): Same.
19224 (create_specialized_node): Same.
19225 (find_more_scalar_values_for_callers_subset): Same.
19226 (find_more_contexts_for_caller_subset): Same.
19227 (copy_plats_to_inter): Same.
19228 (intersect_aggregates_with_edge): Same.
19229 (find_aggregate_values_for_callers_subset): Same.
19230 (cgraph_edge_brings_all_agg_vals_for_node): Same.
19231 (decide_about_value): Same.
19232 (decide_whether_version_node): Same.
19233 (spread_undeadness): Same.
19234 (identify_dead_nodes): Same.
19235 (ipcp_store_vr_results): Same.
19236 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
19237 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
19238 (redirect_to_unreachable): Same.
19239 (edge_set_predicate): Same.
19240 (evaluate_conditions_for_known_args): Same.
19241 (evaluate_properties_for_edge): Same.
19242 (ipa_fn_summary_t::duplicate): Same.
19243 (ipa_call_summary_t::duplicate): Same.
19244 (dump_ipa_call_summary): Same.
19245 (ipa_dump_fn_summary): Same.
19246 (eliminated_by_inlining_prob): Same.
19247 (set_cond_stmt_execution_predicate): Same.
19248 (set_switch_stmt_execution_predicate): Same.
19249 (compute_bb_predicates): Same.
19250 (will_be_nonconstant_expr_predicate): Same.
19251 (phi_result_unknown_predicate): Same.
19252 (analyze_function_body): Same.
19253 (compute_fn_summary): Same.
19254 (estimate_edge_devirt_benefit): Same.
19255 (estimate_edge_size_and_time): Same.
19256 (estimate_calls_size_and_time): Same.
19257 (estimate_node_size_and_time): Same.
19258 (remap_edge_change_prob): Same.
19259 (remap_edge_summaries): Same.
19260 (ipa_merge_fn_summary_after_inlining): Same.
19261 (ipa_fn_summary_generate): Same.
19262 (inline_read_section): Same.
19263 (ipa_fn_summary_read): Same.
19264 (ipa_fn_summary_write): Same.
19265 * ipa-fnsummary.h: Same.
19266 * ipa-hsa.c (ipa_hsa_read_section): Same.
19267 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
19268 * ipa-icf.c (sem_function::param_used_p): Same.
19269 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
19270 * ipa-inline.c (edge_badness): Same.
19271 (inline_small_functions): Same.
19272 * ipa-polymorphic-call.c
19273 (ipa_polymorphic_call_context::stream_out): Same.
19274 * ipa-predicate.c (predicate::remap_after_duplication): Same.
19275 (predicate::remap_after_inlining): Same.
19276 (predicate::stream_out): Same.
19277 * ipa-predicate.h: Same.
19278 * ipa-profile.c (ipa_profile_read_summary): Same.
19279 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
19280 (count_formal_params): Same.
19281 (ipa_dump_param): Same.
19282 (ipa_alloc_node_params): Same.
19283 (ipa_print_node_jump_functions_for_edge): Same.
19284 (ipa_print_node_jump_functions): Same.
19285 (ipa_load_from_parm_agg): Same.
19286 (get_ancestor_addr_info): Same.
19287 (ipa_compute_jump_functions_for_edge): Same.
19288 (ipa_analyze_virtual_call_uses): Same.
19289 (ipa_analyze_stmt_uses): Same.
19290 (ipa_analyze_params_uses_in_bb): Same.
19291 (update_jump_functions_after_inlining): Same.
19292 (try_decrement_rdesc_refcount): Same.
19293 (ipa_impossible_devirt_target): Same.
19294 (update_indirect_edges_after_inlining): Same.
19295 (combine_controlled_uses_counters): Same.
19296 (ipa_edge_args_sum_t::duplicate): Same.
19297 (ipa_write_jump_function): Same.
19298 (ipa_write_indirect_edge_info): Same.
19299 (ipa_write_node_info): Same.
19300 (ipa_read_edge_info): Same.
19301 (ipa_prop_read_section): Same.
19302 (read_replacements_section): Same.
19303 * ipa-prop.h (ipa_get_param_count): Same.
19304 (ipa_get_param): Same.
19305 (ipa_get_type): Same.
19306 (ipa_get_param_move_cost): Same.
19307 (ipa_set_param_used): Same.
19308 (ipa_get_controlled_uses): Same.
19309 (ipa_set_controlled_uses): Same.
19310 (ipa_get_cs_argument_count): Same.
19311 * ipa-pure-const.c (analyze_function): Same.
19312 (pure_const_read_summary): Same.
19313 * ipa-ref.h: Same.
19314 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
19315 * ipa-split.c (test_nonssa_use): Same.
19316 (dump_split_point): Same.
19317 (dominated_by_forbidden): Same.
19318 (split_part_set_ssa_name_p): Same.
19319 (find_split_points): Same.
19320 * ira-build.c (finish_loop_tree_nodes): Same.
19321 (low_pressure_loop_node_p): Same.
19322 * ira-color.c (ira_reuse_stack_slot): Same.
19323 * ira-int.h: Same.
19324 * ira.c (setup_reg_equiv): Same.
19325 (print_insn_chain): Same.
19326 (ira): Same.
19327 * loop-doloop.c (doloop_condition_get): Same.
19328 (add_test): Same.
19329 (record_reg_sets): Same.
19330 (doloop_optimize): Same.
19331 * loop-init.c (loop_optimizer_init): Same.
19332 (fix_loop_structure): Same.
19333 * loop-invariant.c (merge_identical_invariants): Same.
19334 (compute_always_reached): Same.
19335 (find_exits): Same.
19336 (may_assign_reg_p): Same.
19337 (find_invariants_bb): Same.
19338 (find_invariants_body): Same.
19339 (replace_uses): Same.
19340 (can_move_invariant_reg): Same.
19341 (free_inv_motion_data): Same.
19342 (move_single_loop_invariants): Same.
19343 (change_pressure): Same.
19344 (mark_ref_regs): Same.
19345 (calculate_loop_reg_pressure): Same.
19346 * loop-iv.c (biv_entry_hasher::equal): Same.
19347 (iv_extend_to_rtx_code): Same.
19348 (check_iv_ref_table_size): Same.
19349 (clear_iv_info): Same.
19350 (latch_dominating_def): Same.
19351 (iv_get_reaching_def): Same.
19352 (iv_constant): Same.
19353 (iv_subreg): Same.
19354 (iv_extend): Same.
19355 (iv_neg): Same.
19356 (iv_add): Same.
19357 (iv_mult): Same.
19358 (get_biv_step): Same.
19359 (record_iv): Same.
19360 (analyzed_for_bivness_p): Same.
19361 (record_biv): Same.
19362 (iv_analyze_biv): Same.
19363 (iv_analyze_expr): Same.
19364 (iv_analyze_def): Same.
19365 (iv_analyze_op): Same.
19366 (iv_analyze): Same.
19367 (iv_analyze_result): Same.
19368 (biv_p): Same.
19369 (eliminate_implied_conditions): Same.
19370 (simplify_using_initial_values): Same.
19371 (shorten_into_mode): Same.
19372 (canonicalize_iv_subregs): Same.
19373 (determine_max_iter): Same.
19374 (check_simple_exit): Same.
19375 (find_simple_exit): Same.
19376 (get_simple_loop_desc): Same.
19377 * loop-unroll.c (report_unroll): Same.
19378 (decide_unrolling): Same.
19379 (unroll_loops): Same.
19380 (loop_exit_at_end_p): Same.
19381 (decide_unroll_constant_iterations): Same.
19382 (unroll_loop_constant_iterations): Same.
19383 (compare_and_jump_seq): Same.
19384 (unroll_loop_runtime_iterations): Same.
19385 (decide_unroll_stupid): Same.
19386 (unroll_loop_stupid): Same.
19387 (referenced_in_one_insn_in_loop_p): Same.
19388 (reset_debug_uses_in_loop): Same.
19389 (analyze_iv_to_split_insn): Same.
19390 * lra-eliminations.c (lra_debug_elim_table): Same.
19391 (setup_can_eliminate): Same.
19392 (form_sum): Same.
19393 (lra_get_elimination_hard_regno): Same.
19394 (lra_eliminate_regs_1): Same.
19395 (eliminate_regs_in_insn): Same.
19396 (update_reg_eliminate): Same.
19397 (init_elimination): Same.
19398 (lra_eliminate): Same.
19399 * lra-int.h: Same.
19400 * lra-lives.c (initiate_live_solver): Same.
19401 * lra-remat.c (create_remat_bb_data): Same.
19402 * lra-spills.c (lra_spill): Same.
19403 * lra.c (lra_set_insn_recog_data): Same.
19404 (lra_set_used_insn_alternative_by_uid): Same.
19405 (init_reg_info): Same.
19406 (expand_reg_info): Same.
19407 * lto-cgraph.c (output_symtab): Same.
19408 (read_identifier): Same.
19409 (get_alias_symbol): Same.
19410 (input_node): Same.
19411 (input_varpool_node): Same.
19412 (input_ref): Same.
19413 (input_edge): Same.
19414 (input_cgraph_1): Same.
19415 (input_refs): Same.
19416 (input_symtab): Same.
19417 (input_offload_tables): Same.
19418 (output_cgraph_opt_summary): Same.
19419 (input_edge_opt_summary): Same.
19420 (input_cgraph_opt_section): Same.
19421 * lto-section-in.c (lto_free_raw_section_data): Same.
19422 (lto_create_simple_input_block): Same.
19423 (lto_free_function_in_decl_state_for_node): Same.
19424 * lto-streamer-in.c (lto_tag_check_set): Same.
19425 (lto_location_cache::revert_location_cache): Same.
19426 (lto_location_cache::input_location): Same.
19427 (lto_input_location): Same.
19428 (stream_input_location_now): Same.
19429 (lto_input_tree_ref): Same.
19430 (lto_input_eh_catch_list): Same.
19431 (input_eh_region): Same.
19432 (lto_init_eh): Same.
19433 (make_new_block): Same.
19434 (input_cfg): Same.
19435 (fixup_call_stmt_edges): Same.
19436 (input_struct_function_base): Same.
19437 (input_function): Same.
19438 (lto_read_body_or_constructor): Same.
19439 (lto_read_tree_1): Same.
19440 (lto_read_tree): Same.
19441 (lto_input_scc): Same.
19442 (lto_input_tree_1): Same.
19443 (lto_input_toplevel_asms): Same.
19444 (lto_input_mode_table): Same.
19445 (lto_reader_init): Same.
19446 (lto_data_in_create): Same.
19447 * lto-streamer-out.c (output_cfg): Same.
19448 * lto-streamer.h: Same.
19449 * modulo-sched.c (duplicate_insns_of_cycles): Same.
19450 (generate_prolog_epilog): Same.
19451 (mark_loop_unsched): Same.
19452 (dump_insn_location): Same.
19453 (loop_canon_p): Same.
19454 (sms_schedule): Same.
19455 * omp-expand.c (expand_omp_for_ordered_loops): Same.
19456 (expand_omp_for_generic): Same.
19457 (expand_omp_for_static_nochunk): Same.
19458 (expand_omp_for_static_chunk): Same.
19459 (expand_omp_simd): Same.
19460 (expand_omp_taskloop_for_inner): Same.
19461 (expand_oacc_for): Same.
19462 (expand_omp_atomic_pipeline): Same.
19463 (mark_loops_in_oacc_kernels_region): Same.
19464 * omp-offload.c (oacc_xform_loop): Same.
19465 * omp-simd-clone.c (simd_clone_adjust): Same.
19466 * optabs-query.c (get_traditional_extraction_insn): Same.
19467 * optabs.c (expand_vector_broadcast): Same.
19468 (expand_binop_directly): Same.
19469 (expand_twoval_unop): Same.
19470 (expand_twoval_binop): Same.
19471 (expand_unop_direct): Same.
19472 (emit_indirect_jump): Same.
19473 (emit_conditional_move): Same.
19474 (emit_conditional_neg_or_complement): Same.
19475 (emit_conditional_add): Same.
19476 (vector_compare_rtx): Same.
19477 (expand_vec_perm_1): Same.
19478 (expand_vec_perm_const): Same.
19479 (expand_vec_cond_expr): Same.
19480 (expand_vec_series_expr): Same.
19481 (maybe_emit_atomic_exchange): Same.
19482 (maybe_emit_sync_lock_test_and_set): Same.
19483 (expand_atomic_compare_and_swap): Same.
19484 (expand_atomic_load): Same.
19485 (expand_atomic_store): Same.
19486 (maybe_emit_op): Same.
19487 (valid_multiword_target_p): Same.
19488 (create_integer_operand): Same.
19489 (maybe_legitimize_operand_same_code): Same.
19490 (maybe_legitimize_operand): Same.
19491 (create_convert_operand_from_type): Same.
19492 (can_reuse_operands_p): Same.
19493 (maybe_legitimize_operands): Same.
19494 (maybe_gen_insn): Same.
19495 (maybe_expand_insn): Same.
19496 (maybe_expand_jump_insn): Same.
19497 (expand_insn): Same.
19498 * optabs.h (create_expand_operand): Same.
19499 (create_fixed_operand): Same.
19500 (create_output_operand): Same.
19501 (create_input_operand): Same.
19502 (create_convert_operand_to): Same.
19503 (create_convert_operand_from): Same.
19504 * optinfo.h: Same.
19505 * poly-int.h: Same.
19506 * predict.c (optimize_insn_for_speed_p): Same.
19507 (optimize_loop_for_size_p): Same.
19508 (optimize_loop_for_speed_p): Same.
19509 (optimize_loop_nest_for_speed_p): Same.
19510 (get_base_value): Same.
19511 (predicted_by_loop_heuristics_p): Same.
19512 (predict_extra_loop_exits): Same.
19513 (predict_loops): Same.
19514 (predict_paths_for_bb): Same.
19515 (predict_paths_leading_to): Same.
19516 (propagate_freq): Same.
19517 (pass_profile::execute): Same.
19518 * predict.h: Same.
19519 * profile-count.c (profile_count::differs_from_p): Same.
19520 (profile_probability::differs_lot_from_p): Same.
19521 * profile-count.h: Same.
19522 * profile.c (branch_prob): Same.
19523 * regrename.c (free_chain_data): Same.
19524 (mark_conflict): Same.
19525 (create_new_chain): Same.
19526 (merge_overlapping_regs): Same.
19527 (init_rename_info): Same.
19528 (merge_chains): Same.
19529 (regrename_analyze): Same.
19530 (regrename_do_replace): Same.
19531 (scan_rtx_reg): Same.
19532 (record_out_operands): Same.
19533 (build_def_use): Same.
19534 * regrename.h: Same.
19535 * reload.h: Same.
19536 * reload1.c (init_reload): Same.
19537 (maybe_fix_stack_asms): Same.
19538 (copy_reloads): Same.
19539 (count_pseudo): Same.
19540 (count_spilled_pseudo): Same.
19541 (find_reg): Same.
19542 (find_reload_regs): Same.
19543 (select_reload_regs): Same.
19544 (spill_hard_reg): Same.
19545 (fixup_eh_region_note): Same.
19546 (set_reload_reg): Same.
19547 (allocate_reload_reg): Same.
19548 (compute_reload_subreg_offset): Same.
19549 (reload_adjust_reg_for_icode): Same.
19550 (emit_input_reload_insns): Same.
19551 (emit_output_reload_insns): Same.
19552 (do_input_reload): Same.
19553 (inherit_piecemeal_p): Same.
19554 * rtl.h: Same.
19555 * sanopt.c (maybe_get_dominating_check): Same.
19556 (maybe_optimize_ubsan_ptr_ifn): Same.
19557 (can_remove_asan_check): Same.
19558 (maybe_optimize_asan_check_ifn): Same.
19559 (sanopt_optimize_walker): Same.
19560 * sched-deps.c (add_dependence_list): Same.
19561 (chain_to_prev_insn): Same.
19562 (add_insn_mem_dependence): Same.
19563 (create_insn_reg_set): Same.
19564 (maybe_extend_reg_info_p): Same.
19565 (sched_analyze_reg): Same.
19566 (sched_analyze_1): Same.
19567 (get_implicit_reg_pending_clobbers): Same.
19568 (chain_to_prev_insn_p): Same.
19569 (deps_analyze_insn): Same.
19570 (deps_start_bb): Same.
19571 (sched_free_deps): Same.
19572 (init_deps): Same.
19573 (init_deps_reg_last): Same.
19574 (free_deps): Same.
19575 * sched-ebb.c: Same.
19576 * sched-int.h: Same.
19577 * sched-rgn.c (add_branch_dependences): Same.
19578 (concat_insn_mem_list): Same.
19579 (deps_join): Same.
19580 (sched_rgn_compute_dependencies): Same.
19581 * sel-sched-ir.c (reset_target_context): Same.
19582 (copy_deps_context): Same.
19583 (init_id_from_df): Same.
19584 (has_dependence_p): Same.
19585 (change_loops_latches): Same.
19586 (bb_top_order_comparator): Same.
19587 (make_region_from_loop_preheader): Same.
19588 (sel_init_pipelining): Same.
19589 (get_loop_nest_for_rgn): Same.
19590 (make_regions_from_the_rest): Same.
19591 (sel_is_loop_preheader_p): Same.
19592 * sel-sched-ir.h (inner_loop_header_p): Same.
19593 (get_all_loop_exits): Same.
19594 * selftest.h: Same.
19595 * sese.c (sese_build_liveouts): Same.
19596 (sese_insert_phis_for_liveouts): Same.
19597 * sese.h (defined_in_sese_p): Same.
19598 * sreal.c (sreal::stream_out): Same.
19599 * sreal.h: Same.
19600 * streamer-hooks.h: Same.
19601 * target-globals.c (save_target_globals): Same.
19602 * target-globals.h: Same.
19603 * target.def: Same.
19604 * target.h: Same.
19605 * targhooks.c (default_has_ifunc_p): Same.
19606 (default_empty_mask_is_expensive): Same.
19607 (default_init_cost): Same.
19608 * targhooks.h: Same.
19609 * toplev.c: Same.
19610 * tree-affine.c (aff_combination_mult): Same.
19611 (aff_combination_expand): Same.
19612 (aff_combination_constant_multiple_p): Same.
19613 * tree-affine.h: Same.
19614 * tree-cfg.c (build_gimple_cfg): Same.
19615 (replace_loop_annotate_in_block): Same.
19616 (replace_uses_by): Same.
19617 (remove_bb): Same.
19618 (dump_cfg_stats): Same.
19619 (gimple_duplicate_sese_region): Same.
19620 (gimple_duplicate_sese_tail): Same.
19621 (move_block_to_fn): Same.
19622 (replace_block_vars_by_duplicates): Same.
19623 (move_sese_region_to_fn): Same.
19624 (print_loops_bb): Same.
19625 (print_loop): Same.
19626 (print_loops): Same.
19627 (debug): Same.
19628 (debug_loops): Same.
19629 * tree-cfg.h: Same.
19630 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
19631 (chrec_fold_multiply_poly_poly): Same.
19632 (chrec_evaluate): Same.
19633 (chrec_component_in_loop_num): Same.
19634 (reset_evolution_in_loop): Same.
19635 (is_multivariate_chrec): Same.
19636 (chrec_contains_symbols): Same.
19637 (nb_vars_in_chrec): Same.
19638 (chrec_convert_1): Same.
19639 (chrec_convert_aggressive): Same.
19640 * tree-chrec.h: Same.
19641 * tree-core.h: Same.
19642 * tree-data-ref.c (dump_data_dependence_relation): Same.
19643 (canonicalize_base_object_address): Same.
19644 (data_ref_compare_tree): Same.
19645 (prune_runtime_alias_test_list): Same.
19646 (get_segment_min_max): Same.
19647 (create_intersect_range_checks): Same.
19648 (conflict_fn_no_dependence): Same.
19649 (object_address_invariant_in_loop_p): Same.
19650 (analyze_ziv_subscript): Same.
19651 (analyze_siv_subscript_cst_affine): Same.
19652 (analyze_miv_subscript): Same.
19653 (analyze_overlapping_iterations): Same.
19654 (build_classic_dist_vector_1): Same.
19655 (add_other_self_distances): Same.
19656 (same_access_functions): Same.
19657 (build_classic_dir_vector): Same.
19658 (subscript_dependence_tester_1): Same.
19659 (subscript_dependence_tester): Same.
19660 (access_functions_are_affine_or_constant_p): Same.
19661 (get_references_in_stmt): Same.
19662 (loop_nest_has_data_refs): Same.
19663 (graphite_find_data_references_in_stmt): Same.
19664 (find_data_references_in_bb): Same.
19665 (get_base_for_alignment): Same.
19666 (find_loop_nest_1): Same.
19667 (find_loop_nest): Same.
19668 * tree-data-ref.h (dr_alignment): Same.
19669 (ddr_dependence_level): Same.
19670 * tree-if-conv.c (fold_build_cond_expr): Same.
19671 (add_to_predicate_list): Same.
19672 (add_to_dst_predicate_list): Same.
19673 (phi_convertible_by_degenerating_args): Same.
19674 (idx_within_array_bound): Same.
19675 (all_preds_critical_p): Same.
19676 (pred_blocks_visited_p): Same.
19677 (predicate_bbs): Same.
19678 (build_region): Same.
19679 (if_convertible_loop_p_1): Same.
19680 (is_cond_scalar_reduction): Same.
19681 (predicate_scalar_phi): Same.
19682 (remove_conditions_and_labels): Same.
19683 (combine_blocks): Same.
19684 (version_loop_for_if_conversion): Same.
19685 (versionable_outer_loop_p): Same.
19686 (ifcvt_local_dce): Same.
19687 (tree_if_conversion): Same.
19688 (pass_if_conversion::gate): Same.
19689 * tree-if-conv.h: Same.
19690 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
19691 * tree-loop-distribution.c (bb_top_order_cmp): Same.
19692 (free_rdg): Same.
19693 (stmt_has_scalar_dependences_outside_loop): Same.
19694 (copy_loop_before): Same.
19695 (create_bb_after_loop): Same.
19696 (const_with_all_bytes_same): Same.
19697 (generate_memset_builtin): Same.
19698 (generate_memcpy_builtin): Same.
19699 (destroy_loop): Same.
19700 (build_rdg_partition_for_vertex): Same.
19701 (compute_access_range): Same.
19702 (data_ref_segment_size): Same.
19703 (latch_dominated_by_data_ref): Same.
19704 (compute_alias_check_pairs): Same.
19705 (fuse_memset_builtins): Same.
19706 (finalize_partitions): Same.
19707 (find_seed_stmts_for_distribution): Same.
19708 (prepare_perfect_loop_nest): Same.
19709 * tree-parloops.c (lambda_transform_legal_p): Same.
19710 (loop_parallel_p): Same.
19711 (reduc_stmt_res): Same.
19712 (add_field_for_name): Same.
19713 (create_call_for_reduction_1): Same.
19714 (replace_uses_in_bb_by): Same.
19715 (transform_to_exit_first_loop_alt): Same.
19716 (try_transform_to_exit_first_loop_alt): Same.
19717 (transform_to_exit_first_loop): Same.
19718 (num_phis): Same.
19719 (gen_parallel_loop): Same.
19720 (gather_scalar_reductions): Same.
19721 (get_omp_data_i_param): Same.
19722 (try_create_reduction_list): Same.
19723 (oacc_entry_exit_single_gang): Same.
19724 (parallelize_loops): Same.
19725 * tree-pass.h: Same.
19726 * tree-predcom.c (determine_offset): Same.
19727 (last_always_executed_block): Same.
19728 (split_data_refs_to_components): Same.
19729 (suitable_component_p): Same.
19730 (valid_initializer_p): Same.
19731 (find_looparound_phi): Same.
19732 (insert_looparound_copy): Same.
19733 (add_looparound_copies): Same.
19734 (determine_roots_comp): Same.
19735 (predcom_tmp_var): Same.
19736 (initialize_root_vars): Same.
19737 (initialize_root_vars_store_elim_1): Same.
19738 (initialize_root_vars_store_elim_2): Same.
19739 (finalize_eliminated_stores): Same.
19740 (initialize_root_vars_lm): Same.
19741 (remove_stmt): Same.
19742 (determine_unroll_factor): Same.
19743 (execute_pred_commoning_cbck): Same.
19744 (base_names_in_chain_on): Same.
19745 (combine_chains): Same.
19746 (pcom_stmt_dominates_stmt_p): Same.
19747 (try_combine_chains): Same.
19748 (prepare_initializers_chain_store_elim): Same.
19749 (prepare_initializers_chain): Same.
19750 (prepare_initializers): Same.
19751 (prepare_finalizers_chain): Same.
19752 (prepare_finalizers): Same.
19753 (insert_init_seqs): Same.
19754 * tree-scalar-evolution.c (loop_phi_node_p): Same.
19755 (compute_overall_effect_of_inner_loop): Same.
19756 (add_to_evolution_1): Same.
19757 (add_to_evolution): Same.
19758 (follow_ssa_edge_binary): Same.
19759 (follow_ssa_edge_expr): Same.
19760 (backedge_phi_arg_p): Same.
19761 (follow_ssa_edge_in_condition_phi_branch): Same.
19762 (follow_ssa_edge_in_condition_phi): Same.
19763 (follow_ssa_edge_inner_loop_phi): Same.
19764 (follow_ssa_edge): Same.
19765 (analyze_evolution_in_loop): Same.
19766 (analyze_initial_condition): Same.
19767 (interpret_loop_phi): Same.
19768 (interpret_condition_phi): Same.
19769 (interpret_rhs_expr): Same.
19770 (interpret_expr): Same.
19771 (interpret_gimple_assign): Same.
19772 (analyze_scalar_evolution_1): Same.
19773 (analyze_scalar_evolution): Same.
19774 (analyze_scalar_evolution_for_address_of): Same.
19775 (get_instantiated_value_entry): Same.
19776 (loop_closed_phi_def): Same.
19777 (instantiate_scev_name): Same.
19778 (instantiate_scev_poly): Same.
19779 (instantiate_scev_binary): Same.
19780 (instantiate_scev_convert): Same.
19781 (instantiate_scev_not): Same.
19782 (instantiate_scev_r): Same.
19783 (instantiate_scev): Same.
19784 (resolve_mixers): Same.
19785 (initialize_scalar_evolutions_analyzer): Same.
19786 (scev_reset_htab): Same.
19787 (scev_reset): Same.
19788 (derive_simple_iv_with_niters): Same.
19789 (simple_iv_with_niters): Same.
19790 (expression_expensive_p): Same.
19791 (final_value_replacement_loop): Same.
19792 * tree-scalar-evolution.h (block_before_loop): Same.
19793 * tree-ssa-address.h: Same.
19794 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
19795 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
19796 (record_edge_info): Same.
19797 * tree-ssa-live.c (var_map_base_fini): Same.
19798 (remove_unused_locals): Same.
19799 * tree-ssa-live.h: Same.
19800 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
19801 (pass_ch_vect::execute): Same.
19802 (pass_ch::process_loop_p): Same.
19803 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
19804 (movement_possibility): Same.
19805 (outermost_invariant_loop): Same.
19806 (stmt_cost): Same.
19807 (determine_max_movement): Same.
19808 (invariantness_dom_walker::before_dom_children): Same.
19809 (move_computations): Same.
19810 (may_move_till): Same.
19811 (force_move_till_op): Same.
19812 (force_move_till): Same.
19813 (memref_free): Same.
19814 (record_mem_ref_loc): Same.
19815 (set_ref_stored_in_loop): Same.
19816 (mark_ref_stored): Same.
19817 (sort_bbs_in_loop_postorder_cmp): Same.
19818 (sort_locs_in_loop_postorder_cmp): Same.
19819 (analyze_memory_references): Same.
19820 (mem_refs_may_alias_p): Same.
19821 (find_ref_loc_in_loop_cmp): Same.
19822 (rewrite_mem_ref_loc::operator): Same.
19823 (first_mem_ref_loc_1::operator): Same.
19824 (sm_set_flag_if_changed::operator): Same.
19825 (execute_sm_if_changed_flag_set): Same.
19826 (execute_sm): Same.
19827 (hoist_memory_references): Same.
19828 (ref_always_accessed::operator): Same.
19829 (refs_independent_p): Same.
19830 (record_dep_loop): Same.
19831 (ref_indep_loop_p_1): Same.
19832 (ref_indep_loop_p): Same.
19833 (can_sm_ref_p): Same.
19834 (find_refs_for_sm): Same.
19835 (loop_suitable_for_sm): Same.
19836 (store_motion_loop): Same.
19837 (store_motion): Same.
19838 (fill_always_executed_in): Same.
19839 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
19840 (estimated_unrolled_size): Same.
19841 (loop_edge_to_cancel): Same.
19842 (remove_exits_and_undefined_stmts): Same.
19843 (remove_redundant_iv_tests): Same.
19844 (unloop_loops): Same.
19845 (estimated_peeled_sequence_size): Same.
19846 (try_peel_loop): Same.
19847 (canonicalize_loop_induction_variables): Same.
19848 (canonicalize_induction_variables): Same.
19849 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
19850 (name_info): Same.
19851 (stmt_after_inc_pos): Same.
19852 (contains_abnormal_ssa_name_p): Same.
19853 (niter_for_exit): Same.
19854 (find_bivs): Same.
19855 (mark_bivs): Same.
19856 (find_givs_in_bb): Same.
19857 (find_induction_variables): Same.
19858 (find_interesting_uses_cond): Same.
19859 (outermost_invariant_loop_for_expr): Same.
19860 (idx_find_step): Same.
19861 (add_candidate_1): Same.
19862 (add_iv_candidate_derived_from_uses): Same.
19863 (alloc_use_cost_map): Same.
19864 (prepare_decl_rtl): Same.
19865 (generic_predict_doloop_p): Same.
19866 (computation_cost): Same.
19867 (determine_common_wider_type): Same.
19868 (get_computation_aff_1): Same.
19869 (get_use_type): Same.
19870 (determine_group_iv_cost_address): Same.
19871 (iv_period): Same.
19872 (difference_cannot_overflow_p): Same.
19873 (may_eliminate_iv): Same.
19874 (determine_set_costs): Same.
19875 (cheaper_cost_pair): Same.
19876 (compare_cost_pair): Same.
19877 (iv_ca_cand_for_group): Same.
19878 (iv_ca_recount_cost): Same.
19879 (iv_ca_set_remove_invs): Same.
19880 (iv_ca_set_no_cp): Same.
19881 (iv_ca_set_add_invs): Same.
19882 (iv_ca_set_cp): Same.
19883 (iv_ca_add_group): Same.
19884 (iv_ca_cost): Same.
19885 (iv_ca_compare_deps): Same.
19886 (iv_ca_delta_reverse): Same.
19887 (iv_ca_delta_commit): Same.
19888 (iv_ca_cand_used_p): Same.
19889 (iv_ca_delta_free): Same.
19890 (iv_ca_new): Same.
19891 (iv_ca_free): Same.
19892 (iv_ca_dump): Same.
19893 (iv_ca_extend): Same.
19894 (iv_ca_narrow): Same.
19895 (iv_ca_prune): Same.
19896 (cheaper_cost_with_cand): Same.
19897 (iv_ca_replace): Same.
19898 (try_add_cand_for): Same.
19899 (get_initial_solution): Same.
19900 (try_improve_iv_set): Same.
19901 (find_optimal_iv_set_1): Same.
19902 (create_new_iv): Same.
19903 (rewrite_use_compare): Same.
19904 (remove_unused_ivs): Same.
19905 (determine_scaling_factor): Same.
19906 * tree-ssa-loop-ivopts.h: Same.
19907 * tree-ssa-loop-manip.c (create_iv): Same.
19908 (compute_live_loop_exits): Same.
19909 (add_exit_phi): Same.
19910 (add_exit_phis): Same.
19911 (find_uses_to_rename_use): Same.
19912 (find_uses_to_rename_def): Same.
19913 (find_uses_to_rename_in_loop): Same.
19914 (rewrite_into_loop_closed_ssa): Same.
19915 (check_loop_closed_ssa_bb): Same.
19916 (split_loop_exit_edge): Same.
19917 (ip_end_pos): Same.
19918 (ip_normal_pos): Same.
19919 (copy_phi_node_args): Same.
19920 (gimple_duplicate_loop_to_header_edge): Same.
19921 (can_unroll_loop_p): Same.
19922 (determine_exit_conditions): Same.
19923 (scale_dominated_blocks_in_loop): Same.
19924 (niter_for_unrolled_loop): Same.
19925 (tree_transform_and_unroll_loop): Same.
19926 (rewrite_all_phi_nodes_with_iv): Same.
19927 * tree-ssa-loop-manip.h: Same.
19928 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
19929 (number_of_iterations_ne): Same.
19930 (assert_no_overflow_lt): Same.
19931 (assert_loop_rolls_lt): Same.
19932 (number_of_iterations_lt): Same.
19933 (adjust_cond_for_loop_until_wrap): Same.
19934 (tree_simplify_using_condition): Same.
19935 (simplify_using_initial_conditions): Same.
19936 (simplify_using_outer_evolutions): Same.
19937 (loop_only_exit_p): Same.
19938 (ssa_defined_by_minus_one_stmt_p): Same.
19939 (number_of_iterations_popcount): Same.
19940 (number_of_iterations_exit): Same.
19941 (find_loop_niter): Same.
19942 (finite_loop_p): Same.
19943 (chain_of_csts_start): Same.
19944 (get_val_for): Same.
19945 (loop_niter_by_eval): Same.
19946 (derive_constant_upper_bound_ops): Same.
19947 (do_warn_aggressive_loop_optimizations): Same.
19948 (record_estimate): Same.
19949 (get_cst_init_from_scev): Same.
19950 (record_nonwrapping_iv): Same.
19951 (idx_infer_loop_bounds): Same.
19952 (infer_loop_bounds_from_ref): Same.
19953 (infer_loop_bounds_from_array): Same.
19954 (infer_loop_bounds_from_pointer_arith): Same.
19955 (infer_loop_bounds_from_signedness): Same.
19956 (bound_index): Same.
19957 (discover_iteration_bound_by_body_walk): Same.
19958 (maybe_lower_iteration_bound): Same.
19959 (estimate_numbers_of_iterations): Same.
19960 (estimated_loop_iterations): Same.
19961 (estimated_loop_iterations_int): Same.
19962 (max_loop_iterations): Same.
19963 (max_loop_iterations_int): Same.
19964 (likely_max_loop_iterations): Same.
19965 (likely_max_loop_iterations_int): Same.
19966 (estimated_stmt_executions_int): Same.
19967 (max_stmt_executions): Same.
19968 (likely_max_stmt_executions): Same.
19969 (estimated_stmt_executions): Same.
19970 (stmt_dominates_stmt_p): Same.
19971 (nowrap_type_p): Same.
19972 (loop_exits_before_overflow): Same.
19973 (scev_var_range_cant_overflow): Same.
19974 (scev_probably_wraps_p): Same.
19975 (free_numbers_of_iterations_estimates): Same.
19976 * tree-ssa-loop-niter.h: Same.
19977 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
19978 (idx_analyze_ref): Same.
19979 (analyze_ref): Same.
19980 (gather_memory_references_ref): Same.
19981 (mark_nontemporal_store): Same.
19982 (emit_mfence_after_loop): Same.
19983 (may_use_storent_in_loop_p): Same.
19984 (mark_nontemporal_stores): Same.
19985 (should_unroll_loop_p): Same.
19986 (volume_of_dist_vector): Same.
19987 (add_subscript_strides): Same.
19988 (self_reuse_distance): Same.
19989 (insn_to_prefetch_ratio_too_small_p): Same.
19990 * tree-ssa-loop-split.c (split_at_bb_p): Same.
19991 (patch_loop_exit): Same.
19992 (find_or_create_guard_phi): Same.
19993 (easy_exit_values): Same.
19994 (connect_loop_phis): Same.
19995 (connect_loops): Same.
19996 (compute_new_first_bound): Same.
19997 (split_loop): Same.
19998 (tree_ssa_split_loops): Same.
19999 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
20000 (is_maybe_undefined): Same.
20001 (tree_may_unswitch_on): Same.
20002 (simplify_using_entry_checks): Same.
20003 (tree_unswitch_single_loop): Same.
20004 (tree_unswitch_loop): Same.
20005 (tree_unswitch_outer_loop): Same.
20006 (empty_bb_without_guard_p): Same.
20007 (used_outside_loop_p): Same.
20008 (get_vop_from_header): Same.
20009 (hoist_guard): Same.
20010 * tree-ssa-loop.c (gate_oacc_kernels): Same.
20011 (get_lsm_tmp_name): Same.
20012 * tree-ssa-loop.h: Same.
20013 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
20014 (build_and_add_sum): Same.
20015 (no_side_effect_bb): Same.
20016 (get_ops): Same.
20017 (linearize_expr): Same.
20018 (should_break_up_subtract): Same.
20019 (linearize_expr_tree): Same.
20020 * tree-ssa-scopedtables.c: Same.
20021 * tree-ssa-scopedtables.h: Same.
20022 * tree-ssa-structalias.c (condense_visit): Same.
20023 (label_visit): Same.
20024 (dump_pred_graph): Same.
20025 (perform_var_substitution): Same.
20026 (move_complex_constraints): Same.
20027 (remove_preds_and_fake_succs): Same.
20028 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
20029 (determine_bb_domination_status): Same.
20030 (duplicate_thread_path): Same.
20031 (thread_through_all_blocks): Same.
20032 * tree-ssa-threadupdate.h: Same.
20033 * tree-streamer-in.c (streamer_read_string_cst): Same.
20034 (input_identifier): Same.
20035 (unpack_ts_type_common_value_fields): Same.
20036 (unpack_ts_block_value_fields): Same.
20037 (unpack_ts_translation_unit_decl_value_fields): Same.
20038 (unpack_ts_omp_clause_value_fields): Same.
20039 (streamer_read_tree_bitfields): Same.
20040 (streamer_alloc_tree): Same.
20041 (lto_input_ts_common_tree_pointers): Same.
20042 (lto_input_ts_vector_tree_pointers): Same.
20043 (lto_input_ts_poly_tree_pointers): Same.
20044 (lto_input_ts_complex_tree_pointers): Same.
20045 (lto_input_ts_decl_minimal_tree_pointers): Same.
20046 (lto_input_ts_decl_common_tree_pointers): Same.
20047 (lto_input_ts_decl_non_common_tree_pointers): Same.
20048 (lto_input_ts_decl_with_vis_tree_pointers): Same.
20049 (lto_input_ts_field_decl_tree_pointers): Same.
20050 (lto_input_ts_function_decl_tree_pointers): Same.
20051 (lto_input_ts_type_common_tree_pointers): Same.
20052 (lto_input_ts_type_non_common_tree_pointers): Same.
20053 (lto_input_ts_list_tree_pointers): Same.
20054 (lto_input_ts_vec_tree_pointers): Same.
20055 (lto_input_ts_exp_tree_pointers): Same.
20056 (lto_input_ts_block_tree_pointers): Same.
20057 (lto_input_ts_binfo_tree_pointers): Same.
20058 (lto_input_ts_constructor_tree_pointers): Same.
20059 (lto_input_ts_omp_clause_tree_pointers): Same.
20060 (streamer_read_tree_body): Same.
20061 * tree-streamer.h: Same.
20062 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
20063 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
20064 (vect_analyze_possibly_independent_ddr): Same.
20065 (vect_analyze_data_ref_dependence): Same.
20066 (vect_compute_data_ref_alignment): Same.
20067 (vect_enhance_data_refs_alignment): Same.
20068 (vect_analyze_data_ref_access): Same.
20069 (vect_check_gather_scatter): Same.
20070 (vect_find_stmt_data_reference): Same.
20071 (vect_create_addr_base_for_vector_ref): Same.
20072 (vect_setup_realignment): Same.
20073 (vect_supportable_dr_alignment): Same.
20074 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
20075 (adjust_phi_and_debug_stmts): Same.
20076 (vect_set_loop_mask): Same.
20077 (add_preheader_seq): Same.
20078 (vect_maybe_permute_loop_masks): Same.
20079 (vect_set_loop_masks_directly): Same.
20080 (vect_set_loop_condition_masked): Same.
20081 (vect_set_loop_condition_unmasked): Same.
20082 (slpeel_duplicate_current_defs_from_edges): Same.
20083 (slpeel_add_loop_guard): Same.
20084 (slpeel_can_duplicate_loop_p): Same.
20085 (create_lcssa_for_virtual_phi): Same.
20086 (iv_phi_p): Same.
20087 (vect_update_ivs_after_vectorizer): Same.
20088 (vect_gen_vector_loop_niters_mult_vf): Same.
20089 (slpeel_update_phi_nodes_for_loops): Same.
20090 (slpeel_update_phi_nodes_for_guard1): Same.
20091 (find_guard_arg): Same.
20092 (slpeel_update_phi_nodes_for_guard2): Same.
20093 (slpeel_update_phi_nodes_for_lcssa): Same.
20094 (vect_do_peeling): Same.
20095 (vect_create_cond_for_alias_checks): Same.
20096 (vect_loop_versioning): Same.
20097 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
20098 (vect_inner_phi_in_double_reduction_p): Same.
20099 (vect_analyze_scalar_cycles_1): Same.
20100 (vect_fixup_scalar_cycles_with_patterns): Same.
20101 (vect_get_loop_niters): Same.
20102 (bb_in_loop_p): Same.
20103 (vect_get_max_nscalars_per_iter): Same.
20104 (vect_verify_full_masking): Same.
20105 (vect_compute_single_scalar_iteration_cost): Same.
20106 (vect_analyze_loop_form_1): Same.
20107 (vect_analyze_loop_form): Same.
20108 (vect_active_double_reduction_p): Same.
20109 (vect_analyze_loop_operations): Same.
20110 (neutral_op_for_slp_reduction): Same.
20111 (vect_is_simple_reduction): Same.
20112 (vect_model_reduction_cost): Same.
20113 (get_initial_def_for_reduction): Same.
20114 (get_initial_defs_for_reduction): Same.
20115 (vect_create_epilog_for_reduction): Same.
20116 (vectorize_fold_left_reduction): Same.
20117 (vectorizable_reduction): Same.
20118 (vectorizable_induction): Same.
20119 (vectorizable_live_operation): Same.
20120 (loop_niters_no_overflow): Same.
20121 (vect_get_loop_mask): Same.
20122 (vect_transform_loop_stmt): Same.
20123 (vect_transform_loop): Same.
20124 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
20125 (vect_determine_precisions): Same.
20126 (vect_pattern_recog_1): Same.
20127 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
20128 * tree-vect-stmts.c (stmt_vectype): Same.
20129 (process_use): Same.
20130 (vect_init_vector_1): Same.
20131 (vect_truncate_gather_scatter_offset): Same.
20132 (get_group_load_store_type): Same.
20133 (vect_build_gather_load_calls): Same.
20134 (vect_get_strided_load_store_ops): Same.
20135 (vectorizable_simd_clone_call): Same.
20136 (vectorizable_store): Same.
20137 (permute_vec_elements): Same.
20138 (vectorizable_load): Same.
20139 (vect_transform_stmt): Same.
20140 (supportable_widening_operation): Same.
20141 * tree-vectorizer.c (vec_info::replace_stmt): Same.
20142 (vec_info::free_stmt_vec_info): Same.
20143 (vect_free_loop_info_assumptions): Same.
20144 (vect_loop_vectorized_call): Same.
20145 (set_uid_loop_bbs): Same.
20146 (vectorize_loops): Same.
20147 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
20148 * tree.c (add_tree_to_fld_list): Same.
20149 (fld_type_variant_equal_p): Same.
20150 (fld_decl_context): Same.
20151 (fld_incomplete_type_of): Same.
20152 (free_lang_data_in_binfo): Same.
20153 (need_assembler_name_p): Same.
20154 (find_decls_types_r): Same.
20155 (get_eh_types_for_runtime): Same.
20156 (find_decls_types_in_eh_region): Same.
20157 (find_decls_types_in_node): Same.
20158 (assign_assembler_name_if_needed): Same.
20159 * value-prof.c (stream_out_histogram_value): Same.
20160 * value-prof.h: Same.
20161 * var-tracking.c (use_narrower_mode): Same.
20162 (prepare_call_arguments): Same.
20163 (vt_expand_loc_callback): Same.
20164 (resolve_expansions_pending_recursion): Same.
20165 (vt_expand_loc): Same.
20166 * varasm.c (const_hash_1): Same.
20167 (compare_constant): Same.
20168 (tree_output_constant_def): Same.
20169 (simplify_subtraction): Same.
20170 (get_pool_constant): Same.
20171 (output_constant_pool_2): Same.
20172 (output_constant_pool_1): Same.
20173 (mark_constants_in_pattern): Same.
20174 (mark_constant_pool): Same.
20175 (get_section_anchor): Same.
20176 * vr-values.c (compare_range_with_value): Same.
20177 (vr_values::extract_range_from_phi_node): Same.
20178 * vr-values.h: Same.
20179 * web.c (unionfind_union): Same.
20180 * wide-int.h: Same.
20181
20182 2019-07-09 Martin Sebor <msebor@redhat.com>
20183
20184 PR c++/61339
20185 * align.h: Change class-key from class to struct and vice versa
20186 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
20187 * alloc-pool.h: Same.
20188 * asan.c (shadow_mem_size): Same.
20189 * auto-profile.c: Same.
20190 * basic-block.h: Same.
20191 * bitmap.h: Same.
20192 * cfgexpand.c (set_rtl): Same.
20193 (expand_one_stack_var_at): Same.
20194 * cfghooks.h: Same.
20195 * cfgloop.h: Same.
20196 * cgraph.h: Same.
20197 * config/i386/i386.h: Same.
20198 * df-problems.c (df_print_bb_index): Same.
20199 * df-scan.c: Same.
20200 * df.h (df_single_use): Same.
20201 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
20202 (layout::annotation_line_showed_range_p): Same.
20203 (get_printed_columns): Same.
20204 (correction::ensure_terminated): Same.
20205 (line_corrections::~line_corrections): Same.
20206 * dojump.h: Same.
20207 * dse.c: Same.
20208 * dump-context.h: Same.
20209 * dumpfile.h: Same.
20210 * dwarf2out.c: Same.
20211 * edit-context.c: Same.
20212 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
20213 * flags.h: Same.
20214 * function.c (assign_stack_local): Same.
20215 * function.h: Same.
20216 * gcc.c: Same.
20217 * gcov.c (block_info::block_info): Same.
20218 * genattrtab.c: Same.
20219 * genextract.c: Same.
20220 * genmatch.c (comparison_code_p): Same.
20221 (id_base::id_base): Same.
20222 (decision_tree::print): Same.
20223 * genoutput.c: Same.
20224 * genpreds.c (write_one_predicate_function): Same.
20225 * genrecog.c (validate_pattern): Same.
20226 (find_operand_positions): Same.
20227 (optimize_subroutine_group): Same.
20228 (merge_pattern_transition::merge_pattern_transition): Same.
20229 (merge_pattern_info::merge_pattern_info): Same.
20230 (merge_state_result::merge_state_result): Same.
20231 (merge_into_state): Same.
20232 * gensupport.c: Same.
20233 * gensupport.h: Same.
20234 * ggc-common.c (init_ggc_heuristics): Same.
20235 * ggc-tests.c (test_union): Same.
20236 * gimple-loop-interchange.cc (dump_induction): Same.
20237 * gimple-loop-versioning.cc: Same.
20238 * gimple-match.h (gimple_match_cond::any_else): Same.
20239 * gimple-ssa-backprop.c: Same.
20240 * gimple-ssa-sprintf.c: Same.
20241 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
20242 Same.
20243 (store_immediate_info::store_immediate_info): Same.
20244 (merged_store_group::apply_stores): Same.
20245 (get_location_for_stmts): Same.
20246 * gimple-ssa-strength-reduction.c: Same.
20247 * gimple-ssa-warn-alloca.c: Same.
20248 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
20249 * godump.c (go_type_decl): Same.
20250 * hash-map-tests.c (test_map_of_strings_to_int): Same.
20251 * hash-map.h: Same.
20252 * hash-set-tests.c (test_set_of_strings): Same.
20253 * hsa-brig.c: Same.
20254 * hsa-common.h: Same.
20255 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
20256 * input.c (assert_loceq): Same.
20257 * input.h: Same.
20258 * ipa-cp.c: Same.
20259 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
20260 * ipa-fnsummary.h: Same.
20261 * ipa-inline.h: Same.
20262 * ipa-prop.h: Same.
20263 * ipa-split.c (visit_bb): Same.
20264 * ira-int.h (minmax_set_iter_next): Same.
20265 * loop-invariant.c: Same.
20266 * loop-iv.c: Same.
20267 * lra-eliminations.c: Same.
20268 * lra-int.h: Same.
20269 * lra-lives.c (mark_regno_dead): Same.
20270 * lra-remat.c: Same.
20271 * lra-spills.c: Same.
20272 * lto-streamer.h: Same.
20273 * mem-stats.h: Same.
20274 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
20275 * omp-low.c (omp_clause_aligned_alignment): Same.
20276 * optabs-query.h (get_vcond_eq_icode): Same.
20277 * optabs.h: Same.
20278 * opts.c (wrap_help): Same.
20279 * poly-int.h: Same.
20280 * predict.c (predict_paths_leading_to_edge): Same.
20281 * pretty-print.h: Same.
20282 * profile-count.h: Same.
20283 * read-md.h: Same.
20284 * read-rtl-function.c: Same.
20285 * ree.c: Same.
20286 * reginfo.c: Same.
20287 * regrename.c: Same.
20288 * regrename.h: Same.
20289 * reload.h: Same.
20290 * rtl-iter.h: Same.
20291 * rtl.h (costs_add_n_insns): Same.
20292 * sanopt.c: Same.
20293 * sched-int.h: Same.
20294 * sel-sched-ir.h: Same.
20295 * selftest.h: Same.
20296 * sese.h (vec_find): Same.
20297 * stmt.c: Same.
20298 * target-globals.h: Same.
20299 * tree-affine.c (aff_combination_find_elt): Same.
20300 * tree-affine.h: Same.
20301 * tree-data-ref.h: Same.
20302 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
20303 * tree-predcom.c: Same.
20304 * tree-scalar-evolution.c (find_var_scev_info): Same.
20305 * tree-ssa-alias.h: Same.
20306 * tree-ssa-ccp.c: Same.
20307 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
20308 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
20309 (rewrite_mem_refs): Same.
20310 (execute_sm_if_changed): Same.
20311 (hoist_memory_references): Same.
20312 * tree-ssa-loop-ivopts.c (operator<=): Same.
20313 * tree-ssa-loop.h: Same.
20314 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
20315 * tree-ssa-structalias.c: Same.
20316 * tree-switch-conversion.h (cluster::cluster): Same.
20317 (simple_cluster::simple_cluster): Same.
20318 * tree-vect-patterns.c (type_conversion_p): Same.
20319 * tree-vectorizer.c (dump_stmt_cost): Same.
20320 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
20321 * tree.c (protected_set_expr_location): Same.
20322 * tree.h (desired_pro_or_demotion_p): Same.
20323 (fndecl_built_in_p): Same.
20324 * unique-ptr-tests.cc: Same.
20325 * var-tracking.c (delete_variable_part): Same.
20326 * varasm.c (assemble_real): Same.
20327 (tree_output_constant_def): Same.
20328 * vec.c: Same.
20329 * wide-int-bitmask.h: Same.
20330 * wide-int.h (decompose): Same.
20331
20332 2019-07-09 Richard Biener <rguenther@suse.de>
20333
20334 PR tree-optimization/91114
20335 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
20336 find a vector type isn't fatal.
20337
20338 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
20339
20340 * config/aarch64/aarch64-simd.md
20341 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
20342 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
20343 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
20344 (*aarch64_crypto_aese_fused,
20345 *aarch64_crypto_aesd_fused): Update to new definition.
20346 * config/aarch64/aarch64.c
20347 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
20348
20349 2019-07-09 Richard Biener <rguenther@suse.de>
20350
20351 * gimple-match.h (gimple_match_op::resimplify): New.
20352 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
20353 gimple_resimplify4, gimple_resimplify5): Remove.
20354 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
20355 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
20356 Make static.
20357 (gimple_match_op::resimplify): New.
20358 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
20359 according to availability. Use gimple_match_op::resimplify.
20360
20361 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
20362
20363 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
20364
20365 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
20366
20367 * config/arm/crypto.md:
20368 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
20369 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
20370 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
20371 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
20372 * config/arm/arm.c
20373 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
20374 * config/arm/aarch-common-protos.h
20375 (aarch_crypto_can_dual_issue): Remove.
20376 * config/arm/aarch-common.c
20377 (aarch_crypto_can_dual_issue): Likewise.
20378 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
20379 * config/arm/cortex-a53.md: Likewise.
20380 * config/arm/cortex-a57.md: Likewise.
20381 * config/arm/iterators.md:
20382 (CRYPTO_BINARY): Redefine.
20383 (CRYPTO_UNARY): Removed.
20384 (CRYPTO_AES, CRYPTO_AESMC): New.
20385
20386 2019-07-09 Richard Biener <rguenther@suse.de>
20387
20388 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
20389 (vn_reference_lookup_3): If the main ref has no access path recorded
20390 but orig_ref has use it to do access-path based disambiguation.
20391 (vn_reference_lookup_pieces): Adjust.
20392 (vn_reference_lookup): Pass down original ref if we valueized.
20393
20394 2019-07-09 Martin Liska <mliska@suse.cz>
20395
20396 * doc/extend.texi: Document influence on loop
20397 optimizers.
20398
20399 2019-07-09 Martin Liska <mliska@suse.cz>
20400
20401 * lto-compress.c (lto_normalized_zstd_level): Do not use
20402 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
20403 of libzstd. One can use 0 as a default compression level.
20404
20405 2019-07-09 Martin Liska <mliska@suse.cz>
20406
20407 * doc/invoke.texi: Add link from -fprofile-dir option.
20408 Use better wording for 'gcno filename'.
20409
20410 2019-07-08 Martin Sebor <msebor@redhat.com>
20411
20412 PR middle-end/71924
20413 PR middle-end/90549
20414 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
20415 comment.
20416 (args_loc_t): New type.
20417 (args_loc_t, locmap_t): same.
20418 (diag_returned_locals): New function.
20419 (is_addr_local): Same.
20420 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
20421 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
20422 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
20423
20424 2019-07-08 Jakub Jelinek <jakub@redhat.com>
20425
20426 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
20427 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
20428 and casts in offset when different, both through gimple stmts
20429 and through trees. Rewritten using loops to minimize code duplication
20430 for each operand.
20431
20432 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
20433
20434 * emit-rtl.c (set_insn_locations): New function moved from...
20435 * function.c (set_insn_locations): ...here.
20436 * ira-emit.c (emit_moves): Propagate location of the first instruction
20437 to the inserted move instructions.
20438 * reg-stack.c (compensate_edge): Set the location if the sequence is
20439 inserted on the edge.
20440 * rtl.h (set_insn_locations): Declare.
20441
20442 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
20443
20444 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
20445 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
20446 .machine string.
20447
20448 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
20449
20450 PR rtl-optimization/88233
20451 * common.opt (fsplit-wide-types-early): New option.
20452 * common/config/rs6000/rs6000-common.c
20453 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
20454 OPT_LEVELS_ALL.
20455 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
20456 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
20457 flag_split_wide_types_early.
20458 (pass_data_lower_subreg3): New.
20459 (pass_lower_subreg3): New.
20460 (make_pass_lower_subreg3): New.
20461 * passes.def (pass_lower_subreg2): Move after the loop passes.
20462 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
20463 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
20464 the pass pipeline; its previous place is taken by ...
20465 (make_pass_lower_subreg3): ... this.
20466
20467 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
20468
20469 * config/s390/s390.c (s390_shift_truncation_mask): Define.
20470 (TARGET_SHIFT_TRUNCATION_MASK): Define.
20471
20472 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
20473
20474 * config/s390/constraints.md: Add new jsc constraint.
20475 * config/s390/predicates.md: New predicates.
20476 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
20477 * config/s390/s390.c (s390_valid_shift_count): New function.
20478 (print_shift_count_operand): Use s390_valid_shift_count.
20479 (print_operand): Likewise.
20480 * config/s390/s390.md: Use new predicate.
20481 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
20482 * config/s390/vector.md: Use new predicate.
20483
20484 2019-07-08 Andrew Waterman <andrew@sifive.com>
20485 Jim Wilson <jimw@sifive.com>
20486
20487 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
20488 bitsize instead of BITS_PER_WORD.
20489
20490 2019-07-08 Martin Liska <mliska@suse.cz>
20491
20492 * collect2.c (defined): Revert to before r254460.
20493 (scan_prog_file): Revert to before r254460.
20494
20495 2019-07-08 Richard Biener <rguenther@suse.de>
20496
20497 PR tree-optimization/83518
20498 * tree-ssa-sccvn.c: Include splay-tree.h.
20499 (struct pd_range, struct pd_data): New.
20500 (struct vn_walk_cb_data): Add data to track partial definitions.
20501 (vn_walk_cb_data::~vn_walk_cb_data): New.
20502 (vn_walk_cb_data::push_partial_def): New.
20503 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
20504 (vn_reference_lookup_2): When partial defs are registered give up.
20505 (vn_reference_lookup_3): Track partial defs for memset and
20506 constructor zeroing and for defs from constants.
20507
20508 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
20509
20510 * doc/install.texi (bootstrap-Og): Document.
20511
20512 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
20513
20514 * config/riscv/pic.md (*local_pic_load_s<mode>)
20515 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
20516 referenced by <mode>, giving...
20517 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
20518 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
20519 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
20520 use <X:MODE> for the mode attribute.
20521
20522 2019-07-07 Jeff Law <law@redhat.com>
20523
20524 PR tree-optimization/91090
20525 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
20526 in handling of ranges to simplify switch statements.
20527
20528 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
20529
20530 * config/darwin.c (darwin_override_options): Make a final check on PIC
20531 options.
20532
20533 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
20534
20535 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
20536 on for kernel code.
20537
20538 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
20539
20540 PR target/91068
20541 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
20542 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
20543 instead of matching them to "l" output operands.
20544
20545 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
20546
20547 * config/mips/mips.c (mips_split_move): Zero-initialize addr
20548 and check whether addr.reg is nonnull before using it.
20549
20550 2019-07-06 Jakub Jelinek <jakub@redhat.com>
20551
20552 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
20553 ctx->for_simd_scan_phase simd copy the outer var to the privatized
20554 variable(s). For conditional lastprivate look through outer
20555 GIMPLE_OMP_SCAN context.
20556 (lower_omp_1): For conditional lastprivate look through outer
20557 GIMPLE_OMP_SCAN context.
20558
20559 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
20560 member to combined_into_simd_safelen1.
20561 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
20562 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
20563 clauses if ctx->combined_into_simd_safelen1 put statements after the
20564 predicate conditionalized block rather than into it.
20565
20566 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20567
20568 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
20569 operand 1.
20570 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
20571 Make the choice of <mode> explicit, giving...
20572 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
20573
20574 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20575
20576 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
20577 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
20578 of .md attributes.
20579 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
20580 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
20581 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
20582 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
20583 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
20584 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
20585 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
20586 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
20587 (*avx512f_scatterdi<mode>): Likewise.
20588 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
20589
20590 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20591
20592 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
20593 specify the mode iterator referenced by <mode>, giving...
20594 (*push1_h8300hs_<QHI:mode>): ...this.
20595
20596 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20597
20598 * config/gcn/gcn-valu.md
20599 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
20600 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
20601 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
20602 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
20603 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
20604 but using the _exec comparison patterns.
20605 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
20606 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
20607 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
20608 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
20609 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
20610 but using the _exec comparison patterns.
20611
20612 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20613
20614 * config/arm/sync.md
20615 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
20616 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
20617 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
20618 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
20619 <SIDI:cas_cmp_str>.
20620
20621 2019-07-06 Jakub Jelinek <jakub@redhat.com>
20622
20623 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
20624 (maybe_lookup_ctx): Add forward declaration.
20625 (omp_find_scan): Likewise. Walk into body of simd if composited
20626 with worksharing loop.
20627 (scan_omp_simd_scan): New function.
20628 (scan_omp_1_stmt): Call it.
20629 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
20630 ctx->for_simd_scan_phase.
20631 (lower_rec_input_clauses): Do much less work for inscan reductions
20632 in ctx->for_simd_scan_phase is_simd regions.
20633 (lower_omp_scan): Set is_simd also on simd constructs composited
20634 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
20635 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
20636 emit their body after in simd constructs composited with worksharing
20637 loop.
20638 (lower_omp_for_scan): Handle worksharing loop composited with simd.
20639
20640 * omp-low.c (omp_find_scan): Make static.
20641 (lower_omp_for_scan): Fix order of merge arguments in input phase of
20642 the second loop, var2 represents the first partial sum and so needs
20643 to go before rprivb[ivar].
20644
20645 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
20646
20647 * config/rs6000/rs6000-logue.c: Remove unused code.
20648
20649 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20650
20651 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
20652
20653 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
20654
20655 PR target/90712
20656 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
20657 check with a frame laid out check.
20658
20659 2019-07-05 Richard Biener <rguenther@suse.de>
20660
20661 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
20662 when comparing against a store with possibly the same value.
20663
20664 2019-07-05 Richard Biener <rguenther@suse.de>
20665
20666 PR tree-optimization/91091
20667 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
20668 (walk_non_aliased_vuses): Likewise.
20669 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
20670 (get_continuation_for_phi): New tbaa_p parameter and pass
20671 it down.
20672 (walk_non_aliased_vuses): Likewise.
20673 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
20674 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
20675 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
20676 Likewise.
20677 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
20678 (adjust_offsets_for_equal_base_address): New function.
20679 (vn_reference_lookup_3): Use it to catch more base equivalences.
20680 Handle and pass down tbaa_p flag.
20681 (vn_reference_lookup_pieces): Adjust.
20682 (vn_reference_lookup): Remove alias-set altering, instead pass
20683 down false as tbaa_p.
20684
20685 2019-07-05 Richard Biener <rguenther@suse.de>
20686
20687 PR tree-optimization/91091
20688 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
20689 accesses can happen with -fno-strict-aliasing.
20690
20691 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
20692
20693 * tree-ssa-alias.c (alias_stats): Add
20694 nonoverlapping_component_refs_since_match_p_must_overlap.
20695 (dump_alias_stats): Print it.
20696 (nonoverlapping_component_refs_since_match_p): Add early exit.
20697 (nonoverlapping_component_refs_p): Do not account early exit.
20698
20699 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20700
20701 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
20702 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
20703 (emit_eh_dispatch): Delete.
20704 (lower_catch): Emit the eh_dispatch manually and set the location of
20705 the first catch statement onto it.
20706 (lower_eh_filter): Emit the eh_dispatch manually and set location.
20707 (lower_eh_dispatch): Propagate location.
20708 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
20709 (eliminate_build): Likewise.
20710
20711 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20712
20713 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
20714 phi nodes if possible.
20715 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
20716 location info on the newly created statement.
20717 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
20718 newly created increment if needed.
20719
20720 2019-07-04 Jakub Jelinek <jakub@redhat.com>
20721
20722 PR middle-end/78884
20723 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
20724 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
20725 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
20726 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
20727 ctx->add_safelen1 is set.
20728
20729 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
20730 GOMP_loop_start at the start of second worksharing loop in a scan.
20731 For nowait, don't emit GOMP_loop_end_nowait at the end of first
20732 worksharing loop in a scan even if there are conditional lastprivates,
20733 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
20734
20735 2019-07-04 Jan Hubicka <jh@suse.cz>
20736
20737 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
20738 Fix check for match in the ref walk.
20739
20740 2019-07-04 Martin Liska <mliska@suse.cz>
20741
20742 * tree-ssa-loop-niter.c
20743 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
20744 (estimate_numbers_of_iterations):
20745 Support __builtin_expect_with_probability for analysis
20746 of # of loop iterations.
20747
20748 2019-07-04 Alexandre Oliva <oliva@adacore.com>
20749
20750 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
20751 * except.c: Likewise.
20752 * expr.c (expand_expr_real_1): Reject it.
20753 * gimplify.c (gimplify_expr): Gimplify it, within
20754 TRY_FINALLY_EXPR.
20755 * tree-dump.c (dequeue_and_dump): Dump it.
20756 * tree-pretty-print.c (dump_generic_node): Likewise.
20757 * tree.c (block_may_fallthru): Handle it.
20758 * tree.def (EH_ELSE_EXPR): Introduce it.
20759 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
20760 with GIMPLE_EH_ELSE as try/finally/else.
20761
20762 2019-07-04 Richard Biener <rguenther@suse.de>
20763
20764 PR ipa/91062
20765 * tree-pass.h (execute_all_ipa_transforms): Add a flag
20766 parameter whether to disable GC collection.
20767 * passes.c (execute_one_ipa_transform_pass): Likewise, and
20768 honor it.
20769 (execute_all_ipa_transforms): Likewise and pass it down.
20770 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
20771 collection from applying IPA transforms.
20772 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
20773 from applying IPA transforms.
20774
20775 2019-07-04 Richard Biener <rguenther@suse.de>
20776
20777 PR tree-optimization/90911
20778 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
20779 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
20780 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
20781 scalar_loop_scaling.
20782 (vect_transform_loop): Scale scalar loop profile if needed.
20783 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
20784 the loop copy from if-conversion adjust edge probabilities
20785 and scale the vectorized loop body profile, queue the scalar
20786 profile for updating after peeling.
20787
20788 2019-07-04 Jan Hubicka <jh@suse.cz>
20789
20790 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
20791 parameters; return early for must-alias.
20792 (indirect_ref_may_alias_decl_p): Likewise; when establishing
20793 outer types match, try nonoverlapping_component_refs
20794 if must-alias is not obvious.
20795 (indirect_refs_may_alias_p): Likewise.
20796 (refs_may_alias_p_2): Likewise.
20797
20798 2019-07-04 Richard Biener <rguenther@suse.de>
20799
20800 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
20801 argument.
20802 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
20803 globals into...
20804 (struct vn_walk_cb_data): New callback data struct.
20805 (vn_reference_lookup_2): Adjust.
20806 (vn_reference_lookup_3): Likewise.
20807 (vn_reference_lookup_pieces): Likewise.
20808 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
20809 (visit_reference_op_load): Adjust.
20810
20811 2019-07-04 Jakub Jelinek <jakub@redhat.com>
20812
20813 PR tree-optimization/91063
20814 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
20815 stmt from stmts sequence before calling vect_init_vector_1.
20816 Formatting fix.
20817
20818 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20819
20820 PR target/88833
20821 * fwprop.c (reg_single_def_p): New function.
20822 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
20823 (forward_propagate_into): New parameter reg_prop_only
20824 with default value false.
20825 Propagate def's src into loop only if SET_SRC and SET_DEST
20826 of def_set have single definitions.
20827 Likewise if reg_prop_only is set to true.
20828 (fwprop): New param fwprop_addr_p.
20829 Integrate fwprop_addr into fwprop.
20830 (fwprop_addr): Remove.
20831 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
20832 to true.
20833 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
20834 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
20835 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
20836
20837 2019-07-04 Jakub Jelinek <jakub@redhat.com>
20838
20839 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
20840 in worksharing loop scans.
20841
20842 PR tree-optimization/91074
20843 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
20844 temporary.
20845
20846 PR rtl-optimization/90756
20847 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
20848 for VECTOR_TYPE_P.
20849
20850 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
20851
20852 * config/aarch64/aarch64.md: Remove redundant constraints from
20853 define_expand but keep some patterns untouched if they are
20854 specially selected by TARGET_SECONDARY_RELOAD hook.
20855 * config/aarch64/aarch64-sve.md: Likewise.
20856 * config/aarch64/atomics.md: Remove redundant constraints from
20857 define_expand.
20858 * config/aarch64/aarch64-simd.md: Likewise.
20859
20860 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
20861
20862 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
20863 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
20864 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
20865 clauses.
20866 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
20867 DARWIN_NOPIE_SPEC.
20868
20869 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
20870
20871 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
20872 (STARTFILE_SPEC): Split crt3 into a separate spec.
20873 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
20874 (DARWIN_CRT2_SPEC): New.
20875 (DARWIN_CRT3_SPEC): New.
20876 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
20877 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
20878 (DARWIN_CRT3_SPEC): New.
20879
20880 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
20881
20882 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
20883 Change the RTL attribute "length" from "4" to "*" to allow the
20884 length attribute to be adjusted automatically for prefixed load,
20885 store, and add immediate instructions.
20886 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
20887 Likewise.
20888 (extendsi<mode>2, EXTSI iterator): Likewise.
20889 (movsi_internal1): Likewise.
20890 (movsi_from_sf): Likewise.
20891 (movdi_from_sf_zero_ext): Likewise.
20892 (mov<mode>_internal): Likewise.
20893 (movcc_internal1, QHI iterator): Likewise.
20894 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
20895 (movsf_from_si): Likewise.
20896 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
20897 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
20898 (mov<mode>, FMOVE128 iterator): Likewise.
20899 (movdi_internal64): Likewise.
20900 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
20901 Likewise.
20902 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
20903 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
20904 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
20905 (vsx_splat_v4sf): Likewise.
20906
20907 2019-07-03 Mark Wielaard <mark@klomp.org>
20908
20909 PR debug/90981
20910 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
20911 DW_AT_addr_base if there is actually a .debug_addr section with
20912 addresses.
20913 (output_addr_table): Add DWARF5 table header generation here after
20914 checking there are actually any addresses from...
20915 (dwarf2out_finish): ...here.
20916
20917 2019-07-03 Richard Biener <rguenther@suse.de>
20918
20919 PR middle-end/91069
20920 * match.pd (vec_perm -> bit_insert): Fix element read from
20921 first vector.
20922
20923 2019-07-03 Martin Liska <mliska@suse.cz>
20924
20925 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
20926 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
20927 condition.
20928 * generic-match-head.c: Include dbgcnt.h.
20929 * gimple-match-head.c: Likewise.
20930
20931 2019-07-03 Martin Liska <mliska@suse.cz>
20932
20933 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
20934 (GCOV_COUNTER_V_TOPN): New.
20935 (GCOV_COUNTER_V_INDIR): Use _topn.
20936 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
20937 (GCOV_TOPN_VALUES): New.
20938 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
20939 (GCOV_TOPN_VALUES_COUNTERS): New.
20940 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
20941 * tree-profile.c:
20942 (gimple_init_gcov_profiler): Rename variables from one_value
20943 to topn_values.
20944 (gimple_gen_one_value_profiler): Remove.
20945 (gimple_gen_topn_values_profiler): New function.
20946 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
20947 names instead of SINGLE_VALUE.
20948 (stream_out_histogram_value): Likewise.
20949 (stream_in_histogram_value): Likewise.
20950 (get_most_common_single_value): Likewise.
20951 (gimple_divmod_fixed_value_transform): Likewise.
20952 (gimple_stringops_transform): Likewise.
20953 (gimple_divmod_values_to_profile): Likewise.
20954 (gimple_stringops_values_to_profile): Likewise.
20955 (gimple_find_values_to_profile): Likewise.
20956 * value-prof.h (enum hist_type): Rename to TOPN.
20957 (gimple_gen_one_value_profiler): Remove.
20958 (gimple_gen_topn_values_profiler): New.
20959
20960 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
20961
20962 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
20963 if it has the DW_AT_data_member_location attribute.
20964
20965 2019-07-03 Richard Biener <rguenther@suse.de>
20966
20967 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
20968 dumping.
20969
20970 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
20971
20972 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
20973 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
20974 (tlsdesc_small_sve_<mode>): Likewise.
20975
20976 2019-07-03 Martin Liska <mliska@suse.cz>
20977
20978 * Makefile.in: Define ZSTD_LIB.
20979 * common.opt: Adjust compression level
20980 to support also zstd levels.
20981 * config.in: Regenerate.
20982 * configure: Likewise.
20983 * configure.ac: Add --with-zstd and --with-zstd-include options
20984 and detect ZSTD.
20985 * doc/install.texi: Mention zstd dependency.
20986 * gcc.c: Print supported LTO compression algorithms.
20987 * lto-compress.c (lto_normalized_zstd_level): Likewise.
20988 (lto_compression_zstd): Likewise.
20989 (lto_uncompression_zstd): Likewise.
20990 (lto_end_compression): Dispatch in between zlib and zstd.
20991 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
20992 (lto_uncompression_zlib): Make it static.
20993 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
20994 * lto-section-in.c (lto_get_section_data): Pass info
20995 about used compression.
20996 * lto-streamer-out.c: By default use zstd when possible.
20997 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
20998 (TV_IPA_LTO_COMPRESS): Likewise for compression.
20999
21000 2019-07-03 Martin Liska <mliska@suse.cz>
21001
21002 * lto-section-in.c (lto_get_section_data): Add "lto" section.
21003 * lto-section-out.c (lto_destroy_simple_output_block): Never
21004 compress LTO_section_lto section.
21005 * lto-streamer-out.c (produce_asm): Do not set major_version
21006 and minor_version.
21007 (lto_output_toplevel_asms): Likewise.
21008 (produce_lto_section): New function.
21009 (lto_output): Call produce_lto_section.
21010 (lto_write_mode_table): Do not set major_version and
21011 minor_version.
21012 (produce_asm_for_decls): Likewise.
21013 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
21014 type.
21015 (struct lto_header): Remove.
21016 (struct lto_section): New struct.
21017 (struct lto_simple_header): Do not inherit from lto_header.
21018 (struct lto_file_decl_data): Add lto_section_header field.
21019
21020 2019-07-03 Martin Liska <mliska@suse.cz>
21021
21022 * lra-eliminations.c (eliminate_regs_in_insn): Remove
21023 dead assignemts.
21024 * reg-stack.c (check_asm_stack_operands): Likewise.
21025 * tree-ssa-structalias.c (create_function_info_for): Likewise.
21026 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
21027 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
21028 force_expand_binop.
21029
21030 2019-07-03 Martin Liska <mliska@suse.cz>
21031
21032 PR tree-optimization/90892
21033 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
21034 in string constants.
21035
21036 2019-07-03 Martin Liska <mliska@suse.cz>
21037
21038 PR middle-end/90899
21039 * multiple_target.c (create_dispatcher_calls): Add to comdat
21040 group only if set for ifunc.
21041
21042 2019-07-03 Martin Liska <mliska@suse.cz>
21043
21044 PR target/88056
21045 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
21046 Define local_object_name in outer scope in order to handle
21047 use-after-scope issue.
21048
21049 2019-07-03 Martin Liska <mliska@suse.cz>
21050
21051 * common.opt: Add fprofile-note.
21052 * coverage.c (coverage_init): Append the option
21053 to bbg_file_name.
21054 * doc/invoke.texi: Document -fprofile-note.
21055
21056 2019-07-03 Jakub Jelinek <jakub@redhat.com>
21057
21058 PR tree-optimization/91033
21059 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
21060 vect_analyze_data_refs): Add bool * arguments.
21061 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
21062 if failure is due to scatter/gather, set *fatal to false if non-NULL.
21063 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21064 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
21065 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
21066 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
21067 vect_analyze_data_refs caller.
21068
21069 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
21070 clause.
21071 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
21072 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
21073 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
21074 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
21075 OMP_CLAUSE__SCANTEMP_ entry.
21076 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
21077 * tree-pretty-print.c (dump_omp_clause): Likewise.
21078 * tree-nested.c (convert_nonlocal_omp_clauses,
21079 convert_local_omp_clauses): Likewise.
21080 * omp-general.h (struct omp_for_data): Add have_scantemp and
21081 have_nonctrl_scantemp members.
21082 * omp-general.c (omp_extract_for_data): Initialize them.
21083 * omp-low.c (struct omp_context): Add scan_exclusive member.
21084 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
21085 result again with GF_OMP_FOR_KIND_MASK. Initialize also
21086 ctx->scan_exclusive.
21087 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
21088 of !ctx->scan_inclusive.
21089 (lower_rec_input_clauses): Simplify gimplification of dtors using
21090 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
21091 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
21092 loops. Don't add barrier for reduction_omp_orig_ref if
21093 ctx->scan_??xclusive.
21094 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
21095 (lower_omp_scan): Use ctx->scan_exclusive instead
21096 of !ctx->scan_inclusive. Handle worksharing loops with inscan
21097 reductions. Use new_vard != new_var instead of repeated
21098 omp_is_reference calls.
21099 (omp_find_scan, lower_omp_for_scan): New functions.
21100 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
21101 inscan reductions.
21102 * omp-expand.c (expand_omp_scantemp_alloc): New function.
21103 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
21104 and fd->have_scantemp.
21105
21106 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
21107 on worksharing loop propagate it as shared clause to containing
21108 combined parallel.
21109
21110 * omp-expand.c (expand_omp_for_static_nochunk,
21111 expand_omp_for_static_chunk): For nowait worksharing loop with
21112 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
21113 at the end.
21114
21115 2019-07-02 qing zhao <qing.zhao@oracle.com>
21116
21117 PR preprocessor/90581
21118 * doc/cppopts.texi: Add document for -fmax-include-depth.
21119 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
21120
21121 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
21122
21123 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
21124 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
21125 (mmx_packssdw): Ditto.
21126 (mmx_punpckhbw): Ditto.
21127 (mmx_punpcklbw): Ditto.
21128 (mmx_punpckhwd): Ditto.
21129 (mmx_punpcklwd): Ditto.
21130 (mmx_punpckhdq): Ditto.
21131 (mmx_punpckldq): Ditto.
21132 (*vec_dupv4hi): Ditto.
21133 (*vec_dupv2si): Ditto.
21134 (mmx_pmovmskb): Ditto.
21135 * config/i386/sse.md (sse_cvtpi2ps): Use
21136 TARGET_SSE2 && SSE_REG_P in split condition.
21137 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
21138 TARGET_SSSE3 && SSE_REGNO_P in split condition.
21139 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
21140 (ssse3_pshufbv8qi3): Ditto.
21141 (ssse3_palignrdi): Ditto.
21142
21143 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
21144
21145 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
21146 with inlined save and restore.
21147
21148 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
21149
21150 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
21151 to be inserted on single successor edge of the entry block. Then call
21152 commit_edge_insertions instead of inserting the instructions manually.
21153 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
21154 RTL expansion and rebuild jump labels chain.
21155
21156 2019-07-02 Richard Biener <rguenther@suse.de>
21157
21158 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
21159 TI_CHREC_KNOWN.
21160 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
21161 Define here.
21162 * tree.c (build_common_tree_nodes): Initialize them.
21163 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
21164 Make declarations comments.
21165 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
21166 chrec_known): Remove definitions.
21167 (initialize_scalar_evolutions_analyzer): Remove.
21168 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
21169 * tree-streamer.c (preload_common_nodes): Do not preload
21170 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
21171
21172 2019-07-02 Jan Hubicka <jh@suse.cz>
21173
21174 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
21175 sanity check.
21176
21177 2019-07-02 Jan Hubicka <jh@suse.cz>
21178
21179 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
21180 to ..
21181 (nonoverlapping_component_refs_since_match_p): ... this one;
21182 handle also non-decl bases; return -1 if search gave up.
21183 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
21184 nonoverlapping_component_refs_of_decl_p_no_alias to
21185 nonoverlapping_component_refs_since_match_p_may_alias,
21186 nonoverlapping_component_refs_since_match_p_no_alias.
21187 (dump_alias_stats): Update dumping.
21188 (aliasing_matching_component_refs_p): Break out from ...;
21189 dispatch to nonoverlapping_component_refs_for_decl_p
21190 and nonoverlapping_component_refs_since_match_p.
21191 (aliasing_component_refs_p): ... here; call
21192 nonoverlapping_component_refs_p in scenarios where we can not
21193 precisely determine base match.
21194 (decl_refs_may_alias_p): Use
21195 nonoverlapping_component_refs_since_match_p.
21196 (indirect_ref_may_alias_decl_p): Do not call
21197 nonoverlapping_component_refs_p.
21198 (indirect_refs_may_alias_p): Likewise.
21199
21200 2019-07-02 Jan Hubicka <jh@suse.cz>
21201
21202 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
21203 to clobber of return value.
21204
21205 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21206
21207 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
21208 for is_neon_type instructions that have not already been categorized.
21209
21210 2019-07-02 Richard Biener <rguenther@suse.de>
21211
21212 PR tree-optimization/58483
21213 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
21214 for MEM_REF base hashing.
21215 (equal_mem_array_ref_p): Likewise for base comparison.
21216
21217 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21218
21219 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
21220 parameterized name.
21221 (signbit<mode>2): Use that name. Simplify.
21222
21223 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
21224
21225 PR middle-end/66726
21226 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
21227 Tune heuristic from PR71016 to allow MIN / MAX.
21228
21229 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21230
21231 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
21232 parameterized name.
21233 (abs<mode>2): Use that name. Simplify.
21234
21235 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21236
21237 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
21238 parameterized name.
21239 (neg<mode>2): Use that name. Simplify.
21240
21241 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21242
21243 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
21244 name.
21245 (abs<mode>2): Use that name. Simplify.
21246
21247 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21248
21249 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
21250 name.
21251 (neg<mode>2): Use that name. Simplify.
21252
21253 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
21254
21255 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
21256 ("enabled" attribute): Handle sse_noavx isa attribute.
21257 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
21258 Use TARGET_SSE && SSE_REGNO_P in split condition.
21259 (*vec_dupv2sf): Ditto.
21260
21261 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21262
21263 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
21264 name.
21265 (floatsi<mode>2): Use that name. Simplify.
21266
21267 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21268
21269 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
21270 parameterized name.
21271 (extenddf<mode>2_vsx): Make this a parameterized name.
21272 (extenddf<mode>2): Use those names. Simplify.
21273
21274 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21275
21276 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
21277 name.
21278 (eh_return): Use that name. Simplify.
21279
21280 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21281
21282 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
21283 (doloop_end): Use that name. Simplify.
21284
21285 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21286
21287 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
21288 parameterized name.
21289 (indirect_jump): Use that name. Simplify.
21290
21291 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21292
21293 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
21294 parameterized name.
21295 (abs<mode>2): Use that name. Simplify.
21296
21297 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21298
21299 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
21300 parameterized name.
21301 (fix_trunc<mode>si2): Use that name. Simplify.
21302
21303 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21304
21305 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
21306 (allocate_stack): Use that name. Simplify.
21307
21308 2019-07-01 Martin Sebor <msebor@redhat.com>
21309
21310 PR middle-end/90923
21311 * hash-map.h (hash_map::put): On insertion invoke element ctor.
21312 (hash_map::get_or_insert): Same. Reformat comment.
21313 * hash-set.h (hash_set::add): On insertion invoke element ctor.
21314 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
21315 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
21316 * hash-table.h (hash_table::operator=): Prevent copy assignment.
21317 (hash_table::hash_table (const hash_table&)): Use copy ctor
21318 instead of assignment to copy elements.
21319
21320 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
21321 John David Anglin <danglin@gcc.gnu.org>
21322
21323 PR target/90963
21324 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
21325 using saved frame pointer.
21326
21327 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
21328
21329 PR middle-end/64242
21330 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
21331 Add frame clobber and schedule blockage.
21332
21333 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
21334
21335 * doc/invoke.texi (Link Options): Further editorial changes to
21336 -flinker-output docs.
21337
21338 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21339
21340 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
21341 Load both operands of a PLUS into registers separately.
21342
21343 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
21344
21345 * config/s390/vector.md: Fix shift count operand printing.
21346
21347 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21348
21349 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
21350
21351 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21352
21353 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
21354 Use recog_data to test for an output operand.
21355
21356 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21357
21358 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
21359 exclude any others that are disparaged or that are bound to need
21360 a reload or spill.
21361 (ira_get_dup_out_num): Expand comment.
21362
21363 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21364
21365 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
21366 constraint string for each operand/alternative combo. Only handle
21367 '%' at the start of constraint strings, and look for it outside
21368 the main loop.
21369
21370 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21371
21372 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
21373 alternative_mask instead of HARD_REG_SET to represent a
21374 bitmask of alternatives.
21375 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21376 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
21377
21378 2019-07-01 Martin Liska <mliska@suse.cz>
21379
21380 * edit-context.c (test_applying_fixits_unreadable_file): Do not
21381 use () for a constructor call.
21382 (test_applying_fixits_line_out_of_range): Likewise.
21383 * ggc-page.c (alloc_page): Use (void *) for %p printf format
21384 argument.
21385 (free_page): Likewise.
21386
21387 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
21388
21389 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
21390 parameter names to match usage (no functional change).
21391 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
21392
21393 2019-07-01 Richard Biener <rguenther@suse.de>
21394
21395 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
21396 pass parameter.
21397 (pass_fre::execute): Honor it.
21398 * passes.def: Adjust pass_fre invocations to allow iterating,
21399 add non-iterating pass_fre before late threading/dom.
21400
21401 2019-07-01 Richard Biener <rguenther@suse.de>
21402
21403 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
21404 TARGET_MEM_REF handling to also handle address-taken ones.
21405
21406 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
21407
21408 * doc/sourcebuild.texi (Effective-Target Keywords, Other
21409 hardware attributes): Document avx512vp2intersect.
21410
21411 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
21412
21413 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
21414 (abs<mode>2): New expander.
21415 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
21416 Use CODE_FOR_ssse3_absv8qi2.
21417 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
21418 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
21419
21420 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
21421
21422 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
21423 to sse, sse_noavx and avx. Update all uses.
21424
21425 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
21426
21427 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
21428 (*mmx_<plusminus_insn><mode>3): Ditto.
21429 (*mmx_mulv4hi3"): Ditto.
21430 (*mmx_smulv4hi3_highpart): Ditto.
21431 (*mmx_umulv4hi3_highpart): Ditto.
21432 (*mmx_pmaddwd): Ditto.
21433 (*sse2_umulv1siv1di3): Ditto.
21434 (*mmx_<code>v4hi3): Ditto.
21435 (*mmx_<code>v8qi3): Ditto.
21436 (mmx_ashr<mode>3): Ditto.
21437 ("mmx_<shift_insn><mode>3): Ditto.
21438 (*mmx_eq<mode>3): Ditto.
21439 (mmx_gt<mode>3): Ditto.
21440 (mmx_andnot<mode>3): Ditto.
21441 (*mmx_<code><mode>3): Ditto.
21442 (*mmx_pinsrw): Ditto.
21443 (*mmx_pextrw): Ditto.
21444 (mmx_pshufw_1): Ditto.
21445 (*mmx_uavgv8qi3): Ditto.
21446 (*mmx_uavgv4hi3): Ditto.
21447 ("mmx_psadbw): Ditto.
21448 * config/i386/sse.md (sse_cvtps2pi): Ditto.
21449 (sse_cvttps2pi): Ditto.
21450 (ssse3_pmaddubsw): Ditto.
21451 (*ssse3_pmulhrswv4hi3): Ditto.
21452 (ssse3_psign<mode>3): Ditto.
21453
21454 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
21455
21456 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
21457 adjustment for bit-fields to all aggregate types.
21458
21459 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
21460
21461 * config/rs6000/predicates.md (pcrel_address): Use
21462 SYMBOL_REF_LOCAL_P to determine if a label is local.
21463 (pcrel_external_address): New predicate.
21464 (non_prefixed_mem_operand): Delete, predicate not used.
21465 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
21466 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
21467 addressing.
21468 (SYMBOL_REF_PCREL_P): Likewise.
21469
21470 PR target/91009
21471 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
21472 alternative.
21473 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
21474 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
21475 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
21476
21477 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
21478
21479 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
21480 override on extra_headers.
21481
21482 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
21483
21484 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
21485 * config/darwin-driver.c (darwin_default_min_version): Remove newline
21486 from warning.
21487 (darwin_driver_init): Likewise.
21488
21489 2019-06-28 Jan Beulich <jbeulich@suse.com>
21490
21491 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
21492 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
21493 Eliminate redundant alternative.
21494
21495 2019-06-28 Jan Beulich <jbeulich@suse.com>
21496
21497 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
21498 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
21499 Use vector_operand.
21500
21501 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
21502
21503 * config/arc/arc.c (arc_rtx_costs): All short instructions are
21504 having a lower cost regardless of the speed option.
21505
21506 2019-06-28 Jan Beulich <jbeulich@suse.com>
21507
21508 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
21509 vector_operand plus, on both alternatives, "Bm" constraint.
21510
21511 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
21512
21513 * config/arm/arm.md: Remove redundant constraints from
21514 define_expand but leave reload_inm and reload_outm patterns
21515 untouched since they need special constraints to work.
21516 * config/arm/arm-fixed.md: Remove redundant constraints from
21517 define_expand.
21518 * config/arm/iwmmxt.md: Likewise.
21519 * config/arm/neon.md: Likewise.
21520 * config/arm/sync.md: Likewise.
21521 * config/arm/thumb1.md: Likewise.
21522 * config/arm/vec-common.md: Likewise.
21523
21524 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
21525
21526 * doc/install.texi: Document --disable-tm-clone-registry.
21527
21528 2019-06-27 Jakub Jelinek <jakub@redhat.com>
21529
21530 PR c++/91024
21531 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
21532 statements.
21533
21534 PR tree-optimization/91010
21535 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
21536 return true. Otherwise, don't call operand_equal_p if offset1 or
21537 offset2 is NULL and just return false.
21538
21539 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
21540
21541 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
21542 user-specified float mode choice for kernel mode code.
21543
21544 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
21545
21546 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
21547 spec.
21548
21549 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
21550
21551 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
21552 use longcall for 64b code.
21553
21554 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
21555
21556 * builtins.c (get_memory_rtx): Fix comment.
21557 * optabs.def (movmem_optab): Change to cpymem_optab.
21558 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
21559 (emit_block_move_hints): Change movmem to cpymem.
21560 * defaults.h: Change movmem to cpymem.
21561 * targhooks.c (get_move_ratio): Change movmem to cpymem.
21562 (default_use_by_pieces_infrastructure_p): Ditto.
21563 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
21564 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
21565 to cpymem.
21566 * config/aarch64/aarch64.h: Change movmem to cpymem.
21567 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
21568 * config/alpha/alpha.h: Change movmem to cpymem in comment.
21569 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
21570 movmem to cpymem.
21571 * config/arc/arc-protos.h: Change movmem to cpymem.
21572 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
21573 * config/arc/arc.h: Change movmem to cpymem in comment.
21574 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
21575 * config/arm/arm-protos.h: Change movmem to cpymem in names.
21576 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
21577 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
21578 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
21579 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
21580 * config/avr/avr-protos.h: Change movmem to cpymem.
21581 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
21582 avr_out_movmem): Change movmem to cpymem.
21583 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
21584 Change movmem to cpymem.
21585 * config/bfin/bfin-protos.h: Change movmem to cpymem.
21586 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
21587 Change movmem to cpymem.
21588 * config/bfin/bfin.h: Change movmem to cpymem in comment.
21589 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
21590 * config/c6x/c6x-protos.h: Change movmem to cpymem.
21591 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
21592 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
21593 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
21594 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
21595 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
21596 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
21597 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
21598 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
21599 expand_small_cpymem_or_setmem,
21600 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
21601 expand_set_or_cpymem_constant_prologue,
21602 ix86_expand_set_or_cpymem): Change movmem to cpymem.
21603 * config/i386/i386-protos.h: Change movmem to cpymem.
21604 * config/i386/i386.h: Change movmem to cpymem in comment.
21605 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
21606 (setmem<mode>): Change expansion function name.
21607 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
21608 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
21609 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
21610 * config/m32c/m32c-protos.h: Change movmem to cpymem.
21611 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
21612 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
21613 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
21614 to cpymem.
21615 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
21616 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
21617 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
21618 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
21619 Change movmem to cpymem.
21620 * config/mips/mips.h: Change movmem to cpymem.
21621 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
21622 * config/nds32/nds32-memory-manipulation.c
21623 (nds32_expand_movmemsi_loop_unknown_size,
21624 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
21625 nds32_expand_movmemsi_unroll,
21626 nds32_expand_movmemsi): Change movmem to cpymem.
21627 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
21628 * config/nds32/nds32-protos.h: Change movmem to cpymem.
21629 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
21630 (pa_adjust_insn_length): Change call to compute_movmem_length.
21631 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
21632 movmemdi, movmemdi_prereload,
21633 movmemdi_postreload): Change movmem to cpymem.
21634 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
21635 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
21636 * config/riscv/riscv.c: Change movmem to cpymem in comment.
21637 * config/riscv/riscv.h: Change movmem to cpymem.
21638 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
21639 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
21640 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
21641 movmem to cpymem.
21642 * config/s390/s390-protos.h: Change movmem to cpymem.
21643 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
21644 s390_expand_insv): Change movmem to cpymem.
21645 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
21646 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
21647 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
21648 * config/sparc/sparc.h: Change movmem to cpymem in comment.
21649 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
21650 for nonexistent function.
21651 * config/vax/vax.h: Change movmem to cpymem in comment.
21652 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
21653 * config/visium/visium.h: Change movmem to cpymem in comment.
21654 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
21655 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
21656 * doc/md.texi: Change movmem to cpymem and update description to match.
21657 * doc/rtl.texi: Change movmem to cpymem.
21658 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
21659 * doc/tm.texi: Regenerate.
21660
21661 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
21662
21663 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
21664 -fvariable-expansion-in-unroller by default.
21665 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
21666 default for Power.
21667
21668 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
21669
21670 Revert
21671 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
21672 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
21673
21674 * config.gcc(rs6000-*-*): Define target_gtfiles.
21675
21676 2019-06-27 Jan Hubicka <jh@suse.cz>
21677
21678 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
21679 (add_type_duplicate): When odr hash is not allocated, to nothing.
21680 (odr_based_tbaa_p): New function.
21681 (set_type_canonical_for_odr_type): New function.
21682 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
21683 set_type_canonical_for_odr_type): New.
21684 * tree.c (gimple_canonical_types_compatible_p): ODR types with
21685 ODR based TBAA are not equivalent to non-ODR types.
21686
21687 2019-06-27 Martin Liska <mliska@suse.cz>
21688
21689 PR tree-optimization/90974
21690 PR rtl-optimization/90975
21691 PR rtl-optimization/90976
21692 PR target/91016
21693 PR tree-optimization/91017
21694 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
21695 unused tmp.
21696 * lra.c (lra_set_insn_recog_data): Remove a leftover from
21697 initial commit of IRA.
21698 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
21699 of op0 and op1.
21700 * tree-vect-loop.c (vect_create_epilog_for_reduction):
21701 Remove unused mode1.
21702 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
21703 to new_stmt_info.
21704
21705 2019-06-27 Jakub Jelinek <jakub@redhat.com>
21706
21707 PR target/90991
21708 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
21709 instead of register_operand for operands[1], add m to its constraints
21710 if operands[2] uses "C" constraint. Ensure in condition that if
21711 operands[2] is not 0, then operands[1] is not a MEM. For last two
21712 alternatives, use unaligned loads instead of aligned if operands[1] is
21713 misaligned_operand.
21714
21715 2019-06-27 Martin Liska <mliska@suse.cz>
21716
21717 * asan.c (asan_emit_allocas_unpoison): Remove obviously
21718 dead assignments.
21719 * bt-load.c (move_btr_def): Likewise.
21720 * builtins.c (expand_builtin_apply_args_1): Likewise.
21721 (expand_builtin_apply): Likewise.
21722 * cfgexpand.c (expand_asm_stmt): Likewise.
21723 (construct_init_block): Likewise.
21724 * cfghooks.c (verify_flow_info): Likewise.
21725 * cfgloopmanip.c (remove_path): Likewise.
21726 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
21727 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
21728 * combine.c (simplify_if_then_else): Likewise.
21729 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
21730 (choose_basereg): Likewise.
21731 (ix86_expand_prologue): Likewise.
21732 (ix86_preferred_output_reload_class): Likewise.
21733 * cselib.c (cselib_record_sets): Likewise.
21734 * df-scan.c (df_scan_alloc): Likewise.
21735 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
21736 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
21737 * emit-rtl.c (try_split): Likewise.
21738 * graphite-scop-detection.c (assign_parameter_index_in_region):
21739 Likewise.
21740 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
21741 * ira-color.c (setup_profitable_hard_regs): Likewise.
21742 * ira.c (rtx_moveable_p): Likewise.
21743 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
21744 * read-rtl.c (read_subst_mapping): Likewise.
21745 * regrename.c (scan_rtx): Likewise.
21746 * reorg.c (fill_slots_from_thread): Likewise.
21747 * tree-inline.c (tree_function_versioning): Likewise.
21748 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
21749 * tree-ssa-sink.c (statement_sink_location): Likewise.
21750 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
21751 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
21752 (vect_create_epilog_for_reduction): Likewise.
21753 * tree.c (build_nonstandard_integer_type): Likewise.
21754
21755 2019-06-27 Richard Biener <rguenther@suse.de>
21756
21757 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
21758
21759 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
21760
21761 PR tree-optimization/89772
21762 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
21763 out-of-bound accesses checking.
21764
21765 2019-06-27 Martin Liska <mliska@suse.cz>
21766
21767 PR tree-optimization/91014
21768 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
21769 when LHS is NULL_TREE.
21770
21771 2019-06-27 Martin Liska <mliska@suse.cz>
21772
21773 * symbol-summary.h (traverse): Pass
21774 argument a to the call of callback.
21775 (gt_ggc_mx): Mark arguments as unused.
21776 (gt_pch_nx): Likewise.
21777
21778 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
21779
21780 PR target/62147
21781 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
21782 finiteness.
21783
21784 2019-06-26 Jeff Law <law@redhat.com>
21785
21786 PR tree-optimization/90883
21787 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
21788 (delete_dead_or_redundant_assignment): Likewise.
21789
21790 PR tree-optimization/90883
21791 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
21792 * tree-ssa-dse.c: Update various comments to distinguish between
21793 dead and redundant stores.
21794 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
21795 (dse_optimize_redundant_stores): New function.
21796 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
21797 Distinguish between dead and redundant calls in dump output. All
21798 callers updated.
21799 (delete_dead_or_redundant_assignment): Similarly for assignments.
21800 (dse_optimize_stmt): Handle _CHK variants. For statements which
21801 store 0 into multiple memory locations, try to prove a subsequent
21802 store is redundant.
21803
21804 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
21805
21806 PR target/89021
21807 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
21808 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
21809
21810 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
21811
21812 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
21813 (branch_islands): New extern.
21814 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
21815 * config/rs6000/rs6000.c: .. here.
21816
21817 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
21818
21819 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
21820 (powerpc*-*-*) ... to here.
21821
21822 2019-06-26 Jeff Law <law@redhat.com>
21823
21824 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
21825 memcpy, memmove and memset builtins.
21826 (maybe_trim_memstar_call): Likewise.
21827
21828 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
21829
21830 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
21831
21832 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
21833
21834 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
21835
21836 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
21837
21838 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
21839 declaration.
21840 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
21841 "static".
21842 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
21843 declaration.
21844
21845 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
21846
21847 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
21848
21849 2019-06-26 Richard Biener <rguenther@suse.de>
21850
21851 PR ipa/90982
21852 * tree-inline.c (remap_ssa_name): Copy SSA range info.
21853
21854 2019-06-26 Richard Biener <rguenther@suse.de>
21855
21856 * lto-streamer.h (lto_bitmap_alloc): Remove.
21857 (lto_bitmap_free): Likewise.
21858 * lto-streamer.c (lto_bitmap_alloc): Remove.
21859 (lto_bitmap_free): Likewise.
21860 (lto_obstack): Likewise.
21861 (lto_obstack_initialized): Likewise.
21862 * lto-streamer-out.c (lto_output): Use own obstack for local
21863 bitmap, free it consistently.
21864
21865 2019-06-26 Jakub Jelinek <jakub@redhat.com>
21866
21867 PR target/90991
21868 * config/i386/sse.md
21869 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
21870 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
21871 insns if operands[2] is misaligned_operand.
21872
21873 2019-06-26 Li Jia He <helijia@linux.ibm.com>
21874
21875 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
21876 TARGET_POWERPC64.
21877 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
21878 to GPR.
21879
21880 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
21881
21882 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
21883
21884 2019-06-26 Martin Liska <mliska@suse.cz>
21885
21886 PR tree-optimization/90973
21887 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
21888 epilogue_cost_vec instead of prologue_cost_vec for
21889 a epilogue cost.
21890
21891 2019-06-26 Martin Liska <mliska@suse.cz>
21892
21893 * bb-reorder.c (connect_better_edge_p): Add missing else
21894 statement in the middle of if-else statements.
21895
21896 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
21897 H.J. Lu <hongjiu.lu@intel.com>
21898 Olga Makhotina <olga.makhotina@intel.com>
21899
21900 * common/config/i386/i386-common.c
21901 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
21902 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
21903 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
21904 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
21905 (ix86_handle_option): Handle -mavx512vp2intersect.
21906 * config/i386/avx512vp2intersectintrin.h: New.
21907 * config/i386/avx512vp2intersectvlintrin.h: New.
21908 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
21909 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21910 AVX512VP2INTERSECT.
21911 * config/i386/i386-builtin-types.def: Add new types.
21912 * config/i386/i386-builtin.def: Add new builtins.
21913 * config/i386/i386-builtins.c: (enum processor_features): Add
21914 F_AVX512VP2INTERSECT.
21915 (static const _isa_names_table isa_names_table): Ditto.
21916 * config/i386/i386-c.c (ix86_target_macros_internal): Define
21917 __AVX512VP2INTERSECT__.
21918 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
21919 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
21920 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
21921 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
21922 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
21923 * config/i386/i386-options.c (ix86_target_string): Add
21924 -mavx512vp2intersect.
21925 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
21926 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
21927 P2HImode and P2QImode.
21928 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
21929 number for P2QImode and P2HImode.
21930 (ix86_regmode_natural_size): New function.
21931 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
21932 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
21933 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
21934 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
21935 * config/i386/i386.opt: Add -mavx512vp2intersect.
21936 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
21937 avx512vp2intersectvlintrin.h.
21938 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
21939 (define_mode_iterator VI48_AVX512VP2VL): New.
21940 (avx512vp2intersect_2intersect<mode>,
21941 avx512vp2intersect_2intersectv16si): New define_insn patterns.
21942 * config.gcc: Add avx512vp2intersectvlintrin.h and
21943 avx512vp2intersectintrin.h to extra_headers.
21944 * doc/invoke.texi: Document -mavx512vp2intersect.
21945
21946 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
21947
21948 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
21949
21950 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
21951
21952 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
21953 savres_routine_syms, savres_routine_name, morestack_ref,
21954 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
21955 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
21956 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
21957 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
21958 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
21959 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
21960 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
21961 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
21962 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
21963 get_stack_clash_protection_probe_interval,
21964 get_stack_clash_protection_guard_size,
21965 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
21966 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
21967 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
21968 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
21969 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
21970 gen_frame_mem_offset, rs6000_savres_routine_name,
21971 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
21972 ptr_regno_for_savres, rs6000_emit_savres_rtx,
21973 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
21974 rs6000_global_entry_point_prologue_needed_p,
21975 rs6000_get_separate_components, rs6000_components_for_bb,
21976 rs6000_disqualify_components, rs6000_emit_prologue_components,
21977 rs6000_emit_epilogue_components, rs6000_set_handled_components,
21978 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
21979 rs6000_output_savres_externs, rs6000_output_function_prologue,
21980 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
21981 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
21982 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
21983 rs6000_output_function_epilogue, gen_add3_const,
21984 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
21985 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
21986 to rs6000-logue.c.
21987 (machine_function): Moved to rs6000.h.
21988 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
21989 rs6000-internal.h.
21990 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
21991 savres_routine_syms, savres_routine_name, morestack_ref,
21992 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
21993 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
21994 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
21995 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
21996 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
21997 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
21998 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
21999 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22000 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22001 get_stack_clash_protection_probe_interval,
22002 get_stack_clash_protection_guard_size,
22003 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22004 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22005 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22006 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22007 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22008 gen_frame_mem_offset, rs6000_savres_routine_name,
22009 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22010 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22011 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22012 rs6000_global_entry_point_prologue_needed_p,
22013 rs6000_get_separate_components, rs6000_components_for_bb,
22014 rs6000_disqualify_components, rs6000_emit_prologue_components,
22015 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22016 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22017 rs6000_output_savres_externs, rs6000_output_function_prologue,
22018 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22019 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22020 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22021 rs6000_output_function_epilogue, gen_add3_const,
22022 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22023 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22024 to here from rs6000.c.
22025 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
22026 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
22027 quad_address_offset_p) Moved to here from rs6000.c.
22028 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
22029 * config/config.gcc: Add new source file rs6000-logue.c to garbage
22030 collector.
22031
22032 2019-06-25 Martin Liska <mliska@suse.cz>
22033
22034 * hash-table.c (hashtab_chk_error): Move here from ...
22035 * hash-table.h (hashtab_chk_error): ... here.
22036
22037 2019-06-25 Martin Liska <mliska@suse.cz>
22038
22039 PR tree-optimization/90978
22040 * df-scan.c (df_update_entry_block_defs): Remove dead else
22041 branch.
22042 (df_update_exit_block_uses): Likewise.
22043
22044 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
22045 Andrew Stubbs <ams@codesourcery.com>
22046
22047 * config.gcc (thread_file): Set to gcn for AMD GCN.
22048 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
22049 (TARGET_EMUTLS_VAR_INIT): New hook.
22050
22051 2019-06-25 Martin Jambor <mjambor@suse.cz>
22052
22053 PR ipa/90939
22054 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
22055
22056 2019-06-25 Richard Biener <rguenther@suse.de>
22057
22058 PR tree-optimization/90930
22059 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
22060 into parallel form in the last pass instance.
22061
22062 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
22063
22064 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
22065 (arc_legitimize_pic_address): Simplify and cleanup the function.
22066 (SYMBOLIC_CONST): Remove.
22067 (prepare_pic_move): Likewise.
22068 (prepare_move_operands): Handle complex mov cases here.
22069 (arc_legitimize_address_0): Remove call to
22070 arc_legitimize_pic_address.
22071 (arc_legitimize_address): Remove call to
22072 arc_legitimize_tls_address.
22073 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
22074 (movhi_insn): Likewise.
22075
22076 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22077
22078 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
22079 PTRDIFF_TYPE.
22080 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
22081 format of "__intN" types for UINTMAX_TYPE.
22082 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
22083 format of "__intN" types for SIZETYPE.
22084 * tree.c (build_common_tree_nodes): Accept "__intN__"
22085 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
22086 * doc/invoke.texi: Document that __intN__ disables pedantic
22087 warnings.
22088
22089 2019-06-25 Jan Hubicka <jh@suse.cz>
22090
22091 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
22092 base2_alias_set is non-zero before doing TBAA based disambiguation.
22093
22094 2019-06-25 Martin Liska <mliska@suse.cz>
22095
22096 PR tree-optimization/90973
22097 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
22098 of prologue and epilogue.
22099
22100 2019-06-24 Jan Hubicka <jh@suse.cz>
22101
22102 * ipa-utils.h (type_with_linkage_p): Verify that type is
22103 CXX_ODR_P.
22104 (odr_type_p): Remove extra return.
22105 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
22106 hash STRING_FLAG only for arrays and integers.
22107 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
22108 Update analogously.
22109 * tree-streamer-out.c (pack_ts_type_common_value_fields):
22110 Likewise.
22111 * print-tree.c (print_node): Print cxx-odr-p
22112 and string-flag.
22113 * tree.c (need_assembler_name_p): Also check that type
22114 is CXX_ODR_TYPE_P
22115 (verify_type_variant): Update verification of SRING_FLAG;
22116 also check CXX_ODR_P.
22117 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
22118 (TYPE_STRING_FLAG): Use it.
22119 (TYPE_CXX_ODR_P): New macro.
22120 * dwarf2out.c (gen_array_type_die): First check that type
22121 is an array and then test string flag.
22122
22123 2019-06-24 Richard Biener <rguenther@suse.de>
22124
22125 PR tree-optimization/90972
22126 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
22127 in common code, dealing with STRING_CST properly.
22128
22129 2019-06-24 Richard Biener <rguenther@suse.de>
22130
22131 PR tree-optimization/90930
22132 PR tree-optimization/90316
22133 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
22134 decrement of limit.
22135
22136 2019-06-24 Martin Sebor <msebor@redhat.com>
22137
22138 * tree-pretty-print.h: Remove unnecessary punctuation characters
22139 from a diagnostic.
22140 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
22141
22142 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
22143
22144 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
22145 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
22146 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
22147
22148 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
22149
22150 * config/rs6000/darwin.h: Handle GCC target pragma.
22151
22152 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
22153
22154 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
22155
22156 2019-06-22 Jeff Law <law@redhat.com>
22157
22158 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22159
22160 2019-06-22 Jan Hubicka <jh@suse.cz>
22161
22162 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
22163 give up on bitfields; continue searching for different refs
22164 appearing later.
22165
22166 2019-06-21 Jakub Jelinek <jakub@redhat.com>
22167
22168 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
22169 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
22170 containing the offset as possible simd lane access. Look through
22171 widening conversion. Move the
22172 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
22173
22174 2019-06-21 Richard Biener <rguenther@suse.de>
22175
22176 PR tree-optimization/90930
22177 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
22178 flag on new stmts to avoid re-processing them.
22179
22180 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
22181
22182 PR c++/90875 - added -Wswitch-outside-range option
22183 * doc/invoke.texi (Wswitch-outside-range): Document.
22184
22185 2019-06-21 Jeff Law <law@redhat.com>
22186
22187 PR tree-optimization/90949
22188 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
22189 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
22190
22191 2019-06-21 Richard Biener <rguenther@suse.de>
22192
22193 PR debug/90914
22194 * dwarf2out.c (prune_unused_types_walk): Always consider
22195 function-local extern declarations as used.
22196
22197 2019-06-21 Richard Biener <rguenther@suse.de>
22198
22199 PR tree-optimization/90913
22200 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
22201 the scalar variant of if-conversion versioning.
22202
22203 2019-06-21 Jakub Jelinek <jakub@redhat.com>
22204
22205 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
22206 create another "omp scan inscan exclusive" array if
22207 !ctx->scan_inclusive.
22208 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
22209 (lower_omp_scan): Likewise.
22210 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
22211 2-bit bitfield for simd_lane_access_p member.
22212 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
22213 aux == (void *)-4 as simd lane access.
22214 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
22215 comment with permutations to show the canonical permutation order.
22216 (vectorizable_scan_store): Handle exclusive scan.
22217 (vectorizable_store): Call vectorizable_scan_store even for
22218 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
22219
22220 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
22221 "omp simd array" arrays with one byte elements.
22222
22223 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
22224
22225 * config/alpha/alpha.md (@unaligned_store<mode>):
22226 Rename from unaligned_store<mode>.
22227 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
22228 * config/alpha/sync.md (@load_locked_<mode>): Rename
22229 from load_locked_<mode>.
22230 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
22231 (@atomic_compare_and_swap<mode>_1): Rename
22232 from atomic_compare_and_swap<mode>_1.
22233 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
22234 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
22235 Use gen_reload_in_aligned and gen_unaligned_store.
22236 (emit_load_locked): Remove.
22237 (emit_store_conditional): Ditto.
22238 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
22239 (alpha_split_compare_and_swap): Ditto.
22240 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
22241 (alpha_split_compare_and_swap_12): Use gen_load_locked
22242 and gen_store_conditional.
22243 (alpha_split_atomic_exchange): Ditto.
22244 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
22245 (alpha_split_atomic_exchange_12): Use gen_load_locked
22246 and gen_store_conditional.
22247
22248 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
22249
22250 * config/aarch64/aarch64-errata.h: New file.
22251 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
22252 (CA53_ERR_843419_SPEC): Delete.
22253 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
22254 * config/aarch64/aarch64-linux.h: Likewise.
22255 * config/aarch64/aarch64-netbsd.h: Likewise.
22256 * config/aarch64/aarch64-freebsd.h: Likewise.
22257
22258 2019-06-20 Marek Polacek <polacek@redhat.com>
22259
22260 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
22261
22262 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
22263
22264 * config/rs6000/rs6000.md (isa attribute): Add support for
22265 for a future processor.
22266
22267 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
22268
22269 PR target/54855
22270 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
22271 standard scalar operation pattern for V2DF.
22272 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
22273 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
22274 (*ieee_<ieee_maxmin><mode>3): Likewise.
22275 (vec_setv2df_0): Likewise.
22276
22277 2019-06-20 Jan Hubicka <jh@suse.cz>
22278
22279 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
22280 parameter; it has no use in gimple memory model.
22281 (indirect_ref_may_alias_decl_p): Update.
22282
22283 2019-06-20 Martin Liska <mliska@suse.cz>
22284
22285 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
22286 to 10.
22287
22288 2019-06-20 Jakub Jelinek <jakub@redhat.com>
22289
22290 * tree-vect-stmts.c (enum scan_store_kind): New type.
22291 (scan_store_can_perm_p): Change last argument from int * to
22292 vec<enum scan_store_kind> *, record precisely which permutations
22293 need whole vector left shift or that plus VEC_COND_EXPR.
22294 (vectorizable_scan_store): Adjust caller, use whole vector left shift
22295 and additional VEC_COND_EXPR only for those iterations that need it.
22296
22297 2019-06-20 Alexandre Oliva <oliva@adacore.com>
22298
22299 * config.gcc: Fix ARM --with-fpu checking and error message.
22300
22301 2019-06-19 Marek Polacek <polacek@redhat.com>
22302
22303 PR c++/60364 - noreturn after first decl not diagnosed.
22304 * attribs.c (get_attribute_namespace): No longer static.
22305 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
22306 attributes.
22307 (attr_noreturn_exclusions): Make it extern.
22308 * attribs.h (get_attribute_namespace): Declare.
22309 * tree-inline.c (function_attribute_inlinable_p): Use
22310 get_attribute_name.
22311
22312 2019-06-19 Martin Sebor <msebor@redhat.com>
22313
22314 PR tree-optimization/90626
22315 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
22316
22317 PR tree-optimization/90626
22318 * tree-ssa-strlen.c (strxcmp_unequal): New function.
22319 (handle_builtin_string_cmp): Call it.
22320
22321 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
22322
22323 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
22324 and DARWIN_NOPIE_SPEC.
22325 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
22326 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
22327 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
22328 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
22329 (DARWIN_EXPORT_DYNAMIC): Delete.
22330 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
22331 and pie options processing to darwin.h.
22332 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
22333
22334 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
22335
22336 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
22337 in computing the number of options to be moved.
22338
22339 2019-06-19 Maya Rashish <coypu@sdf.org>
22340
22341 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
22342 (CLEAR_INSN_CACHE) Use it.
22343
22344 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
22345
22346 * config/i386/i386.md (cmpstrnsi): Remove dead code.
22347
22348 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
22349
22350 PR middle-end/84521
22351 * builtins.c (expand_builtin_setjmp_setup): Save
22352 hard_frame_pointer_rtx.
22353 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
22354 restore fp.
22355 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
22356 non-local goto.
22357 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
22358 elimination code.
22359 (remove_reg_equal_offset_note): Remove unused function.
22360 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
22361 code.
22362 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22363 (arc_builtin_setjmp_frame_value): Remove function.
22364 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22365 (avr_builtin_setjmp_frame_value): Remove function.
22366 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22367 (ix86_builtin_setjmp_frame_value): Remove function.
22368 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
22369 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22370 (sparc_builtin_setjmp_frame_value): Remove function.
22371 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22372 (vax_builtin_setjmp_frame_value): Remove function.
22373 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
22374 pointer if has_nonlocal_label.
22375
22376 2019-06-19 Jakub Jelinek <jakub@redhat.com>
22377
22378 * doc/md.texi: Document vec_shl_<mode> pattern.
22379 * optabs.def (vec_shl_optab): New optab.
22380 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
22381 argument, if == vec_shl_optab, check for left whole vector shift
22382 pattern rather than right shift.
22383 (expand_vec_perm_const): Add vec_shl_optab support.
22384 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
22385 in the comment.
22386 * tree-vect-generic.c (lower_vec_perm): Support permutations which
22387 can be handled by vec_shl_optab.
22388 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
22389 (check_scan_store): Use it.
22390 (vectorizable_scan_store): If target can't do normal permutations,
22391 try to use whole vector left shifts and if needed a VEC_COND_EXPR
22392 after it.
22393 * config/i386/sse.md (vec_shl_<mode>): New expander.
22394
22395 * omp-low.c (lower_rec_input_clauses): Handle references properly
22396 in inscan clauses.
22397 (lower_omp_scan): Likewise.
22398
22399 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22400
22401 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
22402 mem_mode is BLKmode.
22403
22404 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
22405
22406 PR target/90922
22407 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
22408 pointer adjustment for the case of no callee-saved registers and
22409 stack frame bigger than 128 bytes.
22410
22411 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
22412
22413 PR middle-end/90862
22414 * omp-low.c (check_omp_nesting_restrictions): Handle
22415 GF_OMP_TARGET_KIND_OACC_DECLARE.
22416
22417 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
22418
22419 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
22420 (@add<mode>3_carry): Rename from add<mode>3_carry.
22421 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
22422 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
22423 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
22424 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
22425 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
22426 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
22427 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
22428 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
22429 (cmpstrnsi): Use gen_cmp_1.
22430 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
22431 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
22432 (@umonitor_<mode>): Rename from umonitor_<mode>.
22433 * config/i386/i386-expand.c (ix86_expand_copysign):
22434 Use gen_copysign3_const and gen_copysign3_var.
22435 (ix86_expand_xorsign): Use gen_xorsign3_1.
22436 (ix86_expand_branch): Use gen_sub3_carry_ccc,
22437 gen_sub3_carry_ccgz and gen_cmp1.
22438 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
22439 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
22440 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
22441 (ix86_split_lshr): Ditto.
22442 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
22443
22444 2019-06-18 Jason Merrill <jason@redhat.com>
22445
22446 * tree.c (build_constructor): Add MEM_STAT_DECL.
22447
22448 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22449
22450 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
22451 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
22452 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
22453 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
22454 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
22455 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
22456 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
22457 Use CC_NZC instead of CC.
22458 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
22459 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
22460 (aarch64_print_operand): Handle E_CC_NZCmode.
22461 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
22462 of gen_set_clobber_cc.
22463
22464 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22465
22466 * config/aarch64/aarch64-sve.md: Tabify file.
22467
22468 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22469
22470 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
22471 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
22472 * config/aarch64/aarch64-sve.md: Use it.
22473
22474 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22475
22476 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
22477 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
22478 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
22479 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
22480 (aarch64_expand_sve_vec_cmp_int): Use it.
22481 (aarch64_expand_sve_vec_cmp_float): Likewise.
22482 * config/aarch64/aarch64-sve.md: Likewise throughout.
22483
22484 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22485 Kugan Vivekanandarajah <kuganv@linaro.org>
22486
22487 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
22488 (*cond_<optab><mode>_z): Fold into...
22489 (*cond_<optab><mode>_any): ...here. Also handle cases in which
22490 operand 4 can be tied to operand 0 (either inherently or via RA).
22491
22492 2019-06-18 Richard Biener <rguenther@suse.de>
22493
22494 PR debug/90900
22495 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
22496 as if optimized away.
22497
22498 2019-06-18 Tom de Vries <tdevries@suse.de>
22499
22500 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
22501 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
22502 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
22503 Rename to ...
22504 (define_insn "@set_softstack_<mode>"): ... this.
22505 (define_insn "omp_simt_enter_<mode>"): Rename to ...
22506 (define_insn "@omp_simt_enter_<mode>"): ... this.
22507 (define_insn "omp_simt_exit_<mode>"): Rename to ...
22508 (define_insn "@omp_simt_exit_<mode>"): ... this.
22509
22510 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22511
22512 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
22513 vf parameter. Restore the previous iv step of nscalars_step,
22514 but give it iv_type rather than compare_type. Tweak code order
22515 to match the comments.
22516 (vect_set_loop_condition_masked): Update accordingly.
22517 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
22518 for iv_precision. Tweak comment formatting.
22519
22520 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
22521
22522 * config/darwin.c: Strip trailing whitespace.
22523
22524 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
22525
22526 * config/darwin.c (darwin_emit_unwind_label): New default to false.
22527 (darwin_override_options): Set darwin_emit_unwind_label as needed.
22528
22529 2019-06-18 Martin Jambor <mjambor@suse.cz>
22530
22531 PR ipa/90889
22532 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
22533 caller does not have flag_ipa_cp set.
22534
22535 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22536
22537 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
22538 from "*fold_left_plus_<mode>", updated operands order.
22539 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
22540 * internal-fn.c (mask_fold_left_direct): New define.
22541 (expand_mask_fold_left_optab_fn): Likewise.
22542 (direct_mask_fold_left_optab_supported_p): Likewise.
22543 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
22544 * optabs.def (mask_fold_left_plus_optab): New optab.
22545 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
22546 masked internal_fn for a reduction ifn.
22547 (vectorize_fold_left_reduction): Add support for masking reductions.
22548
22549 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
22550
22551 PR middle-end/80791
22552 * target.def (predict_doloop_p): New hook.
22553 * targhooks.h (default_predict_doloop_p): New declaration.
22554 * targhooks.c (default_predict_doloop_p): New function.
22555 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
22556 * doc/tm.texi: Regenerate.
22557 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
22558 (TARGET_PREDICT_DOLOOP_P): New macro.
22559 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
22560
22561 2019-06-17 Jakub Jelinek <jakub@redhat.com>
22562
22563 * omp-low.c (struct omp_context): Add scan_inclusive field.
22564 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
22565 if inclusive scan.
22566 (struct omplow_simd_context): Add lastlane member.
22567 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
22568 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
22569 1 or 2 argument.
22570 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
22571 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
22572 (lower_omp_scan): New function.
22573 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
22574 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
22575 check 3rd argument if present rather than 2nd.
22576 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
22577 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
22578 2-bit bitfield.
22579 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22580 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
22581 than 2nd.
22582 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
22583 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
22584 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
22585 init.
22586 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
22587 IFN_GOMP_SIMD_LANE argument.
22588 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
22589 encoded ->aux value.
22590 * tree-vect-stmts.c: Include attribs.h.
22591 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
22592 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
22593 functions.
22594 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
22595 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
22596
22597 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
22598
22599 PR target/62055
22600 * config/i386/i386.md (*nabstf2_1): New insn pattern.
22601 (*nabs<mode>2_1): Ditto.
22602 (nabs sse-reg splitter): New splitter.
22603 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
22604
22605 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
22606
22607 PR bootstrap/90873.
22608 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
22609 TMR index check.
22610
22611 2019-06-17 Tom de Vries <tdevries@suse.de>
22612
22613 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
22614 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
22615 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
22616 ...
22617 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
22618 match_operand 0.
22619 (define_insn "omp_simt_enter_insn"): Rename to ...
22620 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
22621 match_operand 0, 1 and 2, as well as the unspec_volatile result.
22622 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
22623 gen_omp_simt_enter_si.
22624 (define_expand "omp_simt_exit"): New.
22625 (define_insn "omp_simt_exit"): Rename to ...
22626 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
22627 match_operand 0.
22628
22629 2019-06-17 Matthew Green <mrg@eterna.com.au>
22630 Maya Rashish <coypu@sdf.org>
22631
22632 * config.gcc (aarch64*-*-netbsd*): New target.
22633 * config/aarch64/aarch64-netbsd.h: New file.
22634 * config/aarch64/t-aarch64-netbsd: Likewise.
22635
22636 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
22637
22638 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
22639 the access path from base to first VIEW_CONVERT_EXPR or
22640 BIT_FIELD_REF.
22641
22642 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
22643
22644 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
22645 access path on BIT_FIELD_REFs.
22646
22647 2019-06-17 Martin Liska <mliska@suse.cz>
22648
22649 PR ipa/90874
22650 * ipa-utils.h (odr_type_p): Remove dead code.
22651
22652 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22653
22654 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
22655 alternative Solaris 11.4 format.
22656 * configure: Regenerate.
22657
22658 2019-06-17 Tom de Vries <tdevries@suse.de>
22659
22660 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
22661 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
22662 match_operand 0.
22663 (define_insn "call_value_insn"): Rename to ...
22664 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
22665 match_operand 0.
22666 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
22667 DI.
22668
22669 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
22670
22671 PR middle-end/64242
22672 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
22673 frame clobbers and schedule block.
22674 (builtin_longjmp): Likewise.
22675
22676 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22677
22678 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
22679 describe how to perform MSPABI compliant 64-bit shift.
22680 * config/msp430/msp430.md (ashldi3): New define_expand.
22681 (ashrdi3): New define_expand.
22682 (lshrdi3): New define_expand.
22683
22684 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22685
22686 * doc/sourcebuild.texi: Document new effective target keyword
22687 longlong64.
22688
22689 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
22690
22691 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
22692 indirect_refs_may_alias_p): Revert accidental commits.
22693
22694 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
22695 at the end of structures.
22696
22697 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
22698
22699 * config/darwin.c (machopic_indirect_call_target): Use renamed
22700 darwin_picsymbol_stubs to decide on output.
22701 (darwin_override_options): Handle darwin_picsymbol_stubs.
22702 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
22703 (LD64_VERSION): Revise default.
22704 * config/darwin.opt: (mpic-symbol-stubs): New option.
22705 (darwin_picsymbol_stubs): New variable.
22706 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
22707 rename to TARGET_MACHO_PICSYM_STUBS.
22708 * config/i386/i386.c (output_pic_addr_const): Likewise.
22709 * config/i386/i386.h Likewise.
22710 * config/rs6000/darwin.h: Likewise.
22711 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
22712 darwin_picsymbol_stubs.
22713
22714 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
22715
22716 * config/darwin.opt (prebind, noprebind, seglinkedit,
22717 noseglinkedit): Add RejectNegative.
22718
22719 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
22720
22721 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
22722 in my previous patch.
22723
22724 2019-06-16 Tom de Vries <tdevries@suse.de>
22725
22726 PR tree-optimization/89376
22727 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
22728
22729 2019-06-15 Maya Rashish <coypu@sdf.org>
22730
22731 * doc/invoke.texi (Spec Files): Update location of the
22732 Fortran spec file.
22733
22734 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
22735
22736 * doc/extend.texi (Common Function Attributes): Clarify
22737 no_sanitize. Fix grammar.
22738
22739 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
22740
22741 * tree-ssa-alias.c (alias_stats): Add
22742 nonoverlapping_component_refs_p_may_alias,
22743 nonoverlapping_component_refs_p_no_alias,
22744 nonoverlapping_component_refs_of_decl_p_may_alias,
22745 nonoverlapping_component_refs_of_decl_p_no_alias.
22746 (dump_alias_stats): Dump them.
22747 (nonoverlapping_component_refs_of_decl_p): Add stats.
22748 (nonoverlapping_component_refs_p): Add stats; do not stop on first
22749 ARRAY_REF.
22750
22751 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
22752
22753 * config/i386/i386.md (and<mode>3): Generate zero-extends for
22754 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
22755 only.
22756 (*anddi3_doubleword): Split before reload. Merge with
22757 anddi->zext pre-reload splitter.
22758 (*andndi3_doubleword): Split before reload.
22759 (*<code>di3_doubleword): Ditto.
22760 (*one_cmpldi2_doubleword): Ditto.
22761
22762 2019-06-15 Jakub Jelinek <jakub@redhat.com>
22763
22764 PR middle-end/90779
22765 * gimplify.c: Include omp-offload.h and context.h.
22766 (gimplify_bind_expr): Add "omp declare target" attributes
22767 to static block scope variables inside of target region or target
22768 functions.
22769
22770 2019-06-15 Tom de Vries <tdevries@suse.de>
22771
22772 PR tree-optimization/90009
22773 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
22774 Return NULL if bb contains IFN_UNIQUE.
22775
22776 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
22777
22778 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
22779 (un): New define_mode_attr.
22780 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
22781 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
22782 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
22783 merge into ...
22784 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
22785
22786 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
22787
22788 * config/darwin.opt: Add RejectNegative where needed, reorder
22789 and add minimal functional descriptions.
22790
22791 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
22792
22793 PR rtl-optimization/90765
22794 * calls.c (update_stack_alignment_for_call): New function.
22795 (expand_call): Call update_stack_alignment_for_call when
22796 outgoing parameter is passed in the stack.
22797 (emit_library_call_value_1): Likewise.
22798 * function.c (locate_and_pad_parm): Don't update
22799 stack_alignment_needed and preferred_stack_boundary.
22800
22801 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
22802
22803 PR target/90877
22804 * config/i386/i386-features.c
22805 (dimode_scalar_chain::compute_convert_gain): Replace
22806 mmxsse_to_integer with sse_to_integer.
22807 * config/i386/i386.c (ix86_register_move_cost): Verify that
22808 moves between MMX and non-MMX units require secondary memory.
22809 Correct costs of moves between SSE and integer units.
22810 * config/i386/i386.h (processor_costs): Rename cost of moving
22811 SSE register to integer to sse_to_integer. Rename cost of
22812
22813 2019-06-14 Matt Thomas <matt@3am-software.com>
22814 Matthew Green <mrg@eterna.com.au>
22815 Nick Hudson <skrll@netbsd.org>
22816 Maya Rashish <coypu@sdf.org>
22817 Richard Earnshaw <rearnsha@arm.com>
22818
22819 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
22820 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
22821 * config/arm/netbsd-eabi.h: New file.
22822 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
22823 redefining.
22824 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
22825 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
22826 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
22827 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
22828
22829 2019-06-14 Richard Biener <rguenther@suse.de>
22830
22831 * tree-loop-distribution.c (classify_partition): Return
22832 whether a reduction appeared in all partitions and do not
22833 stop builtin detection because of this.
22834 (distribute_loop): Sort a non-builtin partition last if
22835 there's a reduction in all partitions and make sure the
22836 partition prevailing as last is not a builtin.
22837
22838 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
22839
22840 PR ipa/90401
22841 * ipa-prop.c (add_to_agg_contents_list): New function.
22842 (clobber_by_agg_contents_list_p): Likewise.
22843 (extract_mem_content): Likewise.
22844 (get_place_in_agg_contents_list): Delete.
22845 (determine_known_aggregate_parts): Renamed from
22846 determine_locally_known_aggregate_parts. New parameter
22847 aa_walk_budget_p.
22848
22849 2019-06-13 Martin Sebor <msebor@redhat.com>
22850
22851 PR tree-optimization/90662
22852 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
22853 to the same type.
22854
22855 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
22856
22857 PR bootstrap/90873
22858 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
22859 dbase is not TARGET_MEM_REF.
22860
22861 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
22862
22863 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
22864 Update all uses.
22865 (and<mode>3): Use gen_extend_insn instead of indirect functions.
22866 Do not generate DImode extends for 32bit targets.
22867 (and->zext post-reload splitter): Use gen_extend_insn
22868 instead of indirect functions.
22869 (anddi->zext pre-reload splitter): New.
22870 (*zext<mode>_doubleword_and): Remove.
22871 (*zext<mode>_doubleword): Ditto.
22872 (*zextsi_doubleword): Dittto.
22873
22874 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
22875
22876 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
22877 Use gen_sub3_insn instead of indirect function.
22878 (ix86_expand_ashl_const): Use gen_add2_insn instead of
22879 indirect function.
22880 (ix86_adjust_counter): Ditto.
22881
22882 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
22883 Lijia He <helijia@linux.ibm.com>
22884
22885 PR tree-optimization/77820
22886 * tree-ssa-threadedge.c
22887 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
22888 function.
22889 (thread_across_edge): Add call to
22890 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
22891
22892 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
22893
22894 * config/darwin-driver.c (validate_macosx_version_min): New.
22895 (darwin_default_min_version): Cleanup and validate supplied version.
22896 (darwin_driver_init): Likewise and push cleaned version into opts.
22897
22898 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
22899
22900 PR tree-optimization/90869
22901 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
22902 converts in MEM_REF referencing decl rather than view converts
22903 from decl type to MEM_REF type.
22904
22905 2019-06-13 Richard Biener <rguenther@suse.de>
22906
22907 PR tree-optimization/90856
22908 * tree-sra.c (build_ref_for_model): Only use
22909 build_reconstructed_reference when address-spaces are the same.
22910
22911 2019-06-13 Jakub Jelinek <jakub@redhat.com>
22912
22913 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
22914 wrap ei variable name in the declaration in ()s.
22915 (nvptx_single): Actually use mode_label variable. Formatting fix.
22916
22917 2019-06-13 Richard Biener <rguenther@suse.de>
22918
22919 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
22920 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
22921 also return the condition stmt.
22922 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
22923 loop we can version and version that, reusing the loop version
22924 created by if-conversion instead of versioning again.
22925
22926 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
22927
22928 * gimple-loop-versioning.cc (prune_loop_conditions): Use
22929 may_contain_p.
22930 * tree-vrp (value_range_base::may_contain_p): Call into
22931 value_inside_range.
22932 (value_inside_range): Make private inside value_range_base class.
22933 Take min/max from *this.
22934 (range_includes_p): Remove.
22935 * tree-vrp.h (value_range_base): Add value_inside_range.
22936 (range_includes_p): Remove.
22937 (range_includes_zero_p): Call may_contain_p.
22938 * vr-values.c (compare_range_with_value): Same.
22939
22940 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
22941
22942 * doc/extend.texi (ARC Function Attributes): Update info.
22943
22944 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
22945
22946 PR tree-optimization/89713
22947 * doc/invoke.texi (-ffinite-loops): Document new option.
22948 * common.opt (-ffinite-loops): New option.
22949 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
22950 IFN_GOACC_LOOP calls as necessary.
22951 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
22952 is finite.
22953 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
22954 IFN_GOACC_LOOP call is not used.
22955 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
22956
22957 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22958
22959 PR target/88838
22960 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
22961 compare_type is not with Pmode size, we will create an IV with
22962 Pmode size with truncated use (i.e. converted to the correct type).
22963 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
22964 (vect_iv_limit_for_full_masking): New. Factored out of
22965 vect_set_loop_condition_masked.
22966 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
22967 (vect_iv_limit_for_full_masking): Declare.
22968
22969 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22970
22971 PR target/88834
22972 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
22973 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
22974 (get_alias_ptr_type_for_ptr_address): Likewise.
22975 (add_iv_candidate_for_use): Add scaled index candidate if useful.
22976 * tree-ssa-address.c (preferred_mem_scale_factor): New.
22977 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
22978 allow_reg_index_p.
22979
22980 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22981
22982 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
22983
22984 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
22985
22986 * common/config/pru/pru-common.c: New file.
22987 * config.gcc: Add PRU target.
22988 * config/pru/alu-zext.md: New file.
22989 * config/pru/constraints.md: New file.
22990 * config/pru/predicates.md: New file.
22991 * config/pru/pru-opts.h: New file.
22992 * config/pru/pru-passes.c: New file.
22993 * config/pru/pru-pragma.c: New file.
22994 * config/pru/pru-protos.h: New file.
22995 * config/pru/pru.c: New file.
22996 * config/pru/pru.h: New file.
22997 * config/pru/pru.md: New file.
22998 * config/pru/pru.opt: New file.
22999 * config/pru/t-pru: New file.
23000 * doc/extend.texi: Document PRU pragmas.
23001 * doc/invoke.texi: Document PRU-specific options.
23002 * doc/md.texi: Document PRU asm constraints.
23003
23004 2019-06-12 Martin Sebor <msebor@redhat.com>
23005
23006 PR middle-end/90676
23007 * tree-pretty-print.c (dump_mem_ref): New function. Include
23008 MEM_REF type in output when different size than operand.
23009 (dump_generic_node): Move code to dump_mem_ref and call it.
23010
23011 2019-06-12 Martin Sebor <msebor@redhat.com>
23012
23013 PR tree-optimization/90662
23014 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
23015 to arrays.
23016
23017 2019-06-12 Tom de Vries <tdevries@suse.de>
23018
23019 PR tree-optimization/90009
23020 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
23021
23022 2019-06-12 Martin Liska <mliska@suse.cz>
23023
23024 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
23025 the created map.
23026 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
23027 * mem-stats.h (mem_alloc_description::mem_alloc_description):
23028 Do not sanitize created maps.
23029
23030 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
23031
23032 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
23033 value_range::singleton_p.
23034 * tree-vrp.c (value_range_constant_singleton): Remove.
23035 * tree-vrp.h (value_range_constant_singleton): Remove.
23036 * vr-values.c (vr_values::singleton): Use
23037 value_range::singleton_p.
23038
23039 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23040
23041 PR target/90811
23042 * cfgexpand.c (align_local_variable): Add really_expand argument,
23043 don't SET_DECL_ALIGN if it is false.
23044 (add_stack_var): Add really_expand argument, pass it through to
23045 align_local_variable.
23046 (expand_one_stack_var_1): Pass true as really_expand to
23047 align_local_variable.
23048 (expand_one_ssa_partition): Pass true as really_expand to
23049 add_stack_var.
23050 (expand_one_var): Pass really_expand through to add_stack_var.
23051
23052 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
23053
23054 * config/arm/iterators.md (VABAL): New int iterator.
23055 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
23056 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
23057 UNSPEC_VABAL_U values.
23058
23059 2019-06-12 Martin Liska <mliska@suse.cz>
23060
23061 * value-prof.c (stream_out_histogram_value): Only first value
23062 can't be negative.
23063
23064 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23065
23066 PR c/90760
23067 * symtab.c (symtab_node::set_section): Allow being called on aliases
23068 as long as they aren't analyzed yet.
23069
23070 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
23071
23072 * config/mips/mips.c (mips_final_postscan_insn): Modify call
23073 to `mips_set_text_contents_type' to indicate whether a
23074 non-debug insn follows.
23075
23076 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
23077
23078 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
23079 enabling -mpcrel by default.
23080 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
23081 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
23082 that the test against -mcpu=future is done first. Then test if
23083 -mprefixed-addr is on for -mpcrel.
23084 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
23085
23086 2019-06-11 Jakub Jelinek <jakub@redhat.com>
23087
23088 PR target/90811
23089 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
23090 instead of and.u%d.
23091
23092 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
23093
23094 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
23095
23096 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
23097
23098 PR c++/90449 - add -Winaccessible-base option.
23099 * doc/invoke.texi (Winaccessible-base): Document.
23100
23101 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
23102
23103 PR tree-optimization/62041
23104 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
23105
23106 2019-06-11 Jason Merrill <jason@redhat.com>
23107
23108 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
23109 * tree.c (get_tree_code_name): Likewise.
23110 * print-tree.c (print_node): Only briefly print a node with an
23111 invalid code.
23112
23113 2019-06-11 Jakub Jelinek <jakub@redhat.com>
23114
23115 PR bootstrap/90819
23116 * trans-mem.c (tm_memopt_compute_available): Add assertion
23117 that blocks is not empty. Formatting fix.
23118
23119 2019-06-11 Martin Liska <mliska@suse.cz>
23120
23121 PR c++/87847
23122 * hash-table.h: Extend create_gcc, add one parameter
23123 that is passed into hash_table::hash_table.
23124
23125 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
23126
23127 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
23128 New prototype.
23129 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
23130 Emit clobber also for non-sse operations.
23131 (ix86_split_fp_absneg_operator): New function.
23132 * config/i386/i386.md (SSEMODEF): New mode iterator.
23133 (ssevecmodef): New mode attribute.
23134 (<code>tf2): Use absneg code iterator.
23135 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
23136 Add three-operand AVX alternatives.
23137 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
23138 Use absneg code iterator and X87MODEF mode iterator.
23139 (absneg fp_reg non-sse splitter): Call absneg code iterator
23140 and X87MODEF mode iterator.
23141 (absneg general_reg non-sse splitter): Use absneg code iterator
23142 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
23143 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
23144 code iterator. Add three-operand AVX alternative.
23145 (absneg sse_reg splitter): Use absneg code iterator
23146 and SSEMODEF mode iterator. Handle AVX operands.
23147 (absneg fp_reg splitter): Use absneg code iterator
23148 and MODEF mode iterator.
23149 (absneg general_reg splitter): Merge splitters using MODEF mode
23150 iterator. Use absneg code iterator. Call
23151 ix86_split_fp_absneg_operator.
23152 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
23153 Do not enable for non-sse modes before reload.
23154 (CSGNMODE): Remove.
23155 (CSGNVMODE): Ditto.
23156 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
23157 ssevecmodef mode attribute instaed of CSGNVMODE.
23158 (copysign<mode>3_const): Ditto.
23159 (copysign<mode>3_var): Ditto.
23160 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
23161 Use absneg code iterator. Simplify code using std::swap.
23162 * config/i386/predicates.md (absneg_operator): Remove.
23163
23164 2019-06-10 Martin Sebor <msebor@redhat.com>
23165
23166 * gimple-fold.c (get_range_strlen): Update comment that didn't
23167 make it into r267503 or related commits.
23168
23169 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
23170
23171 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
23172 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
23173
23174 2019-06-10 Jakub Jelinek <jakub@redhat.com>
23175
23176 * tree.def (OMP_SCAN): New tree code.
23177 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
23178 OMP_CLAUSE_EXCLUSIVE.
23179 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
23180 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
23181 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
23182 OMP_CLAUSE_{IN,EX}CLUSIVE.
23183 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
23184 * tree-nested.c (convert_nonlocal_reference_stmt,
23185 convert_local_reference_stmt, convert_gimple_call): Handle
23186 GIMPLE_OMP_SCAN.
23187 * tree-pretty-print.c (dump_omp_clause): Handle
23188 OMP_CLAUSE_{IN,EX}CLUSIVE.
23189 (dump_generic_node): Handle OMP_SCAN.
23190 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
23191 * gimple.h (gomp_scan): New type.
23192 (is_a_helper <gomp_scan *>::test,
23193 is_a_helper <const gomp_scan *>::test): New templates.
23194 (gimple_build_omp_scan): Declare.
23195 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
23196 gimple_omp_scan_set_clauses): New inline functions.
23197 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
23198 * gimple.c (gimple_build_omp_scan): New function.
23199 (gimple_copy): Handle GIMPLE_OMP_SCAN.
23200 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
23201 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
23202 GIMPLE_OMP_TASKGROUP.
23203 (dump_gimple_omp_scan): New function.
23204 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
23205 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
23206 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
23207 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
23208 (is_gimple_stmt): Handle OMP_SCAN.
23209 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
23210 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
23211 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
23212 mentioned in nested #pragma omp scan. Handle
23213 OMP_CLAUSE_{IN,EX}CLUSIVE.
23214 (gimplify_expr): Handle OMP_SCAN.
23215 * omp-low.c (check_omp_nesting_restrictions): For parent context,
23216 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
23217 simd constructs.
23218 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
23219 GIMPLE_OMP_SCAN.
23220
23221 2019-06-10 Martin Liska <mliska@suse.cz>
23222
23223 * ipa-cp.c (ignore_edge_p): New function.
23224 (build_toporder_info): Use it.
23225 * ipa-inline.c (ignore_edge_p): New function.
23226 (inline_small_functions): Use it.
23227 * ipa-pure-const.c (ignore_edge_for_nothrow):
23228 Verify opt_for_fn for caller and callee.
23229 (ignore_edge_for_pure_const): Likewise.
23230 * ipa-reference.c (ignore_edge_p): Extend to check
23231 for opt_for_fn.
23232 * ipa-utils.c (searchc): Refactor.
23233 * ipa-utils.h: Fix coding style.
23234
23235 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
23236
23237 * config/arc/arc.c (arc_rtx_costs): Update costs.
23238
23239 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
23240
23241 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
23242 (arc_split_ior): Likewise.
23243 (arc_check_mov_const): Likewise.
23244 (arc_split_mov_const): Likewise.
23245 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
23246 (arc_rtx_costs): Replace check Crr with Cax constraint.
23247 (prepare_move_operands): Cleanup, remove unused code.
23248 (arc_split_ior): New function.
23249 (arc_check_ior_const): Likewise.
23250 (arc_split_mov_const): Likewise.
23251 (arc_check_mov_const): Likewise.
23252 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
23253 in define_insn_and_split pattern.
23254 (iorsi3): Likewise.
23255 (mulsi3_v2): Add new matching variant.
23256 (andsi3_i): Cleanup pattern.
23257 (rotrsi3_cnt1): Update pattern.
23258 (rotrsi3_cnt8): New pattern.
23259 (ashlsi2_cnt8): Likewise.
23260 (ashlsi2_cnt16): Likewise.
23261 * config/arc/constraints.md (C0p): Update constraint.
23262 (Crr): Remove it.
23263 (C0x): New pattern.
23264 (Cax): New pattern.
23265
23266 2019-06-10 Martin Liska <mliska@suse.cz>
23267
23268 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
23269 Update coding style.
23270 (sem_item_optimizer::dump_cong_classes):
23271 Print how many items are in a non-singular class. Improve
23272 coding style.
23273
23274 2019-06-10 Martin Liska <mliska@suse.cz>
23275
23276 * value-prof.c (dump_histogram_value): Change dump format.
23277 (gimple_mod_subtract_transform): Remove legacy comment.
23278
23279 2019-06-10 Martin Liska <mliska@suse.cz>
23280
23281 * value-prof.c (dump_histogram_value): Print histogram values
23282 only if present.
23283
23284 2019-06-10 Martin Liska <mliska@suse.cz>
23285
23286 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
23287 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
23288 * ipa-profile.c (ipa_profile_generate_summary):
23289 Use get_most_common_single_value.
23290 * tree-profile.c (gimple_init_gcov_profiler):
23291 Instrument with __gcov_one_value_profiler_v2
23292 and __gcov_indirect_call_profiler_v4.
23293 * value-prof.c (dump_histogram_value):
23294 Print all values for HIST_TYPE_SINGLE_VALUE.
23295 (stream_out_histogram_value): Update assert for
23296 N values.
23297 (stream_in_histogram_value): Set number of
23298 counters for HIST_TYPE_SINGLE_VALUE.
23299 (get_most_common_single_value): New.
23300 (gimple_divmod_fixed_value_transform):
23301 Use get_most_common_single_value.
23302 (gimple_ic_transform): Likewise.
23303 (gimple_stringops_transform): Likewise.
23304 (gimple_find_values_to_profile): Set number
23305 of counters for HIST_TYPE_SINGLE_VALUE.
23306 * value-prof.h (get_most_common_single_value): New.
23307
23308 2019-06-10 Martin Liska <mliska@suse.cz>
23309
23310 * hash-map.h: Pass default value to hash_table ctor.
23311 * hash-table.h: Add default value to call of a ctor.
23312
23313 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
23314
23315 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
23316 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
23317
23318 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
23319
23320 PR target/90751
23321 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
23322 Call pa_output_function_label.
23323 (TARGET_ASM_FUNCTION_PROLOGUE): define.
23324 * config/pa/pa-protos.h (pa_output_function_label): Declare.
23325 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
23326 to declaration.
23327 (pa_linux_output_function_prologue): Declare.
23328 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
23329 (pa_output_function_label): New.
23330 (pa_output_function_prologue): Revise to use pa_output_function_label.
23331 (pa_linux_output_function_prologue): New.
23332 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
23333
23334 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
23335
23336 * tree-vrp.h (value_range_base::intersect): New.
23337 (value_range::intersect_helper): Move from here...
23338 (value_range_base::intersect_helper): ...to here.
23339 * tree-vrp.c (value_range::intersect_helper): Rename to...
23340 (value_range_base::intersect_helper): ...this, and rewrite to
23341 return a value instead of modifying THIS in place.
23342 Also, move equivalence handling...
23343 (value_range::intersect): ...here, while calling intersect_helper.
23344 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
23345 calling intersect.
23346 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
23347 Same.
23348 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
23349
23350 2019-06-07 Jakub Jelinek <jakub@redhat.com>
23351
23352 * Makefile.in (genprogerr): Add condmd.
23353 (genprog): Remove it here.
23354
23355 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
23356
23357 * doc/invoke.texi (AMD GCN Options): Add gfx906.
23358
23359 2019-06-07 Richard Biener <rguenther@suse.de>
23360
23361 PR debug/90574
23362 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
23363 that appear after user labels.
23364
23365 2019-06-07 Martin Liska <mliska@suse.cz>
23366
23367 * cselib.c (cselib_init): Disable hash table
23368 sanitization.
23369 * hash-set.h: Pass new default argument to m_table.
23370 * hash-table.c: Add global variable with hash table
23371 sanitization limit.
23372 * hash-table.h (Allocator>::hash_table): Add new argument
23373 to ctor.
23374 (hashtab_chk_error): New.
23375 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
23376 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
23377 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
23378
23379 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
23380
23381 * common.opt (flto-odr-type-merging): Ignore.
23382 * invoke.texi (-flto-odr-type-merging): Remove.
23383 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
23384 (can_be_vtable_hashed_p): Remove.
23385 (hash_odr_vtable): Remove.
23386 (odr_vtable_hasher::hash): Remove.
23387 (types_same_for_odr): Remove.
23388 (types_odr_comparable): Remove.
23389 (odr_vtable_hasher::equal): Remove.
23390 (odr_vtable_hash_type, odr_vtable_hash): Remove.
23391 (add_type_duplicate): Do not synchronize vtable and name hashtables.
23392 (get_odr_type): Do not use vtable hash.
23393 (dump_odr_type): Remove commented out code.
23394 (build_type_inheritance_graph): Do not allocate vtable hash.
23395 (rebuild_type_inheritance_graph): Do not delete vtable hash.
23396 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
23397 (odr_type_p): Likewise.
23398 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
23399 test.
23400
23401 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
23402
23403 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
23404 immediately after same_types_for_tbaa_p returns -1 and continue
23405 looking for possible exact match; if matching types are arrays
23406 watch for partial overlaps.
23407 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
23408 (indirect_refs_may_alias_p): Do type based disambiguation first;
23409 update comment.
23410
23411 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
23412
23413 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
23414
23415 2019-06-07 Martin Liska <mliska@suse.cz>
23416
23417 * doc/invoke.texi: Remove param.
23418 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
23419 Remove.
23420 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
23421 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
23422 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
23423 * profile.c (instrument_values): Remove
23424 HIST_TYPE_INDIR_CALL_TOPN.
23425 * tree-profile.c (init_ic_make_global_vars):
23426 Always build __gcov_indirect_call only.
23427 (gimple_init_gcov_profiler): Remove usage
23428 of PARAM_INDIR_CALL_TOPN_PROFILE.
23429 (gimple_gen_ic_profiler): Likewise.
23430 * value-prof.c (dump_histogram_value): Likewise.
23431 (stream_in_histogram_value): Likewise.
23432 (gimple_indirect_call_to_profile): Likewise.
23433 (gimple_find_values_to_profile): Likewise.
23434 * value-prof.h (enum hist_type): Likewise.
23435
23436 2019-06-07 Martin Liska <mliska@suse.cz>
23437
23438 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
23439 function.
23440
23441 2019-06-07 Martin Liska <mliska@suse.cz>
23442
23443 PR tree-optimization/78902
23444 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
23445 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
23446 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
23447 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
23448 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
23449 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
23450 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
23451 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
23452 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
23453 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
23454 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
23455 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
23456 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
23457 New.
23458 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
23459 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
23460 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
23461 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
23462 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
23463 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
23464 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
23465 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
23466 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
23467 warn_unused_result attribute.
23468 (BUILT_IN_STRDUP): Likewise.
23469 (BUILT_IN_STRNDUP): Likewise.
23470 (BUILT_IN_ALLOCA): Likewise.
23471 (BUILT_IN_CALLOC): Likewise.
23472 (BUILT_IN_MALLOC): Likewise.
23473 (BUILT_IN_REALLOC): Likewise.
23474
23475 2019-06-06 Jim Wilson <jimw@sifive.com>
23476
23477 PR target/89955
23478 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
23479 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
23480 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
23481
23482 2019-06-06 Martin Sebor <msebor@redhat.com>
23483
23484 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
23485 (handle_builtin_malloc): Remove trailing spaces.
23486 (handle_builtin_memset): Same.
23487 (handle_builtin_memcmp): Same.
23488 (compute_string_length): Same.
23489 (determine_min_objsize): Same.
23490 (handle_builtin_string_cmp): Same.
23491 (handle_char_store): Same. Break up excessively long line.
23492
23493 2019-06-06 Martin Jambor <mjambor@suse.cz>
23494
23495 * tree-sra.c (build_reconstructed_reference): Drop the alignment
23496 check.
23497
23498 2019-06-06 Martin Jambor <mjambor@suse.cz>
23499
23500 * tree-sra.c (struct access): New field grp_same_access_path.
23501 (dump_access): Dump it.
23502 (build_reconstructed_reference): New function.
23503 (build_ref_for_model): Use it if possible.
23504 (path_comparable_for_same_access): New function.
23505 (same_access_path_p): Likewise.
23506 (sort_and_splice_var_accesses): Set the new flag.
23507 (analyze_access_subtree): Likewise.
23508 (propagate_subaccesses_across_link): Propagate zero value of the new
23509 flag down the access tree.
23510
23511 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
23512
23513 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
23514 * config/gcn/gcn.opt (gpu_type): Add gfx906.
23515 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
23516 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
23517 Add gfx906.
23518
23519 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23520
23521 PR tree-optimization/90332
23522 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
23523 Handle VALS containing two vectors.
23524 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
23525 to...
23526 (@aarch64_combinez<mode>): ... This.
23527 (*aarch64_combinez_be<mode>): Rename to...
23528 (@aarch64_combinez_be<mode>): ... This.
23529 (vec_init<mode><Vhalf>): New define_expand.
23530 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
23531
23532 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23533
23534 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
23535 library functions only when not optimizing for size.
23536 (ashlsi3): Likewise.
23537 (ashrhi3): Likewise.
23538 (ashrsi3): Likewise.
23539 (lshrhi3): Likewise.
23540 (lshrsi3): Likewise.
23541
23542 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
23543
23544 PR rtl-optimization/88751
23545 * ira.c (ira): Use the number of the actually referenced registers
23546 when calculating the threshold.
23547
23548 2019-06-06 Jakub Jelinek <jakub@redhat.com>
23549
23550 * configure: Regenerate.
23551
23552 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23553
23554 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
23555 register if it is in memory, so the shift can be emulated with a rotate
23556 instruction.
23557 (ashrhi3): Likewise.
23558 (lshrhi3): Likewise.
23559
23560 2019-06-06 Martin Liska <mliska@suse.cz>
23561
23562 PR tree-optimization/87954
23563 * match.pd: Simplify mult where both arguments are 0 or 1.
23564
23565 2019-06-06 Richard Biener <rguenther@suse.de>
23566
23567 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
23568 put equivalences on UNDEFINED ranges.
23569 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
23570 Make sure to drop defs of stmts added during simplification
23571 to VARYING.
23572
23573 2019-06-06 Richard Biener <rguenther@suse.de>
23574
23575 * tree-ssa-structalias.c: Include tree-cfg.h.
23576 (make_heapvar): Do not make heap vars artificial.
23577 (find_func_aliases_for_builtin_call): Handle stack allocation
23578 functions.
23579 (find_func_aliases): Delay processing of simple enough returns
23580 in non-IPA mode.
23581 (set_uids_in_ptset): Adjust.
23582 (find_what_var_points_to): Likewise.
23583 (solve_constraints): Do not dump points-to sets here.
23584 (compute_points_to_sets): Post-process return statements,
23585 amending the escaped solution. Dump points-to sets afterwards.
23586 (ipa_pta_execute): Dump points-to sets.
23587
23588 2019-06-06 Martin Liska <mliska@suse.cz>
23589
23590 PR web/87933
23591 * doc/install.texi: Fix HTML headers and
23592 titles for 'Installing GCC' pages.
23593
23594 2019-06-06 Martin Liska <mliska@suse.cz>
23595
23596 * ipa-icf-gimple.h (dump_message_1): Remove.
23597 (dump_message): Likewise.
23598 (return_false_with_message_1): Print also file.
23599 (return_false_with_msg): Likewise.
23600 (return_with_result): Likewise.
23601 (return_with_debug): Likewise.
23602 * ipa-icf.c (sem_function::equals_private): Remove call
23603 to dump_message.
23604
23605 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
23606
23607 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
23608 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
23609 memory operand for it.
23610 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
23611
23612 2019-06-05 Martin Sebor <msebor@redhat.com>
23613
23614 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
23615 Adjust quoting and hyphenation.
23616 * convert.c (convert_to_real_1): Same.
23617 * gcc.c (driver_wrong_lang_callback): Same.
23618 (driver::handle_unrecognized_options): Same.
23619 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
23620 * opts-common.c (cmdline_handle_error): Same.
23621 (read_cmdline_option): Same.
23622 * opts-global.c (complain_wrong_lang): Same.
23623 (print_ignored_options): Same.
23624 (handle_common_deferred_options): Same.
23625 * pretty-print.h: Same.
23626 * print-rtl.c (debug_bb_n_slim): Same.
23627 * sched-rgn.c (make_pass_sched_fusion): Same.
23628 * tree-cfg.c (verify_gimple_assign_unary): Same.
23629 (verify_gimple_label): Same.
23630 * tree-ssa-operands.c (verify_ssa_operands): Same.
23631 * varasm.c (do_assemble_alias): Same.
23632 (assemble_alias): Same.
23633
23634 2019-06-05 Richard Henderson <rth@twiddle.net>
23635
23636 * config/alpha/alpha.c (direct_return): Move down after
23637 struct machine_function definition; use saved frame_size;
23638 return bool.
23639 (struct machine_function): Add sa_mask, sa_size, frame_size.
23640 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
23641 (alpha_compute_frame_layout): ... new function.
23642 (TARGET_COMPUTE_FRAME_LAYOUT): New.
23643 (alpha_initial_elimination_offset): Use saved sa_size.
23644 (alpha_vms_initial_elimination_offset): Likewise.
23645 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
23646 (alpha_expand_prologue): Use saved frame data. Merge integer
23647 and fp register save loops.
23648 (alpha_expand_epilogue): Likewise.
23649 (alpha_start_function): Use saved frame data.
23650 * config/alpha/alpha-protos.h (direct_return): Update.
23651 (alpha_sa_size): Remove.
23652
23653 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
23654
23655 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
23656 multiplication by a power-of-two value.
23657 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
23658 and turn the modulo operation into a masking operation.
23659
23660 2019-06-05 Jakub Jelinek <jakub@redhat.com>
23661
23662 PR debug/90733
23663 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
23664 with VOIDmode inner operands.
23665
23666 2019-06-05 Richard Biener <rguenther@suse.de>
23667
23668 PR middle-end/90726
23669 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
23670 turn an expression graph into a tree.
23671
23672 2019-06-05 Jakub Jelinek <jakub@redhat.com>
23673
23674 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
23675 member.
23676 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
23677 treat it like explicit monotonic schedule modifier.
23678 (expand_omp_for): Initialize has_lastprivate_conditional.
23679 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
23680 schedule modifier.
23681
23682 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
23683 references, lookup in in hash map MEM_REF operand instead of the
23684 MEM_REF itself.
23685 (lower_omp_1): When looking for lastprivate conditional assignments,
23686 handle MEM_REFs with REFERENCE_TYPE operands.
23687
23688 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
23689 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
23690 and references a VLA. Handle references to non-VLAs if is_simd
23691 all privatization clauses like reductions.
23692 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
23693 If omp_is_reference, use always omp simd arrays and set
23694 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
23695 fails, emit reference initialization.
23696
23697 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
23698
23699 PR target/89803
23700 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
23701 _mm_mask_fpclass_sd_mask): New intrinsics.
23702 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
23703 * config/i386/i386-builtin.def
23704 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
23705 New builtins.
23706 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
23707 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
23708 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
23709 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
23710 case QI_FTYPE_V2SF_INT): Ditto.
23711 * config/i386/sse.md
23712 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
23713 Extended to insnstructions with mask operands.
23714
23715 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23716
23717 * config/rs6000/constraints.md (define_register_constraint "wp"):
23718 Delete.
23719 (define_register_constraint "wq"): Delete.
23720 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23721 (rs6000_init_hard_regno_mode_ok): Adjust.
23722 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23723 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
23724 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
23725 (define_mode_attr VSa): Delete.
23726 (define_mode_attr VSisa): New.
23727 (rest of file): Adjust.
23728 * doc/md.texi (Machine Constraints): Adjust.
23729
23730 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23731
23732 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
23733 (define_attr "enabled"): Handle those new isa values.
23734
23735 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23736
23737 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
23738 (define_mode_attr VSr5): Delete.
23739 (define_mode_attr VStype_sqrt): Delete.
23740 (define_mode_iterator VSX_SPDP): Delete.
23741 (define_mode_attr VS_spdp_res): Delete.
23742 (define_mode_attr VS_spdp_insn): Delete.
23743 (define_mode_attr VS_spdp_type): Delete.
23744 (*vsx_sqrt<mode>2): Adjust.
23745 (vsx_<VS_spdp_insn>): Delete, split to...
23746 (vsx_xscvdpsp): ... this. New. And...
23747 (vsx_xvcvspdp): ... this. New. And...
23748 (vsx_xvcvdpsp): ... this. New.
23749
23750 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23751
23752 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
23753 and V2DF.
23754 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
23755 (rest of file): Adjust.
23756
23757 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23758
23759 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
23760 (vsx_extract_<mode>_var): Ditto.
23761
23762 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23763
23764 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
23765 with just "wa".
23766
23767 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23768
23769 * config/rs6000/constraints.md (define_register_constraint "ww"):
23770 Delete.
23771 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23772 (rs6000_init_hard_regno_mode_ok): Adjust.
23773 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23774 RS6000_CONSTRAINT_ww.
23775 * config/rs6000/rs6000.md: Adjust.
23776 * config/rs6000/vsx.md: Adjust.
23777 * doc/md.texi (Machine Constraints): Adjust.
23778
23779 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23780
23781 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
23782 (define_mode_attr sd): New.
23783 (define_mode_attr s): New.
23784 (define_mode_attr Ftrad): Delete.
23785 (define_mode_attr Fvsx): Delete.
23786 (define_mode_attr Fs): Delete.
23787 (rest of file): Use the new mode attributes.
23788 * config.rs6000/vsx.md: Use the new mode attributes.
23789
23790 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23791
23792 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
23793 with just "wa".
23794
23795 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23796
23797 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
23798 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
23799 used with VSX_B, VSX_D, or VSX_F, with just "wa".
23800
23801 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
23802
23803 PR target/78263
23804 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
23805 C++ with strict ANSI requirements.
23806
23807 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
23808
23809 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
23810 computations when step is 1.
23811
23812 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23813
23814 * config/rs6000/constraints.md (define_register_constraint "wf"):
23815 Delete.
23816 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23817 (rs6000_init_hard_regno_mode_ok): Adjust.
23818 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23819 RS6000_CONSTRAINT_wf.
23820 * config/rs6000/rs6000.md: Adjust.
23821 * config/rs6000/vsx.md: Adjust.
23822 * doc/md.texi (Machine Constraints): Adjust.
23823
23824 2019-06-04 Andrew Pinski <apinski@marvell.com>
23825
23826 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
23827 Fix ILP32 value.
23828
23829 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23830
23831 * config/rs6000/constraints.md (define_register_constraint "wd"):
23832 Delete.
23833 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23834 (rs6000_init_hard_regno_mode_ok): Adjust.
23835 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23836 RS6000_CONSTRAINT_wd.
23837 * config/rs6000/rs6000.md: Adjust.
23838 * config/rs6000/vsx.md: Adjust.
23839 * doc/md.texi (Machine Constraints): Adjust.
23840
23841 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23842
23843 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
23844 (rest of file): Adjust.
23845
23846 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23847
23848 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
23849 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
23850 (vsx_splat_<mode>_reg): Adjust.
23851
23852 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23853
23854 * config/rs6000/constraints.md (define_register_constraint "ws"):
23855 Delete.
23856 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23857 (rs6000_init_hard_regno_mode_ok): Adjust.
23858 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23859 RS6000_CONSTRAINT_ws.
23860 * config/rs6000/rs6000.md: Adjust.
23861 * config/rs6000/vsx.md: Adjust.
23862 * doc/md.texi (Machine Constraints): Adjust.
23863
23864 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23865
23866 * config/rs6000/constraints.md (define_register_constraint "wv"):
23867 Delete.
23868 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23869 (rs6000_init_hard_regno_mode_ok): Adjust.
23870 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23871 RS6000_CONSTRAINT_wv.
23872 * config/rs6000/rs6000.md: Adjust.
23873 * config/rs6000/vsx.md: Adjust.
23874 * doc/md.texi (Machine Constraints): Adjust.
23875
23876 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23877
23878 * config/rs6000/constraints.md (define_register_constraint "wi"):
23879 Delete.
23880 (define_register_constraint "wt"): Delete.
23881 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23882 (rs6000_init_hard_regno_mode_ok): Adjust.
23883 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23884 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
23885 * config/rs6000/rs6000.md: Adjust.
23886 * config/rs6000/vsx.md: Adjust.
23887 * doc/md.texi (Machine Constraints): Adjust.
23888
23889 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
23890
23891 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
23892 const.
23893 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
23894 default_elf_asm_output_external.
23895
23896 2019-06-04 Martin Liska <mliska@suse.cz>
23897
23898 * ipa-icf.c (INCLUDE_LIST): Remove.
23899 (sem_item_optimizer::execute): Remove call to init_wpa.
23900 * ipa-icf.h (init_wpa): Remove.
23901
23902 2019-06-04 Jakub Jelinek <jakub@redhat.com>
23903
23904 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
23905 conditional on combined for simd.
23906 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
23907 member.
23908 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
23909 constructs, don't remove lastprivate_conditional_map, but instead set
23910 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
23911 to parent construct temporaries.
23912 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
23913 like !ctx->lastprivate_conditional_map.
23914 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
23915 use up->outer context instead of up.
23916 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
23917 gimple_omp_for_combined_p.
23918 (expand_omp_for_static_nochunk): Likewise.
23919 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
23920 probably moved over into expand_omp_for_generic rather than being copied
23921 there.
23922
23923 2019-06-04 Martin Liska <mliska@suse.cz>
23924
23925 * value-prof.c (dump_histogram_value): Fix typo.
23926 (gimple_mod_subtract_transform): Likewise.
23927
23928 2019-06-04 Richard Biener <rguenther@suse.de>
23929
23930 PR middle-end/90726
23931 * tree-chrec.c (chrec_contains_symbols): Add to visited.
23932 (tree_contains_chrecs): Likewise.
23933 (chrec_contains_symbols_defined_in_loop): Move here and avoid
23934 exponential behaivor from ...
23935 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
23936 ... here.
23937 (expression_expensive_p): Avoid exponential behavior and compute
23938 expanded size, rejecting any expansion.
23939 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
23940 (idx_contains_abnormal_ssa_name_p): Likewise.
23941 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
23942 (contains_abnormal_ssa_name_p): Simplify and use
23943 walk_tree_without_duplicates.
23944
23945 2019-06-04 Richard Biener <rguenther@suse.de>
23946
23947 PR tree-optimization/90738
23948 Revert
23949 2019-06-03 Richard Biener <rguenther@suse.de>
23950
23951 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
23952 full reference tree and record in ref->ref.
23953 (vn_reference_lookup_3): Pass in original ref to
23954 ao_ref_init_from_vn_reference.
23955 (vn_reference_lookup): Likewise.
23956 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
23957 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
23958 Handle non-decl bases in the original reference.
23959
23960 2019-06-04 Martin Liska <mliska@suse.cz>
23961
23962 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
23963 number of references.
23964 (sem_item_optimizer::do_congruence_step):
23965 (sem_item_optimizer::worklist_push): Dump how references
23966 a class has.
23967 (sem_item_optimizer::worklist_pop): Use heap.
23968 (sem_item_optimizer::process_cong_reduction): Likewise.
23969 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
23970
23971 2019-06-04 Martin Liska <mliska@suse.cz>
23972
23973 * ipa-icf.h (struct sem_usage_pair_hash): New.
23974 (sem_usage_pair_hash::hash): Likewise.
23975 (sem_usage_pair_hash::equal): Likewise.
23976 (struct sem_usage_hash): Likewise.
23977 * ipa-icf.c (sem_item::sem_item): Initialize
23978 referenced_by_count.
23979 (sem_item::add_reference): Register a reference
23980 in ref_map and not in target->usages.
23981 (sem_item::setup): Remove initialization of
23982 dead vectors.
23983 (sem_item::~sem_item): Remove usage of dead vectors.
23984 (sem_item::dump): Remove dump of references.
23985 (sem_item_optimizer::sem_item_optimizer): Initialize
23986 m_references.
23987 (sem_item_optimizer::read_section): Remove useless
23988 dump.
23989 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
23990 (sem_item_optimizer::build_graph): Pass m_references
23991 to ::add_reference.
23992 (sem_item_optimizer::verify_classes): Remove usage of dead
23993 vectors.
23994 (sem_item_optimizer::traverse_congruence_split): Return true
23995 when a class is split.
23996 (sem_item_optimizer::do_congruence_step_for_index): Use
23997 hash_map for look up of (sem_item *, index). That brings
23998 significant speed up.
23999 (sem_item_optimizer::do_congruence_step): Return true
24000 when a split is done.
24001 (congruence_class::is_class_used): Use referenced_by_count.
24002
24003 2019-06-04 Alan Modra <amodra@gmail.com>
24004
24005 PR target/90689
24006 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
24007 error.
24008
24009 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24010
24011 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
24012 * config/rs6000/rs6000.c (direct_move_p): Adjust.
24013 (rs6000_secondary_reload_simple_move): Adjust.
24014 (rs6000_opt_masks): Neuter the "mfpgpr" option.
24015 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
24016 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
24017 comment.
24018 (power6x): Adjust.
24019 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
24020 (floatunssi<mode>2_lfiwzx): Adjust.
24021 (fix_trunc<mode>si2_stfiwx): Adjust.
24022 (fixuns_trunc<mode>si2_stfiwx): Adjust.
24023 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
24024 (mfpgpr): Mark as deprecated.
24025 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
24026 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
24027 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
24028
24029 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24030
24031 * config/rs6000/constraints.md (define_register_constraint "wg"):
24032 Delete.
24033 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24034 RS6000_CONSTRAINT_wg.
24035 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24036 (rs6000_init_hard_regno_mode_ok): Adjust.
24037 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
24038 Delete "wg" alternatives.
24039 * doc/md.texi (Machine Constraints): Adjust.
24040
24041 2019-06-03 Alan Modra <amodra@gmail.com>
24042
24043 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
24044 (get_uncond_jump_length): Assert length less than INT_MAX and
24045 non-negative.
24046
24047 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24048
24049 PR middle-end/64242
24050 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
24051 block.
24052 (expand_builtin_nonlocal_goto): Likewise.
24053
24054 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24055
24056 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
24057 (aarch64_asm_output_external): Declare.
24058 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
24059 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
24060 (aarch64_asm_output_alias): New.
24061 (aarch64_asm_output_external): New.
24062 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
24063 (ASM_OUTPUT_EXTERNAL): Define.
24064
24065 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
24066 * tree-vrp.h (value_range_base::nonzero_p): New.
24067 (value_range_base::set_nonnull): Rename to...
24068 (value_range_base::set_nonzero): ...this.
24069 (value_range_base::set_null): Rename to...
24070 (value_range_base::set_zero): ...this.
24071 (value_range::set_nonnull): Remove.
24072 (value_range::set_null): Remove.
24073 * tree-vrp.c (range_is_null): Remove.
24074 (range_is_nonnull): Remove.
24075 (extract_range_from_binary_expr): Use value_range_base::*zero_p
24076 instead of range_is_*null.
24077 (extract_range_from_unary_expr): Same.
24078 (value_range_base::set_nonnull): Rename to...
24079 (value_range_base::set_nonzero): ...this.
24080 (value_range::set_nonnull): Remove.
24081 (value_range_base::set_null): Rename to...
24082 (value_range_base::set_zero): ...this.
24083 (value_range::set_null): Remove.
24084 (extract_range_from_binary_expr): Rename set_*null uses to
24085 set_*zero.
24086 (extract_range_from_unary_expr): Same.
24087 (union_helper): Same.
24088 * vr-values.c (get_value_range): Use set_*zero instead of
24089 set_*null.
24090 (vr_values::extract_range_from_binary_expr): Same.
24091 (vr_values::extract_range_basic): Same.
24092
24093 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24094
24095 PR driver/90684
24096 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
24097
24098 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24099
24100 * config/aarch64/iterators.md (MAX_OPP): New code attr.
24101 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
24102 Rename to...
24103 (aarch64_<su>abd<mode>_3): ... This.
24104 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
24105
24106 2019-06-03 Richard Biener <rguenther@suse.de>
24107
24108 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24109 full reference tree and record in ref->ref.
24110 (vn_reference_lookup_3): Pass in original ref to
24111 ao_ref_init_from_vn_reference.
24112 (vn_reference_lookup): Likewise.
24113 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24114 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24115 Handle non-decl bases in the original reference.
24116
24117 2019-06-03 Martin Liska <mliska@suse.cz>
24118
24119 * doc/generic.texi: Remove Java Trees.
24120
24121 2019-06-03 Martin Liska <mliska@suse.cz>
24122
24123 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
24124 returns 0 when operands are equal.
24125
24126 2019-06-03 Richard Biener <rguenther@suse.de>
24127
24128 PR tree-optimization/90716
24129 * tree-loop-distribution.c (destroy_loop): Process blocks in
24130 correct order.
24131
24132 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24133
24134 PR target/88837
24135 * vector-builder.h (vector_builder::count_dups): New method.
24136 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
24137 Declare prototype.
24138 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
24139 (vec_init<mode><Vel>): New pattern.
24140 * config/aarch64/aarch64.c (emit_insr): New function.
24141 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
24142 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
24143 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
24144 (aarch64_sve_expand_vector_init): Define two overloaded functions.
24145
24146 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24147
24148 PR tree-optimization/90681
24149 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
24150 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
24151 special case for SLP, but fail on non-groupped loads.
24152
24153 2019-06-03 Martin Liska <mliska@suse.cz>
24154
24155 * cfg.c (debug): Use TDF_DETAILS for debug and
24156 print edge info only once.
24157
24158 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
24159
24160 PR fortran/90539
24161 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
24162
24163 2019-06-01 Martin Sebor <msebor@redhat.com>
24164
24165 PR middle-end/90694
24166 * tree-pretty-print.c (dump_generic_node): Add parentheses.
24167
24168 2019-05-31 Jan Hubicka <jh@suse.cz>
24169
24170 * alias.c: Include ipa-utils.h.
24171 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
24172 * ipa-devirt.c (prevailing_odr_type): New.
24173 * ipa-utils.h (previaling_odr_type): Declare.
24174
24175 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
24176 Hongtao Liu <hongtao.liu@intel.com>
24177
24178 PR target/89355
24179 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
24180 NOTE_INSN_DELETED_LABEL check.
24181
24182 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
24183 Robert Suchanek <robert.suchanek@mips.com>
24184
24185 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
24186 and 3rd operands of the fmadd/fmsub/maddv builtin.
24187
24188 2019-05-31 Jakub Jelinek <jakub@redhat.com>
24189
24190 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
24191 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
24192 on OMP_SIMD if not nested inside of worksharing loop that also has
24193 lastprivate conditional clause for the same decl.
24194 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
24195 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
24196 on simd.
24197 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
24198 on simd construct.
24199 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
24200 on simd construct.
24201 (lower_lastprivate_clauses): Likewise.
24202 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
24203 calling lower_rec_input_clauses.
24204 (lower_omp_for): Likewise.
24205 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
24206 clause on simd construct.
24207 * omp-expand.c (expand_omp_simd): Initialize cond_var if
24208 OMP_CLAUSE__CONDTEMP_ clause is present.
24209
24210 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
24211 ivar and lvar.
24212
24213 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
24214
24215 PR c/43673
24216 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
24217 TEX_D32, TEX_D64 or TEX_D128.
24218
24219 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
24220
24221 * match.pd (~(vec?cst1:cst2)): New transformation.
24222
24223 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
24224
24225 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
24226 ((size_t)(A /[ex] B) CMP C): New transformation.
24227
24228 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
24229
24230 * doc/md.texi: Document define_insn_and_rewrite.
24231 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
24232 * gensupport.c (queue_elem): Update comment.
24233 (replace_operands_with_dups): New function.
24234 (gen_rewrite_sequence): Likewise.
24235 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
24236 * read-rtl.c (apply_subst_iterator): Likewise.
24237 (add_condition_to_rtx, named_rtx_p): Likewise.
24238 (rtx_reader::read_rtx_operand): Likewise.
24239 * config/aarch64/aarch64-sve.md
24240 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
24241 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
24242 define_insn_and_rewrite.
24243 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
24244 Remove separate define_split.
24245
24246 2019-05-31 Jan Hubicka <jh@suse.cz>
24247
24248 * tree-ssa-alias.c (type_has_components_p): New function.
24249 (aliasing_component_refs_p): Use it.
24250
24251 2019-05-31 Martin Liska <mliska@suse.cz>
24252
24253 * gdbhooks.py: Add const_tree to TreePrinter.
24254
24255 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
24256
24257 PR debug/86964
24258 * common.opt (feliminate-unused-debug-symbols): Enable by default.
24259 * doc/invoke.texi (Debugging Options): Document new default of
24260 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
24261
24262 2019-05-31 Jakub Jelinek <jakub@redhat.com>
24263
24264 PR tree-optimization/90671
24265 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
24266 template_block used to be empty on the first call, don't use
24267 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
24268 seq with bb_seq and set it with set_bb_seq.
24269
24270 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
24271
24272 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
24273
24274 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24275 Michael Meissner <meissner@linux.ibm.com>
24276
24277 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
24278 (prefixed_mem_operand): Likewise.
24279 (non_prefixed_mem_operand): Likewise.
24280 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
24281 prototype.
24282 * config/rs6000/rs6000.c (print_operand_address): Handle
24283 PC-relative addresses.
24284 (mode_supports_prefixed_address_p): New function.
24285 (rs6000_prefixed_address): New function.
24286 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
24287 (SYMBOL_REF_PCREL_P): Likewise.
24288
24289 2019-05-30 Jakub Jelinek <jakub@redhat.com>
24290
24291 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
24292 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
24293 (gimplify_omp_for): If worksharing loop with lastprivate conditional
24294 is nested inside of parallel region, add _condtemp_ clause to both.
24295 * tree-nested.c (convert_nonlocal_omp_clauses,
24296 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
24297 assertion failure.
24298 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
24299 member.
24300 * omp-general.c (omp_extract_for_data): Compute it.
24301 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
24302 (lower_rec_input_clauses): Likewise.
24303 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
24304 clause is already present, just add one further one after it.
24305 (lower_lastprivate_clauses): Handle cond_ptr with array type.
24306 (lower_send_shared_vars): Clear _condtemp_ vars.
24307 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
24308 or section or taskgroup.
24309 * omp-expand.c (determine_parallel_type): Disallow combining only if
24310 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
24311 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
24312 (expand_omp_for_generic, expand_omp_for_static_nochunk,
24313 expand_omp_for_static_chunk, expand_omp_for): Use
24314 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
24315 determine if a special set of API routines are needed and if condtemp
24316 needs to be initialized, while always initialize cond_var if
24317 fd->lastprivate_conditional is non-zero.
24318
24319 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24320 Michael Meissner <meissner@linux.ibm.com>
24321
24322 * config/rs6000/constraints.md (eI): New constraint.
24323 * config/rs6000/predicates.md (cint34_operand): New predicate.
24324 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
24325 (SIGNED_34BIT_OFFSET_P): Likewise.
24326 * doc/md.texi (eI): Document constraint.
24327
24328 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
24329
24330 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
24331
24332 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24333 Michael Meissner <meissner@linux.ibm.com>
24334
24335 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
24336 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
24337 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
24338 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
24339 (OTHER_FUTURE_MASKS): Likewise.
24340 (POWERPC_MASKS): Likewise.
24341 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
24342 specified without -mprefixed-addr or -mcpu=future. Error if
24343 -mprefixed-addr is specified without -mcpu=future.
24344 (rs6000_opt_masks): Add entry for prefixed-addr.
24345 * rs6000.opt (mprefixed-addr): New option.
24346
24347 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
24348
24349 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
24350 cfun->is_thunk check.
24351
24352 2019-05-30 Jakub Jelinek <jakub@redhat.com>
24353
24354 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
24355 to length.
24356
24357 2019-05-30 Martin Liska <mliska@suse.cz>
24358
24359 * gdbinit.in: Fix 'ptc' command. Add trt
24360 that prints TREE_TYPE($).
24361
24362 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
24363 Alan Modra <amodra@gmail.com>
24364
24365 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
24366 calls here...
24367 (rs6000_indirect_call_template_1): ...and here.
24368 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
24369 plt16_ha, plt16_lo, mtctr indirect calls. Use
24370 rs6000_pltseq_enum.
24371 (rs6000_decl_ok_for_sibcall): New function.
24372 (rs6000_function_ok_for_sibcall): Refactor.
24373 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
24374 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
24375 when pcrel. Reorganize.
24376 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
24377 * rs6000.h (rs6000_pltseq_enum): New enum.
24378 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
24379 (*pltseq_tocsave): Use rs6000_pltseq_enum.
24380 (*pltseq_plt16_ha): Likewise.
24381 (*pltseq_plt16_lo): Likewise.
24382 (*pltseq_mtctr): Likewise.
24383 (*pltseq_plt_pcrel): New insn.
24384 (*call_local_aix): Handle @notoc calls.
24385 (*call_value_local_aix): Likewise.
24386 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
24387 (*call_value_nonlocal_aix): Likewise.
24388 (*call_indirect_pcrel): New insn.
24389 (*call_value_indirect_pcrel): Likewise.
24390
24391 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
24392
24393 * config/i386/sse.md (*save_multiple<mode>): Rename from
24394 save_multiple<mode>.
24395 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
24396 (*restore_multiple_and_return<mode>): Rename from
24397 restore_multiple_and_return<mode>.
24398 (*restore_multiple_leave_return<mode>): Rename from
24399 restore_multiple_leave_return<mode>.
24400
24401 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
24402
24403 * config.gcc (rx-*-linux*): New target.
24404 * config/rx/elf.opt: New file.
24405 * config/rx/linux.h: Likewise.
24406 * config/rx/t-linux: Likewise.
24407 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
24408 make it zero.
24409 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
24410 (ASM_APP_OFF): Likewise.
24411 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
24412 moved elsewhere.
24413
24414 2019-05-29 Jan Hubicka <jh@suse.cz>
24415
24416 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
24417 variants are pointer equivalent.
24418
24419 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24420
24421 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
24422 * config/aarch64/aarch64-sve2.md: New file.
24423 (<u>avg<mode>3_floor): New pattern.
24424 (<u>avg<mode>3_ceil): Likewise.
24425 (*<sur>h<addsub><mode>): Likewise.
24426 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
24427 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
24428
24429 2019-05-29 Jakub Jelinek <jakub@redhat.com>
24430
24431 PR bootstrap/90543
24432 * optc-save-gen.awk: In cl_optimization_print, use correct condition
24433 for var_opt_string printing. In cl_optimization_print_diff, print
24434 (null) instead of invoking undefined behavior if one of the
24435 var_opt_string pointers is NULL and use && instead of first || in the
24436 guarding condition. For var_target_other options, handle const char *
24437 target variables similarly to const char * optimize node variables.
24438
24439 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
24440
24441 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
24442 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
24443 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
24444 Add autib1716 and pacib1716 initialisation.
24445 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
24446 for autib1716 and pacib1716.
24447 * config/aarch64/aarch64-protos.h (aarch64_key_type,
24448 aarch64_post_cfi_startproc): Define.
24449 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
24450 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
24451 aarch64_handle_pac_ret_protection): Set default sign key to A.
24452 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
24453 aarch64_expand_prologue): Add check for b-key.
24454 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
24455 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
24456 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
24457 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
24458 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
24459 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
24460 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
24461 * config/aarch64/aarch64.md (do_return): Add check for b-key.
24462 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
24463 pauth_hint_num_a with pauth_hint_num.
24464 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
24465 pauth_hint_num_a with pauth_hint_num.
24466 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
24467 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
24468 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
24469 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
24470 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
24471 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
24472 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
24473 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
24474 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
24475 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
24476 UNSPEC_AUTIA1716 respectively.
24477 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
24478 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
24479 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
24480 * doc/invoke.texi (-mbranch-protection): Add b-key type.
24481 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
24482 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
24483
24484 2019-05-29 Jakub Jelinek <jakub@redhat.com>
24485
24486 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
24487 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
24488 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
24489 explicit clause on combined parallel into implicit shared clause.
24490 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
24491 and firstprivate if the decl has one too from combined parallel to
24492 the worksharing construct.
24493
24494 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
24495 Michael Meissner <meissner@linux.ibm.com>
24496
24497 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
24498
24499 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
24500
24501 * rtl.h (LABEL_REF_P): New #define.
24502
24503 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
24504
24505 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
24506
24507 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24508
24509 * internal-fn.c: Marked mask_load_direct as vectorizable.
24510 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
24511 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
24512 combined even if masks different with allow_slp_p param.
24513 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
24514 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
24515 dissolve SLP-only vectorizable groups when SLP has been discarded.
24516 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
24517 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
24518 masks.
24519 (vect_build_slp_tree_1): Fixed comment typo.
24520 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
24521 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
24522 loads for SLP only.
24523 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
24524 vectorizable.
24525 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
24526
24527 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24528
24529 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
24530 Remove obsolete use_thunk reference.
24531 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
24532 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
24533 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
24534 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
24535 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
24536 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
24537 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
24538 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
24539 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
24540
24541 2019-05-28 Nathan Sidwell <nathan@acm.org>
24542
24543 * tree.h (IDENTIFIER_ANON_P): New.
24544 (anon_aggrname_format, anon_aggname_p): Don't declare.
24545 (make_anon_name): Declare.
24546 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
24547 (hash_tree): Likewise.
24548 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
24549 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
24550 (anon_cnt, make_anon_name): New.
24551
24552 2019-05-28 Martin Liska <mliska@suse.cz>
24553
24554 PR other/90315
24555 * opts-global.c (decode_options): Print help for all
24556 help_option_arguments.
24557 * opts.c (print_help): Add new argument.
24558 (common_handle_option): Remember all values into
24559 help_option_arguments.
24560 * opts.h (print_help): Add new argument.
24561
24562 2019-05-28 Martin Liska <mliska@suse.cz>
24563
24564 PR ipa/90555
24565 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
24566 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
24567 (func_checker::compare_bb): Call compare_loops.
24568
24569 2019-05-27 Jakub Jelinek <jakub@redhat.com>
24570
24571 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
24572 on sections construct.
24573 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
24574 construct.
24575 (lower_omp_sections): Handle lastprivate conditional.
24576 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
24577 lastprivate_conditional_map.
24578 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
24579
24580 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
24581 critical, taskgroup and section regions when looking for a region
24582 with non-NULL lastprivate_conditional_map.
24583
24584 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
24585
24586 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
24587 (*ix86_gen_sub3): Ditto.
24588 (*ix86_gen_sub3_carry): Ditto.
24589 (*ix86_gen_one_cmpl2): Ditto.
24590 (*ix86_gen_andsp): Ditto.
24591 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
24592 (gen_and2_insn): New static function.
24593 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
24594 Use gen_add3_insn instead of ix86_gen_add3.
24595 (ix86_expand_split_stack_prologue): Use gen_add2_insn
24596 instead of ix86_gen_add3.
24597 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
24598 Use gen_sub3_insn instead of ix86_gen_sub3.
24599 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
24600 instead of ix86_gen_add3.
24601 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
24602 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
24603 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
24604 * config/i386/i386-options.c (ix86_option_override_internal):
24605 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
24606 ix86_gen_one_cmpl2 and ix86_gen_andsp.
24607
24608 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
24609
24610 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
24611 and DW_OP_GNU_const_index opcodes.
24612
24613 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
24614
24615 * config/i386/i386.h (STACK_SIZE_MODE): Define.
24616
24617 2019-05-27 Richard Biener <rguenther@suse.de>
24618
24619 PR tree-optimization/90637
24620 * tree-ssa-sink.c (statement_sink_location): Honor the
24621 computed sink location for single-uses.
24622
24623 2019-05-27 Richard Biener <rguenther@suse.de>
24624
24625 PR middle-end/90610
24626 * match.pd (vec_perm): Avoid clobbering op0 when not generating
24627 a bit-insert.
24628
24629 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24630
24631 * config/i386/i386.md (@sub<mode>3_carry): Rename
24632 from sub<mode>3_carry.
24633 (@leave_<mode>): New expander.
24634 (*leave): Rename from leave.
24635 (*leave_rex64): Rename from leave_rex64.
24636 (@monitorx_<mode>): Rename from monitorx_<mode>.
24637 (@clzero_<mode>): Rename from clzero_<mode>.
24638 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
24639 from sse3_monitor_<mode>.
24640 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
24641 (*ix86_gen_leave): Ditto.
24642 (*ix86_gen_monitor): Ditto.
24643 (*ix86_gen_monitorx): Ditto.
24644 (*ix86_gen_clzero): Ditto.
24645 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
24646 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
24647 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
24648 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
24649 Use gen_sse3_monitor instead of ix86_gen_monitor.
24650 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
24651 instead of ix86_gen_monitorx.
24652 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
24653 instead of ix86_gen_clzero.
24654 * config/i386/i386-options.c (ix86_option_override_internal):
24655 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
24656 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
24657
24658 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24659
24660 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
24661 Rename from tls_global_dynamic_64_<mode>.
24662 (@tls_local_dynamic_base_64_<mode>): Rename from
24663 tls_local_dynamic_base_64_<mode>.
24664 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
24665 Remove indirect function.
24666 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
24667 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
24668 instead of ix86_gen_tls_global_dynamic_64.
24669 Use gen_tls_local_dynamic_base_64 instead of
24670 ix86_gen_tls_local_dynamic_base_64.
24671 * config/i386/i386-options.c (ix86_option_override_internal):
24672 Do not initialize ix86_gen_tls_global_dynamic_64 and
24673 ix86_gen_tls_local_dynamic_base_64.
24674
24675 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24676
24677 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
24678 Rename from pro_epilogue_adjust_stack_<mode>_add.
24679 (@pro_epilogue_adjust_stack_sub_<mode>)
24680 Rename from pro_epilogue_adjust_stack_<mode>_sub.
24681 (@allocate_stack_worker_probe_<mode>):
24682 Rename from allocate_stack_worker_probe_<mode>.
24683 (allocate_stack): Use gen_allocate_stack_worker_probe.
24684 (probe_stack): Use gen_probe_stack_1.
24685 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
24686 (@adjust_stack_and_probe_<mode>): Rename from
24687 adjust_stack_and_probe<mode>.
24688 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
24689 (stack_protect_set): Use gen_stack_protect_set_1.
24690 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
24691 (stack_protect_test): Use gen_stack_protect_test_1.
24692 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
24693 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
24694 Remove indirect function.
24695 (*ix86_gen_adjust_stack_and_probe): Ditto.
24696 (*ix86_gen_probe_stack_range): Ditto.
24697 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
24698 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
24699 (ix86_adjust_stack_and_probe_stack_clash): Use
24700 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
24701 (ix86_adjust_stack_and_probe): Ditto.
24702 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
24703 of ix86_gen_probe_stack_range.
24704 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
24705 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
24706 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
24707 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
24708 CODE_FOR_stack_protect_test_{si,di}.
24709 * config/i386/i386-options.c (ix86_option_override_internal):
24710 Do not initialize ix86_gen_allocate_stack_worker,
24711 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
24712
24713 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
24714
24715 * doc/invoke.texi (Link Options): Many editorial changes around
24716 -flinker-output.
24717
24718 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24719
24720 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
24721 pre-Solaris 11 referene and most Studio compiler details.
24722
24723 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
24724
24725 PR target/90530
24726 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
24727 DImode to SImode in floating-point registers on 64-bit target.
24728 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
24729 register_operand in xmpyu patterns.
24730
24731 2019-05-24 Jakub Jelinek <jakub@redhat.com>
24732
24733 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
24734 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
24735 OMP_CLAUSE__REDUCTEMP_.
24736 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
24737 OMP_CLAUSE__CONDTEMP_.
24738 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
24739 * tree-pretty-print.c (dump_omp_clause): Likewise.
24740 * tree-nested.c (convert_nonlocal_omp_clauses,
24741 convert_local_omp_clauses): Likewise.
24742 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
24743 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
24744 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
24745 on OMP_FOR.
24746 (gimplify_omp_for): Warn and disable conditional modifier from
24747 lastprivate on loop iterators.
24748 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
24749 member.
24750 * omp-general.c (omp_extract_for_data): Initialize it.
24751 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
24752 member.
24753 (delete_omp_context): Delete it.
24754 (lower_lastprivate_conditional_clauses): New function.
24755 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
24756 handle lastprivate conditional clauses.
24757 (lower_reduction_clauses): Add CLIST argument, emit it into
24758 the critical section if any.
24759 (lower_omp_sections): Adjust lower_lastprivate_clauses and
24760 lower_reduction_clauses callers.
24761 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
24762 to lower_lastprivate_clauses.
24763 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
24764 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
24765 clist into a critical section if not emitted there already by
24766 lower_reduction_clauses.
24767 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
24768 callers.
24769 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
24770 conditional variables.
24771 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
24772 clause is present.
24773 (expand_omp_for_generic, expand_omp_for_static_nochunk,
24774 expand_omp_for_static_chunk): Handle lastprivate conditional.
24775 (expand_omp_for): Handle fd.lastprivate_conditional like
24776 fd.have_reductemp.
24777
24778 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
24779
24780 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
24781 kernel does not exit cleanly.
24782 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
24783
24784 2019-05-24 Jason Merrill <jason@redhat.com>
24785
24786 Revert:
24787 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
24788
24789 2019-05-24 Richard Biener <rguenther@suse.de>
24790
24791 PR testsuite/90607
24792 * tree-loop-distribution.c (struct partition): Add location
24793 member.
24794 (partition_alloc): Initialize all fields.
24795 (generate_memset_builtin): Use the location recorded in the
24796 partition for the generated call.
24797 (generate_memcpy_builtin): Likewise.
24798 (classify_partition): Record the location of a single store
24799 as location for the partition.
24800
24801 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
24802
24803 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
24804 for lo-part.
24805
24806 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
24807
24808 PR target/90588
24809 * common/config/aarch64/aarch64-common.c
24810 (aarch64_rewrite_selected_cpu): Change local temporary variable
24811 type from unsigned long to uint64_t.
24812 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
24813 aarch64_get_extension_string_for_isa_flags): Change declaration to
24814 match new definition by replacing unsigned long with uint64_t.
24815
24816 2019-05-24 Jakub Jelinek <jakub@redhat.com>
24817
24818 PR target/90568
24819 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
24820 gen_attr_type just once instead of 4-7 times. Formatting fixes.
24821 Handle stack_protect_test_<mode> codegen similarly to corresponding
24822 sub instruction.
24823
24824 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
24825
24826 * config/i386/darwin.h: Reject -mfentry*.
24827 * doc/sourcebuild.texi: Document mfentry target support.
24828
24829 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
24830
24831 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
24832 Rename to rs6000_global_entry_point_prologue_needed_p. Return
24833 false for PC-relative functions.
24834 (rs6000_output_function_prologue): Change called function name to
24835 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
24836 name,1" for PC-relative functions.
24837 (rs6000_elf_declare_function_name): Change called function name to
24838 rs6000_global_entry_point_prologue_needed_p.
24839
24840 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
24841
24842 PR target/90552
24843 * config/i386/i386.c (gen_rtx_cost):
24844 Use ix86_tune_cost instead of ix86_cost.
24845
24846 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
24847 Michael Meissner <meissner@linux.ibm.com>
24848 Segher Boessenkool <segher@kernel.crashing.org>
24849
24850 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
24851 OPTION_MASK_PCREL.
24852 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
24853 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
24854 (rs6000_fndecl_pcrel_p): Likewise.
24855 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
24856 error if -mpcrel is requested without -mcpu=future.
24857 (rs6000_opt_masks): Add entry for pcrel.
24858 (rs6000_fndecl_pcrel_p): New function.
24859 (rs6000_pcrel_p): Likewise.
24860 * config/rs6000/rs6000.opt (mpcrel): New option.
24861 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
24862
24863 2019-05-23 Jan Hubicka <jh@suse.cz>
24864 Martin Liska <mliska@suse.cz>
24865
24866 PR tree-optimization/90576
24867 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
24868 poly_int_tree_p.
24869 (aliasing_component_refs_p): Fix three way size compare conditional;
24870 give up earlier in case we can not decide on equivalence.
24871
24872 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
24873 Michael Meissner <meissner@linux.ibm.com>
24874 Segher Boessenkool <segher@kernel.crashing.org>
24875
24876 * config.gcc: Add future cpu.
24877 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
24878 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
24879 #define.
24880 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
24881 (RS6000_CPU): New instantiation for future cpu.
24882 * config/rs6000/rs6000-opts.h (enum processor_type): Add
24883 PROCESSOR_FUTURE.
24884 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
24885 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
24886 * config/rs6000/rs6000-tables.opt: Regenerate.
24887 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
24888 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
24889 (rs6000_machine_from_flags): Handle future cpu.
24890 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
24891 PROCESSOR_POWER9 for now.
24892 (rs6000_adjust_cost): Likewise.
24893 (rs6000_issue_rate): Likewise.
24894 (rs6000_register_move_cost): Likewise.
24895 (rs6000_opt_masks): Add entry for future.
24896 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
24897 (MASK_FUTURE): New #define.
24898 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
24899 * config/rs6000/rs6000.opt (mfuture): New target option.
24900 * doc/invoke.texi (mcpu): Add future cpu.
24901
24902 2019-05-23 Martin Liska <mliska@suse.cz>
24903
24904 PR c++/90587
24905 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
24906 operation points to a temporary (pointed via tree_to_wide_ref)
24907 that is out of scope after the &.
24908
24909 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
24910
24911 PR c++/90592
24912 * doc/extend.texi (Function Names): Add missing word.
24913
24914 2019-05-23 Richard Biener <rguenther@suse.de>
24915
24916 PR tree-optimization/88440
24917 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
24918 at -O[2s]+.
24919 * tree-loop-distribution.c (generate_memset_builtin): Fold the
24920 generated call.
24921 (generate_memcpy_builtin): Likewise.
24922 (distribute_loop): Pass in whether to only distribute patterns.
24923 (prepare_perfect_loop_nest): Also allow size optimization.
24924 (pass_loop_distribution::execute): When optimizing a loop
24925 nest for size allow pattern replacement.
24926
24927 2019-05-23 Jakub Jelinek <jakub@redhat.com>
24928
24929 PR target/90568
24930 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
24931 of xor.
24932
24933 2019-05-23 Martin Liska <mliska@suse.cz>
24934
24935 PR sanitizer/90570
24936 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
24937 expression similarly to gimplify_decl_expr.
24938
24939 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24940
24941 * cse.c (cse_dump_path): s/dump_file/f.
24942
24943 2019-05-22 David Malcolm <dmalcolm@redhat.com>
24944
24945 PR c++/90462
24946 * diagnostic-format-json.cc: Include "selftest.h".
24947 (json_from_expanded_location): Only add "file" key for non-NULL
24948 file strings.
24949 (json_from_location_range): Don't add "start" and "finish"
24950 children if they are UNKNOWN_LOCATION.
24951 (selftest::test_unknown_location): New selftest.
24952 (selftest::test_bad_endpoints): New selftest.
24953 (selftest::diagnostic_format_json_cc_tests): New function.
24954 * json.cc (json::object::get): New function.
24955 (selftest::test_object_get): New selftest.
24956 (selftest::json_cc_tests): Call it.
24957 * json.h (json::object::get): New decl.
24958 * selftest-run-tests.c (selftest::run_tests): Call
24959 selftest::diagnostic_format_json_cc_tests.
24960 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
24961 decl.
24962
24963 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
24964 Andrew Stubbs <amd@codesourcery.com>
24965
24966 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
24967 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
24968 (kernel): Rename to...
24969 (main_kernel): ... this.
24970 (load_image): Load _init_array and _fini_array kernels.
24971 (run): Add argument for kernel to run.
24972 (main): Run init_array_kernel before main_kernel, and
24973 fini_array_kernel after.
24974 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
24975 amdgpu_hsa_kernel attribute on functions.
24976 (gcn_disable_constructors): Delete.
24977 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
24978 * config/gcn/crt0.c (size_t): Define.
24979 (_init_array, _fini_array): New.
24980 (__preinit_array_start, __preinit_array_end,
24981 __init_array_start, __init_array_end,
24982 __fini_array_start, __fini_array_end): Declare weak references.
24983
24984 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
24985
24986 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
24987
24988 2019-05-22 Jason Merrill <jason@redhat.com>
24989
24990 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
24991
24992 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
24993
24994 PR target/88483
24995 * config/i386/i386-options.c (ix86_init_machine_status): Set
24996 stack_frame_required to true.
24997 * config/i386/i386.c (ix86_get_frame_size): New function.
24998 (ix86_frame_pointer_required): Replace get_frame_size with
24999 ix86_get_frame_size.
25000 (ix86_compute_frame_layout): Likewise.
25001 (ix86_find_max_used_stack_alignment): Changed to void. Set
25002 stack_frame_required.
25003 (ix86_finalize_stack_frame_flags): Always call
25004 ix86_find_max_used_stack_alignment. Replace get_frame_size with
25005 ix86_get_frame_size.
25006 * config/i386/i386.h (machine_function): Add stack_frame_required.
25007
25008 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
25009
25010 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
25011
25012 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
25013
25014 * common/config/aarch64/aarch64-common.c
25015 (struct aarch64_option_extension, struct processor_name_to_arch,
25016 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
25017 aarch64_contains_opt,
25018 aarch64_get_extension_string_for_isa_flags): Change type of
25019 variables storing flags to uint64_t.
25020 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
25021 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
25022 * config/aarch64/aarch64.c (struct processor,
25023 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
25024 aarch64_validate_march, aarch64_override_options,
25025 aarch64_option_print, aarch64_handle_attr_isa_flags,
25026 aarch64_declare_function_name, aarch64_start_file): Make flag
25027 variables uint64_t.
25028 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
25029 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
25030 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
25031 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
25032 * config/aarch64/driver-aarch64.c
25033 (struct aarch64_arch_extension, struct aarch64_core_data,
25034 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
25035 flag variables uint64_t.
25036 * doc/invoke.texi: Add documentation for new arguments.
25037
25038 2019-05-22 Richard Biener <rguenther@suse.de>
25039
25040 * alias.c (ao_ref_from_mem): Move stack-slot sharing
25041 rewrite ...
25042 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
25043
25044 2019-05-22 Martin Liska <mliska@suse.cz>
25045
25046 PR lto/90500
25047 * doc/extend.texi: Document the change.
25048
25049 2019-05-22 Richard Biener <rguenther@suse.de>
25050
25051 PR tree-optimization/90450
25052 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
25053 (mem_ref_hasher::equal): Check it.
25054 (mem_ref_alloc): Initialize it.
25055 (gather_mem_refs_stmt): Set it.
25056
25057 2019-05-22 Richard Biener <rguenther@suse.de>
25058
25059 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
25060 Add ABS_EXPR.
25061 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
25062 as ABSU_EXPR.
25063
25064 2019-05-22 Alan Modra <amodra@gmail.com>
25065
25066 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
25067 (ASM_CPU_SPEC): Conditionally add -many.
25068 * config/rs6000/rs6000.c (rs6000_machine): New static var.
25069 (rs6000_machine_from_flags, emit_asm_machine): New functions..
25070 (rs6000_file_start): ..extracted from here, and modified to
25071 test all ISA bits.
25072 (rs6000_output_function_prologue): Emit .machine as necessary.
25073
25074 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
25075
25076 PR middle-end/90553
25077 * ira-lives.c (process_bb_node_lives): Consider defs
25078 for a call insn to be die before the call, not after.
25079
25080 * function.c (assign_parm_setup_block): Raise alignment of
25081 stacked parameter only for STRICT_ALIGNMENT targets.
25082
25083 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25084
25085 * config/rs6000/constraints.md (define_register_constraint "wz"):
25086 Delete.
25087 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25088 RS6000_CONSTRAINT_wz.
25089 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25090 (rs6000_init_hard_regno_mode_ok): Adjust.
25091 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
25092 * doc/md.texi (Machine Constraints): Adjust.
25093
25094 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25095
25096 * config/rs6000/constraints.md (define_register_constraint "wl"):
25097 Delete.
25098 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25099 RS6000_CONSTRAINT_wl.
25100 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25101 (rs6000_init_hard_regno_mode_ok): Adjust.
25102 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
25103 * doc/md.texi (Machine Constraints): Adjust.
25104
25105 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25106
25107 * config/rs6000/constraints.md (define_register_constraint "wm"):
25108 Delete.
25109 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25110 RS6000_CONSTRAINT_wm.
25111 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25112 (rs6000_init_hard_regno_mode_ok): Adjust.
25113 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
25114 * doc/md.texi (Machine Constraints): Adjust.
25115
25116 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25117
25118 * config/rs6000/constraints.md (define_register_constraint "wk"):
25119 Delete.
25120 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25121 RS6000_CONSTRAINT_wk.
25122 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25123 (rs6000_init_hard_regno_mode_ok): Adjust.
25124 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
25125 * doc/md.texi (Machine Constraints): Adjust.
25126
25127 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25128
25129 * config/rs6000/constraints.md (define_register_constraint "wj"):
25130 Delete.
25131 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25132 RS6000_CONSTRAINT_wj.
25133 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25134 (rs6000_init_hard_regno_mode_ok): Adjust.
25135 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
25136 (VS_64dm): Delete.
25137 * config/rs6000/vsx.md: Ditto.
25138 * doc/md.texi (Machine Constraints): Adjust.
25139
25140 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25141
25142 * config/rs6000/constraints.md (define_register_constraint "wh"):
25143 Delete.
25144 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25145 RS6000_CONSTRAINT_wh.
25146 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25147 (rs6000_init_hard_regno_mode_ok): Adjust.
25148 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
25149 * doc/md.texi (Machine Constraints): Adjust.
25150
25151 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25152
25153 PR target/90547
25154 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
25155 Avoid calling gen_lowpart with CONST operand.
25156
25157 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
25158
25159 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
25160 field template_last_to_copy.
25161 (ssa_create_duplicates): Set it, and use it. Attempt to
25162 preserve more debug stmts.
25163
25164 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25165
25166 * config/i386/sse.md (VF1_AVX2): New mode iterator.
25167 (signbit<mode>2): New expander
25168
25169 2019-05-21 James Clarke <jrtc27@jrtc27.com>
25170
25171 PR bootstrap/87338
25172 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
25173 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
25174
25175 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25176
25177 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
25178 %ebx and %ecx bafore calling cpuid with leaf 1 or
25179 non-constant leaf argument.
25180
25181 2019-05-21 Alan Modra <amodra@gmail.com>
25182
25183 PR target/90545
25184 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
25185 power9 direct move cost.
25186
25187 2019-05-21 Richard Biener <rguenther@suse.de>
25188
25189 PR middle-end/90510
25190 * fold-const.c (fold_read_from_vector): New function.
25191 * fold-const.h (fold_read_from_vector): Declare.
25192 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
25193 single-element insert permutations. Canonicalize selector
25194 further and fix issue with last commit.
25195
25196 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
25197
25198 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
25199 parameter with default value false to declaration.
25200 (split_edges_for_insertion): New inline function. Wrapper for
25201 split_critical_edges with for_edge_insertion_p = true.
25202 * tree-cfg.c (split_critical_edges): Don't split non-critical
25203 edges if for_edge_insertion_p is false. Fix whitespace.
25204 * tree-ssa-pre.c (pass_pre::execute): Call
25205 split_edges_for_insertion instead of split_critical_edges.
25206 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
25207 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
25208 (pass_data_sink_code): Update function name in the comment.
25209
25210 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
25211
25212 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
25213 around is_value_included_in that knows how to handle BIT_AND_EXPR.
25214 (is_pred_expr_subset_of): Use the new function. Handle more cases where
25215 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
25216 positives.
25217
25218 2019-05-21 Martin Liska <mliska@suse.cz>
25219
25220 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
25221 an extra newline.
25222 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
25223 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
25224 vec_lvsr.
25225 * config/rs6000/rs6000.c (rs6000_option_override_internal):
25226 Quote a C type.
25227 (rs6000_function_arg): Likewise.
25228 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
25229 (rs6000_expand_ternop_builtin): Use interval syntax.
25230 (get_element_number): Likewise.
25231 (altivec_expand_builtin): Likewise.
25232 (rs6000_get_function_versions_dispatcher): Quote target_clones.
25233
25234 2019-05-20 Jakub Jelinek <jakub@redhat.com>
25235
25236 PR c++/59813
25237 PR target/90418
25238 * function.h (struct function): Add calls_eh_return member.
25239 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
25240 gimplifying __builtin_eh_return call.
25241 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
25242 to cfun.
25243 (expand_call_inline): Or in src_cfun->calls_eh_return into
25244 dst_cfun->calls_eh_return.
25245 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
25246 cfun->calls_eh_return.
25247 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
25248 * lto-streamer-out.c (output_struct_function_base): Write
25249 calls_eh_return.
25250
25251 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
25252
25253 PR rtl-optimization/43147
25254 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
25255 IX86_BUILTIN_SHUFPD.
25256
25257 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
25258
25259 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
25260 (refs_may_alias_p_1): ... here; update stats.
25261 (refs_may_alias_p): Do not update stats here.
25262
25263 2019-05-20 Richard Biener <rguenther@suse.de>
25264
25265 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
25266 doesn't produce pointers.
25267 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
25268 the first operand points to.
25269
25270 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
25271
25272 * tree-ssa-alias.c (compare_sizes): New function.
25273 (sompare_type_sizes): New function
25274 (aliasing_component_refs_p): Use it.
25275 (indirect_ref_may_alias_decl_p): Likewise.
25276
25277 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25278
25279 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
25280
25281 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25282
25283 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
25284 (LIBLSAN_EARLY_SPEC): Likewise.
25285 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
25286
25287 2019-05-20 Martin Liska <mliska@suse.cz>
25288
25289 * config/i386/i386.c (ix86_libc_has_fast_function):
25290 Add ATTRIBUTE_UNUSED for the argument.
25291
25292 2019-05-20 Richard Biener <rguenther@suse.de>
25293
25294 * gimple-match-head.c: Include vec-perm-indices.h.
25295 * generic-match-head.c: Likewise.
25296 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
25297 is included.
25298 * fold-const.c (fold_vec_perm): Export.
25299 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
25300 (match.pd): ...here.
25301
25302 2019-05-20 Jakub Jelinek <jakub@redhat.com>
25303
25304 * cfgloop.h (struct loop): Add simdlen member.
25305 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
25306 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
25307 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
25308 as new argument to autovectorize_vector_sizes target hook. If
25309 loop->simdlen, pick up vector size where the vectorization factor
25310 is equal to loop->simd, and if there is none, fall back to the first
25311 successful one.
25312 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
25313 caller.
25314 * omp-low.c (omp_clause_aligned_alignment): Likewise.
25315 * omp-general.c (omp_max_vf): Likewise.
25316 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
25317 * tree-vect-slp.c (vect_slp_bb): Likewise.
25318 * target.def (autovectorize_vector_sizes): Add ALL argument and
25319 document it.
25320 * doc/tm.texi: Adjust documentation.
25321 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
25322 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
25323 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
25324 bool argument.
25325 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
25326 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
25327 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
25328 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
25329 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
25330 preferred vector size is not 512-bit or 256-bit, just put those
25331 unpreferred ones last.
25332
25333 2019-05-20 Martin Liska <mliska@suse.cz>
25334
25335 * targhooks.c (default_libc_has_fast_function): New function.
25336 * targhooks.h (default_libc_has_fast_function): Likewise.
25337
25338 2019-05-20 Martin Liska <mliska@suse.cz>
25339
25340 PR middle-end/90263
25341 * builtins.c (expand_builtin_memory_copy_args): When having a
25342 target with fast mempcpy implementation do now use memcpy.
25343 * config/i386/i386.c (ix86_libc_has_fast_function): New.
25344 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
25345 * doc/tm.texi: Likewise.
25346 * doc/tm.texi.in: Likewise.
25347 * target.def:
25348 * expr.c (emit_block_move_hints): Add 2 new arguments.
25349 * expr.h (emit_block_move_hints): Bail out when libcall
25350 to memcpy would be used.
25351
25352 2019-05-20 Martin Liska <mliska@suse.cz>
25353
25354 * profile-count.c: Add vertical spacing in order
25355 to separate functions.
25356 * profile-count.h: Likewise.
25357
25358 2019-05-20 Martin Liska <mliska@suse.cz>
25359
25360 * profile-count.h: Do not use full qualified
25361 names if possible.
25362 * profile-count.c (profile_count::to_frequency): Likewise.
25363
25364 2019-05-20 Martin Liska <mliska@suse.cz>
25365
25366 * profile-count.h (enum profile_quality): Use capital letters
25367 for enum value names. Use the adjusted names.
25368 * profile-count.c: Use the adjusted names.
25369
25370 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25371
25372 * config/rs6000/constraints.md (define_register_constraint "wH"):
25373 Delete.
25374 (define_register_constraint "wI"): Delete.
25375 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25376 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
25377 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25378 (rs6000_init_hard_regno_mode_ok): Adjust.
25379 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
25380 resp. "d", or with "wa" as appropriate, all with "p8v".
25381 * config/rs6000/vsx.md: Ditto.
25382 * doc/md.texi (Machine Constraints): Adjust.
25383
25384 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25385
25386 * config/rs6000/constraints.md (define_register_constraint "wy"):
25387 Delete.
25388 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25389 RS6000_CONSTRAINT_wy.
25390 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25391 (rs6000_init_hard_regno_mode_ok): Adjust.
25392 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
25393 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
25394 (define_mode_attr Fisa): New.
25395 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
25396 * doc/md.texi (Machine Constraints): Adjust.
25397
25398 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25399
25400 * config/rs6000/constraints.md (define_register_constraint "wu"):
25401 Delete.
25402 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25403 RS6000_CONSTRAINT_wu.
25404 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25405 (rs6000_init_hard_regno_mode_ok): Adjust.
25406 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
25407 both with "p8v".
25408 (define_mode_attr Fa): Delete.
25409 * config/rs6000/vsx.md: Ditto.
25410 * doc/md.texi (Machine Constraints): Adjust.
25411
25412 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25413
25414 * config/rs6000/constraints.md (define_register_constraint "wJ"):
25415 Delete.
25416 (define_register_constraint "wK"): Delete.
25417 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25418 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
25419 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25420 (rs6000_init_hard_regno_mode_ok): Adjust.
25421 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
25422 Replace "wK" constraint by "wH" with "p9v".
25423 * config/rs6000/vsx.md: Ditto.
25424 * doc/md.texi (Machine Constraints): Adjust.
25425
25426 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25427
25428 * config/rs6000/constraints.md (define_register_constraint "wb"):
25429 Delete.
25430 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25431 RS6000_CONSTRAINT_wb.
25432 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25433 (rs6000_init_hard_regno_mode_ok): Adjust.
25434 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
25435 * config/rs6000/vsx.md: Ditto.
25436 * doc/md.texi (Machine Constraints): Adjust.
25437
25438 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25439
25440 * config/rs6000/constraints.md (define_register_constraint "wo"):
25441 Delete.
25442 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25443 RS6000_CONSTRAINT_wo.
25444 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25445 (rs6000_init_hard_regno_mode_ok): Adjust.
25446 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
25447 * config/rs6000/altivec.md: Ditto.
25448 * doc/md.texi (Machine Constraints): Adjust.
25449
25450 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
25451
25452 * config/darwin-c.c (darwin_register_objc_includes): Do not
25453 prepend the sysroot when building gnu-runtime header search
25454 paths.
25455
25456 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
25457
25458 * config/darwin.c (darwin_file_end): Use switch_to_section ()
25459 instead of direct output of the asm.
25460
25461 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
25462
25463 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
25464 argument to be type bool (was int before).
25465 (rs6000_emit_epilogue): Simplify some code. Declare some variables
25466 at first use. Use type bool for some variables. Fix a theoretical
25467 eh_return bug for svr4.
25468
25469 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
25470
25471 * config/rs6000/rs6000.md (isa): New attribute.
25472 (enabled): New attribute.
25473
25474 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
25475
25476 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
25477 assemble_start_function and assemble_end_function.
25478
25479 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
25480
25481 PR middle-end/89433
25482 * omp-general.c (oacc_verify_routine_clauses): Change formal
25483 parameters. Add checking if already marked with an OpenACC
25484 'routine' directive. Adjust all users.
25485
25486 PR middle-end/89433
25487 * omp-general.c (oacc_build_routine_dims): Move some of its
25488 processing into...
25489 (oacc_verify_routine_clauses): ... this new function.
25490 * omp-general.h (oacc_verify_routine_clauses): New prototype.
25491
25492 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
25493
25494 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
25495 formating of picbase labels to match other ports.
25496
25497 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
25498
25499 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
25500 in the generated code.
25501
25502 2019-05-16 Martin Sebor <msebor@redhat.com>
25503
25504 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
25505 identifiers, keywords, operators, and types in diagnostics. Correct
25506 quoting, spelling, and sentence capitalization issues.
25507 (expand_builtin_atomic_is_lock_free): Same.
25508 (fold_builtin_next_arg): Same.
25509 * cfgexpand.c (expand_one_var): Same.
25510 (tree_conflicts_with_clobbers_p): Same.
25511 (expand_asm_stmt): Same.
25512 (verify_loop_structure): Same.
25513 * cgraphunit.c (process_function_and_variable_attributes): Same.
25514 * collect-utils.c (collect_execute): Same.
25515 * collect2.c (maybe_run_lto_and_relink): Same.
25516 (is_lto_object_file): Same.
25517 (scan_prog_file): Same.
25518 * convert.c (convert_to_real_1): Same.
25519 * dwarf2out.c (dwarf2out_begin_prologue): Same.
25520 * except.c (verify_eh_tree): Same.
25521 * gcc.c (execute): Same.
25522 (eval_spec_function): Same.
25523 (run_attempt): Same.
25524 (driver::set_up_specs): Same.
25525 (compare_debug_auxbase_opt_spec_function): Same.
25526 * gcov-tool.c (unlink_gcda_file): Same.
25527 (do_merge): Same.
25528 (do_rewrite): Same.
25529 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
25530 * gimplify.c (gimplify_asm_expr): Same.
25531 (gimplify_adjust_omp_clauses): Same.
25532 * hsa-gen.c (gen_hsa_addr_insns): Same.
25533 (gen_hsa_insns_for_load): Same.
25534 (gen_hsa_cmp_insn_from_gimple): Same.
25535 (gen_hsa_insns_for_operation_assignment): Same.
25536 (gen_get_level): Same.
25537 (gen_hsa_alloca): Same.
25538 (omp_simple_builtin::generate): Same.
25539 (gen_hsa_atomic_for_builtin): Same.
25540 (gen_hsa_insns_for_call): Same.
25541 * input.c (dump_location_info): Same.
25542 * ipa-devirt.c (compare_virtual_tables): Same.
25543 * ira.c (ira_setup_eliminable_regset): Same.
25544 * lra-assigns.c (lra_assign): Same.
25545 * lra-constraints.c (lra_constraints): Same.
25546 * lto-streamer-in.c (lto_input_mode_table): Same.
25547 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
25548 (merge_and_complain): Same.
25549 (compile_offload_image): Same.
25550 (compile_images_for_offload_targets): Same.
25551 (debug_objcopy): Same.
25552 (run_gcc): Same.
25553 (main): Same.
25554 * opts.c (print_specific_help): Same.
25555 (parse_no_sanitize_attribute): Same.
25556 (print_help): Same.
25557 (handle_param): Same.
25558 * plugin.c (add_new_plugin): Same.
25559 (parse_plugin_arg_opt): Same.
25560 (try_init_one_plugin): Same.
25561 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
25562 operators, and types in diagnostics. Correct quoting and spelling
25563 issues.
25564 * read-rtl-function.c (parse_edge_flag_token): Same.
25565 (function_reader::parse_enum_value): Same.
25566 * reg-stack.c (check_asm_stack_operands): Same.
25567 * regcprop.c (validate_value_data): Same.
25568 * sched-rgn.c (make_pass_sched_fusion): Same.
25569 * stmt.c (check_unique_operand_names): Same.
25570 * targhooks.c (default_target_option_pragma_parse): Same.
25571 * tlink.c (recompile_files): Same.
25572 * toplev.c (process_options): Same.
25573 (do_compile): Same.
25574 * trans-mem.c (diagnose_tm_1): Same.
25575 (ipa_tm_scan_irr_block): Same.
25576 (ipa_tm_diagnose_transaction): Same.
25577 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
25578 format a tree code name in a diagnostic.
25579 (verify_types_in_gimple_min_lval): Same.
25580 (verify_types_in_gimple_reference): Same.
25581 (verify_gimple_call): Same.
25582 (verify_gimple_assign_unary): Same.
25583 (verify_gimple_assign_binary): Same.
25584 (verify_gimple_assign_ternary): Same.
25585 (verify_gimple_assign_single): Same.
25586 (verify_gimple_switch): Same.
25587 (verify_gimple_label): Same.
25588 (verify_gimple_phi): Same.
25589 (verify_gimple_in_seq): Same.
25590 (verify_eh_throw_stmt_node): Same.
25591 (collect_subblocks): Same.
25592 (gimple_verify_flow_info): Same.
25593 (do_warn_unused_result): Same.
25594 * tree-inline.c (expand_call_inline): Same.
25595 * tree-into-ssa.c (update_ssa): Same.
25596 * tree.c (tree_int_cst_elt_check_failed): Same.
25597 (tree_vec_elt_check_failed): Same.
25598 (omp_clause_operand_check_failed): Same.
25599 (verify_type_variant): Same.
25600 (verify_type): Same.
25601 * value-prof.c (verify_histograms): Same.
25602 * varasm.c (assemble_start_function): Same.
25603
25604 2019-05-16 Martin Sebor <msebor@redhat.com>
25605
25606 * config/i386/i386-expand.c (get_element_number): Quote keywords
25607 and other internal names in diagnostics. Adjust other diagnostic
25608 formatting issues noted by -Wformat-diag.
25609 * config/i386/i386-features.c
25610 (ix86_mangle_function_version_assembler_name): Same.
25611 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
25612 * config/i386/i386.c (ix86_function_type_abi): Same.
25613 (ix86_function_ms_hook_prologue): Same.
25614 (classify_argument): Same.
25615 (ix86_expand_prologue): Same.
25616 (ix86_md_asm_adjust): Same.
25617 (ix86_memmodel_check): Same.
25618
25619 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
25620
25621 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
25622 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
25623 and fpxx modes.
25624
25625 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
25626
25627 PR target/90497
25628 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
25629 intrinsics without SSE/SSE2/SSSE3.
25630 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
25631 check.
25632 (*mmx_uavgv8qi3): Likewise.
25633
25634 2019-05-17 Richard Biener <rguenther@suse.de>
25635
25636 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
25637 VEC_PERM_EXPR as __VEC_PERM with -gimple.
25638
25639 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
25640
25641 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
25642 vec_sldw insn pattern.
25643
25644 2019-05-17 Richard Biener <rguenther@suse.de>
25645
25646 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
25647
25648 2019-05-17 Martin Liska <mliska@suse.cz>
25649
25650 PR driver/90496
25651 * toplev.c (output_stack_usage): With LTO and sanitizer it
25652 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
25653 has no file location.
25654
25655 2019-05-16 Jakub Jelinek <jakub@redhat.com>
25656
25657 PR c++/90484
25658 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
25659 sz0 is equal to sz1, instead return false in that case.
25660
25661 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
25662 has non-constant expression, force sctx.lane and use two
25663 argument IFN_GOMP_SIMD_LANE instead of single argument.
25664 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
25665 two argument IFN_GOMP_SIMD_LANE without lhs.
25666 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
25667 member.
25668 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
25669 Define.
25670 (LOOP_REQUIRES_VERSIONING): Or in
25671 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
25672 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
25673 simd_if_cond.
25674 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
25675 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
25676 from simd if clause if needed.
25677
25678 2019-05-16 Richard Biener <rguenther@suse.de>
25679
25680 * tree-affine.c (expr_to_aff_combination): New function split
25681 out from...
25682 (tree_to_aff_combination): ... here.
25683 (aff_combination_expand): Avoid building a GENERIC tree.
25684
25685 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
25686
25687 * cgraphunit.c (cgraph_node::expand_thunk): Remove
25688 assemble_start_function and assemble_end_function calls.
25689 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
25690 assemble_start_function and assemble_end_function.
25691 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
25692 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
25693 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
25694 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
25695 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
25696 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
25697 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
25698 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
25699 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25700 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25701 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
25702 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
25703 Likewise.
25704 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
25705 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
25706 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
25707 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
25708 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25709 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25710 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
25711 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
25712 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25713 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
25714 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25715 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25716 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
25717 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
25718 Likewise.
25719 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25720 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25721 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
25722
25723 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
25724
25725 * tree-ssa-alias.c (alias_stats): Add
25726 aliasing_component_refs_p_may_alias and
25727 aliasing_component_refs_p_no_alias.
25728 (dump_alias_stats): Print aliasing_component_refs_p stats.
25729 (aliasing_component_refs_p): Update stats.
25730
25731 2019-05-16 Martin Liska <mliska@suse.cz>
25732
25733 PR lto/90500
25734 * multiple_target.c (expand_target_clones): Do not allow
25735 target_clones being used with a symbol that is an alias.
25736
25737 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
25738
25739 PR tree-optimization/90394
25740 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
25741 positives rather than ICE for cases where (code2 == NE_EXPR
25742 && code1 == BIT_AND_EXPR).
25743
25744 2019-05-16 Jakub Jelinek <jakub@redhat.com>
25745
25746 PR fortran/90329
25747 * tree-core.h (struct tree_decl_common): Document
25748 decl_nonshareable_flag for PARM_DECLs.
25749 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
25750 * calls.c (expand_call): Don't try tail call if caller
25751 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
25752 passed on the stack and callee needs to pass any arguments on the
25753 stack.
25754 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
25755 else if instead of series of mutually exclusive ifs. Handle
25756 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
25757 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
25758
25759 * lto-streamer.h (LTO_major_version): Bump to 9.
25760
25761 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
25762
25763 PR tree-optimization/90106
25764 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
25765 new parameter as new internal function call, also move it to new
25766 basic block.
25767 (use_internal_fn): Pass internal function call to
25768 shrink_wrap_one_built_in_call_with_conds.
25769
25770 2019-05-15 Jakub Jelinek <jakub@redhat.com>
25771
25772 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
25773 max_vf to 1.
25774 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
25775 safelen_int and set loop->dont_vectorize.
25776
25777 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25778
25779 PR target/89021
25780 * config/i386/i386-builtin.def: Enable MMX intrinsics with
25781 SSE/SSE2/SSSE3.
25782 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
25783 Likewise.
25784 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
25785 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
25786 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
25787 is defined.
25788
25789 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25790
25791 PR target/89021
25792 * config/i386/mmx.md (*vec_dupv2sf): Changed to
25793 define_insn_and_split to support SSE emulation.
25794 (*vec_extractv2sf_0): Likewise.
25795 (*vec_extractv2sf_1): Likewise.
25796 (*vec_extractv2si_0): Likewise.
25797 (*vec_extractv2si_1): Likewise.
25798 (*vec_extractv2si_zext_mem): Likewise.
25799 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
25800 (vec_extractv2sf_1 splitter): Likewise.
25801 (vec_extractv2sfsf): Likewise.
25802 (vec_setv2si): Likewise.
25803 (vec_extractv2si_1 splitter): Likewise.
25804 (vec_extractv2sisi): Likewise.
25805 (vec_setv4hi): Likewise.
25806 (vec_extractv4hihi): Likewise.
25807 (vec_setv8qi): Likewise.
25808 (vec_extractv8qiqi): Likewise.
25809 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
25810 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
25811 (vec_extractv2sisi): Likewise.
25812 (vec_extractv4hihi): Likewise.
25813 (vec_extractv8qiqi): Likewise.
25814 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
25815 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
25816 (vec_initv2sisi): Likewise.
25817 (vec_initv4hihi): Likewise.
25818 (vec_initv8qiqi): Likewise.
25819 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
25820 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
25821 (vec_setv4hi): Likewise.
25822 (vec_setv8qi): Likewise.
25823
25824 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25825
25826 PR target/89021
25827 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
25828 TARGET_MMX_WITH_SSE.
25829 (MMXMODE:*mov<mode>_internal): Likewise.
25830 (MMXMODE:movmisalign<mode>): Likewise.
25831
25832 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
25833
25834 PR target/89021
25835 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
25836 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
25837 (sse2_cvtpd2pi): Ditto.
25838 (sse2_cvttpd2pi): Ditto.
25839 (*vec_concatv2sf_sse4_1): Ditto.
25840 (*vec_concatv2sf_sse): Ditto.
25841 (*vec_concatv2si_sse4_1): Ditto.
25842 (*vec_concatv2si): Ditto.
25843 (*vec_concatv4si_0): Ditto.
25844 (*vec_concatv2di_0): Ditto.
25845
25846 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25847
25848 PR target/89021
25849 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
25850
25851 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25852
25853 PR target/89021
25854 * config/i386/sse.md (ssse3_palignrdi): Changed to
25855 define_insn_and_split to support SSE emulation.
25856
25857 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25858
25859 PR target/89021
25860 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
25861
25862 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25863
25864 PR target/89021
25865 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
25866 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
25867 SSE emulation.
25868
25869 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25870
25871 PR target/89021
25872 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
25873 or TARGET_MMX_WITH_SSE.
25874 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
25875
25876 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25877
25878 PR target/89021
25879 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
25880
25881 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25882
25883 PR target/89021
25884 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
25885 Changed to define_insn_and_split to support SSE emulation.
25886
25887 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25888
25889 PR target/89021
25890 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
25891 Changed to define_insn_and_split to support SSE emulation.
25892
25893 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25894
25895 PR target/89021
25896 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
25897 (*mmx_<emms>): This.
25898 (mmx_<emms>): New expander.
25899
25900 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25901
25902 PR target/89021
25903 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
25904 support.
25905 (*sse2_umulv1siv1di3): Add SSE2 emulation.
25906
25907 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25908
25909 PR target/89021
25910 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
25911
25912 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25913
25914 PR target/89021
25915 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
25916
25917 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25918
25919 PR target/89021
25920 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
25921 TARGET_MMX_WITH_SSE.
25922 (*mmx_uavgv4hi3): Add SSE emulation.
25923
25924 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25925
25926 PR target/89021
25927 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
25928 and TARGET_MMX_WITH_SSE.
25929 (*mmx_uavgv8qi3): Add SSE emulation.
25930
25931 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25932
25933 PR target/89021
25934 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
25935 maskmovdqu for __MMX_WITH_SSE__.
25936
25937 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25938
25939 PR target/89021
25940 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
25941 TARGET_MMX and TARGET_MMX_WITH_SSE.
25942 (*mmx_umulv4hi3_highpart): Add SSE emulation.
25943
25944 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25945
25946 PR target/89021
25947 * config/i386/mmx.md (mmx_pmovmskb): Changed to
25948 define_insn_and_split to support SSE emulation.
25949
25950 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25951
25952 PR target/89021
25953 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
25954 and TARGET_MMX_WITH_SSE.
25955 (mmx_<code>v8qi3): Likewise.
25956 (smaxmin:<code>v4hi3): New.
25957 (umaxmin:<code>v8qi3): Likewise.
25958 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
25959 (umaxmin:*mmx_<code>v8qi3): Likewise.
25960
25961 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25962
25963 PR target/89021
25964 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
25965 TARGET_MMX_WITH_SSE.
25966 (*mmx_pinsrw): Add SSE emulation.
25967
25968 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25969
25970 PR target/89021
25971 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
25972
25973 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25974
25975 PR target/89021
25976 * config/i386/sse.md (sse_cvtpi2ps): Changed to
25977 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
25978 SSE emulation.
25979
25980 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25981
25982 PR target/89021
25983 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
25984 (sse_cvttps2pi): Likewise.
25985
25986 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25987
25988 PR target/89021
25989 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
25990 TARGET_MMX_WITH_SSE.
25991 (mmx_pshufw_1): Add SSE emulation.
25992 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
25993 TARGET_MMX_WITH_SSE to support SSE emulation.
25994
25995 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25996
25997 PR target/89021
25998 * config/i386/constraints.md (Yw): New constraint.
25999 * config/i386/mmx.md (*vec_dupv2si): Changed to
26000 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
26001 support SSE emulation.
26002
26003 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26004
26005 PR target/89021
26006 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
26007 TARGET_MMX_WITH_SSE.
26008 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26009 support.
26010 (mmx_gt<mode>3): Likewise.
26011
26012 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26013
26014 PR target/89021
26015 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
26016 TARGET_MMX_WITH_SSE. Add SSE support.
26017
26018 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26019
26020 PR target/89021
26021 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
26022 TARGET_MMX_WITH_SSE.
26023 (any_logic:<code><mode>3): New.
26024 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
26025 Add SSE support.
26026
26027 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26028
26029 PR target/89021
26030 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
26031 TARGET_MMX_WITH_SSE. Add SSE emulation.
26032 (mmx_<shift_insn><mode>3): Likewise.
26033 (ashr<mode>3): New.
26034 (<shift_insn><mode>3): Likewise.
26035
26036 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26037
26038 PR target/89021
26039 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
26040 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
26041
26042 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26043
26044 PR target/89021
26045 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
26046 TARGET_MMX_WITH_SSE.
26047 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
26048 SSE support.
26049
26050 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26051
26052 PR target/89021
26053 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
26054 TARGET_MMX_WITH_SSE.
26055 (mulv4hi3): New.
26056 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26057 support.
26058
26059 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26060
26061 PR target/89021
26062 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
26063 (plusminus:mmx_<plusminus_insn><mode>3): Check
26064 TARGET_MMX_WITH_SSE.
26065 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
26066 (<plusminus_insn><mode>3): New.
26067 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
26068 (*mmx_<plusminus_insn><mode>3): Likewise.
26069
26070 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26071
26072 PR target/89021
26073 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
26074 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
26075 prototype.
26076 * config/i386/mmx.m (mmx_punpckhbw): Changed to
26077 define_insn_and_split to support SSE emulation.
26078 (mmx_punpcklbw): Likewise.
26079 (mmx_punpckhwd): Likewise.
26080 (mmx_punpcklwd): Likewise.
26081 (mmx_punpckhdq): Likewise.
26082 (mmx_punpckldq): Likewise.
26083
26084 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26085 Uros Bizjak <ubizjak@gmail.com>
26086
26087 PR target/89021
26088 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
26089 New function.
26090 (ix86_split_mmx_pack): Likewise.
26091 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
26092 New prototype.
26093 (ix86_split_mmx_pack): Likewise.
26094 * config/i386/i386.md (mmx_isa): New.
26095 (enabled): Also check mmx_isa.
26096 * config/i386/mmx.md (any_s_truncate): New code iterator.
26097 (s_trunsuffix): New code attr.
26098 (mmx_packsswb): Removed.
26099 (mmx_packssdw): Likewise.
26100 (mmx_packuswb): Likewise.
26101 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
26102 MMX packsswb/packuswb with SSE2.
26103 (mmx_packssdw): Likewise.
26104 * config/i386/predicates.md (register_mmxmem_operand): New.
26105
26106 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26107
26108 PR target/89021
26109 * config/i386/i386-c.c (ix86_target_macros_internal): Define
26110 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
26111 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
26112 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
26113 (ix86_vector_mode_supported_p): Likewise.
26114 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
26115
26116 2019-05-15 Martin Liska <mliska@suse.cz>
26117
26118 PR middle-end/90478
26119 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
26120 Check for overflow.
26121
26122 2019-05-15 Richard Biener <rguenther@suse.de>
26123
26124 * tree-into-ssa.c (pass_build_ssa::execute): Run
26125 update_address_taken before going into SSA.
26126
26127 2019-05-15 Richard Biener <rguenther@suse.de>
26128
26129 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
26130 as __BIT_FIELD_REF with type with -gimple.
26131
26132 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
26133
26134 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
26135 semantically equivalent branches (left over after prior refactorings).
26136
26137 2019-05-15 Richard Biener <rguenther@suse.de>
26138
26139 PR tree-optimization/88828
26140 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
26141 bogus check.
26142
26143 2019-05-14 Richard Biener <rguenther@suse.de>
26144
26145 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
26146 as __VIEW_CONVERT with -gimple.
26147
26148 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26149
26150 PR target/82920
26151 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
26152 Darwin.
26153
26154 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
26155
26156 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
26157 define_split to become a define_insn_and_split.
26158
26159 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
26160
26161 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
26162 arguments.
26163 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
26164 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
26165 (sibcall_epilogue): Adjust.
26166 (epilogue): Adjust.
26167
26168 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26169
26170 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
26171 to unsupported ones.
26172 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
26173 * config.host: Likewise.
26174 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
26175 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
26176 __svr4__]: Remove "brand" fallback.
26177 [!KSTAT_DATA_STRING]: Remove.
26178 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
26179 to *-*-solaris2*.
26180 (comdat_group): Likewise.
26181 (set_have_as_tls): Likewise.
26182 (gcc_cv_target_dl_iterate_phdr): Likewise.
26183 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
26184 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
26185 * configure: Regenerate.
26186 * doc/install.texi: Simplify Solaris target triplets.
26187 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
26188 (Specific, *-*-solaris2*): Document Solaris 10 removal.
26189 Remove Solaris 10 references.
26190 Remove obsolete Solaris bug reference.
26191 (Specific, sparc-sun-solaris2.10): Remove.
26192
26193 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
26194
26195 * config/i386/i386.md (any_div): New code iterator.
26196 (paired_mod): New code attribute.
26197 (sgnprefix): Handle DIV and UDIV RTXes.
26198 (u): Ditto.
26199 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
26200 and udivmod<mode>4 patterns using any_div code iterator.
26201 (divmod splitters): Macroize splitters using any_div code iterator.
26202 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
26203 (*udivmodsi4_pow2_zext_2): Ditto.
26204 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
26205 and *udivmod<mode>4_noext patterns using any_div code iterator.
26206 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
26207 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
26208 patterns using any_div code iterator.
26209 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
26210 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
26211 patterns using any_div code iterator.
26212 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
26213 udivmodhiqi3 patterns using any_extend code iterator.
26214
26215 2019-05-14 Richard Biener <rguenther@suse.de>
26216 H.J. Lu <hongjiu.lu@intel.com>
26217
26218 PR tree-optimization/88828
26219 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
26220 permuting in a single non-constant element not extracted
26221 from a vector.
26222
26223 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
26224
26225 * internal-fn.def (SIGNBIT): New.
26226 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
26227 defined.
26228 (signbitv4sf2): Likewise.
26229
26230 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
26231
26232 PR target/90357
26233 * config/mips/mips.c (mips_split_move): Skip forward SRC into
26234 next insn when the SRC reg is dead.
26235
26236 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
26237
26238 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
26239 (alloc_cand_and_find_basis): Ditto.
26240 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
26241 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
26242 (create_add_imm_cand, slsr_process_cast): Ditto.
26243 (slsr_process_copy, replace_mult_candidate): Ditto.
26244 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
26245 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
26246 (pass_strength_reduction::execute): Init the first NULL element.
26247
26248 2019-05-13 Nathan Sidwell <nathan@acm.org>
26249
26250 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
26251 (run_attempt): Reformat line break.
26252
26253 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
26254
26255 PR target/90418
26256 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
26257 data registers in sibcall epilogues.
26258 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
26259
26260 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
26261
26262 PR target/89221
26263 * configure.ac (--enable-frame-pointer):
26264 Disable by default for cygwin and mingw.
26265 * configure: Regenerate.
26266
26267 2019-05-13 Nathan Sidwell <nathan@acm.org>
26268
26269 * dwarf2out.c (breakout_comdat_types): Move comment to correct
26270 piece of code.
26271 (const_ok_for_output_1): Balance parens around #if/#else/#endif
26272 (gen_member_die): Move abstract origin check earlier. Only VARs
26273 can be static_inline_p. Simplify splicing control flow.
26274
26275 2019-05-13 Richard Biener <rguenther@suse.de>
26276
26277 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
26278 VIEW_CONVERT_EXPR.
26279 (vect_build_slp_tree_1): Likewise.
26280
26281 2019-05-13 Richard Biener <rguenther@suse.de>
26282
26283 PR tree-optimization/90402
26284 * tree-if-conv.c (tree_if_conversion): Value number only
26285 the loop body by making the latch an exit of the region
26286 as well.
26287 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
26288 processing PHIs.
26289 (do_rpo_vn): Deal with multiple edges into the entry block
26290 that are not backedges inside the region by skipping PHIs
26291 of the entry block.
26292
26293 2019-05-13 Richard Biener <rguenther@suse.de>
26294
26295 PR tree-optimization/90316
26296 * tree-ssa-pre.c (insert_aux): Fold into ...
26297 (insert): ... this function. Use a RPO walk to reduce the
26298 number of required iterations.
26299
26300 2019-05-13 Martin Liska <mliska@suse.cz>
26301
26302 PR tree-optimization/90416
26303 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
26304 string instead of passing the second part as va_arg argument.
26305
26306 2019-05-13 Martin Liska <mliska@suse.cz>
26307
26308 PR gcov-profile/90380
26309 * gcov.c (handle_cycle): Do not support zero cycle count,
26310 it should not be possible.
26311 (path_contains_zero_cycle_arc): New function.
26312 (circuit): Ignore zero cycle arc counts.
26313
26314 2019-05-13 Martin Liska <mliska@suse.cz>
26315
26316 PR gcov-profile/90380
26317 * gcov.c (enum loop_type): Remove the enum and
26318 the operator.
26319 (handle_cycle): Assert that we should not reach
26320 a negative count.
26321 (circuit): Use loop_found instead of a tri-state loop_type.
26322 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
26323 happen.
26324
26325 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26326
26327 PR target/82920
26328 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
26329 (ix86_output_indirect_branch_via_reg): Use output mechanism
26330 accounting for __USER_LABEL_PREFIX__.
26331 (ix86_output_indirect_branch_via_push): Likewise.
26332 (ix86_output_function_return): Likewise.
26333 (ix86_output_indirect_function_return): Likewise.
26334
26335 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
26336
26337 * doc/md.texi: Document use of code attributes in rtx patterns.
26338 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
26339 * read-rtl.c (find_code): Split out search loops into...
26340 (maybe_find_code): ...this new function.
26341 (check_code_iterator): Make the error message more informative.
26342 (check_code_attribute): New function.
26343 (rtx_reader::rtx_alloc_for_name): Likewise.
26344 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
26345 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
26346 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
26347 <max_opp> directly as an rtx code instead of via a match_operator.
26348 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
26349 (<su>abd<mode>_3): Update accordingly.
26350
26351 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26352
26353 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
26354 is given, print the state of the EH "save world" computation for
26355 Darwin.
26356
26357 2019-05-11 Jakub Jelinek <jakub@redhat.com>
26358
26359 PR c++/59813
26360 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
26361 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
26362
26363 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
26364
26365 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
26366 Use pinsrd for TARGET_SSE4_1.
26367 * config/i386/sse.md (movdi_to_sse): Ditto.
26368
26369 2019-05-10 Richard Biener <rguenther@suse.de>
26370
26371 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
26372 (do_rpo_vn): Initialize next_value_id.
26373
26374 2019-05-10 Martin Liska <mliska@suse.cz>
26375
26376 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
26377 Fix plural form.
26378
26379 2019-05-10 Jakub Jelinek <jakub@redhat.com>
26380
26381 PR tree-optimization/90385
26382 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
26383 arguments of the exit phis.
26384
26385 PR c++/90383
26386 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
26387 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
26388 id->do_not_fold.
26389 (copy_tree_body_r): Likewise.
26390 (copy_fn): Set id.do_not_fold to true.
26391
26392 2019-05-10 Martin Liska <mliska@suse.cz>
26393
26394 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
26395 Reapply changes from r269790.
26396
26397 2019-05-10 Martin Liska <mliska@suse.cz>
26398
26399 PR middle-end/90340
26400 * doc/invoke.texi: New params.
26401 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
26402 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
26403 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
26404 Use it.
26405 * tree-switch-conversion.h (struct jump_table_cluster):
26406 Likewise.
26407
26408 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
26409
26410 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
26411
26412 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
26413
26414 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
26415
26416 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
26417
26418 PR rtl-optimization/88879
26419 * sel-sched.c (sel_target_adjust_priority): Remove assert.
26420
26421 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
26422
26423 PR target/90405
26424 * config/arm/arm.c (callee_saved_reg_p): Move before
26425 thumb_find_work_register.
26426 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
26427 thumb_find_work_register. Only call df_get_live_out once.
26428 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
26429 (thumb_find_work_register): Use
26430 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
26431 algorithms to locate a spare call clobbered reg.
26432
26433 2019-05-09 Martin Liska <mliska@suse.cz>
26434
26435 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
26436 and MAX_EXPR in GIMPLE FE format.
26437
26438 2019-05-09 Martin Liska <mliska@suse.cz>
26439
26440 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
26441 * gimple-pretty-print.c (dump_gimple_bb_header):
26442 Dump BB count.
26443 (pp_cfg_jump): Dump edge probability.
26444 * profile-count.c (profile_quality_as_string): Simplify
26445 with a static array.
26446 (parse_profile_quality): New function.
26447 (profile_count::dump): Simplify with a static array.
26448 (profile_count::from_gcov_type): Add new argument.
26449 * profile-count.h (parse_profile_quality): Likewise.
26450 * predict.h (set_hot_bb_threshold): New.
26451 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
26452 New param.
26453 * predict.c (get_hot_bb_threshold): Set from the new param.
26454 (set_hot_bb_threshold): New.
26455
26456 2019-05-09 Richard Biener <rguenther@suse.de>
26457
26458 PR tree-optimization/90395
26459 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
26460 rewrite vector stores that throw internally.
26461
26462 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
26463
26464 * cif-code.def (CHKP): Remove.
26465
26466 PR target/89221
26467 * configure.ac (--enable-frame-pointer): Disable by default for
26468 GNU systems.
26469 * configure: Regenerate.
26470
26471 2019-05-09 Alan Modra <amodra@gmail.com>
26472
26473 PR target/89271
26474 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
26475 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
26476 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
26477 cost for general <-> vsx when direct moves are available.
26478 Cost union classes at minimal cost for any reg in the class.
26479 Correct calculation for moves between vsx, float, and altivec.
26480 Don't return a low cost for moves between special regs. Don't
26481 use hard coded register numbers.
26482 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
26483 (rs6000_ira_change_pseudo_allocno_class): New function.
26484 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
26485 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
26486 alternatives.
26487 (movsi_internal1): Don't disparage vector alternatives.
26488 (mov<mode>_internal): Likewise, excepting alternative that
26489 will be split.
26490 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
26491 we <- b alternative.
26492
26493 2019-05-08 Jakub Jelinek <jakub@redhat.com>
26494
26495 PR c++/59813
26496 PR tree-optimization/89060
26497 * tree-ssa-live.h (live_vars_map): New typedef.
26498 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
26499 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
26500 (struct compute_live_vars_data): New type.
26501 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
26502 live_vars_at_stmt, destroy_live_vars): New functions.
26503 * tree-tailcall.c: Include tree-ssa-live.h.
26504 (live_vars, live_vars_vec): New global variables.
26505 (find_tail_calls): Perform variable life analysis before punting.
26506 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
26507 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
26508 member.
26509 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
26510 Perform variable life analysis to select variables that really need
26511 clobbers added.
26512 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
26513 instead set id->eh_landing_pad_dest and assert it is the same.
26514 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
26515
26516 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
26517 Richard Earnshaw <rearnsha@arm.com>
26518
26519 PR target/88167
26520 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
26521 function.
26522 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
26523 (thumb1_compute_save_core_reg_mask): Don't force a spare work
26524 register if both the epilogue and prologue can use call-clobbered
26525 regs.
26526 (thumb1_unexpanded_epilogue): Use
26527 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
26528 picking temporaries for restoring high regs to match that of the
26529 prologue where possible.
26530 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
26531 the list of work registers. Detect if the return address is still live
26532 at the end of the prologue and avoid using it for a work register if so.
26533 If the return address is not live, add LR to the list of pushable regs
26534 after the first pass.
26535
26536 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
26537
26538 PR tree-optimization/90078
26539 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
26540 (INFTY): Increase the value for infinite cost.
26541 (struct comp_cost): Promote type of members to int64_t.
26542 (infinite_cost): Don't set complexity in initialization.
26543 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
26544 overflows to infinite_cost.
26545 (adjust_setup_cost): Promote type of parameter and cost computation
26546 to int64_t.
26547 (struct ainc_cost_data, struct iv_ca): Promote type of member to
26548 int64_t.
26549 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
26550 cost computation to int64_t.
26551 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
26552 int64_t's format specifier in dump.
26553
26554 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
26555
26556 PR tree-optimization/90240
26557 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
26558 with respect to scaling factor pre-computed for each basic block.
26559 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
26560 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
26561 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
26562 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
26563 live range for array of loop's basic blocks. Cleanup aux field of
26564 loop's basic blocks.
26565
26566 2019-05-08 Jakub Jelinek <jakub@redhat.com>
26567
26568 PR tree-optimization/90356
26569 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
26570
26571 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
26572
26573 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
26574 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
26575 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
26576 (ix86_handle_option): Handle -mavx512bf16.
26577 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
26578 to extra_headers.
26579 * config/i386/avx512bf16vlintrin.h: New.
26580 * config/i386/avx512bf16intrin.h: New.
26581 * config/i386/cpuid.h (bit_AVX512BF16): New.
26582 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
26583 * config/i386/i386-builtin-types.def: Add new types.
26584 * config/i386/i386-builtin.def: Add new builtins.
26585 * config/i386/i386-c.c (ix86_target_macros_internal): Define
26586 __AVX512BF16__.
26587 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
26588 (ix86_option_override_internal): Handle BF16.
26589 (ix86_valid_target_attribute_inner_p): Ditto.
26590 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
26591 * config/i386/i386-builtin.c (enum processor_features): Add
26592 F_AVX512BF16.
26593 (static const _isa_names_table isa_names_table): Ditto.
26594 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
26595 (PTA_AVX512BF16): Ditto.
26596 * config/i386/i386.opt: Add -mavx512bf16.
26597 * config/i386/immintrin.h: Include avx512bf16intrin.h
26598 and avx512bf16vlintrin.h.
26599 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
26600 avx512f_cvtneps2bf16_<mode><mask_name>,
26601 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
26602 * config/i386/subst.md (mask_half): Add new subst.
26603 * doc/invoke.texi: Document -mavx512bf16.
26604
26605 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
26606
26607 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
26608 Delete declaration.
26609 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
26610 (rs6000_debug_legitimize_reload_address): Delete.
26611 (rs6000_legitimize_reload_address_ptr): Delete.
26612 (rs6000_option_override_internal): Adjust.
26613 (mem_operand_gpr): Adjust comment.
26614 (legitimate_lo_sum_address_p): Ditto.
26615 (rs6000_legitimize_reload_address): Delete.
26616 (rs6000_debug_legitimize_reload_address): Delete.
26617 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
26618
26619 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
26620
26621 PR target/89765
26622 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26623 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
26624 to compute vector element selector for both constant and variable
26625 operands.
26626
26627 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
26628
26629 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
26630 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
26631 ashrdi3_cvt using SWI48 mode iterator.
26632
26633 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26634
26635 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
26636 (aarch64_<su>abd<mode>_3): Likewise.
26637 (*aarch64_<su>abd<mode>_3): New define_insn.
26638 (<sur>sad<vsi2qi>): New define_expand.
26639 * config/aarch64/iterators.md: Added MAX_OPP attribute.
26640 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
26641 (build_vect_cond_expr): Likewise.
26642
26643 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
26644
26645 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
26646 clobbers outside of accessible_reg_set.
26647 * config/i386/i386.c (ix86_conditional_register_usage):
26648 Disable register sets by clearing corresponding bits in
26649 accessible_reg_set. Do not set corresponding bits in fixed_regs,
26650 call_used_regs and don't clear corresponding reg_names array members.
26651
26652 2019-05-07 Richard Biener <rguenther@suse.de>
26653
26654 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
26655 not specified still compute a comp_vectype for invariant
26656 compares.
26657
26658 2019-05-07 Richard Biener <rguenther@suse.de>
26659
26660 PR tree-optimization/90316
26661 * tree-ssa-pre.c (translate_vuse_through_block): When
26662 same_valid is NULL do not bother to search for a virtual
26663 PHI continuation.
26664 (phi_translate_1): When operands changed we cannot keep
26665 the same value-number so do not bother to ask whether
26666 that's possible from translate_vuse_through_block.
26667
26668 2019-05-07 Martin Liska <mliska@suse.cz>
26669
26670 * bitmap.c (bitmap_register): Come up with
26671 alloc_descriptor_max_uid and assign it for
26672 a new bitmap.
26673 (register_overhead): Use get_descriptor as
26674 a descriptor.
26675 (release_overhead): New.
26676 (bitmap_elem_to_freelist): Call it.
26677 (bitmap_elt_clear_from): Likewise.
26678 (bitmap_obstack_free): Likewise.
26679 (bitmap_move): Sensitively release memory.
26680 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
26681 (bitmap_initialize): Initialize alloc_descriptor to zero.
26682 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
26683
26684 2019-05-07 Richard Biener <rguenther@suse.de>
26685
26686 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
26687 we build a SLP node. Remove max_size and limiting.
26688 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
26689
26690 2019-05-07 Richard Biener <rguenther@suse.de>
26691
26692 PR tree-optimization/90316
26693 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
26694 limit by reference.
26695 (walk_non_aliased_vuses): Take walking limit argument.
26696 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
26697 walking if it is reached instead of just counting.
26698 (get_continuation_for_phi): Likewise.
26699 (walk_non_aliased_vuses): Likewise, instead of leaving counter
26700 limiting to the callback.
26701 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
26702 (vn_reference_lookup_3): Likewise.
26703 (vn_reference_lookup_pieces): Likewise.
26704 (vn_reference_lookup): Likewise.
26705 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
26706 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
26707 (avail_exprs_stack::lookup_avail_expr): Likewise.
26708
26709 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
26710
26711 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
26712 for comparaible types in the second direction even if first one
26713 hits incomparable type.
26714
26715 2019-05-07 Richard Biener <rguenther@suse.de>
26716
26717 PR lto/90369
26718 * lto-wrapper.c (debug_objcopy): Use the original filename
26719 including archive offset for the filename used for -save-temps.
26720
26721 2019-05-07 Li Jia He <helijia@linux.ibm.com>
26722
26723 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
26724 detection.
26725
26726 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
26727 Hongtao Liu <hongtao.liu@intel.com>
26728
26729 PR target/89750
26730 PR target/86444
26731 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
26732 Modified, original implementation isn't correct.
26733
26734 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26735
26736 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
26737 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
26738 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
26739 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
26740 (FRAME_POINTER_REGNUM): Change numbering.
26741 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
26742 (alt_reg_names): Adjust.
26743 (rs6000_conditional_register_usage): Don't mark hard register 64 as
26744 fixed.
26745 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
26746 (DWARF_FRAME_REGISTERS): Delete.
26747 (DWARF2_FRAME_REG_OUT): Fix whitespace.
26748 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
26749 Adjust.
26750 (REG_ALLOC_ORDER): Adjust.
26751 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
26752 (REG_CLASS_CONTENTS): Adjust.
26753 (RETURN_ADDR_RTX): Change comment.
26754 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
26755 instead of 67.
26756 (REGISTER_NAMES): Adjust.
26757 (ADDITIONAL_REGISTER_NAMES): Adjust.
26758 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
26759
26760 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26761
26762 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
26763 Delete.
26764 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
26765 (DWARF_FRAME_REGISTERS): Adjust.
26766 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
26767 Adjust.
26768 (REG_ALLOC_ORDER): Adjust.
26769 (enum reg_class): Delete SPR_REGS.
26770 (REG_CLASS_NAMES): Delete SPR_REGS.
26771 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
26772 (REGISTER_NAMES): Adjust.
26773 (ADDITIONAL_REGISTER_NAMES): Adjust.
26774 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
26775 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
26776 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
26777 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
26778 (htm_spr_regno): Delete.
26779 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
26780 argument.
26781 (rs6000_dbx_register_number): Adjust.
26782
26783 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26784
26785 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
26786
26787 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26788
26789 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
26790 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
26791
26792 2019-05-06 Jakub Jelinek <jakub@redhat.com>
26793
26794 PR tree-optimization/88709
26795 PR tree-optimization/90271
26796 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
26797 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
26798 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
26799 variable.
26800 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
26801 of the store merging group is larger than
26802 PARAM_STORE_MERGING_MAX_SIZE parameter.
26803 (split_group): Add bzero_first argument. If set, always emit first
26804 the first store which must be = {} of the whole area and then for the
26805 rest of the stores consider all zero bytes as paddings.
26806 (imm_store_chain_info::output_merged_store): Check if first store
26807 is = {} of the whole area and if yes, determine which setting of
26808 bzero_first for split_group gives smaller number of stores. Adjust
26809 split_group callers.
26810 (lhs_valid_for_store_merging_p): Allow decls.
26811 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
26812 no elts.
26813 (pass_store_merging::process_store): Likewise.
26814
26815 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
26816
26817 PR target/89424
26818 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
26819 handling of V1TImode.
26820
26821 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
26822
26823 PR target/89221
26824 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
26825 and enable_frame_pointer ...
26826 * configure.ac: ... here. Update help strings for
26827 --enable-frame-pointer.
26828 * configure: Regenerate.
26829 * config/i386/i386-options.c (ix86_option_override_internal): Remove
26830 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
26831 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
26832 (USE_X86_64_FRAME_POINTER): Ditto.
26833
26834 2019-05-06 Martin Liska <mliska@suse.cz>
26835
26836 * config.gcc: Append to target_gtfiles and fix indentation.
26837
26838 2019-05-06 Richard Biener <rguenther@suse.de>
26839
26840 PR tree-optimization/90358
26841 * tree-vect-stmts.c (get_group_load_store_type): Properly
26842 detect unused upper half of load.
26843 (vectorizable_load): Likewise.
26844
26845 2019-05-06 Richard Biener <rguenther@suse.de>
26846
26847 PR tree-optimization/88828
26848 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
26849 (simplify_vector_constructor): ...here. Handle constants in
26850 the constructor.
26851
26852 2019-05-06 Richard Biener <rguenther@suse.de>
26853
26854 PR tree-optimization/90328
26855 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
26856 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
26857 is valid in the loop nest before using it.
26858 (initialize_data_dependence_relation): Adjust.
26859 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
26860 loop as loop-nest to dr_may_alias_p.
26861
26862 2019-05-06 Richard Biener <rguenther@suse.de>
26863
26864 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
26865
26866 2019-05-06 Richard Biener <rguenther@suse.de>
26867
26868 PR tree-optimization/90316
26869 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
26870 compute target on demand.
26871 (get_continuation_for_phi): Remove code walking stmts to
26872 get to a target virtual operand which could end up being
26873 quadratic.
26874
26875 2019-05-06 Martin Liska <mliska@suse.cz>
26876
26877 PR sanitizer/90312
26878 * config/i386/i386-options.c (ix86_option_override_internal): Error only
26879 when -mabi is selected to a non-default version.
26880
26881 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
26882 Martin Liska <mliska@suse.cz>
26883
26884 * Makefile.in: Add lto-dump.texi.
26885 * cgraph.h: Add new functions get_visibility_string and
26886 get_symtab_type_string.
26887 * doc/gcc.texi: Include lto-dump section.
26888 * doc/lto-dump.texi: New file.
26889 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
26890 (parse_dump_option): Factor out this function.
26891 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
26892 (parse_dump_option): Export the function.
26893 * symtab.c (symtab_node::get_visibility_string): New function.
26894 (symtab_node::get_symtab_type_string): Likewise.
26895
26896 2019-05-06 Martin Liska <mliska@suse.cz>
26897
26898 * config/i386/i386-builtins.c: New file.
26899 * config/i386/i386-builtins.h: New file.
26900 * config/i386/i386-expand.c: New file.
26901 * config/i386/i386-expand.h: New file.
26902 * config/i386/i386-features.c: New file.
26903 * config/i386/i386-features.h: New file.
26904 * config/i386/i386-options.c: New file.
26905 * config/i386/i386-options.h: New file.
26906 * config.gcc: Add new files into extra_objs and
26907 target_gtfiles.
26908 * config/i386/i386.c: Split content of the file
26909 into newly introduced files.
26910 * config/i386/i386.h: Declare common variables
26911 and macros.
26912 * config/i386/t-i386: Define dependencies for new files.
26913
26914 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
26915
26916 PR target/89400
26917 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
26918 Restrict 'all' variant to 32-bit configurations.
26919 (unaligned_loadhiu): Likewise.
26920 (unaligned_storehi): Likewise.
26921 (unaligned_storesi): Likewise.
26922 (unaligned_loadhis): Disable when compiling for thumb1.
26923
26924 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
26925
26926 PR tree-optimization/90269
26927 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
26928 Ignore clobbers.
26929
26930 2019-05-03 Martin Liska <mliska@suse.cz>
26931
26932 * hash-map.h: Add is_empty function.
26933 * hash-set.h: Likewise.
26934 * hash-table.h: Likewise.
26935 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
26936 elements () == 0 (and similar usages).
26937 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
26938 * gimplify.c (gimplify_bind_expr): Likewise.
26939 (gimplify_switch_expr): Likewise.
26940 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
26941 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
26942 * postreload-gcse.c (dump_hash_table): Likewise.
26943 (gcse_after_reload_main): Likewise.
26944 * predict.c (combine_predictions_for_bb): Likewise.
26945 * tree-parloops.c (reduction_phi): Likewise.
26946 (separate_decls_in_region): Likewise.
26947 (transform_to_exit_first_loop): Likewise.
26948 (gen_parallel_loop): Likewise.
26949 (gather_scalar_reductions): Likewise.
26950 (try_create_reduction_list): Likewise.
26951 * var-tracking.c (dump_vars): Likewise.
26952 (emit_notes_for_changes): Likewise.
26953 (vt_emit_notes): Likewise.
26954
26955 2019-05-03 Richard Biener <rguenther@suse.de>
26956
26957 PR tree-optimization/90316
26958 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
26959 before running VN.
26960
26961 2019-05-03 Richard Biener <rguenther@suse.de>
26962
26963 * tree-vect-stmts.c (get_group_load_store_type): Avoid
26964 peeling for gaps by loading only lower halves of vectors
26965 if possible.
26966 (vectorizable_load): Likewise.
26967
26968 2019-05-03 Richard Biener <rguenther@suse.de>
26969
26970 PR middle-end/89518
26971 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
26972
26973 2019-05-03 Richard Biener <rguenther@suse.de>
26974
26975 PR middle-end/87314
26976 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
26977 Handle STRING_CST vs DECL or STRING_CST.
26978
26979 2019-05-03 Richard Biener <rguenther@suse.de>
26980
26981 PR tree-optimization/88963
26982 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
26983 vector loads feeding only BIT_FIELD_REFs to component
26984 loads. Rewrite stores fed by CONSTRUCTORs to component
26985 stores.
26986
26987 2019-05-03 Jakub Jelinek <jakub@redhat.com>
26988
26989 * opts.h (finish_options): Remove lang_mask argument.
26990 (print_help, help_option_argument): Declare.
26991 * opts.c (print_help): Remove forward declaration, no longer static.
26992 (finish_options): Remove lang_mask argument, don't call print_help
26993 here.
26994 * opts-global.c (decode_options): Adjust finish_option caller, call
26995 print_help here.
26996
26997 PR tree-optimization/90303
26998 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
26999 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
27000
27001 2019-05-03 Richard Biener <rguenther@suse.de>
27002
27003 PR tree-optimization/89698
27004 * gimple-fold.c (canonicalize_constructor_val): Early out
27005 for constants, handle unfolded INTEGER_CSTs as they appear in
27006 C++ virtual table ctors.
27007
27008 2019-05-03 Richard Biener <rguenther@suse.de>
27009
27010 * passes.c (execute_function_todo): Remove dead code.
27011
27012 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27013
27014 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
27015 the internal register number, for any "real" register.
27016
27017 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27018
27019 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
27020 correct numbers for TFHAR, TFIAR, TEXASR.
27021
27022 2019-05-02 Richard Biener <rguenther@suse.de>
27023
27024 PR tree-optimization/89653
27025 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
27026 update-address-taken before the pass.
27027 * passes.def (pass_tree_loop_init): Put comment before it.
27028
27029 2019-05-02 Richard Biener <rguenther@suse.de>
27030
27031 PR tree-optimization/89509
27032 * tree-ssa-structalias.c (compute_dependence_clique): Look
27033 at the first subvar when determining whether it is restrict.
27034
27035 2019-05-02 Richard Biener <rguenther@suse.de>
27036
27037 PR tree-optimization/90273
27038 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
27039 useless debug stmts.
27040
27041 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27042
27043 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
27044 ACLE branch.
27045 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
27046 SVE ACLE branch.
27047 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
27048 VEC_COND_EXPR be inserted to emulate a conditional internal function.
27049 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
27050 (vectorizable_reduction): Use the functions above to vectorize in a
27051 fully masked loop codes that don't have a conditional internal
27052 function.
27053
27054 2019-05-02 Martin Liska <mliska@suse.cz>
27055
27056 * cgraphclones.c: Call valid_attribute_p with 1 for
27057 target_clone.
27058 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
27059 it's for target attribute.
27060 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
27061 Add new boolean argument.
27062 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
27063 Likewise.
27064 (ix86_valid_target_attribute_tree): Pass target_clone_attr
27065 to ix86_valid_target_attribute_inner_p.
27066 (ix86_valid_target_attribute_p): Pass flags argument to
27067 ix86_valid_target_attribute_inner_p.
27068 (get_builtin_code_for_version): Use 0 as it's target attribute.
27069
27070 2019-05-02 Martin Liska <mliska@suse.cz>
27071
27072 * gcc.c (process_command): Add dummy file only
27073 if n_infiles == 0.
27074 * opts-global.c (decode_options): Pass lang_mask.
27075 * opts.c (print_help): New function.
27076 (finish_options): Print --help if help_option_argument
27077 is set.
27078 (common_handle_option): Factor out content of OPT__help_
27079 into print_help.
27080 * opts.h (finish_options): Add new argument.
27081
27082 2019-05-02 Martin Liska <mliska@suse.cz>
27083
27084 PR target/88809
27085 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
27086 With -minline-all-stringops use inline expansion using 4B loop.
27087 * doc/invoke.texi: Document the change of
27088 -minline-all-stringops.
27089
27090 2019-05-01 Jeff Law <law@redhat.com>
27091
27092 PR tree-optimization/88797
27093 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
27094 PHI feeds a conditional on the RHS of an assignment.
27095
27096 2019-04-30 Andrew Waterman <andrew@sifive.com>
27097 Jim Wilson <jimw@sifive.com>
27098
27099 * config/riscv/constraints.md (L): New.
27100 * config/riscv/predicates.md (lui_operand): New.
27101 (sfb_alu_operand): New.
27102 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
27103 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
27104 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
27105 * config/riscv/risc.md (type): Add sfb_alu.
27106 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
27107 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
27108 (branch_zero<mode>): Delete.
27109 (mov<mode>cc): New.
27110 (mov<GPR:mode><X:mode>cc): Likewise.
27111 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
27112
27113 2019-04-30 Nathan Sidwell <nathan@acm.org>
27114
27115 * tree.h (MARK_TS_EXP): New.
27116
27117 2019-04-30 Martin Liska <mliska@suse.cz>
27118
27119 * opts.c (enable_warning_as_error): Provide hints
27120 for unknown options.
27121
27122 2019-04-30 Martin Liska <mliska@suse.cz>
27123
27124 PR debug/90288
27125 * doc/invoke.texi: Add missing dash for gas-locview-support
27126 and gno-as-locview-support.
27127
27128 2019-04-30 Jakub Jelinek <jakub@redhat.com>
27129
27130 PR target/89093
27131 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
27132 whitespace at the start of target attribute string.
27133
27134 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27135
27136 PR target/86538
27137 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
27138 Define __ARM_FEATURE_ATOMICS.
27139
27140 2019-04-30 Martin Liska <mliska@suse.cz>
27141
27142 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
27143 into built_in_function enum. Remove code for endp == 2 and
27144 use BUILT_IN_* constants.
27145 (gimple_fold_builtin): Call the function with fcode.
27146
27147 2019-04-30 Martin Liska <mliska@suse.cz>
27148
27149 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
27150 DECL_FUNCTION_CODE into ix86_builtins enum before
27151 the switch statement.
27152
27153 2019-04-30 Jakub Jelinek <jakub@redhat.com>
27154
27155 PR tree-optimization/89475
27156 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
27157 calls.
27158
27159 2019-04-30 Martin Liska <mliska@suse.cz>
27160
27161 PR translation/90274
27162 * opts.c (print_filtered_help): Wrap string in _(...).
27163
27164 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
27165
27166 PR tree-optimization/90240
27167 Revert:
27168 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
27169
27170 PR tree-optimization/90078
27171 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
27172 checks for infinite_cost overflow.
27173
27174 2019-04-29 Jeff Law <law@redhat.com>
27175
27176 * passes.def: Move -Wrestrict pass after copy propagation.
27177
27178 2019-04-29 Maya Rashish <coypu@sdf.org>
27179
27180 * config.gcc (default_gnu_indirect_function): Default to yes
27181 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
27182 sparc*-*-netbsd*, x86_64-*-netbsd*.
27183
27184 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
27185
27186 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
27187 where cond2 is NE_EXPR.
27188 (is_value_included_in): Update comment.
27189
27190 2019-04-29 Richard Biener <rguenther@suse.de>
27191
27192 PR tree-optimization/90278
27193 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
27194 EH on comparison simplification.
27195
27196 2019-04-29 Jason Merrill <jason@redhat.com>
27197
27198 PR c++/82081 - tail call optimization breaks noexcept
27199 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
27200 nothrow function to a might-throw function into a tail call.
27201
27202 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
27203
27204 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
27205 (DDR_INNER_LOOP): Likewise.
27206 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
27207 (initialize_data_dependence_relation): Likewise.
27208 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
27209
27210 2019-04-29 Jakub Jelinek <jakub@redhat.com>
27211
27212 PR rtl-optimization/90257
27213 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
27214 return value.
27215
27216 Revert the revert:
27217 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
27218
27219 PR target/90178
27220 Revert:
27221 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
27222
27223 Revert the revert:
27224 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
27225
27226 Revert:
27227 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
27228
27229 * lra-spills.c (lra_final_code_change): Remove useless move insns.
27230
27231 2019-04-29 Richard Biener <rguenther@suse.de>
27232
27233 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
27234 rhs issue a reset.
27235
27236 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
27237
27238 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
27239 varasm.h, and netbsd-protos.h.
27240
27241 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
27242
27243 PR target/89261
27244 * config/i386/i386-protos.h (ix86_data_alignment): Change
27245 the second argument type to unsigned int.
27246 * config/i386/i386.c (ix86_data_alignment): Change "align"
27247 argument type to unsigned int.
27248
27249 2019-04-27 Martin Liska <mliska@suse.cz>
27250
27251 PR middle-end/90258
27252 * opt-suggestions.c (option_proposer::build_option_suggestions):
27253 When get_valid_option_values returns empty values, add the
27254 misspelling candidate.
27255
27256 2019-04-26 Jim Wilson <jimw@sifive.com>
27257
27258 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
27259 parameter.
27260 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
27261 Pass orig_mode to riscv_build_integer.
27262 (riscv_split_integer): Pass mode to riscv_move_integer.
27263 (riscv_legitimize_const_move): Likewise.
27264 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
27265 promoted_mode. Replace force_reg call with code to load constant into
27266 promoted reg and then subreg it for the store.
27267 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
27268 riscv_move_integer.
27269
27270 2018-04-26 Eugene Sharygin <eush@ispras.ru>
27271
27272 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
27273 corrupt codes.
27274
27275 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
27276
27277 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
27278 commentary about the encoding of precision.
27279
27280 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
27281
27282 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
27283 * config/i386/t-freebsd64: New file.
27284 * config.gcc: Add the t-freebsd64 for multilib support.
27285
27286 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
27287
27288 * doc/extend.texi (vector_size): Add missing comma after @xref.
27289
27290 2019-04-25 Jakub Jelinek <jakub@redhat.com>
27291
27292 * BASE-VER: Set to 10.0.0.
27293
27294 2019-04-25 Richard Biener <rguenther@suse.de>
27295
27296 PR middle-end/89765
27297 * gimplify.c (gimplify_expr): Avoid turning a lvalue
27298 VIEW_CONVERT_EXPR into one operating on an rvalue.
27299
27300 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
27301
27302 PR target/89929
27303 * config/i386/i386.c (feature_priority): Moved to file scope.
27304 (processor_features): Likewise.
27305 (processor_model): Likewise.
27306 (_arch_names_table): Likewise.
27307 (arch_names_table): Likewise.
27308 (_feature_list): Removed.
27309 (feature_list): Likewise.
27310 (_isa_names_table): Moved to file scope. Add priority.
27311 (isa_names_table): Likewise.
27312 (get_builtin_code_for_version): Replace feature_list with
27313 isa_names_table. Update error message for P_ZERO priority.
27314
27315 2019-04-25 Richard Biener <rguenther@suse.de>
27316
27317 * tree-pass.h (make_pass_phi_only_cprop): Remove.
27318 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
27319
27320 2019-04-24 Jeff Law <law@redhat.com>
27321
27322 PR tree-optimization/90037
27323 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
27324 * passes.def: Replace all instance of phi-only cprop with the
27325 lattice propagator. Move propagation pass from after erroneous
27326 path isolation to before erroneous path isolation.
27327 * tree-ssa-phionlycprop.c: Remove.
27328
27329 2019-04-24 Richard Biener <rguenther@suse.de>
27330
27331 PR middle-end/90213
27332 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
27333 by size and BITS_PER_UNIT on poly-wide-ints.
27334
27335 2019-04-25 Richard Biener <rguenther@suse.de>
27336
27337 PR middle-end/90194
27338 * match.pd: Add pattern to simplify view-conversion of an
27339 empty constructor.
27340
27341 2019-04-24 Clement Chigot <clement.chigot@atos.net>
27342
27343 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
27344 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
27345 for Go on 32 bit AIX.
27346 * config/rs6000/aix72.h: Likewise.
27347
27348 2019-04-24 Jakub Jelinek <jakub@redhat.com>
27349
27350 PR target/90193
27351 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
27352 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
27353
27354 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
27355
27356 PR target/89952
27357 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
27358 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
27359 for restored hard frame pointer.
27360 (s390_sched_dependencies_evaluation): Implement new target hook.
27361 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
27362
27363 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
27364
27365 * config/arc/arc-options.def: Fix typos and spelling mistakes.
27366 * config/arc/arc.c (arc_init): Cleanup warning message.
27367 (arc_override_options): Likewise.
27368
27369 2019-04-24 Jakub Jelinek <jakub@redhat.com>
27370
27371 PR target/90187
27372 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
27373 a register if both if_true and if_false are MEMs.
27374
27375 PR tree-optimization/90208
27376 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
27377 after labels of new_bb, not before them.
27378
27379 PR tree-optimization/90211
27380 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
27381 which are not SSA_NAMEs.
27382
27383 2018-04-23 Sudakshina Das <sudi.das@arm.com>
27384
27385 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
27386 AArch64.
27387 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
27388
27389 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
27390
27391 PR rtl-optimization/87979
27392 * modulo-sched.c (sms_schedule): Start ii value "mii" should
27393 not equal zero.
27394
27395 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
27396
27397 PR rtl-optimization/84032
27398 * modulo-sched.c (ps_insn_find_column): Change condition so that
27399 branch will always be the last insn in a row inside partial
27400 schedule.
27401
27402 2019-04-23 Richard Biener <rguenther@suse.de>
27403
27404 PR debug/90131
27405 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
27406 dest_single_pred_p argument.
27407 (remove_forwarder_block): Adjust.
27408 (remove_forwarder_block_with_phi): Likewise.
27409
27410 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27411 Bernd Edlinger <bernd.edlinger@hotmail.de>
27412 Jakub Jelinek <jakub@redhat.com>
27413
27414 PR target/89093
27415 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
27416 if used with general-regs-only.
27417 (arm_conditional_register_usage): Don't add non-general regs if
27418 general-regs-only.
27419 (arm_valid_target_attribute_rec): Handle general-regs-only.
27420 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
27421 general-regs-only.
27422 (TARGET_HARD_FLOAT_SUB): Define.
27423 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
27424 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
27425 (TARGET_REALLY_IWMMXT2): Likewise.
27426 * config/arm/arm.opt: Add -mgeneral-regs-only.
27427 * doc/extend.texi: Document ARM general-regs-only target.
27428 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
27429
27430 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
27431
27432 PR tree-optimization/90078
27433 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
27434 checks for infinite_cost overflow.
27435
27436 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
27437
27438 PR tree-optimization/90021
27439 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
27440 and check univariate against it.
27441 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
27442 * tree-data-ref.c (add_other_self_distances): Pass new argument.
27443
27444 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
27445
27446 PR target/90178
27447 Revert:
27448 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
27449
27450 Revert the revert:
27451 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
27452
27453 Revert:
27454 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
27455
27456 * lra-spills.c (lra_final_code_change): Remove useless move insns.
27457
27458 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
27459
27460 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
27461 names using operand format, rather than hard-wired.
27462 (speculation_barrier): Likewise.
27463
27464 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
27465
27466 PR tree-optimization/88055
27467 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
27468 (gen_one_condition): Use it if !HONOR_NANS.
27469
27470 2019-04-19 Jakub Jelinek <jakub@redhat.com>
27471
27472 PR middle-end/90139
27473 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
27474 assign_temp instead of gen_reg_rtx.
27475
27476 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
27477
27478 PR translation/90118
27479 * config/aarch64/aarch64.c (aarch64_override_options_internal):
27480 Add missing space before %<.
27481
27482 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
27483
27484 PR rtl-optimization/87871
27485 * ira-lives.c (make_object_dead): Don't add conflicts to
27486 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
27487
27488 2019-04-18 Martin Sebor <msebor@redhat.com>
27489
27490 PR middle-end/89797
27491 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
27492 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
27493 assuming type size fits in SHWI.
27494
27495 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
27496
27497 PR ipa/85051
27498 * ipa-inline.c (flatten_function): New parameter UPDATE.
27499 (ipa_inline, early_inliner): Use it.
27500
27501 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
27502
27503 * fold-const.c (int_const_binop): Return early on failure.
27504
27505 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
27506
27507 PR middle-end/85164
27508 * combine.c (force_int_to_mode): Cast the argument rather than
27509 the result of known_alignment.
27510 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
27511
27512 2019-04-18 Richard Biener <rguenther@suse.de>
27513
27514 PR debug/90131
27515 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
27516 out from ...
27517 (remove_forwarder_block): ... here.
27518 (remove_forwarder_block_with_phi): Also move debug stmts here.
27519
27520 2019-04-18 Jakub Jelinek <jakub@redhat.com>
27521
27522 PR translation/79183
27523 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
27524 inform where appropriate.
27525
27526 2019-04-18 Richard Biener <rguenther@suse.de>
27527
27528 * tree.c (get_qualified_type): Put found type variants at the
27529 head of the variant list.
27530
27531 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
27532
27533 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
27534
27535 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
27536
27537 PR target/90125
27538 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
27539 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
27540 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
27541 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
27542 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
27543
27544 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
27545
27546 * ira-conflicts.c (print_allocno_conflicts): Always print something,
27547 even for allocno's with no conflicts.
27548 (print_conflicts): Print an extra newline.
27549
27550 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
27551
27552 * auto-inc-dec.c (attempt_change): Set the alignment of the
27553 temporary memory to that of the original.
27554
27555 2019-04-17 Joao Moreira <jmoreira@suse.de>
27556
27557 * targhooks.c (default_print_patchable_function_entry): Emit
27558 __patchable_function_entries section with writable flags to allow
27559 relocation resolution.
27560
27561 2019-04-17 Jonny Grant <jg@jguk.org>
27562
27563 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
27564
27565 2019-04-17 Jakub Jelinek <jakub@redhat.com>
27566
27567 PR middle-end/90095
27568 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
27569 on lowpart SUBREGs.
27570
27571 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
27572
27573 * config/arc/arc.c (arc_init): Format diagnostic string.
27574 (arc_override_options): Likewise.
27575 (check_if_valid_regno_const): Likewise.
27576 (arc_reorg): Likewise.
27577
27578 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
27579
27580 PR target/17108
27581 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
27582 name.
27583 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
27584 name.
27585 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
27586 (*movdi_update1): Use Pmode.
27587 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
27588 (movdi_<mode>_update_stack): Rename to ...
27589 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
27590 use Pmode.
27591 (*movsi_update1): Use Pmode.
27592 (*movsi_update2): Use Pmode.
27593 (movsi_update): Rename to ...
27594 (movsi_<mode>_update): ... this. Use Pmode.
27595 (movsi_update_stack): Fix condition.
27596 (*movhi_update1): Use Pmode. Fix argument to
27597 avoiding_indexed_address_p.
27598 (*movhi_update2): Ditto.
27599 (*movhi_update3): Ditto.
27600 (*movhi_update4): Ditto.
27601 (*movqi_update1): Ditto.
27602 (*movqi_update2): Ditto.
27603 (*movqi_update3): Ditto.
27604 (*movsf_update1, *movdf_update1): Merge, rename to...
27605 (*mov<mode>_update1): This. Use Pmode. Fix argument to
27606 avoiding_indexed_address_p. Add "size" attribute.
27607 (*movsf_update2, *movdf_update2): Merge, rename to...
27608 (*mov<mode>_update2): This. Ditto.
27609 (*movsf_update3): Use Pmode. Fix argument to
27610 avoiding_indexed_address_p.
27611 (*movsf_update4): Ditto.
27612 (allocate_stack): Simplify condition. Adjust pattern names.
27613
27614 2019-04-17 Jakub Jelinek <jakub@redhat.com>
27615
27616 PR target/89093
27617 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
27618 whitespace at the start of target attribute string.
27619
27620 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
27621
27622 PR target/84369
27623 * config/rs6000/power9.md: Add store forwarding bypass.
27624
27625 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
27626
27627 PR debug/89528
27628 * valtrack.c (dead_debug_insert_temp): Reset debug references
27629 to the return value of a call being removed.
27630
27631 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27632
27633 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
27634 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
27635 implement target hook.
27636 (arc_memory_move_cost): New function.
27637 (TARGET_REGISTER_MOVE_COST): Define.
27638 (TARGET_MEMORY_MOVE_COST): Likewise.
27639 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
27640 (MEMORY_MOVE_COST): Likewise.
27641
27642 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27643
27644 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
27645 (sibcall_value_insn): Likewise.
27646 * config/arc/constraints.md (Rs5): Remove.
27647
27648 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27649
27650 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
27651 for last two fake registers.
27652 (arc_conditional_register_usage): Make sure fake frame and arg
27653 pointer regs are in general regs class.
27654 (FRAME_POINTER_MASK): Remove.
27655 (RETURN_ADDR_MASK): Remove.
27656 (arc_must_save_register): Use hard frame regnum.
27657 (frame_restore_reg): Use hard_frame_pointer_rtx.
27658 (arc_save_callee_saves): Likewise.
27659 (arc_restore_callee_saves): Likewise.
27660 (arc_save_callee_enter): Likewise.
27661 (arc_restore_callee_leave): Likewise.
27662 (arc_save_callee_milli): Likewise.
27663 (arc_eh_return_address_location): Likewise.
27664 (arc_check_multi): Use hard frame regnum.
27665 (arc_can_eliminate): Likewise.
27666 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
27667 for register allocator.
27668 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
27669 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
27670 (FRAME_POINTER_REGNUM): Change it to a fake register.
27671 (HARD_FRAME_POINTER_REGNUM): Defined.
27672 (ARG_POINTER_REGNUM): Change it to a new fake register.
27673 (ELIMINABLE_REGS): Update.
27674 (REGISTER_NAMES): Update names.
27675 * config/arc/arc.md (LP_START): Remove.
27676 (LP_END): Likewise.
27677 (shift_si3_loop): Update pattern.
27678
27679 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27680
27681 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
27682 to avoid delay slot scheduling.
27683 (arc_must_save_register): Don't save SP.
27684 * config/arc/arc.md (stack_tie): Remove.
27685 (UNSPEC_ARC_STKTIE): Likewise.
27686
27687 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
27688 Shiva Chen <shiva0217@gmail.com>
27689
27690 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
27691 code gen with large shift amount.
27692
27693 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
27694
27695 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
27696 subreg.
27697
27698 2019-04-16 Jakub Jelinek <jakub@redhat.com>
27699
27700 PR target/90096
27701 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
27702 print -m64/-mx32/-m32 if it is true.
27703 (ix86_debug_options, ix86_function_specific_print): Pass true as
27704 ADD_ABI_P to ix86_target_string.
27705 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
27706 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
27707 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
27708
27709 PR rtl-optimization/90082
27710 * dce.c (can_delete_call): New function.
27711 (deletable_insn_p, mark_insn): Use it.
27712
27713 PR tree-optimization/90090
27714 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
27715 throw internally.
27716 (is_division_by_square): Likewise. Formatting fix.
27717
27718 2019-04-16 Richard Biener <rguenther@suse.de>
27719
27720 PR tree-optimization/56049
27721 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
27722 equality check if alias-set zero will prevail.
27723
27724 2019-04-15 Jeff Law <law@redhat.com>
27725
27726 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
27727 size and alignment as unsigned.
27728
27729 2019-04-15 Richard Biener <rguenther@suse.de>
27730
27731 PR debug/90074
27732 * tree-loop-distribution.c (destroy_loop): Preserve correct
27733 debug info.
27734
27735 2019-04-15 Richard Biener <rguenther@suse.de>
27736
27737 PR tree-optimization/90071
27738 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
27739 abnormal operands from def stmts.
27740
27741 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
27742
27743 PR rtl-optimization/89794
27744 * combine.c (count_auto_inc): New function.
27745 (try_combine): Count how many auto_inc expressions there were in the
27746 original instructions. Ensure we have the same number in the new
27747 instructions. Remove the code that tried to ensure auto_inc side
27748 effects on i1 and i0 are not lost.
27749
27750 2019-04-15 Richard Biener <rguenther@suse.de>
27751
27752 PR ipa/88936
27753 * tree.h (auto_var_p): Declare.
27754 * tree.c (auto_var_p): New function, split out from ...
27755 (auto_var_in_fn_p): ... here.
27756 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
27757 member.
27758 (new_var_info): Initialize it.
27759 (set_uids_in_ptset): Also set the shadow variable uid if required.
27760 (ipa_pta_execute): Postprocess points-to solutions assigning
27761 shadow variable uids for locals that may reach their containing
27762 function recursively.
27763 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
27764 assert but instead check whether the points-to solution is
27765 a singleton.
27766
27767 2019-04-15 Martin Jambor <mjambor@suse.cz>
27768
27769 PR ipa/pr89693
27770 * cgraph.c (clone_of_p): Loop over clone chain for each step in
27771 the thunk chain.
27772
27773 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
27774
27775 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
27776
27777 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
27778 Kito Cheng <kito.cheng@gmail.com>
27779 Shiva Chen <shiva0217@gmail.com>
27780
27781 * config/nds32/nds32-md-auxiliary.c
27782 (nds32_legitimize_pic_address): Use new PIC pattern.
27783 (nds32_legitimize_tls_address): Use new TLS pattern.
27784 (nds32_output_symrel): New.
27785 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
27786 (nds32_alloc_relax_group_id): Ditto.
27787 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
27788 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
27789 relax_group_id.
27790 (nds32_group_tls_insn): Ditto.
27791 (nds32_group_float_insns): Ditto.
27792 * config/nds32/nds32.md (tls_le): New.
27793 (sym_got): Ditto.
27794
27795 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
27796
27797 * configure: Add nds32 target for dwarf2 debug_line checking.
27798 * configure.ac: Regenerated.
27799
27800 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
27801
27802 PR lto/89358
27803 * ipa-devirt.c (skip_in_fields_list_p): New.
27804 (odr_types_equivalent_p): Use it.
27805
27806 2019-04-13 Jakub Jelinek <jakub@redhat.com>
27807
27808 PR target/89093
27809 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
27810 instead of strncmp when checking for thumb and arm. Formatting fixes.
27811
27812 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
27813
27814 * doc/install.texi: Document --with-target-system-zlib.
27815
27816 2019-04-12 Martin Sebor <msebor@redhat.com>
27817
27818 PR c/88383
27819 PR c/89288
27820 PR c/89798
27821 PR c/89797
27822 * targhooks.c (default_vector_alignment): Avoid assuming
27823 argument fits in SHWI.
27824 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
27825 a shift expression.
27826 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
27827
27828 2019-04-12 Jakub Jelinek <jakub@redhat.com>
27829
27830 PR rtl-optimization/89965
27831 * dce.c: Include rtl-iter.h.
27832 (struct check_argument_load_data): New type.
27833 (check_argument_load): New function.
27834 (find_call_stack_args): Check for loads from stack slots still tracked
27835 in sp_bytes and punt if any is found.
27836
27837 * config/mips/loongson-mmiintrin.h: Fix up #error message.
27838
27839 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
27840
27841 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
27842 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
27843
27844 2019-04-12 Martin Liska <mliska@suse.cz>
27845
27846 PR middle-end/89970
27847 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
27848 in error message.
27849 (separate_attrs): Handle multiple 'default's.
27850 (expand_target_clones): Rework error handling code.
27851
27852 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
27853
27854 PR target/87532
27855 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
27856 mode of vector rather than mode of destination for move instruction.
27857 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
27858 Use QI inner mode with V16QI vector mode.
27859
27860 2019-04-12 Jakub Jelinek <jakub@redhat.com>
27861
27862 PR target/52726
27863 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
27864 "invalid %%t operand" in output_operand_lossage message.
27865
27866 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
27867
27868 * config/s390/predicates.md (permute_pattern_operand): New
27869 predicate.
27870 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
27871 operand for the permute pattern.
27872 ("*vec_perm<mode>"): New insn definition.
27873 ("bswap<mode>"): Generate the permute pattern operand in the
27874 expander and perform the operand reloads for pre arch13 level
27875 already.
27876 ("*bswap<mode>_emu"): Rename to ...
27877 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
27878 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
27879 Add the USE operand for the permute pattern.
27880 ("*vec_set_bswap_vec<mode>"): Likewise.
27881
27882 2019-04-12 Jakub Jelinek <jakub@redhat.com>
27883
27884 PR c/89946
27885 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
27886 and gcc_unreachable if it fails, just call tree_to_uhwi which
27887 verifies that too. Test TREE_CHAIN instead of list_length > 1.
27888 Start warning message with a lower-case letter. Formatting fixes.
27889
27890 PR rtl-optimization/90026
27891 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
27892 successors, look for BARRIERs inside of the whole BB_FOOTER chain
27893 rather than just at the start of it. If e->src BB_FOOTER is not NULL
27894 in cfglayout mode, use emit_barrier_after_bb.
27895
27896 2018-04-11 Steve Ellcey <sellcey@marvell.com>
27897
27898 PR rtl-optimization/87763
27899 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
27900 New Instruction.
27901
27902 2019-04-11 Tom de Vries <tdevries@suse.de>
27903
27904 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
27905 max macro using statement expression.
27906
27907 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
27908
27909 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
27910 * xcoffout.c (xcoff_private_rodata_section_name): Define.
27911 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
27912 read_only_private_data_section using xcoff_private_rodata_section_name.
27913 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
27914
27915 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
27916
27917 PR target/90016
27918 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
27919
27920 2019-04-11 Jakub Jelinek <jakub@redhat.com>
27921
27922 PR rtl-optimization/89965
27923 * dce.c (sp_based_mem_offset): New function.
27924 (find_call_stack_args): Use sp_based_mem_offset.
27925
27926 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
27927
27928 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
27929
27930 2019-04-11 Richard Biener <rguenther@suse.de>
27931
27932 PR tree-optimization/90020
27933 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
27934 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
27935 * tree-ssa-pre.c (compute_avail): Use it to not put
27936 possibly trapping references after a call that might not
27937 return into EXP_GEN.
27938 * gcse.c (compute_hash_table_work): Do not elide
27939 marking a block containing a call if the call might not
27940 return.
27941
27942 2019-04-11 Richard Biener <rguenther@suse.de>
27943
27944 PR tree-optimization/90018
27945 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
27946 Test both SLP and interleaving variants.
27947
27948 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
27949
27950 * config/s390/8561.md: New file.
27951 * config/s390/driver-native.c (s390_host_detect_local_cpu):
27952 Add arch13 cpu model.
27953 * config/s390/s390-opts.h (enum processor_type): Likewise.
27954 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
27955 (s390_get_unit_mask): Likewise.
27956 (s390_is_fpd): Likewise.
27957 (s390_is_fxd): Likewise.
27958 * config/s390/s390.h (s390_tune_attr): Likewise.
27959 * config/s390/s390.md: Include arch13 pipeline description.
27960 * config/s390/s390.opt: Add arch13.
27961
27962 2018-04-10 Steve Ellcey <sellcey@marvell.com>
27963
27964 PR rtl-optimization/87763
27965 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
27966 New prototype.
27967 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
27968 New function.
27969 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
27970 New instruction.
27971 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
27972 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
27973 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
27974 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
27975
27976 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
27977
27978 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
27979 "Although" in -fipa-icf documentation.
27980
27981 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
27982 of using multiple -g options.
27983
27984 2019-04-10 Martin Liska <mliska@suse.cz>
27985
27986 PR gcov-profile/89959
27987 * doc/gcov.texi: Make documentation of -x option
27988 more precise.
27989
27990 2019-04-10 Richard Biener <rguenther@suse.de>
27991
27992 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
27993 member.
27994 (DR_GROUP_SAME_DR_STMT): Remove.
27995 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
27996 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
27997 replace with assert.
27998 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
27999 (vect_record_grouped_load_vectors): Remove unreachable code.
28000
28001 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
28002
28003 PR target/90016
28004 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
28005 obsolete reference to N.
28006
28007 2019-04-10 Jakub Jelinek <jakub@redhat.com>
28008
28009 PR middle-end/90025
28010 * expr.c (store_expr): Set properly size on the MEM passed to
28011 clear_storage.
28012
28013 PR c++/90010
28014 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
28015 with strlen in between hostsz-3 and hostsz-1 inclusive when no
28016 translation is needed, and when translation is needed, only append
28017 ... if the string length is hostsz or more bytes long. Avoid using
28018 strncpy or strcat.
28019
28020 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
28021
28022 PR target/90024
28023 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
28024 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
28025 into three.
28026 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
28027 differences directly.
28028 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
28029
28030 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28031
28032 PR translation/90011
28033 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
28034 from diagnostics.
28035 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
28036 diagnostics.
28037 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
28038 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
28039 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
28040 trailing space from -gsplit-dwarf diagnostics.
28041
28042 PR tree-optimization/89998
28043 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
28044 instead of integer_type_node if possible, don't add ranges if return
28045 type is not compatible with int.
28046 * gimple-fold.c (gimple_fold_builtin_sprintf,
28047 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
28048 integer_type_node.
28049
28050 2019-04-09 Martin Liska <mliska@suse.cz>
28051
28052 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
28053 * doc/install.texi: Document the new config.
28054
28055 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
28056
28057 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
28058 use gimple_expr_type for load and store calls. Skip over the
28059 condition argument in a conditional internal function.
28060 Protect use of TREE_INT_CST_LOW.
28061
28062 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28063
28064 PR target/90015
28065 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
28066 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
28067 trailing period from it too.
28068
28069 2019-04-08 wu yuan <wuyuan5@huawei.com>
28070
28071 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
28072 * config/aarch64/aarch64.md: Add "tsv110.md".
28073 * config/aarch64/tsv110.md: New file.
28074
28075 2019-04-08 Richard Biener <rguenther@suse.de>
28076
28077 PR tree-optimization/90006
28078 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
28079 calls like lrint.
28080
28081 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
28082
28083 PR target/83033
28084 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
28085 construction.
28086 (fma_root_node): Likewise.
28087 (func_fma_steering): Likewise.
28088
28089 2019-04-08 Jakub Jelinek <jakub@redhat.com>
28090
28091 PR rtl-optimization/89865
28092 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
28093
28094 PR rtl-optimization/89865
28095 * config/i386/i386.md
28096 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
28097 numbers not to clash with the additional operands[4].
28098 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
28099 with extra register copy in the middle.
28100
28101 2019-04-08 Martin Liska <mliska@suse.cz>
28102
28103 PR gcov-profile/89961
28104 * doc/gcov.texi: Document data_file.
28105 * gcov.c (generate_results): Add data_info into JSON output.
28106
28107 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
28108
28109 PR tree-optimization/89725
28110 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
28111 loop's chrec as invariant symbol.
28112 * tree-chrec.h (chrec_contains_symbols): New parameter.
28113 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
28114 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
28115 function of loops not in DDR's loop_nest.
28116 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
28117
28118 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
28119
28120 PR target/89623
28121 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
28122 Mask.
28123
28124 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
28125
28126 PR target/89945
28127 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
28128 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
28129
28130 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
28131
28132 * sched-deps.c (sched_macro_fuse_insns): Check return value of
28133 targetm.fixed_condition_code_regs.
28134
28135 2019-04-05 Richard Biener <rguenther@suse.de>
28136
28137 PR debug/89892
28138 PR debug/89905
28139 * tree-cfgcleanup.c (remove_forwarder_block): Always move
28140 debug bind stmts but reset them if they are not valid at the
28141 destination.
28142
28143 2019-04-05 Martin Liska <mliska@suse.cz>
28144
28145 PR translation/89936
28146 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
28147 order to wrap keywords or arguments.
28148 * collect2.c (main): Likewise.
28149 (scan_prog_file): Likewise.
28150 (scan_libraries): Likewise.
28151 * common/config/riscv/riscv-common.c
28152 (riscv_subset_list::parsing_subset_version): Likewise.
28153 (riscv_subset_list::parse_std_ext): Likewise.
28154 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28155 Likewise.
28156 * config/arm/arm.c (arm_option_override): Likewise.
28157 * config/cris/cris.c (cris_print_operand): Likewise.
28158 * config/darwin-c.c (darwin_pragma_options): Likewise.
28159 (darwin_pragma_unused): Likewise.
28160 (darwin_pragma_ms_struct): Likewise.
28161 * config/ft32/ft32.c (ft32_print_operand): Likewise.
28162 * config/i386/i386.c (print_reg): Likewise.
28163 (ix86_print_operand): Likewise.
28164 * config/i386/xm-djgpp.h: Likewise.
28165 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
28166 * config/m32c/m32c.c (m32c_option_override): Likewise.
28167 * config/msp430/msp430.c (msp430_option_override): Likewise.
28168 * config/nds32/nds32.c (nds32_option_override): Likewise.
28169 * config/nvptx/mkoffload.c (main): Likewise.
28170 * config/rx/rx.c (rx_print_operand): Likewise.
28171 (valid_psw_flag): Likewise.
28172 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
28173 (vms_pragma_nomember_alignment): Likewise.
28174 (vms_pragma_extern_model): Likewise.
28175 * lto-wrapper.c (compile_offload_image): Likewise.
28176 * omp-offload.c (oacc_parse_default_dims): Likewise.
28177 * symtab.c (symtab_node::verify_base): Likewise.
28178 * tlink.c (recompile_files): Likewise.
28179 (start_tweaking): Likewise.
28180 * tree-profile.c (parse_profile_filter): Likewise.
28181
28182 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
28183
28184 PR tree-optimization/89956
28185 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
28186 multiple negates of the same value.
28187
28188 2019-04-04 Martin Sebor <msebor@redhat.com>
28189
28190 PR middle-end/89957
28191 PR middle-end/89911
28192 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
28193 have the same precision since the function crashes otherwise.
28194 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
28195 has non-zero arguments.
28196
28197 2019-04-04 Martin Sebor <msebor@redhat.com>
28198
28199 PR middle-end/89934
28200 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
28201 out if the number of arguments is less than expected.
28202
28203 2019-04-04 Jeff Law <law@redhat.com>
28204
28205 PR rtl-optimization/89399
28206 * ree.c (combine_set_extension): Use single_set rather than
28207 digging into PATTERN for items on the candidate list.
28208 (combine_reaching_defs): Likewise.
28209
28210 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
28211
28212 PR rtl-optimization/46590
28213 * loop-invariant.c (find_defs): Move df_remove_problem and
28214 df_process_deferred_rescans to move_invariants.
28215 Move df_live_add_problem and df_live_set_all_dirty calls
28216 to move_invariants.
28217 (move_invariants): Likewise.
28218 (move_loop_invariants): Likewise, making the df_live calls
28219 conditional on -O. Remove the problem again if we added it
28220 locally.
28221
28222 2019-04-03 qing zhao <qing.zhao@oracle.com>
28223
28224 PR tree-optimization/89730
28225 * ipa-inline.c (can_inline_edge_p): Delete the checking for
28226 -flive-patching=inline-only-static.
28227 (can_inline_edge_by_limits_p): Add the checking for
28228 -flive-patching=inline-only-static and grant always_inline
28229 even when -flive-patching=inline-only-static is specified.
28230
28231 2019-04-03 Jeff Law <law@redhat.com>
28232
28233 PR rtl-optimization/81025
28234 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
28235
28236 2019-04-03 Richard Biener <rguenther@suse.de>
28237
28238 PR tree-optimization/84101
28239 * tree-vect-stmts.c: Include explow.h for hard_function_value,
28240 regs.h for hard_regno_nregs.
28241 (cfun_returns): New helper.
28242 (vect_model_store_cost): When vectorizing a store to a decl
28243 we return and the function ABI returns in a multi-reg location
28244 account for the possible spilling that will happen.
28245
28246 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
28247
28248 * config/s390/s390.c (s390_legitimate_address_p): Reject long
28249 displacement addresses for vector mode operands.
28250
28251 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
28252
28253 * config/arc/arc.c (GMASK_LEN): Define.
28254 (arc_restore_callee_saves): Restore first blink when
28255 !optimize_size.
28256
28257 2019-04-03 Sudakshina Das <sudi.das@arm.com>
28258
28259 * doc/extend.texi: Add deprecated comment on sign-return-address
28260 function attribute and add mbranch-protection.
28261 * doc/invoke.texi: Add bti to the options for mbranch-protection.
28262
28263 2019-04-03 Richard Biener <rguenther@suse.de>
28264
28265 PR lto/89896
28266 * lto-wrapper.c (run_gcc): Avoid implicit rules making
28267 the all target phony.
28268
28269 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
28270
28271 PR target/89902
28272 PR target/89903
28273 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
28274 Return false for variable DImode shifts.
28275 (dimode_scalar_chain::compute_convert_gain): Do not handle
28276 register count operand in variable DImode shifts.
28277 (dimode_scalar_chain::make_vector_copies): Remove support to copy
28278 count argument of a variable shift instruction to a vector register.
28279 (dimode_scalar_chain::convert_reg): Remove support to convert
28280 count argument of a variable shift instruction.
28281
28282 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
28283
28284 PR rtl-optimization/84206
28285 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
28286 iterating over loop headers.
28287
28288 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
28289
28290 PR rtl-optimization/85876
28291 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
28292 beyond the original fence.
28293
28294 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
28295
28296 * config.gcc: Mark spu* targets as deprecated/obsolete.
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. Remove unused types.
28302 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
28303 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
28304 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
28305 overloaded builtins.
28306 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
28307 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
28308 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
28309 (vec_double, vec_signed, vec_unsigned): Define to use the new
28310 overloaded builtins.
28311 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
28312 Remove expanders.
28313
28314 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28315
28316 * config/s390/s390-builtin-types.def: New builtin function type
28317 definitions.
28318 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
28319 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
28320 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
28321 (s390_vstrszh, s390_vstrszf): New low-level builtins.
28322 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
28323 constant definitions.
28324 * config/s390/vecintrin.h (vec_search_string_cc)
28325 (vec_search_string_until_zero_cc): New builtin name definitions.
28326 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
28327 expanders.
28328 ("vec_vstrs<mode>"): New insn definition.
28329
28330 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28331
28332 * config/s390/s390-builtin-types.def: Add new builtin function
28333 types.
28334 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
28335 New overloaded builtins.
28336 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
28337 s390_vsrd.
28338 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
28339 (UNSPEC_VEC_SLDBYTE): ... this.
28340 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
28341 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
28342 definitions.
28343 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
28344 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
28345 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
28346
28347 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28348
28349 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
28350 New insn definition.
28351 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
28352 * config/s390/vector.md (V_HW_HSD): ... here.
28353
28354 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28355
28356 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
28357 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
28358 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
28359 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
28360 New insn definitions.
28361
28362 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28363
28364 * config/s390/s390-builtin-types.def: Add new builtin function type.
28365 * config/s390/s390-builtins.def: Add overloaded builtin
28366 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
28367 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
28368 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
28369 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
28370 ("eltswap<mode>"): New expander.
28371 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
28372 insn definitions.
28373
28374 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28375
28376 * config/s390/s390-builtin-types.def: Add new builtin function types.
28377 * config/s390/s390-builtins.def: Add overloaded builtin
28378 s390_vec_revb. Add low-level builtins for vlbr and vstbr
28379 instructions.
28380 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
28381 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
28382 ("bswap<mode>"): New expander.
28383 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
28384
28385 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28386
28387 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
28388 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
28389 vector builtin version number in __VEC__.
28390
28391 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28392
28393 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
28394 iterators.
28395 (SFSI): New mode attribute.
28396 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
28397 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
28398 rename to ...
28399 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
28400 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
28401 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
28402 ("floatsi<mode>2"): Add wcefb instruction.
28403
28404 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28405
28406 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
28407 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
28408 mode iterators.
28409 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
28410 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
28411 support 32 bit fp-int conversions. Rename to ...
28412 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
28413 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
28414 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
28415 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
28416 ... to these.
28417
28418 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28419
28420 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
28421 if-then-else constructs if we can use the select instruction.
28422 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
28423
28424 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28425
28426 * config/s390/s390.md ("*popcountdi_arch13_cc")
28427 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
28428 definition.
28429 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
28430 Append _z196 to make it ...
28431 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
28432 ("popcounthi2_z196"): ... this.
28433 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
28434 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
28435
28436 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28437
28438 * config/s390/s390.c (s390_canonicalize_comparison): Convert
28439 certain compares for arch13 in order to make use of the condition
28440 code result produced by the new instructions.
28441 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
28442 nxrk, and nxgrk instruction patterns.
28443 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
28444 (inv_no): Add new code iterator together with some attributes.
28445 ("*andc_split_<mode>"): Disable splitter for arch13.
28446 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
28447 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
28448 ("*<ANDOR:bitops_name>c<GPR:mode>")
28449 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
28450 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
28451 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
28452 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
28453
28454 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28455
28456 * common/config/s390/s390-common.c (processor_flags_table): New
28457 entry for arch13.
28458 * config.gcc: Support arch13 with the --with-arch= configure flag.
28459 * config/s390/driver-native.c (s390_host_detect_local_cpu):
28460 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
28461 * config/s390/s390.c (s390_get_sched_attrmask)
28462 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
28463 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
28464 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
28465 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
28466 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
28467 definitions.
28468 * config/s390/s390.opt: Support arch13 as processor type in
28469 command line options.
28470
28471 2019-04-02 Martin Liska <mliska@suse.cz>
28472
28473 PR translation/89912
28474 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
28475 Fix param description of graphite-max-arrays-per-scop.
28476
28477 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
28478
28479 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
28480 (ASAN_CC1_SPEC): Use it in 64-bit mode.
28481 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
28482
28483 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
28484
28485 PR rtl-optimization/85412
28486 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
28487 sel_sched_region_1, not after.
28488
28489 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
28490
28491 PR rtl-optimization/86928
28492 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
28493 compute_live if necessary.
28494 (sel_redirect_edge_and_branch): Likewise.
28495
28496 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
28497
28498 PR rtl-optimization/89865
28499 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
28500 register if it is a part of small class.
28501
28502 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
28503
28504 PR rtl-optimization/87273
28505 * sel-sched-ir.c (merge_fences): Remove assert.
28506
28507 2019-04-01 Richard Biener <rguenther@suse.de>
28508
28509 PR tree-optimization/46590
28510 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
28511 (dom_walker::m_reachability): Add in place of...
28512 (dom_walker::m_skip_unreachable_blocks): ...this.
28513 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
28514 Move complex initialization ...
28515 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
28516 lazily and initialize edge flags on each invocation.
28517 (dom_walker::bb_reachable): Use m_reachability.
28518
28519 2019-04-01 Martin Liska <mliska@suse.cz>
28520
28521 PR driver/89861
28522 * opt-suggestions.c (option_proposer::build_option_suggestions):
28523 Add variant without any argument in order to provide better
28524 hints.
28525
28526 2019-04-01 Richard Biener <rguenther@suse.de>
28527
28528 PR c/71598
28529 * gimple.c: Include langhooks.h.
28530 (gimple_get_alias_set): Treat enumeral types as the underlying
28531 integer type.
28532
28533 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
28534 Eric Botcazou <ebotcazou@adacore.com>
28535
28536 PR rtl-optimization/89862
28537 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
28538 that operates on the full registers for WORD_REGISTER_OPERATIONS
28539 architectures.
28540
28541 2019-03-29 Jim Wilson <jimw@sifive.com>
28542
28543 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
28544 Clear MASK_RVC and then set if C subset supported.
28545
28546 2019-03-29 Jakub Jelinek <jakub@redhat.com>
28547
28548 PR c/89872
28549 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
28550 non-addressable complit into its initializer if it is volatile.
28551
28552 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
28553
28554 * opts-common.c (integral_argument): Set errno properly in one case.
28555
28556 2019-03-29 Martin Liska <mliska@suse.cz>
28557
28558 * doc/invoke.texi: Remove -Wchkp from documentation.
28559
28560 2019-03-29 Martin Liska <mliska@suse.cz>
28561
28562 * dbgcnt.c (print_limit_reach): New function.
28563 (dbg_cnt): Use it.
28564
28565 2019-03-29 Martin Liska <mliska@suse.cz>
28566
28567 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
28568 (dbg_cnt_process_opt): Parse first tokens aas
28569 dbg_cnt_process_single_pair is also using strtok.
28570
28571 2019-03-29 Jakub Jelinek <jakub@redhat.com>
28572
28573 PR rtl-optimization/87485
28574 * function.c (expand_function_end): Move stack_protect_epilogue
28575 before loading of return value into hard register(s).
28576
28577 2019-03-28 Jakub Jelinek <jakub@redhat.com>
28578
28579 PR middle-end/89621
28580 * tree-inline.h (struct copy_body_data): Add
28581 dont_remap_vla_if_no_change flag.
28582 * tree-inline.c (remap_type_3, remap_type_2): New functions.
28583 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
28584 and remap_type_2 returns false.
28585 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
28586 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
28587 only from where it is copied to nested contexts.
28588
28589 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
28590
28591 PR target/89865
28592 * config/i386/i386.md (RMW operation with LEA peephole):
28593 Use LEAMODE mode attribute instead of SWI mode iterator for
28594 LEA pattern.
28595
28596 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
28597
28598 PR target/89848
28599 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
28600 Also process XEXP (src, 0) of a shift insn.
28601
28602 2019-03-28 David Malcolm <dmalcolm@redhat.com>
28603
28604 PR middle-end/89725
28605 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
28606 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
28607
28608 2019-03-28 Jakub Jelinek <jakub@redhat.com>
28609
28610 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
28611 test.
28612 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
28613 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
28614 immediately after first one with df_analyze in between, but rather
28615 process all bbs, queueing ones that need second pass in a worklist,
28616 df_analyze, process queued debug insn changes and if second pass is
28617 needed, process bbs from worklist, df_analyze, process queued debug
28618 insns again.
28619
28620 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
28621 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
28622 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
28623
28624 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
28625
28626 PR c/79022
28627 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
28628 definition.
28629
28630 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
28631
28632 PR target/85667
28633 * config/i386/i386.c (ix86_function_value_1): Call the newly added
28634 function for 32-bit MS_ABI.
28635 (function_value_ms_32): New function.
28636
28637 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
28638
28639 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
28640 (movdi): Call gen_movdi_symbol_save_scc.
28641 (gen_movdi_symbol_save_scc): New insn and split.
28642
28643 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
28644
28645 PR rtl-optimization/89313
28646 * function.c (matching_constraint_num): New static function.
28647 (match_asm_constraints_1): Use it. Fixup white space and comment.
28648 Don't replace inputs with non-matching constraints which conflict
28649 with early clobber outputs.
28650
28651 2019-03-27 Jeff Law <law@redhat.com>
28652
28653 PR rtl-optimization/87761
28654 PR rtl-optimization/89826
28655 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
28656 slightly later.
28657 (pass_cprop_hardreg::execute): Call df_analyze after adding the
28658 note problem to get REG_DEAD/REG_UNUSED notes updated.
28659
28660 2019-03-27 Richard Biener <rguenther@suse.de>
28661
28662 PR tree-optimization/89463
28663 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
28664 queue edges to remove.
28665 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
28666 dead stmts. Delay edge removal until PHIs are removed to
28667 make debug-stmt creation not confused by seemingly degenerate
28668 PHIs.
28669
28670 2019-03-27 Alan Modra <amodra@gmail.com>
28671
28672 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
28673 throughout file.
28674 * config/rs6000/darwin.h: Likewise.
28675 * config/rs6000/rs6000.c: Likewise.
28676
28677 2019-03-27 Alan Modra <amodra@gmail.com>
28678
28679 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
28680 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
28681
28682 2019-03-26 Andrew Waterman <andrew@sifive.com>
28683 Jim Wilson <jimw@sifive.com>
28684
28685 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
28686 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
28687 (generic_idivdi, generic_fmul_single, generic_fmul_double)
28688 (generic_fdiv, generic_fsqrt): Add check for generic tune.
28689 (generic_alu): Add auipc to type list.
28690 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
28691 (riscv_microarchitecture): Declare.
28692 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
28693 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
28694 field.
28695 (riscv_microarchitecture): New.
28696 (sifive_7_tune_info): New.
28697 (riscv_cpu_info_table): Add microarchitecture value for rocket and
28698 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
28699 entries.
28700 (riscv_store_data_bypass_p): New.
28701 (riscv_option_override): Set riscv_microarchitecture from
28702 cpu->microarchitecture.
28703 * config/riscv/riscv.md: Include sifive-7.md.
28704 (type): Add auipc.
28705 (tune): New.
28706 (auipc<mode>): Change type to auipc.
28707 (restore_stack_nonlocal): New.
28708 * config/riscv/sifive-7.md: New.
28709 * doc/invoke.texi (RISC-V Options): Update mtune docs.
28710
28711 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
28712
28713 PR target/89827
28714 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
28715 Also process XEXP (src, 0) of a shift insn.
28716
28717 2019-03-26 Richard Biener <rguenther@suse.de>
28718
28719 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
28720 (copy_debug_stmt): Likewise.
28721 (expand_call_inline): Likewise.
28722 (copy_bb): Avoid redundant lookup & set of gimple_block.
28723 * gimple-low.c (lower_gimple_return): Likewise.
28724 (lower_builtin_setjmp): Likewise.
28725
28726 2019-03-26 Jakub Jelinek <jakub@redhat.com>
28727
28728 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
28729 is constant 0, turn into static const data member initialized to false.
28730 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
28731 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
28732
28733 2019-03-26 Jason Merrill <jason@redhat.com>
28734 Jakub Jelinek <jakub@redhat.com>
28735
28736 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
28737 method.
28738 (mem_alloc_description::release_object_overhead): Fix comment typos.
28739 * hash-table.h (hash_table::~hash_table): Call
28740 release_instance_overhead only if m_entries is non-NULL, otherwise
28741 call unregister_descriptor.
28742
28743 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
28744
28745 PR tree-optimization/81740
28746 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28747 In case of outer loop vectorization, check for backward dependence
28748 at the inner loop if outer loop dependence is reversed.
28749
28750 2019-03-26 Alan Modra <amodra@gmail.com>
28751
28752 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
28753 rs6000_vector_mem init. Correct wI and wJ comment.
28754
28755 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
28756
28757 PR rtl-optimization/88347
28758 PR rtl-optimization/88423
28759 * sched-deps.c (sched_analyze_insn): Take into account that for
28760 tablejumps the barrier appears after a label and a jump_table_data.
28761
28762 2019-03-25 Martin Sebor <msebor@redhat.com>
28763
28764 PR c/89812
28765 * c-common.c (check_user_alignment): Rename local. Correct maximum
28766 alignment in diagnostic. Avoid assuming argument fits in SHWI,
28767 convert it to UHWI when it fits.
28768
28769 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
28770
28771 PR debug/86964
28772 * dwarf2out.c (premark_used_variables): New function.
28773 (prune_unused_types_walk): Do not mark not premarked external
28774 variables.
28775 (prune_unused_types): Call premark_used_variables.
28776
28777 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
28778
28779 PR rtl-optimization/89676
28780 * lra-constraints.c (curr_insn_transform): Do match reload for
28781 early clobbers when the match was successful only for different
28782 registers.
28783
28784 2019-03-25 Martin Sebor <msebor@redhat.com>
28785
28786 * doc/extend.texi (Common Type Attributes): Document vector_size.
28787 (Common Variable Attributes): Mention size constraint. Correct
28788 quoting and typos.
28789 (Vector Extensions): Use @dfn when defining bas type. Clarify
28790 base type and size constraints.
28791
28792 2019-03-25 Richard Biener <rguenther@suse.de>
28793
28794 PR tree-optimization/89789
28795 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
28796 changes from non-undefined back to undefined.
28797
28798 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
28799
28800 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
28801 heap string and a gc string, but since this variable is unknown to
28802 ggc the gc string might get reused and corrupted. Fixed by always
28803 using a heap string.
28804
28805 2019-03-25 Richard Biener <rguenther@suse.de>
28806
28807 PR tree-optimization/89779
28808 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
28809 to remove IV defs, delay actual removal.
28810 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
28811 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
28812 very end, properly also reset loop control IV information.
28813
28814 2019-03-25 Richard Biener <rguenther@suse.de>
28815
28816 PR tree-optimization/89802
28817 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
28818 move EH data to folded stmt.
28819
28820 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
28821
28822 * config/s390/s390-builtin-types.def: Remove few unused types and
28823 fix sort order for others.
28824
28825 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
28826
28827 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
28828 expected and found types with -mdebug during builtin matching.
28829
28830 2019-03-25 Richard Biener <rguenther@suse.de>
28831
28832 PR middle-end/89790
28833 * fold-const.c (operand_equal_p): Revert last change with
28834 updated comment.
28835
28836 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
28837
28838 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
28839 notes for the result of the __tls_get_addr calls.
28840 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
28841
28842 2019-03-24 Jeff Law <law@redhat.com>
28843
28844 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
28845
28846 PR rtl-optimization/87761
28847 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
28848 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
28849 as needed.
28850 (pass_cprop_hardreg::execute): Add df note problem and defer insn
28851 rescans. Reprocess blocks as needed, calling df_analyze before
28852 reprocessing. Always call df_analyze before fixing up debug bind
28853 insns.
28854
28855 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
28856
28857 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
28858 big endian.
28859
28860 2019-03-22 Andrew Pinski <apinski@marvell.com>
28861
28862 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
28863 attrribute for uxtw.
28864
28865 2019-03-26 Jeff Law <law@redhat.com>
28866
28867 PR rtl-optimization/87761
28868 * config/mips/mips-protos.h (mips_split_move): Add new argument.
28869 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
28870 (mips_split_move): Accept new INSN argument. Try to forward SRC
28871 into the next instruction.
28872 (mips_split_move_insn): Pass INSN through to mips_split_move.
28873
28874 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
28875
28876 PR rtl-optimization/89676
28877 * lra-constraints.c (curr_insn_transform): Do match reload for
28878 early clobbers even if the match was successful.
28879
28880 2019-03-22 Jakub Jelinek <jakub@redhat.com>
28881
28882 PR c++/87481
28883 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
28884
28885 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
28886
28887 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
28888
28889 2019-03-22 Jakub Jelinek <jakub@redhat.com>
28890
28891 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
28892 <avx512>_fmsub_<mode>_mask3<round_name>,
28893 <avx512>_fnmadd_<mode>_mask3<round_name>,
28894 <avx512>_fnmsub_<mode>_mask3<round_name>,
28895 avx512f_vmfmadd_<mode>_mask3<round_name>,
28896 avx512f_vmfmsub_<mode>_mask3<round_name>,
28897 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
28898 instead of register_operand and %v instead of v for match_operand 1.
28899 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
28900 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
28901 <round_nimm_predicate> instead of register_operand and %v instead of v
28902 for match_operand 1.
28903
28904 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
28905 <avx512>_fmadd_<mode>_mask3<round_name>,
28906 <avx512>_fmsub_<mode>_mask<round_name>,
28907 <avx512>_fmsub_<mode>_mask3<round_name>,
28908 <avx512>_fnmadd_<mode>_mask<round_name>,
28909 <avx512>_fnmadd_<mode>_mask3<round_name>,
28910 <avx512>_fnmsub_<mode>_mask<round_name>,
28911 <avx512>_fnmsub_<mode>_mask3<round_name>,
28912 <avx512>_fmaddsub_<mode>_mask<round_name>,
28913 <avx512>_fmaddsub_<mode>_mask3<round_name>,
28914 <avx512>_fmsubadd_<mode>_mask<round_name>,
28915 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
28916 <round_nimm_predicate> instead of nonimmediate_operand.
28917 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
28918 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
28919 Use register_operand instead of <round_nimm_predicate> for the
28920 operand that needs to match output.
28921 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
28922 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
28923 Likewise. Formatting fixes.
28924
28925 PR target/89784
28926 * config/i386/i386.c (enum ix86_builtins): Remove
28927 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
28928 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
28929 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
28930 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
28931 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
28932 __builtin_ia32_vfmsubss3_mask3): New builtins.
28933 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
28934 avx512f_vmfmadd_<mode>_mask3<round_name>,
28935 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
28936 *avx512f_vmfmsub_<mode>_mask<round_name>,
28937 avx512f_vmfmsub_<mode>_mask3<round_name>,
28938 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
28939 *avx512f_vmfnmadd_<mode>_mask<round_name>,
28940 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
28941 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
28942 *avx512f_vmfnmsub_<mode>_mask<round_name>,
28943 avx512f_vmfnmsub_<mode>_mask3<round_name>,
28944 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
28945 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
28946 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
28947 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
28948 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
28949 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
28950 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
28951 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
28952 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
28953 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
28954 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
28955 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
28956 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
28957 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
28958 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
28959 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
28960 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
28961 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
28962 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
28963 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
28964 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
28965 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
28966
28967 2019-03-21 Martin Sebor <msebor@redhat.com>
28968
28969 PR tree-optimization/89350
28970 * builtins.c (compute_objsize): Also ignore offsets whose upper
28971 bound is negative.
28972 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
28973 (builtin_memref::builtin_memref): Initialize new member.
28974 Allow EXPR to be null.
28975 (builtin_memref::extend_offset_range): Replace local with a member.
28976 Avoid assuming pointer offsets are unsigned.
28977 (builtin_memref::set_base_and_offset): Determine base object
28978 before computing offset range.
28979 (builtin_access::builtin_access): Handle memset.
28980 (builtin_access::generic_overlap): Replace local with a member.
28981 (builtin_access::strcat_overlap): Same.
28982 (builtin_access::overlap): Same.
28983 (maybe_diag_overlap): Same.
28984 (maybe_diag_access_bounds): Same.
28985 (wrestrict_dom_walker::check_call): Handle memset.
28986 (check_bounds_or_overlap): Same.
28987
28988 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
28989 Jakub Jelinek <jakub@redhat.com>
28990
28991 PR lto/89692
28992 * tree.c (fld_type_variant, fld_incomplete_type_of,
28993 fld_process_array_type): Call fld->pset.add and don't call
28994 add_tree_to_fld_list if it returns true.
28995 (free_lang_data_in_type): Similarly with self-recursive call. Purge
28996 non-marked types from TYPE_NEXT_VARIANT list.
28997 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
28998
28999 2019-03-21 Jakub Jelinek <jakub@redhat.com>
29000
29001 * hash-table.h (hash_table): Add Lazy template parameter defaulted
29002 to false, if true, don't alloc_entries during construction, but defer
29003 it to the first method that needs m_entries allocated.
29004 (hash_table::hash_table, hash_table::~hash_table,
29005 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
29006 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
29007 hash_table::clear_slot, hash_table::traverse_noresize,
29008 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
29009 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
29010 false.
29011 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
29012 NO_INSERT instead of find_with_hash.
29013 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
29014 hash_set::m_table): Add Lazy to template params of hash_table.
29015 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
29016 * attribs.c (test_attribute_exclusions): Likewise.
29017 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
29018 hash_set. Add tests for hash_set with Lazy = true.
29019
29020 2019-03-21 Richard Biener <rguenther@suse.de>
29021
29022 PR tree-optimization/89779
29023 * tree.c (tree_nop_conversion): Consolidate and fix defensive
29024 checks with respect to released SSA names now having error_mark_node
29025 type.
29026 * fold-const.c (operand_equal_p): Likewise.
29027
29028 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
29029
29030 PR target/89775
29031 * config/s390/s390.c (global_not_special_regno_p): Move to make it
29032 available to ...
29033 (s390_optimize_register_info): Use global_not_special_regno_p to
29034 check for global regs.
29035
29036 2019-03-20 Jakub Jelinek <jakub@redhat.com>
29037
29038 PR target/89752
29039 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
29040 update this_alternative nor this_alternative_set.
29041
29042 2019-03-19 Jim Wilson <jimw@sifive.com>
29043
29044 PR target/89411
29045 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
29046 align, size, offset. Use them to handle a BLKmode reference. Update
29047 comment.
29048 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
29049
29050 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29051
29052 PR rtl-optimization/89768
29053 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
29054 instead of GEN_INT.
29055 (unroll_loop_runtime_iterations): Likewise.
29056
29057 2019-03-19 Martin Sebor <msebor@redhat.com>
29058
29059 PR tree-optimization/89644
29060 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
29061 rather than endptr as an indicator of nul-termination.
29062
29063 PR tree-optimization/89644
29064 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
29065 arrays in determining sequence sizes in strncpy and stpncpy.
29066
29067 2019-03-19 Martin Liska <mliska@suse.cz>
29068
29069 PR middle-end/89737
29070 * predict.c (combine_predictions_for_bb): Empty likely_edges and
29071 unlikely_edges if there's an edge that belongs to both these sets.
29072
29073 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
29074
29075 PR target/89746
29076 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
29077 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
29078 go via a stack temporary.
29079
29080 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29081
29082 PR target/89378
29083 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
29084 instead of gen_rtx_SUBREG.
29085 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
29086
29087 2019-03-19 Richard Biener <rguenther@suse.de>
29088
29089 PR debug/88389
29090 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
29091
29092 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
29093
29094 PR lto/87809
29095 PR lto/89335
29096 * tree.c (free_lang_data_in_decl): Do not free context of C++
29097 destrutors.
29098
29099 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29100
29101 PR target/89506
29102 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
29103 subs for the first alternative except when operands[3] is 1.
29104
29105 PR target/89752
29106 * gimplify.c (gimplify_asm_expr): For output argument with
29107 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
29108 diagnose error.
29109
29110 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
29111
29112 PR rtl-optimization/89753
29113 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
29114 explicit unrolling factor even more robust.
29115
29116 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29117
29118 PR target/89726
29119 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
29120 compensation use x2 += 1 instead of x2 -= -1 and when honoring
29121 signed zeros, do another copysign after the compensation.
29122
29123 2019-03-18 Martin Sebor <msebor@redhat.com>
29124
29125 PR tree-optimization/89720
29126 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
29127 more conservatively, the same as anti-range.
29128
29129 2019-03-18 Richard Biener <rguenther@suse.de>
29130
29131 PR middle-end/88945
29132 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
29133 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
29134 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
29135 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
29136
29137 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
29138
29139 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
29140 Extend queue to 1024 entries.
29141 Add "consumed" field.
29142 (gomp_print_output): Remove print_index parameter.
29143 Add final parameter.
29144 Change limit to unsigned.
29145 Use consumed field to implement circular buffer.
29146 Detect interrupted print in final pass.
29147 Flush output at the end.
29148 (run): Update gomp_print_output usage.
29149 (main): Initialize kernargs->output_data.consumed.
29150
29151 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
29152
29153 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
29154 calculation of the minimum number of scalar iterations for
29155 fully-predicated loops.
29156
29157 2019-03-18 Martin Jambor <mjambor@suse.cz>
29158
29159 PR tree-optimization/89546
29160 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
29161 any propagation to its children took place.
29162
29163 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
29164
29165 PR target/89627
29166 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
29167 parameter, and make use of it.
29168 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
29169
29170 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29171
29172 * config/arc/arc.opt (mcode-density-frame): Get the inital value
29173 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
29174 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
29175 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
29176 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
29177 match what the ops is doing.
29178 (push_multi_fp_blink): Likewise.
29179 * config/arc/arc.c (arc_override_options): Enable enter/leave when
29180 compiling for size and elf target.
29181 (arc_save_callee_enter): Adjust note to match what enter/leave
29182 operation does.
29183
29184 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29185
29186 * config/arc/arc.md (tst_movb): Fix constraint.
29187
29188 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29189
29190 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
29191
29192 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29193
29194 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
29195 * config/arc/arc.c (arc_conditional_register_usage): Remove all
29196 reg_alloc_order references.
29197 (size_alloc_order): Define.
29198 (arc_adjust_reg_alloc_order): New function.
29199 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
29200 order.
29201 (ADJUST_REG_ALLOC_ORDER): Define.
29202 (HONOR_REG_ALLOC_ORDER): Likewise.
29203
29204 2019-03-18 Richard Biener <rguenther@suse.de>
29205
29206 PR target/87561
29207 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
29208 loads and stores a bit more.
29209
29210 2019-03-18 Richard Biener <rguenther@suse.de>
29211
29212 PR target/87561
29213 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
29214 load pessimization to stores as well.
29215
29216 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
29217
29218 PR middle-end/86979
29219 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
29220 successor, use NULL as its av set.
29221
29222 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
29223
29224 PR rtl-optimization/89721
29225 * lra-constraints (invariant_p): Return false if side_effects_p holds.
29226
29227 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
29228
29229 PR target/87532
29230 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29231 When handling vec_extract, use modular arithmetic to allow
29232 constant selectors greater than vector length.
29233 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
29234 V1TImode vectors to have constant selector values greater than 0.
29235 Use modular arithmetic to compute vector index.
29236 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
29237 index for in-memory vectors. Correct code generation for
29238 in-register vectors.
29239 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
29240 compute index.
29241
29242 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
29243
29244 PR c++/88534
29245 PR c++/88537
29246 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
29247 VAR_DECL args.
29248
29249 2019-03-15 Jakub Jelinek <jakub@redhat.com>
29250
29251 PR c++/89709
29252 * tree.c (inchash::add_expr): Strip any location wrappers.
29253 * fold-const.c (operand_equal_p): Move stripping of location wrapper
29254 after hash verification.
29255
29256 PR debug/89704
29257 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
29258 SIGN_EXTEND and ZERO_EXTEND.
29259
29260 2019-03-14 Jason Merrill <jason@redhat.com>
29261 Jakub Jelinek <jakub@redhat.com>
29262
29263 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
29264 than if is_empty (*slot).
29265 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
29266 existing elt and for elt removal.
29267 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
29268 of already removed elt.
29269
29270 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
29271
29272 PR target/89650
29273 * config/i386/i386.c (remove_partial_avx_dependency): Handle
29274 REG_EH_REGION note.
29275
29276 2019-03-14 Martin Liska <mliska@suse.cz>
29277
29278 PR other/89712
29279 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
29280
29281 2019-03-14 Richard Biener <rguenther@suse.de>
29282
29283 PR target/89711
29284 * config/i386/i386.c (make_resolver_func): Properly set
29285 DECL_CONTEXT on the RESULT_DECL.
29286 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
29287
29288 2019-03-14 Richard Biener <rguenther@suse.de>
29289
29290 * gimple-pretty-print.c: Include cfgloop.h.
29291 (dump_gimple_phi): Adjust.
29292 (dump_gimple_bb_header): Dump loop header for GIMPLE.
29293 (pp_cfg_jump): Adjust.
29294 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
29295 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
29296 (lower_phi_internal_fn): Remove.
29297 (verify_gimple_call): Remove IFN_PHI special-casing.
29298 (dump_function_to_file): Dump IL state.
29299 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
29300 done to deal with PHI nodes being present in non-SSA state.
29301
29302 2019-03-14 Jakub Jelinek <jakub@redhat.com>
29303
29304 PR ipa/89684
29305 * multiple_target.c (create_dispatcher_calls): Change
29306 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
29307 In the node->iterate_referring loop, push *ref rather than ref, call
29308 ref->remove_reference () and always pass 0 to iterate_referring.
29309
29310 PR rtl-optimization/89679
29311 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
29312 would contain a paradoxical SUBREG.
29313
29314 2019-03-14 Richard Biener <rguenther@suse.de>
29315
29316 PR tree-optimization/89710
29317 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
29318 safe_dyn_cast.
29319
29320 2019-03-14 Martin Liska <mliska@suse.cz>
29321
29322 * coverage.c (coverage_begin_function): Stream also
29323 end_column.
29324 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
29325 documentation about function declaration location.
29326 * gcov-dump.c (tag_function): Print whole range
29327 of function declaration.
29328 * gcov.c (struct function_info): Add end_column field.
29329 (function_info::function_info): Initialize it.
29330 (output_json_intermediate_file): Output {start,end}_column
29331 fields.
29332 (read_graph_file): Read end_column.
29333
29334 2019-03-14 Richard Biener <rguenther@suse.de>
29335
29336 PR middle-end/89698
29337 * fold-const.c (operand_equal_p): For INDIRECT_REF check
29338 that the access types are similar.
29339
29340 2019-03-14 Jakub Jelinek <jakub@redhat.com>
29341
29342 PR tree-optimization/89703
29343 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
29344 aren't compatible also with builtin_decl_explicit. Check pure
29345 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
29346 and BUILT_IN_STPNCPY{,_CHK}.
29347
29348 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
29349
29350 PR target/89523
29351 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
29352 addr32 prefix to VSIB address for X32.
29353 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
29354 "%M2" to opcode.
29355 (*avx512pf_gatherpf<mode>df_mask): Likewise.
29356 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
29357 (*avx512pf_scatterpf<mode>df_mask): Likewise.
29358 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
29359 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
29360 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
29361 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
29362 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
29363 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
29364 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
29365 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
29366 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
29367 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
29368 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
29369 (*avx512f_scatterdi<mode>): Likewise.
29370
29371 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
29372
29373 PR target/85860
29374 * lra-constraints.c (inherit_in_ebb): Update
29375 potential_reload_hard_regs along with live_hard_regs.
29376
29377 2019-03-13 Jakub Jelinek <jakub@redhat.com>
29378
29379 PR debug/89498
29380 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
29381 DWARF_OFFSET_SIZE.
29382 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
29383
29384 2019-03-13 Martin Sebor <msebor@redhat.com>
29385
29386 PR tree-optimization/89662
29387 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
29388 has a size.
29389
29390 2019-03-13 Richard Biener <rguenther@suse.de>
29391
29392 PR middle-end/89677
29393 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
29394 throw FP expressions at tree-affine.
29395
29396 2019-03-14 Richard Biener <rguenther@suse.de>
29397
29398 * tree-pretty-print.c (dump_generic_node): For -gimple properly
29399 dump negative integer constants using _Literal (type) -num.
29400
29401 2019-03-13 Jakub Jelinek <jakub@redhat.com>
29402
29403 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
29404 nonlocal_value member.
29405
29406 PR middle-end/88588
29407 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
29408 (ipa_simd_modify_function_body): Handle PHIs.
29409
29410 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
29411
29412 * config/s390/s390.c (s390_option_override_internal): Use more
29413 aggressive inlining parameters.
29414
29415 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
29416
29417 * config/s390/3906.md: New file.
29418 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
29419 (LONGRUNNING_THRESHOLD): Remove.
29420 (MAX_SCHED_MIX_SCORE): Decrease.
29421 (MAX_SCHED_MIX_DISTANCE): Decrease.
29422 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
29423 (struct s390_sched_state): New struct to hold scheduling state.
29424 (S390_SCHED_STATE_NORMAL): Remove.
29425 (S390_SCHED_STATE_CRACKED): Remove.
29426 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
29427 (s390_get_sched_attrmask): Use new attribute.
29428 (s390_get_unit_mask): Use new units.
29429 (s390_is_fpd): New function.
29430 (s390_is_fxd): New function.
29431 (s390_is_longrunning): New function.
29432 (s390_sched_score): Use new functions.
29433 (s390_sched_reorder): Likewise.
29434 (s390_sched_variable_issue): Rework and use new functions.
29435 (s390_sched_init): Use new functions.
29436 * config/s390/s390.h (s390_tune_attr): Add z14.
29437 * config/s390/s390.md: Add z14.
29438
29439 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
29440
29441 * config/s390/2964.md: Update pipeline description.
29442 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
29443 (LONGRUNNING_THRESHOLD): Remove.
29444 (LATENCY_FACTOR): Remove.
29445 (s390_get_unit_mask): Add unit.
29446 (s390_sched_score): Use fxd/fpd.
29447 (s390_sched_variable_issue): Use fxd/fpd.
29448
29449 2019-03-12 Martin Liska <mliska@suse.cz>
29450
29451 * config/i386/i386.c: Reword an error message.
29452
29453 2019-03-12 Martin Jambor <mjambor@suse.cz>
29454
29455 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
29456 terminate with newline.
29457
29458 2019-03-12 Jakub Jelinek <jakub@redhat.com>
29459
29460 PR target/52726
29461 * config/s390/s390.md (tabort): Use %wd instead of
29462 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
29463 letters and periods.
29464 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
29465 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
29466 's with %< and %>.
29467
29468 PR middle-end/89663
29469 * builtins.c (expand_builtin_int_roundingfn,
29470 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
29471 gcc_unreachable if validate_arglist fails.
29472
29473 2019-03-12 Richard Biener <rguenther@suse.de>
29474
29475 PR tree-optimization/89664
29476 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
29477 free the occurance tree after the early out.
29478
29479 2019-03-11 Jakub Jelinek <jakub@redhat.com>
29480
29481 PR middle-end/89655
29482 PR bootstrap/89656
29483 * vr-values.c (vr_values::update_value_range): If
29484 old_vr->varying_p (), don't update it, make new_vr also VARYING
29485 and return false.
29486
29487 2019-03-11 Martin Liska <mliska@suse.cz>
29488
29489 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29490 Fix double string quoting.
29491
29492 2019-03-11 Martin Liska <mliska@suse.cz>
29493
29494 * collect-utils.c (collect_wait): Wrap apostrophes
29495 in gcc internal format with %'.
29496 * collect2.c (main): Likewise.
29497 (scan_prog_file): Likewise.
29498 (scan_libraries): Likewise.
29499 * config/i386/i386.c (ix86_expand_call): Likewise.
29500 (ix86_handle_interrupt_attribute): Likewise.
29501 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
29502 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
29503 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
29504 * lto-wrapper.c (find_crtoffloadtable): Likewise.
29505 * symtab.c (symtab_node::verify_base): Likewise.
29506 * tree-cfg.c (verify_gimple_label): Likewise.
29507 * tree.c (verify_type_variant): Likewise.
29508
29509 2019-03-11 Martin Liska <mliska@suse.cz>
29510
29511 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
29512 in a string format message and fix GNU coding style.
29513 (expand_builtin_set_thread_pointer): Likewise.
29514 * common/config/aarch64/aarch64-common.c
29515 (aarch64_rewrite_selected_cpu): Likewise.
29516 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
29517 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
29518 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
29519 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
29520 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
29521 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
29522 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
29523 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
29524 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
29525 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
29526 Likewise.
29527 * common/config/riscv/riscv-common.c
29528 (riscv_subset_list::parsing_subset_version): Likewise.
29529 (riscv_subset_list::parse_std_ext): Likewise.
29530 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
29531 (riscv_subset_list::parse): Likewise.
29532 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
29533 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
29534 (aarch64_override_options_internal): Likewise.
29535 (aarch64_validate_mcpu): Likewise.
29536 (aarch64_validate_march): Likewise.
29537 (aarch64_validate_mtune): Likewise.
29538 (aarch64_override_options): Likewise.
29539 * config/alpha/alpha.c (alpha_option_override): Likewise.
29540 * config/arc/arc.c (arc_init): Likewise.
29541 (parse_mrgf_banked_regs_option): Likewise.
29542 (arc_override_options): Likewise.
29543 (arc_expand_builtin_aligned): Likewise.
29544 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
29545 (arm_expand_builtin): Likewise.
29546 * config/arm/arm.c (arm_option_check_internal): Likewise.
29547 (arm_configure_build_target): Likewise.
29548 (arm_option_override): Likewise.
29549 (arm_options_perform_arch_sanity_checks): Likewise.
29550 (arm_handle_cmse_nonsecure_entry): Likewise.
29551 (arm_handle_cmse_nonsecure_call): Likewise.
29552 (arm_tls_referenced_p): Likewise.
29553 (thumb1_expand_prologue): Likewise.
29554 * config/avr/avr.c (avr_option_override): Likewise.
29555 * config/bfin/bfin.c (bfin_option_override): Likewise.
29556 * config/c6x/c6x.c (c6x_option_override): Likewise.
29557 * config/cr16/cr16.c (cr16_override_options): Likewise.
29558 * config/cris/cris.c (cris_option_override): Likewise.
29559 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
29560 * config/darwin-c.c (macosx_version_as_macro): Likewise.
29561 * config/darwin.c (darwin_override_options): Likewise.
29562 * config/frv/frv.c (frv_expand_builtin): Likewise.
29563 * config/h8300/h8300.c (h8300_option_override): Likewise.
29564 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
29565 (ix86_option_override_internal): Likewise.
29566 (warn_once_call_ms2sysv_xlogues): Likewise.
29567 (ix86_expand_prologue): Likewise.
29568 (split_stack_prologue_scratch_regno): Likewise.
29569 (ix86_warn_parameter_passing_abi): Likewise.
29570 * config/ia64/ia64.c (fix_range): Likewise.
29571 * config/m68k/m68k.c (m68k_option_override): Likewise.
29572 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
29573 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
29574 (mips_set_compression_mode): Likewise.
29575 * config/mmix/mmix.c (mmix_option_override): Likewise.
29576 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
29577 * config/msp430/msp430.c (msp430_option_override): Likewise.
29578 * config/nds32/nds32.c (nds32_option_override): Likewise.
29579 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
29580 (nios2_option_override): Likewise.
29581 (nios2_expand_custom_builtin): Likewise.
29582 * config/nvptx/mkoffload.c (main): Likewise.
29583 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
29584 * config/pa/pa.c (fix_range): Likewise.
29585 (pa_option_override): Likewise.
29586 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
29587 (riscv_option_override): Likewise.
29588 * config/rl78/rl78.c (rl78_option_override): Likewise.
29589 * config/rs6000/aix61.h: Likewise.
29590 * config/rs6000/aix71.h: Likewise.
29591 * config/rs6000/aix72.h: Likewise.
29592 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
29593 * config/rs6000/freebsd64.h: Likewise.
29594 * config/rs6000/linux64.h: Likewise.
29595 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
29596 (rs6000_expand_zeroop_builtin): Likewise.
29597 (rs6000_expand_mtfsb_builtin): Likewise.
29598 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
29599 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
29600 (rs6000_invalid_builtin): Likewise.
29601 (rs6000_expand_split_stack_prologue): Likewise.
29602 * config/rs6000/rtems.h: Likewise.
29603 * config/rx/rx.c (valid_psw_flag): Likewise.
29604 (rx_expand_builtin): Likewise.
29605 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
29606 * config/s390/s390.c (s390_expand_builtin): Likewise.
29607 (s390_function_profiler): Likewise.
29608 (s390_option_override_internal): Likewise.
29609 (s390_option_override): Likewise.
29610 * config/sh/sh.c (sh_option_override): Likewise.
29611 (sh_builtin_saveregs): Likewise.
29612 (sh_fix_range): Likewise.
29613 * config/sh/vxworks.h: Likewise.
29614 * config/sparc/sparc.c (sparc_option_override): Likewise.
29615 * config/spu/spu.c (spu_option_override): Likewise.
29616 (fix_range): Likewise.
29617 * config/visium/visium.c (visium_option_override): Likewise.
29618 (visium_handle_interrupt_attr): Likewise.
29619 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
29620 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
29621 (dbg_cnt_process_opt): Likewise.
29622 * dwarf2out.c (output_dwarf_version): Likewise.
29623 * except.c (expand_eh_return): Likewise.
29624 * gcc.c (defined): Likewise.
29625 (driver_handle_option): Likewise.
29626 (process_command): Likewise.
29627 (compare_files): Likewise.
29628 (driver::prepare_infiles): Likewise.
29629 (driver::do_spec_on_infiles): Likewise.
29630 (driver::maybe_run_linker): Likewise.
29631 * omp-offload.c (oacc_parse_default_dims): Likewise.
29632 * opts-global.c (handle_common_deferred_options): Likewise.
29633 * opts.c (parse_sanitizer_options): Likewise.
29634 (common_handle_option): Likewise.
29635 (enable_warning_as_error): Likewise.
29636 * passes.c (enable_disable_pass): Likewise.
29637 * plugin.c (parse_plugin_arg_opt): Likewise.
29638 (default_plugin_dir_name): Likewise.
29639 * targhooks.c (default_expand_builtin_saveregs): Likewise.
29640 (default_pch_valid_p): Likewise.
29641 * toplev.c (init_asm_output): Likewise.
29642 (process_options): Likewise.
29643 (toplev::run_self_tests): Likewise.
29644 * tree-cfg.c (verify_gimple_call): Likewise.
29645 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
29646 (tree_inlinable_function_p): Likewise.
29647 * var-tracking.c (vt_find_locations): Likewise.
29648
29649 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
29650
29651 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
29652 only on the else branch.
29653
29654 2019-03-11 Martin Liska <mliska@suse.cz>
29655
29656 * gcov.c (output_intermediate_json_line): Print function
29657 name of each line.
29658 (output_json_intermediate_file): Add new argument.
29659 * doc/gcov.texi: Document the change.
29660
29661 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
29662
29663 PR rtl-optimization/89588
29664 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
29665 explicit unrolling factor more robust.
29666
29667 2019-03-11 Richard Biener <rguenther@suse.de>
29668
29669 PR tree-optimization/89649
29670 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
29671 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
29672 on the prolog and epilog loops.
29673 (vect_loop_versioning): Return copy of loop.
29674 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
29675 on the non-vectorized version of the loop.
29676
29677 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
29678
29679 PR target/68924
29680 * config/i386/sse.md (*vec_extractv2di_0_sse):
29681 Add (=r,x) alternative and corresponding splitter.
29682
29683 2019-03-10 Martin Jambor <mjambor@suse.cz>
29684
29685 PR tree-optimization/85762
29686 PR tree-optimization/87008
29687 PR tree-optimization/85459
29688 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
29689 it points to if there is a type changing MEM_REF. Adjust all callers.
29690 (build_accesses_from_assign): Disable total scalarization if
29691 contains_vce_or_bfcref_p returns true through the new parameter, for
29692 both rhs and lhs.
29693
29694 2019-03-09 Jakub Jelinek <jakub@redhat.com>
29695
29696 PR c/88568
29697 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
29698 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
29699
29700 PR target/79645
29701 * common.opt (fdiagnostics-show-labels,
29702 fdiagnostics-show-line-numbers, fdiagnostics-format=,
29703 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
29704 gas-locview-support, ginline-points, ginternal-reset-location-views):
29705 Terminate description text with a dot.
29706 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
29707 * config/mcore/mcore.opt (m210, m340): Likewise.
29708 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
29709 mnops=): Start description text with a capital letter.
29710 * config/arc/arc.opt (msize-level=): Likewise.
29711 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
29712 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
29713 mnewlib): Likewise.
29714 * config/ft32/ft32.opt (msim): Likewise.
29715 (mft32b, mcompress): Likewise. Terminate description text with a dot.
29716 (mnodiv, mnopm): Terminate description text with a dot.
29717 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
29718 a colon.
29719 * config/i386/i386.opt (prefer_vector_width, instrument_return):
29720 Likewise.
29721 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
29722 text.
29723
29724 PR rtl-optimization/89634
29725 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
29726 are modified in BB_END (e->src) instruction.
29727
29728 2019-03-08 David Malcolm <dmalcolm@redhat.com>
29729
29730 PR target/79926
29731 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
29732 messages more amenable to translation, and improve wording.
29733
29734 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
29735
29736 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
29737 ud- and du-chains between phases.
29738
29739 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
29740
29741 PR debug/89631
29742 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
29743 instead of POLY_INT_CST.
29744
29745 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
29746
29747 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
29748 requirement.
29749
29750 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
29751
29752 PR target/68924
29753 PR target/78782
29754 PR target/87558
29755 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
29756 (_mm_storeu_si64): Ditto.
29757
29758 2019-03-08 Martin Liska <mliska@suse.cz>
29759
29760 PR target/86952
29761 * config/i386/i386.c (ix86_option_override_internal): Disable
29762 jump tables when retpolines are used.
29763
29764 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
29765
29766 PR go/63560
29767 * ipa-split.c (execute_split_functions): Do not split
29768 'noinline' or 'section' function.
29769
29770 2019-03-08 Jakub Jelinek <jakub@redhat.com>
29771
29772 PR target/79846
29773 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
29774 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
29775 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
29776
29777 PR ipa/80000
29778 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29779 from diagnostics. Formatting fixes.
29780
29781 PR target/85665
29782 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
29783 warn_odr diagnostics.
29784
29785 PR other/80058
29786 * lra-constraints.c (process_alt_operands): Avoid one space before
29787 " at the end of line and another after " on another line in a string
29788 literal.
29789 * attribs.c (handle_dll_attribute): Likewise.
29790 * config/avr/avr-devices.c (avr_texinfo): Likewise.
29791
29792 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
29793 warning_at or inform messages in G_() if there is no ?:.
29794
29795 PR tree-optimization/89550
29796 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
29797 returned true. Formatting fixes.
29798 (expand_builtin_strnlen): Formatting fixes.
29799 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
29800 if warning_at returned true.
29801 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
29802
29803 2019-03-08 Richard Biener <rguenther@suse.de>
29804
29805 PR middle-end/89578
29806 * cfgloop.h (struct loop): Add owned_clique field.
29807 * cfgloopmanip.c (copy_loop_info): Copy it.
29808 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
29809 cliques.
29810 * tree-inline.c (copy_loops): Remap owned_clique.
29811 * lto-streamer-in.c (input_cfg): Stream owned_clique.
29812 * lto-streamer-out.c (output_cfg): Likewise.
29813
29814 2019-03-08 Jakub Jelinek <jakub@redhat.com>
29815
29816 PR target/80190
29817 * config/darwin.c: Include intl.h.
29818 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
29819 composing the message out of two separate parts.
29820
29821 2019-03-07 Jakub Jelinek <jakub@redhat.com>
29822
29823 PR target/80003
29824 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
29825 doesn't start with a capital letter and doesn't end with a dot.
29826 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
29827 with a capital letter.
29828 (ix86_mangle_function_version_assembler_name): Likewise.
29829 (ix86_generate_version_dispatcher_body): Likewise.
29830 (fold_builtin_cpu): Likewise.
29831 (get_builtin_code_for_version): Likewise. Remove extraneous space.
29832 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
29833 translators, wrap full type name in %qs.
29834
29835 PR translation/79999
29836 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
29837 depend clause with source (or sink) modifier.
29838 * omp-expand.c (expand_omp_ordered_sink): Likewise.
29839
29840 PR target/89602
29841 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
29842 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
29843 (avx512f_load<mode>_mask): New define_expand.
29844 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
29845 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
29846 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
29847 __builtin_ia32_movess_mask): New builtins.
29848 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
29849 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
29850 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
29851 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
29852
29853 2019-03-07 Martin Jambor <mjambor@suse.cz>
29854
29855 PR lto/87525
29856 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
29857 for extern inline functions.
29858
29859 2019-03-07 Martin Jambor <mjambor@suse.cz>
29860
29861 PR ipa/88235
29862 * cgraph.h (cgraph_node): New inline method former_thunk_p.
29863 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
29864 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
29865 have multiple callees. At the end check if declarations match as
29866 opposed to cgraph_nodes.
29867
29868 2019-03-07 Martin Liska <mliska@suse.cz>
29869
29870 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
29871 which is equivalent to searching for this in clones chain.
29872 * symtab.c (symtab_node::verify_base): Similarly compare ASM
29873 names with a neighbour and special case first node in a chain.
29874
29875 2019-01-25 Jason Merrill <jason@redhat.com>
29876
29877 PR c++/80916 - spurious "static but not defined" warning.
29878 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
29879 for an internal symbol with DECL_EXTERNAL.
29880
29881 2019-04-07 Richard Biener <rguenther@suse.de>
29882
29883 PR middle-end/89618
29884 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
29885 * tree-inline.c (copy_loops): Simplify.
29886
29887 2019-03-07 Martin Liska <mliska@suse.cz>
29888
29889 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
29890
29891 2019-03-07 Richard Biener <rguenther@suse.de>
29892
29893 PR tree-optimization/89595
29894 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
29895 stmt iterator as reference, take boolean output parameter to
29896 indicate whether the stmt was removed and thus the iterator
29897 already advanced.
29898 (dom_opt_dom_walker::before_dom_children): Re-iterate over
29899 stmts created by folding.
29900
29901 2019-03-07 Jakub Jelinek <jakub@redhat.com>
29902
29903 PR c++/89585
29904 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
29905 at toplevel.
29906
29907 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
29908
29909 PR rtl-optimization/88845
29910 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
29911 LRA.
29912 * lra.c (remove_scratches_1): New function.
29913 (remove_scratches): Use it.
29914 (lra_emit_move): Likewise.
29915
29916 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
29917
29918 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
29919 unaligned_access variable.
29920 * config/arc/arc.c (arc_override_options): Set unaligned access
29921 default on for HS CPUs.
29922 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
29923
29924 2019-03-06 Martin Liska <mliska@suse.cz>
29925
29926 PR gcov-profile/89577
29927 * doc/gcov.texi: Prefer to use --coverage.
29928 * doc/sourcebuild.texi: Likewise.
29929
29930 2019-03-02 Jason Merrill <jason@redhat.com>
29931
29932 PR c++/86485 - -Wmaybe-unused with empty class ?:
29933 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
29934
29935 2019-03-05 Jakub Jelinek <jakub@redhat.com>
29936
29937 PR target/89587
29938 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
29939 if_multiarch.
29940
29941 PR middle-end/89590
29942 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
29943 exactly one argument.
29944
29945 2019-03-05 Jakub Jelinek <jakub@redhat.com>
29946 Richard Sandiford <richard.sandiford@arm.com>
29947
29948 PR tree-optimization/89570
29949 * match.pd (vec_cond into cond_op simplification): Don't use
29950 get_conditional_internal_fn, use as_internal_fn (cond_op).
29951
29952 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
29953
29954 PR target/89222
29955 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
29956 to decide when to split off a non-zero offset from a symbol.
29957 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
29958 in function symbols.
29959
29960 2019-03-05 Richard Biener <rguenther@suse.de>
29961
29962 PR tree-optimization/89594
29963 * tree-if-conv.c (pass_if_conversion::execute): Handle
29964 case where .LOOP_VECTORIZED_FUNCTION was removed.
29965
29966 2019-03-05 Jakub Jelinek <jakub@redhat.com>
29967
29968 PR bootstrap/89560
29969 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
29970 instead alloca it only when needed with the needed size.
29971
29972 PR tree-optimization/89570
29973 * match.pd (vec_cond into cond_op simplification): Guard with
29974 vectorized_internal_fn_supported_p test and #if GIMPLE.
29975
29976 PR tree-optimization/89566
29977 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
29978 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
29979 Punt if get_user_idx_format succeeds, but idx_format argument is
29980 not provided or doesn't have pointer type, or if idx_args is above
29981 number of provided arguments.
29982
29983 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
29984
29985 PR tree-optimization/89437
29986 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
29987
29988 2019-03-04 Richard Biener <rguenther@suse.de>
29989
29990 PR middle-end/89572
29991 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
29992 safe_dyn_cast.
29993
29994 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
29995
29996 PR tree-optimization/89487
29997 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
29998 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
29999 (distribute_loop): Don't do runtime alias check if there is non-
30000 addressable data reference.
30001 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
30002 is a register variable.
30003
30004 2019-03-02 Jakub Jelinek <jakub@redhat.com>
30005
30006 PR target/89506
30007 * config/arm/arm.md (cmpsi2_addneg): Use
30008 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
30009 If operands[2] is 0 or INT_MIN, force use of subs.
30010 (*compare_scc splitter): Use gen_int_mode.
30011 (*negscc): Likewise.
30012 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
30013
30014 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
30015 Monk Chiang <sh.chiang04@gmail.com>
30016
30017 * common/config/riscv/riscv-common.c: Include sstream.
30018 (riscv_subset_list::to_string): New.
30019 (riscv_arch_str): Likewise.
30020 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
30021 * config.in: Regen.
30022 * config/riscv/riscv-protos.h (riscv_arch_str): New.
30023 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
30024 (riscv_emit_attribute): New.
30025 (riscv_file_start): Emit attribute if needed.
30026 (riscv_option_override): Init riscv_emit_attribute_p.
30027 * config/riscv/riscv.opt (mriscv-attribute): New option.
30028 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
30029 * configure: Regen.
30030 * doc/install.texi: Document --with-riscv-attribute.
30031 * doc/invoke.texi: Document -mriscv-attribute.
30032
30033 * common/config/riscv/riscv-common.c:
30034 Include config/riscv/riscv-protos.h.
30035 (INCLUDE_STRING): Defined.
30036 (RISCV_DONT_CARE_VERSION): Defined.
30037 (riscv_subset_t): Declare.
30038 (riscv_subset_t::riscv_subset_t): New.
30039 (riscv_subset_list): Declare.
30040 (riscv_subset_list::riscv_subset_list): New.
30041 (riscv_subset_list::~riscv_subset_list): Likewise.
30042 (riscv_subset_list::parsing_subset_version): Likewise.
30043 (riscv_subset_list::parse_std_ext): Likewise.
30044 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30045 (riscv_subset_list::add): Likewise.
30046 (riscv_subset_list::lookup): Likewise.
30047 (riscv_subset_list::xlen): Likewise.
30048 (riscv_subset_list::parse): Likewise.
30049 (riscv_supported_std_ext): Likewise.
30050 (current_subset_list): Likewise.
30051 (riscv_parse_arch_string): Using riscv_subset_list::parse to
30052 parse.
30053
30054 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
30055
30056 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30057 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
30058 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
30059
30060 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
30061
30062 PR rtl-optimization/85899
30063 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
30064 fallthru edges leading to the exit block.
30065
30066 2019-03-01 Tamar Christina <tamar.christina@arm.com>
30067
30068 PR target/89517
30069 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
30070 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
30071
30072 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
30073
30074 PR tree-optimization/89535
30075 * tree-vect-stmts.c (vectorizable_call): Record the vector types
30076 for each operand. Calculate the fallback choice for mask operands
30077 and pass it to vect_get_vec_def_for_operand.
30078
30079 2019-03-01 Richard Biener <rguenther@suse.de>
30080
30081 PR middle-end/89541
30082 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
30083 get virtual operands.
30084 (get_expr_operands): Handle CONST_DECL like other decls.
30085
30086 2019-03-01 Jakub Jelinek <jakub@redhat.com>
30087
30088 PR middle-end/89503
30089 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
30090 on DECL_P and EXPR_P.
30091
30092 2019-03-01 Richard Biener <rguenther@suse.de>
30093
30094 PR middle-end/89497
30095 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
30096 argument, defaulted to zero.
30097 * passes.c (execute_function_todo): Pass down SSA update flags
30098 to cleanup_tree_cfg.
30099 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
30100 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
30101 form if requested.
30102 (cleanup_tree_cfg): Get and pass down SSA update flags.
30103
30104 2019-03-01 Jakub Jelinek <jakub@redhat.com>
30105
30106 PR bootstrap/89539
30107 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
30108 early_lto_debug argument.
30109
30110 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
30111
30112 PR tree-optimization/89536
30113 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
30114 only whether bit #0 of the value is 0 instead of the entire value.
30115
30116 2019-02-28 Marek Polacek <polacek@redhat.com>
30117
30118 PR c++/87068 - missing diagnostic with fallthrough statement.
30119 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
30120 at the end of a seq, save its location to walk_stmt_info.
30121 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
30122 a switch.
30123
30124 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
30125
30126 PR lto/88585
30127 * tree.c (find_atomic_core_type): Move ahead in file.
30128 (check_base_type): Correctly compare alignments of atomic types.
30129
30130 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
30131
30132 PR target/89455
30133 * config/i386/i386.c (get_builtin_code_for_version): Identify
30134 Westmere from PCLMUL, instead of AES.
30135
30136 2019-02-28 Jakub Jelinek <jakub@redhat.com>
30137
30138 PR target/89434
30139 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
30140 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
30141 -UINTVAL (...).
30142
30143 2019-02-28 Tamar Christina <tamar.christina@arm.com>
30144
30145 PR target/88530
30146 * config/aarch64/aarch64-option-extensions.def: Document it.
30147 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
30148 if empty hwcaps.
30149
30150 2019-02-28 Jakub Jelinek <jakub@redhat.com>
30151
30152 PR c/89520
30153 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
30154 builtins if they don't have a single scalar floating point argument.
30155 Formatting fixes.
30156
30157 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
30158
30159 PR rtl-optimization/89490
30160 * varasm.c (get_block_for_section): Bail out for mergeable sections.
30161 (default_use_anchors_for_symbol_p, output_object_block): Assert the
30162 block section is not mergeable.
30163
30164 2019-02-27 Jakub Jelinek <jakub@redhat.com>
30165
30166 PR target/70341
30167 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
30168 old define_insn to ...
30169 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
30170 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
30171 Rename old define_insn to ...
30172 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
30173 (thumb2_casesi_internal_pic): New define_expand. Rename old
30174 define_insn to ...
30175 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
30176 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
30177 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
30178
30179 2019-02-27 Richard Biener <rguenther@suse.de>
30180
30181 PR debug/88878
30182 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
30183
30184 2019-02-27 Richard Biener <rguenther@suse.de>
30185
30186 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
30187 building.
30188
30189 2019-02-27 Richard Biener <rguenther@suse.de>
30190
30191 PR debug/88878
30192 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
30193 parameter, prefix section name with .gnu.debuglto_ if true.
30194 (dwarf2out_finish): Pass false to output_comdat_type_unit.
30195 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
30196
30197 2019-02-27 Richard Biener <rguenther@suse.de>
30198
30199 PR debug/89514
30200 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
30201 rather than on use_debug_types, doing what output_die does.
30202 (value_format): Likewise.
30203
30204 2019-02-27 Martin Jambor <mjambor@suse.cz>
30205 Martin Sebor <msebor@redhat.com>
30206
30207 * doc/invoke.texi (Warning Options): Reword description of
30208 -Wno-absolute-value.
30209
30210 2019-02-27 Jakub Jelinek <jakub@redhat.com>
30211
30212 PR tree-optimization/89280
30213 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
30214 builtin_setjmp_setup_bb): New functions.
30215 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
30216 When visiting __builtin_setjmp_setup block, queue in special
30217 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
30218 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
30219 from visited after the loop if they don't have any visited successor
30220 blocks.
30221
30222 2018-02-26 Steve Ellcey <sellcey@marvell.com>
30223
30224 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
30225 New function.
30226 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
30227
30228 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30229
30230 PR c++/89507
30231 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
30232 with types other than sizetype/ssizetype.
30233
30234 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
30235
30236 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
30237 (enum sparc_processor_type): ...this.
30238 (enum sparc_code_model_type): New enumeration type.
30239 (enum sparc_memory_model_type): Tweak comments.
30240 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
30241 (mtune): Likewise.
30242 (mcmodel): Use sparc_code_model enumeration and variable.
30243 (sparc_code_model): New enumeration.
30244 (mdebug): Add Undocumented marker.
30245 * config/sparc/sparc.h (enum cmodel): Delete.
30246 (sparc_cmodel): Likewise.
30247 (TARGET_CM_MEDLOW): Adjust to above renaming.
30248 (TARGET_CM_MEDMID): Likewise.
30249 (TARGET_CM_MEDANY): Likewise.
30250 (TARGET_CM_EMBMEDANY): Likewise.
30251 * config/sparc/sparc.c (sparc_cmodel): Delete.
30252 (sparc_option_override): Remove string/value mapping support for the
30253 code model. Move code and memory model support to after the handling
30254 of target flags. Do private machine setup last.
30255 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
30256 (sparc_legitimize_reload_address): Likewise.
30257 (sparc_output_mi_thunk): Likewise.
30258 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
30259
30260 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30261
30262 PR tree-optimization/89500
30263 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
30264 (handle_builtin_strlen): Remove noncst_bound variable. Always
30265 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
30266 cst if the first cst bytes starting at x are known to be non-zero,
30267 even if the string is not zero terminated. Don't try to modify
30268 *si for strnlen. Update strlen_to_stridx only for strlen or if
30269 we can prove strnlen returns the same value as strlen would.
30270
30271 2019-02-26 Martin Liska <mliska@suse.cz>
30272
30273 * alloc-pool.h (struct pool_usage): Remove extra
30274 print_dash_line.
30275 * bitmap.h (struct bitmap_usage): Likewise.
30276 * ggc-common.c (struct ggc_usage): Likewise.
30277 * mem-stats.h (struct mem_usage): Likewise.
30278 (mem_alloc_description::dump): Print dash lines
30279 here and repeat header at the end of a table report.
30280 It's then more readable.
30281 * tree-phinodes.c (phinodes_print_statistics): Make
30282 horizontal alignment.
30283 * tree-ssanames.c (ssanames_print_statistics): Likewise.
30284 * vec.c (struct vec_usage): Remove extra print_dash_line.
30285 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
30286
30287 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
30288
30289 * doc/extend.texi (__builtin_object_size):
30290 Use @pxref instead of @xref inside parenthesis.
30291 (__builtin_has_attribute): Add missing comma after @xref.
30292 (__builtin_object_size): Ditto.
30293 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
30294
30295 2019-02-26 Jeff Law <law@redhat.com>
30296
30297 PR rtl-optimization/87761
30298 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
30299 detect obviously dead insns and delete them.
30300
30301 2019-02-26 Richard Biener <rguenther@suse.de>
30302
30303 PR tree-optimization/89505
30304 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
30305 to handle restrict pointed-to vars with multiple subvars
30306 correctly.
30307
30308 2019-02-26 Richard Biener <rguenther@suse.de>
30309
30310 PR tree-optimization/89489
30311 * tree-parloops.c (create_loop_fn): Copy over last_clique.
30312
30313 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
30314
30315 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
30316 and move around comment.
30317 <BIT_AND_EXPR>: Likewise.
30318 <BIT_NOT_EXPR>: Add specific handling for boolean types.
30319
30320 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30321
30322 PR target/89474
30323 * config/i386/i386.c (remove_partial_avx_dependency): Call
30324 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
30325 after changing possibly many instructions to use that pseudo. Fix up
30326 insertion of v4sf_const0 setter at the start of bb.
30327
30328 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
30329
30330 PR c/80409
30331 * doc/extend.texi (Variadic Pointer Args): New section.
30332
30333 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
30334 Martin Sebor <msebor@gmail.com>
30335
30336 * common.opt (Wattribute-alias): Likewise.
30337 * doc/invoke.texi (Option Summary): List general form of
30338 -Wattribute-alias=. List positive form of -Wmissing-attributes.
30339 (-Wmissing-attributes): Invert entry, rewrite and correct default.
30340 Add cross-references.
30341 (-Wattribute-alias): Rewrite and correct default. Mention
30342 considered attributes (same as for -Wmissing-attributes).
30343
30344 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
30345
30346 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
30347 (_mm_cvtpd_ps): Likewise.
30348 (_mm_cvttpd_epi32): Likewise.
30349
30350 PR target/89338
30351 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
30352 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
30353
30354 PR target/89339
30355 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
30356
30357 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30358
30359 PR target/88530
30360 * common/config/aarch64/aarch64-common.c
30361 (struct aarch64_option_extension): Add is_synthetic.
30362 (all_extensions): Use it.
30363 (TARGET_OPTION_INIT_STRUCT): Define hook.
30364 (struct gcc_targetm_common): Moved to end.
30365 (all_extensions_by_on): New.
30366 (opt_ext_cmp, typedef opt_ext): New.
30367 (aarch64_option_init_struct): New.
30368 (aarch64_contains_opt): New.
30369 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
30370 * config/aarch64/aarch64-option-extensions.def
30371 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
30372 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
30373 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
30374 Set is_synthetic to false.
30375 (crypto): Set is_synthetic to true.
30376 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
30377 SYNTHETIC.
30378
30379 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30380
30381 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
30382 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
30383 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
30384 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
30385 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
30386 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
30387 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
30388 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
30389 Rename ...
30390 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
30391 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
30392 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
30393 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
30394 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
30395 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
30396 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
30397 vfmlsl_laneq_high_f16): ... To this.
30398 * config/arm/neon.md: Update comments.
30399
30400 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30401
30402 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
30403 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
30404 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
30405 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
30406 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
30407 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
30408 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
30409 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
30410 Rename ...
30411 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
30412 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
30413 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
30414 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
30415 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
30416 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
30417 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
30418 vfmlslq_laneq_high_f16): ... To this.
30419
30420 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
30421
30422 PR rtl-optimization/86096
30423 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
30424 comparing mw_order values.
30425
30426 2019-02-25 Jakub Jelinek <jakub@redhat.com>
30427
30428 PR target/89434
30429 * config/arm/arm.md (*subsi3_carryin_const): Use
30430 arm_neg_immediate_operand predicate instead of
30431 arm_not_immediate_operand, "L" constraint instead of "K" and
30432 print it using %n2 instead of %B2.
30433 (*subsi3_carryin_const0): New define_insn.
30434 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
30435 instead of arm_not_operand and "I" constraint instead of "K" and
30436 print it using %n3 instead of %B2. Instead of using match_dup 2 add
30437 another match_operand and in the condition check that it is negation
30438 of operands[2].
30439 (*subsi3_carryin_compare_const0): New define_ins.
30440 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
30441 *subsi3_carryin_const.
30442 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
30443 split into *subsi3_carryin_compare_const0 if the highpart is zero.
30444
30445 PR target/89438
30446 * config/arm.vfp.md (*negdf2_vfp): Use
30447 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
30448 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
30449
30450 2019-02-24 Jakub Jelinek <jakub@redhat.com>
30451
30452 PR rtl-optimization/89445
30453 * simplify-rtx.c (simplify_ternary_operation): Don't use
30454 simplify_merge_mask on operands that may trap.
30455 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
30456 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
30457 second operand is CONST_VECTOR, check if any element could be zero.
30458 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
30459 their operands can trap.
30460
30461 2019-02-23 Martin Sebor <msebor@redhat.com>
30462
30463 * gimple-ssa-sprintf.c (target_strtol): Rename...
30464 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
30465 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
30466 check for range error.
30467
30468 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
30469
30470 PR driver/69471
30471 * opts-common.c (prune_options): Also prune joined switches
30472 with Negative and RejectNegative.
30473 * config/i386/i386.opt (march=): Add Negative(march=).
30474 (mtune=): Add Negative(mtune=).
30475 * doc/options.texi: Document Negative used together with Joined
30476 and RejectNegative.
30477
30478 2019-02-22 Martin Sebor <msebor@redhat.com>
30479
30480 * doc/extend.texi (Other Builtins): Add
30481 __builtin_is_constant_evaluated.
30482
30483 2019-02-22 Richard Biener <rguenther@suse.de>
30484
30485 PR tree-optimization/87609
30486 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
30487
30488 2019-02-22 Jeff Law <law@redhat.com>
30489
30490 PR rtl-optimization/87761
30491 * config/mips/mips.md: Add new combiner pattern to recognize
30492 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
30493
30494 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
30495
30496 PR target/89324
30497 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
30498 destination register in peepholes generating patterns for ADDS/SUBS.
30499 (add<mode>3_compare0,
30500 *addsi3_compare0_uxtw, add<mode>3_compareC,
30501 add<mode>3_compareV_imm, add<mode>3_compareV,
30502 *adds_<optab><ALLX:mode>_<GPI:mode>,
30503 *subs_<optab><ALLX:mode>_<GPI:mode>,
30504 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
30505 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
30506 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
30507 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
30508 sub<mode>3_compare1): Allow stack pointer for source register.
30509 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
30510
30511 2019-02-22 Martin Sebor <msebor@redhat.com>
30512
30513 PR tree-optimization/88993
30514 PR tree-optimization/88853
30515 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
30516 New helper.
30517 (sprintf_dom_walker::call_info::is_string_func): New helper.
30518 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
30519 for formatted string functions.
30520 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
30521
30522 2019-02-22 Martin Sebor <msebor@redhat.com>
30523
30524 PR c/89425
30525 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
30526 unreachable subexpressions.
30527
30528 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
30529 Hongtao Liu <hongtao.liu@intel.com>
30530 Sunil K Pandey <sunil.k.pandey@intel.com>
30531
30532 PR target/87007
30533 * config/i386/i386-passes.def: Add
30534 pass_remove_partial_avx_dependency.
30535 * config/i386/i386-protos.h
30536 (make_pass_remove_partial_avx_dependency): New.
30537 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
30538 New function.
30539 (pass_data_remove_partial_avx_dependency): New.
30540 (pass_remove_partial_avx_dependency): Likewise.
30541 (make_pass_remove_partial_avx_dependency): Likewise.
30542 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
30543 (*extendsfdf2): Add avx_partial_xmm_update.
30544 (truncdfsf2): Likewise.
30545 (*float<SWI48:mode><MODEF:mode>2): Likewise.
30546 (SF/DF conversion splitters): Disabled for TARGET_AVX.
30547
30548 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
30549
30550 PR middle-end/85598
30551 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
30552 analysis for pass.
30553
30554 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
30555
30556 PR target/89444
30557 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
30558 (PTA_SKYLAKE): Add PTA_AES.
30559 (PTA_GOLDMONT): Likewise.
30560
30561 2019-02-22 Sudakshina Das <sudi.das@arm.com>
30562
30563 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
30564 instruction if enabled.
30565 (aarch64_override_options): Remove reference to return address key.
30566
30567 2019-02-22 Richard Biener <rguenther@suse.de>
30568
30569 PR tree-optimization/89440
30570 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
30571 not necessary assert.
30572
30573 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
30574
30575 PR fortran/72741
30576 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
30577 (oacc_replace_fn_attrib_attr): ... this new function.
30578 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
30579 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
30580
30581 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30582
30583 * config/arm/arm-cpus.in (ares): Rename to...
30584 (neoverse-n1): ... This. Add ares as alias.
30585 * config/arm/arm-tables.opt: Regenerate.
30586 * config/arm/arm-tune.md: Likewise.
30587 * doc/invoke.txt (ARM Options): Document neoverse-n1.
30588
30589 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30590
30591 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
30592 * config/aarch64/aarch64-tune.md: Regenerate.
30593 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
30594
30595 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30596
30597 * config/aarch64/aarch64.c (ares_tunings): Rename to...
30598 (neoversen1_tunings): ... This.
30599 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
30600 (neoverse-n1): New CPU.
30601 * config/aarch64/aarch64-tune.md: Regenerate.
30602 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
30603
30604 2019-02-22 Richard Biener <rguenther@suse.de>
30605
30606 PR middle-end/87609
30607 * cfghooks.h (dependence_hash): New typedef.
30608 (struct copy_bb_data): New type.
30609 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
30610 (duplicate_block): Likewise.
30611 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
30612 (copy_bbs): Create and pass down copy_bb_data.
30613 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
30614 (rtl_duplicate_bb): Likewise.
30615 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
30616 remap dependence info.
30617
30618 2019-02-22 Richard Biener <rguenther@suse.de>
30619
30620 PR tree-optimization/87609
30621 * tree-core.h (tree_base): Document special clique values.
30622 * tree-inline.c (remap_dependence_clique): Do not use the
30623 special clique value of one.
30624 (maybe_set_dependence_info): Use clique one.
30625 (clear_dependence_clique): New callback.
30626 (compute_dependence_clique): Clear clique one from all refs
30627 before assigning it (again).
30628
30629 2019-02-21 Martin Sebor <msebor@redhat.com>
30630
30631 * doc/extend.texi (__clear_cache): Correct signature.
30632
30633 2019-02-21 Ian Lance Taylor <iant@golang.org>
30634
30635 PR go/89170
30636 * varasm.c (decode_addr_const): Call lookup_constant_def rather
30637 than output_constant_def.
30638 (add_constant_to_table): New static function.
30639 (output_constant_def): Call add_constant_to_table.
30640 (tree_output_constant_def): Likewise.
30641
30642 2019-02-21 Jakub Jelinek <jakub@redhat.com>
30643
30644 PR c++/89285
30645 * builtins.c (fold_builtin_arith_overflow): If first two args are
30646 INTEGER_CSTs, set intres and ovfres to constants rather than calls
30647 to ifn.
30648
30649 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
30650
30651 PR target/87412
30652 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
30653 error for -mindirect-branch/-mfunction-return with incompatible
30654 -fcf-protection.
30655
30656 2019-02-21 Jakub Jelinek <jakub@redhat.com>
30657
30658 PR bootstrap/88714
30659 * constraints.md (q): Remove.
30660 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
30661 instead of q.
30662
30663 2019-02-21 Martin Jambor <mjambor@suse.cz>
30664
30665 PR hsa/89302
30666 * omp-general.c (omp_extract_for_data): Removed a duplicate call
30667 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
30668 (omp_adjust_for_condition): ...here. Added necessary parameters.
30669 * omp-general.h (omp_adjust_for_condition): Updated declaration.
30670 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
30671 proper values to new parameters of omp_adjust_for_condition.
30672
30673 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30674
30675 PR middle-end/89412
30676 * expr.c (expand_assignment): If result is a MEM, use change_address
30677 instead of simplify_gen_subreg.
30678
30679 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30680 David Malcolm <dmalcolm@redhat.com>
30681
30682 PR middle-end/89091
30683 * fold-const.c (decode_field_reference): Return NULL_TREE if
30684 lang_hooks.types.type_for_size returns NULL. Check it before
30685 overwriting *exp_. Use return NULL_TREE instead of return 0.
30686
30687 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30688
30689 PR middle-end/88074
30690 PR middle-end/89415
30691 * toplev.c (do_compile): Double the emin/emax exponents to workaround
30692 buggy mpc_norm.
30693
30694 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
30695
30696 PR target/89397
30697 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
30698 TARGET_SSE in addition to TARGET_SSE_MATH.
30699
30700 (ix86_excess_precision): Ditto.
30701 (ix86_float_exceptions_rounding_supported_p): Ditto.
30702 (use_rsqrt_p): Ditto.
30703 * config/i386/sse.md (rsqrt<mode>2): Ditto.
30704
30705 2019-02-20 David Malcolm <dmalcolm@redhat.com>
30706
30707 PR c/89410
30708 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
30709 linenum_arith_t when determining if two adjacent line spans are
30710 close enough to merge.
30711 (diagnostic_show_locus): Use linenum_arith_t when iterating over
30712 lines within each line_span.
30713
30714 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
30715
30716 PR target/86487
30717 * lra-constraints.c(uses_hard_regs_p): Fix handling of
30718 paradoxical SUBREGS.
30719
30720 2019-02-20 Li Jia He <helijia@linux.ibm.com>
30721
30722 PR target/88100
30723 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
30724 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
30725 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
30726 range checking it.
30727
30728 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
30729
30730 * config/gcn/gcn.c (print_operand): Fix typo.
30731
30732 2019-02-19 Richard Biener <rguenther@suse.de>
30733
30734 PR middle-end/88074
30735 * toplev.c (do_compile): Initialize mpfr's exponent range
30736 based on available float modes.
30737
30738 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
30739
30740 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
30741 as long as the epilogue isn't completed.
30742
30743 2019-02-18 Martin Sebor <msebor@redhat.com>
30744
30745 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
30746 __has_cpp_attribute, and __has_include.
30747
30748 2019-02-18 Martin Sebor <msebor@redhat.com>
30749
30750 * doc/invoke.texi (-Wreturn-type): Correct and expand.
30751
30752 2019-02-18 Martin Sebor <msebor@redhat.com>
30753
30754 PR middle-end/89294
30755 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
30756 expression.
30757 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
30758
30759 2019-02-18 Richard Biener <rguenther@suse.de>
30760
30761 PR tree-optimization/89296
30762 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
30763 of no-warning flag to cases that might emit the bogus warning.
30764
30765 2019-02-18 Jakub Jelinek <jakub@redhat.com>
30766
30767 PR bootstrap/88714
30768 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
30769 "q" constraint.
30770 * config/arm/vfp.md (*movdi_vfp): Likewise.
30771 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
30772 "q" constraint for operands[0].
30773
30774 PR target/89369
30775 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
30776 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
30777 pattern in a temporary buffer.
30778 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
30779 than 64-operands[2].
30780
30781 PR target/89361
30782 * config/s390/s390.c (s390_indirect_branch_attrvalue,
30783 s390_indirect_branch_settings): Define unconditionally.
30784 (s390_set_current_function): Likewise, but guard the whole body except
30785 the s390_indirect_branch_settings call with
30786 #if S390_USE_TARGET_ATTRIBUTE.
30787 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
30788
30789 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
30790 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
30791 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
30792 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
30793 HOST_WIDE_INT_1U instead of 1ULL.
30794 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
30795 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
30796 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
30797 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
30798 instead of 1UL.
30799 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
30800 instead of 1ul.
30801
30802 2019-02-18 Martin Jambor <mjambor@suse.cz>
30803
30804 PR tree-optimization/89209
30805 * tree-sra.c (create_access_replacement): New optional parameter
30806 reg_tree. Use it as a type if non-NULL and access type is not of
30807 a register type.
30808 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
30809 to create_access_replacement.
30810 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
30811 Check lacc is non-NULL before attempting to re-create it on the RHS.
30812
30813 2019-02-18 Martin Liska <mliska@suse.cz>
30814
30815 PR ipa/89306
30816 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
30817 by default.
30818 (symbol_table::free_edge): Recycle m_summary_id.
30819 * cgraph.h (get_summary_id): New.
30820 (symbol_table::release_symbol): Set m_summary_id to -1
30821 by default.
30822 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
30823 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
30824 function_summary to fast_function_summary.
30825 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
30826 * ipa-pure-const.c (class funct_state_summary_t):
30827 Switch from function_summary to fast_function_summary.
30828 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
30829 (class ipa_ref_opt_summary_t): Switch from function_summary
30830 to fast_function_summary.
30831 * symbol-summary.h (class function_summary_base): New class
30832 that is created from base of former function_summary.
30833 (function_summary_base::unregister_hooks): New.
30834 (class function_summary): Inherit from function_summary_base.
30835 (class call_summary_base): New class
30836 that is created from base of former call_summary.
30837 (class call_summary): Inherit from call_summary_base.
30838 (struct is_same): New.
30839 (class fast_function_summary): New summary class.
30840 (class fast_call_summary): New summary class.
30841 * vec.h (vec_safe_grow_cleared): New function.
30842
30843 2019-02-18 Martin Liska <mliska@suse.cz>
30844
30845 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
30846 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
30847 * doc/tm.texi: Document new target hook.
30848 * doc/tm.texi.in: Likewise.
30849 * target.def: Add new target macro.
30850 * gcc.c (find_fortran_preinclude_file): Do not search multilib
30851 suffixes.
30852
30853 2019-02-17 Alan Modra <amodra@gmail.com>
30854
30855 PR target/89271
30856 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
30857 output reg on add insn.
30858 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
30859
30860 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
30861
30862 PR target/89372
30863 * config/i386/sse.md (ssedoublemode): Remove V4HI.
30864 (PMULHRSW): Likewise.
30865 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
30866 TARGET_AVX2.
30867 (ssse3_pmulhrswv4hi3): New expander.
30868
30869 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
30870
30871 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
30872 MMX. Add isa attribute.
30873
30874 2019-02-16 Jakub Jelinek <jakub@redhat.com>
30875
30876 PR rtl-optimization/66152
30877 * builtins.h (c_readstr): Declare.
30878 * builtins.c (c_readstr): Remove forward declaration. Add
30879 null_terminated_p argument, if false, read all bytes from the
30880 string instead of stopping after '\0'.
30881 * expr.c (string_cst_read_str): New function.
30882 (store_expr): Use string_cst_read_str instead of
30883 builtin_strncpy_read_str. Try to store by pieces the whole
30884 exp_len first, and only if that fails, split it up into
30885 store by pieces followed by clear_storage. Formatting fix.
30886
30887 * config/i386/i386.md (*movqi_internal): Remove static from
30888 buf variable. Use output_asm_insn (buf, operands); return "";
30889 instead of return buf;.
30890 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
30891 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
30892 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
30893
30894 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
30895
30896 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
30897 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
30898 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
30899 (CC1_SPEC): Likewise.
30900 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
30901
30902 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
30903
30904 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
30905 the base address on 64-bit strict-alignment platforms.
30906
30907 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
30908
30909 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
30910
30911 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
30912
30913 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
30914
30915 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
30916
30917 PR rtl-optimization/88308
30918 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
30919 on copied instruction.
30920
30921 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
30922
30923 * final.c (insn_current_reference_address): Replace test on JUMP_P
30924 with test on jump_to_label_p.
30925 * config/visium/visium-passes.def: New file.
30926 * config/visium/t-visium (PASSES_EXTRA): Define.
30927 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
30928 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
30929 (TRAMPOLINE_ALIGNMENT): Define.
30930 * config/visium/visium.c (visium_option_override): Do not register
30931 the machine-specific reorg pass here.
30932 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
30933 for the GR6.
30934 (output_branch): Adjust threshold for long branch instruction.
30935 * config/visium/visium.md (cpu): Move around.
30936 (length): Adjust for the GR6.
30937
30938 2019-02-15 Richard Biener <rguenther@suse.de>
30939 Jakub Jelinek <jakub@redhat.com>
30940
30941 PR tree-optimization/89278
30942 * tree-loop-distribution.c: Include tree-eh.h.
30943 (generate_memset_builtin, generate_memcpy_builtin): Call
30944 rewrite_to_non_trapping_overflow on builtin->size before passing it
30945 to force_gimple_operand_gsi.
30946
30947 2019-02-15 Jakub Jelinek <jakub@redhat.com>
30948
30949 PR other/89342
30950 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
30951 optimize_debug.
30952 * opth-gen.awk: Likewise.
30953
30954 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
30955
30956 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
30957 Enable MMX, SSE and SSE2 by default.
30958 * config/i386/i386.c (ix86_option_override_internal): Do not
30959 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
30960
30961 2019-02-14 Jakub Jelinek <jakub@redhat.com>
30962
30963 PR rtl-optimization/89354
30964 * combine.c (make_extraction): Punt if extraction_mode is narrower
30965 than len bits.
30966
30967 2019-02-14 Maya Rashish <coypu@sdf.org>
30968
30969 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
30970 * config/netbsd-d.c: New file.
30971 * config/t-netbsd: Add netbsd-d.o
30972
30973 2018-02-14 Steve Ellcey <sellcey@marvell.com>
30974
30975 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
30976 affects_type_identity to true for aarch64_vector_pcs.
30977 (aarch64_comp_type_attributes): New function.
30978 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
30979
30980 2019-02-14 Tamar Christina <tamar.christina@arm.com>
30981
30982 PR target/88850
30983 * config/arm/iterators.md (ANY64): Add V4HF.
30984
30985 2019-02-14 Martin Liska <mliska@suse.cz>
30986
30987 PR rtl-optimization/89242
30988 * dce.c (delete_unmarked_insns): Call free_dominance_info we
30989 process a transformation.
30990
30991 2019-02-14 Jakub Jelinek <jakub@redhat.com>
30992
30993 PR tree-optimization/89314
30994 * fold-const.c (fold_binary_loc): Cast strlen argument to
30995 const char * before dereferencing it. Formatting fixes.
30996
30997 PR middle-end/89284
30998 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
30999
31000 2019-02-13 Ian Lance Taylor <iant@golang.org>
31001
31002 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
31003 and set current index for other optimizations.
31004
31005 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
31006
31007 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
31008 nonimmediate_operand as operand 2 predicate.
31009 (vec_set<VF2_512_256:mode>_0): Ditto.
31010 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
31011 (*vec_concatv2si): Remove alternative 2.
31012 (*vec_concatv4si_0): Use vm constraint for alternative 0.
31013 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
31014 (vec_concatv2di): Split alternatives 4,5,6 to ...
31015 (*vec_concatv2di_0) ... new pattern.
31016
31017 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
31018
31019 PR target/89190
31020 * config/arm/arm.c (ldm_stm_operation_p) Set
31021 addr_reg_in_reglist correctly for first register.
31022 (load_multiple_sequence): Remove dead base check.
31023 (gen_ldm_seq): Correctly set write_back for Thumb-1.
31024
31025 2019-02-13 Tamar Christina <tamar.christina@arm.com>
31026
31027 PR target/88847
31028 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
31029 Expose as @aarch64_pred_mov.
31030 * config/aarch64/aarch64.c (aarch64_classify_address):
31031 Use expand_insn which legitimizes operands.
31032
31033 2019-02-13 Martin Liska <mliska@suse.cz>
31034
31035 * builtins.h (expand_builtin_with_bounds): Remove declaration.
31036 * calls.c (struct arg_data): Remove special_slot, pointer_arg
31037 and pointer_offset fields.
31038 (initialize_argument_information): Remove usage of dead
31039 fields.
31040 * cgraph.h (struct cgraph_thunk_info): Remove
31041 add_pointer_bounds_args.
31042 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
31043 fields.
31044 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
31045 fields.
31046 * config/i386/i386.c (ix86_function_arg_advance): Remove
31047 unrelated comment.
31048 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
31049 (def_builtin): Remove usage of dead fields.
31050 (ix86_add_new_builtins): Likewise.
31051 * ipa-fnsummary.c (compute_fn_summary): Likewise.
31052 * ipa-icf.c (sem_function::equals_wpa): Likewise.
31053 (sem_function::init): Likewise.
31054 (sem_variable::merge): Likewise.
31055 * ipa-visibility.c (function_and_variable_visibility): Likewise.
31056 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
31057 * lto-cgraph.c (lto_output_node): Likewise.
31058 (lto_output_varpool_node): Likewise.
31059 (input_node): Likewise.
31060 (input_varpool_node): Likewise.
31061 * lto-streamer-out.c (lto_output): Likewise.
31062 * tree-inline.c (expand_call_inline): Remove usage of
31063 assign_stmts.
31064 * tree-inline.h (struct copy_body_data): Likewise.
31065 * varpool.c (varpool_node::dump): Likewise.
31066
31067 2019-02-13 Jakub Jelinek <jakub@redhat.com>
31068
31069 PR middle-end/89303
31070 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
31071 into pt->vars_contains_escaped_heap instead of setting
31072 pt->vars_contains_escaped_heap to it.
31073
31074 PR middle-end/89281
31075 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
31076 INTVAL (size), compare it to GET_MODE_MASK instead of
31077 1 << GET_MODE_BITSIZE.
31078
31079 PR target/89290
31080 * config/i386/predicates.md (x86_64_immediate_operand): Allow
31081 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
31082 -mcmodel=large.
31083
31084 2019-02-13 Martin Liska <mliska@suse.cz>
31085
31086 PR lto/88858
31087 * cfgrtl.c (remove_barriers_from_footer): New function.
31088 (try_redirect_by_replacing_jump): Use it.
31089 (cfg_layout_redirect_edge_and_branch): Likewise.
31090
31091 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
31092
31093 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
31094 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
31095 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
31096 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
31097 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
31098 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
31099 New BU_CRYPTO_2.
31100 * config/rs6000/rs6000.c (builtin_function_type)
31101 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
31102 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
31103 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
31104 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
31105 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
31106
31107 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
31108
31109 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
31110 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
31111
31112 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
31113
31114 PR target/89229
31115 * config/i386/i386.md (*movoi_internal_avx): Revert revision
31116 268678 and revision 268657.
31117 (*movti_internal): Likewise.
31118
31119 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
31120
31121 PR target/89233
31122 * config/s390/s390.c (s390_decompose_address): Update comment.
31123 (s390_check_qrst_address): Reject invalid address forms after
31124 LRA.
31125
31126 2019-02-12 Martin Liska <mliska@suse.cz>
31127
31128 PR lto/88876
31129 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
31130 we need default values of funct_state for a function that
31131 is not optimized.
31132
31133 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
31134
31135 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
31136 the object to pick the size of stores on strict-alignment platforms.
31137
31138 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
31139 (*movdi_insn_sp32): Likewise.
31140 (*movdi_insn_sp64): Likewise.
31141
31142 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
31143
31144 PR lto/88677
31145 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
31146 types that needs constructiong.
31147 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
31148
31149 2019-02-12 Richard Biener <rguenther@suse.de>
31150
31151 PR tree-optimization/89253
31152 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
31153 duplicate the loop.
31154
31155 2019-02-11 David Malcolm <dmalcolm@redhat.com>
31156
31157 PR lto/88147
31158 * input.c (selftest::test_line_offset_overflow): New selftest.
31159 (selftest::input_c_tests): Call it.
31160
31161 2019-02-11 Martin Sebor <msebor@redhat.com>
31162
31163 PR tree-optimization/88771
31164 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
31165 when -Wstringop-overflow is set.
31166 (builtin_memref::builtin_memref): Adjust excessive upper bound
31167 only when lower bound is not excessive.
31168 (maybe_diag_overlap): Detect and diagnose excessive bounds via
31169 -Wstringop-ovefflow.
31170 (maybe_diag_offset_bounds): Rename...
31171 (maybe_diag_access_bounds): ...to this.
31172 (check_bounds_or_overlap): Adjust for name change above.
31173
31174 2019-02-11 Martin Sebor <msebor@redhat.com>
31175
31176 PR c++/87996
31177 * builtins.c (max_object_size): Move from here...
31178 * builtins.h (max_object_size): ...and here...
31179 * tree.c (max_object_size): ...to here...
31180 * tree.h (max_object_size): ...and here.
31181
31182 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
31183
31184 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
31185 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
31186 for correct semantics.
31187
31188 2019-02-11 Alan Modra <amodra@gmail.com>
31189
31190 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
31191 -mlongcall and -mpltseq.
31192 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
31193 (RS/6000 and PowerPC Options <-mpltseq>): Document.
31194 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
31195 * config/rs6000/sysv4.opt (mpltseq): New option.
31196 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
31197 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
31198 support is lacking. Don't allow -mpltseq with -mbss-plt.
31199 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
31200 -mpltseq given for ELFv1.
31201 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
31202 Only use UNSPEC_PLTSEQ for inline PLT calls.
31203 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
31204 use UNSPEC_PLTSEQ for inline PLT calls.
31205 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
31206 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
31207 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
31208 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
31209 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
31210 (pltseq_mtctr_<mode>): Likewise.
31211
31212 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31213
31214 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
31215 Solaris ld.
31216 * configure: Regenerate.
31217
31218 2019-02-11 Jakub Jelinek <jakub@redhat.com>
31219
31220 PR bootstrap/88714
31221 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
31222 instead of r.
31223
31224 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
31225
31226 * function.c (assign_parm_setup_block): Use the stored
31227 size, not the passed size, when allocating stack-space,
31228 also for a parameter with alignment larger than
31229 MAX_SUPPORTED_STACK_ALIGNMENT.
31230
31231 2019-02-11 Martin Liska <mliska@suse.cz>
31232
31233 PR ipa/89009
31234 * ipa-cp.c (build_toporder_info): Remove usage of a param.
31235 * ipa-inline.c (inline_small_functions): Likewise.
31236 * ipa-pure-const.c (propagate_pure_const): Likewise.
31237 (propagate_nothrow): Likewise.
31238 * ipa-reference.c (propagate): Likewise.
31239 * ipa-utils.c (struct searchc_env): Remove unused field.
31240 (searchc): Always search across AVAIL_INTERPOSABLE.
31241 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
31242 the only called IPA pure const can properly not propagate
31243 across interposable boundary.
31244 * ipa-utils.h (ipa_reduced_postorder): Remove param.
31245
31246 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
31247
31248 * config/nds32/nds32.md (call_internal, call_value_internal,
31249 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
31250
31251 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
31252
31253 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
31254 typo.
31255
31256 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
31257
31258 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
31259 in comments
31260
31261 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
31262
31263 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
31264
31265 2019-02-10 Jakub Jelinek <jakub@redhat.com>
31266
31267 PR tree-optimization/89268
31268 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
31269 if preds is non-NULL.
31270
31271 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31272
31273 PR lto/89272
31274 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
31275 polymorphic types.
31276
31277 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
31278
31279 * config/nds32/nds32.md (trap): New pattern.
31280
31281 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
31282
31283 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
31284 dwarf span.
31285
31286 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
31287
31288 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
31289 to split POST_INC.
31290
31291 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31292
31293 * ipa-visibility.c (localize_node): Also do not localize
31294 LDPR_PREVAILING_DEF_IRONLY_EXP.
31295
31296 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31297
31298 PR lto/87957
31299 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
31300 instead of type_with_linkage.
31301
31302 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31303
31304 PR ipa/88755
31305 * params.def (uninlined-function-insns, uninlined-function-time,
31306 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
31307 bound so we don't get overflows.
31308
31309 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
31310
31311 * config/rs6000/rs6000-string.c (expand_compare_loop,
31312 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
31313 memcmp/strncmp.
31314
31315 2019-02-09 Jakub Jelinek <jakub@redhat.com>
31316
31317 PR middle-end/89246
31318 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
31319 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
31320 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
31321
31322 2019-02-09 Alan Modra <amodra@gmail.com>
31323
31324 PR target/88343
31325 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
31326 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
31327 setup.
31328
31329 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
31330
31331 PR middle-end/88560
31332 * lra-constraints.c (process_alt_operands): Don't increase reject
31333 for memory when offset memory is required.
31334
31335 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
31336
31337 * config/s390/vector.md: Implement vector copysign.
31338
31339 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
31340
31341 * expr.c (expand_constructor): Correct indentations.
31342
31343 2019-02-08 Richard Biener <rguenther@suse.de>
31344
31345 PR tree-optimization/89247
31346 * tree-if-conv.c: Include tree-cfgcleanup.h.
31347 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
31348 (tree_if_conversion): Pass through predicate vector.
31349 (pass_if_conversion::execute): Do CFG cleanup and SSA update
31350 inline, see if any if-converted loops we refrece in
31351 LOOP_VECTORIZED calls vanished and fixup.
31352 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
31353
31354 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
31355
31356 * config/s390/constraints.md (jdd): New constraint.
31357
31358 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
31359
31360 PR target/89229
31361 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
31362 upper 16 vector registers without TARGET_AVX512VL.
31363 (*movti_internal): Likewise.
31364
31365 2019-02-08 Jakub Jelinek <jakub@redhat.com>
31366
31367 PR rtl-optimization/89234
31368 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
31369 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
31370 (copy_reg_eh_region_note_backward): Likewise.
31371
31372 2019-02-08 Richard Biener <rguenther@suse.de>
31373
31374 PR middle-end/89223
31375 * tree-data-ref.c (initialize_matrix_A): Fail if constant
31376 doesn't fit in HWI.
31377 (analyze_subscript_affine_affine): Handle failure from
31378 initialize_matrix_A.
31379
31380 2019-02-08 Jakub Jelinek <jakub@redhat.com>
31381
31382 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
31383 cfun everywhere.
31384
31385 2019-02-07 David Malcolm <dmalcolm@redhat.com>
31386
31387 PR tree-optimization/86637
31388 PR tree-optimization/89235
31389 * tree-vect-loop.c (optimize_mask_stores): Add an
31390 auto_purge_vect_location sentinel to ensure that vect_location is
31391 purged on exit.
31392 * tree-vectorizer.c
31393 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
31394 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
31395 to ensure that vect_location is purged on exit.
31396 (pass_slp_vectorize::execute): Likewise, replacing the manual
31397 reset.
31398 * tree-vectorizer.h (class auto_purge_vect_location): New class.
31399
31400 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31401
31402 * config/aarch64/iterators.md (max_opp): New code_attr.
31403 (USMAX): New code iterator.
31404 * config/aarch64/predicates.md (aarch64_smin): New predicate.
31405 (aarch64_smax): Likewise.
31406 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
31407 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
31408 MINUS (MAX MIN).
31409
31410 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
31411
31412 PR target/89229
31413 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
31414 for TARGET_AVX512VL.
31415 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
31416
31417 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
31418
31419 * config/s390/s390-builtin-types.def: Add new types.
31420 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
31421 (s390_vec_xlw4): Make the memory operand into a const pointer.
31422 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
31423 float.
31424 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
31425 a new vector type with the alignment of the scalar memory operand.
31426
31427 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
31428 Jakub Jelinek <jakub@redhat.com>
31429
31430 PR bootstrap/88714
31431 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
31432 arm_count_ldrdstrd_insns): New declarations.
31433 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
31434 MINUS.
31435 (valid_operands_ldrd_strd): New function.
31436 (arm_count_ldrdstrd_insns): New function.
31437 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
31438 sets instead of single DImode set and define new insns to match this.
31439
31440 2019-02-07 Tamar Christina <tamar.christina@arm.com>
31441
31442 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
31443 Make it a C initializer.
31444
31445 2019-02-07 Tamar Christina <tamar.christina@arm.com>
31446
31447 PR/target 88850
31448 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
31449
31450 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31451
31452 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
31453 Use neon_dot<q> for type.
31454 (neon_<sup>dot_lane<vsi2qi>): Likewise.
31455
31456 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31457
31458 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
31459 Use neon_dot<q> for type.
31460 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
31461 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
31462
31463 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
31464
31465 PR rtl-optimization/89225
31466 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
31467 sizes check.
31468
31469 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
31470
31471 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
31472 after restoring registers saved to allocate the frame on Windows.
31473
31474 2019-02-06 Richard Biener <rguenther@suse.de>
31475
31476 PR tree-optimization/89182
31477 * graphite.h (cached_scalar_evolution_in_region): Declare.
31478 * graphite.c (struct seir_cache_key): New.
31479 (struct sese_scev_hash): Likewise.
31480 (seir_cache): New global.
31481 (cached_scalar_evolution_in_region): New function.
31482 (graphite_transform_loops): Allocate and release seir_cache.
31483 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
31484 cached_scalar_evolution_in_region.
31485 * graphite-scop-detection.c (scop_detection::can_represent_loop):
31486 Simplify.
31487 (scop_detection::graphite_can_represent_expr: Use
31488 cached_scalar_evolution_in_region.
31489 (scop_detection::stmt_simple_for_scop_p): Likewise.
31490 (find_params_in_bb): Likewise.
31491 (gather_bbs::before_dom_children): Likewise.
31492 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
31493 (add_loop_constraints): Likewise.
31494
31495 2019-02-06 Jakub Jelinek <jakub@redhat.com>
31496
31497 PR middle-end/89210
31498 * fold-const-call.c (fold_const_vec_convert): Pass true as last
31499 operand to new_unary_operation only if both element types are integral
31500 and it isn't a widening conversion. Return NULL_TREE if
31501 new_unary_operation failed.
31502
31503 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
31504
31505 PR target/88856
31506 * config/s390/s390.md: Remove load and test FP splitter.
31507
31508 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
31509
31510 PR target/89112
31511 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
31512 expand_compare_loop, expand_block_compare_gpr,
31513 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
31514 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
31515 #include "profile-count.h" and "predict.h" for types and functions
31516 needed to work with REG_BR_PROB notes.
31517
31518 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
31519
31520 PR target/89112
31521 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
31522 for the long branch case.
31523
31524 2019-02-05 Jakub Jelinek <jakub@redhat.com>
31525
31526 PR target/89188
31527 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
31528 can throw, non-call exceptions are enabled and we can't delete
31529 dead exceptions or alter cfg. Set must_clean if
31530 delete_insn_and_edges returns true, don't set it blindly for calls.
31531 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
31532
31533 PR rtl-optimization/89195
31534 * combine.c (make_extraction): For MEMs, don't extract bytes outside
31535 of the original MEM.
31536
31537 2019-02-05 Martin Liska <mliska@suse.cz>
31538
31539 PR gcov-profile/89000
31540 * gcov.c (function_summary): Remove argument.
31541 (file_summary): New function.
31542 (print_usage): Replace tabs with spaces.
31543 (generate_results): Use new function file_summary.
31544
31545 2019-02-05 Jakub Jelinek <jakub@redhat.com>
31546
31547 PR target/89186
31548 * optabs.c (prepare_cmp_insn): Pass x and y to
31549 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
31550
31551 2019-02-05 Richard Biener <rguenther@suse.de>
31552
31553 PR middle-end/89150
31554 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
31555 (struct bitmap_element): Drop chain_prev so we properly recurse on
31556 the prev member, supporting tree views.
31557 (struct bitmap_head): GTY skip the obstack member.
31558
31559 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
31560
31561 PR c/88698
31562 * doc/extend.texi (Vector Extensions): Add an example of using vector
31563 types together with x86 intrinsics.
31564
31565 2019-02-04 Alan Modra <amodra@gmail.com>
31566
31567 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
31568 str[] size to 160, and comment.
31569
31570 2019-02-04 Alan Modra <amodra@gmail.com>
31571
31572 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
31573 (rs6000_pltseq_template): Guard output of TLS markers with
31574 TARGET_TLS_MARKERS.
31575 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
31576 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
31577 to use inline PLT sequences.
31578 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
31579 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
31580 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
31581
31582 2019-02-04 Martin Liska <mliska@suse.cz>
31583
31584 PR ipa/88985
31585 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
31586 out when ipa_fn_summaries does not contain entry for callee.
31587
31588 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
31589
31590 * config/sparc/sparc.h: Remove superfluous blank lines.
31591 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
31592 (got_register_rtx): ...this.
31593 (sparc_got): Adjust to above renaming.
31594 (sparc_tls_got): Likewise.
31595 (sparc_delegitimize_address): Likewise.
31596 (sparc_output_mi_thunk): Likewise.
31597 (sparc_init_pic_reg): Likewise.
31598 (save_local_or_in_reg_p): Fix test on the GOT register.
31599 (USE_HIDDEN_LINKONCE): Move around.
31600 (get_pc_thunk_name): Likewise.
31601 (gen_load_pcrel_sym): Likewise.
31602 (load_got_register): Likewise.
31603
31604 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
31605
31606 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
31607 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
31608
31609 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
31610
31611 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
31612 into consideration.
31613
31614 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
31615
31616 * config.gcc (with_nds32_lib, glibc):
31617 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
31618 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
31619 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
31620
31621 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
31622
31623 PR target/89071
31624 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
31625 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
31626 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
31627 (*rcpsf2_sse): Ditto.
31628 (*rsqrtsf2_sse): Ditto.
31629 (sse4_1_round<mode<2): Ditto.
31630
31631 2019-02-03 Richard Biener <rguenther@suse.de>
31632
31633 PR debug/87295
31634 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
31635 orig.
31636
31637 2019-02-02 Jakub Jelinek <jakub@redhat.com>
31638
31639 PR middle-end/87887
31640 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
31641 Punt with warning on aggregate return or argument types. Ignore
31642 type/mode checking for uniform arguments.
31643
31644 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
31645
31646 * combine.c (try_combine): Do not print "Can't combine" messages unless
31647 printing failed combination attempts.
31648
31649 2019-02-01 Martin Jambor <mjambor@suse.cz>
31650
31651 PR hsa/87863
31652 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
31653 segment and global segment variables before making them static.
31654
31655 2019-02-01 Martin Jambor <mjambor@suse.cz>
31656
31657 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
31658 missed optimization dump with dump_enabled_p.
31659
31660 2019-02-01 Richard Biener <rguenther@suse.de>
31661
31662 PR middle-end/88597
31663 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
31664 the instantiate cache.
31665 (instantiate_scev_binary): Elide second operand procesing
31666 if equal to the first.
31667 * tree-chrec.c (chrec_contains_symbols): Add visited set.
31668 (chrec_contains_undetermined): Likewise.
31669 (tree_contains_chrecs): Likewise.
31670
31671 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
31672
31673 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
31674
31675 2019-02-01 Jakub Jelinek <jakub@redhat.com>
31676
31677 PR tree-optimization/89143
31678 * wide-int-range.h (wide_int_range_absu): Declare.
31679 * wide-int-range.cc (wide_int_range_absu): New function.
31680 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
31681
31682 PR tree-optimization/88107
31683 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
31684 instead of assertion that eh_region_outermost is non-NULL, if it
31685 is NULL, set *ALL to true and return NULL.
31686 (move_sese_region_to_fn): Adjust caller, if all is set, call
31687 duplicate_eh_regions with NULL region.
31688
31689 2019-02-01 Richard Biener <rguenth@suse.de>
31690
31691 PR rtl-optimization/88593
31692 * mode-switching.c (optimize_mode_switching): Free dominators before
31693 calling cleanup_cfg.
31694
31695 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
31696
31697 PR tree-optimization/88932
31698 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
31699
31700 2019-01-31 Jakub Jelinek <jakub@redhat.com>
31701
31702 PR middle-end/89137
31703 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
31704 bogus clang warning.
31705
31706 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
31707
31708 PR target/89071
31709 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
31710 alternative to avoid partial SSE register stall for TARGET_AVX.
31711 (truncdfsf2): Ditto.
31712 (sse4_1_round<mode>2): Ditto.
31713
31714 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
31715
31716 PR tree-optimization/89008
31717 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
31718 process anything of the form X * 0.
31719
31720 2019-01-31 Richard Biener <rguenther@suse.de>
31721
31722 PR tree-optimization/89135
31723 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
31724 with abnormal preds.
31725
31726 2019-01-31 Jakub Jelinek <jakub@redhat.com>
31727
31728 PR sanitizer/89124
31729 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
31730 always_inline callees into no_sanitize_address callers.
31731
31732 2019-01-31 Richard Biener <rguenther@suse.de>
31733
31734 PR rtl-optimization/89115
31735 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
31736
31737 2019-01-30 Martin Sebor <msebor@redhat.com>
31738
31739 PR other/89106
31740 * doc/extend.texi (cast to a union): Correct and expand.
31741
31742 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
31743
31744 PR rtl-optimization/87246
31745 * lra-constraints.c (simplify_operand_subreg): Reload memory
31746 in subreg if the address became invalid.
31747
31748 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
31749
31750 PR target/87064
31751 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
31752 Disable for little-endian.
31753
31754 2019-01-30 Richard Biener <rguenther@suse.de>
31755
31756 PR rtl-optimization/89115
31757 * opts.c (default_options_optimization): Reduce
31758 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
31759 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
31760 to the default.
31761
31762 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
31763
31764 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
31765 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
31766 type of vector element when vec_extract is implemented by direct
31767 move.
31768
31769 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
31770
31771 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
31772
31773 2019-01-30 Richard Biener <rguenther@suse.de>
31774
31775 PR tree-optimization/89111
31776 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
31777 canonicalization to appropriately sized access types.
31778
31779 2019-01-30 Jakub Jelinek <jakub@redhat.com>
31780
31781 PR c++/89105
31782 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
31783 for arguments to functions that are TU-local and shouldn't be
31784 referenced by assembly.
31785
31786 2019-01-30 Ulrich Drepper <drepper@redhat.com>
31787
31788 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
31789 after '='.
31790
31791 2019-01-29 Martin Sebor <msebor@redhat.com>
31792
31793 PR c/88956
31794 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
31795
31796 2019-01-29 Jakub Jelinek <jakub@redhat.com>
31797
31798 PR c++/66676
31799 PR ipa/89104
31800 * omp-simd-clone.c (simd_clone_clauses_extract)
31801 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
31802 OMP_CLAUSE_ALIGNED_ALIGNMENT.
31803
31804 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
31805
31806 * config.gcc: Force .init_array for ARC.
31807
31808 2019-01-29 Richard Biener <rguenther@suse.de>
31809
31810 PR debug/87295
31811 * dwarf2out.c (collect_skeleton_dies): New helper.
31812 (copy_decls_for_unworthy_types): Call it.
31813 (build_abbrev_table): Assert we do not try to replace
31814 DW_AT_signature refs with local refs.
31815
31816 2019-01-28 Jakub Jelinek <jakub@redhat.com>
31817
31818 PR middle-end/89002
31819 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
31820 for lastprivate/linear IV, push gimplify context around gimplify_assign
31821 and, if it needed any temporaries, pop it into a gimple bind around the
31822 sequence.
31823
31824 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
31825
31826 * common.opt (-Wattribute-alias): Remove "no-" from name.
31827 Make -Wattribute-alias command line option and
31828 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
31829
31830 2019-01-28 Jakub Jelinek <jakub@redhat.com>
31831
31832 PR target/89073
31833 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
31834 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
31835 x86 ISA options.
31836 (bmi2): Add missing @opindex.
31837 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
31838 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
31839 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
31840 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
31841 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
31842 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
31843 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
31844 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
31845 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
31846 xsavec, xsaveopt and xsaves options.
31847
31848 2019-01-28 Richard Biener <rguenther@suse.de>
31849
31850 PR debug/89076
31851 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
31852 support removal.
31853
31854 2019-01-28 Richard Biener <rguenther@suse.de>
31855
31856 PR tree-optimization/88739
31857 * tree-cfg.c (verify_types_in_gimple_reference): Verify
31858 BIT_FIELD_REFs only are applied to mode-precision operands
31859 when they are integral.
31860 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
31861 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
31862 BIT_FIELD_REFs of non-mode-precision integral operands.
31863
31864 2019-01-27 Jakub Jelinek <jakub@redhat.com>
31865
31866 PR target/87214
31867 * config/i386/sse.md
31868 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
31869 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
31870 first constants in pairs are multiples of 2. Formatting fixes.
31871 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
31872 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
31873 first constants in each quadruple are multiples of 4. Formatting fixes.
31874
31875 2019-01-26 Martin Jambor <mjambor@suse.cz>
31876
31877 PR ipa/88933
31878 * tree-inline.c: Include tree-cfgcleanup.h.
31879 (delete_unreachable_blocks_update_callgraph): Move...
31880 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
31881 ...here, make externally visible, make second argument bool, adjust
31882 all callers.
31883 * tree-cfgcleanup.c: Include cgraph.h.
31884 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
31885 Declare.
31886 * ipa-prop.c: Include tree-cfgcleanup.h.
31887 (ipcp_transform_function): Call
31888 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
31889
31890 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
31891
31892 PR rtl-optimization/88846
31893 * ira.c (process_set_for_memref_referenced_p): New.
31894 (memref_referenced_p): Add new param. Use
31895 process_set_for_memref_referenced_p. Add new switch cases.
31896 (memref_used_between_p): Pass new arg to memref_referenced_p.
31897
31898 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
31899
31900 PR target/88469
31901 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
31902 argument ABI_BREAK. Set to true if the calculated alignment has
31903 changed in gcc-9. Check bit-fields for their base type alignment.
31904 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
31905 (aarch64_function_arg_boundary): Likewise.
31906 (aarch64_gimplify_va_arg_expr): Likewise.
31907
31908 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
31909
31910 PR middle-end/89037
31911 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
31912 instead of accessing TREE_INT_CST_ELT directly.
31913
31914 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
31915
31916 * doc/sourcebuild.texi (Environment attributes): Add fenv and
31917 fenv_exceptions description.
31918
31919 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
31920
31921 PR rtl-optimization/87763
31922 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
31923 Allow SUBREG when matching CC_NZmode compare.
31924
31925 2019-01-25 Richard Biener <rguenther@suse.de>
31926
31927 PR tree-optimization/89049
31928 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
31929 Look at the pattern stmt to determine if the stmt is vectorized.
31930
31931 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
31932
31933 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
31934 (pred_mov<mode>): Handle all-register forms using both a new
31935 alternative and a split.
31936
31937 2019-01-25 Richard Biener <rguenther@suse.de>
31938
31939 PR tree-optimization/86865
31940 * graphite-scop-detection.c (scop_detection::can_represent_loop):
31941 Reject non-do-while loops.
31942
31943 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
31944
31945 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
31946 * config/rs6000/constraints.md (Q constraint): Use REG_P.
31947 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
31948 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
31949 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
31950 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
31951 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
31952 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
31953 vlogical_operand, gpc_reg_operand, int_reg_operand,
31954 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
31955 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
31956 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
31957 (save_world_operation, restore_world_operation, lmw_operation,
31958 stmw_operation): Use MEM_P and REG_P.
31959 (tie_operand): Use MEM_P.
31960 (vrsave_operation, crsave_operation): Use REG_P.
31961 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
31962 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
31963 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
31964 (call_operand): Use HARD_REGISTER_P.
31965 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
31966 Use CONST_INT_P.
31967 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
31968 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
31969 quad_aligned_load_p, replace_swapped_aligned_store,
31970 recombine_lvx_pattern, replace_swapped_aligned_load,
31971 recombine_stvx_pattern): Use MEM_P.
31972 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
31973 Use MEM_P and SYMBOL_REF_P.
31974 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
31975 (insn_is_swappable_p): Use REG_P and MEM_P.
31976 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
31977 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
31978 Use CONST_INT_P.
31979 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
31980 Use CONST_DOUBLE_P.
31981 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
31982 CONST_WIDE_INT_P.
31983 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
31984 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
31985 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
31986 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
31987 reg_or_subregno:
31988 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
31989 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
31990 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
31991 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
31992 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
31993 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
31994 rs6000_split_logical_di): Use CONST_INT_P.
31995 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
31996 REG_P and SYMBOL_REF_P.
31997 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
31998 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
31999 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
32000 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
32001 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
32002 (small_data_operand, print_operand_address): Use CONST_INT_P and
32003 SYMBOL_REF_P.
32004 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
32005 (rs6000_init_hard_regno_mode_ok, direct_move_p):
32006 Use HARD_REGISTER_NUM_P.
32007 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
32008 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
32009 SUBREG_P and SYMBOL_REF_P.
32010 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
32011 and HARD_REGISTER_NUM_P.
32012 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
32013 reg_or_subregno.
32014 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
32015 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
32016 MEM_P and REG_P.
32017 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
32018 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
32019 find_addr_reg): Use REG_P.
32020 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
32021 (rs6000_emit_le_vsx_move): Use SUBREG_P.
32022 (offsettable_ok_by_alignment, constant_pool_expr_p,
32023 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
32024 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
32025 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
32026 rs6000_assemble_integer, create_TOC_reference,
32027 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
32028 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
32029 (rs6000_split_vec_extract_var): Use reg_or_subregno.
32030 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32031 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32032 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32033 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32034 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
32035 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
32036 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
32037 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
32038 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
32039 and cbranch<mode>4): Use CONST_INT_P.
32040 (multiple define_splits): Use REG_P and SUBREG_P.
32041 (define_expands call, call_value): Use MEM_P.
32042 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
32043 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
32044 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
32045 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
32046 and HARD_REGISTER_NUM_P.
32047 (multiple define_splits): Use HARD_REGISTER_NUM_P.
32048
32049 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
32050
32051 PR rtl-optimization/88948
32052 * rtl.h (prepare_copy_insn): New prototype.
32053 * gcse.c (prepare_copy_insn): New function, split out from
32054 process_insert_insn.
32055 (process_insert_insn): Use prepare_copy_insn.
32056 * store-motion.c (replace_store_insn): Use prepare_copy_insn
32057 instead of gen_move_insn.
32058
32059 2019-01-24 Jakub Jelinek <jakub@redhat.com>
32060
32061 PR debug/89006
32062 * config/i386/i386.c (ix86_pic_register_p): Return true for
32063 UNSPEC_SET_GOT too.
32064
32065 PR tree-optimization/88964
32066 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
32067 punt if HONOR_SNANS (chrec).
32068
32069 PR middle-end/89015
32070 * tree-nested.c (convert_nonlocal_reference_stmt,
32071 convert_local_reference_stmt, convert_tramp_reference_stmt,
32072 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
32073 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
32074 or GIMPLE_OMP_TASK.
32075
32076 PR tree-optimization/89027
32077 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
32078 for "omp simd array" variables.
32079
32080 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
32081
32082 PR target/88469
32083 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
32084 force the alignment of m_val.
32085
32086 2019-01-24 Richard Biener <rguenther@suse.de>
32087
32088 PR lto/87187
32089 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
32090 When in "legacy" debug mode make sure to reset self-origins.
32091
32092 2019-01-24 Martin Liska <mliska@suse.cz>
32093
32094 PR gcov-profile/88994
32095 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
32096 result will be always smaller or equal to the original.
32097 * gcov.c (mangle_name): Fix else branch where we should
32098 also copy to PTR and shift the pointer.
32099
32100 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32101
32102 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
32103 * vr-values.c (find_case_label_ranges): Fix a comment typo.
32104
32105 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
32106
32107 * common/config/i386/i386-common.c
32108 (OPTION_MASK_ISA_ENQCMD_SET,
32109 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
32110 (ix86_handle_option): Handle -menqcmd.
32111 * config.gcc (enqcmdintrin.h): New header file.
32112 * config/i386/cpuid.h (bit_ENQCMD): New bit.
32113 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
32114 -menqcmd.
32115 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
32116 function type.
32117 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
32118 __builtin_ia32_enqcmds): New builtins.
32119 * config/i386/i386-c.c (__ENQCMD__): New macro.
32120 * config/i386/i386-option.c (ix86_target_string): Add
32121 -menqcmd.
32122 (ix86_valid_target_attribute_inner_p): Likewise.
32123 * config/i386/i386-expand.c
32124 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
32125 IX86_BUILTIN_ENQCMDS.
32126 * config/i386/i386.h (TARGET_ENQCMD): New.
32127 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
32128 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
32129 (movdir64b_<mode>): Parameterize to enable share expansion code
32130 with ENQCMD in function ix86_expand_builtin.
32131 * config/i386/i386.opt: Add -menqcmd.
32132 * config/i386/immintrin.h: Include enqcmdintrin.h.
32133 * config/i386/enqcmdintrin.h: New intrinsic file.
32134 * doc/invoke.texi: Add -menqcmd.
32135
32136 2019-01-23 Bin Cheng <bin.cheng@arm.com>
32137 Steve Ellcey <sellcey@marvell.com>
32138
32139 PR target/85711
32140 * recog.c (address_operand): Return false on wrong mode for address.
32141 (constrain_operands): Check for mode with 'p' constraint.
32142
32143 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
32144
32145 PR target/88998
32146 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
32147 Disparage MMX alternative.
32148 (sse2_cvtpd2pi): Ditto.
32149 (sse2_cvttpd2pi): Ditto.
32150
32151 2019-01-23 David Malcolm <dmalcolm@redhat.com>
32152
32153 PR driver/89014
32154 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
32155 use-after-free of the result of
32156 aarch64_get_extension_string_for_isa_flags.
32157
32158 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32159
32160 PR c/44715
32161 * doc/extend.texi: Document break and continue behavior in
32162 statement expressions.
32163
32164 2019-01-23 Richard Biener <rguenther@suse.de>
32165
32166 PR tree-optimization/89008
32167 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
32168 not leave another stray operand.
32169
32170 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32171
32172 * BASE-VER: Bump to 9.0.1.
32173
32174 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
32175
32176 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
32177 thunk that returns by reference, use the type of the return object
32178 of the thunk instead of that of the alias to build the dereference.
32179
32180 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
32181
32182 * config/arc/atomic.md: Add operand to DMB instruction.
32183
32184 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32185
32186 PR tree-optimization/88964
32187 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
32188 build_zero_cst instead of build_int_cst. Return false for loop
32189 invariants which honor signed zeros.
32190
32191 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
32192
32193 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
32194
32195 2019-01-22 Jakub Jelinek <jakub@redhat.com>
32196
32197 PR target/88965
32198 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
32199 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
32200 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
32201
32202 PR middle-end/88968
32203 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
32204 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
32205
32206 PR target/87064
32207 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
32208 Disable for little endian.
32209
32210 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
32211
32212 PR target/88469
32213 * config/arm/arm.c (arm_needs_double_word_align): Check
32214 DECL_BIT_FIELD_TYPE.
32215
32216 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
32217 H.J. Lu <hongjiu.lu@intel.com>
32218
32219 PR target/88909
32220 * config/i386/i386-builtin.def: Add mask2 to all builtin
32221 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
32222 SPECIAL_ARGS.
32223 * config/i386/i386.c (BDESC): Add mask2 to the definition.
32224 (BDESC_FIRST): Likewise.
32225 (define_builtin): Add an argument for mask2. Updated to handle
32226 both ix86_isa_flags and ix86_isa_flags2.
32227 (define_builtin_const): Likewise.
32228 (define_builtin_pure): Likewise.
32229 (define_builtin2): Deleted.
32230 (define_builtin_const2): Likewise.
32231 (builtin_description): Add a member, mask2.
32232 (bdesc_*): Add mask2 to builtin initializations.
32233 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
32234 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
32235 support.
32236 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
32237
32238 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
32239
32240 PR target/88954
32241 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
32242 noplt attribute.
32243
32244 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
32245
32246 PR target/88469
32247 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
32248 alignment is dominated by a bitfield with 64-bit aligned base type.
32249 (arm_function_arg): Emit a warning if the alignment has changed since
32250 earlier GCC releases.
32251 (arm_function_arg_boundary): Likewise.
32252 (arm_setup_incoming_varargs): Likewise.
32253
32254 2019-01-22 Richard Biener <rguenther@suse.de>
32255
32256 PR tree-optimization/88862
32257 * graphite-scop-detection.c
32258 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
32259
32260 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
32261
32262 * doc/extend.tex (AMD GCN Function Attributes): New section.
32263 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
32264 * doc/invoke.texi (AMD GCN Options): New section.
32265 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
32266
32267 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
32268
32269 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
32270 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
32271
32272 2019-01-22 Jakub Jelinek <jakub@redhat.com>
32273
32274 PR tree-optimization/88044
32275 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
32276 is false in the first iteration, but !every_iteration, return false
32277 instead of true with niter->niter zero.
32278
32279 PR rtl-optimization/88904
32280 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
32281 any nonequal registers before processing BB_END (b).
32282
32283 PR target/88905
32284 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
32285 GET_MODE (op0).
32286 (expand_binop_directly, expand_doubleword_clz,
32287 expand_doubleword_popcount, expand_ctz, expand_ffs,
32288 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
32289
32290 PR rtl-optimization/49429
32291 PR target/49454
32292 PR rtl-optimization/86334
32293 PR target/88906
32294 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
32295 addressable from here...
32296 (emit_block_op_via_libcall): ... to here.
32297
32298 2019-01-22 Richard Biener <rguenther@suse.de>
32299
32300 * tree-vect-loop.c (vect_analyze_loop_operations): Use
32301 auto_vec for cost vector to fix memleak.
32302 (vectorize_fold_left_reduction): Properly gather SLP defs.
32303 (vectorizable_comparison): Do not swap operands to properly
32304 gather SLP defs.
32305
32306 2019-01-22 Alan Modra <amodra@gmail.com>
32307
32308 PR target/88614
32309 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
32310 stays a reg. Allow a const_int.
32311 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
32312 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
32313 (IS_NOMARK_TLSGETADDR): Define.
32314 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
32315 (rs6000_output_tlsargs): New function.
32316 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
32317 __tls_get_addr call takes an arg.
32318 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
32319 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
32320 delete split..
32321 (call_value_nonlocal_sysv): ..or here, delete split.
32322 (tls_gdld_nomark): Delete.
32323 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
32324 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
32325 (call_value_nonlocal_sysv): Likewise.
32326 (call_value_nonlocal_sysv_secure): Likewise.
32327 (call_value_nonlocal_aix): Likewise.
32328 (call_value_indirect_aix): Likewise.
32329 (call_value_indirect_elfv2): Likewise.
32330 (call_value_local32, call_value_local64): Disable for no-mark tls.
32331 (call_value_local_aix): Likewise.
32332
32333 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
32334
32335 PR target/88938
32336 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
32337 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
32338
32339 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
32340
32341 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
32342 string contents as hash_map keys.
32343
32344 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
32345
32346 PR c/88928
32347 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
32348 for rvalue context. Handle rvalues correctly. Use min_align_of_type
32349 instead of TYPE_ALIGN.
32350 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
32351 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
32352 pointer from TYPE_STUB_DECL.
32353
32354 2019-01-21 Richard Biener <rguenther@suse.de>
32355
32356 PR tree-optimization/88934
32357 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
32358 at the possibly non-constant operand.
32359 (vect_get_constant_vectors): Adjust.
32360
32361 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
32362
32363 PR target/71659
32364 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
32365 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
32366 instead of _X86INTRIN_H_INCLUDED.
32367 * onfig/i386/clwbintrin.h: Likewise.
32368 * config/i386/pkuintrin.h: Likewise.
32369 * config/i386/prfchwintrin.h: Likewise.
32370 * config/i386/rdseedintrin.h: Likewise.
32371 * config/i386/wbnoinvdintrin.h: Likewise.
32372 * config/i386/xsavecintrin.h: Likewise.
32373 * config/i386/xsavesintrin.h: Likewise.
32374 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
32375 * config/i386/xsaveintrin.h: Likewise.
32376 * config/i386/xsaveoptintrin.h: Likewise.
32377 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
32378 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
32379 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
32380 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
32381 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
32382 * config/i386/immintrin.h: Here.
32383
32384 2019-01-20 Martin Jambor <mjambor@suse.cz>
32385
32386 PR ipa/87615
32387 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
32388 with aa_walk_budget.
32389 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
32390 aa_walk_budget_p parameter.
32391 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
32392 walk. Updated all callers.
32393 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
32394 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
32395 unmodified_parm.
32396 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
32397 parameter info. Extract info from fbi. Pass fbi to recursive calls
32398 and to unmodified_parm.
32399 (phi_result_unknown_predicate): New parameter fbi, removed parameter
32400 info, updated call to will_be_nonconstant_expr_predicate.
32401 (param_change_prob): New parameter fbi, limit AA walking.
32402 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
32403 calls to various above functions.
32404 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
32405 parameter. Use it to limit AA walking.
32406 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
32407 fbi, limit AA walk.
32408 (detect_type_change): New parameter fbi, pass it on to
32409 detect_type_change_from_memory_writes.
32410 (detect_type_change_ssa): Likewise.
32411 (aa_overwalked): Removed.
32412 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
32413 accordingly, adjust to the neew AA limiting scheme.
32414 (parm_ref_data_preserved_p): Likewise.
32415 (ipa_compute_jump_functions_for_edge): Adjust call to
32416 get_dynamic_type.
32417 (ipa_analyze_call_uses): Likewise.
32418 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
32419 (ipa_analyze_node): Initialize aa_walk_budget.
32420 (ipcp_transform_function): Likewise.
32421 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
32422 to get_dynamic_type.
32423
32424 2019-01-19 Jakub Jelinek <jakub@redhat.com>
32425
32426 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
32427 outside of #if CHECKING_P code.
32428
32429 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
32430
32431 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
32432 New function, split out from...
32433 (loop_versioning::analyze_stride): ...here.
32434 (loop_versioning::find_per_loop_multiplication): Use gassign.
32435 (loop_versioning::analyze_term_using_scevs): Return a success code.
32436 (loop_versioning::analyze_arbitrary_term): New function.
32437 (loop_versioning::analyze_address_fragment): Use
32438 analyze_arbitrary_term if all else fails.
32439
32440 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
32441
32442 PR target/88892
32443 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
32444 operands.
32445
32446 2019-01-18 Richard Biener <rguenther@suse.de>
32447
32448 PR tree-optimization/88903
32449 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
32450 scalar stmts a SLP shift amount is composed of when detecting
32451 shifts by scalars.
32452
32453 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
32454
32455 PR target/88799
32456 * config/arm/arm-cpus.in (mp): New feature.
32457 (sec): New feature.
32458 (fgroup ARMv7ve): Add mp and sec features.
32459 (arch armv7-a): Add options to allow mp and sec extensions.
32460 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
32461 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
32462 extenstions to the base architecture.
32463 (cpu cortex-a8): Add sec extension to the base architecture.
32464 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
32465 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
32466 variants down to the base v7-a varaint.
32467 * config/arm/t-multilib (v7_a_arch_variants): New variable.
32468 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
32469 of permitted extensions for -march=armv7-a and for
32470 -mcpu=generic-armv7-a.
32471
32472 2019-01-18 Martin Liska <mliska@suse.cz>
32473
32474 * params.def: Fix comment.
32475 * tree-profile.c (gimple_init_gcov_profiler): Bump function
32476 name.
32477 (gimple_gen_ic_func_profiler): Likewise.
32478
32479 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32480
32481 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
32482 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
32483 and put in error checks for stack protector guard options.
32484 (aarch64_stack_protect_guard): New.
32485 (TARGET_STACK_PROTECT_GUARD): Define.
32486 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
32487 (reg_stack_protect_address<mode>): New.
32488 (stack_protect_set): Adjust for SSP_GLOBAL.
32489 (stack_protect_test): Likewise.
32490 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
32491 (-mstack-protector-guard): Likewise.
32492 (-mstack-protector-guard-offset): Likewise.
32493
32494 2019-01-18 Jakub Jelinek <jakub@redhat.com>
32495
32496 PR tree-optimization/86214
32497 * tree-inline.h (struct copy_body_data): Add
32498 add_clobbers_to_eh_landing_pads member.
32499 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
32500 (copy_edges_for_bb): Call it if EH edge destination is <
32501 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
32502 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
32503 if flag_stack_reuse != SR_NONE and clear it afterwards.
32504
32505 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
32506
32507 PR target/85596
32508 * doc/install.texi (with-multilib-list): Document for aarch64.
32509
32510 2019-01-18 Jakub Jelinek <jakub@redhat.com>
32511
32512 PR target/88734
32513 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
32514 (("..."))) with ("...").
32515
32516 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
32517
32518 * doc/extend.texi (Built-in Functions for Memory Model Aware
32519 Atomic Operations): Document atomic fetch and nand.
32520
32521 2019-01-18 Martin Liska <mliska@suse.cz>
32522 Richard Biener <rguenther@suse.de>
32523
32524 PR middle-end/88587
32525 * cgraph.h (create_version_clone_with_body): Add new argument
32526 with attributes.
32527 * cgraphclones.c (cgraph_node::create_version_clone): Add
32528 DECL_ATTRIBUTES to a newly created decl. And call
32529 valid_attribute_p so that proper cl_target_optimization_node
32530 is set for the newly created declaration.
32531 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
32532 for declaration.
32533 (expand_target_clones): Do not call valid_attribute_p, it must
32534 be already done.
32535 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
32536 vector types.
32537
32538 2019-01-17 Jakub Jelinek <jakub@redhat.com>
32539
32540 PR target/88734
32541 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
32542 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
32543 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
32544
32545 2019-01-17 Martin Sebor <msebor@redhat.com>
32546
32547 PR middle-end/88273
32548 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
32549 Handle anti-ranges the same as no range at all.
32550
32551 2018-01-17 Steve Ellcey <sellcey@cavium.com>
32552
32553 * config/aarch64/aarch64.c (cgraph.h): New include.
32554 (intl.h): New include.
32555 (supported_simd_type): New function.
32556 (currently_supported_simd_type): Ditto.
32557 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
32558 (aarch64_simd_clone_adjust): Ditto.
32559 (aarch64_simd_clone_usable): Ditto.
32560 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
32561 (TARGET_SIMD_CLONE_ADJUST): Ditto.
32562 (TARGET_SIMD_CLONE_USABLE): Ditto.
32563 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
32564 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
32565 call.
32566
32567 2019-01-17 Martin Sebor <msebor@redhat.com>
32568
32569 PR tree-optimization/88800
32570 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
32571 NO_WARNING bit here. Avoid folding out-of-bounds calls.
32572 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
32573 redundant argument. Add new argument and issue diagnostics under
32574 its control. Detect out-of-bounds access even with warnings
32575 disabled.
32576 (check_bounds_or_overlap): Change return type. Add argument.
32577 (wrestrict_dom_walker::check_call): Adjust.
32578 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
32579 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
32580 check_bounds_or_overlap's return value.
32581 (handle_builtin_stxncpy): Same.
32582 (handle_builtin_strcat): Same.
32583
32584 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32585 Kwok Cheung Yeung <kcy@codesourcery.com>
32586 Julian Brown <julian@codesourcery.com>
32587 Tom de Vries <tom@codesourcery.com>
32588
32589 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
32590
32591 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32592
32593 * doc/sourcebuild.texi: Document dg-require-effective-target
32594 llvm_binutils and offload_gcn.
32595
32596 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32597 Kwok Cheung Yeung <kcy@codesourcery.com>
32598 Julian Brown <julian@codesourcery.com>
32599 Tom de Vries <tom@codesourcery.com>
32600
32601 * doc/sourcebuild.texi: Document dg-required-effective-target
32602 exceptions.
32603
32604 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32605 Kwok Cheung Yeung <kcy@codesourcery.com>
32606 Julian Brown <julian@codesourcery.com>
32607 Tom de Vries <tom@codesourcery.com>
32608 Jan Hubicka <hubicka@ucw.cz>
32609 Martin Jambor <mjambor@suse.cz>
32610
32611 * config.gcc: Add amdgcn*-*-amdhsa configuration.
32612 * configure.ac: Check for dlopen.
32613 * configure: Regenerate.
32614
32615 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32616 Kwok Cheung Yeung <kcy@codesourcery.com>
32617 Julian Brown <julian@codesourcery.com>
32618 Tom de Vries <tom@codesourcery.com>
32619 Jan Hubicka <hubicka@ucw.cz>
32620 Martin Jambor <mjambor@suse.cz>
32621
32622 * common/config/gcn/gcn-common.c: New file.
32623 * config/gcn/driver-gcn.c: New file.
32624 * config/gcn/gcn-builtins.def: New file.
32625 * config/gcn/gcn-hsa.h: New file.
32626 * config/gcn/gcn-modes.def: New file.
32627 * config/gcn/gcn-opts.h: New file.
32628 * config/gcn/gcn-passes.def: New file.
32629 * config/gcn/gcn-protos.h: New file.
32630 * config/gcn/gcn-run.c: New file.
32631 * config/gcn/gcn-tree.c: New file.
32632 * config/gcn/gcn.c: New file.
32633 * config/gcn/gcn.h: New file.
32634 * config/gcn/gcn.opt: New file.
32635 * config/gcn/t-gcn-hsa: New file.
32636
32637 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32638 Kwok Cheung Yeung <kcy@codesourcery.com>
32639 Julian Brown <julian@codesourcery.com>
32640 Tom de Vries <tom@codesourcery.com>
32641 Jan Hubicka <hubicka@ucw.cz>
32642 Martin Jambor <mjambor@suse.cz>
32643
32644 * config/gcn/constraints.md: New file.
32645 * config/gcn/gcn-valu.md: New file.
32646 * config/gcn/gcn.md: New file.
32647 * config/gcn/predicates.md: New file.
32648
32649 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
32650
32651 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
32652 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
32653 (stmt_uses_0_or_null_in_undefined_way): Likewise.
32654 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
32655
32656 2019-01-17 Tamar Christina <tamar.christina@arm.com>
32657
32658 PR target/88851
32659 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
32660 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
32661 it and document registers.
32662
32663 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32664
32665 * config/aarch64/aarch64.c (ares_tunings): Define.
32666 * config/aarch64/aarch64-cores.def (ares): Use the above.
32667
32668 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32669
32670 PR target/88794
32671 Revert:
32672 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
32673
32674 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
32675 (_mm512_fixupimm_round_pd): Update parameters and builtin.
32676 (_mm512_maskz_fixupimm_round_pd): Ditto.
32677 (_mm512_fixupimm_round_ps): Ditto.
32678 (_mm512_maskz_fixupimm_round_ps): Ditto.
32679 (_mm_fixupimm_round_sd): Ditto.
32680 (_mm_maskz_fixupimm_round_sd): Ditto.
32681 (_mm_fixupimm_round_ss): Ditto.
32682 (_mm_maskz_fixupimm_round_ss): Ditto.
32683 (_mm512_fixupimm_pd): Ditto.
32684 (_mm512_maskz_fixupimm_pd): Ditto.
32685 (_mm512_fixupimm_ps): Ditto.
32686 (_mm512_maskz_fixupimm_ps): Ditto.
32687 (_mm_fixupimm_sd): Ditto.
32688 (_mm_maskz_fixupimm_sd): Ditto.
32689 (_mm_fixupimm_ss): Ditto.
32690 (_mm_maskz_fixupimm_ss): Ditto.
32691 (_mm512_mask_fixupimm_round_pd): Update builtin.
32692 (_mm512_mask_fixupimm_round_ps): Ditto.
32693 (_mm_mask_fixupimm_round_sd): Ditto.
32694 (_mm_mask_fixupimm_round_ss): Ditto.
32695 (_mm512_mask_fixupimm_pd): Ditto.
32696 (_mm512_mask_fixupimm_ps): Ditto.
32697 (_mm_mask_fixupimm_sd): Ditto.
32698 (_mm_mask_fixupimm_ss): Ditto.
32699 * config/i386/avx512vlintrin.h:
32700 (_mm256_fixupimm_pd): Update parameters and builtin.
32701 (_mm256_maskz_fixupimm_pd): Ditto.
32702 (_mm256_fixupimm_ps): Ditto.
32703 (_mm256_maskz_fixupimm_ps): Ditto.
32704 (_mm_fixupimm_pd): Ditto.
32705 (_mm_maskz_fixupimm_pd): Ditto.
32706 (_mm_fixupimm_ps): Ditto.
32707 (_mm_maskz_fixupimm_ps): Ditto.
32708 (_mm256_mask_fixupimm_pd): Update builtin.
32709 (_mm256_mask_fixupimm_ps): Ditto.
32710 (_mm_mask_fixupimm_pd): Ditto.
32711 (_mm_mask_fixupimm_ps): Ditto.
32712 * config/i386/i386-builtin-types.def: Add new types and remove
32713 useless ones.
32714 * config/i386/i386-builtin.def: Update builtin definitions.
32715 * config/i386/i386.c: Handle new builtin types and remove useless ones.
32716 * config/i386/sse.md: Update VFIXUPIMM* patterns.
32717 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32718 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32719 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
32720 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32721 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32722 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
32723 * config/i386/subst.md:
32724 (round_saeonly_sd_mask_operand4): Add new subst_attr.
32725 (round_saeonly_sd_mask_op4): Ditto.
32726 (round_saeonly_expand_operand5): Ditto.
32727 (round_saeonly_expand): Update.
32728
32729 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32730
32731 PR target/88794
32732 Revert:
32733 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
32734
32735 * config/i386/sse.md: Combine VFIXUPIMM* patterns
32736 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32737 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32738 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
32739 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32740 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32741 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
32742
32743 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32744
32745 PR target/88794
32746 Revert:
32747 2018-12-15 Jakub Jelinek <jakub@redhat.com>
32748
32749 PR target/88489
32750 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
32751 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
32752 instead of UNSPEC_FIXUPIMM.
32753
32754 2019-01-17 Richard Biener <rguenther@suse.de>
32755
32756 PR lto/86736
32757 * dwarf2out.c (want_pubnames): Never generate pubnames sections
32758 and friends for the LTO part of debug info.
32759
32760 2019-01-17 Jakub Jelinek <jakub@redhat.com>
32761
32762 PR tree-optimization/86214
32763 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
32764 if x == y.
32765
32766 PR rtl-optimization/88870
32767 * dce.c (deletable_insn_p): Never delete const/pure calls that can
32768 throw if we can't alter the cfg or delete dead exceptions.
32769 (mark_insn): Don't call find_call_stack_args for such calls.
32770
32771 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
32772
32773 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
32774 prototypes for vec_st.
32775 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
32776 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
32777 mainly on signed/unsigned long long and double.
32778
32779 2019-01-16 David Malcolm <dmalcolm@redhat.com>
32780
32781 PR target/88861
32782 * combine.c (delete_noop_moves): Convert to "bool" return,
32783 returning true if any edges are eliminated.
32784 (combine_instructions): Also return true if delete_noop_moves
32785 returns true.
32786
32787 2019-01-16 Tamar Christina <tamar.christina@arm.com>
32788
32789 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
32790 correct max nunits for endian swap.
32791 (aarch64_expand_fcmla_builtin): Correct subreg code.
32792 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
32793 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
32794 lane endianness.
32795
32796 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
32797
32798 * config/alpha/alpha.c (alpha_gimplify_va_arg):
32799 Handle split indirect COMPLEX_TYPE arguments.
32800
32801 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
32802
32803 PR target/86891
32804 * config/aarch64/aarch64-modes.def: Add comment about how the carry
32805 bit is set by add and compare.
32806 (CC_ADC): New CC_MODE.
32807 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
32808 to cache the code and mode of X. Adjust the shape of a CC_Cmode
32809 comparison. Add detection for CC_ADCmode.
32810 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
32811 CC_ADCmode.
32812 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
32813 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
32814 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
32815 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
32816 to eliminate the need for zero-extending the operands.
32817 (add<mode>3_compareC_imm): Delete. Merge into ...
32818 (add<mode>3_compareC): ... this. Restructure the comparison to
32819 eliminate the need for zero-extending the operands.
32820 (add<mode>3_carryin): Use LTU for the overflow detection.
32821 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
32822 Reexpress comparison for overflow.
32823 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
32824 (add<mode>3_carryinC): Likewise.
32825 (add<mode>3_carryinV): Use LTU for carry between partials.
32826 * config/aarch64/predicates.md (aarch64_carry_operation): Update
32827 handling of CC_Cmode and add CC_ADCmode.
32828 (aarch64_borrow_operation): Likewise.
32829
32830 2019-01-16 Tamar Christina <tamar.christina@arm.com>
32831
32832 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
32833 Remove patternmode.
32834 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
32835 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
32836 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
32837 Remove endianness conversion.
32838
32839 2019-01-16 Martin Liska <mliska@suse.cz>
32840
32841 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
32842 for GCC driver.
32843 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
32844 a new argument.
32845 * gcc.c (add_sysrooted_hdrs_prefix): New function.
32846 (path_prefix_reset): Move up in the source file.
32847 (find_fortran_preinclude_file): Make complex search for the
32848 fortran header files.
32849
32850 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
32851
32852 * godump.c (go_output_typedef): When outputting a typedef, refer
32853 to the underlying type by its name and not its structure.
32854
32855 2019-01-15 David Malcolm <dmalcolm@redhat.com>
32856
32857 PR c++/88795
32858 * tree.c (build_function_type): Assert that arg_types is not
32859 error_mark_node.
32860
32861 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
32862
32863 PR inline-asm/52813
32864 * doc/extend.texi: Document that listing the stack pointer in the
32865 clobber list of an asm is a deprecated feature.
32866 * common.opt (Wdeprecated): Moved from c-family/c.opt.
32867 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
32868 warning instead of an error for clobbers of the stack pointer.
32869 Add a note explaining why.
32870
32871 2019-01-15 Richard Biener <rguenther@suse.de>
32872
32873 PR debug/88046
32874 * dwarf2out.c (gen_member_die): Do not generate inheritance
32875 DIEs late.
32876
32877 2019-01-15 Richard Biener <rguenther@suse.de>
32878
32879 PR tree-optimization/88855
32880 * tree-if-conv.c (combine_blocks): Collect
32881 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
32882
32883 2019-01-15 Tom de Vries <tdevries@suse.de>
32884
32885 PR target/80547
32886 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
32887 lhs == NULL_TREE for gang-level reduction.
32888
32889 2019-01-15 Richard Biener <rguenther@suse.de>
32890 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32891
32892 PR ipa/88788
32893 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
32894 return true if SSA_NAME is already marked in visited bitmap.
32895 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
32896
32897 2019-01-15 Jakub Jelinek <jakub@redhat.com>
32898
32899 PR tree-optimization/88775
32900 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
32901 equal == 0 equality pointer comparisons some more if compared in
32902 integral types and either one points to an automatic var and the
32903 other to a global, or we can prove at least one points to the middle
32904 or both point to start or both point to end.
32905
32906 2019-01-14 Andi Kleen <ak@linux.intel.com>
32907
32908 * Makefile.in: Lower autofdo sampling rate by 10x.
32909 * Makefile.tpl: Dito.
32910
32911 2019-01-14 Tom Honermann <tom@honermann.net>
32912
32913 * defaults.h: Define CHAR8_TYPE.
32914
32915 2019-01-14 Martin Sebor <msebor@redhat.com>
32916
32917 PR target/88638
32918 * doc/extend.texi (Darwin Format Checks): Clarify.
32919
32920 2019-01-14 Richard Biener <rguenther@suse.de>
32921
32922 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
32923 whether we are in (simplify ...) or (match ...) context.
32924
32925 2019-01-14 Jakub Jelinek <jakub@redhat.com>
32926
32927 PR rtl-optimization/88796
32928 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
32929 * cfgexpand.c (stack_protect_prologue): Initialize
32930 crtl->stack_protect_guard_decl.
32931 * function.c (stack_protect_epilogue): Use it instead of calling
32932 targetm.stack_protect_guard again.
32933 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
32934 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
32935 crtl->stack_protect_guard_decl.
32936 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
32937 on the returned MEM_EXPR.
32938
32939 2019-01-12 Tom de Vries <tdevries@suse.de>
32940
32941 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
32942 vector length using -fopenacc-dim.
32943
32944 2019-01-12 Tom de Vries <tdevries@suse.de>
32945
32946 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
32947 lengths into account.
32948
32949 2019-01-12 Svante Signell <svante.signell@gmail.com>
32950
32951 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
32952 (TARGET_CAN_SPLIT_STACK): Define.
32953 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
32954
32955 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32956
32957 * params.def (inline-unit-growth): Set to 40.
32958
32959 2019-01-12 Jakub Jelinek <jakub@redhat.com>
32960
32961 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
32962
32963 2019-01-12 Tom de Vries <tdevries@suse.de>
32964
32965 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
32966 region calling vector-partitionable routine, set default_vector_length
32967 to WARP_SIZE.
32968
32969 2019-01-12 Tom de Vries <tdevries@suse.de>
32970
32971 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
32972 variable default_vector_length.
32973
32974 2019-01-12 Tom de Vries <tdevries@suse.de>
32975
32976 PR middle-end/88703
32977 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
32978 from oacc_default_dims, as oacc_validate_dims would do it, and apply
32979 dimensions limits.
32980
32981 2019-01-12 Tom de Vries <tdevries@suse.de>
32982
32983 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
32984 (nvptx_goacc_validate_dims): Add used parameter.
32985 * doc/tm.texi: Regenerate.
32986 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
32987 argument to call to targetm.goacc.validate_dims.
32988 (default_goacc_validate_dims): Add used
32989 parameter.
32990 * target.def (validate_dims): Add used parameter in DEFHOOK.
32991 * targhooks.h (default_goacc_validate_dims): Add used parameter.
32992
32993 2019-01-11 Jakub Jelinek <jakub@redhat.com>
32994
32995 PR middle-end/85956
32996 PR lto/88733
32997 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
32998 field.
32999 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
33000 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
33001 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
33002 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
33003
33004 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
33005
33006 PR rtl-optimization/87305
33007 * lra-assigns.c
33008 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
33009 for little endian pseudos used as paradoxical subreg.
33010
33011 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33012
33013 PR tree-optimization/88693
33014 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
33015 for STRING_CSTs that don't contain any NUL characters in the first
33016 TREE_STRING_LENGTH bytes.
33017
33018 2019-01-11 Alan Modra <amodra@gmail.com>
33019
33020 PR 88777
33021 PR 88614
33022 * genattrtab.c (min_fn): Don't translate values.
33023 (min_attr_value): Return INT_MAX when the value can't be calculated.
33024 Return minimum among any values that can be calculated.
33025 (max_attr_value): Adjust.
33026
33027 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33028
33029 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
33030
33031 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33032
33033 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33034 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
33035 (aarch64_return_call_with_max_clobbers): New function.
33036 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
33037 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
33038 argument.
33039 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
33040 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
33041 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
33042 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
33043 * cselib.c (cselib_process_insn): Add argument to
33044 targetm.hard_regno_call_part_clobbered call.
33045 * ira-conflicts.c (ira_build_conflicts): Ditto.
33046 * ira-costs.c (ira_tune_allocno_costs): Ditto.
33047 * lra-constraints.c (inherit_reload_reg): Ditto.
33048 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
33049 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
33050 argument. Call targetm.return_call_with_max_clobbers.
33051 Add argument to targetm.hard_regno_call_part_clobbered call.
33052 (calls_have_same_clobbers_p): New function.
33053 (process_bb_lives): Add call_insn and last_call_insn variables.
33054 Pass call_insn to check_pseudos_live_through_calls.
33055 Modify if stmt to check targetm.return_call_with_max_clobbers.
33056 Update setting of flush variable.
33057 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
33058 to false.
33059 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
33060 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
33061 targetm.hard_regno_call_part_clobbered call.
33062 * reginfo.c (choose_hard_reg_mode): Ditto.
33063 * regrename.c (check_new_reg_p): Ditto.
33064 * reload.c (find_equiv_reg): Ditto.
33065 * reload1.c (emit_reload_insns): Ditto.
33066 * sched-deps.c (deps_analyze_insn): Ditto.
33067 * sel-sched.c (init_regs_for_mode): Ditto.
33068 (mark_unavailable_hard_regs): Ditto.
33069 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
33070 * target.def (hard_regno_call_part_clobbered): Add insn argument.
33071 (return_call_with_max_clobbers): New target function.
33072 * doc/tm.texi: Regenerate.
33073 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
33074 * hooks.c (hook_bool_uint_mode_false): Change to
33075 hook_bool_insn_uint_mode_false.
33076 * hooks.h (hook_bool_uint_mode_false): Ditto.
33077
33078 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33079
33080 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33081 (aarch64_remove_extra_call_preserved_regs): New function.
33082 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
33083 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
33084 * doc/tm.texi: Regenerate.
33085 * final.c (get_call_reg_set_usage): Call new hook.
33086 * target.def (remove_extra_call_preserved_regs): New hook.
33087 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
33088 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
33089
33090 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33091
33092 PR bootstrap/88714
33093 * passes.c (finish_optimization_passes): Call print_combine_total_stats
33094 inside of pass_combine_1 dump rather than pass_profile_1.
33095
33096 2019-01-11 Tom de Vries <tdevries@suse.de>
33097
33098 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
33099 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
33100 (PTX_NUM_PER_WORKER_BARRIERS): Define.
33101 (nvptx_apply_dim_limits): Prevent vector_length 64 and
33102 num_workers 16.
33103
33104 2019-01-11 Tom de Vries <tdevries@suse.de>
33105
33106 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
33107
33108 2019-01-11 Jan Beulich <jbeulich@suse.com>
33109
33110 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
33111 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
33112 sse2_cvtsi2sd): Add {l}.
33113 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
33114 syntax.
33115
33116 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33117
33118 PR target/88785
33119 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
33120 define_expand.
33121 (*float<floatunssuffix>v2div2sf2): New define_insn.
33122 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
33123 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
33124 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
33125 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
33126 match_operands with "const0_operand" "C".
33127
33128 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33129
33130 * config/aarch64/aarch64-builtins.c
33131 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
33132 (aarch64_init_simd_builtins): ...Here
33133
33134 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
33135
33136 PR rtl-optimization/87305
33137 * lra-assigns.c
33138 (setup_live_pseudos_and_spill_after_risky_transforms): Check
33139 allocation for big endian pseudos used as paradoxical subregs and
33140 spill them if it is wrong.
33141 * lra-constraints.c (lra_constraints): Add a comment.
33142
33143 2019-01-10 Richard Biener <rguenther@suse.de>
33144
33145 PR tree-optimization/88792
33146 * tree-ssa-pre.c (get_representative_for): Do not return a
33147 value-number here.
33148
33149 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33150
33151 PR middle-end/84877
33152 PR bootstrap/88450
33153 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
33154 (assign_parm_setup_block): Do the argument slot realignment here
33155 instead.
33156
33157 2019-01-10 Stefan Agner <stefan@agner.ch>
33158
33159 PR target/88648
33160 * config/arm/arm.c (arm_option_override_internal): Force
33161 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
33162
33163 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33164
33165 PR c/88568
33166 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
33167 DECL_EXTERNAL.
33168
33169 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33170
33171 * config/arm/arm-builtins.c
33172 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
33173 (MAC_LANE_PAIR_QUALIFIERS): New.
33174 (arm_expand_builtin_args): Use it.
33175 (arm_expand_builtin_1): Likewise.
33176 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
33177 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
33178 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
33179 * config/arm/arm_neon.h:
33180 (vcadd_rot90_f16): New.
33181 (vcaddq_rot90_f16): New.
33182 (vcadd_rot270_f16): New.
33183 (vcaddq_rot270_f16): New.
33184 (vcmla_f16): New.
33185 (vcmlaq_f16): New.
33186 (vcmla_lane_f16): New.
33187 (vcmla_laneq_f16): New.
33188 (vcmlaq_lane_f16): New.
33189 (vcmlaq_laneq_f16): New.
33190 (vcmla_rot90_f16): New.
33191 (vcmlaq_rot90_f16): New.
33192 (vcmla_rot90_lane_f16): New.
33193 (vcmla_rot90_laneq_f16): New.
33194 (vcmlaq_rot90_lane_f16): New.
33195 (vcmlaq_rot90_laneq_f16): New.
33196 (vcmla_rot180_f16): New.
33197 (vcmlaq_rot180_f16): New.
33198 (vcmla_rot180_lane_f16): New.
33199 (vcmla_rot180_laneq_f16): New.
33200 (vcmlaq_rot180_lane_f16): New.
33201 (vcmlaq_rot180_laneq_f16): New.
33202 (vcmla_rot270_f16): New.
33203 (vcmlaq_rot270_f16): New.
33204 (vcmla_rot270_lane_f16): New.
33205 (vcmla_rot270_laneq_f16): New.
33206 (vcmlaq_rot270_lane_f16): New.
33207 (vcmlaq_rot270_laneq_f16): New.
33208 (vcadd_rot90_f32): New.
33209 (vcaddq_rot90_f32): New.
33210 (vcadd_rot270_f32): New.
33211 (vcaddq_rot270_f32): New.
33212 (vcmla_f32): New.
33213 (vcmlaq_f32): New.
33214 (vcmla_lane_f32): New.
33215 (vcmla_laneq_f32): New.
33216 (vcmlaq_lane_f32): New.
33217 (vcmlaq_laneq_f32): New.
33218 (vcmla_rot90_f32): New.
33219 (vcmlaq_rot90_f32): New.
33220 (vcmla_rot90_lane_f32): New.
33221 (vcmla_rot90_laneq_f32): New.
33222 (vcmlaq_rot90_lane_f32): New.
33223 (vcmlaq_rot90_laneq_f32): New.
33224 (vcmla_rot180_f32): New.
33225 (vcmlaq_rot180_f32): New.
33226 (vcmla_rot180_lane_f32): New.
33227 (vcmla_rot180_laneq_f32): New.
33228 (vcmlaq_rot180_lane_f32): New.
33229 (vcmlaq_rot180_laneq_f32): New.
33230 (vcmla_rot270_f32): New.
33231 (vcmlaq_rot270_f32): New.
33232 (vcmla_rot270_lane_f32): New.
33233 (vcmla_rot270_laneq_f32): New.
33234 (vcmlaq_rot270_lane_f32): New.
33235 (vcmlaq_rot270_laneq_f32): New.
33236 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
33237 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
33238 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
33239 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
33240 vcmlaq_lane270): New.
33241 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33242 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
33243 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
33244 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
33245 (arm_option_reconfigure_globals): Use them.
33246 * config/arm/iterators.md (VDF, VQ_HSF): New.
33247 (VCADD, VCMLA): New.
33248 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
33249 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
33250 New.
33251 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
33252 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
33253
33254 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33255
33256 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
33257 Add qualifier_lane_pair_index.
33258 (emit-rtl.h): Include.
33259 (TYPES_QUADOP_LANE_PAIR): New.
33260 (aarch64_simd_expand_args): Use it.
33261 (aarch64_simd_expand_builtin): Likewise.
33262 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
33263 New.
33264 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
33265 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
33266 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
33267 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
33268 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
33269 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
33270 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
33271 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
33272 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
33273 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
33274 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
33275 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
33276 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
33277 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
33278 Add __ARM_FEATURE_COMPLEX.
33279 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
33280 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
33281 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
33282 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
33283 fcmlaq_lane270): New.
33284 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33285 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
33286 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
33287 * config/aarch64/arm_neon.h:
33288 (vcadd_rot90_f16): New.
33289 (vcaddq_rot90_f16): New.
33290 (vcadd_rot270_f16): New.
33291 (vcaddq_rot270_f16): New.
33292 (vcmla_f16): New.
33293 (vcmlaq_f16): New.
33294 (vcmla_lane_f16): New.
33295 (vcmla_laneq_f16): New.
33296 (vcmlaq_lane_f16): New.
33297 (vcmlaq_rot90_lane_f16): New.
33298 (vcmla_rot90_laneq_f16): New.
33299 (vcmla_rot90_lane_f16): New.
33300 (vcmlaq_rot90_f16): New.
33301 (vcmla_rot90_f16): New.
33302 (vcmlaq_laneq_f16): New.
33303 (vcmla_rot180_laneq_f16): New.
33304 (vcmla_rot180_lane_f16): New.
33305 (vcmlaq_rot180_f16): New.
33306 (vcmla_rot180_f16): New.
33307 (vcmlaq_rot90_laneq_f16): New.
33308 (vcmlaq_rot270_laneq_f16): New.
33309 (vcmlaq_rot270_lane_f16): New.
33310 (vcmla_rot270_laneq_f16): New.
33311 (vcmlaq_rot270_f16): New.
33312 (vcmla_rot270_f16): New.
33313 (vcmlaq_rot180_laneq_f16): New.
33314 (vcmlaq_rot180_lane_f16): New.
33315 (vcmla_rot270_lane_f16): New.
33316 (vcadd_rot90_f32): New.
33317 (vcaddq_rot90_f32): New.
33318 (vcaddq_rot90_f64): New.
33319 (vcadd_rot270_f32): New.
33320 (vcaddq_rot270_f32): New.
33321 (vcaddq_rot270_f64): New.
33322 (vcmla_f32): New.
33323 (vcmlaq_f32): New.
33324 (vcmlaq_f64): New.
33325 (vcmla_lane_f32): New.
33326 (vcmla_laneq_f32): New.
33327 (vcmlaq_lane_f32): New.
33328 (vcmlaq_laneq_f32): New.
33329 (vcmla_rot90_f32): New.
33330 (vcmlaq_rot90_f32): New.
33331 (vcmlaq_rot90_f64): New.
33332 (vcmla_rot90_lane_f32): New.
33333 (vcmla_rot90_laneq_f32): New.
33334 (vcmlaq_rot90_lane_f32): New.
33335 (vcmlaq_rot90_laneq_f32): New.
33336 (vcmla_rot180_f32): New.
33337 (vcmlaq_rot180_f32): New.
33338 (vcmlaq_rot180_f64): New.
33339 (vcmla_rot180_lane_f32): New.
33340 (vcmla_rot180_laneq_f32): New.
33341 (vcmlaq_rot180_lane_f32): New.
33342 (vcmlaq_rot180_laneq_f32): New.
33343 (vcmla_rot270_f32): New.
33344 (vcmlaq_rot270_f32): New.
33345 (vcmlaq_rot270_f64): New.
33346 (vcmla_rot270_lane_f32): New.
33347 (vcmla_rot270_laneq_f32): New.
33348 (vcmlaq_rot270_lane_f32): New.
33349 (vcmlaq_rot270_laneq_f32): New.
33350 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
33351 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
33352 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
33353 (FCADD, FCMLA): New.
33354 (rot): New.
33355 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
33356
33357 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
33358
33359 PR other/16615
33360
33361 * config/pa/pa.c: Change "can not" to "cannot".
33362 * gimple-ssa-evrp-analyze.c: Likewise.
33363 * ipa-icf.c: Likewise.
33364 * ipa-polymorphic-call.c: Likewise.
33365 * ipa-pure-const.c: Likewise.
33366 * lra-constraints.c: Likewise.
33367 * lra-remat.c: Likewise.
33368 * reload1.c: Likewise.
33369 * reorg.c: Likewise.
33370 * tree-ssa-uninit.c: Likewise.
33371
33372 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
33373
33374 PR other/16615
33375
33376 * Makefile.in: Mechanically replace "can not" with "cannot".
33377 * alias.c: Likewise.
33378 * builtins.c: Likewise.
33379 * calls.c: Likewise.
33380 * cgraph.c: Likewise.
33381 * cgraph.h: Likewise.
33382 * cgraphclones.c: Likewise.
33383 * cgraphunit.c: Likewise.
33384 * combine-stack-adj.c: Likewise.
33385 * combine.c: Likewise.
33386 * common/config/i386/i386-common.c: Likewise.
33387 * config/aarch64/aarch64.c: Likewise.
33388 * config/alpha/sync.md: Likewise.
33389 * config/arc/arc.c: Likewise.
33390 * config/arc/predicates.md: Likewise.
33391 * config/arm/arm-c.c: Likewise.
33392 * config/arm/arm.c: Likewise.
33393 * config/arm/arm.h: Likewise.
33394 * config/arm/arm.md: Likewise.
33395 * config/arm/cortex-r4f.md: Likewise.
33396 * config/csky/csky.c: Likewise.
33397 * config/csky/csky.h: Likewise.
33398 * config/darwin-f.c: Likewise.
33399 * config/epiphany/epiphany.md: Likewise.
33400 * config/i386/i386.c: Likewise.
33401 * config/i386/sol2.h: Likewise.
33402 * config/m68k/m68k.c: Likewise.
33403 * config/mcore/mcore.h: Likewise.
33404 * config/microblaze/microblaze.md: Likewise.
33405 * config/mips/20kc.md: Likewise.
33406 * config/mips/sb1.md: Likewise.
33407 * config/nds32/nds32.c: Likewise.
33408 * config/nds32/predicates.md: Likewise.
33409 * config/pa/pa.c: Likewise.
33410 * config/rs6000/e300c2c3.md: Likewise.
33411 * config/rs6000/rs6000.c: Likewise.
33412 * config/s390/s390.h: Likewise.
33413 * config/sh/sh.c: Likewise.
33414 * config/sh/sh.md: Likewise.
33415 * config/spu/vmx2spu.h: Likewise.
33416 * cprop.c: Likewise.
33417 * dbxout.c: Likewise.
33418 * df-scan.c: Likewise.
33419 * doc/cfg.texi: Likewise.
33420 * doc/extend.texi: Likewise.
33421 * doc/fragments.texi: Likewise.
33422 * doc/gty.texi: Likewise.
33423 * doc/invoke.texi: Likewise.
33424 * doc/lto.texi: Likewise.
33425 * doc/md.texi: Likewise.
33426 * doc/objc.texi: Likewise.
33427 * doc/rtl.texi: Likewise.
33428 * doc/tm.texi: Likewise.
33429 * dse.c: Likewise.
33430 * emit-rtl.c: Likewise.
33431 * emit-rtl.h: Likewise.
33432 * except.c: Likewise.
33433 * expmed.c: Likewise.
33434 * expr.c: Likewise.
33435 * fold-const.c: Likewise.
33436 * genautomata.c: Likewise.
33437 * gimple-fold.c: Likewise.
33438 * hard-reg-set.h: Likewise.
33439 * ifcvt.c: Likewise.
33440 * ipa-comdats.c: Likewise.
33441 * ipa-cp.c: Likewise.
33442 * ipa-devirt.c: Likewise.
33443 * ipa-fnsummary.c: Likewise.
33444 * ipa-icf.c: Likewise.
33445 * ipa-inline-transform.c: Likewise.
33446 * ipa-inline.c: Likewise.
33447 * ipa-polymorphic-call.c: Likewise.
33448 * ipa-profile.c: Likewise.
33449 * ipa-prop.c: Likewise.
33450 * ipa-pure-const.c: Likewise.
33451 * ipa-reference.c: Likewise.
33452 * ipa-split.c: Likewise.
33453 * ipa-visibility.c: Likewise.
33454 * ipa.c: Likewise.
33455 * ira-build.c: Likewise.
33456 * ira-color.c: Likewise.
33457 * ira-conflicts.c: Likewise.
33458 * ira-costs.c: Likewise.
33459 * ira-int.h: Likewise.
33460 * ira-lives.c: Likewise.
33461 * ira.c: Likewise.
33462 * ira.h: Likewise.
33463 * loop-invariant.c: Likewise.
33464 * loop-unroll.c: Likewise.
33465 * lower-subreg.c: Likewise.
33466 * lra-assigns.c: Likewise.
33467 * lra-constraints.c: Likewise.
33468 * lra-eliminations.c: Likewise.
33469 * lra-lives.c: Likewise.
33470 * lra-remat.c: Likewise.
33471 * lra-spills.c: Likewise.
33472 * lra.c: Likewise.
33473 * lto-cgraph.c: Likewise.
33474 * lto-streamer-out.c: Likewise.
33475 * postreload-gcse.c: Likewise.
33476 * predict.c: Likewise.
33477 * profile-count.h: Likewise.
33478 * profile.c: Likewise.
33479 * recog.c: Likewise.
33480 * ree.c: Likewise.
33481 * reload.c: Likewise.
33482 * reload1.c: Likewise.
33483 * reorg.c: Likewise.
33484 * resource.c: Likewise.
33485 * rtl.def: Likewise.
33486 * rtl.h: Likewise.
33487 * rtlanal.c: Likewise.
33488 * sched-deps.c: Likewise.
33489 * sched-ebb.c: Likewise.
33490 * sched-rgn.c: Likewise.
33491 * sel-sched-ir.c: Likewise.
33492 * sel-sched.c: Likewise.
33493 * shrink-wrap.c: Likewise.
33494 * simplify-rtx.c: Likewise.
33495 * symtab.c: Likewise.
33496 * target.def: Likewise.
33497 * toplev.c: Likewise.
33498 * tree-call-cdce.c: Likewise.
33499 * tree-cfg.c: Likewise.
33500 * tree-complex.c: Likewise.
33501 * tree-core.h: Likewise.
33502 * tree-eh.c: Likewise.
33503 * tree-inline.c: Likewise.
33504 * tree-loop-distribution.c: Likewise.
33505 * tree-nrv.c: Likewise.
33506 * tree-profile.c: Likewise.
33507 * tree-sra.c: Likewise.
33508 * tree-ssa-alias.c: Likewise.
33509 * tree-ssa-dce.c: Likewise.
33510 * tree-ssa-dom.c: Likewise.
33511 * tree-ssa-forwprop.c: Likewise.
33512 * tree-ssa-loop-im.c: Likewise.
33513 * tree-ssa-loop-ivcanon.c: Likewise.
33514 * tree-ssa-loop-ivopts.c: Likewise.
33515 * tree-ssa-loop-niter.c: Likewise.
33516 * tree-ssa-phionlycprop.c: Likewise.
33517 * tree-ssa-phiopt.c: Likewise.
33518 * tree-ssa-propagate.c: Likewise.
33519 * tree-ssa-threadedge.c: Likewise.
33520 * tree-ssa-threadupdate.c: Likewise.
33521 * tree-ssa-uninit.c: Likewise.
33522 * tree-ssanames.c: Likewise.
33523 * tree-streamer-out.c: Likewise.
33524 * tree.c: Likewise.
33525 * tree.h: Likewise.
33526 * vr-values.c: Likewise.
33527
33528 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
33529
33530 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
33531 (ix86_split_xorsign): Ditto.
33532 * config/i386/i386.c (ix86_expand_xorsign): New function.
33533 (ix86_split_xorsign): Ditto.
33534 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
33535 (xorsign<mode>3): New expander.
33536 (xorsign<mode>3_1): New insn_and_split pattern.
33537 * config/i386/sse.md (xorsign<mode>3): New expander.
33538
33539 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
33540
33541 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
33542 (*tablejump_sp64): Likewise.
33543 (*tablejump<P:mode>): ...this.
33544 (*call_address_sp32): Merge into...
33545 (*call_address_sp64): Likewise.
33546 (*call_address<P:mode>): ...this.
33547 (*call_symbolic_sp32): Merge into...
33548 (*call_symbolic_sp64): Likewise.
33549 (*call_symbolic<P:mode>): ...this.
33550 (call_value): Remove constraint and add predicate.
33551 (*call_value_address_sp32): Merge into...
33552 (*call_value_address_sp64): Likewise.
33553 (*call_value_address<P:mode>): ...this.
33554 (*call_value_symbolic_sp32): Merge into...
33555 (*call_value_symbolic_sp64): Likewise.
33556 (*call_value_symbolic<P:mode>): ...this.
33557 (*sibcall_symbolic_sp32): Merge into...
33558 (*sibcall_symbolic_sp64): Likewise.
33559 (*sibcall_symbolic<P:mode>): ...this.
33560 (sibcall_value): Remove constraint and add predicate.
33561 (*sibcall_value_symbolic_sp32): Merge into...
33562 (*sibcall_value_symbolic_sp64): Likewise.
33563 (*sibcall_value_symbolic<P:mode>): ...this.
33564 (window_save): Minor tweak.
33565 (*branch_sp32): Merge into...
33566 (*branch_sp64): Likewise.
33567 (*branch<P:mode>): ...this.
33568
33569 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
33570 James Clarke <jrtc27@jrtc27.com>
33571
33572 PR target/84010
33573 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
33574 consistently in TLS address generation and adjust code to the renaming
33575 of patterns. Mark calls to __tls_get_addr as const.
33576 * config/sparc/sparc.md (tgd_hi22): Turn into...
33577 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
33578 (tgd_lo10): Turn into...
33579 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
33580 (tgd_add32): Merge into...
33581 (tgd_add64): Likewise.
33582 (tgd_add<P:mode>): ...this and use Pmode throughout.
33583 (tldm_hi22): Turn into...
33584 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
33585 (tldm_lo10): Turn into...
33586 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
33587 (tldm_add32): Merge into...
33588 (tldm_add64): Likewise.
33589 (tldm_add<P:mode>): ...this and use Pmode throughout.
33590 (tldm_call32): Merge into...
33591 (tldm_call64): Likewise.
33592 (tldm_call<P:mode>): ...this and use Pmode throughout.
33593 (tldo_hix22): Turn into...
33594 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
33595 (tldo_lox10): Turn into...
33596 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
33597 (tldo_add32): Merge into...
33598 (tldo_add64): Likewise.
33599 (tldo_add<P:mode>): ...this and use Pmode throughout.
33600 (tie_hi22): Turn into...
33601 (tie_hi22<P:mode>): ...this and use Pmode throughout.
33602 (tie_lo10): Turn into...
33603 (tie_lo10<P:mode>): ...this and use Pmode throughout.
33604 (tie_ld64): Use DImode throughout.
33605 (tie_add32): Merge into...
33606 (tie_add64): Likewise.
33607 (tie_add<P:mode>): ...this and use Pmode throughout.
33608 (tle_hix22_sp32): Merge into...
33609 (tle_hix22_sp64): Likewise.
33610 (tle_hix22<P:mode>): ...this and use Pmode throughout.
33611 (tle_lox22_sp32): Merge into...
33612 (tle_lox22_sp64): Likewise.
33613 (tle_lox22<P:mode>): ...this and use Pmode throughout.
33614 (*tldo_ldub_sp32): Merge into...
33615 (*tldo_ldub_sp64): Likewise.
33616 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
33617 (*tldo_ldub1_sp32): Merge into...
33618 (*tldo_ldub1_sp64): Likewise.
33619 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
33620 (*tldo_ldub2_sp32): Merge into...
33621 (*tldo_ldub2_sp64): Likewise.
33622 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
33623 (*tldo_ldsb1_sp32): Merge into...
33624 (*tldo_ldsb1_sp64): Likewise.
33625 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
33626 (*tldo_ldsb2_sp32): Merge into...
33627 (*tldo_ldsb2_sp64): Likewise.
33628 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
33629 (*tldo_ldub3_sp64): Use DImode throughout.
33630 (*tldo_ldsb3_sp64): Likewise.
33631 (*tldo_lduh_sp32): Merge into...
33632 (*tldo_lduh_sp64): Likewise.
33633 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
33634 (*tldo_lduh1_sp32): Merge into...
33635 (*tldo_lduh1_sp64): Likewise.
33636 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
33637 (*tldo_ldsh1_sp32): Merge into...
33638 (*tldo_ldsh1_sp64): Likewise.
33639 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
33640 (*tldo_lduh2_sp64): Use DImode throughout.
33641 (*tldo_ldsh2_sp64): Likewise.
33642 (*tldo_lduw_sp32): Merge into...
33643 (*tldo_lduw_sp64): Likewise.
33644 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
33645 (*tldo_lduw1_sp64): Use DImode throughout.
33646 (*tldo_ldsw1_sp64): Likewise.
33647 (*tldo_ldx_sp64): Likewise.
33648 (*tldo_stb_sp32): Merge into...
33649 (*tldo_stb_sp64): Likewise.
33650 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
33651 (*tldo_sth_sp32): Merge into...
33652 (*tldo_sth_sp64): Likewise.
33653 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
33654 (*tldo_stw_sp32): Merge into...
33655 (*tldo_stw_sp64): Likewise.
33656 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
33657 (*tldo_stx_sp64): Use DImode throughout.
33658
33659 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33660
33661 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
33662 check configure option to set BTI and Return Address Signing.
33663 * configure.ac: Add --enable-standard-branch-protection and
33664 --disable-standard-branch-protection.
33665 * configure: Regenerated.
33666 * doc/install.texi: Document the same.
33667
33668 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33669 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33670
33671 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
33672 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
33673 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
33674 if bti is enabled.
33675 * config/aarch64/aarch64-bti-insert.c: New file.
33676 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
33677 pass.
33678 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
33679 new bti pass.
33680 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
33681 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
33682 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
33683 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
33684
33685 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33686
33687 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
33688 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
33689 Disable bti for -mbranch-protection=none.
33690 (aarch64_handle_standard_branch_protection): Enable bti for
33691 -mbranch-protection=standard.
33692 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
33693 -mbranch-protection.
33694 (aarch64_bti_enabled): Check if bti is enabled.
33695 * config/aarch64/aarch64.opt: Declare target variable.
33696 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
33697
33698 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33699
33700 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
33701 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
33702 (aarch64_expand_epilogue): Likewise.
33703 (aarch64_output_mi_thunk): Likewise.
33704 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
33705 TAILCALL_ADDR_REGS to x16 and x17.
33706 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
33707
33708 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33709
33710 * config/aarch64/aarch64-option-extensions.def: Define
33711 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
33712 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
33713 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
33714 (AARCH64_FL_PREDRES): New.
33715 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
33716 AARCH64_FL_PREDRES by default.
33717 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
33718
33719 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33720
33721 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
33722 ARMv8.5-A.
33723 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
33724 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
33725 * doc/invoke.texi: Document ARMv8.5-A.
33726
33727 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
33728
33729 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
33730 (xorsign<mode>3): Likewise.
33731
33732 2019-01-09 Jelinek <jakub@redhat.com>
33733
33734 PR middle-end/88758
33735 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
33736 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
33737
33738 PR rtl-optimization/88331
33739 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
33740 not currently_expanding_to_rtl.
33741
33742 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
33743
33744 * doc/invoke.texi (-Os): Remove trailing spaces.
33745 (-finline-functions): Remove reference to -O2.
33746
33747 2019-01-08 Jakub Jelinek <jakub@redhat.com>
33748
33749 PR rtl-optimization/79593
33750 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
33751
33752 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
33753 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
33754
33755 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
33756
33757 PR bootstrap/88721
33758 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
33759 to -1 on entry.
33760
33761 PR debug/88723
33762 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
33763 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
33764
33765 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
33766
33767 PR target/88717
33768 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
33769 ix86_avx_u128_mode_entry.
33770
33771 2019-01-08 Martin Liska <mliska@suse.cz>
33772
33773 PR tree-optimization/88753
33774 * tree-switch-conversion.c (switch_conversion::build_one_array):
33775 Come up with local variable constructor. Convert first to
33776 type of constructor values.
33777
33778 2019-01-08 Richard Biener <rguenther@suse.de>
33779
33780 PR tree-optimization/86554
33781 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
33782 rpo_avail): Move earlier.
33783 (visit_nary_op): When value-numbering to expressions
33784 with different overflow behavior make sure there's an
33785 available expression on the path.
33786
33787 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
33788
33789 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
33790 aarch64_parse_branch_protection,
33791 struct aarch64_branch_protect_type,
33792 aarch64_handle_no_branch_protection,
33793 aarch64_handle_standard_branch_protection,
33794 aarch64_validate_mbranch_protection,
33795 aarch64_handle_pac_ret_protection,
33796 aarch64_handle_attr_branch_protection,
33797 accepted_branch_protection_string,
33798 aarch64_pac_ret_subtypes,
33799 aarch64_branch_protect_types,
33800 aarch64_handle_pac_ret_leaf): Define.
33801 (aarch64_override_options_after_change_1, aarch64_override_options):
33802 Add check for accepted_branch_protection_string.
33803 (aarch64_option_save): Save accepted_branch_protection_string.
33804 (aarch64_option_restore): Save accepted_branch_protection_string.
33805 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
33806 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
33807 msign-return-address.
33808 * doc/invoke.texi: Add mbranch-protection.
33809
33810 2019-01-08 Alan Modra <amodra@gmail.com>
33811
33812 PR target/88614
33813 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
33814 Delete "unknownp" parameter. Adjust callers. Handle
33815 CONST_INT, PLUS, MINUS, and MULT.
33816 (attr_value_aligned): Renamed from or_attr_value.
33817 (min_attr_value): Return INT_MIN for unhandled rtl case..
33818 (min_fn): ..and translate to INT_MAX here.
33819 (write_length_unit_log): Modify to cope without "unknown".
33820 (write_attr_value): Handle IF_THEN_ELSE.
33821
33822 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33823
33824 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
33825 optimization for masked stores.
33826
33827 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33828
33829 PR middle-end/88567
33830 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
33831 output vector directly to duplicate_and_interleave instead of
33832 going through a temporary. Postpone insertion of ctor_seq to
33833 the end of the loop.
33834
33835 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
33836
33837 PR target/86891
33838 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
33839 unsigned_p. Handle signed and unsigned overflow correction as
33840 required.
33841 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
33842 prototype.
33843 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
33844 for operand 2.
33845 (add<mode>3_compareV_imm): Make this callable for expanding.
33846 (subv<GPI:mode>4): Use register_operand for operand 1. Use
33847 aarch64_plus_operand for operand 2.
33848 (subv<GPI:mode>_insn): New insn pattern.
33849 (subv<GPI:mode>_imm): Likewise.
33850 (negv<GPI:mode>3): New expand pattern.
33851 (negv<GPI:mode>_insn): New insn pattern.
33852 (negv<GPI:mode>_cmp_only): Likewise.
33853 (cmpv<GPI:mode>_insn): Likewise.
33854 (subvti4): Use register_operand for operand 1. Update call to
33855 aarch64_expand_subvti.
33856 (usubvti4): Likewise.
33857 (negvti3): New expand pattern.
33858 (negdi_carryout): New insn pattern.
33859 (negvdi_carryinV): New insn pattern.
33860 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
33861 version the named version.
33862 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
33863 operands.
33864 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
33865 patterns.
33866 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
33867 patterns.
33868 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
33869 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
33870 (sub<mode>3_carryinCV): Delete.
33871 (sub<GPI:mode>3_carryinV): New expand pattern.
33872 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
33873
33874 2019-01-07 Richard Biener <rguenther@suse.de>
33875
33876 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
33877 of tree_operand_hash.
33878
33879 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33880
33881 PR tree-optimization/88598
33882 * tree.h (single_nonzero_element): Declare.
33883 * tree.c (single_nonzero_element): New function.
33884 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
33885 if I is the only nonzero element of CST.
33886
33887 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33888
33889 PR tree-optimization/88598
33890 * tree.h (initializer_each_zero_or_onep): Declare.
33891 * tree.c (initializer_each_zero_or_onep): New function.
33892 (signed_or_unsigned_type_for): Handle float types too.
33893 (unsigned_type_for, signed_type_for): Update comments accordingly.
33894 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
33895 x & { 0 or -1, 0 or -1, ... }.
33896
33897 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
33898
33899 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
33900 with x86_64-pc-linux-gnu.
33901
33902 2019-01-07 Tom de Vries <tdevries@suse.de>
33903
33904 PR target/85486
33905 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
33906 function.
33907 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
33908 routines.
33909
33910 2019-01-07 Jakub Jelinek <jakub@redhat.com>
33911
33912 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
33913 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
33914 TARGET_AVX512F as condition.
33915
33916 PR debug/88723
33917 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
33918 const_not_ok_for_debug_p target hook.
33919 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
33920 on UNSPEC and subexpressions thereof if all subexpressions of the
33921 UNSPEC are CONSTANT_P.
33922
33923 PR tree-optimization/88676
33924 * tree-ssa-phiopt.c (two_value_replacement): New function.
33925 (tree_ssa_phiopt_worker): Call it.
33926
33927 PR sanitizer/88619
33928 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
33929 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
33930
33931 PR c++/85052
33932 * tree-vect-generic.c: Include insn-config.h and recog.h.
33933 (expand_vector_piecewise): Add defaulted ret_type argument,
33934 if non-NULL, use that in preference to type for the result type.
33935 (expand_vector_parallel): Formatting fix.
33936 (do_vec_conversion, do_vec_narrowing_conversion,
33937 expand_vector_conversion): New functions.
33938 (expand_vector_operations_1): Call expand_vector_conversion
33939 for VEC_CONVERT ifn calls.
33940 * internal-fn.def (VEC_CONVERT): New internal function.
33941 * internal-fn.c (expand_VEC_CONVERT): New function.
33942 * fold-const-call.c (fold_const_vec_convert): New function.
33943 (fold_const_call): Use it for CFN_VEC_CONVERT.
33944 * doc/extend.texi (__builtin_convertvector): Document.
33945
33946 2019-01-07 Tom de Vries <tdevries@suse.de>
33947
33948 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
33949 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
33950 vector_red_partition, vector_red_sym): New global variables.
33951 (nvptx_option_override): Initialize vector_red_sym.
33952 (nvptx_declare_function_name): Restore red_partition register.
33953 (nvptx_file_end): Emit code to declare the vector reduction variables.
33954 (nvptx_output_red_partition): New function.
33955 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
33956 large vector reductions.
33957 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
33958 (nvptx_init_builtins): Add VECTOR_ADDR.
33959 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
33960 Handle nvptx_expand_shared_addr.
33961 (nvptx_get_shared_red_addr): Add vector argument and handle large
33962 vectors.
33963 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
33964 large vectors.
33965 (nvptx_goacc_reduction_init): Likewise.
33966 (nvptx_goacc_reduction_fini): Likewise.
33967 (nvptx_goacc_reduction_teardown): Likewise.
33968 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
33969 init,fini,teardown}.
33970 (nvptx_init_axis_predicate): Initialize vector_red_partition.
33971 (nvptx_set_current_function): Init vector_red_partition.
33972 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
33973 (nvptx_red_partition): New insn.
33974 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
33975
33976 2019-01-07 Tom de Vries <tdevries@suse.de>
33977
33978 PR target/85381
33979 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
33980 empty loops.
33981
33982 2019-01-07 Tom de Vries <tdevries@suse.de>
33983
33984 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
33985 (nvptx_option_override): Init oacc_bcast_partition.
33986 (nvptx_init_oacc_workers): New function.
33987 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
33988 (nvptx_needs_shared_bcast): New function.
33989 (nvptx_find_par): Generalize to enable vectors to use shared-memory
33990 to propagate state.
33991 (nvptx_shared_propagate): Initialize vector bcast partition and
33992 synchronization state.
33993 (nvptx_single): Generalize to enable vectors to use shared-memory
33994 to propagate state.
33995 (nvptx_process_pars): Likewise.
33996 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
33997 * config/nvptx/nvptx.h (struct machine_function): Add
33998 bcast_partition and sync_bar members.
33999
34000 2019-01-07 Tom de Vries <tdevries@suse.de>
34001
34002 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
34003 (nvptx_apply_dim_limits): New function.
34004 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
34005 PTX_WARP_SIZE.
34006
34007 2019-01-07 Tom de Vries <tdevries@suse.de>
34008
34009 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
34010 as late as possible.
34011
34012 2019-01-07 Tom de Vries <tdevries@suse.de>
34013
34014 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
34015 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
34016 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
34017 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
34018 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
34019
34020 2019-01-07 Tom de Vries <tdevries@suse.de>
34021
34022 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
34023
34024 2019-01-07 Tom de Vries <tdevries@suse.de>
34025
34026 * omp-offload.c (oacc_get_min_dim): New function.
34027 * omp-offload.h (oacc_get_min_dim): Declare.
34028
34029 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
34030
34031 PR target/88521
34032 * config/i386/i386.c (function_value_ms_64): Return small sturct in
34033 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
34034
34035 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34036
34037 PR tree-opt/86020
34038 Revert:
34039 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
34040
34041 * ipa-inline.c (edge_badness): Use inlined_time instead of
34042 inline_summaries->get.
34043
34044 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34045
34046 * opts.c (enable_fdo_optimizations): Enable
34047 version-loops-for-strides, loop-interchange, unrol-and-jam
34048 and tree-loop-distribution.
34049 * invoke.texi: Document newly enabled options.
34050
34051 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34052
34053 * doc/invoke.texi (max-inline-insns-small): New parameters.
34054 * ipa-inline.c (want_early_inline_function_p): simplify.
34055 (want_inline_small_function_p): Fix pasto from previous patch;
34056 use max-inline-insns-small bound.
34057 * params.def (max-inline-insns-small): New param.
34058 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
34059 variables correctly.
34060
34061 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34062
34063 * doc/invoke.texi: Document max-inline-insns-size,
34064 uninlined-function-insns, uninlined-function-time,
34065 uninlined-thunk-insns and uninlined-thunk-time.
34066 * params.def: Add max-inline-insns-size,
34067 uninlined-function-insns, uninlined-function-time,
34068 uninlined-thunk-insns and uninlined-thunk-time.
34069 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
34070 new parameters.
34071 * ipa-inline.c (can_inline_edge_by_limits_p,
34072 want_inline_small_function_p): Use new parameters.
34073
34074 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34075
34076 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
34077
34078 2019-01-05 Jakub Jelinek <jakub@redhat.com>
34079
34080 PR middle-end/82564
34081 PR target/88620
34082 * expr.c (expand_assignment): For calls returning VLA structures
34083 if to_rtx is not a MEM, force it into a stack temporary.
34084
34085 PR debug/88635
34086 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
34087 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
34088 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
34089 subexpressions of both operands.
34090 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
34091 subrtxes are CONSTANT_P.
34092 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
34093 2018-11-09 changes.
34094
34095 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
34096
34097 * params.def (hot-bb-count-ws-permille): Set to 990.
34098
34099 2019-01-04 Martin Sebor <msebor@redhat.com>
34100
34101 PR c/88546
34102 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
34103 leaf.
34104
34105 2019-01-04 Martin Sebor <msebor@redhat.com>
34106
34107 PR c/88363
34108 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
34109
34110 2019-01-04 Jakub Jelinek <jakub@redhat.com>
34111
34112 * gdbinit.in: Turn off pagination for the skip commands, restore
34113 it to previous state afterwards.
34114
34115 2019-01-04 Jakub Jelinek <jakub@redhat.com>
34116
34117 PR target/88594
34118 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
34119 of GET_MODE (opN) as modes of the libcall arguments.
34120
34121 2019-01-04 Jan Beulich <jbeulich@suse.com>
34122
34123 * config/i386/sse.md
34124 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
34125 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
34126 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34127 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34128 avx512f_vmcmp<mode>3<round_saeonly_name>,
34129 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
34130 avx512f_maskcmp<mode>3,
34131 <avx512>_cvt<ssemodesuffix>2mask<mode>,
34132 <avx512>_cvt<ssemodesuffix>2mask<mode>,
34133 *<avx512>_cvtmask2<ssemodesuffix><mode>,
34134 *<avx512>_cvtmask2<ssemodesuffix><mode>,
34135 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
34136 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
34137 <avx512>_gt<mode>3<mask_scalar_merge_name>,
34138 <avx512>_gt<mode>3<mask_scalar_merge_name>,
34139 <avx512>_testm<mode>3<mask_scalar_merge_name>,
34140 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
34141 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
34142 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
34143 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
34144 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
34145 avx512cd_maskb_vec_dup<mode>,
34146 avx512cd_maskw_vec_dup<mode>,
34147 avx512dq_fpclass<mode><mask_scalar_merge_name>,
34148 avx512dq_vmfpclass<mode>,
34149 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
34150 instead of =Yk.
34151
34152 2019-01-03 Martin Sebor <msebor@redhat.com>
34153
34154 PR tree-optimization/88659
34155 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
34156
34157 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
34158
34159 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
34160 unaligned vsx and avoid lxvd2x/stxvd2x.
34161 (gen_lvx_v4si_move): New function.
34162
34163 2019-01-03 Tom de Vries <tdevries@suse.de>
34164
34165 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
34166 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
34167 function.
34168 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
34169
34170 2019-01-03 Tom de Vries <tdevries@suse.de>
34171
34172 * config/nvptx/nvptx.c (struct offload_attrs): New.
34173 (populate_offload_attrs): New function. Factor mask extraction out of
34174 nvptx_reorg. Add extraction of dimensions.
34175 (nvptx_reorg): Use populate_offload_attrs.
34176
34177 2019-01-03 Tom de Vries <tdevries@suse.de>
34178
34179 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
34180 cases for oacc_min_dims_p and routine_p. Add asserts for
34181 oacc_default_dims_p and offload_region_p.
34182
34183 2019-01-03 Tom de Vries <tdevries@suse.de>
34184
34185 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
34186 factored out of ...
34187 (nvptx_goacc_validate_dims): ... here.
34188
34189 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
34190
34191 PR tree-optimization/85574
34192 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
34193 structure.
34194 (struct ssa_equip_hash_traits): Declare.
34195 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
34196
34197 2019-01-03 Jakub Jelinek <jakub@redhat.com>
34198
34199 PR debug/88644
34200 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
34201 change it to qualified_type.
34202
34203 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
34204
34205 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
34206 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
34207
34208 2019-01-02 Martin Sebor <msebor@redhat.com>
34209 Jeff Law <law@redhat.com>
34210
34211 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
34212 (get_range_strlen_tree): Update appropriately.
34213 (get_range_strlen)
34214 * gimple-fold.h (get_range_strlen): Drop unused last argument.
34215
34216 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
34217 rather than set_range_info.
34218 * tree-ssa-strlen.c (set_strlen_range): Extracted from
34219 maybe_set_strlen_range. Handle potentially boundary crossing
34220 cases more conservatively.
34221 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
34222 Call set_strlen_range.
34223 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
34224
34225 PR middle-end/88663
34226 * gimple-fold.c (get_range_strlen): Update prototype to no longer
34227 need the flexp argument.
34228 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
34229 from calls to get_range_strlen. Update comments. Just update
34230 VAL for an unterminated const char array and let the reset of the
34231 code handle it normally. No longer try to set *flexp. Adjust
34232 return value.
34233 (get_range_strlen): Update for the new get_range_strlen API.
34234 (get_maxval_strlen): Similarly.
34235 (gimple_fold_builtin_strlen): Handle update meaning of return value
34236 from get_range_strlen.
34237 * gimple-ssa-sprintf.c (get_string_length): Update for the new
34238 get_range_strlen API.
34239
34240 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
34241
34242 PR lto/88130
34243 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
34244 false at WPA time when body was removed.
34245
34246 2019-01-02 Martin Liska <mliska@suse.cz>
34247
34248 PR tree-optimization/88650
34249 * predict.c (set_even_probabilities): Calculate probability
34250 remainer only when really used.
34251
34252 2019-01-02 Richard Biener <rguenther@suse.de>
34253
34254 PR middle-end/88651
34255 * tree-data-ref.c (analyze_subscript_affine_affine): Use
34256 widest_ints when mangling max_stmt_execution results.
34257
34258 2019-01-02 Richard Biener <rguenther@suse.de>
34259
34260 PR tree-optimization/88621
34261 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
34262 bitfields when canoncalizing.
34263
34264 2019-01-02 Richard Biener <rguenther@suse.de>
34265
34266 PR target/87545
34267 * config/i386/x86-tune-costs.h (intel_cost): Adjust
34268 cost of cheap SSE instruction.
34269
34270 2019-01-02 Richard Biener <rguenther@suse.de>
34271
34272 PR ipa/85574
34273 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
34274 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
34275 function.
34276 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
34277 set after UIDs before splitting them.
34278
34279 2019-01-01 Martin Sebor <msebor@redhat.com>
34280 Jeff Law <law@redhat.com>
34281
34282 * gimple-fold.c (get_range_strlen_tree): Record if the computed
34283 length is optimistic. If it is, then arrange to compute the
34284 conservative length as well.
34285
34286 * gimple-fold.h (get_range_strlen): Update prototype.
34287 * builtins.c (check_access): Update call to get_range_strlen to use
34288 c_strlen_data pointer. Change various variable accesses to instead
34289 pull data from the c_strlen_data structure.
34290 (check_strncat_sizes, expand_builtin_strncat): Likewise.
34291 * calls.c (maybe_warn_nonstring_arg): Likewise.
34292 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
34293 minimum length if maximum lengh is unknown.
34294 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
34295 that used c_strlen, it's no longer needed. Restructure slightly.
34296 (format_string): Set unlikely range appropriately.
34297 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
34298 formatting issues.
34299 (get_range_strlen): Accept c_strlen_data pointer for external
34300 call sites as well. Pass through to call to internal get_range_strlen.
34301 Adjust minlen, maxlen and maxbound as needed.
34302 (get_maxval_strlen): Update comments.
34303 (gimple_fold_builtin_strlen): Update call to get_range_strlen
34304 to use c_strlen_data pointer. Change variable accesses to instead
34305 use c_strlen_data data members.
34306
34307 * gimple-fold.c (get_range_strlen): Update prototype.
34308 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
34309 local variables. Use pdata to return information to caller.
34310 Update calls to get_range_strlen. Update pdata->maxbound.
34311 (get_range_strlen -- static version): Similarly.
34312 (get_range_strlen -- extern version): Update for internal
34313 get_range_strlen API change. Convert to external data format.
34314 (get_maxval_strlen): Similarly.
34315
34316 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
34317
34318 * coverage.c (get_coverage_counts): Use current_function_decl.
34319 * profile.c (read_thunk_profile): New function.
34320 (branch_prob): Add THUNK parameter.
34321 * tree-profile.c (tree_profiling): Handle thunks.
34322 * value-prof.c (init_node_map): Handle thunks.
34323 * value-prof.h (branch_prob): Upate prototype.
34324 (read_thunk_profile): Declare.
34325
34326 2019-01-01 Jakub Jelinek <jakub@redhat.com>
34327
34328 Update copyright years.
34329
34330 * gcc.c (process_command): Update copyright notice dates.
34331 * gcov-dump.c (print_version): Ditto.
34332 * gcov.c (print_version): Ditto.
34333 * gcov-tool.c (print_version): Ditto.
34334 * gengtype.c (create_file): Ditto.
34335 * doc/cpp.texi: Bump @copying's copyright year.
34336 * doc/cppinternals.texi: Ditto.
34337 * doc/gcc.texi: Ditto.
34338 * doc/gccint.texi: Ditto.
34339 * doc/gcov.texi: Ditto.
34340 * doc/install.texi: Ditto.
34341 * doc/invoke.texi: Ditto.
34342 \f
34343 Copyright (C) 2019 Free Software Foundation, Inc.
34344
34345 Copying and distribution of this file, with or without modification,
34346 are permitted in any medium without royalty provided the copyright
34347 notice and this notice are preserved.