Fix vectorizable_conversion costs
[gcc.git] / gcc / ChangeLog
1 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2
3 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
4 number of ncopies as an additional argument.
5 (vectorizable_conversion): Update call accordingly. Use "modifier"
6 to check whether a conversion is between vectors with the same
7 numbers of units.
8
9 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
10
11 * config/aarch64/aarch64-sve-builtins-functions.h
12 (unary_count::expand): Use aarch64_sve_int_mode instead of
13 mode_for_int_vector.
14
15 2019-11-13 Martin Liska <mliska@suse.cz>
16
17 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
18
19 2019-11-13 Martin Liska <mliska@suse.cz>
20
21 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
22 Remove call to finalize_options_struct.
23
24 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
25
26 PR target/92055
27 * config/avr/t-avr (avr-mcus): Do not depend on
28 $(srcdir)/config/avr/t-multilib.
29
30 2019-11-13 Richard Biener <rguenther@suse.de>
31
32 PR tree-optimization/92473
33 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
34 direct optab reduction in the correct type.
35
36 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
37
38 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
39 hexadecimal literal.
40
41 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
42
43 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
44 UNORDERED if !HONOR_NANS (DFmode).
45 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
46 if !HONOR_NANS (<MODE>mode).
47
48 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
49
50 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
51 (ipcp_verify_propagated_values): Likewise.
52 (propagate_constants_across_call): Likewise.
53 (propagate_constants_topo): Likewise.
54 (ipcp_propagate_stage): Likewise.
55
56 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
57
58 PR ipa/92471
59 * ipa-profile.c (check_argument_count): Break out from ...;
60 watch for missing summaries.
61 (ipa_profile): Here.
62
63 2019-11-12 Martin Sebor <msebor@redhat.com>
64
65 PR tree-optimization/92412
66 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
67 extern variables.
68
69 2019-11-12 Martin Sebor <msebor@redhat.com>
70
71 PR middle-end/83688
72 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
73 (directive::argno): New member.
74 (format_result::aliases, format_result::alias_count): New data members.
75 (format_result::append_alias): New member function.
76 (fmtresult::dst_offset): New data member.
77 (pass_sprintf_length::call_info::dst_origin): New data member.
78 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
79 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
80 (get_origin_and_offset): Same.
81 (format_string): Call it.
82 (format_directive): Call append_alias and set directive argument
83 number.
84 (maybe_warn_overlap): New function.
85 (pass_sprintf_length::compute_format_length): Call it.
86 (pass_sprintf_length::handle_gimple_call): Initialize new members.
87 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
88
89 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
90
91 PR rtl-optimization/92430
92 * cfgcleanup.c (pass_jump_after_combine::execute): Free
93 dominance info at the beginning.
94
95 2019-11-12 Richard Biener <rguenther@suse.de>
96
97 PR tree-optimization/92460
98 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
99 expression before gimplifying.
100
101 2019-11-12 Richard Biener <rguenther@suse.de>
102
103 PR tree-optimization/92461
104 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
105 stmt after propagation.
106
107 2019-11-12 Martin Liska <mliska@suse.cz>
108
109 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
110 Use SET_OPTION_IF_UNSET.
111 (ix86_option_override_internal): Likewise.
112 * opts.c (default_options_optimization): Likewise.
113 (finish_options): Likewise.
114 (enable_fdo_optimizations): Likewise.
115 (common_handle_option): Likewise.
116
117 2019-11-12 Martin Liska <mliska@suse.cz>
118
119 * common/common-target.def: Remove option_validate_param and
120 option_default_params.
121 * common/common-targhooks.c (default_option_validate_param):
122 Remove.
123 * common/common-targhooks.h (default_option_validate_param):
124 Remove.
125 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
126 Remove usage of this.
127 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
128 (aarch64_option_validate_param): Likewise.
129 (aarch64_option_default_params): Likewise
130 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
131 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
132 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
133 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
134 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
135 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
136 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
137 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
138 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
139 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
140 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
141 guard_size here.
142 * doc/tm.texi: Remove option_default_params and option_validate_param.
143 * doc/tm.texi.in: Likewise.
144
145 2019-11-12 Martin Liska <mliska@suse.cz>
146
147 * common/common-target.def:
148 Do not mention set_default_param_value
149 and set_param_value.
150 * doc/tm.texi: Likewise.
151
152 2019-11-12 Martin Liska <mliska@suse.cz>
153
154 * common.opt: Remove param_values.
155 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
156 Remove finalize_options_struct.
157 * gcc.c (driver::decode_argv): Do not call global_init_params
158 and finish_params.
159 (driver::finalize): Do not call params_c_finalize
160 and finalize_options_struct.
161 * opt-suggestions.c (option_proposer::get_completions): Remove
162 special casing of params.
163 (option_proposer::find_param_completions): Remove.
164 (test_completion_partial_match): Update expected output.
165 * opt-suggestions.h: Remove find_param_completions.
166 * opts-common.c (add_misspelling_candidates): Add
167 --param with a space.
168 * opts.c (handle_param): Remove.
169 (init_options_struct):. Remove init_options_struct and
170 similar calls.
171 (finalize_options_struct): Remove.
172 (common_handle_option): Use SET_OPTION_IF_UNSET.
173 * opts.h (finalize_options_struct): Remove.
174 * toplev.c (general_init): Do not call global_init_params.
175 (toplev::finalize): Do not call params_c_finalize and
176 finalize_options_struct.
177
178 2019-11-12 Martin Liska <mliska@suse.cz>
179
180 * Makefile.in: Remove PARAMS_H and params.list
181 and params.options.
182 * params-enum.h: Remove.
183 * params-list.h: Remove.
184 * params-options.h: Remove.
185 * params.c: Remove.
186 * params.def: Remove.
187 * params.h: Remove.
188 * asan.c: Do not include params.h.
189 * auto-profile.c: Likewise.
190 * bb-reorder.c: Likewise.
191 * builtins.c: Likewise.
192 * cfgcleanup.c: Likewise.
193 * cfgexpand.c: Likewise.
194 * cfgloopanal.c: Likewise.
195 * cgraph.c: Likewise.
196 * combine.c: Likewise.
197 * common/config/aarch64/aarch64-common.c: Likewise.
198 * common/config/gcn/gcn-common.c: Likewise.
199 * common/config/ia64/ia64-common.c: Likewise.
200 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
201 * common/config/rs6000/rs6000-common.c: Likewise.
202 * common/config/sh/sh-common.c: Likewise.
203 * config/aarch64/aarch64.c: Likewise.
204 * config/alpha/alpha.c: Likewise.
205 * config/arm/arm.c: Likewise.
206 * config/avr/avr.c: Likewise.
207 * config/csky/csky.c: Likewise.
208 * config/i386/i386-builtins.c: Likewise.
209 * config/i386/i386-expand.c: Likewise.
210 * config/i386/i386-features.c: Likewise.
211 * config/i386/i386-options.c: Likewise.
212 * config/i386/i386.c: Likewise.
213 * config/ia64/ia64.c: Likewise.
214 * config/rs6000/rs6000-logue.c: Likewise.
215 * config/rs6000/rs6000.c: Likewise.
216 * config/s390/s390.c: Likewise.
217 * config/sparc/sparc.c: Likewise.
218 * config/visium/visium.c: Likewise.
219 * coverage.c: Likewise.
220 * cprop.c: Likewise.
221 * cse.c: Likewise.
222 * cselib.c: Likewise.
223 * dse.c: Likewise.
224 * emit-rtl.c: Likewise.
225 * explow.c: Likewise.
226 * final.c: Likewise.
227 * fold-const.c: Likewise.
228 * gcc.c: Likewise.
229 * gcse.c: Likewise.
230 * ggc-common.c: Likewise.
231 * ggc-page.c: Likewise.
232 * gimple-loop-interchange.cc: Likewise.
233 * gimple-loop-jam.c: Likewise.
234 * gimple-loop-versioning.cc: Likewise.
235 * gimple-ssa-split-paths.c: Likewise.
236 * gimple-ssa-sprintf.c: Likewise.
237 * gimple-ssa-store-merging.c: Likewise.
238 * gimple-ssa-strength-reduction.c: Likewise.
239 * gimple-ssa-warn-alloca.c: Likewise.
240 * gimple-ssa-warn-restrict.c: Likewise.
241 * graphite-isl-ast-to-gimple.c: Likewise.
242 * graphite-optimize-isl.c: Likewise.
243 * graphite-scop-detection.c: Likewise.
244 * graphite-sese-to-poly.c: Likewise.
245 * graphite.c: Likewise.
246 * haifa-sched.c: Likewise.
247 * hsa-gen.c: Likewise.
248 * ifcvt.c: Likewise.
249 * ipa-cp.c: Likewise.
250 * ipa-fnsummary.c: Likewise.
251 * ipa-inline-analysis.c: Likewise.
252 * ipa-inline.c: Likewise.
253 * ipa-polymorphic-call.c: Likewise.
254 * ipa-profile.c: Likewise.
255 * ipa-prop.c: Likewise.
256 * ipa-split.c: Likewise.
257 * ipa-sra.c: Likewise.
258 * ira-build.c: Likewise.
259 * ira-conflicts.c: Likewise.
260 * loop-doloop.c: Likewise.
261 * loop-invariant.c: Likewise.
262 * loop-unroll.c: Likewise.
263 * lra-assigns.c: Likewise.
264 * lra-constraints.c: Likewise.
265 * modulo-sched.c: Likewise.
266 * opt-suggestions.c: Likewise.
267 * opts.c: Likewise.
268 * postreload-gcse.c: Likewise.
269 * predict.c: Likewise.
270 * reload.c: Likewise.
271 * reorg.c: Likewise.
272 * resource.c: Likewise.
273 * sanopt.c: Likewise.
274 * sched-deps.c: Likewise.
275 * sched-ebb.c: Likewise.
276 * sched-rgn.c: Likewise.
277 * sel-sched-ir.c: Likewise.
278 * sel-sched.c: Likewise.
279 * shrink-wrap.c: Likewise.
280 * stmt.c: Likewise.
281 * targhooks.c: Likewise.
282 * toplev.c: Likewise.
283 * tracer.c: Likewise.
284 * trans-mem.c: Likewise.
285 * tree-chrec.c: Likewise.
286 * tree-data-ref.c: Likewise.
287 * tree-if-conv.c: Likewise.
288 * tree-inline.c: Likewise.
289 * tree-loop-distribution.c: Likewise.
290 * tree-parloops.c: Likewise.
291 * tree-predcom.c: Likewise.
292 * tree-profile.c: Likewise.
293 * tree-scalar-evolution.c: Likewise.
294 * tree-sra.c: Likewise.
295 * tree-ssa-ccp.c: Likewise.
296 * tree-ssa-dom.c: Likewise.
297 * tree-ssa-dse.c: Likewise.
298 * tree-ssa-ifcombine.c: Likewise.
299 * tree-ssa-loop-ch.c: Likewise.
300 * tree-ssa-loop-im.c: Likewise.
301 * tree-ssa-loop-ivcanon.c: Likewise.
302 * tree-ssa-loop-ivopts.c: Likewise.
303 * tree-ssa-loop-manip.c: Likewise.
304 * tree-ssa-loop-niter.c: Likewise.
305 * tree-ssa-loop-prefetch.c: Likewise.
306 * tree-ssa-loop-unswitch.c: Likewise.
307 * tree-ssa-math-opts.c: Likewise.
308 * tree-ssa-phiopt.c: Likewise.
309 * tree-ssa-pre.c: Likewise.
310 * tree-ssa-reassoc.c: Likewise.
311 * tree-ssa-sccvn.c: Likewise.
312 * tree-ssa-scopedtables.c: Likewise.
313 * tree-ssa-sink.c: Likewise.
314 * tree-ssa-strlen.c: Likewise.
315 * tree-ssa-structalias.c: Likewise.
316 * tree-ssa-tail-merge.c: Likewise.
317 * tree-ssa-threadbackward.c: Likewise.
318 * tree-ssa-threadedge.c: Likewise.
319 * tree-ssa-uninit.c: Likewise.
320 * tree-switch-conversion.c: Likewise.
321 * tree-vect-data-refs.c: Likewise.
322 * tree-vect-loop.c: Likewise.
323 * tree-vect-slp.c: Likewise.
324 * tree-vrp.c: Likewise.
325 * tree.c: Likewise.
326 * value-prof.c: Likewise.
327 * var-tracking.c: Likewise.
328
329 2019-11-12 Martin Liska <mliska@suse.cz>
330
331 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
332 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
333 macro.
334 (asan_sanitize_allocas_p): Likewise.
335 (asan_emit_stack_protection): Likewise.
336 (asan_protect_global): Likewise.
337 (instrument_derefs): Likewise.
338 (instrument_builtin_call): Likewise.
339 (asan_expand_mark_ifn): Likewise.
340 * auto-profile.c (auto_profile): Likewise.
341 * bb-reorder.c (copy_bb_p): Likewise.
342 (duplicate_computed_gotos): Likewise.
343 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
344 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
345 (try_crossjump_bb): Likewise.
346 * cfgexpand.c (defer_stack_allocation): Likewise.
347 (stack_protect_classify_type): Likewise.
348 (pass_expand::execute): Likewise.
349 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
350 (estimate_reg_pressure_cost): Likewise.
351 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
352 * combine.c (combine_instructions): Likewise.
353 (record_value_for_reg): Likewise.
354 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
355 (aarch64_option_default_params): Likewise.
356 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
357 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
358 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
359 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
360 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
361 (aarch64_allocate_and_probe_stack_space): Likewise.
362 (aarch64_expand_epilogue): Likewise.
363 (aarch64_override_options_internal): Likewise.
364 * config/alpha/alpha.c (alpha_option_override): Likewise.
365 * config/arm/arm.c (arm_option_override): Likewise.
366 (arm_valid_target_attribute_p): Likewise.
367 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
368 * config/i386/i386.c (get_probe_interval): Likewise.
369 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
370 (ix86_max_noce_ifcvt_seq_cost): Likewise.
371 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
372 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
373 (get_stack_clash_protection_guard_size): Likewise.
374 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
375 * config/s390/s390.c (allocate_stack_space): Likewise.
376 (s390_emit_prologue): Likewise.
377 (s390_option_override_internal): Likewise.
378 * config/sparc/sparc.c (sparc_option_override): Likewise.
379 * config/visium/visium.c (visium_option_override): Likewise.
380 * coverage.c (get_coverage_counts): Likewise.
381 (coverage_compute_profile_id): Likewise.
382 (coverage_begin_function): Likewise.
383 (coverage_end_function): Likewise.
384 * cse.c (cse_find_path): Likewise.
385 (cse_extended_basic_block): Likewise.
386 (cse_main): Likewise.
387 * cselib.c (cselib_invalidate_mem): Likewise.
388 * dse.c (dse_step1): Likewise.
389 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
390 (get_max_insn_count): Likewise.
391 (make_debug_insn_raw): Likewise.
392 (init_emit): Likewise.
393 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
394 * final.c (compute_alignments): Likewise.
395 * fold-const.c (fold_range_test): Likewise.
396 (fold_truth_andor): Likewise.
397 (tree_single_nonnegative_warnv_p): Likewise.
398 (integer_valued_real_single_p): Likewise.
399 * gcse.c (want_to_gcse_p): Likewise.
400 (prune_insertions_deletions): Likewise.
401 (hoist_code): Likewise.
402 (gcse_or_cprop_is_too_expensive): Likewise.
403 * ggc-common.c: Likewise.
404 * ggc-page.c (ggc_collect): Likewise.
405 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
406 (MAX_DATAREFS): Likewise.
407 (OUTER_STRIDE_RATIO): Likewise.
408 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
409 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
410 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
411 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
412 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
413 (imm_store_chain_info::output_merged_store): Likewise.
414 (pass_store_merging::process_store): Likewise.
415 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
416 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
417 (scop_to_isl_ast): Likewise.
418 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
419 (optimize_isl): Likewise.
420 * graphite-scop-detection.c (build_scops): Likewise.
421 * haifa-sched.c (set_modulo_params): Likewise.
422 (rank_for_schedule): Likewise.
423 (model_add_to_worklist): Likewise.
424 (model_promote_insn): Likewise.
425 (model_choose_insn): Likewise.
426 (queue_to_ready): Likewise.
427 (autopref_multipass_dfa_lookahead_guard): Likewise.
428 (schedule_block): Likewise.
429 (sched_init): Likewise.
430 * hsa-gen.c (init_prologue): Likewise.
431 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
432 (cond_move_process_if_block): Likewise.
433 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
434 (merge_agg_lats_step): Likewise.
435 (devirtualization_time_bonus): Likewise.
436 (hint_time_bonus): Likewise.
437 (incorporate_penalties): Likewise.
438 (good_cloning_opportunity_p): Likewise.
439 (ipcp_propagate_stage): Likewise.
440 * ipa-fnsummary.c (decompose_param_expr): Likewise.
441 (set_switch_stmt_execution_predicate): Likewise.
442 (analyze_function_body): Likewise.
443 (compute_fn_summary): Likewise.
444 * ipa-inline-analysis.c (estimate_growth): Likewise.
445 * ipa-inline.c (caller_growth_limits): Likewise.
446 (inline_insns_single): Likewise.
447 (inline_insns_auto): Likewise.
448 (can_inline_edge_by_limits_p): Likewise.
449 (want_early_inline_function_p): Likewise.
450 (big_speedup_p): Likewise.
451 (want_inline_small_function_p): Likewise.
452 (want_inline_self_recursive_call_p): Likewise.
453 (edge_badness): Likewise.
454 (recursive_inlining): Likewise.
455 (compute_max_insns): Likewise.
456 (early_inliner): Likewise.
457 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
458 * ipa-profile.c (ipa_profile): Likewise.
459 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
460 (ipa_analyze_node): Likewise.
461 (ipcp_transform_function): Likewise.
462 * ipa-split.c (consider_split): Likewise.
463 * ipa-sra.c (allocate_access): Likewise.
464 (process_scan_results): Likewise.
465 (ipa_sra_summarize_function): Likewise.
466 (pull_accesses_from_callee): Likewise.
467 * ira-build.c (loop_compare_func): Likewise.
468 (mark_loops_for_removal): Likewise.
469 * ira-conflicts.c (build_conflict_bit_table): Likewise.
470 * loop-doloop.c (doloop_optimize): Likewise.
471 * loop-invariant.c (gain_for_invariant): Likewise.
472 (move_loop_invariants): Likewise.
473 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
474 (decide_unroll_runtime_iterations): Likewise.
475 (decide_unroll_stupid): Likewise.
476 (expand_var_during_unrolling): Likewise.
477 * lra-assigns.c (spill_for): Likewise.
478 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
479 * modulo-sched.c (sms_schedule): Likewise.
480 (DFA_HISTORY): Likewise.
481 * opts.c (default_options_optimization): Likewise.
482 (finish_options): Likewise.
483 (common_handle_option): Likewise.
484 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
485 (if): Likewise.
486 * predict.c (get_hot_bb_threshold): Likewise.
487 (maybe_hot_count_p): Likewise.
488 (probably_never_executed): Likewise.
489 (predictable_edge_p): Likewise.
490 (predict_loops): Likewise.
491 (expr_expected_value_1): Likewise.
492 (tree_predict_by_opcode): Likewise.
493 (handle_missing_profiles): Likewise.
494 * reload.c (find_equiv_reg): Likewise.
495 * reorg.c (redundant_insn): Likewise.
496 * resource.c (mark_target_live_regs): Likewise.
497 (incr_ticks_for_insn): Likewise.
498 * sanopt.c (pass_sanopt::execute): Likewise.
499 * sched-deps.c (sched_analyze_1): Likewise.
500 (sched_analyze_2): Likewise.
501 (sched_analyze_insn): Likewise.
502 (deps_analyze_insn): Likewise.
503 * sched-ebb.c (schedule_ebbs): Likewise.
504 * sched-rgn.c (find_single_block_region): Likewise.
505 (too_large): Likewise.
506 (haifa_find_rgns): Likewise.
507 (extend_rgns): Likewise.
508 (new_ready): Likewise.
509 (schedule_region): Likewise.
510 (sched_rgn_init): Likewise.
511 * sel-sched-ir.c (make_region_from_loop): Likewise.
512 * sel-sched-ir.h (MAX_WS): Likewise.
513 * sel-sched.c (process_pipelined_exprs): Likewise.
514 (sel_setup_region_sched_flags): Likewise.
515 * shrink-wrap.c (try_shrink_wrapping): Likewise.
516 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
517 * toplev.c (print_version): Likewise.
518 (process_options): Likewise.
519 * tracer.c (tail_duplicate): Likewise.
520 * trans-mem.c (tm_log_add): Likewise.
521 * tree-chrec.c (chrec_fold_plus_1): Likewise.
522 * tree-data-ref.c (split_constant_offset): Likewise.
523 (compute_all_dependences): Likewise.
524 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
525 * tree-inline.c (remap_gimple_stmt): Likewise.
526 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
527 * tree-parloops.c (MIN_PER_THREAD): Likewise.
528 (create_parallel_loop): Likewise.
529 * tree-predcom.c (determine_unroll_factor): Likewise.
530 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
531 * tree-sra.c (analyze_all_variable_accesses): Likewise.
532 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
533 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
534 (dse_optimize_redundant_stores): Likewise.
535 (dse_classify_store): Likewise.
536 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
537 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
538 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
539 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
540 (try_peel_loop): Likewise.
541 (tree_unroll_loops_completely): Likewise.
542 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
543 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
544 (MAX_CONSIDERED_GROUPS): Likewise.
545 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
546 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
547 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
548 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
549 (L1_CACHE_SIZE_BYTES): Likewise.
550 (L2_CACHE_SIZE_BYTES): Likewise.
551 (should_issue_prefetch_p): Likewise.
552 (schedule_prefetches): Likewise.
553 (determine_unroll_factor): Likewise.
554 (volume_of_references): Likewise.
555 (add_subscript_strides): Likewise.
556 (self_reuse_distance): Likewise.
557 (mem_ref_count_reasonable_p): Likewise.
558 (insn_to_prefetch_ratio_too_small_p): Likewise.
559 (loop_prefetch_arrays): Likewise.
560 (tree_ssa_prefetch_arrays): Likewise.
561 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
562 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
563 (convert_mult_to_fma): Likewise.
564 (math_opts_dom_walker::after_dom_children): Likewise.
565 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
566 (hoist_adjacent_loads): Likewise.
567 (gate_hoist_loads): Likewise.
568 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
569 (compute_partial_antic_aux): Likewise.
570 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
571 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
572 (vn_reference_lookup): Likewise.
573 (do_rpo_vn): Likewise.
574 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
575 * tree-ssa-sink.c (select_best_block): Likewise.
576 * tree-ssa-strlen.c (new_stridx): Likewise.
577 (new_addr_stridx): Likewise.
578 (get_range_strlen_dynamic): Likewise.
579 (class ssa_name_limit_t): Likewise.
580 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
581 (create_variable_info_for_1): Likewise.
582 (init_alias_vars): Likewise.
583 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
584 (tail_merge_optimize): Likewise.
585 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
586 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
587 (thread_jumps::find_jump_threads_backwards): Likewise.
588 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
589 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
590 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
591 (jump_table_cluster::can_be_handled): Likewise.
592 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
593 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
594 (param_switch_conversion_branch_ratio): Likewise.
595 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
596 (vect_enhance_data_refs_alignment): Likewise.
597 (vect_prune_runtime_alias_test_list): Likewise.
598 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
599 (vect_get_datarefs_in_loop): Likewise.
600 (vect_analyze_loop): Likewise.
601 * tree-vect-slp.c (vect_slp_bb): Likewise.
602 * tree-vectorizer.h: Likewise.
603 * tree-vrp.c (find_switch_asserts): Likewise.
604 (vrp_prop::check_mem_ref): Likewise.
605 * tree.c (wide_int_to_tree_1): Likewise.
606 (cache_integer_cst): Likewise.
607 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
608 (reverse_op): Likewise.
609 (vt_find_locations): Likewise.
610
611 2019-11-12 Martin Liska <mliska@suse.cz>
612
613 * Makefile.in: Include params.opt.
614 * flag-types.h (enum parloops_schedule_type): Add
615 parloops_schedule_type used in params.opt.
616 * params.opt: New file.
617
618 2019-11-12 Martin Liska <mliska@suse.cz>
619
620 * common.opt: Remove --param and --param= options.
621 * opt-functions.awk: Mark CL_PARAMS for options
622 that have Param keyword.
623 * opts-common.c (decode_cmdline_options_to_array):
624 Replace --param key=value with --param=key=value.
625 * opts.c (print_filtered_help): Remove special
626 printing of params.
627 (print_specific_help): Update title for params.
628 (common_handle_option): Do not handle OPT__param.
629 opts.h (SET_OPTION_IF_UNSET): New macro.
630 * doc/options.texi: Document Param keyword.
631
632 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
633 Frederik Harwath <frederik@codesourcery.com>
634 Thomas Schwinge <thomas@codesourcery.com>
635
636 gcc/
637 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
638 enumeration constant.
639 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
640 (is_gimple_omp_offloaded): Likewise.
641 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
642 constant. Adjust the value of ORT_NONE accordingly.
643 (is_gimple_stmt): Handle OACC_SERIAL.
644 (oacc_default_clause): Handle ORT_ACC_SERIAL.
645 (gomp_needs_data_present): Likewise.
646 (gimplify_adjust_omp_clauses): Likewise.
647 (gimplify_omp_workshare): Handle OACC_SERIAL.
648 (gimplify_expr): Likewise.
649 * omp-expand.c (expand_omp_target):
650 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
651 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
652 * omp-low.c (is_oacc_parallel): Rename function to...
653 (is_oacc_parallel_or_serial): ... this.
654 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
655 (scan_sharing_clauses): Adjust accordingly.
656 (scan_omp_for): Likewise.
657 (lower_oacc_head_mark): Likewise.
658 (convert_from_firstprivate_int): Likewise.
659 (lower_omp_target): Likewise.
660 (check_omp_nesting_restrictions): Handle
661 GF_OMP_TARGET_KIND_OACC_SERIAL.
662 (lower_oacc_reductions): Likewise.
663 (lower_omp_target): Likewise.
664 * tree.def (OACC_SERIAL): New tree code.
665 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
666
667 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
668
669 2019-11-12 Jakub Jelinek <jakub@redhat.com>
670
671 PR target/92449
672 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
673 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
674
675 PR tree-optimization/92452
676 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
677 into NULL_TREE, set up_bound to NULL_TREE instead of computing
678 MINUS_EXPR on it.
679
680 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
681
682 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
683 safelen with 0.
684
685 2019-11-12 Alan Modra <amodra@gmail.com>
686
687 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
688 element of unspec vec.
689 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
690 PC-relative TLS.
691 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
692 (tls_gd_pcrel, tls_ld_pcrel): New insns.
693 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
694 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
695
696 2019-11-12 Alan Modra <amodra@gmail.com>
697
698 * config/rs6000/rs6000.opt (mtls-markers): Delete.
699 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
700 (IS_NOMARK_TLSGETADDR): Likewise.
701 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
702 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
703 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
704 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
705 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
706 (rs6000_indirect_call_template_1): Likewise.
707 (rs6000_pltseq_template): Likewise.
708 (rs6000_opt_vars): Remove "tls-markers" entry.
709 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
710 with TARGET_ELF.
711 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
712 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
713 (pltseq_plt_pcrel<mode>): Likewise.
714 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
715 (call_value_local64): Likewise.
716 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
717 output and length attribute sub-expression.
718 (call_value_nonlocal_sysv<mode>),
719 (call_value_nonlocal_sysv_secure<mode>),
720 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
721 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
722 (call_value_indirect_pcrel<mode>): Likewise.
723 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
724 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
725 * configure: Regenerate.
726 * config.in: Regenerate.
727
728 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
729
730 * config/rs6000/predicates.md (prefixed_memory): New predicate.
731 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
732 address being a prefixed load/store.
733 (stack_protect_testdi): Deal with either address being a prefixed
734 load.
735
736 2019-11-11 Jakub Jelinek <jakub@redhat.com>
737
738 PR bootstrap/92433
739 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
740 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
741 std::swap.
742
743 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
744
745 PR tree-optimization/92420
746 * tree-vect-stmts.c (get_negative_load_store_type): Move further
747 up file.
748 (get_group_load_store_type): Use it for reversed SLP accesses.
749
750 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
751
752 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
753 summary.
754 (ipcp_transformation_t::duplicate): Break out from ...
755 (ipa_node_params_t::duplicate): ... here; add copying of agg
756 replacements.
757 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
758 (ipcp_transformation_t): Add duplicate.
759
760 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
761
762 PR fortran/91828
763 * doc/install.texi: Document that the minimum MPFR version is
764 3.1.0.
765
766 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
767
768 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
769 use new register constraint letters.
770
771 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
772
773 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
774 as well, if interesting recover the symbol and re-legitimize the
775 pic address.
776
777 2019-11-11 Martin Liska <mliska@suse.cz>
778
779 * dbgcnt.def (DEBUG_COUNTER): Sort counters
780 alphabetically.
781
782 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
783
784 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
785 account when checking if there are enough iterations to vectorize
786 epilogue.
787
788 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
789 Kwok Cheung Yeung <kcy@codesourcery.com>
790
791 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
792 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
793 (LANG_HOOKS_DECLS): Rename also here.
794 * langhooks.h (lang_hooks_for_decls): Rename
795 omp_is_optional_argument to omp_check_optional_argument; take
796 additional bool argument.
797 * omp-general.h (omp_check_optional_argument): Likewise.
798 * omp-general.h (omp_check_optional_argument): Likewise.
799 * omp-low.c (lower_omp_target): Update calls; handle absent
800 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
801
802 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
803
804 PR target/87833
805 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
806 -fPIC and -shared the last to create offload image.
807
808 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
809
810 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
811 of 'offset'.
812
813 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
814 (config.status): Use/depend on it.
815 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
816 * configure: Regenerate.
817
818 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
819
820 PR tree-optimization/88760
821 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
822 * gcc/common/config/rs6000/rs6000-common.c
823 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
824 Turn on -funroll-loops and -munroll-only-small-loops.
825 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
826 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
827 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
828 Turn off -munroll-only-small-loops for explicit -funroll-loops.
829 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
830 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
831
832 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
833
834 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
835 Make scalar_load, vector_load, unaligned_load and
836 vector_gather_load cost more to conform hardware latency and
837 insn cost settings.
838
839 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
840
841 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
842 (MACHO_SYMBOL_LINKER_VIS_P): New.
843
844 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
845
846 * lra-spills.c (assign_spill_hard_regs): Do not spill into
847 registers in eliminable_regset.
848
849 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
850
851 * ipa-inline.c (compute_uninlined_call_time,
852 compute_inlined_call_time): Take edge frequency as
853 parameter rather than computing it by itself.
854 (big_speedup_p, edge_badness): Manually CSE sreal
855 frequency calculations.
856
857 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
858
859 * profile-count.c (profile_count::to_sreal_scale): Short circuit
860 case where profiles are same.
861
862 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
863
864 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
865
866 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
867
868 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
869 args summaries of inlined edge unless it holds info about
870 described reference.
871
872 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
873
874 * config/rs6000/rs6000.md (CC_any): New mode iterator.
875 (*movcc_internal1): Rename to...
876 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
877
878 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
879
880 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
881 (cgraph_node::create_virtual_clone): Copy it.
882 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
883 summaries.
884 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
885 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
886 is disabled.
887 (propagate_constants_across_call): If callee is not analyzed, give up.
888 (propagate_constants_topo): Lower to bottom latties of all callees of
889 functions with ipa-cp disabled.
890 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
891 (cgraph_edge_brings_value_p): Check for availability first.
892 (create_specialized_node): Set ipcp_clone.
893 (ipcp_store_bits_results): Check that info is present.
894 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
895 thunks.
896 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
897 conservative when callee summary is missing.
898 (remap_edge_summaries): Lookup call summary only when needed.
899 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
900 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
901 Use get_create.
902 (ipa_analyze_node): Use get_create.
903 (propagate_controlled_uses): Do not propagate when function is not
904 analyzed.
905 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
906 (ipa_read_node_info): Use get_create.
907 * ipa-prop.h (IPA_NODE_REF): Use get.
908 (IPA_NODE_REF_GET_CREATE): New.
909
910 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
911
912 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
913 on function symbol.
914
915 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
916
917 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
918 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
919 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
920 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
921
922 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
923
924 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
925 capping the growth cumulated.
926 (offline_size): Break out from ...
927 (estimate_growth): ... here.
928 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
929 parameters.
930 (growth_likely_positive): Turn to ...
931 (growth_positive_p): Re-implement.
932 * ipa-inline.h (growth_likely_positive): Remove.
933 (growth_positive_p): Declare.
934 * ipa-inline.c (want_inline_small_function_p): Use
935 growth_positive_p.
936 (want_inline_function_to_all_callers_p): Likewise.
937
938 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
939
940 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
941 calculation of min_size.
942 (ipa_update_overall_fn_summary): Likewise.
943
944 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
945
946 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
947 estimate_edge_devirt_benefit when not computing hints;
948 do not compute time when not asked for.
949 (estimate_calls_size_and_time): Pass NULL hints and time when
950 these are not computed; do not evaluate hint predicates when these are
951 not computed.
952 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
953 frequency.
954
955 2019-11-09 Jakub Jelinek <jakub@redhat.com>
956
957 PR tree-optimization/92401
958 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
959 if res_op->code is an expression with code length 1.
960 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
961 if res_op->code is an expression with code length 2.
962 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
963 if res_op->code is an expression with code length 3.
964
965 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
966
967 * config/darwin.c (machopic_mcount_stub_name): Validate the
968 symbol stub name when it is created.
969 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
970 stub validation.
971
972 2019-11-09 Jakub Jelinek <jakub@redhat.com>
973
974 * symtab.c: Fix comment typos.
975 * cgraphunit.c: Likewise.
976 * cgraph.h: Likewise.
977 * cgraphclones.c: Likewise.
978 * cgraph.c: Likewise.
979 * varpool.c: Likewise.
980 * tree-ssa-strlen.c: Likewise.
981 * ipa-sra.c: Likewise.
982 (scan_expr_access, check_all_callers_for_issues): Fix typo
983 in a dump message.
984
985 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
986
987 * config/darwin-protos.h: Add include quard.
988
989 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
990
991 * range-op.h (range_operator::fold_range): Return result in a
992 reference parameter instead of by value.
993 (range_operator::wi_fold): Same.
994 * range-op.cc (range_operator::wi_fold): Return result in a reference
995 parameter instead of by value.
996 (range_operator::fold_range): Same.
997 (value_range_from_overflowed_bounds): Same.
998 (value_range_with_overflow): Same
999 (create_possibly_reversed_range): Same.
1000 (operator_equal::fold_range): Same.
1001 (operator_not_equal::fold_range): Same.
1002 (operator_lt::fold_range): Same.
1003 (operator_le::fold_range): Same.
1004 (operator_gt::fold_range): Same.
1005 (operator_ge::fold_range): Same.
1006 (operator_plus::wi_fold): Same.
1007 (operator_plus::op1_range): Change call to fold_range.
1008 (operator_plus::op2_range): Change call to fold_range.
1009 (operator_minus::wi_fold): Return result via reference parameter.
1010 (operator_minus::op1_range): Change call to fold_range.
1011 (operator_minus::op2_range): Change call to fold_range.
1012 (operator_min::wi_fold): Return result via reference parameter.
1013 (operator_max::wi_fold): Same.
1014 (cross_product_operator::wi_cross_product): Same.
1015 (operator_mult::wi_fold): Same.
1016 (operator_div::wi_fold): Same.
1017 (operator_div op_floor_div): Fix whitespace.
1018 (operator_exact_divide::op1_range): Change call to fold_range.
1019 (operator_lshift::fold_range): Return result via reference parameter.
1020 (operator_lshift::wi_fold): Same.
1021 (operator_rshift::fold_range): Same.
1022 (operator_rshift::wi_fold): Same.
1023 (operator_cast::fold_range): Same.
1024 (operator_cast::op1_range): Change calls to fold_range.
1025 (operator_logical_and::fold_range): Return result via reference.
1026 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
1027 (operator_bitwise_and::wi_fold): Return result via reference.
1028 (operator_logical_or::fold_range): Same.
1029 (operator_bitwise_or::wi_fold): Same.
1030 (operator_bitwise_xor::wi_fold): Same.
1031 (operator_trunc_mod::wi_fold): Same.
1032 (operator_logical_not::fold_range): Same.
1033 (operator_bitwise_not::fold_range): Same.
1034 (operator_bitwise_not::op1_range): Change call to fold_range.
1035 (operator_cst::fold_range): Return result via reference.
1036 (operator_identity::fold_range): Same.
1037 (operator_abs::wi_fold): Same.
1038 (operator_absu::wi_fold): Same.
1039 (operator_negate::fold_range): Same.
1040 (operator_negate::op1_range): Change call to fold_range.
1041 (operator_addr_expr::fold_range): Return result via reference.
1042 (operator_addr_expr::op1_range): Change call to fold_range.
1043 (operator_pointer_plus::wi_fold): Return result via reference.
1044 (operator_pointer_min_max::wi_fold): Same.
1045 (operator_pointer_and::wi_fold): Same.
1046 (operator_pointer_or::wi_fold): Same.
1047 (range_op_handler): Change call to fold_range.
1048 (range_cast): Same.
1049 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
1050 fold_range.
1051 (range_fold_unary_symbolics_p): Same.
1052 (range_fold_binary_expr): Same.
1053 (range_fold_unary_expr): Same.
1054
1055 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1056
1057 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
1058 vector type as an argument rather than reading it from the
1059 stmt_vec_info.
1060 (vect_create_epilog_for_reduction): Update accordingly.
1061 (vectorizable_reduction): Likewise.
1062 (vect_transform_cycle_phi): Likewise.
1063
1064 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
1065
1066 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
1067 the comparison codes that make sense for the mode used, and only the
1068 codes that can be done with a single branch instruction.
1069
1070 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
1071
1072 PR tree-optimization/92351
1073 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
1074 peeling the main loop for alignment, make sure to set the misalignment
1075 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
1076
1077 2019-11-08 Richard Biener <rguenther@suse.de>
1078
1079 * dbgcnt.def (ivopts_loop): Add.
1080 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
1081 ivopts_loop before optimizing a loop.
1082
1083 2019-11-08 Richard Biener <rguenther@suse.de>
1084
1085 PR ipa/92409
1086 * tree-inline.c (declare_return_variable): Properly handle
1087 type mismatches for the return slot.
1088
1089 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
1090
1091 PR target/92095
1092 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
1093 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
1094 change.
1095 (got_helper_needed): New static variable.
1096 (output_load_pcrel_sym): New function.
1097 (get_pc_thunk_name): Remove after inlining...
1098 (load_got_register): ...here. Rework the initialization of the GOT
1099 register and of the GOT helper.
1100 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
1101 (sparc_file_end): Test got_helper_needed to decide whether the GOT
1102 helper must be emitted. Use output_asm_insn instead of fprintf.
1103 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
1104 if optimization is enabled.
1105 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
1106 by calling output_load_pcrel_sym.
1107
1108 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1109
1110 * tree-sra.c (create_access): Delay disqualifying the base
1111 for poly_int values until we know we have a base.
1112
1113 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
1114
1115 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
1116 for loops with SIMDUID set. Enable epilogue vectorization for loops
1117 with SIMDLEN set after finding a main loop with a VF that matches it.
1118
1119 2019-11-08 Jakub Jelinek <jakub@redhat.com>
1120
1121 PR target/92038
1122 * gimple-ssa-store-merging.c (find_constituent_stores): For return
1123 value only, return non-NULL if there is a single non-clobber
1124 constituent store even if there are constituent clobbers and return
1125 one of clobber constituent stores if all constituent stores are
1126 clobbers.
1127 (split_group): Handle clobbers.
1128 (imm_store_chain_info::output_merged_store): When computing
1129 bzero_first, look after all clobbers at the start. Don't count
1130 clobber stmts in orig_num_stmts, except if the first orig store is
1131 a clobber covering the whole area and split_stores cover the whole
1132 area, consider equal number of stmts ok. Punt if split_stores
1133 contains only ->orig stores and their number plus number of original
1134 clobbers is equal to original number of stmts. For ->orig, look past
1135 clobbers in the constituent stores.
1136 (imm_store_chain_info::output_merged_stores): Don't remove clobber
1137 stmts.
1138 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
1139 rhs.
1140 (store_valid_for_store_merging_p): Allow clobber stmts.
1141 (verify_clear_bit_region_be): Fix up a thinko in function comment.
1142
1143 PR c++/92384
1144 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
1145 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
1146 slot.
1147 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
1148 force creation of a unique data.stack_parm slot.
1149
1150 2019-11-08 Richard Biener <rguenther@suse.de>
1151
1152 * genmatch.c (expr::gen_transform): Use the resimplify
1153 member function instead of hard-coding the gimple_resimplifyN variant.
1154 (dt_simplify::gen_1): Likewise.
1155
1156 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1157
1158 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
1159 POLY_INT_CST.
1160
1161 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1162
1163 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
1164 instead of INTEGER_CST.
1165
1166 2019-11-08 Richard Biener <rguenther@suse.de>
1167
1168 PR tree-optimization/92324
1169 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
1170 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
1171 sign-conversions as necessary.
1172 (vectorizable_reduction): Reject conversions in the chain
1173 that are not sign-conversions, base analysis on a non-converting
1174 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
1175 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
1176 for debug stmts.
1177 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
1178 (STMT_VINFO_REDUC_VECTYPE): Likewise.
1179
1180 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
1181
1182 PR target/92055
1183 * config/avr/avr.opt (-mdouble=, -mlong-double=):
1184 Fix a missing '-' when displaying these options in the
1185 help screen.
1186
1187 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1188
1189 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
1190
1191 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1192
1193 * config/aarch64/aarch64-builtins.c
1194 (aarch64_builtin_vectorized_function): Remove bswap handling.
1195
1196 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1197
1198 * tree-core.h (tree_type_common::indivisible_p): New member variable.
1199 * tree.h (TYPE_INDIVISIBLE_P): New macro.
1200 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
1201 Treat the vector types as indivisible.
1202
1203 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1204
1205 * optabs.def (gather_load_optab, mask_gather_load_optab)
1206 (scatter_store_optab, mask_scatter_store_optab): Turn into
1207 conversion optabs, with the offset mode given explicitly.
1208 * doc/md.texi: Update accordingly.
1209 * config/aarch64/aarch64-sve-builtins-base.cc
1210 (svld1_gather_impl::expand): Likewise.
1211 (svst1_scatter_impl::expand): Likewise.
1212 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
1213 (expand_scatter_store_optab_fn): Likewise.
1214 (direct_gather_load_optab_supported_p): Likewise.
1215 (direct_scatter_store_optab_supported_p): Likewise.
1216 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
1217 to be argument 4.
1218 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
1219 (internal_gather_scatter_fn_supported_p): Replace the offset sign
1220 argument with the offset vector type. Require the two vector
1221 types to have the same number of elements but allow their element
1222 sizes to be different. Treat the optabs as conversion optabs.
1223 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
1224 prototype accordingly.
1225 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
1226 (supports_vec_convert_optab_p): ...this new function.
1227 (supports_vec_gather_load_p): Update accordingly.
1228 (supports_vec_scatter_store_p): Likewise.
1229 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
1230 Replace the offset sign and bits parameters with a scalar type tree.
1231 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
1232 Pass back the offset vector type instead of the scalar element type.
1233 Allow the offset to be wider than the memory elements. Search for
1234 an offset type that the target supports, stopping once we've
1235 reached the maximum of the element size and pointer size.
1236 Update call to internal_gather_scatter_fn_supported_p.
1237 (vect_check_gather_scatter): Update calls accordingly.
1238 When testing a new scale before knowing the final offset type,
1239 check whether the scale is supported for any signed or unsigned
1240 offset type. Check whether the target supports the source and
1241 target types of a conversion before deciding whether to look
1242 through the conversion. Record the chosen offset_vectype.
1243 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
1244 (vect_recog_gather_scatter_pattern): Get the scalar offset type
1245 directly from the gs_info's offset_vectype instead. Pass a zero
1246 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
1247 * tree-vect-stmts.c (check_load_store_masking): Update call to
1248 internal_gather_scatter_fn_supported_p, passing the offset vector
1249 type recorded in the gs_info.
1250 (vect_truncate_gather_scatter_offset): Update call to
1251 vect_check_gather_scatter, leaving it to search for a valid
1252 offset vector type.
1253 (vect_use_strided_gather_scatters_p): Convert the offset to the
1254 element type of the gs_info's offset_vectype.
1255 (vect_get_gather_scatter_ops): Get the offset vector type directly
1256 from the gs_info.
1257 (vect_get_strided_load_store_ops): Likewise.
1258 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
1259 and IFN_MASK_GATHER_LOAD.
1260 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
1261 (gather_load<mode><v_int_equiv>): ...this.
1262 (mask_gather_load<mode>): Rename to...
1263 (mask_gather_load<mode><v_int_equiv>): ...this.
1264 (scatter_store<mode>): Rename to...
1265 (scatter_store<mode><v_int_equiv>): ...this.
1266 (mask_scatter_store<mode>): Rename to...
1267 (mask_scatter_store<mode><v_int_equiv>): ...this.
1268
1269 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
1270
1271 PR target/92132
1272 * config/rs6000/predicates.md
1273 (signed_or_equality_comparison_operator): New predicate.
1274 (unsigned_or_equality_comparison_operator): Likewise.
1275 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
1276 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
1277 * config/rs6000/vector.md
1278 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
1279 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
1280 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
1281 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
1282 vector modes and same-size integer vector modes.
1283 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
1284 (vector_lt<mode> for VEC_F): New expand.
1285 (vector_le<mode> for VEC_F): Likewise.
1286 (vector_ne<mode> for VEC_F): Likewise.
1287 (vector_unge<mode> for VEC_F): Likewise.
1288 (vector_ungt<mode> for VEC_F): Likewise.
1289 (vector_unle<mode> for VEC_F): Likewise.
1290 (vector_unlt<mode> for VEC_F): Likewise.
1291 (vector_uneq<mode>): Expose name.
1292 (vector_ltgt<mode>): Likewise.
1293 (vector_unordered<mode>): Likewise.
1294 (vector_ordered<mode>): Likewise.
1295
1296 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
1297
1298 PR target/92295
1299 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
1300 Enhance ix86_expand_vector_init_concat.
1301
1302 2019-11-08 Joseph Myers <joseph@codesourcery.com>
1303
1304 * doc/invoke.texi (-Wold-style-definition): Document () not being
1305 considered an old-style definition for C2x.
1306
1307 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
1308
1309 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
1310 Enhance comment.
1311 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
1312 insn patterns using ldcw instruction.
1313 (memory_barrier): Remove insn pattern using sync instruction.
1314 * config/pa/pa.opt (coherent-ldcw): New option.
1315 (ordered): New option.
1316
1317 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
1318
1319 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
1320 valid conditions.
1321
1322 2019-11-07 Jakub Jelinek <jakub@redhat.com>
1323
1324 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
1325 typo - mistmatch -> mismatch.
1326 * ipa-profile.c (ipa_profile): Likewise.
1327 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
1328 - mistmatch -> mismatch.
1329
1330 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
1331
1332 * simplify-rtx.c (comparison_to_mask): New function.
1333 (mask_to_comparison): New function.
1334 (simplify_logical_relational_operation): New function.
1335 (simplify_binary_operation_1): Call
1336 simplify_logical_relational_operation.
1337
1338 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
1339
1340 PR other/92090
1341 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
1342 modes for integer constants.
1343
1344 2019-11-07 Jan Hubicka <jh@suse.cz>
1345
1346 PR ipa/92406
1347 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
1348 summary.
1349
1350 2019-11-07 Jan Hubicka <jh@suse.cz>
1351
1352 * optc-save-gen.awk: Generate cl_target_option_free
1353 and cl_optimization_option_free.
1354 * opth-en.awk: Declare cl_target_option_free
1355 and cl_optimization_option_free.
1356 * tree.c (free_node): Use it.
1357
1358 2019-11-06 Jan Hubicka <jh@suse.cz>
1359
1360 * lto-streamer-in.c: Include alloc-pool.h.
1361 (freeing_string_slot_hasher): Remove.
1362 (string_slot_allocator): New object allocator.
1363 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
1364 (file_name_obstack): New obstack.
1365 (canon_file_name): Allocate in obstack and allocator.
1366 (lto_reader_init): Initialize obstack and allocator.
1367 (lto_free_file_name_hash): New function.
1368 * lto-streamer.h (lto_free_file_name_hash): New.
1369
1370 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
1371
1372 PR tree-optimization/89134
1373 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
1374 * params.def: Add min-loop-cond-split-prob.
1375 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
1376 outside checks on loop into the function.
1377 (split_info): New class.
1378 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
1379 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
1380 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
1381 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
1382 (stmt_semi_invariant_p, branch_removable_p): Likewise.
1383 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
1384 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
1385 (split_loop_on_cond): Likewise.
1386 (tree_ssa_split_loops): Add loop split on conditional statement.
1387
1388 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
1389
1390 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
1391 pattern.
1392
1393 2019-11-07 Richard Biener <rguenther@suse.de>
1394
1395 PR tree-optimization/92405
1396 * tree-vect-loop.c (vectorizable_reduction): Appropriately
1397 restrict lane-reducing ops to single stmt chains.
1398
1399 2019-11-07 Martin Jambor <mjambor@suse.cz>
1400
1401 PR lto/70929
1402 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
1403 * cgraph.h (gimple_check_call_matching_types): Remove
1404 * cgraph.c (gimple_check_call_args): Likewise.
1405 (gimple_check_call_matching_types): Likewise.
1406 (symbol_table::create_edge): Do not call
1407 gimple_check_call_matching_types.
1408 (cgraph_edge::make_direct): Likewise.
1409 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1410 * value-prof.h (check_ic_target): Remove.
1411 * value-prof.c (check_ic_target): Remove.
1412 (gimple_ic_transform): Do nat call check_ic_target.
1413 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
1414 (afdo_indirect_call): Likewise.
1415 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
1416 gimple_check_call_matching_types.
1417 * ipa-inline.c (early_inliner): Likewise.
1418
1419 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1420
1421 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
1422 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
1423 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
1424 * config/arm/arm_acle_builtins.def: Define builtins for the above.
1425 * config/arm/iterators.md (USSAT16): New int_iterator.
1426 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
1427 (sup): Likewise.
1428 * config/arm/predicates.md (ssat16_imm): New predicate.
1429 (usat16_imm): Likewise.
1430 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
1431
1432 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1433
1434 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
1435 New define_insns.
1436 (arm_<simd32_op>): New define_expands.
1437 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
1438 __smuad, __smuadx): Define.
1439 * config/arm/arm_acle_builtins.def: Define builtins for the above.
1440 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
1441 (SIMD32_BINOP_Q): Likewise.
1442 (simd32_op): Handle the above.
1443 * config/arm/unspecs.md: Define unspecs for the above.
1444
1445 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1446
1447 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
1448 * config/arm/arm.md (APSRGE_REGNUM): Define.
1449 (arm_<simd32_op>): New define_insn.
1450 (arm_sel): Likewise.
1451 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
1452 (CALL_USED_REGISTERS): Likewise.
1453 (REG_ALLOC_ORDER): Likewise.
1454 (FIRST_PSEUDO_REGISTER): Update value.
1455 (ARM_GE_BITS_READ): Define.
1456 * config/arm/arm.c (arm_conditional_register_usage): Clear
1457 APSRGE_REGNUM from operand_reg_set.
1458 (arm_ge_bits_access): Define.
1459 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
1460 ARM_BUIILTIN_sel.
1461 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
1462 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
1463 FAIL if ARM_GE_BITS_READ.
1464 (*arm_add<mode>3): New define_insn.
1465 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
1466 (*arm_sub<mode>3): New define_insn.
1467 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
1468 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
1469 __usub16): Define.
1470 * config/arm/arm_acle_builtins.def: Define builtins for the above.
1471 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
1472 (simd32_op): Handle the above.
1473 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
1474 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
1475 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
1476 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
1477
1478 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1479
1480 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
1481 (arm_smlabb): New define_expand.
1482 (*maddhisi4tb): Rename to...
1483 (maddhisi4tb): ... This.
1484 (*maddhisi4tt): Rename to...
1485 (maddhisi4tt): ... This.
1486 (arm_smlatb_setq): New define_insn.
1487 (arm_smlatb): New define_expand.
1488 (arm_smlatt_setq): New define_insn.
1489 (arm_smlatt): New define_expand.
1490 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
1491 (arm_<smlaw_op>): New define_expand.
1492 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
1493 __smlawb, __smlawt): Define.
1494 * config/arm_acle_builtins.def: Define builtins for the above.
1495 * config/arm/iterators.md (SMLAWBT): New int_iterator.
1496 (slaw_op): New int_attribute.
1497 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
1498
1499 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1500
1501 * config/arm/arm.md (arm_<ss_op>): New define_expand.
1502 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
1503 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
1504 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
1505 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
1506 (ss_op): New code_attr.
1507
1508 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1509
1510 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
1511 * config/arm/arm.md (APSRQ_REGNUM): Define.
1512 (add_setq): New define_subst.
1513 (add_clobber_q_name): New define_subst_attr.
1514 (add_clobber_q_pred): Likewise.
1515 (maddhisi4): Change to define_expand. Split into mult and add if
1516 ARM_Q_BIT_READ.
1517 (arm_maddhisi4): New define_insn.
1518 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
1519 (*maddhisi4tt): Likewise.
1520 (arm_ssat): New define_expand.
1521 (arm_usat): Likewise.
1522 (arm_get_apsr): New define_insn.
1523 (arm_set_apsr): Likewise.
1524 (arm_saturation_occurred): New define_expand.
1525 (arm_set_saturation): Likewise.
1526 (*satsi_<SAT:code>): Rename to...
1527 (satsi_<SAT:code><add_clobber_q_name>): ... This.
1528 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
1529 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
1530 (CALL_USED_REGISTERS): Mark apsrq.
1531 (FIRST_PSEUDO_REGISTER): Update value.
1532 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
1533 (machine_function): Add q_bit_access.
1534 (ARM_Q_BIT_READ): Define.
1535 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
1536 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
1537 operand_reg_set.
1538 (arm_q_bit_access): Define.
1539 * config/arm/arm-builtins.c: Include stringpool.h.
1540 (arm_sat_binop_imm_qualifiers,
1541 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
1542 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
1543 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
1544 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
1545 SET_SAT_QUALIFIERS): Likewise.
1546 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
1547 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
1548 Handle 0 argument expander.
1549 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
1550 (arm_check_builtin_call): Define.
1551 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
1552 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
1553 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
1554 (arm_q_bit_access): Likewise.
1555 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
1556 __saturation_occurred, __set_saturation_occurred): Define.
1557 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
1558 saturation_occurred, set_saturation_occurred.
1559 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
1560 (UNSPEC_APSR_READ): Likewise.
1561 (VUNSPEC_APSR_WRITE): Likewise.
1562 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
1563 (*arm_ssadd<mode>3): New define_insn.
1564 (sssub<mode>3): Convert to define_expand.
1565 (*arm_sssub<mode>3): New define_insn.
1566 (ssmulsa3): Convert to define_expand.
1567 (*arm_ssmulsa3): New define_insn.
1568 (usmulusa3): Convert to define_expand.
1569 (*arm_usmulusa3): New define_insn.
1570 (ssmulha3): FAIL if ARM_Q_BIT_READ.
1571 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
1572 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
1573
1574 2019-11-07 Martin Liska <mliska@suse.cz>
1575
1576 PR c++/92354
1577 * cgraph.c (delete_function_version): Clear global
1578 variable version_info_node if equal to deleted
1579 function.
1580
1581 2019-11-07 Martin Liska <mliska@suse.cz>
1582
1583 * fold-const.c (operand_compare::operand_equal_p): Add comparison
1584 of CONSTRUCTOR_NO_CLEARING.
1585 (operand_compare::hash_operand): Likewise.
1586
1587 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
1588
1589 Support 64-bit double and 64-bit long double configurations.
1590
1591 PR target/92055
1592 * config.gcc (tm_defines) [avr]: Set from --with-double=,
1593 --with-long-double=.
1594 * config/avr/t-multilib: Remove.
1595 * config/avr/t-avr: Output of genmultilib.awk is now fully
1596 dynamically generated and no more part of the repo.
1597 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
1598 Pass them down to...
1599 * config/avr/genmultilib.awk: ...here and handle them.
1600 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
1601 (-mlong-double=, avr_long_double). New option and var.
1602 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
1603 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
1604 Set default as requested by --with-double=
1605 (TARGET_HANDLE_OPTION): Define to this...
1606 (avr_handle_option): ...new hook worker.
1607 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
1608 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
1609 (avr_double_lib): New proto for spec function.
1610 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
1611 (DRIVER_SELF_SPECS): Call %:double-lib.
1612 * config/avr/avr.c (avr_option_override): Assert
1613 sizeof(long double) >= sizeof(double) for the target.
1614 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
1615 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
1616 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
1617 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
1618 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
1619 New built-in define depending on --with-double=, --with-long-double=.
1620 * config/avr/driver-avr.c (avr_double_lib): New spec function.
1621 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
1622 * doc/install.texi (Cross-Compiler-Specific Options)
1623 <--with-double=, --with-long-double=>: Doc.
1624
1625 2019-11-07 Richard Biener <rguenther@suse.de>
1626
1627 * dbgcnt.def (gimple_unroll): New.
1628 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
1629 gimple_unroll debug counter before applying transform.
1630 (try_peel_loop): Likewise.
1631
1632 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
1633
1634 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
1635 frame pointer in multiple registers.
1636 (ira_setup_eliminable_regset): Setup eliminable_regset,
1637 ira_no_alloc_regs and regs_ever_live for frame pointer in
1638 multiple registers.
1639
1640 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
1641
1642 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
1643 V2DI modes.
1644
1645 2019-11-06 Jan Hubicka <jh@suse.cz>
1646
1647 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
1648 allocations.
1649 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
1650 Do not silently ignore summary corruptions.
1651
1652 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
1653
1654 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
1655 the epilogue if there are peeled iterations for it to handle.
1656
1657 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
1658
1659 * config/arc/arc.c (arc_split_ior): Add asserts.
1660 (arc_split_mov_const): Likewise.
1661 (arc_check_ior_const): Do not match known short immediate values.
1662 * config/arc/arc.md (movsi): Don't split predicated instructions
1663 (iorsi): Likewise.
1664
1665 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
1666
1667 * config/arc/arc.opt (mea): Update help string.
1668 * doc/invoke.texi(ARC): Update mea option info.
1669
1670 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
1671
1672 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
1673 (zero_extendqisi2_ac): Likewise.
1674 (zero_extendhisi2_i): Likewise.
1675 (extendqihi2_i): Likewise.
1676 (extendqisi2_ac): Likewise.
1677 (extendhisi2_i): Likewise.
1678
1679 2019-11-06 Richard Biener <rguenther@suse.de>
1680
1681 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
1682 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
1683 Simplify single_defuse_cycle condition.
1684
1685 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
1686
1687 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
1688 epilogue loop, make sure that the VF is small enough or that
1689 the epilogue loop can be fully-masked.
1690
1691 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
1692
1693 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
1694 loop when we've finished, rather than returning directly from
1695 the loop. Use a local variable to track whether we're still
1696 searching for the preferred simdlen. Make vect_epilogues
1697 record whether the next iteration should try to treat the
1698 loop as an epilogue.
1699
1700 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
1701
1702 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
1703 __arc_hard_float__, __ARC_HARD_FLOAT__,
1704 __arc_soft_float__, __ARC_SOFT_FLOAT__
1705
1706 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
1707
1708 PR tree-optimization/92317
1709 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
1710 update phi's with constant phi arguments.
1711
1712 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
1713 Alexandre Oliva <oliva@adacore.com>
1714
1715 * common.opt (-fcallgraph-info[=]): New option.
1716 * doc/invoke.texi (Developer options): Document it.
1717 * opts.c (common_handle_option): Handle it.
1718 * builtins.c (expand_builtin_alloca): Record allocation if
1719 -fcallgraph-info=da.
1720 * calls.c (expand_call): If -fcallgraph-info, record the call.
1721 (emit_library_call_value_1): Likewise.
1722 * flag-types.h (enum callgraph_info_type): New type.
1723 * explow.c: Include stringpool.h.
1724 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
1725 * function.c (allocate_stack_usage_info): New.
1726 (allocate_struct_function): Call it for -fcallgraph-info.
1727 (prepare_function_start): Call it otherwise.
1728 (record_final_call, record_dynamic_alloc): New.
1729 * function.h (struct callinfo_callee): New.
1730 (CALLEE_FROM_CGRAPH_P): New.
1731 (struct callinfo_dalloc): New.
1732 (struct stack_usage): Add callees and dallocs.
1733 (record_final_call, record_dynamic_alloc): Declare.
1734 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
1735 object if -fcallgraph-info=da.
1736 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
1737 * print-tree.h (print_decl_identifier): Declare.
1738 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
1739 * print-tree.c: Include print-tree.h.
1740 (print_decl_identifier): New function.
1741 * toplev.c: Include print-tree.h.
1742 (callgraph_info_file): New global variable.
1743 (callgraph_info_external_printed): Likewise.
1744 (output_stack_usage): Rename to...
1745 (output_stack_usage_1): ... this. Make it static, add cf
1746 parameter. If -fcallgraph-info=su, print stack usage to cf.
1747 If -fstack-usage, use print_decl_identifier for
1748 pretty-printing.
1749 (INDIRECT_CALL_NAME): New.
1750 (dump_final_node_vcg_start): New.
1751 (dump_final_callee_vcg, dump_final_node_vcg): New.
1752 (output_stack_usage): New.
1753 (lang_dependent_init): Open and start file if
1754 -fcallgraph-info. Allocated callgraph_info_external_printed.
1755 (finalize): If callgraph_info_file is not null, finish it,
1756 close it, and release callgraph_info_external_printed.
1757
1758 2019-11-06 Gergö Barany <gergo@codesourcery.com>
1759 Frederik Harwath <frederik@codesourcery.com>
1760 Thomas Schwinge <thomas@codesourcery.com>
1761
1762 * omp-low.c (struct omp_context): New fields
1763 local_reduction_clauses, outer_reduction_clauses.
1764 (new_omp_context): Initialize these.
1765 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
1766 (scan_omp_for): Check reduction clauses for incorrect nesting.
1767
1768 2019-11-06 Jakub Jelinek <jakub@redhat.com>
1769
1770 PR inline-asm/92352
1771 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
1772 operands with non-memory constraints.
1773
1774 2019-11-05 Martin Sebor <msebor@redhat.com>
1775
1776 PR tree-optimization/92373
1777 * tree.c (component_ref_size): Only consider initializers of objects
1778 of matching struct types.
1779 Return null for instances of interior zero-length arrays.
1780
1781 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
1782
1783 * doc/md.texi (Insn Splitting): Fix combiner documentation.
1784
1785 2019-11-05 Jason Merrill <jason@redhat.com>
1786
1787 PR tree-optimization/91825
1788 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
1789
1790 2019-11-05 Jim Wilson <jimw@sifive.com>
1791
1792 PR middle-end/92263
1793 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
1794 optimize_insn_for_speed_p is true.
1795
1796 2019-11-05 Martin Sebor <msebor@redhat.com>
1797
1798 PR middle-end/92333
1799 PR middle-end/82608
1800 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
1801 size.
1802 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
1803 name and location for a temporary variable.
1804
1805 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
1806
1807 * tree-vrp.c (value_range::value_range): Fix whitespace.
1808 (defined_ranges_p): Same.
1809 (range_fold_binary_symbolics_p): Same.
1810 (value_range::intersect_helper): Same.
1811 (value_range::union_helper): Same.
1812 * tree-vrp.h (range_fold_binary_expr): Same.
1813
1814 2019-11-04 Martin Sebor <msebor@redhat.com>
1815
1816 PR middle-end/92341
1817 PR middle-end/82612
1818 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
1819 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
1820 of message printed in a warning for empty arrays.
1821 (vrp_prop::check_mem_ref): Also handle function parameters and
1822 empty arrays.
1823
1824 2019-11-05 Richard Biener <rguenther@suse.de>
1825
1826 PR tree-optimization/92371
1827 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
1828 on the original stmt of live stmts in the chain.
1829 (vectorizable_live_operation): Look at the original stmt when
1830 checking STMT_VINFO_REDUC_DEF.
1831
1832 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
1833
1834 * gimple-fold.c, gimple-loop-versioning.cc,
1835 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
1836 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
1837 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
1838 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
1839 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
1840 value_range_equiv, and value_range_base to value_range.
1841
1842 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
1843
1844 * expr.c (build_personality_function): Fix generated type to
1845 match actual personality functions.
1846
1847 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
1848
1849 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
1850 enough bytes for the NULL character.
1851
1852 2019-11-05 Richard Biener <rguenther@suse.de>
1853
1854 PR tree-optimization/92280
1855 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
1856 had a single use do not create a new CTOR.
1857 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
1858 BIT_FIELD_REF of a CTOR via GENERIC.
1859
1860 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
1861
1862 * config/s390/s390.c (s390_vector_alignment): Check if the value
1863 fits into uhwi before using it.
1864
1865 2019-11-05 Martin Liska <mliska@suse.cz>
1866
1867 * symbol-summary.h: Use ggc_delete.
1868
1869 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1870
1871 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
1872 Change vec_perm field to 10.
1873
1874 2019-11-05 Arnaud Charlet <charlet@adacore.com>
1875
1876 * doc/install.texi: Further fix syntax for html generation.
1877
1878 2019-11-05 Martin Liska <mliska@suse.cz>
1879
1880 * symbol-summary.h: Rename allocator to m_allocator and
1881 add comment.
1882
1883 2019-11-05 Richard Biener <rguenther@suse.de>
1884
1885 PR tree-optimization/92324
1886 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
1887 all signed or unsigned operations.
1888
1889 2019-11-05 Jan Hubicka <jh@suse.cz>
1890
1891 * hsa-brig.c: Include alloc-pool.h
1892 * hsa-dump.c: Likewise.
1893 * hsa-gen.c: Likewise.
1894 * hse-regalloc.c: Likewise.
1895 * ipa-hsa.c: Likewise.
1896 * ipa-predicate.c: Likewise.
1897 * ipa-reference.c: Likewise.
1898 * ipa-sra.c: Likewise.
1899 * omp-expand.c: Likewise.
1900 * omp-general.c: Likewise.
1901 * omp-low.c: Likewise.
1902 * sumbol-summary.h (function_summary_base): Add allocator.
1903 (function_summary<T *>::function_summary): Update construction.
1904 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
1905 (call_summary_base): Add allcator.
1906 (call_summary<T *>::call_summary): Update construction.
1907 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
1908
1909 2019-11-05 Jakub Jelinek <jakub@redhat.com>
1910
1911 PR tree-optimization/91945
1912 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
1913 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
1914 Formatting fix.
1915
1916 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
1917
1918 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
1919 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
1920 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
1921 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
1922 (vrp_set_zero_nonzero_bits): Move to...
1923 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
1924 (vr_values::simplify_bit_ops_using_ranges): Rename
1925 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
1926
1927 2019-11-05 Martin Liska <mliska@suse.cz>
1928
1929 PR c++/92339
1930 * fold-const.c (operand_compare::hash_operand): Remove
1931 FIELD_DECL handling.
1932
1933 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
1934
1935 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
1936 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
1937 static.
1938
1939 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
1940
1941 * tree-vrp.c (value_range_base::operator==): Use equal_p to
1942 properly handle symbolics.
1943 (range_compatible_p): Remove.
1944
1945 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
1946
1947 * common.opt (-fabi-version): Document =14.
1948 * doc/invoke.texi (C++ Dialect Options): Likewise.
1949
1950 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
1951
1952 * tree-vrp.c (value_range_base::set): Do not special case pointers.
1953
1954 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1955
1956 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
1957 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
1958 gcn_omp_device_kind_arch_isa.
1959 * config/gcn/t-omp-device: New file.
1960 * configure.ac: Support gcn for omp_device_property.
1961 * configure: Regenerate.
1962
1963 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
1964
1965 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
1966 (vrp_val_max): Same.
1967 (vrp_val_is_min): Same.
1968 (vrp_val_is_max): Same.
1969 (value_range_base::nonzero_p): Remove last argument to
1970 vrp_val_is_max.
1971 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
1972 (vrp_val_max): Same.
1973 (vrp_val_is_min): Same.
1974 (vrp_val_is_max): Same.
1975 (value_range_base::set_varying): Remove last argument to vrp_val*.
1976 (value_range_base::dump): Same.
1977 (value_range_base::set): Same.
1978 (value_range_base::normalize_symbolics): Same.
1979 (value_range_base::num_pairs): Same.
1980 (value_range_base::lower_bound): Same.
1981 (value_range_base::upper_bound): Same.
1982 (ranges_from_anti_range): Remove handle_pointers argument.
1983 (value_range_base::singleton_p): Remove last argument to
1984 ranges_from_anti_range.
1985
1986 2019-11-04 Jan Hubicka <jh@suse.cz>
1987
1988 * ipa-reference.c (init_function_info): Initialize
1989 info->global.statics_read.
1990
1991 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
1992
1993 * tree-vrp.c (value_range_base::invert): Use constructors to build
1994 range.
1995
1996 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
1997
1998 * tree-vrp.c (range_int_cst_singleton_p): Remove.
1999 * tree-vrp.h (range_int_cst_singleton_p): Remove.
2000
2001 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2002
2003 * tree-vrp.c (value_range_base::normalize_addresses): Handle
2004 VR_UNDEFINED.
2005
2006 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2007
2008 * tree-vrp.c (dump_assert_info): New.
2009 (dump_asserts_info): New.
2010
2011 2019-11-04 Jan Hubicka <jh@suse.cz>
2012
2013 * ipa-inline-transform.c: Include ipa-utils.h
2014 (inline_call): Set thunk_expansion flag.
2015 * ipa-utils.h (thunk_expansion): Declare.
2016 * ipa-devirt.c (thunk_expansion): New global var.
2017 (devirt_node_removal_hook): Do not invalidate cache while
2018 doing thunk expansion.
2019
2020 2019-11-04 Tamar Christina <tamar.christina@arm.com>
2021
2022 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
2023
2024 2019-11-04 Martin Sebor <msebor@redhat.com>
2025
2026 PR tree-optimization/92349
2027 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
2028 memebers have constant sizes.
2029
2030 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
2031
2032 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
2033 parameter.
2034 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
2035 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
2036 vect_analyze_loop.
2037
2038 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
2039
2040 * expr.c (store_constructor): Modify to handle single element vectors.
2041 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
2042 constructors.
2043 (vect_slp_check_for_constructors): New function.
2044 (vect_slp_analyze_bb_1): Call new function to check for vector
2045 constructors.
2046 (vectorize_slp_instance_root_stmt): New function.
2047 (vect_schedule_slp): Call new function to vectorize root stmt of vector
2048 constructors.
2049 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
2050
2051 2019-11-04 Richard Biener <rguenther@suse.de>
2052
2053 PR tree-optimization/92345
2054 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
2055 we produced a reduction chain.
2056 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
2057 LOOP_VINFO_REDUCTIONS.
2058
2059 2019-11-04 Jan Hubicka <jh@suse.cz>
2060
2061 * cgraphclones.c (cgraph_node::create_version_clone): Do not
2062 duplicate summaries.
2063 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
2064 first.
2065 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
2066 access call summaries.
2067 (dump_ipa_call_summary): Be ready for missing edge summaries.
2068 (analyze_function_body): Use get instead of get_create to access
2069 edge summary.
2070 (estimate_calls_size_and_time): Do not access summaries of
2071 inlined edges; sanity check they are missing.
2072 (ipa_call_context::estimate_size_and_time): Use get instead
2073 of get_create to access node summary.
2074 (inline_update_callee_summaries): Do not update depth of
2075 inlined edge.
2076 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
2077 growth caches.
2078 (ipa_merge_fn_summary_after_inlining): Use get instead
2079 of get_create.
2080 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
2081 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
2082 fast summary.
2083 (initialize_growth_caches): Update.
2084 (do_estimate_edge_time): Remove redundant copy of context.
2085 (ipa_remove_from_growth_caches): New function.
2086 * ipa-inline.c (flatten_function): Update overall summary
2087 only when optimizing.
2088 (inline_to_all_callers): Update overall summary of function
2089 inlined to.
2090 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
2091 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
2092 to false.
2093
2094 2019-11-04 Richard Biener <rguenther@suse.de>
2095
2096 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
2097 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
2098
2099 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
2100
2101 * ggc-common.c: Include system.h before malloc.h.
2102
2103 2019-11-04 Alexandre Oliva <oliva@adacore.com>
2104
2105 * configure.ac: Pass --enable-obsolete=* and
2106 --enable-option-checking=* down to build configure, and fail
2107 if it fails. AC_SUBST HAVE_AUTO_BUILD.
2108 * configure: Rebuild.
2109 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
2110 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
2111
2112 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2113
2114 * config.in: Regenerate.
2115 * config/msp430/msp430.c (msp430_option_override): Emit an error if
2116 -mtiny-printf is used without GCC being configured with
2117 --enable-newlib-nano-formatted-io.
2118 * config/msp430/msp430.h (LINK_SPEC): Pass
2119 "--wrap puts --wrap printf" when -mtiny-printf is used.
2120 * config/msp430/msp430.opt: Document -mtiny-printf.
2121 * configure: Regenerate.
2122 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
2123 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
2124 --enable-newlib-nano-formatted-io is passed.
2125 * doc/invoke.texi: Document -mtiny-printf.
2126
2127 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2128
2129 * configure: Regenerate.
2130
2131 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2132
2133 * config/msp430/driver-msp430.c
2134 (msp430_get_linker_devices_include_path): New spec function.
2135 * config/msp430/msp430-devices.c (msp430_dirname): New function.
2136 (extract_devices_dir_from_exec_prefix): New function.
2137 (extract_devices_dir_from_collect_gcc): New function.
2138 (msp430_check_env_var_for_devices): New function.
2139 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
2140 (parse_devices_csv): Call msp430_check_env_var_for_devices if
2141 devices.csv was not found using other methods.
2142 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
2143 New prototype.
2144 (msp430_dirname): Likewise.
2145 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
2146 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
2147 msp430_get_linker_devices_include_path.
2148 (TARGET_EXTRA_PRE_INCLUDES): Define.
2149 * doc/invoke.texi: Document new ways of searching for support files.
2150
2151 2019-11-04 Richard Biener <rguenther@suse.de>
2152
2153 PR tree-optimization/92301
2154 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
2155 as required by epilogue generation
2156
2157 2019-11-04 Martin Liska <mliska@suse.cz>
2158
2159 PR ipa/92304
2160 * fold-const.c (operand_compare::hash_operand): Fix field
2161 hashing of CONSTRUCTOR.
2162
2163 2019-11-04 Martin Liska <mliska@suse.cz>
2164
2165 * ggc.h (ggc_delete): New function.
2166 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
2167 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
2168 (ipa_free_all_node_params): Likewise.
2169 * ipa-sra.c (ipa_sra_analysis): Likewise.
2170
2171 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2172
2173 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
2174 set_switch_stmt_execution_predicate, compute_bb_predicates,
2175 will_be_nonconstant_expr_predicate,
2176 phi_result_unknown_predicate,
2177 analyze_function_body): Pass arround params summary.
2178 (ipa_call_context::duplicate_from): New comment;
2179 only duplicate useful values.
2180 (ipa_call_context::equal_to): Only compare useful values.
2181 (remap_edge_summaries): Pass params_summary.
2182 (remap_hint_predicate): Likewise.
2183 (ipa_merge_fn_summary_after_inlining): Likewise.
2184 (inline_read_section): Initialize params summary used flags.
2185 * ipa-predicate.c (predicate::remap_after_inlining): Pass
2186 around param_summary.
2187 (add_condition): Initialized used params summary flags.
2188 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
2189 (inline_param_summary::useless_p): New predicate.
2190 (remap_after_inlining, add_condition): Update prototype
2191 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
2192 move_cost.
2193 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
2194 summaries.
2195 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
2196 (ipa_analyze_virtual_call_uses): Likewise.
2197 (update_indirect_edges_after_inlining): Update param summaries.
2198 (ipa_print_node_params): Print used flags.
2199 (ipa_read_indirect_edge_info): Update param summareis.
2200 * ipa-prop.h (ipa_param_descriptor): Add
2201 used_by_ipa_predicates, used_by_indirect_call
2202 and used_by_polymorphic_call.
2203 (ipa_set_param_used_by_ipa_predicates,
2204 ipa_set_param_used_by_indirect_call,
2205 ipa_set_param_used_by_polymorphic_call,
2206 ipa_is_param_used_by_ipa_predicates,
2207 ipa_is_param_used_by_indirect_call,
2208 ipa_is_param_used_by_polymorphic_call): New inline functions.
2209
2210 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2211
2212 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
2213 member function.
2214 (ipa_call_context::release): Add ALL parameter.
2215 (ipa_call_context::equal_to): New member function.
2216 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
2217 duplicate_form, release, equal_to and exists_p member functoins.
2218 * ipa-inline-analysis.c (node_context_cache_entry): New
2219 class.
2220 (node_context_summary): Likewise.
2221 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
2222 node_context_clear): New static vars.
2223 (initialize_growth_caches): New function.
2224 (free_growth_caches): Also delete node_context_cache; output stats.
2225 (do_estimate_edge_time): Cache contexts.
2226 (reset_node_cache): New function.
2227 * ipa-inline.c (reset_edge_caches): Reset also node cache.
2228 (inline_small_functions): Initialize growth caches.
2229 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
2230 Declare.
2231 * ipa-predicate.h (inline_param_summary::equal_to): New.
2232 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
2233 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
2234 (ipa_agg_jump_function): Implement equal_to member function.
2235
2236 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2237
2238 * ipa-fnsummary.c (inline_read_section): Set vector size
2239 ahead of time.
2240
2241 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2242
2243 * ipa-fnsummary.c (ipa_call_context): New constructor.
2244 (estimate_node_size_and_time): Turn to ...
2245 (ipa_call_context::estimate_size_and_time): ... this one.
2246 (ipa_call_context::release): New.
2247 * ipa-fnsummary.h (ipa_call_context): New class.
2248 (estimate_node_size_and_time): Remove.
2249 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
2250 do_estimate_edge_hints): Update.
2251
2252 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2253
2254 * config.in: Regenerate.
2255 * configure: Regenerate.
2256 * configure.ac: Check for mallinfo.
2257 * ggc-common.c: Include malloc.h if available;
2258 include options.h
2259 (report_heap_memory_use): New functoin.
2260 * ggc-page.c (ggc_grow): Do not print "start".
2261 * ggc.h (report_heap_memory_use): Declare.
2262 * pases.c (execute_one_pass): Report memory after IPA passes.
2263 (ipa_read_summaries_1): Likewise.
2264 (ipa_read_optimization_summaries_1): Likewise.
2265
2266 2019-11-02 Jakub Jelinek <jakub@redhat.com>
2267
2268 * gimplify.h (omp_construct_selector_matches): Change return
2269 type to int, add a new SCORES argument.
2270 * gimplify.c (omp_construct_selector_matches): Likewise. If
2271 SCORES is non-NULL, compute scores of each construct.
2272 * omp-general.h (omp_get_context_selector): Declare.
2273 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
2274 Adjust omp_construct_selector_matches callers.
2275 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
2276 (omp_context_compute_score): New function.
2277 (omp_resolve_declare_variant): Compute scores and decide based on
2278 that.
2279
2280 PR bootstrap/92314
2281 * configure.ac: Don't look for omp-device-properties files from
2282 installed offloading compilers. Instead add tmake_file snippets
2283 for configured offloading targets and use files they generate.
2284 * Makefile.in (install): Don't depend on
2285 install-omp-device-properties.
2286 (install-omp-device-properties): Remove goal.
2287 * config/i386/t-omp-device: New file.
2288 * config/i386/t-intelmic (omp-device-properties): Remove goal.
2289 * config/nvptx/t-omp-device: New file.
2290 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
2291 * configure: Regenerated.
2292
2293 * omp-general.h (omp_context_selector_set_compare): Declare.
2294 * omp-general.c (omp_construct_simd_compare,
2295 omp_context_selector_props_compare, omp_context_selector_set_compare,
2296 omp_context_selector_compare): New functions.
2297 (omp_resolve_declare_variant): Prune variants that are strict subset
2298 of another variant.
2299
2300 2019-11-01 Martin Sebor <msebor@redhat.com>
2301
2302 PR middle-end/91679
2303 PR middle-end/91647
2304 PR middle-end/91463
2305 PR middle-end/92312
2306 * doc/invoke.texi (-Wzero-length-bounds): Document.
2307 * gimple-match-head.c (try_conditional_simplification): Use memcpy
2308 instead of a hand-rolled loop to avoid PR 92323.
2309 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
2310 with initializers.
2311 (vrp_prop::check_mem_ref): Handle declared struct objects.
2312 * tree.c (last_field): New function.
2313 (array_at_struct_end_p): Handle MEM_REF.
2314 (get_initializer_for): New helper.
2315 (component_ref_size): Add argument. Rename locals. Call
2316 get_initializer_for instead of fold_ctor_reference. Correct handling
2317 of flexible array members.
2318 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
2319
2320 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
2321
2322 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
2323 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
2324 UNSPEC_VSX_CVSPUXDS): Remove.
2325 (vsx_xvcvspdp): New define_expand, old define_insn split to...
2326 (vsx_xvcvspdp_be): ... this. New. And...
2327 (vsx_xvcvspdp_le): ... this. New.
2328 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
2329 (vsx_xvcv<su>xwdp_be): ... this. New. And...
2330 (vsx_xvcv<su>xwdp_le): ... this. New.
2331 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
2332 (vsx_xvcvsp<su>xds_be): ... this. New. And...
2333 (vsx_xvcvsp<su>xds_le): ... this. New.
2334
2335 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
2336
2337 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
2338 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
2339 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
2340 UNSPEC_VSX_XVCVSPSXWS): Remove.
2341 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
2342 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
2343
2344 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
2345
2346 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
2347 (UNSPEC_VSX_XVCDPSP): Remove.
2348 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
2349 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
2350
2351 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
2352
2353 * hooks.c (hook_tree_tree_bool_null): New.
2354 * hooks.h (hook_tree_tree_bool_null): Declare.
2355 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
2356 (LANG_HOOKS_DECLS): Add it.
2357 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
2358 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
2359 (lower_omp_target): Handle Fortran array with descriptor in
2360 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
2361
2362 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
2363
2364 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2365 Assert that the type we store in abi_vector_types is its own
2366 main variant.
2367 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
2368
2369 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
2370
2371 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
2372 from a CONST_INT address when TARGET_THUMB2.
2373
2374 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
2375
2376 * config/arm/arm.md (add_not_cin): New insn.
2377 (add_not_shift_cin): Likewise.
2378
2379 2019-10-31 Martin Liska <mliska@suse.cz>
2380
2381 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
2382 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
2383 and compare_memory_operand.
2384
2385 2019-10-31 Jakub Jelinek <jakub@redhat.com>
2386
2387 * configure.ac: Compute and substitute omp_device_properties and
2388 omp_device_property_deps.
2389 * Makefile.in (generated_files): Add omp-device-properties.h.
2390 (omp-general.o): Depend on omp-device-properties.h.
2391 (omp_device_properties): New make variable.
2392 (omp-device-properties.h, s-omp-device-properties-h,
2393 install-omp-device-properties): New goals.
2394 (install): Depend on install-omp-device-properties for accelerators.
2395 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
2396 * target.h (enum omp_device_kind_arch_isa): New enum.
2397 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
2398 documentation.
2399 * omp-general.c: Include omp-device-properties.h.
2400 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
2401 colon instead of comma.
2402 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
2403 functions.
2404 (omp_context_selector_matches): Implement device set arch/isa
2405 selectors, improve device set kind selector handling.
2406 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
2407 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
2408 TARGET_SIMD_CLONE_USABLE): Formatting fix.
2409 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
2410 ix86_omp_device_kind_arch_isa.
2411 * config/i386/i386-options.c (struct ix86_target_opts): Move type
2412 definition from ix86_target_string to file scope.
2413 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
2414 to file scope.
2415 (ix86_omp_device_kind_arch_isa): New function.
2416 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
2417 isa_opts definitions to file scope.
2418 * config/i386/t-intelmic (omp-device-properties): New goal.
2419 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
2420 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
2421 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
2422 nvptx_omp_device_kind_arch_isa.
2423 * configure: Regenerate.
2424 * doc/tm.texi: Regenerate.
2425
2426 PR middle-end/92231
2427 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
2428 DECL_BUILT_IN in comment. Remove redundant ()s around return
2429 argument.
2430 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
2431 before calling fndecl_built_in_p.
2432 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
2433 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
2434 fndecl_built_in_p on it.
2435
2436 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
2437
2438 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
2439
2440 2019-10-31 Martin Liska <mliska@suse.cz>
2441
2442 * config/arm/arm.c (arm_get_pcs_model): Remove usage
2443 of cgraph_local_info and use local_info_node instead.
2444 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
2445 (bfin_function_ok_for_sibcall): Likewise.
2446 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
2447 (must_reload_pic_reg_p): Likewise.
2448
2449 2019-10-31 Jakub Jelinek <jakub@redhat.com>
2450
2451 PR c++/90947
2452 * tree.h (type_initializer_zero_p): Remove.
2453 * tree.c (type_initializer_zero_p): Remove.
2454
2455 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
2456
2457 * doc/invoke.texi (-Wshadow, -Wshadow=global
2458 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
2459
2460 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
2461
2462 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
2463 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
2464 and 'target exit data'.
2465
2466 2019-10-30 Martin Jambor <mjambor@suse.cz>
2467
2468 ipa/92278
2469 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
2470 availability comparison.
2471
2472 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2473
2474 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
2475 calls to __mspabi_mpy* functions.
2476 * config/msp430/msp430.md (mulhisi3): New define_expand.
2477 (umulhisi3): New define_expand.
2478 (*mulhisi3_inline): Use old mulhisi3 define_insn.
2479 (*umulhisi3_inline): Use old umulhisi3 define_insn.
2480
2481 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2482
2483 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
2484 (msp430_check_plus_not_high_mem): New.
2485 (msp430_op_not_in_high_mem): Use new functions to check if the operand
2486 might be in low memory.
2487 Indicate that a 16-bit absolute address is in lower memory.
2488
2489 2019-10-30 Martin Jambor <mjambor@suse.cz>
2490
2491 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
2492 ultimate_alias_target.
2493
2494 2019-10-30 Richard Biener <rguenther@suse.de>
2495
2496 PR tree-optimization/92275
2497 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
2498 Copy all loop-closed PHIs.
2499
2500 2019-10-30 Martin Liska <mliska@suse.cz>
2501
2502 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
2503 const_tree as function argument.
2504 (func_checker::compare_decl): Likewise.
2505 (func_checker::operand_equal_p): Likewise.
2506 (func_checker::compare_variable_decl): Likewise.
2507 (func_checker::parse_labels): Likewise.
2508 * ipa-icf-gimple.h: Likewise.
2509
2510 2019-10-30 Martin Liska <mliska@suse.cz>
2511
2512 * ipa-icf-gimple.c (func_checker::compatible_types_p):
2513 Do not compare alias sets. It's handled by operand_equal_p.
2514
2515 2019-10-30 Martin Liska <mliska@suse.cz>
2516
2517 * ipa-icf-gimple.c (func_checker::func_checker): Do not
2518 initialize m_compare_polymorphic.
2519 (func_checker::compare_decl): Do not compare polymorphic types.
2520 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
2521 * ipa-icf.c (sem_function::equals_private): Do not call
2522 compare_polymorphic_p.
2523
2524 2019-10-30 Martin Liska <mliska@suse.cz>
2525
2526 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
2527 compare_operand.
2528 (func_checker::compare_memory_operand): Remove.
2529 (func_checker::compare_cst_or_decl): Remove.
2530 (func_checker::operand_equal_valueize): Do not handle
2531 FIELD_DECL.
2532 (func_checker::compare_gimple_call): Call compare_operand.
2533 (func_checker::compare_gimple_assign): Likewise.
2534 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
2535 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
2536 * ipa-icf.h (icf_handled_component_p): Remove.
2537
2538 2019-10-30 Martin Liska <mliska@suse.cz>
2539
2540 * ipa-icf-gimple.c (func_checker::hash_operand): New.
2541 (func_checker::compare_cst_or_decl): Remove handling
2542 of FIELD_DECL.
2543 (func_checker::compare_operand): Transform to ...
2544 (func_checker::operand_equal_p): ... this.
2545 * ipa-icf-gimple.h (class func_checker): Add
2546 operand_equal_p and hash_operand.
2547 * ipa-icf.c (sem_function::equals_private): Fix
2548 pushing and popping of cfun.
2549
2550 2019-10-30 Martin Liska <mliska@suse.cz>
2551
2552 * fold-const.c (operand_equal_p): Move to ...
2553 (operand_compare::operand_equal_p): ... here.
2554 (operand_compare::verify_hash_value): New.
2555 (add_expr): Move to ...
2556 (operand_compare::hash_operand): ... here.
2557 * fold-const.h (operand_equal_p): Move to the class.
2558 (class operand_compare): New.
2559 * tree.c (add_expr): Remove.
2560
2561 2019-10-30 Martin Liska <mliska@suse.cz>
2562
2563 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
2564 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
2565
2566 2019-10-30 Martin Liska <mliska@suse.cz>
2567
2568 PR lto/91393
2569 PR lto/88220
2570 * cgraph.c (cgraph_node::get_create): Overwrite node->order
2571 from a first_clone in order to get proper LTO section
2572 in LTO stream.
2573 (cgraph_node::get_untransformed_body):
2574 Use lto_get_section_data where symtab_node::order
2575 must be provided.
2576 * cgraphclones.c (cgraph_node::find_replacement):
2577 Update also symbol order.
2578 * ipa-fnsummary.c (ipa_fn_summary_read):
2579 Use new function lto_get_summary_section_data.
2580 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
2581 * ipa-icf.c (sem_item_optimizer::read_summary):
2582 Likewise.
2583 * ipa-prop.c (ipa_prop_read_jump_functions):
2584 Likewise.
2585 (ipcp_read_transformation_summaries): Likewise.
2586 * ipa-sra.c (ipa_sra_read_summary): Likewise.
2587 * lto-cgraph.c (input_node): Add also order_base.
2588 (input_varpool_node): Likewise.
2589 (input_cgraph_1): Assign the order_base.
2590 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
2591 * lto-opts.c (lto_write_options): Pass new argument.
2592 * lto-section-in.c (lto_get_section_data): Add new argumente order.
2593 (lto_get_summary_section_data): New.
2594 (lto_get_raw_section_data): Add order argument.
2595 (lto_create_simple_input_block): Likewise.
2596 * lto-section-out.c (lto_destroy_simple_output_block):
2597 Likewise.
2598 * lto-streamer-in.c (lto_input_toplevel_asms):
2599 Use lto_get_summary_section_data.
2600 (lto_input_mode_table): Likewise.
2601 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
2602 (lto_output_toplevel_asms): Pass new argument.
2603 (copy_function_or_variable): Likewise.
2604 (produce_lto_section):Likewise.
2605 (produce_symtab): Likewise.
2606 (lto_write_mode_table): Likewise.
2607 (produce_asm_for_decls): Likewise.
2608 * lto-streamer.c (lto_get_section_name): Concat symbol name
2609 and symbol order.
2610 * lto-streamer.h (lto_get_section_data): Add order argument.
2611 (lto_get_summary_section_data): New.
2612 (lto_get_raw_section_data): Add order argument.
2613 (lto_get_section_name): Likewise.
2614 * varpool.c (varpool_node::get_constructor): Pass order argument.
2615
2616 2019-10-30 Jakub Jelinek <jakub@redhat.com>
2617
2618 PR tree-optimization/92262
2619 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
2620 ubase or cbase here.
2621 (remove_unused_ivs): Unshare comp before using it.
2622
2623 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
2624
2625 * ipa-prop.c (update_jump_functions_after_inlining):
2626 Watch for missing summaries.
2627
2628 2019-10-30 Richard Biener <rguenther@suse.de>
2629
2630 PR tree-optimization/65930
2631 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
2632 chains also allow a leading and trailing conversion.
2633 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
2634 intermediate reduction chains.
2635 (vect_analyze_slp_instance): Likewise. Build a SLP
2636 node for a trailing conversion manually.
2637
2638 2019-10-30 Martin Liska <mliska@suse.cz>
2639
2640 * cgraph.c (cgraph_node::local_info): Transform to ...
2641 (cgraph_node::local_info_node): ... this.
2642 (cgraph_node::dump): Remove cgraph_local_info and
2643 put its fields directly into cgraph_node.
2644 (cgraph_node::get_availability): Likewise.
2645 (cgraph_node::make_local): Likewise.
2646 (cgraph_node::verify_node): Likewise.
2647 * cgraph.h (struct GTY): Likewise.
2648 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
2649 (duplicate_thunk_for_node): Likewise.
2650 (cgraph_node::create_clone): Likewise.
2651 (cgraph_node::create_virtual_clone): Likewise.
2652 (cgraph_node::create_version_clone): Likewise.
2653 * cgraphunit.c (cgraph_node::reset): Likewise.
2654 (cgraph_node::finalize_function): Likewise.
2655 (cgraph_node::add_new_function): Likewise.
2656 (analyze_functions): Likewise.
2657 * combine.c (setup_incoming_promotions): Likewise.
2658 * config/i386/i386.c (ix86_function_regparm): Likewise.
2659 (ix86_function_sseregparm): Likewise.
2660 (init_cumulative_args): Likewise.
2661 * ipa-cp.c (determine_versionability): Likewise.
2662 (count_callers): Likewise.
2663 (set_single_call_flag): Likewise.
2664 (initialize_node_lattices): Likewise.
2665 (estimate_local_effects): Likewise.
2666 (create_specialized_node): Likewise.
2667 (identify_dead_nodes): Likewise.
2668 * ipa-fnsummary.c (compute_fn_summary): Likewise.
2669 (ipa_fn_summary_generate): Likewise.
2670 * ipa-hsa.c (check_warn_node_versionable): Likewise.
2671 (process_hsa_functions): Likewise.
2672 * ipa-icf.c (set_local): Likewise.
2673 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
2674 * ipa-inline.c (speculation_useful_p): Likewise.
2675 * ipa-profile.c (ipa_propagate_frequency): Likewise.
2676 (ipa_profile): Likewise.
2677 * ipa-split.c (split_function): Likewise.
2678 (execute_split_functions): Likewise.
2679 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
2680 (ipa_sra_ipa_function_checks): Likewise.
2681 * ipa-visibility.c (function_and_variable_visibility): Likewise.
2682 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
2683 * lto-cgraph.c (lto_output_node): Likewise.
2684 (input_overwrite_node): Likewise.
2685 * multiple_target.c (expand_target_clones): Likewise.
2686 * omp-simd-clone.c (simd_clone_create): Likewise.
2687 * trans-mem.c (expand_call_tm): Likewise.
2688 (ipa_tm_mayenterirr_function): Likewise.
2689 (ipa_tm_diagnose_tm_safe): Likewise.
2690 (ipa_tm_diagnose_transaction): Likewise.
2691 (ipa_tm_create_version): Likewise.
2692 (ipa_tm_transform_calls_redirect): Likewise.
2693 (ipa_tm_execute): Likewise.
2694 * tree-inline.c (expand_call_inline): Likewise.
2695
2696 2019-10-29 Martin Liska <mliska@suse.cz>
2697
2698 * symbol-summary.h (function_summary): Pass memory location
2699 to underlaying hash_map (or vec).
2700 (V>::fast_function_summary): Likewise.
2701
2702 2019-10-29 Martin Liska <mliska@suse.cz>
2703
2704 * ggc.h (ggc_alloc_no_dtor): New function.
2705 * ipa-fnsummary.c (ipa_free_fn_summary): Call
2706 destructor and ggc_free.
2707 (ipa_free_size_summary): Call delete instead
2708 of release.
2709 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
2710 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
2711 (ipa_free_all_edge_args): Call destructor and ggc_free.
2712 (ipa_free_all_node_params): Likewise.
2713 (ipcp_free_transformation_sum): Likewise.
2714 * ipa-prop.h (ipa_check_create_node_params):
2715 Call new ggc_alloc_no_dtor.
2716 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
2717 (ipa_sra_analysis): Call destructor and ggc_free.
2718 Replace release with delete operator.
2719 * symbol-summary.h (release): Remove ..
2720 (V>::~fast_function_summary): and move logic here.
2721 Likewise for other classes.
2722
2723 2019-10-29 Richard Biener <rguenther@suse.de>
2724
2725 PR tree-optimization/92260
2726 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
2727 lane-reducing ops.
2728
2729 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
2730
2731 PR tree-optimization/88915
2732 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
2733 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
2734 and make the valueize function pointer also take a void pointer.
2735 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
2736 around vn_valueize, to call it without a context.
2737 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
2738 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
2739 (~_loop_vec_info): Release epilogue_vinfos.
2740 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
2741 number of iterations of epilogue.
2742 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
2743 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
2744 versioning threshold needed for main loop.
2745 (vect_analyze_loop): Likewise.
2746 (find_in_mapping): New helper function.
2747 (update_epilogue_loop_vinfo): New function.
2748 (vect_transform_loop): When vectorizing epilogues re-use analysis done
2749 on main loop and call update_epilogue_loop_vinfo to update it.
2750 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
2751 stmts on loop preheader edge.
2752 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
2753 we decided to vectorize epilogues. Update epilogues NITERS and
2754 construct ADVANCE to update epilogues data references where needed.
2755 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
2756 (vect_do_peeling, vect_update_inits_of_drs,
2757 determine_peel_for_niter, vect_analyze_loop): Add or update
2758 declarations.
2759 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
2760 created loop_vec_info's for epilogues when available. Otherwise analyse
2761 epilogue separately.
2762
2763 2019-10-29 Richard Biener <rguenther@suse.de>
2764
2765 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
2766 example.
2767
2768 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
2769
2770 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
2771 index for the COND_EXPR from stmt_info rather than reduc_info.
2772
2773 2019-10-29 Richard Biener <rguenther@suse.de>
2774
2775 PR tree-optimization/65930
2776 * tree-vect-loop.c (check_reduction_path): Relax single-use
2777 check allowing out-of-loop uses.
2778 (vect_is_simple_reduction): SLP reduction chains cannot have
2779 intermediate stmts used outside of the loop.
2780 (vect_create_epilog_for_reduction): The adjustment might need
2781 to be converted.
2782 (vectorizable_reduction): Annotate live stmts of the reduction
2783 chain with STMT_VINFO_REDUC_DEF.
2784 * tree-vect-stms.c (process_use): Remove no longer true asserts.
2785
2786 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
2787
2788 * calls.c (pass_by_reference): Leave the target to decide whether
2789 POLY_INT_CST-sized arguments should be passed by value or reference,
2790 rather than forcing them to be passed by reference.
2791 (must_pass_in_stack_var_size): Likewise.
2792 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
2793 V31_REGNUM to P15_REGNUM.
2794 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
2795 Take an extra "silent_p" parameter, defaulting to false.
2796 (aarch64_sve::svbool_type_p): Declare.
2797 (aarch64_sve::nvectors_if_data_type): Likewise.
2798 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
2799 (aarch64_frame::reg_offset): Turn into poly_int64s.
2800 (aarch64_frame::save_regs_size): Likewise.
2801 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
2802 (aarch64_frame::sve_callee_adjust): Likewise.
2803 (aarch64_frame::spare_reg_reg): Likewise.
2804 (ARM_PCS_SVE): New arm_pcs value.
2805 (CUMULATIVE_ARGS::aapcs_nprn): New field.
2806 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
2807 (CUMULATIVE_ARGS::silent_p): Likewise.
2808 (BITS_PER_SVE_PRED): New macro.
2809 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
2810 function. Reject aarch64_vector_pcs attributes on SVE functions.
2811 (aarch64_attribute_table): Use the above handler.
2812 (aarch64_sve_abi): New function.
2813 (aarch64_sve_argument_p): Likewise.
2814 (aarch64_returns_value_in_sve_regs_p): Likewise.
2815 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
2816 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
2817 descriptor for them.
2818 (aarch64_simd_decl_p): Delete.
2819 (aarch64_emit_cfi_for_reg_p): New function.
2820 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
2821 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
2822 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
2823 as partly clobbered for the SVE PCS.
2824 (aarch64_function_ok_for_sibcall): Check whether the two functions
2825 use the same ABI, rather than checking specifically for whether
2826 they're aarch64_vector_pcs functions.
2827 (aarch64_pass_by_reference): Raise an error for attempts to pass
2828 SVE arguments when SVE is disabled. Pass SVE arguments by reference
2829 if there are not enough free registers left, or if the argument is
2830 variadic.
2831 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
2832 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
2833 tuples in memory.
2834 (aarch64_layout_arg): Take a function_arg_info rather than
2835 individual properties. Handle SVE predicates, vectors and tuples.
2836 Raise an error if they are passed to unprototyped functions.
2837 (aarch64_function_arg): If the silent_p flag is set, suppress the
2838 usual error about using float registers without TARGET_FLOAT.
2839 (aarch64_init_cumulative_args): Take a silent_p parameter and store
2840 it in the cumulative_args structure. Initialize aapcs_nprn and
2841 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
2842 error about using float registers without TARGET_FLOAT.
2843 If the silent_p flag is not set, also raise an error about
2844 using SVE functions when SVE is disabled.
2845 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
2846 and call it for SVE functions too. Update aapcs_nprn similarly
2847 to the other register counts.
2848 (aarch64_layout_frame): If a big-endian function needs to save
2849 and restore Z8-Z15, search for a spare predicate that it can use.
2850 Store SVE predicates at the bottom of the register save area,
2851 followed by SVE vectors, then followed by the normal slots.
2852 Keep pointing the hard frame pointer at the base of the normal slots,
2853 above the SVE vectors. Update the various frame creation and
2854 tear-down strategies for the new layout, initializing the new
2855 sve_callee_adjust field. Add an additional layout for frames
2856 whose saved registers are all SVE registers.
2857 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
2858 (aarch64_return_address_signing_enabled): Likewise.
2859 (aarch64_push_regs, aarch64_pop_regs): Update calls to
2860 aarch64_reg_save_mode.
2861 (aarch64_adjust_sve_callee_save_base): New function.
2862 (aarch64_add_cfa_expression): Move earlier in file. Take the
2863 saved register as an rtx rather than a register number and use
2864 its mode for the MEM slot.
2865 (aarch64_save_callee_saves): Remove the mode argument and instead
2866 use aarch64_reg_save_mode to get the mode of each save slot.
2867 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
2868 offsets. Allow GP offsets to be saved at a VL-based offset from
2869 the stack, handling this case using the frame pointer if available
2870 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
2871 big-endian SVE functions; use normal moves for other SVE saves.
2872 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
2873 returns true. Add explicit CFA notes when not storing via the
2874 stack pointer. Do not try to pair SVE saves.
2875 (aarch64_restore_callee_saves): Cope with poly_int64 register
2876 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
2877 use normal moves for other SVE restores. Only add CFA restore notes
2878 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
2879 SVE restores.
2880 (aarch64_get_separate_components): Always keep the first SVE save
2881 in the prologue if we need to use it as a stack probe. Don't allow
2882 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
2883 Likewise the spare predicate register that they need. Update the
2884 offset calculation to account for the SVE save area. Use the
2885 appropriate range check for SVE LDR and STR instructions.
2886 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
2887 (aarch64_process_components): Likewise. Update the offset
2888 calculation to account for the SVE save area. Only mark the
2889 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
2890 Do not try to pair SVE saves.
2891 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
2892 reg_offsets. When handling the final allocation, expect the
2893 first SVE register save to be part of the initial allocation
2894 and for it to act as a probe at SP. Account for the SVE callee
2895 save area in the dump information.
2896 (aarch64_expand_prologue): Update the frame diagram. Fold the
2897 SVE callee allocation into the initial allocation if stack clash
2898 protection is enabled. Use new variables to track the offset
2899 of the frame chain (and hard frame pointer) from the current
2900 stack pointer, and likewise the offset of the bottom of the
2901 register save area. Update calls to aarch64_save_callee_saves
2902 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
2903 saving the FP&SIMD registers. Save the predicate registers.
2904 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
2905 into account when setting the stack pointer from the frame pointer,
2906 and when deciding whether we can inherit the initial adjustment
2907 amount from the prologue. Restore the predicate registers after
2908 the vector registers, then apply sve_callee_adjust, then restore
2909 the general registers.
2910 (aarch64_secondary_reload): Don't use secondary SVE reloads
2911 for VNx16BImode.
2912 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
2913 (aarch64_short_vector_p): Return false for SVE types.
2914 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
2915 at the start of the function. Return false for SVE types.
2916 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
2917 functions too.
2918 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
2919 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
2920 to big-endian targets for bytewise moves.
2921 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
2922
2923 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
2924 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2925 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2926
2927 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
2928 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
2929 aarch64-sve-builtins-base.o to extra_objs. Add
2930 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
2931 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
2932 (aarch64-sve-builtins-shapes.o): Likewise.
2933 (aarch64-sve-builtins-base.o): New rules.
2934 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
2935 (aarch64_resolve_overloaded_builtin): Likewise.
2936 (aarch64_check_builtin_call): Likewise.
2937 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
2938 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
2939 pragma.
2940 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
2941 (aarch64_svprfop): New enum.
2942 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
2943 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
2944 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
2945 (aarch64_output_sve_cnt_pat_immediate): Likewise.
2946 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
2947 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
2948 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
2949 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
2950 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
2951 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
2952 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
2953 (aarch64_sve::mangle_builtin_type): Likewise.
2954 (aarch64_sve::resolve_overloaded_builtin): Likewise.
2955 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
2956 (aarch64_sve::expand_builtin): Likewise.
2957 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
2958 (aarch64_sve_int_mode): Likewise.
2959 (aarch64_ptrue_all_mode): New function.
2960 (aarch64_convert_sve_data_to_pred): Make public.
2961 (svprfop_token): New function.
2962 (aarch64_output_sve_prefetch): Likewise.
2963 (aarch64_fold_sve_cnt_pat): Likewise.
2964 (aarch64_output_sve_cnt_pat_immediate): Likewise.
2965 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
2966 instead of gen_while_ult.
2967 (aarch64_replace_reg_mode): Make public.
2968 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
2969 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
2970 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
2971 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
2972 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
2973 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
2974 (aarch64_sve_ptrue_svpattern_p): Likewise.
2975 (aarch64_sve_pred_valid_immediate): Check
2976 aarch64_sve_ptrue_svpattern_p.
2977 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
2978 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
2979 functions.
2980 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
2981 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
2982 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
2983 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
2984 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
2985 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
2986 New unspecs.
2987 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
2988 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
2989 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
2990 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
2991 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
2992 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
2993 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
2994 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
2995 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
2996 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
2997 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
2998 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
2999 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
3000 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
3001 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
3002 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
3003 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
3004 (Vesize): Handle partial vector modes.
3005 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
3006 mode attributes.
3007 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
3008 iterators.
3009 (s, paired_extend, inc_dec): New code attributes.
3010 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
3011 (SVE_INT_UNARY): Add UNSPEC_RBIT.
3012 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
3013 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
3014 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
3015 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
3016 UNSPEC_COND_FMULX.
3017 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
3018 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
3019 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
3020 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
3021 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
3022 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
3023 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
3024 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
3025 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
3026 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
3027 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
3028 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
3029 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
3030 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
3031 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
3032 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
3033 UNSPEC_COND_FSCALE.
3034 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
3035 (binqops_op, binqops_op_rev, last_op): New int attributes.
3036 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
3037 (fn, ab): New int attributes.
3038 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
3039 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
3040 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
3041 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
3042 UNSPEC_RBIT.
3043 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
3044 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
3045 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
3046 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
3047 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
3048 UNSPEC_COND_FMULX.
3049 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
3050 (brk_reg_con, brk_reg_opno): New int attributes.
3051 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
3052 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
3053 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
3054 UNSPEC_COND_FMIN.
3055 (max_elem_bits): New int attribute.
3056 (min_elem_bits): Handle UNSPEC_RBIT.
3057 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
3058 TRUNCATE as well as SUBREG.
3059 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
3060 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
3061 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
3062 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
3063 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
3064 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
3065 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
3066 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
3067 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
3068 (aarch64_gather_scale_operand_h): New predicates.
3069 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
3070 (vgd, vgh, vgw, vsQ, vsS): New constraints.
3071 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
3072 (*aarch64_sve_reinterpret<mode>): Allow any source register
3073 instead of requiring an exact match.
3074 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
3075 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
3076 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
3077 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
3078 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
3079 (aarch64_update_ffrt): New patterns.
3080 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
3081 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3082 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3083 (@aarch64_ld<fn>f1<mode>): New patterns.
3084 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
3085 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3086 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3087 (@aarch64_ldnt1<mode>): New patterns.
3088 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
3089 the scalar part of the address.
3090 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
3091 scalar part of the addresse and add an alternative for handling
3092 nonzero offsets.
3093 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
3094 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
3095 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3096 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3097 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
3098 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
3099 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
3100 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
3101 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3102 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3103 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
3104 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
3105 (@aarch64_sve_prefetch<mode>): New patterns.
3106 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
3107 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
3108 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
3109 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
3110 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
3111 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
3112 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
3113 (@aarch64_stnt1<mode>): New patterns.
3114 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
3115 the scalar part of the address.
3116 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
3117 the scalar part of the addresse and add an alternative for handling
3118 nonzero offsets.
3119 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
3120 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
3121 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
3122 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
3123 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
3124 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
3125 New patterns.
3126 (vec_duplicate<mode>): Use QI as the mode of the input operand.
3127 (extract_last_<mode>): Generalize to...
3128 (@extract_<LAST:last_op>_<mode>): ...this.
3129 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
3130 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
3131 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
3132 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
3133 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
3134 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
3135 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
3136 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
3137 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
3138 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
3139 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
3140 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
3141 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
3142 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
3143 (*aarch64_adr_uxtw_unspec): Likewise.
3144 (*aarch64_adr_uxtw): Rename to...
3145 (*aarch64_adr_uxtw_and): ...this.
3146 (@aarch64_adr<mode>_shift): New expander.
3147 (*aarch64_adr_shift_sxtw): New pattern.
3148 (aarch64_<su>abd<mode>_3): Rename to...
3149 (@aarch64_pred_<su>abd<mode>): ...this.
3150 (<su>abd<mode>_3): Update accordingly.
3151 (@aarch64_cond_<su>abd<mode>): New expander.
3152 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
3153 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
3154 (*<su>mul<mode>3_highpart): Rename to...
3155 (@aarch64_pred_<optab><mode>): ...this.
3156 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
3157 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
3158 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
3159 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
3160 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
3161 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
3162 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
3163 (*v<ASHIFT:optab><mode>3): Rename to...
3164 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
3165 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
3166 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
3167 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
3168 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
3169 (@cond_asrd<mode>): New expander.
3170 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
3171 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
3172 (*sdiv_pow2<mode>3): Delete.
3173 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
3174 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
3175 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
3176 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
3177 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
3178 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
3179 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
3180 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
3181 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
3182 (*add<SVE_F:mode>3): Rename to...
3183 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
3184 for SVE_STRICT_GP.
3185 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
3186 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
3187 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
3188 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
3189 (*sub<SVE_F:mode>3): Rename to...
3190 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
3191 for SVE_STRICT_GP.
3192 (@aarch64_pred_abd<SVE_F:mode>): New expander.
3193 (*fabd<SVE_F:mode>3): Rename to...
3194 (*aarch64_pred_abd<SVE_F:mode>): ...this.
3195 (@aarch64_cond_abd<SVE_F:mode>): New expander.
3196 (*mul<SVE_F:mode>3): Rename to...
3197 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
3198 for SVE_STRICT_GP.
3199 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
3200 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
3201 to...
3202 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
3203 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
3204 (*<nlogical><PRED_ALL:mode>3): Rename to...
3205 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
3206 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
3207 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
3208 (*<logical_nn><PRED_ALL:mode>3): Rename to...
3209 (aarch64_pred_<logical_nn><mode>_z): ...this.
3210 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
3211 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
3212 (*fma<SVE_I:mode>4): Rename to...
3213 (@aarch64_pred_fma<SVE_I:mode>): ...this.
3214 (*fnma<SVE_I:mode>4): Rename to...
3215 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
3216 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
3217 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
3218 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
3219 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
3220 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
3221 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
3222 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
3223 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
3224 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
3225 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
3226 (@aarch64_sve_tmad<mode>): Likewise.
3227 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
3228 (*aarch64_sel_dup<mode>): Rename to...
3229 (@aarch64_sel_dup<mode>): ...this.
3230 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
3231 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
3232 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
3233 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
3234 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
3235 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
3236 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
3237 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
3238 (*fcm<cmp_op><mode>): Rename to...
3239 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
3240 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
3241 (*fcmuo<mode>): Rename to...
3242 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
3243 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
3244 (@aarch64_pred_fac<cmp_op><mode>): New expander.
3245 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
3246 (fold_extract_last_<mode>): Generalize to...
3247 (@fold_extract_<last_op>_<mode>): ...this.
3248 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
3249 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
3250 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
3251 DImode result explicit.
3252 (reduc_plus_scal_<mode>): Update accordingly.
3253 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
3254 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
3255 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
3256 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
3257 (*aarch64_sve_tbl<mode>): Rename to...
3258 (@aarch64_sve_tbl<mode>): ...this.
3259 (@aarch64_sve_compact<mode>): New pattern.
3260 (*aarch64_sve_dup_lane<mode>): Rename to...
3261 (@aarch64_sve_dup_lane<mode>): ...this.
3262 (@aarch64_sve_dupq_lane<mode>): New pattern.
3263 (@aarch64_sve_splice<mode>): Likewise.
3264 (aarch64_sve_<perm_insn><mode>): Rename to...
3265 (@aarch64_sve_<perm_insn><mode>): ...this.
3266 (*aarch64_sve_ext<mode>): Rename to...
3267 (@aarch64_sve_ext<mode>): ...this.
3268 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
3269 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
3270 to...
3271 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
3272 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
3273 Rename to...
3274 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
3275 ...this.
3276 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
3277 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
3278 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
3279 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
3280 to...
3281 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
3282 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
3283 a "@" marker.
3284 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
3285 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
3286 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
3287 pattern.
3288 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
3289 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
3290 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
3291 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
3292 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
3293 "@" marker.
3294 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
3295 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
3296 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
3297 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
3298 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
3299 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
3300 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
3301 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
3302 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
3303 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
3304 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
3305 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
3306 (aarch64_sve_cnt_pat): Likewise.
3307 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
3308 (*aarch64_sve_incsi_pat): Likewise.
3309 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
3310 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
3311 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
3312 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
3313 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
3314 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
3315 (*aarch64_sve_decsi_pat): Likewise.
3316 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
3317 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
3318 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
3319 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
3320 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
3321 (@aarch64_pred_cntp<mode>): Likewise.
3322 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
3323 New expander.
3324 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
3325 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
3326 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3327 New expander.
3328 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3329 New pattern.
3330 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
3331 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
3332 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
3333 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
3334 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
3335 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
3336 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
3337 New expander.
3338 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
3339 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
3340 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3341 New expander.
3342 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3343 New pattern.
3344 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
3345 expander.
3346 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
3347 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
3348 expander.
3349 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
3350 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
3351 expander.
3352 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
3353 * config/aarch64/arm_sve.h: New file.
3354 * config/aarch64/aarch64-sve-builtins.h: Likewise.
3355 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
3356 * config/aarch64/aarch64-sve-builtins.def: Likewise.
3357 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
3358 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
3359 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
3360 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
3361 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
3362 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
3363
3364 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3365
3366 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
3367 New pattern.
3368 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
3369 SVE modes.
3370
3371 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3372
3373 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
3374 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
3375 FFRT_REGNUM + 1.
3376 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
3377 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
3378 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
3379 (aarch64_hard_regno_nregs): Handle the new register classes.
3380 (aarch64_hard_regno_mode_ok): Likewise.
3381 (aarch64_regno_regclass): Likewise.
3382 (aarch64_class_max_nregs): Likewise.
3383 (aarch64_register_move_cost): Likewise.
3384 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
3385 as general register_operands.
3386
3387 2019-10-29 Martin Liska <mliska@suse.cz>
3388
3389 * ggc-common.c: One can't subtract unsigned types
3390 in compare function.
3391
3392 2019-10-29 Martin Liska <mliska@suse.cz>
3393
3394 * cgraphunit.c (symbol_table::compile): Pass
3395 title as dump_memory_report argument.
3396 * toplev.c (dump_memory_report): New argument.
3397 (finalize): Pass new argument.
3398 * toplev.h (dump_memory_report): Add argument.
3399
3400 2019-10-29 Martin Liska <mliska@suse.cz>
3401
3402 * ggc-common.c: Move Leak to the first column.
3403
3404 2019-10-29 Martin Liska <mliska@suse.cz>
3405
3406 * cgraphunit.c (symbol_table::compile): Remove argument
3407 for dump_memory_report.
3408 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
3409 (compare_final): Remove in order to make report
3410 better readable.
3411 * ggc.h (dump_ggc_loc_statistics): Remove argument.
3412 * mem-stats.h (mem_alloc_description::get_list):
3413 Do not pass cmp.
3414 (mem_alloc_description::dump): Likewise here.
3415 * toplev.c (dump_memory_report): Remove final
3416 argument.
3417 (finalize): Likewise.
3418 * toplev.h (dump_memory_report): Remove argument.
3419
3420 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3421
3422 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
3423 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
3424 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
3425 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
3426 accept "const".
3427
3428 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3429
3430 * coretypes.h (string_int_pair): New typedef.
3431 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
3432 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
3433 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
3434
3435 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3436
3437 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
3438 (simulate_builtin_function_decl): Declare.
3439 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
3440 (LANG_HOOKS_INITIALIZER): Include it.
3441 * langhooks.c (add_builtin_function_common): Rename to...
3442 (build_builtin_function): ...this. Add a location parameter and use
3443 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
3444 the decl instead.
3445 (add_builtin_function): Update accordingly, passing the returned
3446 decl to the lang hook.
3447 (add_builtin_function_ext_scope): Likewise
3448 (simulate_builtin_function_decl): New function.
3449
3450 2019-10-29 Jakub Jelinek <jakub@redhat.com>
3451
3452 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
3453 example, use actual names of supported offload targets.
3454
3455 PR target/92258
3456 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
3457
3458 2019-10-28 Martin Sebor <msebor@redhat.com>
3459
3460 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
3461 (handle_store): Pass argument to get_addr_stridx.
3462
3463 2019-10-28 Martin Sebor <msebor@redhat.com>
3464
3465 PR tree-optimization/92226
3466 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
3467 the offset is in the open range outlined by SI's length.
3468
3469 2019-10-28 Martin Sebor <msebor@redhat.com>
3470
3471 PR c/66970
3472 * doc/cpp.texi (__has_builtin): Document.
3473 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
3474
3475 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
3476
3477 PR target/82981
3478 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
3479 doubleword and low doubleword result of multiplication on
3480 MIPS64R6.
3481
3482 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
3483 pure qualifier to the built-in.
3484 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
3485 built-ins.
3486 (struct mips_builtin_description): Add is_pure flag.
3487 (mips_init_builtins): Mark built-in as pure if the flag in the
3488 corresponding mips_builtin_description struct is set.
3489
3490 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
3491 alternative which covers the floating-point input value. Also
3492 forbid the split of insert.d pattern for floating-point values.
3493
3494 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
3495
3496 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
3497 * config/riscv/riscv-sr.c: New file.
3498 * config/riscv/riscv.c (riscv_reorg): New function.
3499 (TARGET_MACHINE_DEPENDENT_REORG): Define.
3500 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
3501 (riscv_remove_unneeded_save_restore_calls): Declare.
3502 * config/riscv/t-riscv (riscv-sr.o): New build rule.
3503
3504 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3505
3506 PR tree-optimization/92163
3507 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
3508 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
3509 before calling bitmap_set_bit.
3510 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
3511 delete_dead_or_redundant_assignment.
3512 (dse_dom_walker::dse_optimize_stmt): Likewise.
3513 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
3514
3515 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3516
3517 PR middle-end/91272
3518 * tree-vect-stmts.c (vectorizable_condition): Support
3519 EXTRACT_LAST_REDUCTION with fully-masked loops.
3520
3521 2019-10-28 Richard Biener <rguenther@suse.de>
3522
3523 PR tree-optimization/92252
3524 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
3525 STMT_VINFO_REDUC_IDX when swapping operands.
3526
3527 2019-10-28 Richard Biener <rguenther@suse.de>
3528
3529 PR tree-optimization/92241
3530 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
3531 we failed to update the reduction index do not use the pattern
3532 stmts for the reduction chain.
3533 (vectorizable_reduction): When the reduction chain is corrupt,
3534 fail.
3535 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
3536 fail to update the reduction chain.
3537
3538 2019-10-28 Richard Biener <rguenther@suse.de>
3539
3540 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
3541 STMT_VINFO_REDUC_IDX from the actual stmt.
3542 (vect_transform_reduction): Likewise.
3543 (vectorizable_reduction): Compute the reduction chain length,
3544 do not recompute the reduction operand index. Remove no longer
3545 necessary restriction for condition reduction chains.
3546
3547 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
3548
3549 PR target/92225
3550 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
3551 condition for V2DImode.
3552
3553 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
3554
3555 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
3556 Remove %k operand modifier.
3557 (*vec_extractv2df_1_sse): Remove %q operand modifier.
3558
3559 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
3560
3561 PR rtl-optimization/92007
3562 * cfgcleanup.c (thread_jump): Add an assertion that we don't
3563 call it after reload if hot/cold partitioning has been done.
3564 (class pass_postreload_jump): Rename to
3565 pass_jump_after_combine.
3566 (make_pass_postreload_jump): Rename to
3567 make_pass_jump_after_combine.
3568 * passes.def(pass_postreload_jump): Move before reload, rename
3569 to pass_jump_after_combine.
3570 * tree-pass.h (make_pass_postreload_jump): Rename to
3571 make_pass_jump_after_combine.
3572
3573 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
3574
3575 PR ipa/92242
3576 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
3577 for missing EDGE_REF
3578 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
3579
3580 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
3581
3582 PR tree-optimization/88760
3583 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
3584 Enable -funroll-loops for -O2 and above.
3585 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
3586 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
3587 do not turn on web and rngreg implicitly, if the unroller is not
3588 explicitly enabled.
3589
3590 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
3591
3592 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
3593 jump functions.
3594
3595 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
3596
3597 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
3598 * cgraph.h (cgraph_node::rtl_info): Likewise.
3599
3600 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
3601
3602 * ipa-cp.c (propagate_constants_across_call): If args are not available
3603 just drop everything to varying.
3604 (find_aggregate_values_for_callers_subset): Watch for missing
3605 edge summary.
3606 (find_more_scalar_values_for_callers_subs): Likewise.
3607 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
3608 update_jump_functions_after_inlining, propagate_controlled_uses):
3609 Watch for missing summaries.
3610 (ipa_propagate_indirect_call_infos): Remove summary after propagation
3611 is finished.
3612 (ipa_write_node_info): Watch for missing summaries.
3613 (ipa_read_edge_info): Create new ref.
3614 (ipa_edge_args_sum_t): Add remove.
3615 (IPA_EDGE_REF_GET_CREATE): New macro.
3616 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
3617 edge summary.
3618 (remap_edge_change_prob): Likewise.
3619
3620 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
3621
3622 * ipa-inline-transform.c (inline_call): update function summaries
3623 after expanidng thunk.
3624
3625 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
3626
3627 * ipa-icf.c (sem_function::merge): Update function summaries.
3628 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
3629
3630 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
3631
3632 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
3633 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
3634 operand already has scalar mode.
3635 (iptr): Remove SF/DF.
3636
3637 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
3638
3639 PR target/91289
3640 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
3641 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
3642 this.
3643
3644 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
3645
3646 * config/i386/sse.md
3647 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
3648 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
3649 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
3650 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
3651 <sse>_vmmaskcmp<mode>3):
3652 Change predicates from vector_operand to nonimmediate_operand,
3653 constraints xBm to xm, since scalar operations don't need
3654 memory address alignment.
3655 (avx512f_vmcmp<mode>3<round_saeonly_name>,
3656 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
3657 round_saeonly_nimm_predicate with
3658 round_saeonly_nimm_scalar_predicate.
3659 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
3660 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
3661 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
3662 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
3663 avx512f_vmfmadd_<mode>_mask3<round_name>,
3664 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
3665 *avx512f_vmfmsub_<mode>_mask<round_name>,
3666 avx512f_vmfmsub_<mode>_mask3<round_name>,
3667 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
3668 *avx512f_vmfnmadd_<mode>_mask<round_name>,
3669 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
3670 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
3671 *avx512f_vmfnmsub_<mode>_mask<round_name>,
3672 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
3673 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
3674 cvtusi2<ssescalarmodesuffix>32<round_name>,
3675 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
3676 round_nimm_predicate with round_nimm_scalr_predicate.
3677 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
3678 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
3679 avx512er_vmrcp28<mode><round_saeonly_name>,
3680 avx512er_vmrsqrt28<mode><round_saeonly_name>,
3681 ): Replace round_saeonly_nimm_predicate with
3682 round_saeonly_nimm_scalar_predicate.
3683 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
3684 vector_operand with nonimmediate_operand.
3685 * config/i386/subst.md (round_scalar_nimm_predicate,
3686 round_saeonly_scalar_nimm_predicate): Replace
3687 vector_operand with nonimmediate_operand.
3688
3689 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
3690
3691 PR target/89071
3692 * config/i386/i386.md (*rcpsf2_sse): Add
3693 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
3694 (*rsqrtsf2_sse): Ditto.
3695 (*sqrt<mode>2_sse): Ditto.
3696 (sse4_1_round<mode>2): separate constraint vm, add
3697 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
3698 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
3699 by pass rpad.
3700 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
3701 Ditto.
3702 (*sse_vmrsqrtv4sf2): Ditto.
3703 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
3704 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
3705 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
3706 <iptr> pointer size modifier since vround support memory operand.
3707
3708 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
3709
3710 PR target/85969
3711 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
3712 static function.
3713
3714 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
3715 Tobias Burnus <tobias@codesourcery.com>
3716
3717 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
3718 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
3719 common block decls.
3720
3721 2019-10-25 Richard Biener <rguenther@suse.de>
3722
3723 PR tree-optimization/92222
3724 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
3725 (_slp_oprnd_info::second_pattern): Likewise.
3726 (_slp_oprnd_info::any_pattern): New.
3727 (vect_create_oprnd_info): Adjust.
3728 (vect_get_and_check_slp_defs): Compute whether any stmt is
3729 in a pattern.
3730 (vect_build_slp_tree_2): Avoid building up a node from scalars
3731 if any of the operand defs, not just the first, is in a pattern.
3732
3733 2019-10-25 Richard Biener <rguenther@suse.de>
3734
3735 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
3736 swapping if we actually have to modify the IL on a shared stmt.
3737 (vect_build_slp_tree_2): Never fail swapping on shared stmts
3738 because we no longer modify the IL.
3739
3740 2019-10-25 Martin Liska <mliska@suse.cz>
3741
3742 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
3743
3744 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
3745
3746 * tree-vect-loop.c (vectorizable_reduction): Restrict the
3747 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
3748 handled by vect_transform_reduction. Allow fully-masked loops
3749 to be used with reduction chains.
3750 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
3751 operations in fully-masked loops.
3752 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
3753 operations in fully-masked loops.
3754
3755 2019-10-25 Richard Biener <rguenther@suse.de>
3756
3757 * tree-vect-loop.c (vectorizable_reduction): Verify
3758 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
3759 correctly.
3760 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
3761 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
3762 stmts.
3763
3764 2019-10-24 Jakub Jelinek <jakub@redhat.com>
3765
3766 * gimplify.h (omp_construct_selector_matches): Declare.
3767 * gimplify.c (struct gimplify_omp_ctx): Add code member.
3768 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
3769 called function if needed for flag_openmp.
3770 (gimplify_scan_omp_clauses): Set ctx->code.
3771 (omp_construct_selector_matches): New function.
3772 * omp-general.h (omp_constructor_traits_to_codes,
3773 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
3774 * omp-general.c (omp_constructor_traits_to_codes,
3775 omp_context_selector_matches, omp_resolve_declare_variant): New
3776 functions.
3777
3778 * config/arc/arc.c (hwloop_optimize): Add missing space in string
3779 literal.
3780 * config/rx/rx.c (rx_print_operand): Likewise.
3781 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
3782 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
3783 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
3784 Likewise.
3785 * genemit.c (emit_c_code): Likewise.
3786 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
3787
3788 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
3789
3790 * symbols-summary.h (fast_function_summary<T *, V>::release,
3791 fast_call_summary<T *, V>::release): Free m_vector.
3792
3793 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
3794
3795 * cgraphunit.c (symbol_table::process_new_functions): Call
3796 ipa_free_size_summary.
3797 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
3798 (devirtualization_time_bonus): Update.
3799 (ipcp_propagate_stage): Update.
3800 * ipa-fnsummary.c (ipa_size_summaries): New.
3801 (ipa_fn_summary_alloc): Alloc size summary.
3802 (dump_ipa_call_summary): Update.
3803 (ipa_dump_fn_summary): Update.
3804 (analyze_function_body): Update.
3805 (compute_fn_summary): Likewise.
3806 (ipa_get_stack_frame_offset): New function.
3807 (inline_update_callee_summaries): Do not update frame offsets.
3808 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
3809 remove call and function summary.
3810 (ipa_update_overall_fn_summary): Update.
3811 (inline_read_section): Update.
3812 (ipa_fn_summary_write): Update.
3813 (ipa_free_fn_summary): Do not remove summaries.
3814 (ipa_free_size_summary): New.
3815 (release summary pass): Also run at WPA.
3816 * ipa-fnsummary.h (ipa_size_summary): Declare.
3817 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
3818 estimated_self_stack_size.
3819 (ipa_size_summary_t): New type.
3820 (ipa_size_summaries): Declare.
3821 (ipa_free_size_summary): Declare.
3822 (ipa_get_stack_frame_offset): Declare.
3823 * ipa-icf.c (sem_function::merge): Update.
3824 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
3825 (estimate_growth): Update.
3826 (growth_likely_positive): Update.
3827 (clone_inlined_nodes): Update.
3828 (inline_call): Update.
3829 * ipa-inline.c (caller_growth_limits): Update.
3830 (edge_badness): Update.
3831 (recursive_inlining): Update.
3832 (inline_small_functions): Update.
3833 (inline_to_all_callers_1): Update.
3834 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
3835
3836 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
3837
3838 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
3839 (uavg<mode>3_ceil): ... This.
3840 (altivec_vavgs<VI_char>): Rename to...
3841 (avg<mode>3_ceil): ... This.
3842 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
3843 VAVGUW, VAVGSW): Adjust.
3844
3845 2019-10-24 Nathan Sidwell <nathan@acm.org>
3846
3847 * dumpfile.c (dump_begin): Reorder decls to use RAII.
3848
3849 2019-10-24 Martin Liska <mliska@suse.cz>
3850
3851 * symbol-summary.h (gt_pch_nx): Mark all functions
3852 with gcc_unreachable as we do not expect to be called.
3853
3854 2019-10-24 Richard Biener <rguenther@suse.de>
3855
3856 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
3857 chains try harder with operand swapping and instead of
3858 putting a shifted chain into the reduction operands put
3859 a repetition of the final reduction op there as if we'd
3860 reassociate the expression.
3861
3862 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
3863
3864 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
3865 statics_not_read and statics_not_written to statics_read and
3866 statics_written respectively.
3867 (no_module_statics): New static var.
3868 (ipa_reference_get_not_read_global): Rename to ...
3869 (ipa_reference_get_read_global): ... this.
3870 (ipa_reference_get_not_written_global): Rename to ...
3871 (ipa_reference_get_written_global): ... this.
3872 (dump_static_vars_set_to_file): Dump no_module_statics.
3873 (copy_static_var_set): Add for propagation parameter.
3874 (ipa_init): Initialize no_module_statics.
3875 (ipa_ref_opt_summary_t::duplicate): Update.
3876 (ipa_ref_opt_summary_t::remove): Update.
3877 (propagate): Update.
3878 (write_node_summary_p): Look correctly for bitmap differences.
3879 (ipa_reference_write_optimization_summary): Update.
3880 (ipa_reference_read_optimization_summary): Update.
3881 * ipa-reference.h
3882 (ipa_reference_get_not_read_global): Rename to ...
3883 (ipa_reference_get_read_global): ... this.
3884 (ipa_reference_get_not_written_global): Rename to ...
3885 (ipa_reference_get_written_global): ... this.
3886 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
3887 (call_may_clobber_ref_p_1): Update.
3888
3889 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3890
3891 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
3892 and add comment.
3893 (msp430_hard_regno_nregs_with_padding): Remove.
3894
3895 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3896
3897 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
3898 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
3899 shift amount is between 1 and 4.
3900 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
3901 is between 1 and 4.
3902
3903 2019-10-24 Richard Biener <rguenther@suse.de>
3904
3905 PR tree-optimization/92205
3906 * tree-vect-loop.c (vectorizable_reduction): Restrict
3907 search for alternate vectype_in to lane-reducing patterns
3908 we support.
3909
3910 2019-10-24 Richard Biener <rguenther@suse.de>
3911
3912 PR tree-optimization/92203
3913 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
3914 Skip eliminating conversion stmts inserted by insertion.
3915
3916 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
3917
3918 * config/s390/s390.c (s390_get_thread_pointer): Use
3919 gen_get_thread_pointer.
3920 (s390_expand_split_stack_prologue): Likewise.
3921 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
3922 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
3923 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
3924 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
3925 parameterized name.
3926
3927 2019-10-24 Richard Biener <rguenther@suse.de>
3928
3929 * tree-vect-slp.c (vect_analyze_slp): When reduction group
3930 SLP discovery fails try to handle the reduction as part
3931 of SLP reduction discovery.
3932
3933 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
3934
3935 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
3936 declaration.
3937 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
3938 attribute if it exists, rather than the insn size. If we use the
3939 insn size, adjust the size to remove the extra size that prefixed
3940 instructions take.
3941 (rs6000_adjust_insn_length): New function.
3942 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
3943 update the instruction sized if prefixed instructions are used.
3944 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
3945 (non_prefixed_length attribute): Delete.
3946 (num_insns attribute): New insn attribute to return the number of
3947 instructions.
3948 (max_prefixed_insns attribute): New insn attribute to return the
3949 maximum number of prefixed instructions in an insn.
3950 (length attribute): Do not adjust for prefix instructions here,
3951 punt to ADJUST_INSN_LENGTH.
3952 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
3953 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
3954 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
3955 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
3956 max_prefixed_insns and num_insns.
3957
3958 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
3959 (movtd_64bit_nodm): Reformat.
3960 (mov<mode>_32bit): Reformat.
3961 (mov<mode>_softfloat): Reformat.
3962 (FMOVE128_GPR splitter): Reformat.
3963 (DIFD splitter): Reformat.
3964 (TI2 splitter): Reformat.
3965 * config/rs6000/predicates.md (lwa_operand): If the bottom two
3966 bits of the offset for the memory address are non-zero, use PLWA
3967 if prefixed instructions are available.
3968
3969 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
3970
3971 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
3972
3973 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
3974
3975 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
3976 previous patch.
3977
3978 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
3979
3980 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
3981 (cmp_symbol_files): New.
3982 (lto_output): Copy sections in file order.
3983 * lto-streamer.h (lto_file_decl_data): Add field order.
3984
3985 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
3986
3987 * ipa-reference.h (ipa_reference_var_uid): Move offline.
3988 * ipa-reference.c (reference_vars_map_t): new type.
3989 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
3990 (ipa_reference_var_uid): Implement.
3991 (varpool_node_hooks): New static var.
3992 (varpool_removal_hook): New function.
3993 (is_improper): Do not check bitmap for id==-1
3994 (get_static_name): Update.
3995 (ipa_init): Initialize new datastructures.
3996 (analyze_function): Do not recompute ids.
3997 (propagate): Free reference_vars_to_consider.
3998 (stream_out_bitmap): Update.
3999 (ipa_reference_read_optimization_summary): Update.
4000
4001 2019-10-23 qing zhao <qing.zhao@oracle.com>
4002
4003 PR gcov-profile/91971
4004 * coverage.c (coverage_init): Mangle the full path of filename when
4005 filename is a absolute path.
4006
4007 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4008
4009 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
4010 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
4011 (msp430_has_hwmult): New.
4012 (msp430_output_labelref):
4013 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
4014 * config/msp430/msp430.md (mulhisi3): Likewise.
4015 (umulhisi3): Likewise.
4016 (mulsidi3): Likewise.
4017 (umulsidi3): Likewise.
4018
4019 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4020
4021 PR ipa/92074
4022 * params.def (inline-heuristics-hint-percent): Set to 600.
4023
4024 2019-10-23 Richard Biener <rguenther@suse.de>
4025
4026 PR tree-optimization/65930
4027 * tree-vect-loop.c (check_reduction_path): Allow conversions
4028 that only change the sign.
4029 (vectorizable_reduction): Relax latch def stmts we handle further.
4030
4031 2019-10-23 Jakub Jelinek <jakub@redhat.com>
4032
4033 PR debug/90231
4034 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
4035 (remove_unused_ivs): Use it instead of get_computation_at. When
4036 choosing best candidate, only consider candidates where
4037 get_debug_computation_at actually returns non-NULL.
4038
4039 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
4040
4041 PR tree-optimization/92131
4042 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
4043 range would be symbolic, drop to varying for any explicit overflow
4044 in the constant part or if neither range is a singleton.
4045
4046 2019-10-23 Martin Liska <mliska@suse.cz>
4047
4048 PR middle-end/81669
4049 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
4050 Initialize m_data.
4051
4052 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
4053
4054 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
4055 int_mode_for_mode rather than mode_for_int_vector for scalars.
4056
4057 2019-10-23 Richard Biener <rguenther@suse.de>
4058
4059 PR tree-optimization/92179
4060 * tree-vect-stmts.c (vectorizable_shift): For shift args
4061 that are all the same remove type restriction in the SLP case.
4062 Adjust SLP code to handle converting of the shift arg to
4063 only apply in case the modes are different.
4064
4065 2019-10-23 Martin Liska <mliska@suse.cz>
4066
4067 PR ipa/91969
4068 * ipa-inline.c (recursive_inlining): Do not print
4069 when curr->count is not initialized.
4070
4071 2019-10-23 Richard Biener <rguenther@suse.de>
4072
4073 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
4074 op from scalars in case there's a constant operand in its
4075 definition.
4076
4077 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
4078
4079 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
4080 against out of range max skip or log values.
4081
4082 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
4083
4084 * cgraph.c (dump_graphviz): Change name to dump_name
4085
4086 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
4087
4088 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
4089 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
4090 subtraction from a carry operation.
4091
4092 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
4093
4094 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
4095
4096 2019-10-22 Richard Biener <rguenther@suse.de>
4097
4098 PR tree-optimization/92173
4099 * tree-vect-loop.c (vectorizable_reduction): If
4100 vect_transform_reduction cannot handle code-generation try without
4101 the single-def-use-cycle optimization. Pass optab_vector to
4102 optab_for_tree_code to get vector shifts as that's what we'd
4103 generate.
4104
4105 2019-10-22 Michael Matz <matz@suse.de>
4106
4107 PR middle-end/90796
4108 * gimple-loop-jam.c (any_access_function_variant_p): New function.
4109 (adjust_unroll_factor): Use it to constrain safety, new parameter.
4110 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
4111
4112 2019-10-22 Richard Biener <rguenther@suse.de>
4113
4114 PR tree-optimization/92173
4115 * tree-vect-loop.c (vectorizable_reduction): If
4116 vect_transform_reduction cannot handle code-generation try without
4117 the single-def-use-cycle optimization. Pass optab_vector to
4118 optab_for_tree_code to get vector shifts as that's what we'd
4119 generate.
4120
4121 2019-10-22 Martin Liska <mliska@suse.cz>
4122
4123 * diagnostic-format-json.cc (json_from_expanded_location):
4124 Use json::integer_number.
4125 * gcov.c (output_intermediate_json_line): Use new
4126 json::integer_number.
4127 (output_json_intermediate_file): Likewise.
4128 * json.cc (number::print): Move to ...
4129 (float_number::print): ... this.
4130 (integer_number::print): New.
4131 (test_writing_numbers): Move to ...
4132 (test_writing_float_numbers): ... this.
4133 (test_writing_integer_numbers): New.
4134 (json_cc_tests): Register test_writing_integer_numbers.
4135 * json.h (class value): Add forward declaration
4136 for float_number and integer_number.
4137 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
4138 (class number): Move to ...
4139 (class float_number): ... this.
4140 (class integer_number): New.
4141 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
4142 Use json::integer_number.
4143 (optrecord_json_writer::location_to_json): Likewise.
4144 (optrecord_json_writer::profile_count_to_json): Likewise.
4145 (optrecord_json_writer::pass_to_json): Likewise.
4146
4147 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
4148
4149 * tree-vect-slp.c (vect_slp_bb_region): Check whether
4150 autodetected_vector_size rather than vector_size is zero.
4151 * tree-vect-loop.c (vect_analyze_loop): Likewise.
4152 Set autodetected_vector_size immediately after calling
4153 vect_analyze_loop_2. Check for a fatal error before advancing
4154 next_size.
4155
4156 2019-10-21 Jason Merrill <jason@redhat.com>
4157
4158 * lock-and-run.sh: Check for process existence rather than timeout.
4159
4160 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4161
4162 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
4163 widening multiplication.
4164
4165 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
4166
4167 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
4168 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
4169 type attribute.
4170 (subsi3_carryin_shift): Separate into register and constant controlled
4171 alternatives. Use shift_amount_operand for operand 4. Set shift
4172 attribute and simplify type attribute.
4173 (subsi3_carryin_shift_alt): Likewise.
4174 (rsbsi3_carryin_shift): Likewise.
4175 (rsbsi3_carryin_shift_alt): Likewise.
4176 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
4177 and register controlled shifts into distinct alternatives.
4178 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
4179 (andsi_not_shiftsi_si_scc): Likewise.
4180 (arm_cmpsi_negshiftsi_si): Likewise.
4181 (not_shiftsi): Remove redundant M constraint from alternative 1.
4182 (not_shiftsi_compare0): Likewise.
4183 (arm_cmpsi_insn): Remove redundant alternative 2.
4184 (cmpsi_shift_swp): Likewise.
4185 (sub_shiftsi): Likewise.
4186 (sub_shiftsi_compare0_scratch): Likewise.
4187 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
4188 (thumb2_cmpsi_neg_shiftsi): Likewise.
4189
4190 2019-10-21 Richard Biener <rguenther@suse.de>
4191
4192 PR tree-optimization/92162
4193 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
4194 STMT_VINFO_REDUC_IDX in reduc_info.
4195 * tree-vect-stmts.c (vectorizable_condition): Likewise.
4196
4197 2019-10-21 Richard Biener <rguenther@suse.de>
4198
4199 * tree-vectorizer.h (_slp_tree::ops): New member.
4200 (SLP_TREE_SCALAR_OPS): New.
4201 (vect_get_slp_defs): Adjust prototype.
4202 * tree-vect-slp.c (vect_free_slp_tree): Release
4203 SLP_TREE_SCALAR_OPS.
4204 (vect_create_new_slp_node): Initialize it. New overload for
4205 initializing by an operands array.
4206 (_slp_oprnd_info::ops): New member.
4207 (vect_create_oprnd_info): Initialize it.
4208 (vect_free_oprnd_info): Release it.
4209 (vect_get_and_check_slp_defs): Populate the operands array.
4210 Do not swap operands in the IL when not necessary.
4211 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
4212 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
4213 swap operands in the operands array. Do not swap operands in
4214 the IL.
4215 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
4216 (vect_gather_slp_loads): Fix.
4217 (vect_detect_hybrid_slp_stmts): Likewise.
4218 (vect_slp_analyze_node_operations_1): Search for a internal
4219 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
4220 (vect_slp_analyze_node_operations): Skip ops-only stmts for
4221 the def-type push/pop dance.
4222 (vect_get_constant_vectors): Compute number_of_vectors here.
4223 Use SLP_TREE_SCALAR_OPS and simplify greatly.
4224 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
4225 (vect_get_slp_defs): Simplify greatly.
4226 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
4227 (vect_transform_reduction): Likewise.
4228 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
4229 (vectorizable_call): Likewise.
4230 (vectorizable_operation): Likewise.
4231 (vectorizable_load): Likewise.
4232 (vectorizable_condition): Likewise.
4233 (vectorizable_comparison): Likewise.
4234
4235 2019-10-21 Richard Biener <rguenther@suse.de>
4236
4237 PR tree-optimization/92161
4238 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
4239 for reductions.
4240
4241 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4242
4243 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
4244 (aarch64_rndr): New define_insn.
4245 (aarch64_rndrrs): Likewise.
4246 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
4247 (TARGET_RNG): Likewise.
4248 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
4249 argument.
4250 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
4251 Add fourth argument in prototype.
4252 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
4253 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
4254 (aarch64_init_rng_builtins): Define.
4255 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
4256 (aarch64_expand_rng_builtin): Define.
4257 (aarch64_general_expand_builtin): Use IGNORE argument, handle
4258 RNG builtins.
4259 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
4260 __ARM_FEATURE_RNG when TARGET_RNG.
4261 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
4262
4263 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
4264
4265 * tree-vect-stmts (ensure_base_align): Only change alignment if new
4266 alignment is more restrictive.
4267
4268 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4269
4270 * tree-vectorizer.h (vec_info::vector_size): New member variable.
4271 (vect_update_max_nunits): Update comment.
4272 (current_vector_size): Delete.
4273 * tree-vect-stmts.c (current_vector_size): Likewise.
4274 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
4275 of current_vector_size.
4276 (get_mask_type_for_scalar_type): Likewise.
4277 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
4278 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
4279 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
4280 (vect_double_mask_nunits, vect_transform_loop): Likewise.
4281 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
4282 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
4283
4284 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4285
4286 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
4287 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
4288 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
4289 accordingly.
4290
4291 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4292
4293 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
4294 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
4295 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
4296 call accordingly.
4297 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
4298
4299 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4300
4301 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
4302 a loop_vec_info.
4303 (vect_set_loop_condition_masked): Update call accordingly.
4304
4305 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4306
4307 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
4308 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
4309 (simple_integer_narrowing): Update call accordingly.
4310 (vectorizable_conversion): Likewise.
4311
4312 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4313
4314 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
4315 (vectorizable_call): Update call accordingly.
4316
4317 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4318
4319 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
4320 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
4321 (duplicate_and_interleave): Update call accordingly.
4322 * tree-vect-loop.c (vectorizable_reduction): Likewise.
4323
4324 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4325
4326 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
4327 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
4328 (vect_get_constant_vectors): Update call accordingly.
4329 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
4330
4331 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4332
4333 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
4334 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
4335 (vect_prologue_cost_for_slp_op): Update call accordingly.
4336 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
4337 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
4338 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
4339 (get_mask_type_for_scalar_type): Likewise.
4340 (vect_get_vector_types_for_stmt): Likewise.
4341 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4342 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
4343 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
4344 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
4345 (vect_split_statement, vect_convert_input): Likewise.
4346 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
4347 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
4348 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
4349 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
4350 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
4351 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
4352 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
4353 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
4354 (vect_recog_mask_conversion_pattern): Likewise.
4355 (vect_add_conversion_to_pattern): Likewise.
4356 (vect_recog_gather_scatter_pattern): Likewise.
4357 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
4358 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
4359
4360 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4361
4362 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
4363 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
4364 (vect_check_load_store_mask): Update call accordingly.
4365 (vect_get_mask_type_for_stmt): Likewise.
4366 * tree-vect-patterns.c (check_bool_pattern): Likewise.
4367 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
4368 (vect_convert_mask_for_vectype): Likewise.
4369
4370 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4371
4372 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
4373 a vec_info.
4374 (vect_recog_dot_prod_pattern): Update call accordingly.
4375 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
4376 (vect_recog_widen_sum_pattern): Likewise.
4377
4378 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4379
4380 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
4381 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
4382 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
4383 accordingly.
4384
4385 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4386
4387 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
4388 get_vectype_for_scalar_type_and_size instead of
4389 get_vectype_for_scalar_type.
4390
4391 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
4392
4393 * common.opt (-fcommon): Fix description.
4394
4395 2019-10-20 Jakub Jelinek <jakub@redhat.com>
4396
4397 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
4398 * config/i386/i386.c (ix86_pre_reload_split): New function.
4399 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
4400 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
4401 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
4402 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
4403 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
4404 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
4405 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
4406 *<shift_insn><dwi>3_doubleword_mask,
4407 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
4408 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
4409 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
4410 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
4411 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
4412 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
4413 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
4414 *avx2_<code>v8qiv8si2<mask_name>_2,
4415 *sse4_1_<code>v4qiv4si2<mask_name>_2,
4416 *sse4_1_<code>v4hiv4si2<mask_name>_2,
4417 *avx512f_<code>v8qiv8di2<mask_name>_2,
4418 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
4419 *sse4_1_<code>v2hiv2di2<mask_name>_2,
4420 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
4421 sse4_2_pcmpistr): Likewise.
4422
4423 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
4424
4425 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
4426 now defaults to https.
4427
4428 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
4429
4430 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
4431 skip non-zero array accesses.
4432
4433 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
4434
4435 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
4436 and return a boolean success value. Move the allocation and
4437 initialization of the bb_vec_info to...
4438 (vect_slp_bb_region): ...here. Update call accordingly.
4439 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
4440 than in vect_slp_analyze_bb_1.
4441
4442 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
4443
4444 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
4445 when processing the given datarefs for the first time and
4446 check_datarefs subsequently.
4447 (vect_slp_bb_region): New function, split out of...
4448 (vect_slp_bb): ...here. Don't recompute the region bounds and
4449 dataref sets when retrying with a different vector size.
4450
4451 2019-10-19 Jakub Jelinek <jakub@redhat.com>
4452 Uroš Bizjak <ubizjak@gmail.com>
4453
4454 PR target/92140
4455 * config/i386/predicates.md (int_nonimmediate_operand): New special
4456 predicate.
4457 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
4458 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
4459 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
4460 define_insn_and_split patterns.
4461
4462 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
4463
4464 * config/rs6000/rs6000.md: Delete out--of-date comment about
4465 special-casing integer loads.
4466
4467 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
4468
4469 * escaped_string.h (escaped_string): New header.
4470 * tree.c (escaped_string): Remove escaped_string class.
4471
4472 2019-10-18 Martin Sebor <msebor@redhat.com>
4473
4474 PR tree-optimization/92157
4475 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
4476 compute_string_length to return a negative result.
4477
4478 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4479
4480 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
4481 (negvsi3, negvdi3): Delete.
4482 (negdi2_compare): Delete.
4483
4484 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4485
4486 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
4487 operations.
4488 (subdi3_compare1): Delete pattern.
4489 (subvsi3_borrow): New insn pattern.
4490 (subvsi3_borrow_imm): Likewise.
4491
4492 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4493
4494 * config/arm/arm.md (subv<mode>4): Delete.
4495 (subvdi4): New expander pattern.
4496 (subvsi4): Likewise. Handle some immediate values.
4497 (subvsi3_intmin): New insn pattern.
4498 (subvsi3): Likewise.
4499 (subvsi3_imm1): Likewise.
4500 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
4501 idioms.
4502
4503 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4504
4505 * config/arm/arm.md (usubvdi4): Allow registers or integers for
4506 incoming operands. Early split the calculation into SImode
4507 operations.
4508 (usubvsi3_borrow): New insn pattern.
4509 (usubvsi3_borrow_imm): Likewise.
4510
4511 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4512
4513 * config/arm/arm.md (usubv<mode>4): Delete expansion.
4514 (usubvsi4): New pattern. Allow some immediate values for inputs.
4515 (usubvdi4): New pattern.
4516
4517 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4518
4519 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
4520 or second operand of the PLUS inside a DImode equality test to be
4521 sign-extend when selecting CC_Vmode.
4522 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
4523 instructions.
4524 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
4525 expand patterns.
4526 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
4527 (addsi3_cin_vout_0): Likewise.
4528 (adddi3_compareV): Delete.
4529
4530 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4531
4532 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
4533 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
4534 to transform this back into the summation version when that leads
4535 to smaller code.
4536
4537 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4538
4539 * config/arm/arm.md (addv<mode>4): Delete.
4540 (addvsi4): New pattern. Handle immediate values that the architecture
4541 supports.
4542 (addvdi4): New pattern.
4543 (addsi3_compareV): Rename to ...
4544 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
4545 and use COMPARE rather than NE.
4546 (addsi3_compareV_imm): New pattern.
4547 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
4548 a signed-overflow check.
4549
4550 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4551
4552 * config/arm/arm-modes.def (CC_ADC): New CC mode.
4553 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
4554 CC_ADCmode.
4555 (maybe_get_arm_condition_code): Handle CC_ADCmode.
4556 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
4557 with overflow.
4558 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
4559 expand patterns.
4560 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
4561 (addsi3_cin_cout_imm_insn): Likewise.
4562 (adddi3_compareC): Delete insn.
4563 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
4564
4565 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4566
4567 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
4568 * (uaddv<mode>4): Delete expansion pattern.
4569 (uaddvsi4): New pattern.
4570 (uaddvdi4): Likewise.
4571 (addsi3_compareC): Delete pattern, change callers to use
4572 addsi3_compare_op1.
4573 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
4574 reduce the number of alternatives and re-work type attribute handling.
4575 (addsi3_compare_op2): Clean up constraints to reduce the number of
4576 alternatives and re-work type attribute handling.
4577 (compare_addsi2_op0): Likewise.
4578 (compare_addsi2_op1): Likewise.
4579
4580 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4581
4582 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
4583 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
4584 for DImode operands.
4585 (arm_gen_dicompare_reg): Remove unreachable expansion code.
4586 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
4587 CC_NCVmode.
4588 * config/arm/arm.md (arm_cmpdi_insn): Delete.
4589 (arm_cmpdi_unsigned): Delete.
4590
4591 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4592
4593 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
4594 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
4595 unchanged only if that will be cheaper.
4596 (arm_select_cc_mode): Recognize a swapped comparison that will
4597 be regenerated using RSBS or RSCS. Relax restriction on selecting
4598 CC_RSBmode.
4599 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
4600 a constant.
4601 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
4602 is CC_RSBmode.
4603 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
4604 as CCmode.
4605 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
4606 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
4607
4608 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4609
4610 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
4611 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
4612 need these modes.
4613 (arm_gen_dicompare_reg): New code to early expand the sub-operations
4614 of EQ, NE, LT, GE, LTU and GEU.
4615 * config/arm/iterators.md (CC_EXTEND): New code attribute.
4616 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
4617 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
4618 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
4619 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
4620
4621 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4622
4623 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
4624 operand 2.
4625 (cstoredi4): Similarly, but for operand 3.
4626 * config/arm/arm.c (arm_canoncialize_comparison): Allow
4627 canonicalization of unsigned compares with a constant on Arm.
4628 Prefer using const+1 and adjusting the comparison over swapping the
4629 operands whenever the original constant was not valid.
4630 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
4631 register here.
4632 (arm_validize_comparison): Do not force invalid DImode operands to
4633 registers here.
4634
4635 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4636
4637 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
4638 return CC_Zmode if comparing against a constant where one word is
4639 zero.
4640 (arm_gen_compare_reg): Split DImode handling to ...
4641 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
4642 against simple constants.
4643 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
4644
4645 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4646
4647 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
4648 (rsbsi3_carryin_shift_alt): Likewise.
4649
4650 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4651
4652 * config/arm/arm.md (negscc_borrow): New pattern.
4653 (mov_negscc): Don't split if the insn would match negscc_borrow.
4654 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
4655 (thumb2_mov_negscc_strict_it): Likewise.
4656
4657 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4658
4659 * config/arm/arm.c (arm_insn_cost): New function.
4660 (TARGET_INSN_COST): Override default definition.
4661
4662 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4663
4664 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
4665 borrow operations.
4666
4667 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4668
4669 * config/arm/arm.c (strip_carry_operation): New function.
4670 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
4671 for SImode.
4672
4673 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4674
4675 * config/arm/predicates.md (arm_carry_operation): New special
4676 predicate.
4677 * config/arm/iterators.md (LTUGEU): Delete iterator.
4678 (cnb): Delete code attribute.
4679 (optab): Delete ltu and geu elements.
4680 * config/arm/arm.md (addsi3_carryin): Renamed from
4681 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
4682 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
4683 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
4684 (addsi3_carryin_clobercc): Similarly.
4685 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
4686 Thumb2 state.
4687
4688 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4689
4690 * config/arm/arm.md (arm_subdi3): Delete insn.
4691 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
4692
4693 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4694
4695 * config/arm/arm-modes.def (CC_RSB): New CC mode.
4696 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
4697 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
4698 return CC_RSBmode.
4699 (maybe_get_arm_condition_code): Handle CC_RSBmode.
4700 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
4701 expand.
4702 (subdi3): Rewrite to early-expand the sub-operations.
4703 (rsb_im_compare): New pattern.
4704 (negdi2): Delete.
4705 (negdi2_insn): Delete.
4706 (arm_negsi2): Correct type attribute to alu_imm.
4707 (negsi2_0compare): New insn pattern.
4708 (negsi2_carryin): New insn pattern.
4709
4710 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4711
4712 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
4713 operand 2.
4714
4715 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4716
4717 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
4718 to match canonical form.
4719
4720 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4721
4722 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
4723 (extend<mode>di2): Likewise.
4724
4725 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4726
4727 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
4728 * config/arm/arm.c (arm_decompose_di_binop): New function.
4729 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
4730 If not generating Thumb-1 code, decompose the operation into 32-bit
4731 pieces.
4732 * add0si_carryin_<optab>: New pattern.
4733
4734 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4735
4736 * arm.md (adddi3): Only accept register operands.
4737 (arm_adddi3): Convert to simple insn with no split. Do not accept
4738 constants.
4739 (adddi_sesidi_di): Delete patern.
4740 (adddi_zesidi_di): Likewise.
4741 (uaddv<mode>4): Use LTU as condition for branch.
4742 (adddi3_compareV): Convert to simple insn with no split.
4743 (addsi3_compareV_upper): Delete pattern.
4744 (adddi3_compareC): Convert to simple insn with no split. Correct
4745 flags setting expression.
4746 (addsi3_compareC_upper): Delete pattern.
4747 (addsi3_compareC): Correct flags setting expression.
4748 (subdi3_compare1): Convert to simple insn with no split.
4749 (subsi3_carryin_compare): Delete pattern.
4750 (arm_subdi3): Convert to simple insn with no split.
4751 (subdi_zesidi): Delete pattern.
4752 (subdi_di_sesidi): Delete pattern.
4753 (subdi_zesidi_di): Delete pattern.
4754 (subdi_sesidi_di): Delete pattern.
4755 (subdi_zesidi_zesidi): Delete pattern.
4756 (negvdi3): Use s_register_operand.
4757 (negdi2_compare): Convert to simple insn with no split.
4758 (negdi2_insn): Likewise.
4759 (negsi2_carryin_compare): Delete pattern.
4760 (negdi_zero_extendsidi): Delete pattern.
4761 (arm_cmpdi_insn): Convert to simple insn with no split.
4762 (negdi2): Don't call gen_negdi2_neon.
4763 * config/arm/neon.md (adddi3_neon): Delete pattern.
4764 (subdi3_neon): Delete pattern.
4765 (negdi2_neon): Delete pattern.
4766 (splits for negdi2_neon): Delete splits.
4767
4768 2019-10-18 Jakub Jelinek <jakub@redhat.com>
4769
4770 PR middle-end/92153
4771 * ggc-page.c (release_pages): Read g->alloc_size before free rather
4772 than after it.
4773
4774 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
4775
4776 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
4777 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
4778 new multilib variants and new mappings.
4779
4780 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
4781
4782 PR target/86040
4783 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
4784
4785 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4786 Richard Sandiford <richard.sandiford@arm.com>
4787
4788 PR target/86753
4789 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
4790 and define hashmap traits for it.
4791 (loop_vec_info::scalar_cond_masked_set): New member.
4792 (vect_record_loop_mask): Adjust prototype.
4793 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
4794 Implement method.
4795 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
4796 vect_record_loop_mask.
4797 (vectorizable_live_operation): Likewise.
4798 (vect_record_loop_mask): New param scalar_mask. Add entry
4799 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
4800 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
4801 Pass it as last arg to vect_record_loop_mask.
4802 (vectorizable_call): Pass scalar_mask as last arg to
4803 vect_record_loop_mask.
4804 (vectorizable_store): Likewise.
4805 (vectorizable_load): Likewise.
4806 (vectorizable_condition): Check if another part of vectorized code
4807 applies loop_mask to condition or to it's inverse, and if yes,
4808 apply loop_mask to result of vector comparison.
4809
4810 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
4811
4812 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
4813
4814 2019-10-18 Jakub Jelinek <jakub@redhat.com>
4815
4816 PR tree-optimization/92056
4817 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
4818 before calling compute_builtin_object_size.
4819
4820 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
4821
4822 PR target/65342
4823 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
4824 (movdi_low_st): Delete.
4825 * config/rs6000/rs6000.c
4826 (darwin_rs6000_legitimate_lo_sum_const_p): New.
4827 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
4828 * config/rs6000/rs6000.md (movsi_low): Delete.
4829
4830 2019-10-17 Jason Merrill <jason@redhat.com>
4831
4832 * gimplify.h (get_initialized_tmp_var): Add default argument to
4833 post_p.
4834 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
4835 NULL post_p argument.
4836 * targhooks (std_gimplify_va_arg_expr): Likewise.
4837
4838 2019-10-17 Richard Biener <rguenther@suse.de>
4839
4840 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
4841 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
4842 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
4843 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
4844 * tree-vect-loop.c (vect_is_simple_reduction): Set
4845 STMT_VINFO_REDUC_CODE.
4846 (vectorizable_reduction): Remove dead and redundant code, use
4847 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
4848
4849 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
4850
4851 Fix breakage introduced by r276985.
4852
4853 * config/avr/avr.c (avr_option_override): Remove set of
4854 PARAM_ALLOW_STORE_DATA_RACES.
4855 * common/config/avr/avr-common.c (avr_option_optimization_table)
4856 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
4857
4858 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
4859
4860 * config/i386/i386.h (processor_costs): Add clear_ratio.
4861 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
4862 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
4863 of 6 and move_ratio in all cost models.
4864
4865 2019-10-17 Richard Biener <rguenther@suse.de>
4866
4867 * tree-vect-loop.c (check_reduction_path): Compute reduction
4868 operation here.
4869 (vect_is_simple_reduction): Remove special-case of single-stmt
4870 reduction path detection.
4871
4872 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
4873
4874 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
4875
4876 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
4877
4878 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
4879 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
4880 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
4881 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
4882 New combine patterns.
4883 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
4884 above.
4885 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
4886
4887 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
4888
4889 * tree-vrp.c (value_range_base::dump): Display +INF for both
4890 pointers and integers when appropriate.
4891
4892 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
4893
4894 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
4895 when to use versioning threshold.
4896
4897 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
4898
4899 * tree-vect-loop.c (determine_peel_for_niter): New function contained
4900 outlined code from ...
4901 (vect_analyze_loop_2): ... here.
4902
4903 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
4904
4905 * tree-vect-loop.c (vect_transform_loop): Move code from here...
4906 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
4907 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
4908
4909 2019-10-17 Richard Biener <rguenther@suse.de>
4910
4911 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
4912 (vect_is_simple_reduction): Move all validity checks ...
4913 (vectorizable_reduction): ... here. Compute whether we
4914 need a fold-left reduction here.
4915 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
4916 both overloads, check needs_fold_left_reduction_p directly.
4917 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
4918
4919 2019-10-17 Richard Biener <rguenther@suse.de>
4920
4921 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
4922 TARGET_MEM_REF creation.
4923
4924 2019-10-17 Richard Biener <rguenther@suse.de>
4925
4926 PR tree-optimization/92129
4927 * tree-vect-loop.c (vectorizable_reduction): Also fail
4928 on GIMPLE_SINGLE_RHS.
4929
4930 2019-10-17 Jakub Jelinek <jakub@redhat.com>
4931
4932 PR tree-optimization/92056
4933 * tree-object-size.c (cond_expr_object_size): Return early if then_
4934 processing resulted in unknown size.
4935
4936 PR tree-optimization/92115
4937 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
4938 temporary if it could trap.
4939
4940 2019-10-17 Richard Biener <rguenther@suse.de>
4941
4942 PR debug/91887
4943 * dwarf2out.c (gen_formal_parameter_die): Also try to match
4944 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
4945
4946 2019-10-16 Jakub Jelinek <jakub@redhat.com>
4947
4948 * tree-ssa-strlen.c (maybe_invalidate): Use
4949 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
4950
4951 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
4952 Jim Wilson <jimw@sifive.com>
4953
4954 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
4955 regs to SIBCALL_REGS.
4956 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
4957 passing regs to SIBCALL_REGS.
4958
4959 2019-10-16 Martin Sebor <msebor@redhat.com>
4960
4961 PR tree-optimization/83821
4962 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
4963 the length of a string when available.
4964 (handle_builtin_memset) Add argument.
4965 (handle_store, strlen_check_and_optimize_call): Same.
4966 (check_and_optimize_stmt): Same. Pass it to callees.
4967
4968 2019-10-16 Martin Sebor <msebor@redhat.com>
4969
4970 PR tree-optimization/91996
4971 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
4972 information.
4973 (compare_nonzero_chars): Add an overload.
4974 (count_nonzero_bytes): Add an argument. Call overload above.
4975 Handle non-constant lengths in some range.
4976 (handle_store): Add an argument.
4977 (check_and_optimize_stmt): Pass an argument to handle_store.
4978
4979 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
4980
4981 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
4982
4983 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
4984
4985 * config/mips/mips.c (mips_expand_builtin_insn): Force the
4986 operands which correspond to the same input-output register to
4987 have the same pseudo assigned to them.
4988
4989 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
4990
4991 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
4992
4993 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
4994
4995 * config/aarch64/aarch64.c (aarch64_classify_symbol):
4996 Apply reasonable limit to symbol offsets.
4997
4998 2019-10-16 Richard Biener <rguenther@suse.de>
4999
5000 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
5001 (vect_is_simple_reduction): Delay checking to
5002 vectorizable_reduction and relax the checking.
5003 (vectorizable_reduction): Check we have a simple use. Check
5004 for bogus condition reductions.
5005 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
5006 are looking at the last stmt in a pattern sequence when
5007 filling in backedge PHI values.
5008
5009 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
5010 Jiufu Guo <guojiufu@linux.ibm.com>
5011
5012 PR target/70010
5013 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
5014 the callee explicitly disables some isa_flags the caller is using.
5015
5016 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5017
5018 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
5019
5020 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5021
5022 * genmodes.c (mode_data::order): New field.
5023 (blank_mode): Update accordingly.
5024 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
5025 (make_vector_modes): Likewise.
5026 (VECTOR_MODES): Update use accordingly.
5027 (cmp_modes): Sort by the new order field ahead of sorting by size.
5028 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
5029 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
5030 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
5031 (aarch64_classify_vector_mode): Handle the new partial modes.
5032 (aarch64_vl_bytes): New function.
5033 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
5034 when counting the number of registers in an SVE mode.
5035 (aarch64_class_max_nregs): Likewise.
5036 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
5037 in registers yet.
5038 (aarch64_classify_address): Treat partial vectors analogously
5039 to full vectors.
5040 (aarch64_print_address_internal): Consolidate the printing of
5041 MUL VL addresses, using aarch64_vl_bytes as the number of
5042 bytes represented by "VL".
5043 (aarch64_vector_mode_supported_p): Reject partial vector modes.
5044
5045 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5046
5047 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
5048 rather than known_lt when choosing frame layouts.
5049
5050 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5051
5052 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
5053 that all the adjustments add up to the full frame size.
5054 Use crtl->outgoing_args_size directly as the final adjustment
5055 where appropriate.
5056
5057 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5058
5059 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
5060 "frame" reference instead of always referring directly to
5061 "cfun->machine->frame".
5062
5063 2019-10-16 Richard Biener <rguenther@suse.de>
5064
5065 PR tree-optimization/92119
5066 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
5067 against missing bswap lhs.
5068
5069 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5070
5071 PR middle-end/92033
5072 * poly-int.h (constant_lower_bound_with_limit): New function.
5073 (constant_upper_bound_with_limit): Likewise.
5074 * doc/poly-int.texi: Document them.
5075 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
5076 into the worst-case INTEGER_CST bounds.
5077
5078 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
5079
5080 PR ipa/91088
5081 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
5082 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
5083 * ipa-predicat.h (struct expr_eval_op): New struct.
5084 (expr_eval_ops): New typedef.
5085 (struct condition): Add type and param_ops fields, remove size field.
5086 (add_condition): Replace size parameter with type parameter, add
5087 param_ops parameter.
5088 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
5089 (predicate::add_clause): Add comparisons on type and param_ops.
5090 (dump_condition): Add debug dump for param_ops.
5091 (remap_after_inlining): Adjust call arguments to add_condition.
5092 (add_condition): Replace size parameter with type parameter, add
5093 param_ops parameter. Unshare constant value used in conditions.
5094 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
5095 parameter expressions using param_ops.
5096 (decompose_param_expr): New function.
5097 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
5098 to replace call to unmodified_parm_or_parm_agg_item.
5099 (set_switch_stmt_execution_predicate): Likewise.
5100 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
5101 with type.
5102 (inline_read_section): Read param_ops from summary stream.
5103 (ipa_fn_summary_write): Write param_ops to summary stream.
5104
5105 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
5106
5107 PR rtl-optimization/92107
5108 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
5109 expression written.
5110
5111 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
5112
5113 * config/darwin.c: Update description of fix and continue.
5114
5115 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
5116
5117 * config/darwin.c (darwin_binds_local_p): Update to call
5118 default_binds_local_p_3 () directly. amend comments.
5119
5120 2019-10-15 Richard Biener <rguenther@suse.de>
5121
5122 * lto-streamer-out.c (lto_variably_modified_type_p): New.
5123 (tree_is_indexable): Use it.
5124 * tree-streamer-out.c (pack_ts_type_common_value_fields):
5125 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
5126 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
5127
5128 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5129
5130 * config/msp430/msp430.md (zero_extendqipsi2): New.
5131 (zero_extendqisi2): Optimize case where src register and base dst
5132 register are the same.
5133 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
5134 (zero_extendpsisi2): Optimize r->m case.
5135 Add unnamed insn patterns to catch insns combine searches for when
5136 optimizing pointer manipulation.
5137
5138 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5139
5140 * config/msp430/msp430.md: Group zero_extend* insns together.
5141
5142 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5143
5144 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
5145 constraint.
5146 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
5147 POST_INC.
5148 (msp430_subreg): Likewise.
5149 (msp430_split_addsi): Likewise.
5150 (msp430_print_operand_addr): Likewise.
5151 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
5152 (USE_STORE_POST_INCREMENT): Define.
5153 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
5154 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
5155 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
5156 (msp430_general_dst_operand): New.
5157 (msp430_general_dst_nonv_operand): New.
5158 (msp430_nonsubreg_operand): Remove.
5159 (msp430_nonsubreg_dst_operand): New.
5160 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
5161 of defunct msp430_nonsubreg_operand.
5162 (msp430_nonsubregnonpostinc_or_imm_operand): New.
5163
5164 2019-10-15 Richard Biener <rguenther@suse.de>
5165
5166 PR tree-optimization/91929
5167 * tree-ssa-pre.c (pre_expr_d::loc): New member.
5168 (get_or_alloc_expr_for_name): Initialize it.
5169 (get_or_alloc_expr_for_constant): Likewise.
5170 (phi_translate_1): Copy it.
5171 (create_expression_by_pieces): Use the original location
5172 of the expression for the inserted stmt.
5173 (compute_avail): Record the location of the stmt for the
5174 expressions created.
5175
5176 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
5177
5178 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
5179 before using tree_to_uhwi.
5180
5181 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
5182
5183 * config/s390/s390.md: Run %a0:DI splitters only after reload.
5184
5185 2019-10-15 Richard Biener <rguenther@suse.de>
5186
5187 PR tree-optimization/92094
5188 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
5189 do not adjust the reduction definition def type.
5190 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
5191 defines the latch argument of the PHI.
5192
5193 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
5194
5195 PR target/92035
5196 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
5197 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
5198 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
5199 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
5200 _mm_maskz_roundscale_round_sd): New intrinsics.
5201 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
5202 __builtin_ia32_rndscales?_mask_round builtins instead of
5203 __builtin_ia32_rndscales?_round.
5204 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
5205 __builtin_ia32_rndscalesd_round): Remove.
5206 (__builtin_ia32_rndscaless_mask_round,
5207 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
5208 * config/i386/sse.md
5209 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
5210 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
5211 ... this, adjust and add subst atrributes to make it maskable.
5212
5213 2019-10-15 Richard Biener <rguenther@suse.de>
5214
5215 PR middle-end/92046
5216 * common.opt (fallow-store-data-races): New.
5217 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
5218 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
5219 * doc/invoke.texi (fallow-store-data-races): Document.
5220 (--param allow-store-data-races): Remove docs.
5221 * opts.c (default_options_table): Enable -fallow-store-data-races
5222 at -Ofast.
5223 (default_options_optimization): Do not enable --param
5224 allow-store-data-races at -Ofast.
5225 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
5226 instead of PARAM_ALLOW_STORE_DATA_RACES.
5227 * tree-ssa-loop-im.c (execute_sm): Likewise.
5228
5229 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5230
5231 PR tree-optimization/92085
5232 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
5233 instead of calling it unconditionally after
5234 delete_dead_or_redundant_assignment and fix indentation.
5235
5236 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5237
5238 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
5239 TARGET_VFP_DOUBLE.
5240 (*fmsub<SDF:mode>4): Likewise.
5241 *fnmsub<SDF:mode>4): Likewise.
5242 (*fnmadd<SDF:mode>4): Likewise.
5243
5244 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
5245
5246 * doc/tree-ssa.texi: Update renamed macro name.
5247
5248 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5249
5250 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
5251 vector constants.
5252
5253 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
5254
5255 * config/darwin.c: Use unsigned ints for the picbase label
5256 counters, initialise the vars explicitly.
5257 (update_pic_label_number_if_needed): Move a variable declaration
5258 to where it's needed.
5259 (machopic_output_function_base_name): Use a more strict checking
5260 assert, and and unsigned int for the picbase label counter.
5261 (machopic_get_function_picbase): Likewise.
5262
5263 2019-10-14 Richard Biener <rguenther@suse.de>
5264
5265 PR middle-end/92046
5266 * dse.c (scan_insn): Use param max_active_local_stores.
5267 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
5268 based on optimization level.
5269 * loop-invariant.c (move_loop_invariants): Adjust
5270 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
5271 * opts.c (default_options_optimization): Do not adjust
5272 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
5273 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
5274
5275 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
5276
5277 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
5278
5279 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
5280
5281 * config/arm/arm.c (arm_option_override): Don't override sched
5282 pressure algorithm.
5283
5284 2019-10-14 Richard Biener <rguenther@suse.de>
5285
5286 PR tree-optimization/92069
5287 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
5288 cycles do not set vect_nested_cycle on the latch definition.
5289
5290 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
5291
5292 * function-abi.h (expr_callee_abi): Declare.
5293 * function-abi.cc (expr_callee_abi): New function.
5294
5295 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
5296
5297 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
5298 into [1,MAX].
5299 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
5300 non-zero being represented as [1,MAX].
5301
5302 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
5303
5304 * tree-sra.c (dump_access): Add missing braces.
5305
5306 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
5307
5308 * config/darwin.c (machopic_indirection_name): Rework the
5309 function to emit linker-visible symbols only for indirections
5310 in the data section. Clean up the code and update comments.
5311
5312 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
5313
5314 * config/darwin.c (machopic_indirect_data_reference): Remove
5315 redundant code.
5316
5317 2019-10-13 Nathan Sidwell <nathan@acm.org>
5318
5319 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
5320
5321 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5322
5323 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
5324 c99_runtime.
5325
5326 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
5327
5328 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
5329 so non-virutal are before virutals.
5330 (output_function): Avoid body modifications.
5331
5332 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
5333
5334 * config/pa/pa.c (pa_output_call): Load descriptor address to register
5335 %r22. Load function address before global pointer.
5336 (pa_attr_length_indirect_call): Adjust length of inline versions of
5337 $$dyncall.
5338 (pa_output_indirect_call): Remove fast inline version of $$dyncall
5339 before normal cases. Update inline $$dyncall sequences to preserve
5340 function descriptor address in register %r22.
5341 (TRAMPOLINE_CODE_SIZE): Adjust.
5342 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
5343 register %r22 contains trampoline address.
5344 (pa_trampoline_init): Adjust offsets.
5345 (pa_trampoline_adjust_address): Likewise.
5346 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
5347
5348 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
5349
5350 PR target/67183
5351 * config/darwin.c (machopic_indirection): New field to flag
5352 non-lazy-symbol-pointers in the data section.
5353 (machopic_indirection_name): Compute if an indirection should
5354 appear in the data section.
5355 (machopic_output_data_section_indirection): New callback split
5356 from machopic_output_indirection.
5357 (machopic_output_stub_indirection): Likewise.
5358 (machopic_output_indirection): Retain the code for non-lazy
5359 symbol pointers in their regular section.
5360 (machopic_finish): Use the new callbacks to order the indirection
5361 output.
5362
5363 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
5364
5365 * config/darwin-protos.h (machopic_finish): Delete.
5366 * config/darwin.c (machopic_finish): Make static.
5367
5368 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
5369
5370 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
5371 sections when building kernel extension code.
5372
5373 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
5374
5375 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
5376 later standard."
5377
5378 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
5379
5380 * config/pa/pa.c (pa_option_override): Remove trailing comma
5381 from warning.
5382
5383 2019-10-12 Jakub Jelinek <jakub@redhat.com>
5384
5385 PR middle-end/92063
5386 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
5387 <case VEC_COND_EXPR>: Return false with *handled = false.
5388 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
5389 recursing on the first operand.
5390 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
5391 instead of tree_could_trap_p.
5392 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
5393
5394 2019-10-11 Jim Wilson <jimw@sifive.com>
5395
5396 PR rtl-optimization/91860
5397 * combine.c (subst): If new_rtx is a constant, also check for
5398 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
5399
5400 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
5401
5402 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
5403 INTVAL when calling store_bit_field.
5404
5405 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
5406
5407 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
5408 size.
5409
5410 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
5411
5412 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
5413 vectorizable_live_operation.
5414 (vectorizable_live_operation): Adjust parameters.
5415 * tree-vect-stmts.c (vect_init_vector,
5416 vect_gen_widened_results_half): Fix typo in function comment.
5417 (can_vectorize_live_stmts): Adjust function comment.
5418 Adjust parameters. Adjust call to vectorizable_live_operation.
5419 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
5420 (vect_transform_stmt): Adjust function comment. Adjust call to
5421 can_vectorize_live_stmts.
5422 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
5423
5424 2019-10-11 Richard Biener <rguenther@suse.de>
5425
5426 PR tree-optimization/90883
5427 PR tree-optimization/91091
5428 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
5429 alias-sets both for recording VN table entries and continuing
5430 walking after translating through copies. Handle same-sized
5431 reads from SSA names by returning the plain SSA name.
5432 (eliminate_dom_walker::eliminate_stmt): Properly handle
5433 non-size precision stores in redundant store elimination.
5434
5435 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
5436
5437 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
5438 (ggc_collect): Dump later to not interfere with release_page dump.
5439 (ggc_trim): New function.
5440 * ggc-none.c (ggc_trim): New.
5441 * ggc.h (ggc_trim): Declare.
5442
5443 2019-10-11 Richard Biener <rguenther@suse.de>
5444
5445 PR tree-optimization/92066
5446 PR tree-optimization/92046
5447 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5448 Fix bogus cost model check.
5449
5450 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
5451
5452 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
5453 (LANG_HOOKS_DECLS): Add it.
5454 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
5455 update comment for omp_is_optional_argument.
5456 * omp-general.c (omp_is_allocatable_or_ptr): New.
5457 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
5458 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
5459 Fortran's optional arguments and allocatable/pointer scalars
5460 with use_device_addr.
5461
5462 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
5463
5464 PR target/77918
5465 * config/s390/2827.md: Add new opcodes.
5466 * config/s390/2964.md: Likewise.
5467 * config/s390/3906.md: Likewise.
5468 * config/s390/8561.md: Likewise.
5469 * config/s390/s390-builtins.def (s390_vfchesb): Use
5470 the new vec_cmpgev4sf_quiet_nocc.
5471 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
5472 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
5473 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
5474 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
5475 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
5476 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
5477 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
5478 * config/s390/s390-modes.def (CCSFPS): New mode.
5479 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
5480 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
5481 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
5482 (s390_expand_vec_compare): Use non-signaling patterns where
5483 necessary.
5484 (s390_reverse_condition): Support CCSFPS.
5485 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
5486 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
5487 (asm_fcmp_op): Likewise.
5488 (*smaxv2df3_vx): Use pattern for quiet comparison.
5489 (*sminv2df3_vx): Likewise.
5490 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
5491 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
5492 (vec_cmpgt<mode>_quiet_nocc): Likewise.
5493 (vec_cmplt<mode>_quiet_nocc): New expander.
5494 (vec_cmpge<mode>_quiet_nocc): New pattern.
5495 (vec_cmple<mode>_quiet_nocc): New expander.
5496 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
5497 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
5498 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
5499 (*vec_cmpge<mode>_signaling_nocc): Likewise.
5500 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
5501 (vec_cmpungt<mode>): New expander.
5502 (vec_cmpunge<mode>): Likewise.
5503 (vec_cmpuneq<mode>): Use quiet patterns.
5504 (vec_cmpltgt<mode>): Allow only on z14+.
5505 (vec_cmpordered<mode>): Use quiet patterns.
5506 (vec_cmpunordered<mode>): Likewise.
5507 (VEC_CMP_EXPAND): Add ungt and unge.
5508
5509 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
5510
5511 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
5512 parameter.
5513 * lto-streamer-out.c: Include tree-dfa.h.
5514 (output_cfg): Do not use cfun.
5515 (lto_prepare_function_for_streaming): New.
5516 (output_function): Do not push cfun; do not initialize loop optimizer.
5517 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
5518 * passes.c (ipa_write_summaries): Use it.
5519 (ipa_write_optimization_summaries): Do not modify bodies.
5520 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
5521 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
5522 * tree-ssa-dse.c (pass_dse::execute): Update use of
5523 renumber_gimple_stmt_uids.
5524 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
5525
5526 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
5527
5528 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
5529 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
5530
5531 2019-10-10 Joseph Myers <joseph@codesourcery.com>
5532
5533 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
5534 macros.
5535 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
5536 Also define DFP macros for these conditions.
5537 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
5538 DEC128_SUBNORMAL_MIN): Do not define.
5539 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
5540 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
5541
5542 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
5543 Sandra Loosemore <sandra@codesourcery.com>
5544
5545 PR middle-end/26241
5546 * doc/lto.texi (IPA): Reference to the IPA passes.
5547 * doc/passes.texi (Pass manager): Add node IPA passes and
5548 description for each IPA pass.
5549
5550 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
5551
5552 * ipa-reference.c: Do not include splay-tree.h
5553 (reference_vars_to_consider): Turn to hash map.
5554 (get_static_name, ipa_init, analyze_function, propagate,
5555 stream_out_bitmap, ipa_reference_write_optimization_summary,
5556 ipa_reference_write_optimization_summary): Update.
5557
5558 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
5559
5560 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
5561
5562 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
5563
5564 * config/darwin.c: Lookup Objective C metadata and force indirection
5565 for IVAR refs.
5566
5567 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
5568
5569 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
5570 addresses.
5571 (mem_operand_gpr): Add check for prefixed addresses.
5572 (mem_operand_ds_form): Add check for prefixed addresses.
5573 (rs6000_legitimate_offset_address_p): If we support prefixed
5574 addresses, check for a 34-bit offset instead of 16-bit.
5575 (rs6000_legitimate_address_p): Add check for prefixed addresses.
5576 Do not allow load/store with update if the address is prefixed.
5577 (rs6000_mode_dependent_address): If we support prefixed
5578 addresses, check for a 34-bit offset instead of 16-bit.
5579
5580 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
5581
5582 PR target/77918
5583 * config/s390/vector.md (vcond_comparison_operator): New
5584 predicate.
5585 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
5586
5587 2019-10-10 David Malcolm <dmalcolm@redhat.com>
5588
5589 PR 87488
5590 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
5591 -D.
5592 * configure.ac (--with-documentation-root-url): New option.
5593 * configure: Regenerate.
5594 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
5595 option URL, add it as a new string field of the diagnostic option.
5596 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
5597 (print_option_information): If get_option_url is non-NULL, call
5598 it, and if the result is non-NULL, potentially emit an escape
5599 sequence to markup the option text with the resulting URL.
5600 * diagnostic.h (diagnostic_context::get_option_url): New callback.
5601 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
5602 example of JSON output.
5603 * opts-diagnostic.h (get_option_url): New decl.
5604 * opts.c (get_option_url): New function.
5605 * toplev.c (general_init): Initialize the get_option_url callback.
5606
5607 2019-10-10 David Malcolm <dmalcolm@redhat.com>
5608
5609 PR 87488
5610 * common.opt (fdiagnostics-urls=): New option.
5611 (diagnostic-url.h): Add SourceInclude.
5612 (diagnostic_url_rule): New enum.
5613 * diagnostic-color.c: Include "diagnostic-url.h".
5614 (diagnostic_urls_enabled_p): New function.
5615 * diagnostic-url.h: New file.
5616 * diagnostic.c: Include "diagnostic-url.h".
5617 (diagnostic_urls_init): New function.
5618 * diagnostic.h (diagnostic_urls_init): New decl.
5619 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
5620 -fdiagnostics-urls to the list.
5621 (-fdiagnostics-urls): New option.
5622 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
5623 (driver::global_initializations): Call diagnostic_urls_init.
5624 * opts-global.c (init_options_once): Likewise.
5625 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
5626 * pretty-print.c (pretty_printer::pretty_printer): Initialize
5627 show_urls.
5628 (pp_begin_url): New function.
5629 (pp_end_url): New function.
5630 (selftest::test_urls): New selftest.
5631 (selftest::pretty_print_c_tests): Call it.
5632 * pretty-print.h (pretty_printer::show_urls): New field.
5633 (pp_begin_url): New decl.
5634 (pp_end_url): New decl.
5635
5636 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
5637
5638 PR target/92022
5639 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
5640
5641 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
5642
5643 PR target/88630
5644 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
5645 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
5646 also for TARGET_FPU_SH4_300.
5647 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
5648 TARGET_SH4_300.
5649 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
5650 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
5651 (*negsf2_i): Split into ...
5652 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
5653 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
5654 (**abssf2_i): Split into ...
5655 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
5656 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
5657 (*negdf2_i): Split into ...
5658 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
5659 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
5660 (**abssf2_i): Split into ...
5661 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
5662
5663 2019-10-10 Richard Biener <rguenther@suse.de>
5664
5665 PR middle-end/92046
5666 * opts.c (finish_options): Do not influence global --params
5667 from options that are adjustable per function.
5668 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5669 Apply --param adjustment based on active cost-model.
5670 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
5671 further store-sinking when vectorization or if-conversion
5672 are not enabled.
5673
5674 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
5675
5676 PR middle-end/92037
5677 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
5678 rather than ggc_alloc_cleared to alloc symbol table.
5679 * toplev.c (general_init): Likewise.
5680 * cgraph.h (symbol_table): Explicitly construct every field.
5681
5682 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
5683
5684 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
5685 (PF_Z15): ... this.
5686 * config.gcc: Add z15 as option for --with-arch and --with-tune
5687 configure switches.
5688 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
5689 error reporting for unsupported builtins.
5690 * config/s390/s390-opts.h (enum processor_type): Rename
5691 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
5692 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
5693 * config/s390/driver-native.c (s390_host_detect_local_cpu):
5694 Likewise.
5695 * config/s390/s390-builtins.def: Likewise.
5696 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
5697 (s390_expand_builtin): Add missing check for unsupported builtins.
5698 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
5699 (s390_rtx_costs): Likewise.
5700 (s390_get_sched_attrmask): Rename arch13 to z15.
5701 (s390_get_unit_mask): Likewise.
5702 (s390_is_fpd): Likewise.
5703 (s390_is_fxd): Likewise.
5704 * config/s390/s390.h (enum processor_flags): Likewise.
5705 * config/s390/s390.md: Likewise.
5706 * config/s390/vector.md: Likewise.
5707 * config/s390/vx-builtins.md: Likewise.
5708 * config/s390/s390.opt: Add z15 to processor_type value.
5709
5710 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
5711
5712 PR target/91035
5713 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
5714 prototype.
5715 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
5716 ("split_stack_data", "split_stack_call")
5717 ("split_stack_call_<mode>", "split_stack_cond_call")
5718 ("split_stack_cond_call_<mode>"): Remove.
5719 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
5720 insn definition.
5721 * config/s390/s390.c (s390_output_split_stack_data): New function.
5722 (s390_expand_split_stack_prologue): Use the merged expander.
5723
5724 2019-10-09 Martin Sebor <msebor@redhat.com>
5725
5726 PR tree-optimization/90879
5727 * builtins.c (check_access): Avoid using maxbound when null.
5728 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
5729 * doc/invoke.texi (-Wstring-compare): Document new warning option.
5730 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
5731 conditional.
5732 (get_range_strlen): Overwrite initial maxbound when non-null.
5733 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
5734 changes.
5735 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
5736 (used_only_for_zero_equality): New function.
5737 (handle_builtin_memcmp): Call it.
5738 (determine_min_objsize): Return an integer instead of tree.
5739 (get_len_or_size, strxcmp_eqz_result): New functions.
5740 (maybe_warn_pointless_strcmp): New function.
5741 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
5742 between a longer string and a smaller array.
5743 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
5744
5745 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
5746
5747 * config/darwin.c (darwin_override_options): Make the check for
5748 Objective-C ABI version more specific for 64bit code.
5749
5750 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
5751
5752 * config/darwin.c (machopic_indirect_data_reference): Set flag to
5753 indicate that the new symbol is an indirection.
5754 (machopic_indirect_call_target): Likewise.
5755 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
5756 (MACHO_SYMBOL_INDIRECTION_P): New.
5757 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
5758
5759 2019-10-08 Jason Merrill <jason@redhat.com>
5760
5761 * doc/invoke.texi: Document -fconcepts-ts.
5762
5763 2019-10-09 Richard Biener <rguenther@suse.de>
5764
5765 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
5766 allow stmts other than GIMPLE_ASSIGN in nested cycles.
5767
5768 2019-10-08 Richard Biener <rguenther@suse.de>
5769
5770 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
5771 (_stmt_vec_info::force_single_cycle): Likewise.
5772 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
5773 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
5774 * tree-vect-loop.c (vectorizable_reduction): Set
5775 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
5776 (vect_transform_reduction): Use them to remove redundant code.
5777 (vect_transform_cycle_phi): Likewise.
5778
5779 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
5780
5781 PR tree-optimization/90836
5782 * match.pd (popcount): New pattern.
5783
5784 2019-10-08 Martin Sebor <msebor@redhat.com>
5785
5786 PR middle-end/92026
5787 PR middle-end/92014
5788 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
5789 again once nbytes has been set. Set the access size when not yet set.
5790
5791 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
5792
5793 * config/darwin.c (machopic_select_section): Remove dead code for
5794 old Objective-C section selection method, replace with unreachable.
5795
5796 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
5797
5798 * config/darwin.c (machopic_indirect_data_reference): Check for
5799 required indirections before making direct access to defined
5800 values.
5801 (machopic_output_indirection): Place the indirected pointes for
5802 required indirections into the non-lazy symbol pointers section.
5803 (darwin_encode_section_info):
5804 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
5805 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
5806
5807 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
5808
5809 PR target/91994
5810 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
5811 instead of ALL_SSE_REG to check if function call preserves some
5812 256-bit SSE registers.
5813
5814 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5815
5816 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
5817 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
5818 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
5819
5820 2019-10-08 Richard Biener <rguenther@suse.de>
5821
5822 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
5823 (_stmt_vec_info::is_reduc_info): Add.
5824 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
5825 (vectorizable_condition): Remove.
5826 (vectorizable_shift): Likewise.
5827 (vectorizable_reduction): Adjust.
5828 (info_for_reduction): New.
5829 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
5830 (vect_analyze_scalar_cycles_1): ... here.
5831 (vect_analyze_loop_operations): Adjust.
5832 (needs_fold_left_reduction_p): Simplify for single caller.
5833 (vect_is_simple_reduction): Likewise. Remove stmt restriction
5834 for nested cycles not part of double reductions.
5835 (vect_model_reduction_cost): Pass in the reduction type.
5836 (info_for_reduction): New function.
5837 (vect_create_epilog_for_reduction): Use it, access reduction
5838 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
5839 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
5840 (vectorize_fold_left_reduction): Remove pointless assert.
5841 (vectorizable_reduction): Analyze the full reduction when
5842 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
5843 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
5844 stmt code-generation to vectorizable_* in most cases. Verify
5845 code-generation only for cases handled by
5846 vect_transform_reductuon.
5847 (vect_transform_reduction): Use info_for_reduction to get at
5848 reduction meta. Simplify.
5849 (vect_transform_cycle_phi): Likewise.
5850 (vectorizable_live_operation): Likewise.
5851 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
5852 at the PHI node for STMT_VINFO_REDUC_TYPE.
5853 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
5854 longer necessary code.
5855 * tree-vect-stmts.c (vectorizable_shift): Make static again.
5856 (vectorizable_condition): Likewise. Get at reduction related
5857 info via info_for_reduction.
5858 (vect_analyze_stmt): Adjust.
5859 (vect_transform_stmt): Likewise.
5860 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
5861 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
5862
5863 2019-10-08 Joseph Myers <joseph@codesourcery.com>
5864
5865 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
5866 -fno-fp-int-builtin-inexact default for C2X.
5867
5868 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5869 Richard Biener <rguenther@suse.de>
5870
5871 PR tree-optimization/91532
5872 * tree-if-conv.c: Include tree-ssa-dse.h.
5873 (ifcvt_local_dce): Change param from bb to loop,
5874 and call dse_classify_store.
5875 (tree_if_conversion): Pass loop instead of loop->header as arg
5876 to ifcvt_local_dce.
5877 * tree-ssa-dse.c: Include tree-ssa-dse.h.
5878 (delete_dead_or_redundant_assignment): Remove static qualifier from
5879 declaration, and add prototype in tree-ssa-dse.h.
5880 (dse_store_status): Move to tree-ssa-dse.h.
5881 (dse_classify_store): Remove static qualifier and add new tree param
5882 stop_at_vuse, and add prototype in tree-ssa-dse.h.
5883 * tree-ssa-dse.h: New header.
5884
5885 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
5886
5887 * config/darwin.c (machopic_output_indirection): Don't put
5888 hidden symbol indirections into the .data section, use the
5889 non-lazy symbol pointers section as normal.
5890 (darwin_encode_section_info): Record if a symbol is hidden.
5891 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
5892 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
5893
5894 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
5895
5896 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
5897 predicates instead of accessing bits directly.
5898 (machopic_indirect_call_target): Likewise.
5899 (machopic_output_indirection): Likewise.
5900 (darwin_encode_section_info): Improve description. Use renamed
5901 symbol flags. Use predicate macros for variables and functions.
5902 * config/darwin.h:
5903 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
5904 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
5905 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
5906 (MACHO_SYMBOL_VARIABLE_P): New.
5907 (MACHO_SYMBOL_DEFINED_P):New.
5908 (MACHO_SYMBOL_STATIC_P): New.
5909 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
5910 (SYMBOL_FLAG_SUBT_DEP): New.
5911 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
5912
5913 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5914
5915 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
5916 (msp430_expand_epilogue): Likewise.
5917 * config/msp430/predicates.md: Likewise.
5918 * config/msp430/msp430.md: Likewise.
5919 Replace blocks of 8 spaces with tabs.
5920
5921 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5922
5923 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
5924 * config/msp430/msp430.c (msp430_split_addsi): New.
5925 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
5926 a block of C code for splitting addsi.
5927
5928 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
5929
5930 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
5931 ix86_expand_rounddf_32): Reorder functions.
5932 * config/i386/i386-protos.h: Update.
5933
5934 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5935
5936 * config.in: Regenerate.
5937 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
5938 Add new "Yx" constraint.
5939 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
5940 function.
5941 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
5942 prototype.
5943 * config/msp430/msp430.c (msp430_option_override): Allow the lower
5944 code/data region to be selected in the small memory model.
5945 (msp430_section_attr): Don't warn if the "section" and "lower"
5946 attributes are used together.
5947 (msp430_handle_generic_attribute): Likewise.
5948 (msp430_var_in_low_mem): New function.
5949 (TARGET_ENCODE_SECTION_INFO): Define.
5950 (msp430_encode_section_info): New function.
5951 (gen_prefix): Return early in the small memory model.
5952 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
5953 ".lower" prefix if -m{code,data}-region=lower have been passed.
5954 (msp430_output_aligned_decl_common): Emit common symbols when
5955 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
5956 set.
5957 (TARGET_ASM_FILE_END): Define.
5958 (msp430_file_end): New function.
5959 (msp430_do_not_relax_short_jumps): Allow relaxation when
5960 function will be in the lower region.
5961 (msp430_op_not_in_high_mem): New function.
5962 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
5963 the 'X' operand selector.
5964 Clarify comment for 'x' operand selector.
5965 * config/msp430/msp430.h (LINK_SPEC): Propagate
5966 -m{code,data}-region to the linker via spec function
5967 msp430_propagate_region_opt.
5968 (msp430_propagate_region_opt): New prototype.
5969 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
5970 (SYMBOL_FLAG_LOW_MEM): Define.
5971 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
5972 selector.
5973 (zero_extendqihi2): Fix operand number used by "%X" selector.
5974 (zero_extendqisi2): Likewise.
5975 (zero_extendhisi2): Likewise.
5976 (movqi): Use "Yx" constraint in place of "%X" operand selector.
5977 (movhi): Likewise.
5978 (addqi3): Likewise.
5979 (addhi3): Likewise.
5980 (addsi3): Likewise.
5981 (addhi3_cy): Likewise.
5982 (addchi4_cy): Likewise.
5983 (subqi3): Likewise.
5984 (subhi3): Likewise.
5985 (subsi3): Likewise.
5986 (bic<mode>3): Likewise.
5987 (and<mode>3): Likewise.
5988 (ior<mode>3): Likewise.
5989 (xor<mode>3): Likewise.
5990 (slli_1): Add missing "%X" operand selector.
5991 (slll_1): Likewise.
5992 (slll_2): Likewise.
5993 (srai_1): Likewise.
5994 (sral_1): Likewise.
5995 (sral_2): Likewise.
5996 (srli_1): Likewise.
5997 (srll_1): Likewise.
5998 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
5999 selector.
6000 (cbranchhi4_real): Likewise.
6001 (cbranchqi4_reversed): Likewise.
6002 (cbranchhi4_reversed): Likewise.
6003 (*bitbranch<mode>4): Likewise.
6004 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
6005 * config/msp430/msp430.opt (mcode-region=): Set default to
6006 MSP430_REGION_LOWER. Improve docstring.
6007 (mdata-region=): Likewise.
6008 (muse-lower-region-prefix): New option.
6009 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
6010 mdata-region=none multilib.
6011 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
6012 mdata-region=none multilib.
6013 MULTILIB_EXCEPTIONS: Remove.
6014 MULTILIB_REQUIRED: Define.
6015 * configure: Regenerate.
6016 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
6017 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
6018 * doc/extend.texi: Clarify comment for {upper,lower,either}
6019 function attributes.
6020 Add separate description for "lower" variable attribute.
6021
6022 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
6023
6024 PR target/77918
6025 * optabs-tree.c (vcond_icode_p): New function.
6026 (vcond_eq_icode_p): Likewise.
6027 (expand_vec_cond_expr_p): Use vcond_icode_p and
6028 vcond_eq_icode_p.
6029 * optabs.c (can_vcond_compare_p): New function.
6030 * optabs.h (can_vcond_compare_p): Likewise.
6031
6032 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
6033
6034 PR target/77918
6035 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
6036 caller passes a non-trapping condition.
6037 (is_gimple_condexpr): Allow trapping conditions.
6038 (is_gimple_condexpr_1): New helper function.
6039 (is_gimple_condexpr_for_cond): New function, acts like old
6040 is_gimple_condexpr.
6041 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
6042 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
6043 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
6044 * gimplify.c (gimplify_cond_expr): Use
6045 is_gimple_condexpr_for_cond.
6046 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
6047 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
6048 VEC_COND_EXPR.
6049 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
6050 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
6051 is_gimple_condexpr_for_cond, remove pointless tmp check
6052 (forward_propagate_into_cond): Remove pointless tmp check.
6053
6054 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
6055
6056 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
6057 match that of other gsi_next_* functions. Adjust the comment.
6058 (gsi_start_nonvirtual_phis): New function.
6059 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
6060 gsi_next_nonvirtual_phi accordingly. (No functional change.)
6061
6062 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
6063
6064 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
6065 setjmp situation here. Fix a verb's ending: "the exact variables or
6066 elements for which there are warnings depends" -> "... depend".
6067
6068 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
6069
6070 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
6071
6072 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
6073
6074 * ipa-prop.c (ipa_vr::nonzero_p): New.
6075 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
6076 non-zero range.
6077 * ipa-prop.h (class ipa_vr): Add nonzero_p.
6078 * tree-vrp.c (range_has_numeric_bounds_p): New.
6079 (range_int_cst_p): Use range_has_numeric_bounds_p.
6080 (get_range_op_handler): New.
6081 (supported_types_p): New.
6082 (defined_ranges_p): New.
6083 (drop_undefines_to_varying): New.
6084 (range_fold_binary_symbolics_p): New.
6085 (range_fold_unary_symbolics_p): New.
6086 (range_fold_unary_expr): Extract out into above functions.
6087 (range_fold_binary_expr): Same.
6088 (value_range_base::normalize_addresses): New.
6089 (value_range_base::normalize_symbolics): Normalize addresses.
6090 * tree-vrp.h (class value_range_base): Add normalize_addresses.
6091
6092 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
6093
6094 * tree-vrp.c (value_range_base::singleton_p): Use
6095 value_range_base::num_pairs instead of vrp_val_is* to check
6096 if a range has one sub-range.
6097
6098 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
6099
6100 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
6101 DEF is not a true earlyclobber but is tied to a specific input
6102 operand, and so is effectively earlyclobber wrt inputs that have
6103 different values.
6104 (make_early_clobber_and_input_conflicts): Pass this case to the above.
6105
6106 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
6107
6108 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
6109 (pod_mode): Mark operators likewise.
6110 (scalar_int_mode): Mark non-default constructors and
6111 operators with CONSTEXPR.
6112 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
6113 (fixed_size_mode): Likewise.
6114
6115 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
6116
6117 PR target/91994
6118 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
6119 and wrap the unspec_volatile in a parallel.
6120 (*avx_vzeroupper): New define_insn. Use a match_parallel around
6121 the unspec_volatile.
6122 * config/i386/predicates.md (vzeroupper_pattern): Expect the
6123 unspec_volatile to be wrapped in a parallel.
6124 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
6125 (ix86_add_reg_usage_to_vzerouppers): New functions.
6126 (rest_of_handle_insert_vzeroupper): Use them to add register
6127 usage information to the vzeroupper instructions.
6128
6129 2019-10-07 Richard Biener <rguenther@suse.de>
6130
6131 PR tree-optimization/91975
6132 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
6133 handle invariants.
6134
6135 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
6136
6137 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
6138 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
6139
6140 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
6141
6142 * config/darwin.c (darwin_override_options): Adjust objective-c
6143 ABI version error messages to avoid punctuation and contracted
6144 negations.
6145
6146 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
6147
6148 * ipa-inline.c: Fix type; compute size rather than self_size
6149 for size of caller function.
6150
6151 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
6152
6153 PR target/59888
6154 * config/darwin.c (darwin_rodata_section): Add relocation flag,
6155 choose const_data section for constants with relocations.
6156 (machopic_select_section): Pass relocation flag to
6157 darwin_rodata_section ().
6158
6159 2019-10-05 Jakub Jelinek <jakub@redhat.com>
6160
6161 PR tree-optimization/91734
6162 * generic-match-head.c: Include fold-const-call.h.
6163 * match.pd (sqrt(x) cmp c): Check the boundary value and
6164 in case inexact computation of c*c affects comparison of the boundary,
6165 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
6166 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
6167 for -frounding-math. For c2, try the next smaller or larger floating
6168 point constant depending on comparison code and if it has the same
6169 sqrt as c2, use it instead of c2.
6170
6171 2019-10-04 Martin Sebor <msebor@redhat.com>
6172
6173 PR middle-end/91977
6174 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
6175 MEM_REF right operand. Avoid failing for MEM_REF assignments from
6176 uninitialized objects.
6177
6178 2019-10-04 Martin Sebor <msebor@redhat.com>
6179
6180 * builtins.c (compute_objsize): Add an argument.
6181 * tree-object-size.c (addr_object_size): Same.
6182 (compute_builtin_object_size): Same.
6183 * tree-object-size.h (compute_builtin_object): Same.
6184
6185 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
6186
6187 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
6188
6189 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
6190
6191 * match.pd (sinh (x) / cosh (x)): New simplification rule.
6192
6193 2019-10-04 Martin Jambor <mjambor@suse.cz>
6194
6195 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
6196 fntype when switching to calling memcpy instead of memset.
6197
6198 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6199
6200 * hash-table.h (hash_table::empty_slow): Don't assign
6201 size_t values to int variables.
6202
6203 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6204
6205 * expr.c (convert_mode_scalar): Remove shadowing local var.
6206 (emit_block_move): Rename local vars.
6207 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
6208 (emit_push_insn): Rename local vars.
6209 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
6210 shadowing local vars.
6211 (store_constructor): Remove shadowing local vars. Rename local var.
6212 (store_field, expand_cond_expr_using_cmove,
6213 expand_expr_real_2): Remove shadowing local vars.
6214 (expand_expr_real_1,
6215 do_store_flag): Remove shadowing local vars. Rename local vars.
6216
6217 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6218
6219 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
6220
6221 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6222
6223 * genmatch.c (commutate): Rename local var.
6224 (lower_cond): Reuse local var.
6225 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
6226 dt_operand::gen, dt_operand::gen_gimple_expr,
6227 dt_simplify::gen): Add a param. Rename generated vars.
6228 (decision_tree::insert_operand,
6229 (capture_info::walk_match, capture_info::walk_result,
6230 capture_info::walk_c_expr): Rename local vars.
6231 (expr::gen_transform): Rename generated vars.
6232 Use snprintf. Rename local vars.
6233 (capture::gen_transform, dt_operand::get_name,
6234 dt_operand::gen_opname): Rename generated vars.
6235 (write_predicate): Adjust call to gen_kids.
6236 (parser::get_internal_capture_id): Rename generated vars.
6237 (parser::parse_expr): Rename local vars.
6238 (parser::parse_if): Remove local var.
6239 (parser::parse_pattern, add_operator): Rename local vars.
6240
6241 2019-10-04 Joseph Myers <joseph@codesourcery.com>
6242
6243 * builtins.def (DEF_C2X_BUILTIN): New macro.
6244 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
6245 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
6246 (strndup): Use DEF_C2X_BUILTIN.
6247 * coretypes.h (enum function_class): Add function_c2x_misc.
6248
6249 2019-10-04 Maya Rashish <coypu@sdf.org>
6250
6251 * ira-color.c (update_costs_from_allocno): Call
6252 ira_init_register_move_cost_if_necessary.
6253
6254 2019-10-04 Jeff Law <law@redhat.com>
6255
6256 * config/h8300/h8300.md (cpymemsi): Disable.
6257 (movmd, movmd_internal_<mode>, movstr, movsd):
6258 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
6259 (movmd splitter, movsd splitter): Likewise.
6260
6261 * range-op.cc (range_tests): Avoid two tests when ints and
6262 shorts are the same size.
6263
6264 2019-10-04 Richard Biener <rguenther@suse.de>
6265
6266 PR lto/91968
6267 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
6268 BLOCK_VARS.
6269
6270 2019-10-04 Richard Biener <rguenther@suse.de>
6271
6272 PR tree-optimization/91982
6273 * tree-vect-loop.c (vectorizable_live_operation): Also guard
6274 against EXTRACT_LAST_REDUCTION.
6275 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
6276
6277 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
6278
6279 * range-op.o (value_range_from_overflowed_bounds): Rename from
6280 adjust_overflow_bound.
6281 (value_range_with_overflow): Rename from
6282 create_range_with_overflow.
6283 (create_possibly_reversed_range): Adjusted for above renames.
6284 (operator_*::wi_fold): Same.
6285 (cross_product_operator::wi_cross_productor): Same.
6286
6287 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6288
6289 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
6290 -Wshadow=compatible-local): Fix description.
6291 Add an example where -Wshadow=compatible-local does not
6292 warn.
6293
6294 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
6295
6296 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
6297
6298 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
6299 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
6300
6301 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
6302
6303 * expr.c (emit_block_move_hints): Slightly cleaner fix to
6304 can_move_by_pieces issue.
6305
6306 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
6307
6308 PR target/87243
6309 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
6310 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
6311 is available and the user has not set one on the command line.
6312
6313 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
6314
6315 PR target/91769
6316 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
6317 instead of REGNO equality check on addr.reg.
6318
6319 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
6320
6321 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
6322 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
6323 * doc/invoke.texi (inline-heuristics-hint-percent,
6324 inline-heuristics-hint-percent-O2): Document.
6325 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
6326 hint attribute.
6327 (can_inline_edge_by_limits_p): Use it.
6328
6329 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
6330
6331 * config/arm/arm.c (arm_print_value): Use real_to_decimal
6332 to print CONST_DOUBLEs.
6333
6334 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
6335
6336 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
6337 * ipa-prop.c (ipcp_free_transformation_sum): New function.
6338 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
6339
6340 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
6341
6342 * Makefile.in (OBJS): Add range.o and range-op.o.
6343 Remove wide-int-range.o.
6344 * function-tests.c (test_ranges): New.
6345 (function_tests_c_tests): Call test_ranges.
6346 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
6347 range_fold_unary_expr instead of extract_range_from_unary_expr.
6348 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
6349 * range-op.cc: New file.
6350 * range-op.h: New file.
6351 * range.cc: New file.
6352 * range.h: New file.
6353 * selftest.h (range_tests): New prototype.
6354 * ssa.h: Include range.h.
6355 * tree-vrp.c (value_range_base::value_range_base): New
6356 constructors.
6357 (value_range_base::singleton_p): Do not call
6358 ranges_from_anti_range until sure we will need to.
6359 (value_range_base::type): Rename gcc_assert to
6360 gcc_checking_assert.
6361 (vrp_val_is_max): New argument.
6362 (vrp_val_is_min): Same.
6363 (wide_int_range_set_zero_nonzero_bits): Move from
6364 wide-int-range.cc.
6365 (extract_range_into_wide_ints): Remove.
6366 (extract_range_from_multiplicative_op): Remove.
6367 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
6368 from extract_range_from_binary_expr.
6369 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
6370 from extract_range_from_binary_expr.
6371 (extract_range_from_binary_expr): Remove.
6372 (normalize_for_range_ops): New.
6373 (range_fold_binary_expr): New.
6374 (range_fold_unary_expr): New.
6375 (value_range_base::num_pairs): New.
6376 (value_range_base::lower_bound): New.
6377 (value_range_base::upper_bound): New.
6378 (value_range_base::upper_bound): New.
6379 (value_range_base::contains_p): New.
6380 (value_range_base::invert): New.
6381 (value_range_base::union_): New.
6382 (value_range_base::intersect): New.
6383 (range_compatible_p): New.
6384 (value_range_base::operator==): New.
6385 (determine_value_range_1): Call range_fold_*expr instead of
6386 extract_range_from_*expr.
6387 * tree-vrp.h (class value_range_base): Add new constructors.
6388 Add methods for union_, intersect, operator==, contains_p,
6389 num_pairs, lower_bound, upper_bound, invert.
6390 (vrp_val_is_min): Add handle_pointers argument.
6391 (vrp_val_is_max): Same.
6392 (extract_range_from_unary_expr): Remove.
6393 (extract_range_from_binary_expr): Remove.
6394 (range_fold_unary_expr): New.
6395 (range_fold_binary_expr): New.
6396 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
6397 range_fold_binary_expr instead of extract_range_from_binary_expr.
6398 (vr_values::extract_range_basic): Same.
6399 (vr_values::extract_range_from_unary_expr): Call
6400 range_fold_unary_expr instead of extract_range_from_unary_expr.
6401 * wide-int-range.cc: Remove.
6402 * wide-int-range.h: Remove.
6403
6404 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
6405
6406 * config/rs6000/rs6000.c (mem_operand_gpr): Use
6407 SIGNED_16BIT_OFFSET_EXTRA_P macro.
6408 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
6409 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
6410 macro.
6411
6412 2019-10-02 Joseph Myers <joseph@codesourcery.com>
6413
6414 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
6415 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
6416 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
6417 * glimits.h: Likewise.
6418
6419 2019-10-03 Jakub Jelinek <jakub@redhat.com>
6420
6421 PR rtl-optimization/91976
6422 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
6423 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
6424 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
6425
6426 2019-10-02 Martin Sebor <msebor@redhat.com>
6427
6428 PR tree-optimization/80936
6429 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
6430
6431 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
6432
6433 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
6434 instead of reg_class_contents[ALL_REGS].
6435
6436 2019-09-30 Jason Merrill <jason@redhat.com>
6437
6438 Add some hash_map_safe_* functions like vec_safe_*.
6439 * hash-map.h (default_hash_map_size): New variable.
6440 (create_ggc): Use it as default argument.
6441 (hash_map_maybe_create, hash_map_safe_get)
6442 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
6443
6444 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
6445
6446 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
6447 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
6448 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
6449 (can_inline_edge_by_limits_p): Use it.
6450 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
6451 (want_inline_small_function_p): Use O2 bounds.
6452 (edge_badness): LIkewise.
6453 * opts.c (default_options): Add OPT_finline_functions.
6454 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
6455 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
6456 New parameters.
6457 * doc/invoke.texi (-finline-functions): Update documentation.
6458 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
6459 inline-min-speedup-O2): Document.
6460 (early-inlining-insns-O2): Simplify docs.
6461
6462 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
6463
6464 PR rtl-optimization/87047
6465 * ifcvt.c (average_cost): New static function. Use it...
6466 (noce_process_if_block): ... here.
6467
6468 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
6469
6470 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
6471 * config/rs6000/rs6000-string.c (expand_block_move): Add
6472 might_overlap parm.
6473 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
6474 (cpymemsi): Add might_overlap parm to expand_block_move() call.
6475
6476 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
6477
6478 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
6479 (expand_builtin_memcpy): Use might_overlap parm.
6480 (expand_builtin_mempcpy_args): Use might_overlap parm.
6481 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
6482 (expand_builtin_memory_copy_args): Add might_overlap parm.
6483 * expr.c (emit_block_move_via_cpymem): Rename to
6484 emit_block_move_via_pattern, add might_overlap parm, use cpymem
6485 or movmem optab as appropriate.
6486 (emit_block_move_hints): Add might_overlap parm, do the right
6487 thing for might_overlap==true.
6488 * expr.h (emit_block_move_hints): Update prototype.
6489
6490 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
6491
6492 * tree-eh.h (unsplit_eh_edges): Declare.
6493 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
6494 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
6495 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
6496 (struct store_immediate_info): Add lp_nr field.
6497 (store_immediate_info::store_immediate_info): Add NR2 parameter and
6498 initialize lp_nr with it.
6499 (struct merged_store_group): Add lp_nr and only_constants fields.
6500 (merged_store_group::merged_store_group): Initialize them.
6501 (merged_store_group::can_be_merged_into): Deal with them.
6502 (pass_store_merging): Rename terminate_and_release_chain into
6503 terminate_and_process_chain.
6504 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
6505 renaming and remove useless assertions.
6506 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
6507 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
6508 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
6509 instead of always recomputing it and compare lp_nr.
6510 (imm_store_chain_info::output_merged_store): If the group is in an
6511 active EH region, register new stores if they can throw. Moreover,
6512 if the insertion has created new basic blocks, adjust the PHI nodes
6513 of the post landing pad.
6514 (imm_store_chain_info::output_merged_stores): If the original stores
6515 are in an active EH region, deregister them.
6516 (lhs_valid_for_store_merging_p): Prettify.
6517 (adjust_bit_pos): New function extracted from...
6518 (mem_valid_for_store_merging): ...here. Use it for the base address
6519 and also for the offset if it is the addition of a constant.
6520 (lp_nr_for_store): New function.
6521 (pass_store_merging::process_store): Change return type to bool.
6522 Call lp_nr_for_store to initialize the store info. Propagate the
6523 return status of various called functions to the return value.
6524 (store_valid_for_store_merging_p): New predicate.
6525 (enum basic_block_status): New enumeration.
6526 (get_status_for_store_merging): New function.
6527 (pass_store_merging::execute): If the function can throw and catch
6528 non-call exceptions, unsplit the EH edges on entry and clean up the
6529 CFG on exit if something changed. Call get_status_for_store_merging
6530 for every basic block and keep the chains open across basic blocks
6531 when possible. Terminate and process open chains at the end, if any.
6532
6533 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
6534
6535 * reginfo.c (globalize_reg): Fix shadowed variable in
6536 function_abis walk.
6537
6538 2019-10-02 Martin Jambor <mjambor@suse.cz>
6539
6540 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
6541 do not compute some stuff when set.
6542 (cgraph_node::create_edge): Likewise.
6543 (cgraph_node::create_indirect_edge): Renamed last parameter to
6544 coning_p and flipped its meaning, don't even calculate
6545 inline_failed when set.
6546 * cgraph.h (cgraph_node::create_edge): Add new parameter.
6547 (symbol_table::::create_edge): Likewise.
6548 (cgraph_node::create_indirect_edge): Rename last parameter, flip
6549 the default value.
6550 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
6551 call graph edge creating functions.
6552
6553 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
6554
6555 PR c++/91222
6556 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
6557 namespace types.
6558
6559 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
6560
6561 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
6562
6563 2019-10-02 Richard Biener <rguenther@suse.de>
6564
6565 * tree-vectorizer.h (vect_transform_reduction): Declare.
6566 * tree-vect-stmts.c (vect_transform_stmt): Use it.
6567 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
6568 stmt transform to ...
6569 (vect_transform_reduction): ... this.
6570
6571 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
6572
6573 * omp-low.c (lower_omp_target): Dereference optional argument
6574 to work with the right pointer.
6575
6576 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
6577
6578 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
6579 false.
6580 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
6581 * langhooks.h (omp_is_optional_argument): New hook.
6582 * omp-general.c (omp_is_optional_argument): New.
6583 * omp-general.h (omp_is_optional_argument): New declaration.
6584 * omp-low.c (lower_omp_target): Create temporary for received value
6585 and take the address for new_var if the original variable was a
6586 DECL_BY_REFERENCE. Use size of referenced object when a
6587 pass-by-reference optional argument used as argument to firstprivate.
6588
6589 2019-10-02 Jakub Jelinek <jakub@redhat.com>
6590
6591 PR tree-optimization/91940
6592 * tree-vect-patterns.c: Include tree-vector-builder.h and
6593 vec-perm-indices.h.
6594 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
6595 unpromoting the argument back to uint16_t, or by converting into a
6596 rotate, or into shifts plus ior.
6597
6598 2019-10-02 Richard Biener <rguenther@suse.de>
6599
6600 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
6601 New.
6602 (vect_transform_cycle_phi): Declare.
6603 * tree-vect-stmts.c (vect_transform_stmt): Call
6604 vect_transform_cycle_phi.
6605 * tree-vect-loop.c (vectorizable_reduction): Split out
6606 PHI transformation stage to ...
6607 (vect_transform_cycle_phi): ... here.
6608
6609 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
6610
6611 PR middle-end/91957
6612 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
6613 eliminable registers.
6614 (make_hard_regno_live): Likewise, and don't make them live.
6615
6616 2019-10-01 David Malcolm <dmalcolm@redhat.com>
6617
6618 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
6619 Call pp_emit_prefix.
6620 (layout::print_source_line): Likewise.
6621 (layout::start_annotation_line): Likewise.
6622 (diagnostic_show_locus): Remove call to temporarily clear the
6623 prefix.
6624 (selftest::test_one_liner_fixit_remove): Add test coverage for the
6625 interaction of pp_set_prefix with rulers and fix-it hints.
6626 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
6627 prefix when calling diagnostic_show_locus, rather than destroying
6628 it afterwards.
6629 (print_parseable_fixits): Temporarily clear prefix.
6630 * pretty-print.c (pp_format): Save and restore line_length, rather
6631 than assuming it is zero.
6632 (pp_output_formatted_text): Remove assertion that line_length is
6633 zero.
6634
6635 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
6636
6637 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
6638 Rename to ...
6639 (nonoverlapping_refs_since_match_p): ... this; handle also
6640 ARRAY_REFs.
6641 (alias_stats): Update stats.
6642 (dump_alias_stats): Likewise.
6643 (cheap_array_ref_low_bound): New function.
6644 (aliasing_matching_component_refs_p): Add partial_overlap
6645 argument;
6646 pass it to nonoverlapping_refs_since_match_p.
6647 (aliasing_component_refs_walk): Update call of
6648 aliasing_matching_component_refs_p
6649 (nonoverlapping_array_refs_p): New function.
6650 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
6651 indirect_refs_may_alias_p): Update calls of
6652 nonoverlapping_refs_since_match_p.
6653
6654 2019-10-01 Maya Rashish <coypu@sdf.org>
6655
6656 PR target/85401
6657 * ira-color.c (allocno_copy_cost_saving): Call
6658 ira_init_register_move_cost_if_necessary.
6659
6660 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
6661
6662 * Makefile.in (gnat_install_lib): New variable.
6663 * configure.ac: Substitute it.
6664 * configure: Regenerate.
6665
6666 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
6667
6668 PR lto/91222
6669 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
6670 is matched with non-C++ type
6671
6672 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6673
6674 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
6675 after local CSE.
6676
6677 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
6678
6679 * doc/invoke.texi (early-inlining-insns-O2): Document.
6680 (early-inlining-insns): Update.
6681 * params.def (early-inlining-insns-O2): New bound.
6682 (early-inlining-insns): Update docs.
6683 * ipa-inline.c (want_early_inline_function_p): Use new bound.
6684
6685 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
6686
6687 PR target/88562
6688 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
6689 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
6690 a memory access insn.
6691
6692 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
6693
6694 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
6695 vpmsumd.
6696
6697 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
6698
6699 PR target/77918
6700 * config/s390/s390.c (s390_expand_vec_compare): Use
6701 gen_vec_cmpordered and gen_vec_cmpunordered.
6702 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
6703 vec_unordered): Delete.
6704 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
6705 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
6706 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
6707 (vec_cmp<code>): Generic dispatcher.
6708
6709 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
6710
6711 PR target/77918
6712 * config/s390/vector.md (V_HW): Add V1TI in order to make
6713 vcond$a$b generate vcondv1tiv1tf.
6714
6715 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
6716
6717 PR rtl-optimization/91948
6718 * ira-build.c (ira_create_allocno): Initialize
6719 ALLOCNO_CROSSED_CALLS_ABIS.
6720 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
6721 than regno to ira_need_caller_save_p.
6722
6723 2019-10-01 Alexandre Oliva <oliva@adacore.com>
6724
6725 * config/i386/i386-options.c
6726 (ix86_recompute_optlev_based_flags): New, moved out of...
6727 (ix86_option_override_internal): ... this. Call it.
6728 (ix86_override_options_after_change): Call it here too.
6729
6730 PR debug/91507
6731 * dwarf2out.c (override_type_for_decl_p): New.
6732 (gen_variable_die): Use it.
6733
6734 2019-10-01 Richard Biener <rguenther@suse.de>
6735
6736 * tree-vect-loop.c (vectorizable_reduction): Move variables
6737 to where they are used.
6738
6739 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
6740
6741 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
6742 (build_def_use): Use PC instead of CC0 in a comment.
6743
6744 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
6745
6746 * rtl.def (CLOBBER_HIGH): Delete.
6747 * doc/rtl.texi (clobber_high): Remove documentation.
6748 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
6749 (reg_is_clobbered_by_clobber_high): Delete.
6750 (gen_hard_reg_clobber_high): Likewise.
6751 * alias.c (record_set): Remove CLOBBER_HIGH handling.
6752 * cfgexpand.c (expand_gimple_stmt): Likewise.
6753 * combine-stack-adj.c (single_set_for_csa): Likewise.
6754 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
6755 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
6756 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
6757 * cse.c (invalidate_reg): Remove clobber_high parameter.
6758 (invalidate): Update call accordingly.
6759 (canonicalize_insn): Remove CLOBBER_HIGH handling.
6760 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
6761 (count_reg_usage, insn_live_p): Likewise.
6762 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
6763 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
6764 (cselib_invalidate_rtx_note_stores): Update call accordingly.
6765 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
6766 (cselib_invalidate_regno, cselib_process_insn): Likewise.
6767 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
6768 (mark_nonreg_stores_2): Likewise.
6769 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
6770 (df_get_call_refs): Likewise.
6771 * dwarf2out.c (mem_loc_descriptor): Likewise.
6772 * emit-rtl.c (verify_rtx_sharing): Likewise.
6773 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
6774 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
6775 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
6776 * genemit.c (gen_exp, gen_insn): Likewise.
6777 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
6778 * haifa-sched.c (haifa_classify_rtx): Likewise.
6779 * ira-build.c (create_insn_allocnos): Likewise.
6780 * ira-costs.c (scan_one_insn): Likewise.
6781 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
6782 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
6783 * jump.c (mark_jump_label_1): Likewise.
6784 * lra-int.h (lra_insn_reg::clobber_high): Delete.
6785 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
6786 handling.
6787 (mark_not_eliminable): Likewise.
6788 * lra-lives.c (process_bb_lives): Likewise.
6789 * lra.c (new_insn_reg): Remove clobber_high parameter.
6790 (collect_non_operand_hard_regs): Likewise. Update call to new
6791 insn_reg. Remove CLOBBER_HIGH handling.
6792 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
6793 to collect_non_operand_hard_regs.
6794 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
6795 Update call to new_insn_reg.
6796 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
6797 * postreload.c (reload_cse_simplify, reload_combine_note_use)
6798 (move2add_note_store): Likewise.
6799 * print-rtl.c (print_pattern): Likewise.
6800 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
6801 (if_test_bypass_p): Likewise.
6802 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
6803 * reginfo.c (reg_scan_mark_refs): Likewise.
6804 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
6805 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
6806 (forget_old_reloads_1): Likewise.
6807 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
6808 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
6809 (dbr_schedule): Likewise.
6810 * resource.c (update_live_status, mark_referenced_resources)
6811 (mark_set_resources): Likewise.
6812 * rtl.c (copy_rtx): Likewise.
6813 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
6814 (note_pattern_stores): Likewise.
6815 (reg_is_clobbered_by_clobber_high): Delete.
6816 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
6817 CLOBBER_HIGH handling.
6818
6819 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
6820
6821 PR target/91452
6822 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
6823 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
6824 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
6825 Handle ARM_PCS_TLSDESC.
6826 (aarch64_tlsdesc_abi_id): New function.
6827 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
6828 rtx instead of a list of clobbers and clobber_highs.
6829 (tlsdesc_small_<mode>): Update accordingly.
6830
6831 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
6832
6833 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
6834 extra callee_abi argument.
6835 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
6836 Insert a CALLEE_ABI unspec into the call pattern as the second
6837 element in the PARALLEL.
6838 (aarch64_simd_call_p): Delete.
6839 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
6840 the new CALLEE_ABI element of the PARALLEL.
6841 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
6842 from the function type, if given.
6843 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
6844 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
6845 when passed the function_arg_info end marker.
6846 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
6847 final argument of gen_sibcall.
6848 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
6849 (call): Make operand 2 a const_int_operand and pass it to expand_call.
6850 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
6851 pattern.
6852 (call_value): Likewise operand 3.
6853 (sibcall): Likewise operand 2. Place the unspec before rather than
6854 after the return.
6855 (sibcall_value): Likewise operand 3.
6856 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
6857 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
6858 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
6859 constraint strings.
6860 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
6861
6862 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
6863
6864 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
6865 choose_hard_reg_mode.
6866 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6867
6868 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
6869
6870 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
6871 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
6872 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
6873
6874 2019-09-30 David Malcolm <dmalcolm@redhat.com>
6875
6876 * diagnostic-show-locus.c (line_label::line_label): Initialize
6877 m_has_vbar.
6878 (line_label::comparator): Reverse the sort order by m_state_idx,
6879 so that when the list is walked backwards the labels appear in
6880 order of insertion into the rich_location.
6881 (line_label::m_has_vbar): New field.
6882 (layout::print_any_labels): When dealing with multiple labels at
6883 the same line and column, only print vertical bars for the one
6884 with the highest label_line.
6885 (selftest::test_one_liner_labels): Update test for multiple labels
6886 to expect the labels to be in the order of insertion into the
6887 rich_location. Add a test for many such labels, where the column
6888 numbers are out-of-order relative to the insertion order.
6889
6890 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6891
6892 * config/i386/i386.h (ix86_frame::expensive_p): New field.
6893 (ix86_frame::expensive_count): Likewise.
6894 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
6895 of use_fast_prologue_epilogue robust against incidental changes
6896 in function size.
6897
6898 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
6899
6900 PR target/77918
6901 * config/s390/vector.md (vec_unordered<mode>): Call
6902 gen_vec_ordered<mode>.
6903
6904 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
6905
6906 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
6907 New pattern for ASRD.
6908 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
6909 * internal-fn.def (IFN_DIV_POW2): New internal function.
6910 * optabs.def (sdiv_pow2_optab): New optab.
6911 * tree-vect-patterns.c (vect_recog_divmod_pattern):
6912 Modify pattern to support new operation.
6913 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
6914 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
6915 Document new target selector.
6916
6917 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6918
6919 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
6920 to test whether we're compiling a vector PCS function and to test
6921 whether the function needs to save a particular register.
6922 Remove the vector PCS handling of df_set_regs_ever_live.
6923 (aarch64_components_for_bb): Use crtl->abi to test whether
6924 the function needs to save a particular register.
6925 (aarch64_process_components): Use crtl->abi to test whether
6926 we're compiling a vector PCS function.
6927 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
6928 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
6929
6930 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6931
6932 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
6933 Delete.
6934 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
6935 whether the block calls a function that clobbers more registers
6936 than the current function is allowed to.
6937 (aarch64_use_simple_return_insn_p): Delete.
6938 * config/aarch64/aarch64.md (simple_return): Remove condition.
6939
6940 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6941
6942 * function-abi.h (function_abi_aggregator): New class.
6943 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
6944 function.
6945 * ira.c (update_equiv_regs_prescan): New function. Call
6946 set_paradoxical_subreg here rather than...
6947 (update_equiv_regs): ...here.
6948 (ira): Call update_equiv_regs_prescan.
6949
6950 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6951
6952 * hard-reg-set.h (regs_invalidated_by_call): Only define if
6953 IN_TARGET_CODE.
6954 (call_used_or_fixed_regs): Likewise.
6955 (call_used_or_fixed_reg_p): Likewise.
6956 * reginfo.c (regs_invalidated_by_call): New macro.
6957
6958 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6959
6960 * shrink-wrap.c: Include function-abi.h.
6961 (requires_stack_frame_p): Use crtl->abi to test whether the
6962 current function can use a register without saving it first.
6963
6964 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6965
6966 * sel-sched-ir.h (_def::crosses_call): Replace with...
6967 (_def::crossed_call_abis): ..this new field.
6968 (def_list_add): Take a mask of ABIs instead of a crosses_call
6969 boolean.
6970 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
6971 of _def accordingly.
6972 * sel-sched.c: Include function-abi.h.
6973 (hard_regs_data::regs_for_call_clobbered): Delete.
6974 (reg_rename::crosses_call): Replace with...
6975 (reg_rename::crossed_call_abis): ...this new field.
6976 (fur_static_params::crosses_call): Replace with...
6977 (fur_static_params::crossed_call_abis): ...this new field.
6978 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
6979 (init_hard_regs_data): Use crtl->abi to test which registers the
6980 current function would need to save before it uses them.
6981 (mark_unavailable_hard_regs): Update handling of call-clobbered
6982 registers, using call_clobbers_in_region to find out which registers
6983 might be call-clobbered (but without taking -fipa-ra into account
6984 for now). Remove separate handling of partially call-clobbered
6985 registers.
6986 (verify_target_availability): Use crossed_call_abis instead of
6987 crosses_call.
6988 (get_spec_check_type_for_insn, find_used_regs): Likewise.
6989 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
6990
6991 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6992
6993 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
6994 function to test whether a register is fully or partly clobbered.
6995
6996 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6997
6998 * rtlanal.c: Include function-abi.h.
6999 (reg_set_p): Use insn_callee_abi to get the ABI of the called
7000 function and clobbers_reg_p to test whether the register
7001 is call-clobbered.
7002 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
7003 to get the ABI of the called function and full_reg_clobbers to
7004 get the set of fully call-clobbered registers. Warn about the
7005 pitfalls of using this mode.
7006
7007 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7008
7009 * reload.c: Include function-abi.h.
7010 (find_equiv_reg): Use clobbers_reg_p to test whether either
7011 of the equivalent registers is clobbered by a call.
7012 * reload1.c: Include function-abi.h.
7013 (reg_reloaded_call_part_clobbered): Delete.
7014 (reload): Use crtl->abi to test which registers would need
7015 saving in the prologue before use.
7016 (find_reg): Likewise.
7017 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
7018 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
7019 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
7020
7021 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7022
7023 * regrename.h (du_head::call_clobber_mask): New field.
7024 (du_head::need_caller_save_reg): Replace with...
7025 (du_head::call_abis): ...this new field.
7026 * regrename.c: Include function-abi.h.
7027 (call_clobbered_in_chain_p): New function.
7028 (check_new_reg_p): Use crtl->abi when deciding whether a register
7029 is free for use after RA. Use call_clobbered_in_chain_p to test
7030 whether a candidate register would be clobbered by a call.
7031 (find_rename_reg): Don't add call-clobber conflicts here.
7032 (rename_chains): Check call_abis instead of need_caller_save_reg.
7033 (merge_chains): Update for changes to du_head.
7034 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
7035 target. Record the ABI identifier in call_abis and the set of
7036 fully or partially clobbered registers in call_clobber_mask.
7037 Add fully-clobbered registers to hard_conflicts here rather
7038 than in find_rename_reg.
7039 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
7040 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
7041 * config/aarch64/falkor-tag-collision-avoidance.c: Include
7042 function-abi.h.
7043 * config/c6x/c6x.c: Likewise.
7044
7045 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7046
7047 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
7048 mode of the register when deciding whether it is no longer
7049 available after a call.
7050
7051 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7052
7053 * recog.c: Include function-abi.h.
7054 (peep2_find_free_register): Use crtl->abi when deciding whether
7055 a register is free for use after RA.
7056
7057 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7058
7059 * postreload-gcse.c: Include regs.h and function-abi.h.
7060 (record_opr_changes): Use insn_callee_abi to get the ABI of the
7061 call insn target. Conservatively assume that partially-clobbered
7062 registers are altered.
7063
7064 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7065
7066 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
7067 when deciding whether a register is free for use after RA.
7068 (reload_combine): Remove unnecessary use of fixed_reg_set.
7069 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
7070 call insn target. Use reg_mode when testing whether a register
7071 is no longer available.
7072
7073 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7074
7075 * target.def (return_call_with_max_clobbers): Delete.
7076 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
7077 * doc/tm.texi: Regenerate.
7078 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
7079 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
7080 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
7081 (lra_reg::call_insn): Delete.
7082 * lra.c: Include function-abi.h.
7083 (initialize_lra_reg_info_element): Don't initialize the fields above.
7084 (lra): Use crtl->abi to test whether the current function needs to
7085 save a register in the prologue. Remove special pre-inheritance
7086 lra_create_live_ranges pass for flag_ipa_ra.
7087 * lra-assigns.c: Include function-abi.h
7088 (find_hard_regno_for_1): Use crtl->abi to test whether the current
7089 function needs to save a register in the prologue.
7090 (lra_assign): Assert that registers aren't allocated to a
7091 conflicting register, rather than checking only for overlaps
7092 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
7093 and for registers that are not live across a call.
7094 * lra-constraints.c (last_call_for_abi): New variable.
7095 (full_and_partial_call_clobbers): Likewise.
7096 (setup_next_usage_insn): Remove the register from
7097 full_and_partial_call_clobbers.
7098 (need_for_call_save_p): Use call_clobbered_in_region_p to test
7099 whether the register needs a caller save.
7100 (need_for_split_p): Use full_and_partial_reg_clobbers instead
7101 of call_used_or_fixed_regs.
7102 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
7103 full_and_partial_call_clobbers.
7104 * lra-lives.c (check_pseudos_live_through_calls): Replace
7105 last_call_used_reg_set and call_insn arguments with an abi argument.
7106 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
7107 as the set of conflicting registers.
7108 (calls_have_same_clobbers_p): Delete.
7109 (process_bb_lives): Track the ABI of the last call instead of an
7110 insn/HARD_REG_SET pair. Update calls to
7111 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
7112 the set of registers that could be clobbered by an EH edge.
7113 Include partially-clobbered as well as fully-clobbered registers.
7114 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
7115 * lra-remat.c: Include function-abi.h.
7116 (call_used_regs_arr_len, call_used_regs_arr): Delete.
7117 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
7118 registers and bitmap_view to combine them into dead_regs.
7119 (call_used_input_regno_present_p): Take a function_abi argument
7120 and use it to test whether a register is call-clobbered.
7121 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
7122 call insn target. Update tje call to call_used_input_regno_present_p.
7123 (do_remat): Likewise.
7124 (lra_remat): Remove the initialization of call_used_regs_arr_len
7125 and call_used_regs_arr.
7126
7127 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7128
7129 * loop-iv.c: Include regs.h and function-abi.h.
7130 (simplify_using_initial_values): Use insn_callee_abi to get the
7131 ABI of the call insn target. Conservatively assume that
7132 partially-clobbered registers are altered.
7133
7134 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7135
7136 * function-abi.h (call_clobbers_in_region): Declare.
7137 (call_clobbered_in_region_p): New function.
7138 * function-abi.cc (call_clobbers_in_region): Likewise.
7139 * ira-int.h: Include function-abi.h.
7140 (ira_allocno::crossed_calls_abis): New field.
7141 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
7142 (ira_need_caller_save_regs): New function.
7143 (ira_need_caller_save_p): Likewise.
7144 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
7145 of call_used_or_fixed_regs.
7146 (do_reload): Use crtl->abi to test whether the current function
7147 needs to save a register in the prologue. Count registers that
7148 need to be saved rather than registers that don't.
7149 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
7150 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7151 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
7152 (propagate_some_info_from_allocno): Likewise.
7153 (copy_info_to_removed_store_destinations): Likewise.
7154 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
7155 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
7156 (ira_build): Use ira_need_caller_save_regs instead of
7157 call_used_or_fixed_regs.
7158 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
7159 whether the current function would need to save a register
7160 before using it.
7161 (calculate_spill_cost): Likewise.
7162 (allocno_reload_assign): Use ira_need_caller_save_regs and
7163 ira_need_caller_save_p instead of call_used_or_fixed_regs.
7164 * ira-conflicts.c (ira_build_conflicts): Use
7165 ira_need_caller_save_regs rather than call_used_or_fixed_regs
7166 as the set of call-clobbered registers. Remove the
7167 call_used_or_fixed_regs mask from the calculation of
7168 temp_hard_reg_set and mask its use instead. Remove special
7169 handling of partially-clobbered registers.
7170 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
7171 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
7172 calculate the set of conflicting registers for calls that
7173 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
7174 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
7175 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7176 Use eh_edge_abi to calculate the set of registers that could
7177 be clobbered by an EH edge. Include partially-clobbered as
7178 well as fully-clobbered registers.
7179
7180 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7181
7182 * haifa-sched.c: Include function-abi.h.
7183 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
7184 the function would need to save a register before using it.
7185
7186 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7187
7188 * gcse.c: Include function-abi.h.
7189 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
7190 the call insn target. Invalidate partially call-clobbered
7191 registers as well as fully call-clobbered ones.
7192
7193 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7194
7195 * function.c (aggregate_value_p): Work out which ABI the
7196 function is using before testing which registers are at least
7197 partly preserved by a call.
7198
7199 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7200
7201 * early-remat.c: Include regs.h and function-abi.h.
7202 (early_remat::maybe_add_candidate): Don't check for call-clobbered
7203 registers here.
7204 (early_remat::restrict_remat_for_unavail_regs): New function.
7205 (early_remat::restrict_remat_for_call): Likewise.
7206 (early_remat::process_block): Before calling emit_remat_insns
7207 for a previous call in the block, invalidate any candidates
7208 that would clobber call-preserved registers.
7209 (early_remat::emit_remat_insns_for_block): Likewise for the
7210 final call in a block. Do the same thing for live-in registers
7211 when calling emit_remat_insns at the head of a block.
7212
7213 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7214
7215 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
7216 whether the current function needs to save at least part of a
7217 register before using it.
7218 (df_get_exit_block_use_set): Likewise for epilogue restores.
7219
7220 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7221
7222 * df-problems.c: Include regs.h and function-abi.h.
7223 (df_rd_problem_data): Rename sparse_invalidated_by_call to
7224 sparse_invalidated_by_eh and dense_invalidated_by_call to
7225 dense_invalidated_by_eh.
7226 (df_print_bb_index): Update accordingly.
7227 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
7228 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
7229 that are clobbered by an EH edge. Clobber partially-clobbered
7230 registers as well as fully-clobbered ones.
7231 (df_md_confluence_n): Likewise.
7232 (df_rd_local_compute): Likewise. Update for changes to
7233 df_rd_problem_data.
7234 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
7235 of registers that are clobbered by an EH edge. Includde partially-
7236 clobbered registers as well as fully-clobbered ones.
7237
7238 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7239
7240 * cselib.c (cselib_process_insn): If we know what mode a
7241 register was set in, check whether it is clobbered in that
7242 mode by a call. Only fall back to reg_raw_mode if that fails.
7243
7244 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7245
7246 * cse.c: Include regs.h and function-abi.h.
7247 (invalidate_for_call): Take the call insn as an argument.
7248 Use insn_callee_abi to get the ABI of the call and invalidate
7249 partially clobbered registers as well as fully clobbered ones.
7250 (cse_insn): Update call accordingly.
7251
7252 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7253
7254 * combine.c: Include function-abi.h.
7255 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
7256 of the target of call insns. Invalidate partially-clobbered
7257 registers as well as fully-clobbered ones.
7258
7259 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7260
7261 * cfgloopanal.c: Include regs.h and function-abi.h.
7262 (init_set_costs): Use default_function_abi to test whether
7263 a general register is call-clobbered.
7264
7265 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7266
7267 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
7268 instead of the call-clobbered sets.
7269
7270 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7271
7272 * caller-save.c (setup_save_areas): Remove redundant |s of
7273 fixed_reg_set.
7274 (save_call_clobbered_regs): Likewise. Use the call ABI rather
7275 than call_used_or_fixed_regs to decide whether a REG_RETURNED
7276 value is useful.
7277
7278 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7279
7280 * rtl.h (predefined_function_abi): Declare.
7281 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
7282 instead of a boolean call_save flag.
7283 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
7284 accordingly.
7285 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7286 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7287 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
7288 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7289 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7290 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
7291 * reginfo.c (init_reg_modes_target): Likewise.
7292 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
7293 instead of a boolean call_save flag.
7294 * targhooks.c: Include function-abi.h.
7295 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
7296 using eh_edge_abi to choose the mode.
7297
7298 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7299
7300 * target.def (hard_regno_call_part_clobbered): Take an ABI
7301 identifier instead of an rtx_insn.
7302 * doc/tm.texi: Regenerate.
7303 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
7304 (hook_bool_uint_uint_mode_false): New function.
7305 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
7306 (hook_bool_uint_uint_mode_false): New function.
7307 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7308 Take an ABI identifier instead of an rtx_insn.
7309 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
7310 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
7311 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
7312 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
7313 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
7314 Likewise.
7315 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
7316 * cselib.c: Include function-abi.h.
7317 (cselib_process_insn): Update call to
7318 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
7319 to get the appropriate ABI identifier.
7320 * function-abi.cc (predefined_function_abi::initialize): Update call
7321 to targetm.hard_regno_call_part_clobbered.
7322 * ira-conflicts.c (ira_build_conflicts): Likewise.
7323 * ira-costs.c (ira_tune_allocno_costs): Likewise.
7324 * lra-constraints.c: Include function-abi.h.
7325 (need_for_call_save_p): Update call to
7326 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
7327 to get the appropriate ABI identifier.
7328 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
7329 * regcprop.c (copyprop_hardreg_forward_1): Update call
7330 to targetm.hard_regno_call_part_clobbered.
7331 * reginfo.c (choose_hard_reg_mode): Likewise.
7332 * regrename.c (check_new_reg_p): Likewise.
7333 * reload.c (find_equiv_reg): Likewise.
7334 * reload1.c (emit_reload_insns): Likewise.
7335 * sched-deps.c: Include function-abi.h.
7336 (deps_analyze_insn): Update call to
7337 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
7338 to get the appropriate ABI identifier.
7339 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
7340 call to targetm.hard_regno_call_part_clobbered.
7341 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
7342
7343 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7344
7345 * config/i386/i386.c: Include function-abi.h.
7346 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
7347 if they preserve some 256-bit or 512-bit SSE registers.
7348
7349 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7350
7351 * target.def (insn_callee_abi): New hook.
7352 (remove_extra_call_preserved_regs): Delete.
7353 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
7354 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
7355 * doc/tm.texi: Regenerate.
7356 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
7357 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
7358 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
7359 insn argument.
7360 (aarch64_remove_extra_call_preserved_regs): Delete.
7361 (aarch64_insn_callee_abi): New function.
7362 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
7363 (TARGET_INSN_CALLEE_ABI): New macro.
7364 * rtl.h (get_call_fndecl): Declare.
7365 (cgraph_rtl_info): Fix formatting. Tweak comment for
7366 function_used_regs. Remove function_used_regs_valid.
7367 * rtlanal.c (get_call_fndecl): Moved from final.c
7368 * function-abi.h (insn_callee_abi): Declare.
7369 (target_function_abi_info): Mention insn_callee_abi.
7370 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
7371 way to get_call_reg_set_usage did.
7372 (insn_callee_abi): New function.
7373 * regs.h (get_call_reg_set_usage): Delete.
7374 * final.c: Include function-abi.h.
7375 (collect_fn_hard_reg_usage): Add fixed and stack registers to
7376 function_used_regs before the main loop rather than afterwards.
7377 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
7378 if function_used_regs ends up not being useful.
7379 (get_call_fndecl): Move to rtlanal.c
7380 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
7381 * caller-save.c: Include function-abi.h.
7382 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
7383 instead of get_call_reg_set_usage.
7384 * cfgcleanup.c: Include function-abi.h.
7385 (old_insns_match_p): Use insn_callee_abi instead of
7386 get_call_reg_set_usage.
7387 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
7388 a tree.
7389 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
7390 function_used_regs.
7391 * df-scan.c: Include function-abi.h.
7392 (df_get_call_refs): Use insn_callee_abi instead of
7393 get_call_reg_set_usage.
7394 * ira-lives.c: Include function-abi.h.
7395 (process_bb_node_lives): Use insn_callee_abi instead of
7396 get_call_reg_set_usage.
7397 * lra-lives.c: Include function-abi.h.
7398 (process_bb_lives): Use insn_callee_abi instead of
7399 get_call_reg_set_usage.
7400 * postreload.c: Include function-abi.h.
7401 (reload_combine): Use insn_callee_abi instead of
7402 get_call_reg_set_usage.
7403 * regcprop.c: Include function-abi.h.
7404 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
7405 get_call_reg_set_usage.
7406 * resource.c: Include function-abi.h.
7407 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
7408 instead of get_call_reg_set_usage.
7409 * var-tracking.c: Include function-abi.h.
7410 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
7411 get_call_reg_set_usage.
7412
7413 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7414
7415 * target.def (fntype_abi): New target hook.
7416 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
7417 * doc/tm.texi: Regenerate.
7418 * target.h (predefined_function_abi): Declare.
7419 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
7420 if defined.
7421 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
7422 * config/aarch64/aarch64.c: Include function-abi.h.
7423 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
7424 (TARGET_FNTYPE_ABI): Define.
7425
7426 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7427
7428 * Makefile.in (OBJS): Add function-abi.o.
7429 (GTFILES): Add function-abi.h.
7430 * function-abi.cc: New file.
7431 * function-abi.h: Likewise.
7432 * emit-rtl.h (rtl_data::abi): New field.
7433 * function.c: Include function-abi.h.
7434 (prepare_function_start): Initialize crtl->abi.
7435 * read-rtl-function.c: Include regs.h and function-abi.h.
7436 (read_rtl_function_body): Initialize crtl->abi.
7437 (read_rtl_function_body_from_file_range): Likewise.
7438 * reginfo.c: Include function-abi.h.
7439 (init_reg_sets_1): Initialize default_function_abi.
7440 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
7441 when making a register global.
7442 * target-globals.h (this_target_function_abi_info): Declare.
7443 (target_globals::function_abi_info): New field.
7444 (restore_target_globals): Copy it.
7445 * target-globals.c: Include function-abi.h.
7446 (default_target_globals): Initialize the function_abi_info field.
7447 (target_globals): Allocate it.
7448 (save_target_globals): Free it.
7449
7450 2019-09-30 Nick Clifton <nickc@redhat.com>
7451
7452 PR target/85978
7453 * config/frv/frv.c (frv_register_move_cost): Add break statements
7454 to avoid falling through to the wrong cases. Tidy code.
7455
7456 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7457
7458 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7459 For multi-registers modes, test how big each register part is.
7460
7461 2019-09-30 Nick Clifton <nickc@redhat.com>
7462
7463 PR target/59205
7464 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
7465 (TARGET_ASM_SELECT_SECTION): Remove definition.
7466 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
7467
7468 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
7469
7470 * emit-rtl.c (init_raw_REG): New function.
7471 (gen_raw_REG): Use init_raw_REG.
7472 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
7473 macros.
7474 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
7475 * rtl.h (rtx_init): New function.
7476 (rtx_alloca): New function.
7477 (init_raw_REG): New function.
7478 (alloca_raw_REG): New macro.
7479
7480 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
7481
7482 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
7483 (pcrel_local_address): Replace pcrel_address predicate, use the
7484 new function address_to_insn_form.
7485 (pcrel_external_address): Replace with new implementation using
7486 address_to_insn_form..
7487 (prefixed_mem_operand): Delete predicate which is now unused.
7488 (pcrel_external_mem_operand): Delete predicate which is now
7489 unused.
7490 * config/rs6000/rs6000-protos.h (enum insn_form): New
7491 enumeration.
7492 (enum non_prefixed_form): New enumeration.
7493 (address_to_insn_form): New declaration.
7494 (prefixed_load_p): New declaration.
7495 (prefixed_store_p): New declaration.
7496 (prefixed_paddi_p): New declaration.
7497 (rs6000_asm_output_opcode): New declaration.
7498 (rs6000_final_prescan_insn): Move declaration and update calling
7499 signature.
7500 (address_is_prefixed): New helper inline function.
7501 * config/rs6000/rs6000.c(print_operand_address): Check for either
7502 PC-relative local symbols or PC-relative external symbols.
7503 (rs6000_emit_move): Support loading PC-relative addresses.
7504 (mode_supports_prefixed_address_p): Delete, no longer used.
7505 (rs6000_prefixed_address_mode_p): Delete, no longer used.
7506 (address_to_insn_form): New function to decode an address format.
7507 (reg_to_non_prefixed): New function to identify what the
7508 non-prefixed memory instruction format is for a register.
7509 (prefixed_load_p): New function to identify prefixed loads.
7510 (prefixed_store_p): New function to identify prefixed stores.
7511 (prefixed_paddi_p): New function to identify prefixed load
7512 immediates.
7513 (next_insn_prefixed_p): New static state variable.
7514 (rs6000_final_prescan_insn): New function to determine if an insn
7515 uses a prefixed instruction.
7516 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
7517 prefixed instruction.
7518 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
7519 (ASM_OUTPUT_OPCODE): New target hook.
7520 * config/rs6000/rs6000.md (prefixed): New insn attribute for
7521 prefixed instructions.
7522 (prefixed_length): New insn attribute for the size of prefixed
7523 instructions.
7524 (non_prefixed_length): New insn attribute for the size of
7525 non-prefixed instructions.
7526 (pcrel_local_addr): New insn to load up a local PC-relative
7527 address.
7528 (pcrel_extern_addr): New insn to load up an external PC-relative
7529 address.
7530 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
7531 GPR and loading a 128-bit floating point type to a GPR.
7532
7533 2019-09-30 Richard Biener <rguenther@suse.de>
7534
7535 * gimple.c (gimple_get_lhs): For PHIs return the result.
7536 * tree-vectorizer.h (vectorizable_live_operation): Also get the
7537 SLP instance as argument.
7538 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
7539 double-reduction PHIs with vectorizable_lc_phi.
7540 (vect_analyze_loop_operations): Adjust.
7541 (vect_create_epilog_for_reduction): Remove all code not dealing
7542 with reduction LC PHI or epilogue generation.
7543 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
7544 for live stmts of reductions.
7545 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
7546 do not handle defs that are not vect_internal_def.
7547 (can_vectorize_live_stmts): Adjust.
7548 (vect_analyze_stmt): When the vectorized stmt defined a value
7549 used on backedges adjust the backedge uses of vectorized PHIs.
7550
7551 2019-09-30 Martin Jambor <mjambor@suse.cz>
7552
7553 PR ipa/91853
7554 * tree-inline.c (force_value_to_type): New function.
7555 (setup_one_parameter): Use force_value_to_type to convert type.
7556 * tree-inline.c (force_value_to_type): Declare.
7557 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
7558 with register type mismatches.
7559
7560 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
7561
7562 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
7563 32-bit PowerPC.
7564 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
7565 * config/rs6000/t-freebsd64: Make use of the above define and build
7566 the 32-bit libraries with secure-plt.
7567
7568 2019-09-30 Jakub Jelinek <jakub@redhat.com>
7569
7570 PR target/91931
7571 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
7572 gen_int_mode instead of GEN_INT.
7573
7574 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
7575
7576 * config/darwin.c (gen_macho_low): Amend to include the mode
7577 argument.
7578 (machopic_indirect_data_reference): Amend gen_macho_low call
7579 to include mode argument
7580 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
7581 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
7582 the macho_high expander and two define_insn entries.
7583
7584 2019-09-29 Jakub Jelinek <jakub@redhat.com>
7585
7586 PR bootstrap/90543
7587 * optc-save-gen.awk: Fix up printing string option differences.
7588
7589 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
7590
7591 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
7592 vec_perm cost to 1 for non-Power7 VSX architectures.
7593
7594 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
7595
7596 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
7597 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
7598 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
7599
7600 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
7601
7602 * config/darwin.c (gen_macho_high): Amend to include the mode
7603 argument.
7604 (machopic_indirect_data_reference): Amend gen_macho_high call
7605 to include mode argument.
7606 (machopic_legitimize_pic_address): Likewise.
7607 * config/rs6000/rs6000.c (rs6000_legitimize_address):
7608 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
7609 the macho_high expander and two define_insn entries.
7610
7611 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
7612
7613 PR target/86805
7614 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
7615
7616 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
7617
7618 PR target/80672
7619 * config/sh/sh.c (parse_validate_atomic_model_option): Use
7620 std::string::compare instead of std::string::find.
7621
7622 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
7623
7624 * configure: Regenerate.
7625
7626 2019-09-27 Jakub Jelinek <jakub@redhat.com>
7627
7628 PR middle-end/91920
7629 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
7630 variables as shared.
7631
7632 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
7633
7634 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
7635 replaces the expander and two define_insn entries.
7636 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
7637 call.
7638 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
7639
7640 2019-09-27 David Malcolm <dmalcolm@redhat.com>
7641
7642 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
7643 (fibonacci_heap::nodes): Likewise.
7644 (fibonacci_heap::min_key): Likewise.
7645 (fibonacci_heap::min): Likewise.
7646
7647 2019-09-27 David Malcolm <dmalcolm@redhat.com>
7648
7649 * cgraph.c (cgraph_node::get_fun): Make const.
7650 * cgraph.h (cgraph_node::get_fun): Likewise.
7651
7652 2019-09-27 Jakub Jelinek <jakub@redhat.com>
7653
7654 PR target/91919
7655 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
7656 of SImode MULT.
7657
7658 2019-09-27 Richard Biener <rguenther@suse.de>
7659
7660 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
7661 (STMT_VINFO_REDUC_FN): Likewise.
7662 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
7663 STMT_VINFO_REDUC_FN.
7664 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
7665 for condition reductions.
7666 (vect_create_epilog_for_reduction): Compute all required state
7667 from the stmt to be vectorized.
7668 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
7669 invocation and remove then dead code. For single def-use chains
7670 record only a single vector stmt.
7671
7672 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
7673
7674 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
7675 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
7676 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
7677 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
7678 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
7679 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
7680 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
7681 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
7682 (aarch64_general_builtin_rsqrt): Declare.
7683 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
7684 New function.
7685 (aarch64_mangle_builtin_type): Rename to...
7686 (aarch64_general_mangle_builtin_type): ...this.
7687 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
7688 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
7689 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
7690 aarch64_general_add_builtin instead of add_builtin_function.
7691 (aarch64_init_builtins): Rename to...
7692 (aarch64_general_init_builtins): ...this. Use
7693 aarch64_general_add_builtin instead of add_builtin_function.
7694 (aarch64_builtin_decl): Rename to...
7695 (aarch64_general_builtin_decl): ...this and remove the unused
7696 arguments.
7697 (aarch64_expand_builtin): Rename to...
7698 (aarch64_general_expand_builtin): ...this and remove the unused
7699 arguments.
7700 (aarch64_builtin_rsqrt): Rename to...
7701 (aarch64_general_builtin_rsqrt): ...this.
7702 (aarch64_fold_builtin): Rename to...
7703 (aarch64_general_fold_builtin): ...this. Take the function subcode
7704 and return type as arguments. Remove the "ignored" argument.
7705 (aarch64_gimple_fold_builtin): Rename to...
7706 (aarch64_general_gimple_fold_builtin): ...this. Take the function
7707 subcode and gcall as arguments, and return the new function call.
7708 * config/aarch64/aarch64.c (aarch64_init_builtins)
7709 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
7710 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
7711 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
7712 instead of aarch64_builtin_rsqrt.
7713 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
7714 instead of aarch64_mangle_builtin_type.
7715
7716 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
7717
7718 * target.def (check_builtin_call): New target hook.
7719 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
7720 * doc/tm.texi: Regenerate.
7721
7722 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
7723
7724 PR tree-optimization/91909
7725 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
7726 reduc_index parameter. When handling COND_REDUCTION, make sure
7727 that the reduction phi operand is in the correct arm of the
7728 VEC_COND_EXPR.
7729 (vectorizable_reduction): Pass reduc_index to the above.
7730
7731 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
7732
7733 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
7734 New combine pattern.
7735
7736 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
7737
7738 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
7739 loop instruction into new basic block before the loop when basic
7740 block that precedes the loop is empty.
7741
7742 2019-09-26 Jakub Jelinek <jakub@redhat.com>
7743
7744 * function.c (gimplify_parameters): Use build_clobber function.
7745 * tree-ssa.c (execute_update_addresses_taken): Likewise.
7746 * tree-inline.c (expand_call_inline): Likewise.
7747 * tree-sra.c (clobber_subtree): Likewise.
7748 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
7749 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
7750 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
7751 lower_omp_target): Likewise.
7752 * omp-expand.c (expand_omp_for_generic): Likewise.
7753 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
7754
7755 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
7756
7757 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
7758 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
7759 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
7760 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
7761 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
7762 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
7763 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
7764 LD_ELEMREV_V16QI): Use the PURE attribute.
7765
7766 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
7767
7768 * config/rs6000/darwin.md: Replace the expanders for
7769 load_macho_picbase and reload_macho_picbase with use of '@'
7770 and <mode> in their respective define_insns.
7771 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
7772 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
7773 Pmode to gen_load_macho_picbase.
7774 * config/rs6000/rs6000.md: Likewise.
7775
7776 2019-09-25 Richard Biener <rguenther@suse.de>
7777
7778 PR tree-optimization/91896
7779 * tree-vect-loop.c (vectorizable_reduction): The single
7780 def-use cycle optimization cannot apply when there's more
7781 than one pattern stmt involved.
7782
7783 2019-09-26 Richard Biener <rguenther@suse.de>
7784
7785 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
7786 loop-closed PHIs that are vect_internal_def.
7787 (vect_create_epilog_for_reduction): Exit early for nested cycles.
7788 Simplify.
7789 (vectorizable_lc_phi): New.
7790 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
7791 (vect_transform_stmt): Likewise.
7792 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
7793 (vectorizable_lc_phi): Declare.
7794
7795 2019-09-26 Richard Biener <rguenther@suse.de>
7796
7797 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
7798 vectorizable_reduction for vect_double_reduction_def.
7799 (vect_transform_loop): Likewise.
7800 (vect_create_epilog_for_reduction): Move double-reduction
7801 PHI creation and preheader argument setting of PHIs ...
7802 (vectorizable_reduction): ... here. Also process
7803 vect_double_reduction_def PHIs, creating the vectorized
7804 PHI nodes, remembering the scalar adjustment computed for
7805 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
7806 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
7807 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
7808 Initialize STMT_VINFO_REDUC_CODE.
7809 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
7810 (_stmt_vec_info::reduc_code): Likewise.
7811 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
7812 (STMT_VINFO_REDUC_CODE): Likewise.
7813
7814 2019-09-26 Matt Turner <mattst88@gmail.com>
7815
7816 PR driver/69471
7817 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
7818 (mtune=): Add Negative(mtune=).
7819 (mcpu=): Add Negative(mcpu=).
7820 * config/arm/arm.opt: Likewise.
7821
7822 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7823
7824 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
7825 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
7826 Define.
7827 * config/arm/arm_acle.h: Define builtins for the above.
7828 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
7829 (simd32_op): Handle the above.
7830 * config/arm/unspecs.md: Define unspecs for the above.
7831
7832 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7833
7834 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
7835 (arm_<sup>xtb16): Likewise.
7836 (arm_usada8): Likewise.
7837 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
7838 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
7839 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
7840 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
7841 __sxtb16, __uxtab16, __uxtb16): Define.
7842 * config/arm/arm_acle_builtins.def: Define builtins for the above.
7843 * config/arm/unspecs.md: Define unspecs for the above.
7844 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
7845 (USXTB16): Likewise.
7846 (simd32_op): New int_attribute.
7847 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
7848 * doc/sourcebuild.exp (arm_simd32_ok): Document.
7849
7850 2019-09-26 Martin Jambor <mjambor@suse.cz>
7851
7852 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
7853 internal_error.
7854
7855 2019-09-26 Martin Jambor <mjambor@suse.cz>
7856
7857 * ipa-sra.c (process_scan_results): Fix continue condition.
7858
7859 2019-09-26 Martin Liska <mliska@suse.cz>
7860
7861 PR tree-optimization/91885
7862 * tree-vectorizer.c (try_vectorize_loop_1): Add
7863 TODO_update_ssa_only_virtuals similarly to what slp pass does.
7864
7865 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
7866
7867 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
7868 aarch64_plus_immediate rather than aarch64_uimm12_shift
7869 to test for valid PLUS immediates.
7870
7871 2019-09-25 Martin Jambor <mjambor@suse.cz>
7872
7873 * tree-sra.c (no_accesses_p): Remove.
7874 (no_accesses_representant): Likewise.
7875
7876 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7877
7878 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
7879 consistenly.
7880 (vaba_s16): Likewise.
7881 (vaba_s32): Likewise.
7882 (vaba_u8): Likewise.
7883 (vaba_u16): Likewise.
7884 (vaba_u32): Likewise.
7885 (vabal_high_s8): Likewise.
7886 (vabal_high_s16): Likewise.
7887 (vabal_high_s32): Likewise.
7888 (vabal_high_u8): Likewise.
7889 (vabal_high_u16): Likewise.
7890 (vabal_high_u32): Likewise.
7891 (vabal_s8): Likewise.
7892 (vabal_s16): Likewise.
7893 (vabal_s32): Likewise.
7894 (vabal_u8): Likewise.
7895 (vabal_u16): Likewise.
7896 (vabal_u32): Likewise.
7897 (vabaq_s8): Likewise.
7898 (vabaq_s16): Likewise.
7899 (vabaq_s32): Likewise.
7900 (vabaq_u8): Likewise.
7901 (vabaq_u16): Likewise.
7902 (vabaq_u32): Likewise.
7903 (vabd_s8): Likewise.
7904 (vabd_s16): Likewise.
7905 (vabd_s32): Likewise.
7906 (vabd_u8): Likewise.
7907 (vabd_u16): Likewise.
7908 (vabd_u32): Likewise.
7909 (vabdl_high_s8): Likewise.
7910 (vabdl_high_s16): Likewise.
7911 (vabdl_high_s32): Likewise.
7912 (vabdl_high_u8): Likewise.
7913 (vabdl_high_u16): Likewise.
7914 (vabdl_high_u32): Likewise.
7915 (vabdl_s8): Likewise.
7916 (vabdl_s16): Likewise.
7917 (vabdl_s32): Likewise.
7918 (vabdl_u8): Likewise.
7919 (vabdl_u16): Likewise.
7920 (vabdl_u32): Likewise.
7921 (vabdq_s8): Likewise.
7922 (vabdq_s16): Likewise.
7923 (vabdq_s32): Likewise.
7924 (vabdq_u8): Likewise.
7925 (vabdq_u16): Likewise.
7926 (vabdq_u32): Likewise.
7927 (vaddlv_s8): Likewise.
7928 (vaddlv_s16): Likewise.
7929 (vaddlv_u8): Likewise.
7930 (vaddlv_u16): Likewise.
7931 (vaddlvq_s8): Likewise.
7932 (vaddlvq_s16): Likewise.
7933 (vaddlvq_s32): Likewise.
7934 (vaddlvq_u8): Likewise.
7935 (vaddlvq_u16): Likewise.
7936 (vaddlvq_u32): Likewise.
7937 (vcvtx_f32_f64): Likewise.
7938 (vcvtx_high_f32_f64): Likewise.
7939 (vcvtxd_f32_f64): Likewise.
7940 (vmla_n_f32): Likewise.
7941 (vmla_n_s16): Likewise.
7942 (vmla_n_s32): Likewise.
7943 (vmla_n_u16): Likewise.
7944 (vmla_n_u32): Likewise.
7945 (vmla_s8): Likewise.
7946 (vmla_s16): Likewise.
7947 (vmla_s32): Likewise.
7948 (vmla_u8): Likewise.
7949 (vmla_u16): Likewise.
7950 (vmla_u32): Likewise.
7951 (vmlal_high_n_s16): Likewise.
7952 (vmlal_high_n_s32): Likewise.
7953 (vmlal_high_n_u16): Likewise.
7954 (vmlal_high_n_u32): Likewise.
7955 (vmlal_high_s8): Likewise.
7956 (vmlal_high_s16): Likewise.
7957 (vmlal_high_s32): Likewise.
7958 (vmlal_high_u8): Likewise.
7959 (vmlal_high_u16): Likewise.
7960 (vmlal_high_u32): Likewise.
7961 (vmlal_n_s16): Likewise.
7962 (vmlal_n_s32): Likewise.
7963 (vmlal_n_u16): Likewise.
7964 (vmlal_n_u32): Likewise.
7965 (vmlal_s8): Likewise.
7966 (vmlal_s16): Likewise.
7967 (vmlal_s32): Likewise.
7968 (vmlal_u8): Likewise.
7969 (vmlal_u16): Likewise.
7970 (vmlal_u32): Likewise.
7971 (vmlaq_n_f32): Likewise.
7972 (vmlaq_n_s16): Likewise.
7973 (vmlaq_n_s32): Likewise.
7974 (vmlaq_n_u16): Likewise.
7975 (vmlaq_n_u32): Likewise.
7976 (vmlaq_s8): Likewise.
7977 (vmlaq_s16): Likewise.
7978 (vmlaq_s32): Likewise.
7979 (vmlaq_u8): Likewise.
7980 (vmlaq_u16): Likewise.
7981 (vmlaq_u32): Likewise.
7982 (vmls_n_f32): Likewise.
7983 (vmls_n_s16): Likewise.
7984 (vmls_n_s32): Likewise.
7985 (vmls_n_u16): Likewise.
7986 (vmls_n_u32): Likewise.
7987 (vmls_s8): Likewise.
7988 (vmls_s16): Likewise.
7989 (vmls_s32): Likewise.
7990 (vmls_u8): Likewise.
7991 (vmls_u16): Likewise.
7992 (vmls_u32): Likewise.
7993 (vmlsl_high_n_s16): Likewise.
7994 (vmlsl_high_n_s32): Likewise.
7995 (vmlsl_high_n_u16): Likewise.
7996 (vmlsl_high_n_u32): Likewise.
7997 (vmlsl_high_s8): Likewise.
7998 (vmlsl_high_s16): Likewise.
7999 (vmlsl_high_s32): Likewise.
8000 (vmlsl_high_u8): Likewise.
8001 (vmlsl_high_u16): Likewise.
8002 (vmlsl_high_u32): Likewise.
8003 (vmlsl_n_s16): Likewise.
8004 (vmlsl_n_s32): Likewise.
8005 (vmlsl_n_u16): Likewise.
8006 (vmlsl_n_u32): Likewise.
8007 (vmlsl_s8): Likewise.
8008 (vmlsl_s16): Likewise.
8009 (vmlsl_s32): Likewise.
8010 (vmlsl_u8): Likewise.
8011 (vmlsl_u16): Likewise.
8012 (vmlsl_u32): Likewise.
8013 (vmlsq_n_f32): Likewise.
8014 (vmlsq_n_s16): Likewise.
8015 (vmlsq_n_s32): Likewise.
8016 (vmlsq_n_u16): Likewise.
8017 (vmlsq_n_u32): Likewise.
8018 (vmlsq_s8): Likewise.
8019 (vmlsq_s16): Likewise.
8020 (vmlsq_s32): Likewise.
8021 (vmlsq_u8): Likewise.
8022 (vmlsq_u16): Likewise.
8023 (vmlsq_u32): Likewise.
8024 (vmovl_high_s8): Likewise.
8025 (vmovl_high_s16): Likewise.
8026 (vmovl_high_s32): Likewise.
8027 (vmovl_high_u8): Likewise.
8028 (vmovl_high_u16): Likewise.
8029 (vmovl_high_u32): Likewise.
8030 (vmovl_s8): Likewise.
8031 (vmovl_s16): Likewise.
8032 (vmovl_s32): Likewise.
8033 (vmovl_u8): Likewise.
8034 (vmovl_u16): Likewise.
8035 (vmovl_u32): Likewise.
8036 (vmovn_high_s16): Likewise.
8037 (vmovn_high_s32): Likewise.
8038 (vmovn_high_s64): Likewise.
8039 (vmovn_high_u16): Likewise.
8040 (vmovn_high_u32): Likewise.
8041 (vmovn_high_u64): Likewise.
8042 (vmovn_s16): Likewise.
8043 (vmovn_s32): Likewise.
8044 (vmovn_s64): Likewise.
8045 (vmovn_u16): Likewise.
8046 (vmovn_u32): Likewise.
8047 (vmovn_u64): Likewise.
8048 (vmull_high_n_s16): Likewise.
8049 (vmull_high_n_s32): Likewise.
8050 (vmull_high_n_u16): Likewise.
8051 (vmull_high_n_u32): Likewise.
8052 (vmull_high_p8): Likewise.
8053 (vmull_high_s8): Likewise.
8054 (vmull_high_s16): Likewise.
8055 (vmull_high_s32): Likewise.
8056 (vmull_high_u8): Likewise.
8057 (vmull_high_u16): Likewise.
8058 (vmull_high_u32): Likewise.
8059 (vmull_n_s16): Likewise.
8060 (vmull_n_s32): Likewise.
8061 (vmull_n_u16): Likewise.
8062 (vmull_n_u32): Likewise.
8063 (vmull_p8): Likewise.
8064 (vmull_s8): Likewise.
8065 (vmull_s16): Likewise.
8066 (vmull_s32): Likewise.
8067 (vmull_u8): Likewise.
8068 (vmull_u16): Likewise.
8069 (vmull_u32): Likewise.
8070 (vpadal_s8): Likewise.
8071 (vpadal_s16): Likewise.
8072 (vpadal_s32): Likewise.
8073 (vpadal_u8): Likewise.
8074 (vpadal_u16): Likewise.
8075 (vpadal_u32): Likewise.
8076 (vpadalq_s8): Likewise.
8077 (vpadalq_s16): Likewise.
8078 (vpadalq_s32): Likewise.
8079 (vpadalq_u8): Likewise.
8080 (vpadalq_u16): Likewise.
8081 (vpadalq_u32): Likewise.
8082 (vpaddl_s8): Likewise.
8083 (vpaddl_s16): Likewise.
8084 (vpaddl_s32): Likewise.
8085 (vpaddl_u8): Likewise.
8086 (vpaddl_u16): Likewise.
8087 (vpaddl_u32): Likewise.
8088 (vpaddlq_s8): Likewise.
8089 (vpaddlq_s16): Likewise.
8090 (vpaddlq_s32): Likewise.
8091 (vpaddlq_u8): Likewise.
8092 (vpaddlq_u16): Likewise.
8093 (vpaddlq_u32): Likewise.
8094 (vpaddq_s8): Likewise.
8095 (vpaddq_s16): Likewise.
8096 (vpaddq_s32): Likewise.
8097 (vpaddq_s64): Likewise.
8098 (vpaddq_u8): Likewise.
8099 (vpaddq_u16): Likewise.
8100 (vpaddq_u32): Likewise.
8101 (vpaddq_u64): Likewise.
8102 (vqdmulh_n_s16): Likewise.
8103 (vqdmulh_n_s32): Likewise.
8104 (vqdmulhq_n_s16): Likewise.
8105 (vqdmulhq_n_s32): Likewise.
8106 (vqmovn_high_s16): Likewise.
8107 (vqmovn_high_s32): Likewise.
8108 (vqmovn_high_s64): Likewise.
8109 (vqmovn_high_u16): Likewise.
8110 (vqmovn_high_u32): Likewise.
8111 (vqmovn_high_u64): Likewise.
8112 (vqmovun_high_s16): Likewise.
8113 (vqmovun_high_s32): Likewise.
8114 (vqmovun_high_s64): Likewise.
8115 (vqrdmulh_n_s16): Likewise.
8116 (vqrdmulh_n_s32): Likewise.
8117 (vqrdmulhq_n_s16): Likewise.
8118 (vqrdmulhq_n_s32): Likewise.
8119 (vrsqrte_u32): Likewise.
8120 (vrsqrteq_u32): Likewise.
8121 (vtst_p8): Likewise.
8122 (vtst_p16): Likewise.
8123 (vtst_p64): Likewise.
8124 (vtstq_p8): Likewise.
8125 (vtstq_p16): Likewise.
8126 (vtstq_p64): Likewise.
8127 (vaddlv_s32): Likewise.
8128 (vaddlv_u32): Likewise.
8129 (vqtbl1_p8): Likewise.
8130 (vqtbl1_s8): Likewise.
8131 (vqtbl1_u8): Likewise.
8132 (vqtbl1q_p8): Likewise.
8133 (vqtbl1q_s8): Likewise.
8134 (vqtbl1q_u8): Likewise.
8135 (vqtbx1_s8): Likewise.
8136 (vqtbx1_u8): Likewise.
8137 (vqtbx1_p8): Likewise.
8138 (vqtbx1q_s8): Likewise.
8139 (vqtbx1q_u8): Likewise.
8140 (vqtbx1q_p8): Likewise.
8141 (vtbl1_s8): Likewise.
8142 (vtbl1_u8): Likewise.
8143 (vtbl1_p8): Likewise.
8144 (vtbl2_s8): Likewise.
8145 (vtbl2_u8): Likewise.
8146 (vtbl2_p8): Likewise.
8147 (vtbl3_s8): Likewise.
8148 (vtbl3_u8): Likewise.
8149 (vtbl3_p8): Likewise.
8150 (vtbl4_s8): Likewise.
8151 (vtbl4_u8): Likewise.
8152 (vtbl4_p8): Likewise.
8153 (vtbx2_s8): Likewise.
8154 (vtbx2_u8): Likewise.
8155 (vtbx2_p8): Likewise.
8156 (vld1_f32): Likewise.
8157 (vld1_f64): Likewise.
8158 (vld1_p8): Likewise.
8159 (vld1_p16): Likewise.
8160 (vld1_p64): Likewise.
8161 (vld1_s8): Likewise.
8162 (vld1_s16): Likewise.
8163 (vld1_s32): Likewise.
8164 (vld1_s64): Likewise.
8165 (vld1_u8): Likewise.
8166 (vld1_u16): Likewise.
8167 (vld1_u32): Likewise.
8168 (vld1_u64): Likewise.
8169 (vld1q_f32): Likewise.
8170 (vld1q_f64): Likewise.
8171 (vld1q_p8): Likewise.
8172 (vld1q_p16): Likewise.
8173 (vld1q_p64): Likewise.
8174 (vld1q_s8): Likewise.
8175 (vld1q_s16): Likewise.
8176 (vld1q_s32): Likewise.
8177 (vld1q_s64): Likewise.
8178 (vld1q_u8): Likewise.
8179 (vld1q_u16): Likewise.
8180 (vld1q_u32): Likewise.
8181 (vld1q_u64): Likewise.
8182 (vpmax_s8): Likewise.
8183 (vpmax_s16): Likewise.
8184 (vpmax_s32): Likewise.
8185 (vpmax_u8): Likewise.
8186 (vpmax_u16): Likewise.
8187 (vpmax_u32): Likewise.
8188 (vpmaxq_s8): Likewise.
8189 (vpmaxq_s16): Likewise.
8190 (vpmaxq_s32): Likewise.
8191 (vpmaxq_u8): Likewise.
8192 (vpmaxq_u16): Likewise.
8193 (vpmaxq_u32): Likewise.
8194 (vpmax_f32): Likewise.
8195 (vpmaxq_f32): Likewise.
8196 (vpmaxq_f64): Likewise.
8197 (vpmaxqd_f64): Likewise.
8198 (vpmaxs_f32): Likewise.
8199 (vpmaxnm_f32): Likewise.
8200 (vpmaxnmq_f32): Likewise.
8201 (vpmaxnmq_f64): Likewise.
8202 (vpmaxnmqd_f64): Likewise.
8203 (vpmaxnms_f32): Likewise.
8204 (vpmin_s8): Likewise.
8205 (vpmin_s16): Likewise.
8206 (vpmin_s32): Likewise.
8207 (vpmin_u8): Likewise.
8208 (vpmin_u16): Likewise.
8209 (vpmin_u32): Likewise.
8210 (vpminq_s8): Likewise.
8211 (vpminq_s16): Likewise.
8212 (vpminq_s32): Likewise.
8213 (vpminq_u8): Likewise.
8214 (vpminq_u16): Likewise.
8215 (vpminq_u32): Likewise.
8216 (vpmin_f32): Likewise.
8217 (vpminq_f32): Likewise.
8218 (vpminq_f64): Likewise.
8219 (vpminqd_f64): Likewise.
8220 (vpmins_f32): Likewise.
8221 (vpminnm_f32): Likewise.
8222 (vpminnmq_f32): Likewise.
8223 (vpminnmq_f64): Likewise.
8224 (vpminnmqd_f64): Likewise.
8225 (vpminnms_f32): Likewise.
8226 (vmla_f32): Likewise.
8227 (vmlaq_f32): Likewise.
8228 (vmlaq_f64): Likewise.
8229 (vmls_f32): Likewise.
8230 (vmlsq_f32): Likewise.
8231 (vmlsq_f64): Likewise.
8232 (vqtbl2_s8): Likewise.
8233 (vqtbl2_u8): Likewise.
8234 (vqtbl2_p8): Likewise.
8235 (vqtbl2q_s8): Likewise.
8236 (vqtbl2q_u8): Likewise.
8237 (vqtbl2q_p8): Likewise.
8238 (vqtbl3_s8): Likewise.
8239 (vqtbl3_u8): Likewise.
8240 (vqtbl3_p8): Likewise.
8241 (vqtbl3q_s8): Likewise.
8242 (vqtbl3q_u8): Likewise.
8243 (vqtbl3q_p8): Likewise.
8244 (vqtbl4_s8): Likewise.
8245 (vqtbl4_u8): Likewise.
8246 (vqtbl4_p8): Likewise.
8247 (vqtbl4q_s8): Likewise.
8248 (vqtbl4q_u8): Likewise.
8249 (vqtbl4q_p8): Likewise.
8250 (vqtbx2_s8): Likewise.
8251 (vqtbx2_u8): Likewise.
8252 (vqtbx2_p8): Likewise.
8253 (vqtbx2q_s8): Likewise.
8254 (vqtbx2q_u8): Likewise.
8255 (vqtbx2q_p8): Likewise.
8256 (vqtbx3_s8): Likewise.
8257 (vqtbx3_u8): Likewise.
8258 (vqtbx3_p8): Likewise.
8259 (vqtbx3q_s8): Likewise.
8260 (vqtbx3q_u8): Likewise.
8261 (vqtbx3q_p8): Likewise.
8262 (vqtbx4_s8): Likewise.
8263 (vqtbx4_u8): Likewise.
8264 (vqtbx4_p8): Likewise.
8265 (vqtbx4q_s8): Likewise.
8266 (vqtbx4q_u8): Likewise.
8267 (vqtbx4q_p8): Likewise.
8268 (vrev16_p8): Likewise.
8269 (vrev16_s8): Likewise.
8270 (vrev16_u8): Likewise.
8271 (vrev16q_p8): Likewise.
8272 (vrev16q_s8): Likewise.
8273 (vrev16q_u8): Likewise.
8274 (vrev32_p8): Likewise.
8275 (vrev32_p16): Likewise.
8276 (vrev32_s8): Likewise.
8277 (vrev32_s16): Likewise.
8278 (vrev32_u8): Likewise.
8279 (vrev32_u16): Likewise.
8280 (vrev32q_p8): Likewise.
8281 (vrev32q_p16): Likewise.
8282 (vrev32q_s8): Likewise.
8283 (vrev32q_s16): Likewise.
8284 (vrev32q_u8): Likewise.
8285 (vrev32q_u16): Likewise.
8286 (vrev64_f32): Likewise.
8287 (vrev64_p8): Likewise.
8288 (vrev64_p16): Likewise.
8289 (vrev64_s8): Likewise.
8290 (vrev64_s16): Likewise.
8291 (vrev64_s32): Likewise.
8292 (vrev64_u8): Likewise.
8293 (vrev64_u16): Likewise.
8294 (vrev64_u32): Likewise.
8295 (vrev64q_f32): Likewise.
8296 (vrev64q_p8): Likewise.
8297 (vrev64q_p16): Likewise.
8298 (vrev64q_s8): Likewise.
8299 (vrev64q_s16): Likewise.
8300 (vrev64q_s32): Likewise.
8301 (vrev64q_u8): Likewise.
8302 (vrev64q_u16): Likewise.
8303 (vrev64q_u32): Likewise.
8304 (vsha1cq_u32): Likewise.
8305 (vsha1mq_u32): Likewise.
8306 (vsha1pq_u32): Likewise.
8307 (vsha1h_u32): Likewise.
8308 (vsha1su0q_u32): Likewise.
8309 (vsha1su1q_u32): Likewise.
8310 (vsha256hq_u32): Likewise.
8311 (vsha256h2q_u32): Likewise.
8312 (vsha256su0q_u32): Likewise.
8313 (vsha256su1q_u32): Likewise.
8314 (vmull_p64): Likewise.
8315 (vmull_high_p64): Likewise.
8316 (vsqrt_f32): Likewise.
8317 (vsqrtq_f32): Likewise.
8318 (vsqrt_f64): Likewise.
8319 (vsqrtq_f64): Likewise.
8320 (vst1_f32): Likewise.
8321 (vst1_f64): Likewise.
8322 (vst1_p8): Likewise.
8323 (vst1_p16): Likewise.
8324 (vst1_p64): Likewise.
8325 (vst1_s8): Likewise.
8326 (vst1_s16): Likewise.
8327 (vst1_s32): Likewise.
8328 (vst1_s64): Likewise.
8329 (vst1_u8): Likewise.
8330 (vst1_u16): Likewise.
8331 (vst1_u32): Likewise.
8332 (vst1_u64): Likewise.
8333 (vst1q_f32): Likewise.
8334 (vst1q_f64): Likewise.
8335 (vst1q_p8): Likewise.
8336 (vst1q_p16): Likewise.
8337 (vst1q_p64): Likewise.
8338 (vst1q_s8): Likewise.
8339 (vst1q_s16): Likewise.
8340 (vst1q_s32): Likewise.
8341 (vst1q_s64): Likewise.
8342 (vst1q_u8): Likewise.
8343 (vst1q_u16): Likewise.
8344 (vst1q_u32): Likewise.
8345 (vst1q_u64): Likewise.
8346 (vst1_s64_x2): Likewise.
8347 (vst1_u64_x2): Likewise.
8348 (vst1_f64_x2): Likewise.
8349 (vst1_s8_x2): Likewise.
8350 (vst1_p8_x2): Likewise.
8351 (vst1_s16_x2): Likewise.
8352 (vst1_p16_x2): Likewise.
8353 (vst1_s32_x2): Likewise.
8354 (vst1_u8_x2): Likewise.
8355 (vst1_u16_x2): Likewise.
8356 (vst1_u32_x2): Likewise.
8357 (vst1_f16_x2): Likewise.
8358 (vst1_f32_x2): Likewise.
8359 (vst1_p64_x2): Likewise.
8360 (vst1q_s8_x2): Likewise.
8361 (vst1q_p8_x2): Likewise.
8362 (vst1q_s16_x2): Likewise.
8363 (vst1q_p16_x2): Likewise.
8364 (vst1q_s32_x2): Likewise.
8365 (vst1q_s64_x2): Likewise.
8366 (vst1q_u8_x2): Likewise.
8367 (vst1q_u16_x2): Likewise.
8368 (vst1q_u32_x2): Likewise.
8369 (vst1q_u64_x2): Likewise.
8370 (vst1q_f16_x2): Likewise.
8371 (vst1q_f32_x2): Likewise.
8372 (vst1q_f64_x2): Likewise.
8373 (vst1q_p64_x2): Likewise.
8374 (vst1_s64_x3): Likewise.
8375 (vst1_u64_x3): Likewise.
8376 (vst1_f64_x3): Likewise.
8377 (vst1_s8_x3): Likewise.
8378 (vst1_p8_x3): Likewise.
8379 (vst1_s16_x3): Likewise.
8380 (vst1_p16_x3): Likewise.
8381 (vst1_s32_x3): Likewise.
8382 (vst1_u8_x3): Likewise.
8383 (vst1_u16_x3): Likewise.
8384 (vst1_u32_x3): Likewise.
8385 (vst1_f16_x3): Likewise.
8386 (vst1_f32_x3): Likewise.
8387 (vst1_p64_x3): Likewise.
8388 (vst1q_s8_x3): Likewise.
8389 (vst1q_p8_x3): Likewise.
8390 (vst1q_s16_x3): Likewise.
8391 (vst1q_p16_x3): Likewise.
8392 (vst1q_s32_x3): Likewise.
8393 (vst1q_s64_x3): Likewise.
8394 (vst1q_u8_x3): Likewise.
8395 (vst1q_u16_x3): Likewise.
8396 (vst1q_u32_x3): Likewise.
8397 (vst1q_u64_x3): Likewise.
8398 (vst1q_f16_x3): Likewise.
8399 (vst1q_f32_x3): Likewise.
8400 (vst1q_f64_x3): Likewise.
8401 (vst1q_p64_x3): Likewise.
8402 (vst2_s64): Likewise.
8403 (vst2_u64): Likewise.
8404 (vst2_f64): Likewise.
8405 (vst2_s8): Likewise.
8406 (vst2_p8): Likewise.
8407 (vst2_s16): Likewise.
8408 (vst2_p16): Likewise.
8409 (vst2_s32): Likewise.
8410 (vst2_u8): Likewise.
8411 (vst2_u16): Likewise.
8412 (vst2_u32): Likewise.
8413 (vst2_f16): Likewise.
8414 (vst2_f32): Likewise.
8415 (vst2_p64): Likewise.
8416 (vst2q_s8): Likewise.
8417 (vst2q_p8): Likewise.
8418 (vst2q_s16): Likewise.
8419 (vst2q_p16): Likewise.
8420 (vst2q_s32): Likewise.
8421 (vst2q_s64): Likewise.
8422 (vst2q_u8): Likewise.
8423 (vst2q_u16): Likewise.
8424 (vst2q_u32): Likewise.
8425 (vst2q_u64): Likewise.
8426 (vst2q_f16): Likewise.
8427 (vst2q_f32): Likewise.
8428 (vst2q_f64): Likewise.
8429 (vst2q_p64): Likewise.
8430 (vst3_s64): Likewise.
8431 (vst3_u64): Likewise.
8432 (vst3_f64): Likewise.
8433 (vst3_s8): Likewise.
8434 (vst3_p8): Likewise.
8435 (vst3_s16): Likewise.
8436 (vst3_p16): Likewise.
8437 (vst3_s32): Likewise.
8438 (vst3_u8): Likewise.
8439 (vst3_u16): Likewise.
8440 (vst3_u32): Likewise.
8441 (vst3_f16): Likewise.
8442 (vst3_f32): Likewise.
8443 (vst3_p64): Likewise.
8444 (vst3q_s8): Likewise.
8445 (vst3q_p8): Likewise.
8446 (vst3q_s16): Likewise.
8447 (vst3q_p16): Likewise.
8448 (vst3q_s32): Likewise.
8449 (vst3q_s64): Likewise.
8450 (vst3q_u8): Likewise.
8451 (vst3q_u16): Likewise.
8452 (vst3q_u32): Likewise.
8453 (vst3q_u64): Likewise.
8454 (vst3q_f16): Likewise.
8455 (vst3q_f32): Likewise.
8456 (vst3q_f64): Likewise.
8457 (vst3q_p64): Likewise.
8458 (vst4_s64): Likewise.
8459 (vst4_u64): Likewise.
8460 (vst4_f64): Likewise.
8461 (vst4_s8): Likewise.
8462 (vst4_p8): Likewise.
8463 (vst4_s16): Likewise.
8464 (vst4_p16): Likewise.
8465 (vst4_s32): Likewise.
8466 (vst4_u8): Likewise.
8467 (vst4_u16): Likewise.
8468 (vst4_u32): Likewise.
8469 (vst4_f16): Likewise.
8470 (vst4_f32): Likewise.
8471 (vst4_p64): Likewise.
8472 (vst4q_s8): Likewise.
8473 (vst4q_p8): Likewise.
8474 (vst4q_s16): Likewise.
8475 (vst4q_p16): Likewise.
8476 (vst4q_s32): Likewise.
8477 (vst4q_s64): Likewise.
8478 (vst4q_u8): Likewise.
8479 (vst4q_u16): Likewise.
8480 (vst4q_u32): Likewise.
8481 (vst4q_u64): Likewise.
8482 (vst4q_f16): Likewise.
8483 (vst4q_f32): Likewise.
8484 (vst4q_f64): Likewise.
8485 (vst4q_p64): Likewise.
8486 (vtbx4_s8): Likewise.
8487 (vtbx4_u8): Likewise.
8488 (vtbx4_p8): Likewise.
8489 (vtrn_f32): Likewise.
8490 (vtrn_p8): Likewise.
8491 (vtrn_p16): Likewise.
8492 (vtrn_s8): Likewise.
8493 (vtrn_s16): Likewise.
8494 (vtrn_s32): Likewise.
8495 (vtrn_u8): Likewise.
8496 (vtrn_u16): Likewise.
8497 (vtrn_u32): Likewise.
8498 (vtrnq_f32): Likewise.
8499 (vtrnq_p8): Likewise.
8500 (vtrnq_p16): Likewise.
8501 (vtrnq_s8): Likewise.
8502 (vtrnq_s16): Likewise.
8503 (vtrnq_s32): Likewise.
8504 (vtrnq_u8): Likewise.
8505 (vtrnq_u16): Likewise.
8506 (vtrnq_u32): Likewise.
8507 (vrsqrte_f16): Likewise.
8508 (vrsqrteq_f16): Likewise.
8509 (vsqrt_f16): Likewise.
8510 (vsqrtq_f16): Likewise.
8511 (vabd_f16): Likewise.
8512 (vabdq_f16): Likewise.
8513 (vpadd_f16): Likewise.
8514 (vpaddq_f16): Likewise.
8515 (vpmax_f16): Likewise.
8516 (vpmaxq_f16): Likewise.
8517 (vpmaxnm_f16): Likewise.
8518 (vpmaxnmq_f16): Likewise.
8519 (vpmin_f16): Likewise.
8520 (vpminq_f16): Likewise.
8521 (vpminnm_f16): Likewise.
8522 (vpminnmq_f16): Likewise.
8523 (vrsqrts_f16): Likewise.
8524 (vrsqrtsq_f16): Likewise.
8525
8526 2019-09-25 Richard Biener <rguenther@suse.de>
8527
8528 PR tree-optimization/91896
8529 * tree-vect-loop.c (vectorizable_reduction): The single
8530 def-use cycle optimization cannot apply when there's more
8531 than one pattern stmt involved.
8532
8533 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
8534
8535 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
8536 the 'P' mode iterator, replacing the (removed) SI and DI variants.
8537 (reload_macho_picbase_<mode>): Likewise.
8538
8539 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
8540
8541 * config/rs6000/rs6000.md: Move darwin.md include until
8542 after the definition of the mode iterators.
8543
8544 2019-09-23 Martin Sebor <msebor@redhat.com>
8545
8546 PR tree-optimization/91570
8547 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
8548 non-constant minlen, maxlen and maxbound.
8549
8550 2019-09-24 Richard Biener <rguenther@suse.de>
8551
8552 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
8553 Rename to...
8554 (_stmt_vec_info::cond_reduc_code): ... this.
8555 (_stmt_vec_info::induc_cond_initial_val): Add.
8556 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
8557 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
8558 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
8559 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
8560 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
8561 the reduction code.
8562 (vect_create_epilog_for_reduction): Drop special
8563 induction condition reduction params, pass in reduction code
8564 and simplify.
8565 (vectorizable_reduction): Perform condition reduction kind
8566 selection only at analysis time. Adjust passing on state.
8567
8568 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8569
8570 * config/aarch64/aarch64.md (mov<mode>): Don't call
8571 aarch64_split_dimode_const_store on volatile MEM.
8572
8573 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
8574
8575 * config/aarch64/aarch64-option-extensions.def (fp16fml):
8576 Update hwcap string for fp16fml.
8577
8578 2019-09-24 Jakub Jelinek <jakub@redhat.com>
8579
8580 PR middle-end/91866
8581 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
8582 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
8583
8584 2019-09-24 Martin Liska <mliska@suse.cz>
8585
8586 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
8587 instead of if-elseif-elseif-...
8588 * gimple-expr.c (extract_ops_from_tree): Likewise.
8589 * gimple.c (get_gimple_rhs_num_ops): Likewise.
8590 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
8591
8592 2019-09-24 Martin Jambor <mjambor@suse.cz>
8593
8594 PR ipa/91831
8595 * ipa-param-manipulation.c (carry_over_param): Make a method of
8596 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
8597 in case of a context mismatch.
8598 (ipa_param_body_adjustments::common_initialization): Adjust call to
8599 carry_over_param.
8600 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
8601 private method carry_over_param.
8602
8603 2019-09-24 Martin Jambor <mjambor@suse.cz>
8604
8605 PR ipa/91832
8606 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
8607
8608 2019-09-24 Richard Biener <rguenther@suse.de>
8609
8610 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
8611 base.
8612
8613 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8614
8615 * config/arm/t-arm (arm-builtins.o): Add dependency on
8616 arm_acle_builtins.def.
8617
8618 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
8619
8620 PR target/91823
8621 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
8622 canonical CONST_INTs. Use gen_rtvec.
8623
8624 2019-09-23 Richard Biener <rguenther@suse.de>
8625
8626 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
8627 avoid adjusting by + 0 or * 1.
8628 (vect_create_epilog_for_reduction): Get reduction code only
8629 when necessary. Deal with adjustment_def only when necessary.
8630
8631 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
8632
8633 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
8634 memmodel index.
8635
8636 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8637
8638 PR ipa/91835
8639 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
8640 "ipa-sra".
8641
8642 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
8643
8644 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
8645 code. Merge code blocks with common conditionals. Use declared
8646 macro instead of a magic number for PIC level.
8647
8648 2019-09-21 Martin Sebor <msebor@redhat.com>
8649
8650 PR middle-end/91830
8651 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
8652 Simplify computation of the offset of the referenced subobject.
8653
8654 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
8655
8656 * config/darwin.c (machopic_legitimize_pic_address): Check
8657 for lra not reload.
8658
8659 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
8660
8661 * ira-conflicts.c (can_use_same_reg_p): New function.
8662 (process_reg_shuffles): Take an insn parameter. Ignore cases
8663 in which input operand op_num could seemingly never be allocated
8664 to the same register as the destination.
8665 (add_insn_allocno_copies): Update call to process_reg_shuffles.
8666
8667 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
8668
8669 * simplify-rtx.c (neg_const_int): Replace with...
8670 (neg_poly_int_rtx): ...this new function.
8671 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
8672 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
8673 (simplify_plus_minus): Likewise for constant terms here.
8674
8675 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
8676
8677 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
8678 HOST_WIDE_PRINT_UNSIGNED.
8679
8680 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
8681
8682 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
8683 character.
8684
8685 2019-09-20 Maya Rashish <coypu@sdf.org>
8686
8687 PR target/86811
8688 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
8689 Define to speculation_safe_value_not_needed.
8690
8691 2019-09-20 Richard Biener <rguenther@suse.de>
8692 Uros Bizjak <ubizjak@gmail.com>
8693
8694 PR target/91814
8695 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
8696 previous change.
8697 (general_scalar_chain::convert_op): Force not suitable memory
8698 operands to a register.
8699
8700 2019-09-20 Richard Biener <rguenther@suse.de>
8701
8702 PR tree-optimization/91821
8703 * tree-vect-loop.c (check_reduction_path): Check we can compute
8704 reduc_idx.
8705 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
8706 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
8707 operands in canonical order.
8708 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
8709 STMT_VINFO_REDUC_IDX.
8710 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
8711 (STMT_VINFO_REDUC_IDX): Likewise.
8712
8713 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
8714
8715 PR target/91269
8716 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8717
8718 2019-09-20 Richard Biener <rguenther@suse.de>
8719
8720 PR tree-optimization/91822
8721 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
8722 parameter.
8723 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
8724 for reduc_index in nested cycles, adjust vectorizable_condition
8725 calls.
8726 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
8727 parameter.
8728 (vect_analyze_stmt): Adjust.
8729 (vect_transform_stmt): Likewise.
8730
8731 2019-09-20 Richard Biener <rguenther@suse.de>
8732
8733 PR target/91767
8734 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
8735 Ensure there's a sequence point between allocating the new register
8736 and passing a reference to a reg via regno_reg_rtx.
8737
8738 2019-09-20 Martin Jambor <mjambor@suse.cz>
8739
8740 * coretypes.h (cgraph_edge): Declare.
8741 * ipa-param-manipulation.c: Rewrite.
8742 * ipa-param-manipulation.h: Likewise.
8743 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
8744 (OBJS): Added ipa-sra.o.
8745 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
8746 and ref_p, added fields param_adjustments and performed_splits.
8747 (struct cgraph_clone_info): Remove ags_to_skip and
8748 combined_args_to_skip, new field param_adjustments.
8749 (cgraph_node::create_clone): Changed parameters to use
8750 ipa_param_adjustments.
8751 (cgraph_node::create_virtual_clone): Likewise.
8752 (cgraph_node::create_virtual_clone_with_body): Likewise.
8753 (tree_function_versioning): Likewise.
8754 (cgraph_build_function_type_skip_args): Removed.
8755 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
8756 using ipa_param_adjustments.
8757 (clone_of_p): Likewise.
8758 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
8759 (build_function_decl_skip_args): Likewise.
8760 (duplicate_thunk_for_node): Adjust parameters using
8761 ipa_param_body_adjustments, copy param_adjustments instead of
8762 args_to_skip.
8763 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
8764 (cgraph_node::create_virtual_clone): Likewise.
8765 (cgraph_node::create_version_clone_with_body): Likewise.
8766 (cgraph_materialize_clone): Likewise.
8767 (symbol_table::materialize_all_clones): Likewise.
8768 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
8769 ipa_replace_map check.
8770 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
8771 (initialize_node_lattices): Make aware that some parameters might have
8772 already been removed.
8773 (want_remove_some_param_p): New function.
8774 (create_specialized_node): Convert to using ipa_param_adjustments and
8775 deal with possibly pre-existing adjustments.
8776 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
8777 (output_node_opt_summary): Do not stream removed fields. Stream
8778 parameter adjustments instead of argumetns to skip.
8779 (input_node_opt_summary): Likewise.
8780 (input_node_opt_summary): Likewise.
8781 * lto-section-in.c (lto_section_name): Added ipa-sra section.
8782 * lto-streamer.h (lto_section_type): Likewise.
8783 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
8784 param_body_adjs.
8785 (copy_decl_to_var): Declare.
8786 * tree-inline.c (update_clone_info): Do not remap old_tree.
8787 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
8788 statements, walk all extra generated statements and remap their
8789 operands.
8790 (redirect_all_calls): Add killed SSA names to a hash set.
8791 (remap_ssa_name): Do not remap killed SSA names.
8792 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
8793 half of functionality moved to ipa_param_body_adjustments.
8794 (copy_decl_to_var): Make exported.
8795 (copy_body): Destroy killed_new_ssa_names hash set.
8796 (expand_call_inline): Remap performed splits.
8797 (update_clone_info): Likewise.
8798 (tree_function_versioning): Simplify tree_map processing. Updated to
8799 accept ipa_param_adjustments and use ipa_param_body_adjustments.
8800 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
8801 for the new interface.
8802 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
8803 (simd_clone_compute_base_data_type): Likewise.
8804 (simd_clone_init_simd_arrays): Adjust for the new interface.
8805 (simd_clone_adjust_argument_types): Likewise.
8806 (struct modify_stmt_info): Likewise.
8807 (ipa_simd_modify_stmt_ops): Likewise.
8808 (ipa_simd_modify_function_body): Likewise.
8809 (simd_clone_adjust): Likewise.
8810 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
8811 (type_internals_preclude_sra_p): Make public.
8812 * tree-sra.h: New file.
8813 * ipa-inline-transform.c (save_inline_function_body): Update to
8814 refelct new tree_function_versioning signature.
8815 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
8816 ipa_param_adjustments to get current parameter indices.
8817 (ipcp_modif_dom_walker::before_dom_children): Likewise.
8818 (ipcp_update_bits): Likewise.
8819 (ipcp_update_vr): Likewise.
8820 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
8821 * ipa-sra.c: New file.
8822 * multiple_target.c (create_target_clone): Update to reflet new type
8823 of create_version_clone_with_body.
8824 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
8825 tree_function_versioning.
8826 (modify_function): Update to reflect new type of
8827 tree_function_versioning.
8828 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
8829 * passes.def: Remove old IPA-SRA and add new one.
8830 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
8831 (make_pass_ipa_sra): Declare.
8832 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
8833 ipa_sra_retvalues.
8834 * doc/invoke.texi (ipa-sra-max-replacements): New.
8835
8836 2019-09-19 Martin Sebor <msebor@redhat.com>
8837
8838 PR middle-end/91631
8839 * builtins.c (component_size): Correct trailing array computation,
8840 rename to component_ref_size and move...
8841 (compute_objsize): Adjust.
8842 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
8843 (builtin_access::strict): Do not consider memmove.
8844 (builtin_access::write_off): New function.
8845 (builtin_memref::builtin_memref): Initialize refsize.
8846 (builtin_memref::set_base_and_offset): Adjust refoff and compute
8847 refsize.
8848 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
8849 Handle refsize.
8850 (builtin_access::builtin_access): Initialize dstoff to destination
8851 refeence offset here instead of in maybe_diag_overlap. Adjust
8852 referencess even to unrelated objects. Adjust sizrange of bounded
8853 string functions to reflect bound. For strcat, adjust destination
8854 sizrange by that of source.
8855 (builtin_access::strcat_overlap): Adjust offsets and sizes
8856 to reflect the increase in destination sizrange above.
8857 (builtin_access::overlap): Do not set dstoff here but instead
8858 in builtin_access::builtin_access.
8859 (check_bounds_or_overlap): Use builtin_access::write_off.
8860 (maybe_diag_access_bounds): Add argument. Add informational notes.
8861 (dump_builtin_memref, dump_builtin_access): New functions.
8862 * tree.c (component_ref_size): ...to here.
8863 * tree.h (component_ref_size): Declare.
8864 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
8865 nul in the size of the source string.
8866
8867 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
8868
8869 PR c/67224
8870 * doc/cpp.texi: Document support for extended characters in
8871 identifiers.
8872 * doc/cppopts.texi: Likewise.
8873
8874 2019-09-19 Richard Biener <rguenther@suse.de>
8875
8876 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
8877 (check_reduction_path): New overload having the path as result.
8878 (vect_is_simple_reduction): From the detected reduction
8879 path build a SLP reduction chain if possible.
8880
8881 2019-09-19 Richard Biener <rguenther@suse.de>
8882
8883 PR target/91814
8884 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
8885 Force operand to a register if it isn't nonimmediate_operand.
8886
8887 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
8888
8889 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
8890 * config/arm/iterators.md (optab): Add and, ior, xor entries.
8891 (logical_op): Remove code attribute.
8892 (logical_OP): Likewise.
8893
8894 2019-09-19 Martin Liska <mliska@suse.cz>
8895
8896 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
8897 Use proper casting.
8898
8899 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
8900
8901 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
8902 registers with %R.
8903
8904 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
8905 for NE comparison of TImode values.
8906 (aarch64_emit_load_exclusive): Add support for TImode.
8907 (aarch64_emit_store_exclusive): Likewise.
8908 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
8909 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
8910 Change iterator from ALLI to ALLI_TI.
8911 (@atomic_compare_and_swap<JUST_TI>): New.
8912 (@atomic_compare_and_swap<JUST_TI>_lse): New.
8913 (aarch64_load_exclusive_pair): New.
8914 (aarch64_store_exclusive_pair): New.
8915 * config/aarch64/iterators.md (JUST_TI): New.
8916
8917 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
8918 strong_zero_p for aarch64_track_speculation; unify some code paths;
8919 use aarch64_gen_compare_reg instead of open-coding.
8920
8921 * config/aarch64/aarch64.opt (-moutline-atomics): New.
8922 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
8923 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
8924 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
8925 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
8926 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
8927 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
8928 (atomic_<atomic_op><ALLI>): Likewise.
8929 (atomic_fetch_<atomic_op><ALLI>): Likewise.
8930 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
8931 * doc/invoke.texi: Document -moutline-atomics.
8932
8933 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
8934
8935 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
8936 trivial predicate for condition branch.
8937 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
8938 for switch case.
8939 (compute_bb_predicates): Update predicate based on post-dominating
8940 relationship.
8941 (analyze_function_body): Calculate post-dominating information.
8942
8943 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
8944
8945 * tree-vectorizer.h (vectorizable_condition): Take an int
8946 reduction index instead of a boolean flag.
8947 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8948 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
8949 reductions if the reduction accumulator is the "then" rather
8950 than the "else" value.
8951 (vect_analyze_stmt): Update call accordingly.
8952 (vect_transform_stmt): Likewise.
8953 * tree-vect-loop.c (vectorizable_reduction): Likewise,
8954 asserting that the index is > 0.
8955
8956 2019-09-19 Martin Liska <mliska@suse.cz>
8957
8958 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
8959 (sort_congruence_classes_by_decl_uid): Likewise.
8960 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
8961 easier sorting.
8962 (sem_item_optimizer::merge_classes): Likewise.
8963
8964 2019-09-19 Richard Biener <rguenther@suse.de>
8965
8966 PR tree-optimization/91812
8967 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
8968 volatile loads.
8969
8970 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
8971
8972 * defaults.h (TARGET_UNIT): New macro.
8973 (target_unit): New type.
8974 * rtl.h (native_encode_rtx, native_decode_rtx)
8975 (native_decode_vector_rtx, subreg_size_lsb): Declare.
8976 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
8977 * rtlanal.c (subreg_lsb_1): Delete.
8978 (subreg_size_lsb): New function.
8979 * simplify-rtx.c: Include rtx-vector-builder.h
8980 (simplify_immed_subreg): Delete.
8981 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
8982 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
8983 functions.
8984 (simplify_subreg): Use them.
8985 (test_vector_subregs_modes, test_vector_subregs_repeating)
8986 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
8987 (test_vector_subregs): New functions.
8988 (test_vector_ops): Call test_vector_subregs for integer vector
8989 modes with at least 2 elements.
8990
8991 2019-09-19 Richard Biener <rguenther@suse.de>
8992
8993 * tree-parloops.c (parloops_is_slp_reduction): Do not set
8994 LOOP_VINFO_OPERANDS_SWAPPED.
8995 (parloops_is_simple_reduction): Likewise.
8996 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
8997 initialize operands_swapped.
8998 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
8999 (vect_is_slp_reduction): Do not swap operands.
9000 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
9001 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
9002
9003 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
9004
9005 PR target/87007
9006 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
9007 Add avx_partial_xmm_update.
9008
9009 2019-09-18 Jim Wilson <jimw@sifive.com>
9010
9011 PR target/91683
9012 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
9013 (riscv_move_integer): Likewise.
9014 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
9015 riscv_move_integer arg.
9016 (riscv_legitimize_move): Likewise.
9017 (riscv_force_temporary): New parameter in_splitter. Don't call
9018 force_reg if true.
9019 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
9020 arg.
9021 (riscv_add_offset): Likewise.
9022 (riscv_split_symbol): New parameter in_splitter. Pass to
9023 riscv_force_temporary.
9024 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
9025 arg.
9026 (riscv_move_integer): New parameter in_splitter. New local
9027 can_create_psuedo. Don't call riscv_split_integer or force_reg when
9028 in_splitter TRUE.
9029 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
9030 riscv_split_symbol, and riscv_force_temporary args.
9031 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
9032 riscv_move_integer arg.
9033 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
9034
9035 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
9036
9037 PR target/90878
9038 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
9039 hard register store cost to 6.
9040
9041 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
9042
9043 PR target/91446
9044 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
9045 pseudo register store cost from 3 to 6 to make it the same as
9046 QImode and HImode.
9047
9048 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9049
9050 PR target/91738
9051 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
9052 (one_cmpldi2): Likewise.
9053 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
9054 of the constant parts is simple.
9055 * config/arm/iterators.md (LOGICAL): Add new code iterator.
9056 (logical_op): Add new code attribute.
9057 (logical_OP): Likewise.
9058 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
9059 (arm_iordi_operand): Add predicate.
9060 (arm_xordi_operand): Add predicate.
9061
9062 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9063
9064 * config/arm/arm.md (maddsidi4): Remove expander.
9065 (mulsidi3adddi): Remove pattern.
9066 (mulsidi3adddi_v6): Likewise.
9067 (mulsidi3_nov6): Likewise.
9068 (mulsidi3_v6): Likewise.
9069 (umulsidi3): Remove expander.
9070 (umulsidi3_nov6): Remove pattern.
9071 (umulsidi3_v6): Likewise.
9072 (umulsidi3adddi): Likewise.
9073 (umulsidi3adddi_v6): Likewise.
9074 (<Us>mulsidi3): Add combined expander.
9075 (<Us>maddsidi4): Likewise.
9076 (<US>mull): Add combined umull and smull pattern.
9077 (<US>mlal): Likewise.
9078 * config/arm/iterators.md (Us): Add new iterator.
9079
9080 2019-09-18 Richard Biener <rguenther@suse.de>
9081
9082 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
9083 swapping.
9084 (vectorize_fold_left_reduction): Remove assert.
9085 (vectorizable_reduction): Also expect COND_EXPR non-reduction
9086 operand in position 2. Remove assert.
9087
9088 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9089
9090 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
9091 (smulsi3_highpart_nov6): Remove pattern.
9092 (smulsi3_highpart_v6): Likewise.
9093 (umulsi3_highpart): Likewise.
9094 (umulsi3_highpart_nov6): Likewise.
9095 (umulsi3_highpart_v6): Likewise.
9096 (<US>mull_high): Add new combined multiply pattern.
9097
9098 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9099
9100 * config/arm/arm.md (arm_mulsi3): Remove pattern.
9101 (arm_mulsi3_v6): Likewise.
9102 (mulsi3addsi_v6): Likewise.
9103 (mulsi3subsi): Likewise.
9104 (mul): Add new multiply pattern.
9105 (mla): Likewise.
9106 (mls): Likewise.
9107
9108 2019-09-18 Richard Biener <rguenther@suse.de>
9109
9110 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
9111 (parloops_valid_reduction_input_p): Copy from
9112 valid_reduction_input_p.
9113 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
9114 (parloops_needs_fold_left_reduction_p): Copy from
9115 needs_fold_left_reduction_p.
9116 (parloops_is_simple_reduction): Copy from
9117 vect_is_simple_reduction.
9118 (parloops_force_simple_reduction): Copy from
9119 vect_force_simple_reduction.
9120 (gather_scalar_reductions): Adjust.
9121 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
9122 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
9123
9124 2019-09-18 Richard Biener <rguenther@suse.de>
9125
9126 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
9127 * tree-vect-loop.c (get_initial_def_for_reduction): Make
9128 static.
9129 (vect_create_epilog_for_reduction): Remove dead code.
9130
9131 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9132
9133 * varasm.c (assemble_real): Generate canonical const_ints.
9134
9135 2019-09-18 Richard Biener <rguenther@suse.de>
9136
9137 PR lto/91763
9138 * lto-streamer-in.c (input_eh_regions): Move EH init to
9139 lto_materialize_function.
9140 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
9141 Likewise.
9142
9143 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9144
9145 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
9146 are INTEGER_CSTs.
9147
9148 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9149
9150 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
9151 of checking specifically for INTEGER_CST.
9152
9153 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9154
9155 * stor-layout.c (compute_record_mode): Operate on poly_uint64
9156 sizes instead of uhwi sizes.
9157
9158 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9159
9160 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
9161 (add_const_value_attribute): Handle CONST_POLY_INT.
9162
9163 2019-09-18 Martin Liska <mliska@suse.cz>
9164
9165 * dbgcnt.def (store_merging): New counter.
9166 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
9167 Use it in store merging.
9168
9169 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9170
9171 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
9172 function.
9173 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
9174 * config/arm/arm.c (arm_sched_variable_issue): New function.
9175 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
9176
9177 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9178
9179 * config/arm/types.md (no_reservation): New reservation.
9180 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
9181 no_insn here.
9182 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
9183 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
9184 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
9185 * config/arm/arm1020e.md (1020alu_op): Likewise.
9186 * config/arm/arm1026ejs.md (alu_op): Likewise.
9187 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9188 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9189 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9190 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
9191 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9192 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9193 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
9194 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
9195 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9196 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9197 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9198 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
9199 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
9200 * config/arm/fa526.md (526_alu_op): Likewise.
9201 * config/arm/fa606te.md (606te_alu_op): Likewise.
9202 * config/arm/fa626te.md (626te_alu_op): Likewise.
9203 * config/arm/fa726te.md (726te_alu_op): Likewise.
9204 * config/arm/xgene1.md (xgene1_nop): Likewise.
9205
9206 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9207
9208 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
9209 "no_insn" to "branch".
9210
9211 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9212
9213 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
9214
9215 2019-09-17 Richard Biener <rguenther@suse.de>
9216
9217 PR debug/91772
9218 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
9219 was missing generate locations only once.
9220
9221 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
9222
9223 PR ipa/91089
9224 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
9225 option.
9226 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
9227 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
9228 for switch default case using range analysis information.
9229
9230 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
9231
9232 PR target/91749
9233 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
9234 mode attributed is supported by FDPIC.
9235
9236 2019-09-17 Richard Biener <rguenther@suse.de>
9237
9238 PR tree-optimization/91790
9239 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
9240 use the correct DR for setting up realignment.
9241
9242 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
9243
9244 PR target/91719
9245 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
9246 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
9247 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
9248 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
9249
9250 2019-09-16 Jason Merrill <jason@redhat.com>
9251
9252 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
9253
9254 2019-09-16 Martin Liska <mliska@suse.cz>
9255
9256 * gimple-fold.c (or_comparisons_1): Remove rules moved
9257 to ...
9258 * match.pd: ... here.
9259
9260 2019-09-16 Martin Liska <mliska@suse.cz>
9261
9262 * gimple-fold.c (or_comparisons_1): Remove rules
9263 moved to ...
9264 * match.pd: ... here.
9265
9266 2019-09-16 Martin Liska <mliska@suse.cz>
9267
9268 * genmatch.c (dt_node::append_simplify): Do not print
9269 warning when we have duplicate patterns belonging
9270 to a same simplify rule.
9271 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
9272 (maybe_fold_comparisons_from_match_pd): Handle
9273 tcc_comparison as a results.
9274 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
9275
9276 2019-09-16 Li Jia He <helijia@linux.ibm.com>
9277 Qi Feng <ffengqi@linux.ibm.com>
9278
9279 PR middle-end/88784
9280 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
9281 (x > y && x == XXX_MIN): Optimize into 'false'.
9282 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
9283 (x < y && x != XXX_MAX): Optimize into 'x < y'.
9284 (x < y && x == XXX_MAX): Optimize into 'false'.
9285 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
9286 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
9287 (x <= y || x != XXX_MIN): Optimize into 'true'.
9288 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
9289 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
9290 (x >= y || x != XXX_MAX): Optimize into 'true'.
9291 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
9292
9293 2019-09-16 Li Jia He <helijia@linux.ibm.com>
9294 Martin Liska <mliska@suse.cz>
9295
9296 * gimple-fold.c (and_comparisons_1): Add type as first
9297 argument.
9298 (and_var_with_comparison): Likewise.
9299 (and_var_with_comparison_1): Likewise.
9300 (or_comparisons_1): Likewise.
9301 (or_var_with_comparison): Likewise.
9302 (or_var_with_comparison_1): Likewise.
9303 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
9304 (maybe_fold_or_comparisons): Likewise.
9305 (maybe_fold_comparisons_from_match_pd): New.
9306 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
9307 (maybe_fold_or_comparisons): Likewise.
9308 * gimple.c (gimple_size): Make it public and add num_ops argument.
9309 (gimple_init): New function.
9310 (gimple_alloc): Call gimple_init.
9311 * gimple.h (gimple_size): New.
9312 (gimple_init): Likewise.
9313 * tree-if-conv.c (fold_or_predicates): Pass type.
9314 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
9315 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
9316 (optimize_vec_cond_expr): Likewise.
9317 (ovce_extract_ops): Return type of conditional expression.
9318 * tree-ssanames.c (init_ssa_name_imm_use): New.
9319 (make_ssa_name_fn): Use init_ssa_name_imm_use.
9320 * tree-ssanames.h (init_ssa_name_imm_use): New.
9321
9322 2019-09-16 Richard Biener <rguenther@suse.de>
9323
9324 PR tree-optimization/91756
9325 PR tree-optimization/87132
9326 * tree-ssa-alias.h (enum translate_flags): New.
9327 (get_continuation_for_phi): Use it instead of simple bool flag.
9328 (walk_non_aliased_vuses): Likewise.
9329 * tree-ssa-alias.c (maybe_skip_until): Adjust.
9330 (get_continuation_for_phi): When looking across backedges only
9331 disallow valueization.
9332 (walk_non_aliased_vuses): Adjust.
9333 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
9334 if requested.
9335
9336 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
9337
9338 PR middle-end/80791
9339 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
9340 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
9341 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
9342 * target.def (have_count_reg_decr_p): New hook.
9343 (doloop_cost_for_generic): Likewise.
9344 (doloop_cost_for_address): Likewise.
9345 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
9346 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
9347 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
9348 * doc/tm.texi: Regenerate.
9349 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
9350 addend.
9351 (record_group): Init doloop_p.
9352 (add_candidate_1): Add optional argument doloop, change the handlings
9353 accordingly.
9354 (add_candidate): Likewise.
9355 (generic_predict_doloop_p): Update attribute.
9356 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
9357 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
9358 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
9359 MIN_EXPR.
9360 (get_computation_cost): Update for doloop IV cand extra cost.
9361 (determine_group_iv_cost_cond): Update for doloop IV cand.
9362 (determine_iv_cost): Likewise.
9363 (ivopts_estimate_reg_pressure): Likewise.
9364 (may_eliminate_iv): Update handlings for doloop IV cand.
9365 (add_iv_candidate_for_doloop): New function.
9366 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
9367 (iv_ca_set_no_cp): Update for doloop IV cand.
9368 (iv_ca_set_cp): Likewise.
9369 (iv_ca_dump): Dump register cost.
9370 (find_doloop_use): New function.
9371 (analyze_and_mark_doloop_use): Likewise.
9372 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
9373
9374 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
9375
9376 PR middle-end/91708
9377 * cse.c (cse_insn): Do not replace anything with a
9378 MEM.
9379
9380 2019-09-13 Ian Lance Taylor <iant@golang.org>
9381
9382 * doc/invoke.texi (Optimize Options): Fix typo.
9383
9384 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
9385
9386 PR tree-optimization/89386
9387 * config/i386/sse.md (smulhrs<mode>3): New expander.
9388 (smulhrsv4hi3): Ditto.
9389
9390 2019-09-12 Richard Biener <rguenther@suse.de>
9391
9392 PR tree-optimization/91750
9393 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
9394 in the type of the evolution.
9395
9396 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
9397
9398 PR tree-optimization/89386
9399 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
9400 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
9401 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
9402 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
9403 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
9404 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
9405 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
9406 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
9407 (su, r): Handle the unspecs above.
9408 (bt): New int attribute.
9409 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
9410 * internal-fn.c (first_commutative_argument): Commutativity info for
9411 above.
9412 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
9413 (umulhrs_optab): New optabs.
9414 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
9415 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
9416 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
9417 function.
9418 (vect_vect_recog_func_ptrs): Add it.
9419
9420 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
9421
9422 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
9423 code.
9424
9425 2019-09-11 Nathan Sidwell <nathan@acm.org>
9426
9427 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
9428 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
9429
9430 2019-09-11 Richard Biener <rguenther@suse.de>
9431
9432 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
9433 * lto-wrapper.c (merge_and_complain): Pick up -g.
9434 (append_compiler_options): Likewise.
9435 (run_gcc): Re-instantiate handling -g0 at link-time.
9436 * doc/invoke.texi (flto): Document debug info generation.
9437
9438 2019-09-11 Richard Biener <rguenther@suse.de>
9439
9440 PR tree-optimization/90387
9441 * vr-values.c (vr_values::extract_range_basic): After inlining
9442 simplify non-constant __builtin_constant_p to false.
9443
9444 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
9445
9446 PR rtl-optimization/89795
9447 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
9448 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
9449
9450 2019-09-11 Jakub Jelinek <jakub@redhat.com>
9451
9452 PR tree-optimization/91723
9453 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
9454 instead of pointer equality when checking if argument vectypes are
9455 the same.
9456
9457 PR middle-end/91725
9458 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
9459 of get_nonzero_bits, only call it for integral types.
9460
9461 2019-09-11 Richard Biener <rguenther@suse.de>
9462
9463 Revert
9464 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
9465
9466 * match.pd: Add flag_unsafe_math_optimizations check
9467 before deciding on the widest type in a binary math operation.
9468
9469 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9470
9471 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
9472 and CALL_REALLY_USED_REGISTERS must be defined, and that
9473 CALL_REALLY_USED_REGISTERS is preferred.
9474 * doc/tm.texi: Regenerate.
9475 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
9476 (call_really_used_regs): Likewise.
9477 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
9478 CALL_REALLY_USED_REGISTERS are defined.
9479 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
9480 initial value if defined.
9481 (initial_call_really_used_regs): Delete.
9482 (saved_call_really_used_regs): Likewise.
9483 (CALL_REALLY_USED_REGNO_P): Likewise.
9484 (init_reg_sets): Remove handling of call_really_used_regs.
9485 (save_register_info, restore_register_info, globalize_reg): Likewise.
9486 (init_reg_sets_1): Likewise. Use call_used_regs instead of
9487 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
9488 outside operand_reg_set.
9489 (fix_register): Don't change call_used_regs if
9490 CALL_REALLY_USED_REGISTERS is defined.
9491 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
9492 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
9493 instead of call_really_used_regs.
9494 (csky_conditional_register_usage): Remove the old handling of
9495 call_used_regs and change the handling of call_really_used_regs
9496 to use call_used_regs instead.
9497 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
9498 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
9499 making a register fixed.
9500 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
9501 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
9502 instead of call_really_used_regs.
9503 (m32r_conditional_register_usage): Don't set call_used_regs when
9504 making a register fixed.
9505 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
9506 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
9507 instead of call_really_used_regs.
9508 (mips_interrupt_extra_call_saved_reg_p): Likewise.
9509 (mips_cfun_call_saved_reg_p): Likewise.
9510 (mips_swap_registers): Remove the old handling of call_used_regs
9511 and change the handling of call_really_used_regs to use call_used_regs
9512 instead.
9513 (mips_conditional_register_usage): Likewise.
9514 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
9515 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
9516 instead of call_really_used_regs.
9517 (mn10300_get_live_callee_saved_regs): Likewise.
9518 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
9519 (mn10300_conditional_register_usage): Don't set call_used_regs when
9520 making a register fixed.
9521 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
9522 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
9523 Remove the old handling of call_used_regs and change the handling
9524 of call_really_used_regs to use call_used_regs instead.
9525 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
9526 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
9527 instead of call_really_used_regs.
9528 (s390_register_info_gprtofpr, s390_register_info): Likewise.
9529 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
9530 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
9531 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
9532 (s390_conditional_register_usage): Remove the old handling of
9533 call_used_regs and change the handling of call_really_used_regs
9534 to use call_used_regs instead.
9535 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
9536 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
9537 (sh_fix_range, reg_unused_after): Likewise.
9538 (sh_conditional_register_usage): Remove the old handling of
9539 call_used_regs and change the handling of call_really_used_regs
9540 to use call_used_regs instead.
9541 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
9542 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
9543 call_used_regs when making a register fixed.
9544 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
9545 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
9546 call_used_regs when making a register fixed.
9547 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
9548 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
9549 set call_used_regs when making a register fixed.
9550 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
9551 * config/visium/visium.c (visium_conditional_register_usage): Remove
9552 the old handling of call_used_regs and change the handling of
9553 call_really_used_regs to use call_used_regs instead.
9554
9555 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9556
9557 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
9558 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
9559 * reginfo.c (call_used_regs): New macro.
9560
9561 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9562
9563 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
9564 fixed_regs test.
9565 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
9566 (bpf_expand_epilogue): Likewise.
9567 * config/c6x/c6x.c (c6x_save_reg): Likewise.
9568 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
9569 (ft32_expand_epilogue): Likewise.
9570 * config/i386/i386.c (ix86_save_reg): Likewise.
9571 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
9572 (moxie_expand_epilogue): Likewise.
9573 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
9574 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
9575 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
9576
9577 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9578
9579 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
9580 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
9581 instead of testing call_used_regs directly.
9582 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
9583 (aarch64_components_for_bb): Likewise.
9584 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
9585 * config/arc/arc.c (arc_must_save_register): Likewise.
9586 (arc_epilogue_uses): Likewise.
9587 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
9588 (legitimize_pic_address, callee_saved_reg_p): Likewise.
9589 (arm_compute_save_reg0_reg12_mask): Likewise.
9590 (arm_compute_save_core_reg_mask): Likewise.
9591 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
9592 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
9593 (cmse_nonsecure_entry_clear_before_return): Likewise.
9594 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
9595 (arm_expand_epilogue): Likewise.
9596 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
9597 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
9598 (_reg_unused_after): Likewise.
9599 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
9600 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
9601 (add_to_reg, hwloop_optimize): Likewise.
9602 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
9603 (bpf_expand_epilogue): Likewise.
9604 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
9605 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
9606 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
9607 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
9608 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
9609 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
9610 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
9611 * config/frv/frv.c (frv_stack_info): Likewise.
9612 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
9613 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
9614 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
9615 (move_callee_saved_registers): Likewise.
9616 * config/h8300/h8300.c (byte_reg): Likewise.
9617 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
9618 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
9619 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
9620 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
9621 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
9622 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
9623 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
9624 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
9625 * config/m32c/m32c.c (need_to_save): Likewise.
9626 * config/m68k/m68k.c (m68k_save_reg): Likewise.
9627 * config/mcore/mcore.c (calc_live_regs): Likewise.
9628 * config/microblaze/microblaze.c (microblaze_must_save_register):
9629 Likewise.
9630 * config/mmix/mmix.c (mmix_local_regno): Likewise.
9631 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
9632 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
9633 (mmix_expand_epilogue): Likewise.
9634 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
9635 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
9636 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
9637 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
9638 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
9639 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
9640 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
9641 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
9642 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
9643 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
9644 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
9645 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
9646 * config/rl78/rl78.c (need_to_save): Likewise.
9647 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
9648 (rs6000_stack_info, generate_set_vrsave): Likewise.
9649 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
9650 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
9651 * config/rx/rx.c (rx_get_stack_layout): Likewise.
9652 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
9653 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
9654 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
9655 (save_local_or_in_reg_p): Likewise.
9656 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
9657 (xstormy16_epilogue_uses): Likewise.
9658 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
9659 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
9660 * config/v850/v850.c (compute_register_save_size): Likewise.
9661 * config/vax/vax.c (vax_expand_prologue): Likewise.
9662 * config/visium/visium.c (visium_save_reg_p): Likewise.
9663 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
9664 * cselib.c (cselib_process_insn): Likewise.
9665 * df-scan.c (df_get_entry_block_def_set): Likewise.
9666 * function.c (aggregate_value_p): Likewise.
9667 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
9668 * ira-lives.c (process_bb_node_lives): Likewise.
9669 * ira.c (do_reload): Likewise.
9670 * lra-lives.c (process_bb_lives): Likewise.
9671 * lra-remat.c (lra_remat): Likewise.
9672 * lra.c (lra): Likewise.
9673 * postreload.c (reload_combine_recognize_pattern): Likewise.
9674 (reload_cse_move2add): Likewise.
9675 * recog.c (peep2_find_free_register): Likewise.
9676 * regrename.c (check_new_reg_p): Likewise.
9677 * reload.c (find_equiv_reg): Likewise.
9678 * reload1.c (reload, find_reg): Likewise.
9679 * sel-sched.c (init_hard_regs_data): Likewise.
9680
9681 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9682
9683 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
9684 regs_invalidated_by_call & ~fixed_reg_set instead of
9685 call_used_or_fixed_regs & ~fixed_reg_set.
9686 * config/sh/sh.c (output_stack_adjust): Likewise.
9687
9688 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9689
9690 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
9691 (call_used_reg_set): Delete.
9692 (call_used_or_fixed_regs): New macro.
9693 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
9694 of call_used_reg_set.
9695 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
9696 instead of call_used_regs.
9697 (save_call_clobbered_regs): Likewise.
9698 * cfgcleanup.c (old_insns_match_p): Likewise.
9699 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
9700 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
9701 Likewise.
9702 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
9703 * config/sh/sh.c (output_stack_adjust): Likewise.
9704 * final.c (collect_fn_hard_reg_usage): Likewise.
9705 * ira-build.c (ira_build): Likewise.
9706 * ira-color.c (calculate_saved_nregs): Likewise.
9707 (allocno_reload_assign, calculate_spill_cost): Likewise.
9708 * ira-conflicts.c (ira_build_conflicts): Likewise.
9709 * ira-costs.c (ira_tune_allocno_costs): Likewise.
9710 * ira-lives.c (process_bb_node_lives): Likewise.
9711 * ira.c (setup_reg_renumber): Likewise.
9712 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
9713 * lra-constraints.c (need_for_call_save_p): Likewise.
9714 (need_for_split_p, inherit_in_ebb): Likewise.
9715 * lra-lives.c (process_bb_lives): Likewise.
9716 * lra-remat.c (call_used_input_regno_present_p): Likewise.
9717 * postreload.c (reload_combine): Likewise.
9718 * regrename.c (find_rename_reg): Likewise.
9719 * reload1.c (reload_as_needed): Likewise.
9720 * rtlanal.c (find_all_hard_reg_sets): Likewise.
9721 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9722 * shrink-wrap.c (requires_stack_frame_p): Likewise.
9723
9724 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9725
9726 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
9727 (no_caller_save_reg_set): Delete.
9728 * caller-save.c (init_caller_save): Don't initialize it.
9729 * ira-conflicts.c (ira_build_conflicts): Calculate
9730 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
9731
9732 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9733
9734 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
9735 (target_hard_regs::x_savable_regs): New field.
9736 (call_fixed_reg_set): Delete.
9737 (savable_regs): New macro,
9738 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
9739 (init_reg_sets_1): Likewise. Initialize savable_regs.
9740 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
9741 for all registers. Set savable_regs instead of call_fixed_reg_set.
9742 (setup_save_areas, save_call_clobbered_regs): Replace uses of
9743 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
9744 * config/sh/sh.c (output_stack_adjust): Likewise.
9745
9746 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9747
9748 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
9749 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
9750 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
9751
9752 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9753
9754 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
9755 * rtlanal.c (get_call_rtx_from): Likewise.
9756 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
9757 than the pattern to get_call_rtx_from.
9758 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
9759 an rtx_insn * instead of an rtx.
9760 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
9761
9762 2019-09-10 Martin Liska <mliska@suse.cz>
9763
9764 * common.opt: Use newly added WarnRemoved.
9765 * config/aarch64/aarch64.opt: Likewise.
9766 * config/arm/arm.opt: Likewise.
9767 * config/i386/i386.opt: Likewise.
9768 * config/ia64/ia64.opt: Likewise.
9769 * config/rs6000/rs6000.opt: Likewise.
9770 * doc/options.texi: Document WarnRemoved properly.
9771 * dwarf2out.c (gen_producer_string): Handle renamed
9772 OPT_SPECIAL_warn_removed.
9773 * lto-opts.c (lto_write_options): Likewise.
9774 * lto-wrapper.c (merge_and_complain): Likewise.
9775 * opts-common.c (decode_cmdline_option): Likewise.
9776 (prune_options): Likewise.
9777 (read_cmdline_option): Likewise.
9778 (control_warning_option): Likewise.
9779 * opts.c (print_filtered_help): Likewise.
9780 * optc-gen.awk: Parse for WarnRemoved and make usage
9781 of Deprecated an error.
9782 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
9783
9784 2019-09-10 Arnaud Charlet <charlet@adacore.com>
9785
9786 * doc/install.texi: Fix syntax for html generation.
9787
9788 2019-09-10 Jakub Jelinek <jakub@redhat.com>
9789
9790 PR middle-end/91680
9791 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
9792 the shift type to type.
9793
9794 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9795
9796 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
9797 FDPIC mode.
9798 (stack_protect_combined_test_insn): Likewise.
9799
9800 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9801 Mickaël Guêné <mickael.guene@st.com>
9802
9803 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
9804 * config/arm/arm.md (FDPIC_REGNUM): New constant.
9805 (load_tp_soft_fdpic): New pattern.
9806 (load_tp_soft): Disable in FDPIC mode.
9807
9808 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9809 Mickaël Guêné <mickael.guene@st.com>
9810
9811 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
9812 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
9813 (arm_call_tls_get_addr): Add FDPIC support.
9814 (legitimize_tls_address): Likewise.
9815 (arm_emit_tls_decoration): Likewise.
9816
9817 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9818 Mickaël Guêné <mickael.guene@st.com>
9819
9820 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
9821 support.
9822 (arm_trampoline_init): Likewise.
9823 (arm_trampoline_adjust_address): Likewise.
9824 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
9825
9826 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9827 Mickaël Guêné <mickael.guene@st.com>
9828
9829 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
9830 (legitimize_pic_address): Enforce binding rules on function
9831 pointers in FDPIC mode.
9832 (arm_assemble_integer): Likewise.
9833
9834 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9835 Mickaël Guêné <mickael.guene@st.com>
9836
9837 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
9838 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
9839 FDPIC.
9840
9841 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9842 Mickaël Guêné <mickael.guene@st.com>
9843
9844 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
9845 field.
9846
9847 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9848 Mickaël Guêné <mickael.guene@st.com>
9849
9850 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
9851 in FDPIC mode.
9852 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
9853 new function.
9854 * config/arm/arm.c (arm_option_override): Define pic register to
9855 FDPIC_REGNUM.
9856 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
9857 have no decl or go through PLT.
9858 (calculate_pic_address_constant): New function.
9859 (legitimize_pic_address): Call calculate_pic_address_constant.
9860 (arm_load_pic_register): Handle TARGET_FDPIC.
9861 (arm_is_segment_info_known): New function.
9862 (arm_pic_static_addr): Add support for FDPIC.
9863 (arm_load_function_descriptor): New function.
9864 (arm_emit_call_insn): Add support for FDPIC.
9865 (arm_assemble_integer): Add support for FDPIC.
9866 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
9867 Define. (FDPIC_REGNUM): New define.
9868 * config/arm/arm.md (call): Add support for FDPIC.
9869 (call_value): Likewise.
9870 (restore_pic_register_after_call): New pattern.
9871 (untyped_call): Disable if FDPIC.
9872 (untyped_return): Likewise.
9873 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
9874
9875 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9876 Mickaël Guêné <mickael.guene@st.com>
9877
9878 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
9879 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
9880 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
9881 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
9882 (CC1_SPEC): Use FDPIC_CC1_SPEC.
9883 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
9884 * config/arm/uclinuxfdpiceabi.h: New file.
9885
9886 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9887
9888 * config.gcc: Handle *-*-uclinuxfdpiceabi.
9889
9890 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9891 Mickaël Guêné <mickael.guene@st.com>
9892
9893 * config/arm/arm.opt: Add -mfdpic option.
9894 * doc/invoke.texi: Add documentation for -mfdpic.
9895
9896 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9897
9898 * expmed.c (extract_bit_field): Update function comment
9899 regarding alt_rtl.
9900 * expr.c (expand_expr_real): Update function comment
9901 regarding alt_rtl.
9902 (expand_misaligned_mem_ref): New helper function.
9903 (expand_expr_real_2): Use expand_misaligned_mem_ref.
9904 Remove duplicate assignment to "base" at case MEM_REF.
9905 Remove a shadowed variable "unsignedp" at case VCE.
9906
9907 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
9908
9909 * regset.h (regs_invalidated_by_call_regset): Delete.
9910 (fixed_reg_set_regset): Likewise.
9911 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
9912 (fixed_reg_set_regset, persistent_obstack): Likewise.
9913 (init_reg_sets_1, globalize_reg): Update accordingly.
9914 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
9915 instead of a bitmap.
9916 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
9917 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
9918 instead of regs_invalidated_by_call_regset.
9919 (df_lr_confluence_n, df_md_confluence_n): Likewise.
9920 * df-scan.c (df_scan_start_dump): Likewise.
9921 * dse.c (copy_fixed_regs): Likewise.
9922 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
9923
9924 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
9925
9926 * array-traits.h: New file.
9927 * coretypes.h (array_traits, bitmap_view): New types.
9928 * bitmap.h: Include "array-traits.h"
9929 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
9930 (base_bitmap_view, bitmap_view): New classes.
9931 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
9932 * hard-reg-set.h: Include array-traits.h.
9933 (array_traits<HARD_REG_SET>): New struct.
9934 * regset.h (IOR_REG_SET_HRS): New macro.
9935 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
9936 rather than iterating over each hard register.
9937 * sched-deps.c (sched_analyze_insn): Likewise.
9938 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
9939
9940 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
9941
9942 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
9943 instead of a HARD_REG_SET *.
9944 * ira-build.c (ior_hard_reg_conflicts): Likewise.
9945 (ira_build): Update call accordingly.
9946 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
9947
9948 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
9949
9950 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
9951 (HARD_REG_SET::operator!=): Likewise.
9952 (hard_reg_set_equal_p): Delete.
9953 * cfgcleanup.c (old_insns_match_p): Use == instead of
9954 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
9955 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
9956 (add_allocno_hard_regs_to_forest): Likewise.
9957 (setup_allocno_available_regs_num): Likewise.
9958 * ira.c (setup_pressure_classes): Likewise.
9959 (setup_allocno_and_important_classes): Likewise.
9960 (setup_reg_class_relations): Likewise.
9961 * lra-lives.c (process_bb_lives): Likewise.
9962 * reg-stack.c (change_stack, convert_regs_1): Likewise.
9963
9964 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
9965
9966 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
9967 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
9968 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
9969 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
9970 Likewise.
9971 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
9972 * ira.c (setup_reg_renumber): Likewise.
9973 * lra-assigns.c (find_hard_regno_for_1): Likewise.
9974 * regrename.c (regrename_find_superclass): Likewise.
9975 * reload1.c (find_reg): Likewise.
9976
9977 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
9978
9979 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
9980 * caller-save.c (setup_save_areas): Use "&~" instead of
9981 AND_COMPL_HARD_REG_SET.
9982 (save_call_clobbered_regs): Likewise.
9983 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
9984 Likewise.
9985 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
9986 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
9987 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
9988 * config/mips/mips.c (mips_class_max_nregs): Likewise.
9989 (mips_conditional_register_usage): Likewise.
9990 * config/sh/sh.c (output_stack_adjust): Likewise.
9991 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
9992 (setup_profitable_hard_regs): Likewise.
9993 (get_conflict_and_start_profitable_regs): Likewise.
9994 * ira-conflicts.c (print_allocno_conflicts): Likewise.
9995 (ira_build_conflicts): Likewise.
9996 * ira-costs.c (restrict_cost_classes): Likewise.
9997 (setup_regno_cost_classes_by_aclass): Likewise.
9998 * ira-lives.c (process_bb_node_lives): Likewise.
9999 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
10000 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
10001 (setup_allocno_and_important_classes, setup_class_translate_array)
10002 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
10003 Likewise.
10004 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10005 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
10006 (process_alt_operands, inherit_in_ebb): Likewise.
10007 * lra-eliminations.c (update_reg_eliminate): Likewise.
10008 * lra-lives.c (process_bb_lives): Likewise.
10009 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
10010 * resource.c (find_dead_or_set_registers): Likewise.
10011 (mark_target_live_regs): Likewise.
10012 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
10013 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10014 (implicit_clobber_conflict_p): Likewise.
10015 * shrink-wrap.c (requires_stack_frame_p): Likewise.
10016 (try_shrink_wrapping): Likewise.
10017
10018 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10019
10020 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
10021 (HARD_REG_SET::operator|=): Likewise.
10022 (IOR_HARD_REG_SET): Delete.
10023 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
10024 IOR_HARD_REG_SET.
10025 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
10026 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
10027 * final.c (collect_fn_hard_reg_usage): Likewise.
10028 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
10029 * ira-build.c (merge_hard_reg_conflicts): Likewise.
10030 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
10031 (propagate_some_info_from_allocno): Likewise.
10032 (copy_info_to_removed_store_destinations): Likewise.
10033 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
10034 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
10035 (fast_allocation): Likewise.
10036 * ira-conflicts.c (ira_build_conflicts): Likewise.
10037 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
10038 (process_bb_node_lives): Likewise.
10039 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
10040 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10041 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
10042 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
10043 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
10044 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
10045 (process_bb_lives): Likewise.
10046 * lra-spills.c (assign_spill_hard_regs): Likewise.
10047 * postreload.c (reload_combine): Likewise.
10048 * reginfo.c (init_reg_sets_1): Likewise.
10049 * regrename.c (merge_overlapping_regs, find_rename_reg)
10050 (merge_chains): Likewise.
10051 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
10052 (find_reload_regs, finish_spills, choose_reload_regs_init)
10053 (emit_reload_insns): Likewise.
10054 * reorg.c (redundant_insn): Likewise.
10055 * resource.c (find_dead_or_set_registers, mark_set_resources)
10056 (mark_target_live_regs): Likewise.
10057 * rtlanal.c (find_all_hard_reg_sets): Likewise.
10058 * sched-deps.c (sched_analyze_insn): Likewise.
10059 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10060 (find_best_reg_for_expr): Likewise.
10061 * shrink-wrap.c (try_shrink_wrapping): Likewise.
10062
10063 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10064
10065 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
10066 (HARD_REG_SET::operator&): Likewise.
10067 (AND_HARD_REG_SET): Delete.
10068 * caller-save.c (setup_save_areas): Use "&" instead of
10069 AND_HARD_REG_SET.
10070 (save_call_clobbered_regs): Likewise.
10071 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10072 * config/m32c/m32c.c (reduce_class): Likewise.
10073 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
10074 * final.c (get_call_reg_set_usage): Likewise.
10075 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
10076 (setup_left_conflict_sizes_p): Likewise.
10077 * ira-conflicts.c (print_allocno_conflicts): Likewise.
10078 (ira_build_conflicts): Likewise.
10079 * ira-costs.c (restrict_cost_classes): Likewise.
10080 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
10081 (setup_reg_class_relations): Likewise.
10082 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
10083 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
10084 * resource.c (find_dead_or_set_registers): Likewise.
10085 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10086
10087 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10088
10089 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
10090 (COMPL_HARD_REG_SET): Delete.
10091 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
10092 of COMPL_HARD_REG_SET.
10093 (try_rename_operands): Likewise.
10094 * config/sh/sh.c (push_regs): Likewise.
10095 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10096 * lra-constraints.c (contains_reg_p): Likewise.
10097 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
10098
10099 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10100
10101 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
10102 * caller-save.c (save_call_clobbered_regs): Use assignment instead
10103 of COPY_HARD_REG_SET.
10104 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
10105 (epiphany_conditional_register_usage): Likewise.
10106 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10107 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10108 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10109 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
10110 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
10111 * config/mips/mips.c (mips_class_max_nregs): Likewise.
10112 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
10113 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
10114 * config/sh/sh.c (output_stack_adjust): Likewise.
10115 * final.c (collect_fn_hard_reg_usage): Likewise.
10116 (get_call_reg_set_usage): Likewise.
10117 * ira-build.c (ira_create_object, remove_low_level_allocnos)
10118 (ira_flattening): Likewise.
10119 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
10120 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
10121 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
10122 (ira_reassign_pseudos): Likewise.
10123 * ira-conflicts.c (print_allocno_conflicts): Likewise.
10124 (ira_build_conflicts): Likewise.
10125 * ira-costs.c (restrict_cost_classes): Likewise.
10126 (setup_regno_cost_classes_by_aclass): Likewise.
10127 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
10128 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
10129 (setup_stack_reg_pressure_class, setup_pressure_classes)
10130 (setup_allocno_and_important_classes, setup_class_translate_array)
10131 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
10132 (ira_setup_eliminable_regset): Likewise.
10133 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10134 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
10135 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
10136 (process_alt_operands, inherit_in_ebb): Likewise.
10137 * lra-lives.c (process_bb_lives): Likewise.
10138 * lra-spills.c (assign_spill_hard_regs): Likewise.
10139 * lra.c (lra): Likewise.
10140 * mode-switching.c (new_seginfo): Likewise.
10141 * postreload.c (reload_combine): Likewise.
10142 * reg-stack.c (straighten_stack): Likewise.
10143 * reginfo.c (save_register_info, restore_register_info): Likewise.
10144 (init_reg_sets_1, record_subregs_of_mode): Likewise
10145 * regrename.c (create_new_chain, rename_chains): Likewise.
10146 * reload1.c (order_regs_for_reload, find_reg): Likewise.
10147 (find_reload_regs): Likewise.
10148 * resource.c (find_dead_or_set_registers): Likewise.
10149 (mark_target_live_regs): Likewise.
10150 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10151
10152 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10153
10154 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
10155 (note_pattern_stores): Declare.
10156 (note_stores): Take an rtx_insn *.
10157 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
10158 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
10159 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
10160 (note_stores): Take an rtx_insn * as argument and process
10161 CALL_INSN_FUNCTION_USAGE. Rename old function to...
10162 (note_pattern_stores): ...this.
10163 (find_first_parameter_load): Pass the insn rather than
10164 its pattern to note_stores.
10165 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
10166 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
10167 (insert_one_insn): Likewise.
10168 * combine.c (combine_instructions): Likewise.
10169 (likely_spilled_retval_p): Likewise.
10170 (try_combine): Use note_pattern_stores instead of note_stores.
10171 (record_dead_and_set_regs): Pass the insn rather than its pattern
10172 to note_stores.
10173 (reg_dead_at_p): Likewise.
10174 * config/bfin/bfin.c (workaround_speculation): Likewise.
10175 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
10176 rather than an rtx.
10177 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
10178 instead of note_stores.
10179 (frv_optimize_membar_local): Pass the insn rather than its pattern
10180 to note_stores.
10181 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10182 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
10183 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
10184 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
10185 (mips_reorg_process_insns): Likewise.
10186 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
10187 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
10188 rather than rtxes.
10189 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
10190 its pattern to note_stores.
10191 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
10192 of note_stores.
10193 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
10194 the insn to note_stores.
10195 (prescan_insns_for_dce): Update call accordingly.
10196 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
10197 to note_stores.
10198 * df-problems.c (can_move_insns_across): Likewise.
10199 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
10200 * function.c (assign_parm_setup_reg): Likewise.
10201 * gcse-common.c (record_last_mem_set_info_common): Likewise.
10202 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
10203 (single_set_gcse): Likewise.
10204 * ira.c (validate_equiv_mem): Likewise.
10205 (update_equiv_regs): Use note_pattern_stores rather than note_stores
10206 for no_equiv.
10207 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
10208 pattern to note_stores.
10209 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
10210 * loop-iv.c (simplify_using_initial_values): Likewise.
10211 * mode-switching.c (optimize_mode_switching): Likewise.
10212 * optabs.c (emit_libcall_block_1): Likewise.
10213 (expand_atomic_compare_and_swap): Likewise.
10214 * postreload-gcse.c (load_killed_in_block_p): Likewise.
10215 (record_opr_changes): Likewise. Remove explicit handling of
10216 CALL_INSN_FUNCTION_USAGE.
10217 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
10218 * regcprop.c (kill_clobbered_values): Likewise.
10219 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
10220 to note_stores.
10221 * regrename.c (build_def_use): Likewise.
10222 * reload1.c (reload): Use note_pattern_stores instead of note_stores
10223 for mark_not_eliminable.
10224 (reload_as_needed): Pass the insn rather than its pattern
10225 to note_stores.
10226 (emit_output_reload_insns): Likewise.
10227 * resource.c (mark_target_live_regs): Likewise.
10228 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
10229 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
10230 instead of note_stores.
10231 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
10232 its pattern to note_stores.
10233 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
10234 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
10235
10236 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10237
10238 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
10239 than a #define. Use a structure rather than an array as the
10240 fallback definition. Remove special cases for low array sizes.
10241 (const_hard_reg_set): New typedef.
10242 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
10243 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
10244 (hard_reg_set_empty_p): Likewise.
10245 (SET_HARD_REG_BIT): Use a function rather than a macro to
10246 handle the case in which HARD_REG_SET is a structure.
10247 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
10248 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
10249 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
10250 (IOR_COMPL_HARD_REG_SET): Likewise.
10251 (hard_reg_set_iterator::pset): Constify the pointer target.
10252 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
10253 of a "const HARD_REG_SET". Update the handling of non-integer
10254 HARD_REG_SETs.
10255 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
10256 * reload.h: Likewise.
10257 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
10258 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
10259 of a "const HARD_REG_SET".
10260 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
10261 (range_in_hard_reg_set_p): Likewise.
10262 * ira-costs.c (restrict_cost_classes): Likewise.
10263 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
10264 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10265 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
10266 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
10267 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
10268 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
10269 take an unsigned int and open-code the HARD_REG_SET operations.
10270
10271 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10272
10273 * Makefile.in (OBJS): Remove bt-load.o.
10274 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
10275 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
10276 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
10277 document that the option no longer does anything.
10278 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
10279 * target.def (branch_target_register_class): Delete.
10280 (branch_target_register_callee_saved): Likewise.
10281 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
10282 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
10283 * doc/tm.texi: Regenerate.
10284 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
10285 (make_pass_branch_target_load_optimize2): Likewise.
10286 * passes.def (pass_branch_target_load_optimize1): Likewise.
10287 (pass_branch_target_load_optimize2): Likewise.
10288 * targhooks.h (default_branch_target_register_class): Likewise.
10289 * targhooks.c (default_branch_target_register_class): Likewise.
10290 * opt-suggestions.c (test_completion_valid_options): Remove
10291 -fbtr-bb-exclusive from the list of test options.
10292 * bt-load.c: Remove.
10293
10294 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
10295
10296 * match.pd: Add flag_unsafe_math_optimizations check
10297 before deciding on the widest type in a binary math operation.
10298
10299 2019-09-09 Martin Liska <mliska@suse.cz>
10300
10301 * config/i386/i386.opt: Update comment of removed
10302 options that are preserved only for backward
10303 compatibility.
10304
10305 2019-09-09 Jakub Jelinek <jakub@redhat.com>
10306
10307 PR target/87853
10308 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
10309 instead of __v16qs.
10310
10311 PR target/91704
10312 * config/i386/avxintrin.h (__v32qs): New typedef.
10313 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
10314 instead of __v32qi.
10315
10316 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10317
10318 * doc/invoke.texi (Option Summary): Cover eBPF.
10319 (eBPF Options): New section.
10320 * doc/extend.texi (BPF Built-in Functions): Likewise.
10321 (BPF Kernel Helpers): Likewise.
10322
10323 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10324
10325 * config.gcc: Support for bpf-*-* targets.
10326 * common/config/bpf/bpf-common.c: New file.
10327 * config/bpf/t-bpf: Likewise.
10328 * config/bpf/predicates.md: Likewise.
10329 * config/bpf/constraints.md: Likewise.
10330 * config/bpf/bpf.opt: Likewise.
10331 * config/bpf/bpf.md: Likewise.
10332 * config/bpf/bpf.h: Likewise.
10333 * config/bpf/bpf.c: Likewise.
10334 * config/bpf/bpf-protos.h: Likewise.
10335 * config/bpf/bpf-opts.h: Likewise.
10336 * config/bpf/bpf-helpers.h: Likewise.
10337 * config/bpf/bpf-helpers.def: Likewise.
10338
10339 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10340
10341 * doc/sourcebuild.texi (Effective-Target Keywords): Document
10342 indirect_calls.
10343
10344 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10345
10346 * opt-functions.awk (integer_range_info): Make sure values are in
10347 numeric context before operating with them.
10348
10349 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
10350
10351 * genemit.c (gen_split): Print the filename and line number where the
10352 splitter (or peephole2) was defined, to the dump file.
10353
10354 2019-09-07 Jakub Jelinek <jakub@redhat.com>
10355
10356 PR tree-optimization/91665
10357 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
10358 incompatible with the type of PHI result.
10359
10360 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
10361
10362 PR target/91684
10363 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
10364 gen_unaligned_storedi for 4-byte aligned addresses.
10365
10366 2019-09-06 Jim Wilson <jimw@sifive.com>
10367
10368 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
10369 change.
10370
10371 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
10372
10373 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
10374
10375 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
10376
10377 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
10378 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
10379
10380 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
10381
10382 PR target/91654
10383 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
10384 cost of SSE->integer and integer->SSE moves from 2 to 6.
10385 (core_cost): Ditto.
10386
10387 2019-09-06 Jakub Jelinek <jakub@redhat.com>
10388
10389 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
10390 before testing TYPE_TRANSPARENT_AGGR.
10391 * calls.c (initialize_argument_information, load_register_parameters):
10392 Likewise.
10393
10394 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
10395
10396 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
10397 high regs.
10398 (cmp_ior): Likewise.
10399
10400 2019-09-06 Martin Liska <mliska@suse.cz>
10401
10402 * doc/match-and-simplify.texi: Separate tuples with ;.
10403
10404 2019-09-06 Martin Liska <mliska@suse.cz>
10405
10406 PR c++/91125
10407 * Makefile.in: Remove tlink.o.
10408 * collect2.c (do_link): New function isolated
10409 from do_tlink.
10410 (main): Use.
10411 * collect2.h (do_tlink): Remove declaration of do_tlink.
10412 * doc/extend.texi: Remove documentation of -frepo.
10413 * doc/invoke.texi: Likewise.
10414 * doc/sourcebuild.texi: Remove cleanup-repo-files.
10415 * tlink.c: Remove.
10416
10417 2019-09-05 Jakub Jelinek <jakub@redhat.com>
10418 Jim Wilson <jimw@sifive.com>
10419
10420 PR target/91635
10421 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
10422 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
10423 paradoxical_subreg_p (operands[0]).
10424 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
10425 use as intermediate value.
10426
10427 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
10428
10429 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
10430 (sync_compare_and_swap<mode>_insn): Likewise.
10431
10432 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
10433
10434 PR middle-end/91615
10435 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
10436 without movmisalign optab.
10437
10438 2019-09-05 Jakub Jelinek <jakub@redhat.com>
10439
10440 PR middle-end/91001
10441 PR middle-end/91105
10442 PR middle-end/91106
10443 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
10444 types, use type of their first field instead of type of
10445 args[i].tree_value.
10446
10447 2019-09-05 Richard Biener <rguenther@suse.de>
10448
10449 PR rtl-optimization/91656
10450 * postreload-gcse.c (record_last_mem_set_info): Revert addition
10451 of early out.
10452
10453 2019-09-05 Richard Biener <rguenther@suse.de>
10454
10455 PR middle-end/90501
10456 * tree-inline.c (declare_return_variable): Mark the return
10457 slot as addressable after building an address of it.
10458
10459 2019-09-05 Arnaud Charlet <charlet@adacore.com>
10460
10461 * doc/install.texi: Update and clarify requirements to build GNAT.
10462
10463 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
10464
10465 PR middle-end/91577
10466 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
10467 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
10468 call to be in memory.
10469 (pass_expand::execute): Call discover_nonconstant_array_refs before
10470 setting currently_expanding_to_rtl.
10471
10472 2019-09-04 Caroline Tice <cmtice@google.com>
10473
10474 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
10475 specified together.
10476
10477 2019-09-04 Marek Polacek <polacek@redhat.com>
10478
10479 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
10480
10481 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
10482
10483 PR target/32413
10484 * config/i386/i386.c (inline_secondary_memory_needed): Return true
10485 for QI and HImode moves between SSE and general registers.
10486
10487 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10488
10489 PR c/78736
10490 * doc/invoke.texi: Document -Wenum-conversion.
10491
10492 2019-09-04 Richard Biener <rguenther@suse.de>
10493
10494 PR rtl-optimization/36262
10495 * postreload-gcse.c: Include intl.h and gcse.h.
10496 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
10497 to avoid linear list walk.
10498 (record_last_mem_set_info): Gate off if not computing transparentness.
10499 (get_bb_avail_insn): If transparentness isn't computed give up
10500 early.
10501 (gcse_after_reload_main): Skip compute_transp and extended PRE
10502 if gcse_or_cprop_is_too_expensive says so.
10503
10504 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10505
10506 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
10507 noinit section.
10508 (msp430_select_section): Handle decls with the "noinit" attribute with
10509 default_elf_select_section.
10510 Handle SECCAT_RODATA_MERGE_* section types with
10511 default_elf_select_section.
10512 Add comments about handling of unsupported section types.
10513 (msp430_section_type_flags): Remove handling of the noinit section.
10514
10515 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10516
10517 * config/msp430/msp430.c (msp430_attr): Remove warnings about
10518 conflicting msp430-specific attributes.
10519 (msp430_section_attr): Likewise.
10520 Add warnings about conflicts with generic "noinit" and "section"
10521 attributes.
10522 Fix grammar in -mlarge error message.
10523 (msp430_data_attr): Rename to msp430_persist_attr.
10524 Add warnings about conflicts with generic "noinit" and "section"
10525 attributes.
10526 Add warning for when variable is not initialized.
10527 Chain conditionals which prevent the attribute being added.
10528 (ATTR_EXCL): New helper.
10529 (attr_reent_exclusions): New exclusion table.
10530 (attr_naked_exclusions): Likewise.
10531 (attr_crit_exclusions): Likewise.
10532 (attr_lower_exclusions): Likewise.
10533 (attr_upper_exclusions): Likewise.
10534 (attr_either_exclusions): Likewise.
10535 (attr_persist_exclusions): Likewise.
10536 (msp430_attribute_table): Update with exclusion rules.
10537 (msp430_output_aligned_decl_common): Don't output common symbol if decl
10538 has a section.
10539
10540 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10541
10542 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
10543 (msp430_handle_generic_attribute): New function.
10544 * doc/tm.texi: Regenerate.
10545 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
10546 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
10547 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
10548 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
10549
10550 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
10551
10552 PR tree-optimization/91504
10553 * match.pd: Add ((~a & b) ^a) --> (a | b).
10554
10555 2019-09-03 Jakub Jelinek <jakub@redhat.com>
10556
10557 PR target/91604
10558 * config/i386/i386-expand.c (split_double_mode): If there is more than
10559 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
10560 already split matching MEM operand instead of calling adjust_address
10561 again.
10562
10563 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
10564
10565 * config.gcc: Obsolete spu target. Remove references to spu.
10566 * configure.ac: Remove references to spu.
10567 * configure: Regenerate.
10568 * config/spu/: Remove directory.
10569 * common/config/spu/: Remove directory.
10570
10571 * doc/extend.texi: Remove references to spu.
10572 * doc/invoke.texi: Likewise.
10573 * doc/md.texi: Likewise.
10574 * doc/sourcebuild.texi: Likewise.
10575
10576 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10577
10578 PR middle-end/91603
10579 PR middle-end/91612
10580 PR middle-end/91613
10581 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
10582 and SSA_NAME referring to CONSTANT_P correctly.
10583
10584 2019-09-03 Richard Biener <rguenther@suse.de>
10585
10586 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
10587 (vn_nary_op_insert): Likewise.
10588 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
10589 (vn_nary_op_lookup): Likewise.
10590 (vn_nary_op_insert): Likewise.
10591
10592 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
10593
10594 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
10595 (*op0, 1) instead of XEXP (*op1, 0).
10596
10597 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10598
10599 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
10600 (aarch64_fjcvtzs): New define_insn.
10601 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
10602 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
10603 Add AARCH64_JSCVT.
10604 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
10605 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
10606 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
10607 __ARM_FEATURE_JCVT where appropriate.
10608 * config/aarch64/arm_acle.h (__jcvt): Define.
10609
10610 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10611
10612 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
10613 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
10614 (aarch64_<frintnzs_op><mode>): New define_insn.
10615 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
10616 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
10617 __ARM_FEATURE_FRINT when appropriate.
10618 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
10619 frint32x, frint64z, frint64x.
10620 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
10621 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
10622 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
10623 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
10624 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
10625 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
10626 * config/aarch64/iterators.md (VSFDF): Define.
10627 (FRINTNZX): Likewise.
10628 (frintnzs_op): Likewise.
10629
10630 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
10631
10632 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
10633 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
10634 Cortex-A34.
10635 * config/aarch64/aarch64-tune.md: Regenerated.
10636 * doc/invoke.texi: Document the new processors.
10637
10638 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10639
10640 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
10641 string.
10642 (ssbs): Likewise.
10643 (sve2): Likewise.
10644 (sve2-sm4): Likewise.
10645 (sveaes): Likewise.
10646 (svesha3): Likewise.
10647 (svebitperm): Likewise.
10648
10649 2019-09-03 Jakub Jelinek <jakub@redhat.com>
10650 Richard Biener <rguenther@suse.de>
10651
10652 PR tree-optimization/91597
10653 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
10654 BIT_AND_EXPR optimization for pointers, even if both operand
10655 ranges don't include NULL, the result can be NULL.
10656
10657 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10658
10659 PR middle-end/91605
10660 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
10661 (non_mem_decl_p): ...this.
10662 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
10663 (expand_assignment): Call mem_ref_referes_to_non_mem_p
10664 unconditionally as before.
10665
10666 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
10667
10668 PR target/91323
10669 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
10670 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
10671 * tree.def (LTGT_EXPR): Likewise.
10672 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
10673
10674 2019-09-02 Jakub Jelinek <jakub@redhat.com>
10675
10676 PR go/91617
10677 * fold-const.c (range_check_type): For enumeral and boolean
10678 type, pass 1 to type_for_size langhook instead of
10679 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
10680 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
10681 (build_range_check): Don't call unsigned_type_for for pointer types.
10682 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
10683 range_check_type result.
10684
10685 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
10686
10687 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
10688 (replace_ref): Do not replace a chain of only two candidates which are
10689 valid memory references.
10690
10691 2019-09-02 Martin Liska <mliska@suse.cz>
10692
10693 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
10694 Bail out when we'll end up with the same number of clusters as
10695 at the beginning.
10696 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
10697 (jump_table_cluster::can_be_handled): Remove the guard
10698 as it's already handled in ::is_enabled. Allocate output
10699 after early bail out.
10700
10701 2019-09-02 Martin Liska <mliska@suse.cz>
10702
10703 PR gcov-profile/91601
10704 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
10705 (path_contains_zero_or_negative_cycle_arc): ... this and handle
10706 also negative edges.
10707 (circuit): Handle also negative edges as they can happen
10708 in some situations.
10709
10710 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
10711
10712 PR target/91472
10713 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
10714 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
10715 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
10716
10717 2019-09-01 Jakub Jelinek <jakub@redhat.com>
10718
10719 PR middle-end/91623
10720 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
10721 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
10722 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
10723 zero vector.
10724
10725 PR lto/91572
10726 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
10727 GIMPLE_ASM TREE_LIST operands.
10728
10729 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
10730
10731 * doc/generic.texi (Unary and Binary Expressions): Mark up
10732 an instance of TYPE_MIN.
10733
10734 2019-08-31 Stafford Horne <shorne@gmail.com>
10735
10736 * config/or1k/constraints.md (t): New constraint.
10737 * config/or1k/or1k.h (GOT_REGS): New register class.
10738 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
10739
10740 2019-08-30 Jim Wilson <jimw@sifive.com>
10741
10742 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
10743 and -fpic and -mplt then disable -msave-restore and warn.
10744
10745 2019-08-30 Martin Sebor <msebor@redhat.com>
10746
10747 PR middle-end/91599
10748 * tree-ssa-strlen.c (handle_store): Use a fallback location if
10749 the statement doesn't have one.
10750 * gimple-pretty-print.c (percent_G_format): Same.
10751
10752 PR middle-end/91584
10753 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
10754 before using them to validate MEM_REF offset.
10755
10756 2019-08-30 Marek Polacek <polacek@redhat.com>
10757
10758 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
10759
10760 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
10761
10762 * config/arm/arm.md (unaligned_loaddi,
10763 unaligned_storedi): New unspec insn patterns.
10764 * config/arm/neon.md (unaligned_storev8qi): Likewise.
10765 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
10766 and unaligned_storedi for 4-byte aligned memory.
10767 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
10768 4-byte aligned memory.
10769
10770 2019-08-30 Martin Jambor <mjambor@suse.cz>
10771
10772 tree-optimization/91579
10773 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
10774 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
10775 appropriate.
10776 (arg_needs_copy_p): Removed.
10777 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
10778 arg_needs_copy_p.
10779 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
10780
10781 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
10782
10783 * config/i386/i386-features.c
10784 (general_scalar_chain::compute_convert_gain):
10785 Correct cost for double-word shifts.
10786 (general_scalar_to_vector_candidate_p): Reject count operands
10787 greater or equal to mode bitsize.
10788
10789 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
10790
10791 * config/i386/i386.c (inline_secondary_memory_needed): Return true
10792 for moves between SSE and non-general registers and between
10793 mask and non-general registers.
10794 (ix86_register_move_cost): Remove stalled comment.
10795
10796 2019-08-29 Richard Biener <rguenther@suse.de>
10797
10798 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
10799 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
10800
10801 2019-08-29 Richard Biener <rguenther@suse.de>
10802
10803 PR bootstrap/91580
10804 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
10805 Do not emit scalar copies for debug-insns, instead replace
10806 their uses with the reg copy used in the chain or reset them
10807 if there is a reaching definition outside of the chain as well.
10808
10809 2019-08-29 Jakub Jelinek <jakub@redhat.com>
10810
10811 PR target/91560
10812 * config/i386/i386-expand.c (expand_vec_perm_movs,
10813 expand_vec_perm_blend, expand_vec_perm_vpermil,
10814 expand_vec_perm_pshufb, expand_vec_perm_1,
10815 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
10816 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
10817 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
10818 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
10819 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
10820 comments - replace ix86_expand_vec_perm_builtin_1 with
10821 ix86_expand_vec_perm_const_1.
10822 (expand_vec_perm2_vperm2f128_vblend): New function.
10823 (ix86_expand_vec_perm_const_1): New forward declaration. Call
10824 expand_vec_perm2_vperm2f128_vblend as last resort.
10825 (canonicalize_perm): Formatting fix.
10826
10827 PR tree-optimization/91351
10828 * tree-cfg.c (generate_range_test): Use range_check_type instead of
10829 unsigned_type_for.
10830 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
10831 range_check_type returns NULL.
10832 * tree-switch-conversion.c (switch_conversion::build_one_array):
10833 Use range_check_type instead of unsigned_type_for, don't perform
10834 linear opt if it returns NULL.
10835 (bit_test_cluster::find_bit_tests): Formatting fix.
10836 (bit_test_cluster::emit): Use range_check_type instead of
10837 unsigned_type_for.
10838 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
10839 returns NULL.
10840
10841 2019-08-29 Richard Biener <rguenther@suse.de>
10842
10843 PR tree-optimization/91568
10844 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
10845 (vect_update_max_nunits): Add overload for poly_uint64.
10846 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
10847 (vect_build_slp_tree): Record max_nunits into the subtree
10848 and merge it upwards.
10849 (vect_print_slp_tree): Print max_nunits.
10850
10851 2019-08-28 Marek Polacek <polacek@redhat.com>
10852
10853 Implement P1152R4: Deprecating some uses of volatile.
10854 PR c++/91361
10855 * doc/invoke.texi: Document -Wvolatile.
10856
10857 2019-08-28 Marek Polacek <polacek@redhat.com>
10858
10859 PR c++/91360 - Implement C++20 P1143R2: constinit.
10860 * doc/invoke.texi: Document -Wc++20-compat.
10861
10862 2019-08-28 Martin Sebor <msebor@redhat.com>
10863
10864 PR tree-optimization/91457
10865 * builtins.c (component_size): New function.
10866 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
10867 * builtins.h (compute_objsize): Add argument.
10868 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
10869 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
10870 (vrp_prop::check_mem_ref): Same.
10871 (vrp_prop::search_for_addr_array): Set no-warning bit.
10872 (check_array_bounds): Same.
10873
10874 2019-08-28 Martin Sebor <msebor@redhat.com>
10875
10876 PR driver/80545
10877 * opts-common.c (option_enabled): Correct checking for language
10878 options.
10879
10880 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
10881
10882 * config/i386/i386.c (ix86_register_move_cost): Do not
10883 limit the cost of moves to/from XMM register to minimum 8.
10884
10885 2019-08-28 Martin Jambor <mjambor@suse.cz>
10886
10887 PR ipa/91468
10888 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
10889 checking assert a normal assert to test it really is redundant.
10890 * ipa-prop.c (compute_complex_assign_jump_func): Removed
10891 redundant test.
10892 (update_jump_functions_after_inlining): Removed combining unary
10893 arithmetic operations with an ancestor jump function.
10894 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
10895 instead of t.
10896
10897 2019-08-28 Richard Biener <rguenther@suse.de>
10898
10899 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
10900 add the MD problem.
10901
10902 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
10903 Richard Biener <rguenther@suse.de>
10904
10905 * expr.c (expand_assignment): Handle misaligned DECLs.
10906 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
10907 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
10908 too.
10909 (assign_parm_setup_stack): Allocate properly aligned stack slots.
10910 * varasm.c (build_constant_desc): Align constants of misaligned types.
10911 * config/arm/predicates.md (aligned_operand): New predicate.
10912 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
10913 aligned_operand to check restrictions on memory addresses.
10914 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
10915 * config/arm/vec-common.md (mov<VALL>): Likewise.
10916
10917 2019-08-28 Jakub Jelinek <jakub@redhat.com>
10918
10919 PR libgomp/91530
10920 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
10921 V_128 iterator instead of VI_128.
10922
10923 2019-08-28 Martin Liska <mliska@suse.cz>
10924
10925 PR tree-optimization/90970
10926 * builtins.c (check_access): Remove assignment to maxread
10927 as it hasn't been used since when it was introduced in r255755.
10928
10929 2019-08-27 Martin Sebor <msebor@redhat.com>
10930
10931 PR tree-optimization/91567
10932 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
10933 of unknown strings.
10934 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
10935 to PTRDIFF_MAX - 2.
10936
10937 2019-08-27 Jeff Law <law@redhat.com>
10938
10939 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
10940 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
10941
10942 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
10943
10944 PR target/91528
10945 * config/i386/i386-features.c (convert_scalars_to_vector):
10946 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
10947 crtl->stack_realign_processed. Update crtl->drap_reg by calling
10948 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
10949 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
10950
10951 2019-08-27 Richard Biener <rguenther@suse.de>
10952
10953 * config/i386/i386-features.h
10954 (general_scalar_chain::~general_scalar_chain): Add.
10955 (general_scalar_chain::insns_conv): New bitmap.
10956 (general_scalar_chain::n_sse_to_integer): New.
10957 (general_scalar_chain::n_integer_to_sse): Likewise.
10958 (general_scalar_chain::make_vector_copies): Adjust signature.
10959 * config/i386/i386-features.c
10960 (general_scalar_chain::general_scalar_chain): Outline,
10961 initialize new members.
10962 (general_scalar_chain::~general_scalar_chain): New.
10963 (general_scalar_chain::mark_dual_mode_def): Record insns
10964 we need to insert conversions at and count them.
10965 (general_scalar_chain::compute_convert_gain): Account
10966 for conversion instructions at chain boundary.
10967 (general_scalar_chain::make_vector_copies): Generate a single
10968 copy for a def by a specific insn.
10969 (general_scalar_chain::convert_registers): First populate
10970 defs_map, then make copies at out-of chain insns.
10971
10972 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
10973
10974 * config/arm/arm.md (stack_protect_set_insn): Add security-related
10975 comment.
10976 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
10977
10978 2019-08-27 Martin Liska <mliska@suse.cz>
10979
10980 * cgraph.c (cgraph_node::remove): Remove dead assignment before
10981 loop.
10982 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
10983 Enclose in anonymous namespace.
10984 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
10985 hard_register initialization in braces.
10986 * tree-vrp.h (value_range_base::supports_type_p): Return false
10987 for function with boolean return type.
10988
10989 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
10990
10991 * config/i386/i386.c (emit_i387_cw_initialization)
10992 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
10993
10994 2019-08-26 Martin Sebor <msebor@redhat.com>
10995
10996 PR c++/83431
10997 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
10998 (sprintf_dom_walker): Remove class.
10999 (get_int_range): Make argument const.
11000 (directive::fmtfunc, directive::set_precision): Same.
11001 (format_none): Same.
11002 (build_intmax_type_nodes): Same.
11003 (adjust_range_for_overflow): Same.
11004 (format_floating): Same.
11005 (format_character): Same.
11006 (format_string): Same.
11007 (format_plain): Same.
11008 (get_int_range): Cast away constness.
11009 (format_integer): Same.
11010 (get_string_length): Call get_range_strlen_dynamic. Handle
11011 null lendata.maxbound.
11012 (should_warn_p): Adjust argument scope qualifier.
11013 (maybe_warn): Same.
11014 (format_directive): Same.
11015 (parse_directive): Same.
11016 (is_call_safe): Same.
11017 (try_substitute_return_value): Same.
11018 (sprintf_dom_walker::handle_printf_call): Rename...
11019 (handle_printf_call): ...to this. Initialize target to host charmap
11020 here instead of in pass_sprintf_length::execute.
11021 (struct call_info): Make global.
11022 (sprintf_dom_walker::compute_format_length): Make global.
11023 (sprintf_dom_walker::handle_gimple_call): Same.
11024 * passes.def (pass_sprintf_length): Replace with pass_strlen.
11025 * print-rtl.c (print_pattern): Reduce the number of spaces to
11026 avoid -Wformat-truncation.
11027 * tree-pass.h (make_pass_warn_printf): New function.
11028 * tree-ssa-strlen.c (strlen_optimize): New variable.
11029 (get_string_length): Add comments.
11030 (get_range_strlen_dynamic): New function.
11031 (check_and_optimize_call): New function.
11032 (handle_integral_assign): New function.
11033 (strlen_check_and_optimize_stmt): Factor code out into
11034 strlen_check_and_optimize_call and handle_integral_assign.
11035 (strlen_dom_walker::evrp): New member.
11036 (strlen_dom_walker::before_dom_children): Use evrp member.
11037 (strlen_dom_walker::after_dom_children): Use evrp member.
11038 (printf_strlen_execute): New function.
11039 (pass_strlen::gate): Update to handle printf calls.
11040 (dump_strlen_info): New function.
11041 (pass_data_warn_printf): New variable.
11042 (pass_warn_printf): New class.
11043 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
11044 (handle_printf_call): Same.
11045 * tree-vrp.c (value_range_base::type): Adjust assertion.
11046 * vr-values.c (vr_values::update_value_range): Use type of the first
11047 argument rather than the second.
11048
11049 2019-08-26 Richard Biener <rguenther@suse.de>
11050
11051 * config/i386/i386-features.c (general_remove_non_convertible_regs):
11052 Remove.
11053 (convert_scalars_to_vector): Do not call it.
11054
11055 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
11056 Uros Bizjak <ubizjak@gmail.com>
11057
11058 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
11059 CASE_MATHFN_FLOATN for roundeven.
11060 * config/i386/i386.c (ix86_i387_mode_needed): Add case
11061 I387_ROUNDEVEN.
11062 (ix86_mode_needed): Likewise.
11063 (ix86_mode_after): Likewise.
11064 (ix86_mode_entry): Likewise.
11065 (ix86_mode_exit): Likewise.
11066 (ix86_emit_mode_set): Likewise.
11067 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
11068 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
11069 (ix86_entity): Add I387_ROUNDEVEN.
11070 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
11071 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
11072 (define_int_iterator): Likewise.
11073 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
11074 (define_constant): Define ROUND_ROUNDEVEN mode.
11075 (define_attr): Add roundeven mode for i387_cw.
11076 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
11077 * internal-fn.def (ROUNDEVEN): New builtin function.
11078 * optabs.def (roundeven_optab): New optab.
11079
11080 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
11081
11082 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
11083 for ROUNDEVEN.
11084 * builtins.def: Added function definitions for roundeven function
11085 variants.
11086 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
11087 function call. Adjust condition for floor, ceil, trunc and round.
11088 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
11089 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
11090 (integer_valued_real_call_p): Added case for roundeven function.
11091 * real.c (is_even): New function. Returns true if real number is even,
11092 otherwise returns false.
11093 (is_halfway_below): New function. Returns true if real number is
11094 halfway between two integers, else return false.
11095 (real_roundeven): New function. Round real number to nearest integer,
11096 rounding halfway cases towards even.
11097 * real.h (real_value): Added descriptive comments. Added function
11098 declaration for roundeven function.
11099 * doc/extend.texi (Other Builtins): List roundeven variants among
11100 functions which can be handled as builtins.
11101
11102 2019-08-26 Richard Biener <rguenther@suse.de>
11103
11104 PR target/91522
11105 PR target/91527
11106 * config/i386/i386-features.h (general_scalar_chain::defs_map):
11107 New member.
11108 (general_scalar_chain::replace_with_subreg): Remove.
11109 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
11110 (general_scalar_chain::convert_reg): Adjust signature.
11111 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
11112 iterate over all defs of a reg.
11113 (general_scalar_chain::replace_with_subreg): Remove.
11114 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
11115 (general_scalar_chain::make_vector_copies): Populate defs_map,
11116 place copy only after defs that are used as vectors in the chain.
11117 (general_scalar_chain::convert_reg): Emit a copy for a specific
11118 def in a specific instruction.
11119 (general_scalar_chain::convert_op): All reg uses are converted here.
11120 (general_scalar_chain::convert_insn): Emit copies for scalar
11121 uses of defs here. Replace uses with the copies we created.
11122 Replace and convert the def. Adjust REG_DEAD notes, remove
11123 REG_EQUIV/EQUAL notes.
11124 (general_scalar_chain::convert_registers): Only handle copies
11125 into the chain here.
11126
11127 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
11128
11129 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
11130
11131 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
11132
11133 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
11134 Add nop_convert case.
11135 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
11136 Fold all statements if requested.
11137 * tree-ssa-propagate.h (class substitute_and_fold_engine):
11138 Allow to fold all statements.
11139 * tree-vrp.c (class vrp_folder):
11140 Let substitute_and_fold_engine fold all statements.
11141
11142 2019-08-26 Richard Biener <rguenther@suse.de>
11143
11144 PR tree-optimization/91526
11145 * passes.def: Note that after late FRE we do TODO_update_address_taken.
11146 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
11147 TODO_update_address_taken.
11148
11149 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
11150
11151 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
11152 __STDC_HOSTED__.
11153
11154 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
11155
11156 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
11157 machine mode for unspec_volatile operand.
11158
11159 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
11160
11161 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
11162 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
11163 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
11164 (prefer_neon_for_64bits): Remove.
11165 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
11166 (tune_params): Remove PREF_NEON_64_FALSE uses.
11167 (arm_option_override): Remove prefer_neon selection code.
11168 (arm_print_tune_info): Remove prefer_neon_for_64bits.
11169 * config/arm/arm-protos.h (tune_params): Remove
11170 prefer_neon_for_64bits.
11171 (prefer_neon_for_64bits): Remove.
11172
11173 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
11174
11175 PR pch/61250
11176 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
11177 and issue any diagnostics needed before collecting the pre-PCH
11178 state.
11179
11180 2019-08-23 Jakub Jelinek <jakub@redhat.com>
11181
11182 PR middle-end/91283
11183 * common.opt (fexcess-precision=): Add Optimization flag. Use
11184 flag_excess_precision variable instead of
11185 flag_excess_precision_cmdline.
11186 * flags.h (class target_flag_state): Remove x_flag_excess_precision
11187 member.
11188 (flag_excess_precision): Don't define.
11189 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
11190 flag_excess_precision_cmdline. Remove comment.
11191 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
11192 and x_flag_excess_precision instead of
11193 frontend_set_flag_excess_precision_cmdline and
11194 x_flag_excess_precision_cmdline.
11195 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
11196 x_flag_excess_precision_cmdline.
11197 * toplev.c (init_excess_precision): Remove.
11198 (lang_dependent_init_target): Don't call it.
11199
11200 2019-08-23 Martin Liska <mliska@suse.cz>
11201
11202 * lto-wrapper.c (run_gcc): When setting jobserver
11203 set also parallel to 1. This was done so before r273908.
11204
11205 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
11206
11207 * config/arm/arm-cpus.in (cortex-m35p): New entry.
11208 (cortex-a76ae): Likewise.
11209 (cortex-a77): Likewise
11210 * config/arm/arm-tables.opt: Regenerate.
11211 * config/arm/arm-tune.md: Likewise.
11212 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
11213 cortex-a77 CPU options.
11214
11215 2019-08-23 Martin Liska <mliska@suse.cz>
11216
11217 * profile.c (instrument_values): Do not set
11218 0 as last argument.
11219 * tree-profile.c (gimple_gen_interval_profiler): Remove
11220 last argument.
11221 (gimple_gen_pow2_profiler): Likewise.
11222 (gimple_gen_topn_values_profiler): Likewise.
11223 (gimple_gen_ic_profiler): Likewise.
11224 (gimple_gen_time_profiler): Likewise.
11225 (gimple_gen_average_profiler): Likewise.
11226 (gimple_gen_ior_profiler): Likewise.
11227 * value-prof.c (dump_histogram_value): Use default
11228 in switch statement instead of HIST_TYPE_MAX.
11229 (stream_in_histogram_value): Likewise.
11230 (gimple_duplicate_stmt_histograms): Do not
11231 use NULL for implicitly set arguments.
11232 (gimple_divmod_values_to_profile): Do not use
11233 reserve+quick_push.
11234 (gimple_indirect_call_to_profile): Likewise.
11235 (gimple_find_values_to_profile): Use implicit
11236 function call arguments.
11237 * value-prof.h (gimple_alloc_histogram_value):
11238 Set default values.
11239 (gimple_gen_interval_profiler): Remove last argument.
11240 (gimple_gen_pow2_profiler): Likewise.
11241 (gimple_gen_topn_values_profiler): Likewise.
11242 (gimple_gen_ic_profiler): Likewise.
11243 (gimple_gen_time_profiler): Likewise.
11244 (gimple_gen_average_profiler): Likewise.
11245 (gimple_gen_ior_profiler): Likewise.
11246
11247 2019-08-22 Martin Sebor <msebor@redhat.com>
11248
11249 PR middle-end/91490
11250 * builtins.c (c_strlen): Rename argument and introduce new local.
11251 Set no-warning bit on original argument.
11252 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
11253 Fold empty and zero constructors into empty strings.
11254 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
11255 for missing initializers.
11256 * tree.c (build_string_literal): Handle optional argument.
11257 * tree.h (build_string_literal): Add defaulted argument.
11258 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
11259 no-warning bit on original expression.
11260
11261 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
11262
11263 PR target/91481
11264 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
11265 and UNSPEC_DARN_RAW.
11266 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
11267 UNSPECV_DARN_RAW.
11268 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
11269 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
11270 (darn): Use an unspec_volatile, and UNSPECV_DARN.
11271
11272 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
11273
11274 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
11275 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
11276 * config/rs6000/rs6000.md (unspec): ... here.
11277 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
11278 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
11279 cmpeqb, *cmpeqb_internal): Delete, move to...
11280 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
11281 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
11282 cmpeqb, *cmpeqb_internal): ... here.
11283
11284 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11285
11286 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
11287 intrinsics if __ARM_FP.
11288 Use __ARM_FEATURE_CRC32 ifdef guard.
11289
11290 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
11291
11292 * config/arm/arm.md (neon_for_64bits): Remove.
11293 (avoid_neon_for_64bits): Remove.
11294 (arm_adddi3): Always split early.
11295 (arm_subdi3): Always split early.
11296 (negdi2): Remove Neon expansion.
11297 (split zero_extend): Split before reload.
11298 (split sign_extend): Split before reload.
11299
11300 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
11301
11302 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
11303 (qhs_extenddi_cstr): Likewise.
11304 * config/arm/arm.md (ashldi3): Always expand early.
11305 (ashlsi3): Likewise.
11306 (ashrsi3): Likewise.
11307 (zero_extend<mode>di2): Remove Neon variants.
11308 (extend<mode>di2): Likewise.
11309 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
11310 (signed_shift_di3_neon): Likewise.
11311 (unsigned_shift_di3_neon): Likewise.
11312 (ashrdi3_neon_imm_noclobber): Likewise.
11313 (lshrdi3_neon_imm_noclobber): Likewise.
11314 (<shift>di3_neon): Likewise.
11315 (split extend): Remove DI extend split patterns.
11316
11317 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
11318
11319 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
11320 (split not): Add DImode not splitter.
11321 (anddi3): Remove pattern.
11322 (anddi3_insn): Likewise.
11323 (anddi_zesidi_di): Likewise.
11324 (anddi_sesdi_di): Likewise.
11325 (anddi_notdi_di): Likewise.
11326 (anddi_notzesidi_di): Likewise.
11327 (anddi_notsesidi_di): Likewise.
11328 (iordi3): Likewise.
11329 (iordi3_insn): Likewise.
11330 (iordi_zesidi_di): Likewise.
11331 (iordi_sesidi_di): Likewise.
11332 (xordi3): Likewise.
11333 (xordi3_insn): Likewise.
11334 (xordi_sesidi_di): Likewise.
11335 (xordi_zesidi_di): Likewise.
11336 (one_cmpldi2): Likewise.
11337 (one_cmpldi2_insn): Likewise.
11338 * config/arm/constraints.md: Remove De, Df, Dg constraints.
11339 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
11340 alternative.
11341 (iwmmxt_xordi3): Likewise.
11342 (iwmmxt_anddi3): Likewise.
11343 * config/arm/neon.md (orndi3_neon): Remove pattern.
11344 (anddi_notdi_di): Likewise.
11345 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
11346 (arm_iordi_operand_neon): Likewise.
11347 (arm_xordi_operand_neon): Likewise.
11348 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
11349 (iordi_notzesidi_di): Likewise.
11350 (iordi_notdi_zesidi): Likewise.
11351 (iordi_notsesidi_di): Likewise.
11352
11353 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
11354
11355 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
11356 insn.
11357 (iorsi3_compare0_scratch): Likewise.
11358
11359 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
11360
11361 * config/aarch64/aarch64-simd-builtins.def:
11362 (ld1x4): New.
11363 (st1x4): Likewise.
11364 * config/aarch64/aarch64-simd.md:
11365 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
11366 (aarch64_st1x4<VALLDIF:mode>): Likewise.
11367 (aarch64_ld1_x4_<mode>): Likewise.
11368 (aarch64_st1_x4_<mode>): Likewise.
11369 * config/aarch64/arm_neon.h:
11370 (vld1_s8_x4): New function.
11371 (vld1q_s8_x4): Likewise.
11372 (vld1_s16_x4): Likewise.
11373 (vld1q_s16_x4): Likewise.
11374 (vld1_s32_x4): Likewise.
11375 (vld1q_s32_x4): Likewise.
11376 (vld1_u8_x4): Likewise.
11377 (vld1q_u8_x4): Likewise.
11378 (vld1_u16_x4): Likewise.
11379 (vld1q_u16_x4): Likewise.
11380 (vld1_u32_x4): Likewise.
11381 (vld1q_u32_x4): Likewise.
11382 (vld1_f16_x4): Likewise.
11383 (vld1q_f16_x4): Likewise.
11384 (vld1_f32_x4): Likewise.
11385 (vld1q_f32_x4): Likewise.
11386 (vld1_p8_x4): Likewise.
11387 (vld1q_p8_x4): Likewise.
11388 (vld1_p16_x4): Likewise.
11389 (vld1q_p16_x4): Likewise.
11390 (vld1_s64_x4): Likewise.
11391 (vld1_u64_x4): Likewise.
11392 (vld1_p64_x4): Likewise.
11393 (vld1q_s64_x4): Likewise.
11394 (vld1q_u64_x4): Likewise.
11395 (vld1q_p64_x4): Likewise.
11396 (vld1_f64_x4): Likewise.
11397 (vld1q_f64_x4): Likewise.
11398 (vst1_s8_x4): Likewise.
11399 (vst1q_s8_x4): Likewise.
11400 (vst1_s16_x4): Likewise.
11401 (vst1q_s16_x4): Likewise.
11402 (vst1_s32_x4): Likewise.
11403 (vst1q_s32_x4): Likewise.
11404 (vst1_u8_x4): Likewise.
11405 (vst1q_u8_x4): Likewise.
11406 (vst1_u16_x4): Likewise.
11407 (vst1q_u16_x4): Likewise.
11408 (vst1_u32_x4): Likewise.
11409 (vst1q_u32_x4): Likewise.
11410 (vst1_f16_x4): Likewise.
11411 (vst1q_f16_x4): Likewise.
11412 (vst1_f32_x4): Likewise.
11413 (vst1q_f32_x4): Likewise.
11414 (vst1_p8_x4): Likewise.
11415 (vst1q_p8_x4): Likewise.
11416 (vst1_p16_x4): Likewise.
11417 (vst1q_p16_x4): Likewise.
11418 (vst1_s64_x4): Likewise.
11419 (vst1_u64_x4): Likewise.
11420 (vst1_p64_x4): Likewise.
11421 (vst1q_s64_x4): Likewise.
11422 (vst1q_u64_x4): Likewise.
11423 (vst1q_p64_x4): Likewise.
11424 (vst1_f64_x4): Likewise.
11425 (vst1q_f64_x4): Likewise.
11426
11427 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11428
11429 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
11430
11431 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11432 Richard Sandiford <richard.sandiford@arm.com>
11433
11434 PR target/88839
11435 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
11436 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
11437
11438 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11439
11440 PR target/90724
11441 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
11442 in reg if it fails aarch64_plus_operand predicate.
11443
11444 2019-08-21 Richard Biener <rguenther@suse.de>
11445
11446 PR tree-optimization/91482
11447 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
11448 BUILT_IN_ASSUME_ALIGNED calls.
11449
11450 2019-08-21 Richard Biener <rguenther@suse.de>
11451
11452 PR target/91498
11453 PR target/91503
11454 * config/i386/i386-features.c
11455 (general_scalar_chain::make_vector_copies): Copy stack temporary
11456 rtx when using it multiple times.
11457 (general_scalar_chain::convert_reg): Likewise.
11458
11459 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
11460
11461 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
11462
11463 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
11464
11465 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
11466 catch more redundant zero initialization cases.
11467 (dse_dom_walker::dse_optimize_stmt): Likewise.
11468
11469 2019-08-20 Richard Biener <rguenther@suse.de>
11470
11471 PR lto/91307
11472 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
11473 by collect2 when targetm.have_ctors_dtors which avoids dragging
11474 in temporary filenames from LTO input objects.
11475
11476 2019-08-20 Richard Biener <rguenther@suse.de>
11477
11478 PR tree-optimization/37242
11479 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
11480 to (T)a + (T)b if we know that a + b does not overflow.
11481
11482 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
11483
11484 PR rtl-optimization/91347
11485 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
11486 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
11487
11488 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11489
11490 * calls.h (function_arg_info): Add a pass_by_reference field,
11491 defaulting to false.
11492 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
11493 when applying pass-by-reference semantics.
11494 (initialize_argument_information): Likewise.
11495 (emit_library_call_value_1): Likewise.
11496 * function.c (assign_parm_data_one): Remove passed_pointer field.
11497 (assign_parm_find_data_types): Don't set it.
11498 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
11499 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
11500 arg.pass_by_reference instead of passed_pointer.
11501
11502 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11503
11504 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
11505 into a single function_arg_info, updating its fields when we
11506 apply pass-by-reference and promotion semantics. Use the
11507 function_arg_info to track the mode rather than keeping it in
11508 a separate local variable.
11509 (initialize_argument_information): Likewise. Base the final
11510 arg_to_skip on this new function_arg_info rather than creating
11511 a new one from scratch.
11512
11513 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11514
11515 * function.c (assign_parm_data_one): Replace passed_type,
11516 promoted_mode and named_arg with a function_arg_info field.
11517 (assign_parm_find_data_types): Remove local variables and
11518 assign directly to "data". Make data->passed_mode shadow
11519 data->arg.mode until promotion, then assign the promoted
11520 mode to data->arg.mode.
11521 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
11522 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
11523 (assign_parm_remove_parallels, assign_parm_setup_block_p)
11524 (assign_parm_setup_block, assign_parm_setup_reg)
11525 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
11526 arg.mode instead of promoted_mode, arg.type instead of passed_type
11527 and arg.named instead of named_arg. Use data->arg for
11528 function_arg_info structures that had the field values passed_type,
11529 promoted_mode and named_arg. Base other function_arg_infos on
11530 data->arg, changing the necessary properties.
11531
11532 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11533
11534 * calls.h (apply_pass_by_reference_rules): Declare.
11535 * calls.c (apply_pass_by_reference_rules): New function.
11536 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
11537 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
11538 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
11539 * function.c (assign_parm_find_data_types): Likewise.
11540 * var-tracking.c (prepare_call_arguments): Likewise.
11541
11542 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11543
11544 * target.def (must_pass_in_stack): Take a function_arg_info instead
11545 of a mode and a type.
11546 * doc/tm.texi: Regenerate.
11547 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
11548 instead of a mode and a type.
11549 (must_pass_in_stack_var_size_or_pad): Likewise.
11550 * calls.c (must_pass_in_stack_var_size): Likewise.
11551 (must_pass_in_stack_var_size_or_pad): Likewise.
11552 (initialize_argument_information): Update call to
11553 targetm.calls.must_pass_in_stack.
11554 (must_pass_va_arg_on_stack): Likewise.
11555 * function.c (assign_parm_find_entry_rtl): Likewise.
11556 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
11557 * config/alpha/alpha.c (alpha_function_arg): Likewise.
11558 (alpha_function_arg_advance): Likewise.
11559 * config/cr16/cr16.c (cr16_function_arg): Likewise.
11560 (cr16_function_arg_advance): Likewise.
11561 * config/cris/cris.c (cris_pass_by_reference): Likewise.
11562 (cris_arg_partial_bytes): Likewise.
11563 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
11564 * config/lm32/lm32.c (lm32_function_arg): Likewise.
11565 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
11566 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
11567 * config/mips/mips.c (mips_pass_by_reference): Likewise.
11568 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
11569 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
11570 * config/sh/sh.c (sh_pass_by_reference): Likewise.
11571 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
11572 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
11573 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
11574 instead of a mode and a type.
11575 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
11576 (fr30_num_arg_regs): Likewise.
11577 (fr30_setup_incoming_varargs): Update calls accordingly.
11578 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
11579 (fr30_function_arg_advance): Likewise.
11580 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
11581 instead of a mode and a type.
11582 * config/gcn/gcn.c (num_arg_regs): Likewise.
11583 (gcn_function_arg, gcn_function_arg_advance): Update calls to
11584 num_arg_regs and targetm.calls.must_pass_in_stack.
11585 (gcn_arg_partial_bytes): Likewise.
11586 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
11587 function_arg_info instead of a mode and a type.
11588 (classify_argument): Update call accordingly.
11589 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
11590 function_arg_info instead of a mode and a type.
11591 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
11592 Likewise.
11593 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
11594 (rs6000_parm_needs_stack): Update call accordingly.
11595 (setup_incoming_varargs): Likewise.
11596
11597 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11598
11599 * target.def (callee_copies): Take a function_arg_info instead
11600 of a mode, type and named flag.
11601 * doc/tm.texi: Regenerate.
11602 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
11603 instead of a mode, type and named flag.
11604 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
11605 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11606 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
11607 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
11608 instead of a mode, type and named flag.
11609 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
11610 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11611 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
11612 * calls.h (reference_callee_copied): Take a function_arg_info
11613 instead of a mode, type and named flag.
11614 * calls.c (reference_callee_copied): Likewise.
11615 (initialize_argument_information): Update call accordingly.
11616 (emit_library_call_value_1): Likewise.
11617 * function.c (gimplify_parameters): Likewise.
11618 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
11619 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
11620 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
11621 * config/c6x/c6x.c (c6x_callee_copies): Delete.
11622 (TARGET_CALLEE_COPIES): Define to
11623 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
11624 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
11625 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
11626 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
11627 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
11628 instead of a mode, type and named flag.
11629 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
11630 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
11631 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
11632 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
11633 * config/msp430/msp430.c (msp430_callee_copies): Delete.
11634 (TARGET_CALLEE_COPIES): Define to
11635 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
11636 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
11637 instead of a mode, type and named flag.
11638 * config/sh/sh.c (sh_callee_copies): Likewise.
11639 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
11640 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
11641 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
11642
11643 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11644
11645 * target.def (function_arg_advance): Take a function_arg_info instead
11646 of a mode, type and named flag.
11647 * doc/tm.texi: Regenerate.
11648 * targhooks.h (default_function_arg_advance): Take a function_arg_info
11649 instead of a mode, type and named flag.
11650 * targhooks.c (default_function_arg_advance): Likewise.
11651 * calls.c (initialize_argument_information): Update call to
11652 targetm.calls.function_arg_advance.
11653 (emit_library_call_value_1): Likewise.
11654 * dse.c (get_call_args): Likewise.
11655 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11656 * function.c (assign_parms, gimplify_parameters): Likewise.
11657 * var-tracking.c (prepare_call_arguments): Likewise.
11658 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
11659 function_arg_info instead of a mode, type and named flag.
11660 (aarch64_setup_incoming_varargs): Update call accordingly.
11661 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
11662 function_arg_info instead of a mode, type and named flag.
11663 (alpha_setup_incoming_varargs): Update call accordingly.
11664 * config/arc/arc.c (arc_function_arg_advance): Take a
11665 function_arg_info instead of a mode, type and named flag.
11666 (arc_setup_incoming_varargs): Update call accordingly.
11667 * config/arm/arm.c (arm_function_arg_advance): Take a
11668 function_arg_info instead of a mode, type and named flag.
11669 (cmse_func_args_or_return_in_stack): Update call accordingly.
11670 (arm_function_ok_for_sibcall): Likewise.
11671 (cmse_nonsecure_call_clear_caller_saved): Likewise.
11672 * config/avr/avr.c (avr_function_arg_advance): Take a
11673 function_arg_info instead of a mode, type and named flag.
11674 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
11675 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
11676 (c6x_call_saved_register_used): Update call accordingly.
11677 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
11678 function_arg_info instead of a mode, type and named flag.
11679 * config/cris/cris.c (cris_function_arg_advance): Likewise.
11680 * config/csky/csky.c (csky_function_arg_advance): Likewise.
11681 (csky_setup_incoming_varargs): Update call accordingly.
11682 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
11683 function_arg_info instead of a mode, type and named flag.
11684 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
11685 * config/frv/frv.c (frv_function_arg_advance): Likewise.
11686 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
11687 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
11688 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
11689 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
11690 (ix86_setup_incoming_varargs): Update call accordingly.
11691 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
11692 function_arg_info instead of a mode, type and named flag.
11693 (ia64_setup_incoming_varargs): Update call accordingly.
11694 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
11695 function_arg_info instead of a mode, type and named flag.
11696 (iq2000_expand_prologue): Update call accordingly.
11697 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
11698 function_arg_info instead of a mode, type and named flag.
11699 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
11700 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
11701 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
11702 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
11703 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
11704 Likewise.
11705 (microblaze_expand_prologue): Update call accordingly.
11706 * config/mips/mips.c (mips_function_arg_advance): Take a
11707 function_arg_info instead of a mode, type and named flag.
11708 (mips_setup_incoming_varargs): Update call accordingly.
11709 (mips_output_args_xfer): Likewise.
11710 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
11711 function_arg_info instead of a mode, type and named flag.
11712 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
11713 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
11714 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
11715 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
11716 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
11717 (nios2_setup_incoming_varargs): Update call accordingly.
11718 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
11719 function_arg_info instead of a mode, type and named flag.
11720 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
11721 * config/pa/pa.c (pa_function_arg_advance): Likewise.
11722 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
11723 * config/pru/pru.c (pru_function_arg_advance): Likewise.
11724 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
11725 (riscv_setup_incoming_varargs): Update call accordingly.
11726 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
11727 function_arg_info instead of a mode, type and named flag.
11728 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
11729 Likewise.
11730 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
11731 (rs6000_parm_needs_stack): Update call accordingly.
11732 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
11733 instead of a mode, type and named flag.
11734 * config/s390/s390.c (s390_function_arg_advance): Likewise.
11735 (s390_call_saved_register_used): Update call accordingly.
11736 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
11737 instead of a mode, type and named flag.
11738 (sh_output_mi_thunk): Update call accordingly.
11739 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
11740 function_arg_info instead of a mode, type and named flag.
11741 * config/spu/spu.c (spu_function_arg_advance): Likewise.
11742 (spu_setup_incoming_varargs): Update call accordingly.
11743 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
11744 function_arg_info instead of a mode, type and named flag.
11745 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
11746 (tilegx_setup_incoming_varargs): Update call accordingly.
11747 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
11748 function_arg_info instead of a mode, type and named flag.
11749 (tilegx_setup_incoming_varargs): Update call accordingly.
11750 * config/v850/v850.c (v850_function_arg_advance): Take a
11751 function_arg_info instead of a mode, type and named flag.
11752 * config/vax/vax.c (vax_function_arg_advance): Likewise.
11753 * config/visium/visium.c (visium_function_arg_advance): Likewise.
11754 (visium_setup_incoming_varargs): Update call accordingly.
11755 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
11756 function_arg_info instead of a mode, type and named flag.
11757
11758 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11759
11760 * target.def (function_arg, function_incoming_arg): Take a
11761 function_arg_info instead of a mode, tree and named flag.
11762 * doc/tm.texi: Regenerate.
11763 * targhooks.h (default_function_arg): Take a function_arg_info
11764 instead of a mode, tree and named flag.
11765 (default_function_incoming_arg): Likewise.
11766 * targhooks.c (default_function_arg): Likewise.
11767 (default_function_incoming_arg): Likewise.
11768 * calls.h (function_arg_info::end_marker_p): New function.
11769 (function_arg_info::end_marker): Likewise.
11770 * calls.c (prepare_call_address, initialize_argument_information)
11771 (expand_call, emit_library_call_value_1): Update calls to
11772 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
11773 * dse.c: Include calls.h.
11774 (get_call_args): Update call to targetm.calls.function_arg.
11775 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11776 * var-tracking.c (prepare_call_arguments): Likewise.
11777 * function.c (assign_parm_find_entry_rtl): Update call to
11778 targetm.calls.function_incoming_arg.
11779 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
11780 function_arg_info instead of a mode, tree and named flag.
11781 * config/alpha/alpha.c (alpha_function_arg): Likewise.
11782 * config/arc/arc.c (arc_function_arg): Likewise.
11783 * config/arm/arm.c (arm_function_arg): Likewise.
11784 (cmse_func_args_or_return_in_stack): Update call accordingly.
11785 (arm_function_ok_for_sibcall): Likewise.
11786 (cmse_nonsecure_call_clear_caller_saved): Likewise.
11787 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
11788 instead of a mode, tree and named flag.
11789 * config/bfin/bfin.c (bfin_function_arg): Likewise.
11790 * config/c6x/c6x.c (c6x_function_arg): Likewise.
11791 (c6x_call_saved_register_used): Update call accordingly.
11792 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
11793 instead of a mode, tree and named flag.
11794 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
11795 (cris_function_arg_1): Likewise.
11796 * config/csky/csky.c (csky_function_arg): Likewise.
11797 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
11798 * config/fr30/fr30.c (fr30_function_arg): Likewise.
11799 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
11800 (frv_function_arg_1): Likewise.
11801 * config/ft32/ft32.c (ft32_function_arg): Likewise.
11802 * config/gcn/gcn.c (gcn_function_arg): Likewise.
11803 * config/h8300/h8300.c (h8300_function_arg): Likewise.
11804 * config/i386/i386.c (ix86_function_arg): Likewise.
11805 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
11806 (ia64_function_arg_1): Likewise.
11807 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
11808 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
11809 accordingly.
11810 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
11811 instead of a mode, tree and named flag.
11812 * config/m32c/m32c.c (m32c_function_arg): Likewise.
11813 * config/m32r/m32r.c (m32r_function_arg): Likewise.
11814 * config/m68k/m68k.c (m68k_function_arg): Likewise.
11815 * config/mcore/mcore.c (mcore_function_arg): Likewise.
11816 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
11817 (microblaze_expand_prologue): Update call accordingly.
11818 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
11819 instead of a mode, tree and named flag.
11820 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
11821 (mmix_function_arg_1): Likewise.
11822 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
11823 * config/moxie/moxie.c (moxie_function_arg): Likewise.
11824 * config/msp430/msp430.c (msp430_function_arg): Likewise.
11825 * config/nds32/nds32.c (nds32_function_arg): Likewise.
11826 * config/nios2/nios2.c (nios2_function_arg): Likewise.
11827 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
11828 (nvptx_function_incoming_arg): Likewise.
11829 * config/or1k/or1k.c (or1k_function_arg): Likewise.
11830 * config/pa/pa.c (pa_function_arg): Likewise.
11831 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
11832 * config/pru/pru.c (pru_function_arg): Likewise.
11833 * config/riscv/riscv.c (riscv_function_arg): Likewise.
11834 * config/rl78/rl78.c (rl78_function_arg): Likewise.
11835 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
11836 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
11837 (rs6000_parm_needs_stack): Update call accordingly.
11838 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
11839 instead of a mode, tree and named flag.
11840 * config/s390/s390.c (s390_function_arg): Likewise.
11841 (s390_call_saved_register_used): Update call accordingly.
11842 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
11843 instead of a mode, tree and named flag.
11844 (sh_output_mi_thunk): Update call accordingly.
11845 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
11846 (sparc_function_incoming_arg): Take a function_arg_info instead of
11847 a mode, tree and named flag.
11848 * config/spu/spu.c (spu_function_arg): Likewise.
11849 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
11850 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
11851 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
11852 * config/v850/v850.c (v850_function_arg): Likewise.
11853 * config/vax/vax.c (vax_function_arg): Likewise.
11854 * config/visium/visium.c (visium_function_arg): Likewise.
11855 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
11856 (xtensa_function_incoming_arg): Likewise.
11857
11858 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11859
11860 * target.def (setup_incoming_varargs): Take a function_arg_info
11861 instead of a mode and tree.
11862 * doc/tm.texi: Regenerate.
11863 * targhooks.h (default_setup_incoming_varargs): Take a
11864 function_arg_info instead of a mode and tree.
11865 * targhooks.c (default_setup_incoming_varargs): Likewise.
11866 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
11867 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
11868 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
11869 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
11870 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
11871 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
11872 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
11873 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
11874 Likewise.
11875 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
11876 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
11877 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
11878 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
11879 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
11880 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
11881 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11882 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
11883 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
11884 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
11885 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
11886 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
11887 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
11888 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
11889 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
11890 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
11891 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
11892 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
11893 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
11894 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
11895 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
11896 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
11897 * function.c (assign_parms_setup_varargs): Update call to
11898 targetm.calls.setup_incoming_varargs.
11899
11900 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11901
11902 * target.def (pass_by_reference): Take a function_arg_info instead
11903 of a mode, type and named flag.
11904 * doc/tm.texi: Regenerate.
11905 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
11906 accordingly.
11907 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
11908 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
11909 function_arg_info instead of a mode, type and named flag.
11910 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
11911 * calls.h (pass_by_reference): Take a function_arg_info instead of a
11912 mode, type and named flag.
11913 * calls.c (pass_by_reference): Likewise.
11914 (pass_va_arg_by_reference): Update call accordingly.
11915 (initialize_argument_information): Likewise.
11916 (emit_library_call_value_1): Likewise.
11917 * function.c (assign_parm_find_data_types): Likewise.
11918 * var-tracking.c (prepare_call_arguments): Likewise.
11919 * stor-layout.c: Include calls.h.
11920 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
11921 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
11922 function_arg_info instead of a mode, type and named flag.
11923 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
11924 * config/arc/arc.c (arc_pass_by_reference): Likewise.
11925 * config/arm/arm.c (arm_pass_by_reference): Likewise.
11926 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
11927 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
11928 (c6x_call_saved_register_used): Update call to pass_by_reference.
11929 * config/cris/cris.c (cris_pass_by_reference): Take a
11930 function_arg_info instead of a mode, type and named flag.
11931 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
11932 function_arg_info instead of a mode, type and named flag.
11933 (epiphany_arg_partial_bytes): Update call accordingly.
11934 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
11935 function_arg_info instead of a mode, type and named flag.
11936 (ft32_arg_partial_bytes): Update call accordingly.
11937 * config/i386/i386.c (ix86_pass_by_reference): Take a
11938 function_arg_info instead of a mode, type and named flag.
11939 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
11940 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
11941 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
11942 (m32r_return_in_memory): Update call accordingly.
11943 * config/mips/mips.c (mips_pass_by_reference): Take a
11944 function_arg_info instead of a mode, type and named flag.
11945 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
11946 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
11947 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
11948 (moxie_arg_partial_bytes): Update call accordingly.
11949 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
11950 function_arg_info instead of a mode, type and named flag.
11951 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
11952 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
11953 * config/pa/pa.c (pa_pass_by_reference): Likewise.
11954 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
11955 (riscv_return_in_memory): Update call accordingly.
11956 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
11957 function_arg_info instead of a mode, type and named flag.
11958 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
11959 (rs6000_parm_needs_stack): Update call to pass_by_reference.
11960 * config/s390/s390.c (s390_pass_by_reference): Take a
11961 function_arg_info instead of a mode, type and named flag.
11962 (s390_call_saved_register_used): Update call accordingly.
11963 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
11964 instead of a mode, type and named flag.
11965 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
11966 * config/spu/spu.c (spu_pass_by_reference): Likewise.
11967 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
11968 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
11969 * config/v850/v850.c (v850_pass_by_reference): Likewise.
11970 * config/visium/visium.c (visium_pass_by_reference): Likewise.
11971
11972 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11973
11974 * target.def (arg_partial_bytes): Take a function_arg_info instead
11975 of a mode, type and named flag.
11976 * doc/tm.texi: Regenerate.
11977 * target.h (function_arg_info): Declare.
11978 * calls.h (function_arg_info): New class.
11979 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
11980 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
11981 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
11982 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
11983 * calls.c (initialize_argument_information): Update call to
11984 targetm.calls.partial_bytes.
11985 (emit_library_call_value_1): Likewise.
11986 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11987 * function.c (assign_parm_find_entry_rtl): Likewise.
11988 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
11989 function_arg_info instead of a mode, type and named flag.
11990 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
11991 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
11992 (cmse_func_args_or_return_in_stack): Update accordingly.
11993 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
11994 function_arg_info instead of a mode, type and named flag.
11995 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
11996 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
11997 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
11998 * config/fr30/fr30.c: Include calls.h.
11999 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
12000 type and named flag.
12001 * config/frv/frv.c: Include calls.h.
12002 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
12003 type and named flag.
12004 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
12005 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
12006 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
12007 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
12008 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
12009 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
12010 * config/microblaze/microblaze.c (function_arg_partial_bytes):
12011 Likewise.
12012 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
12013 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
12014 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
12015 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
12016 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
12017 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
12018 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
12019 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
12020 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
12021 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
12022 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
12023 (rs6000_parm_needs_stack): Update call accordingly.
12024 * config/sh/sh.c (sh_arg_partial_bytes): Take a
12025 function_arg_info instead of a mode, type and named flag.
12026 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
12027 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
12028
12029 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12030
12031 * calls.h (must_pass_va_arg_in_stack): Declare.
12032 * calls.c (must_pass_va_arg_in_stack): New function.
12033 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
12034 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
12035 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
12036 Likewise.
12037 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
12038
12039 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12040
12041 * calls.h (pass_va_arg_by_reference): Declare.
12042 * calls.c (pass_va_arg_by_reference): New function.
12043 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
12044 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
12045 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
12046 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
12047 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
12048 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
12049 (mips_gimplify_va_arg_expr): Likewise.
12050 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
12051 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
12052 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
12053 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
12054 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
12055 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
12056 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
12057 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
12058 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
12059 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
12060 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
12061
12062 2019-08-20 Richard Biener <rguenther@suse.de>
12063
12064 PR target/91498
12065 * config/i386/i386-features.c (general_scalar_chain::convert_op):
12066 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
12067 (convert_scalars_to_vector): Add timode_p parameter and use it
12068 to guard TImode-only operation.
12069 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
12070 (pass_stv::execute): Pass down timode_p.
12071
12072 2019-08-20 Lili Cui <lili.cui@intel.com>
12073
12074 * common/config/i386/i386-common.c
12075 (processor_names): Add tigerlake and cooperlake.
12076 (processor_alias_table): Add tigerlake and cooperlake.
12077 * config.gcc: Add -march=tigerlake and cooperlake.
12078 * config/i386/driver-i386.c
12079 (host_detect_local_cpu): Detect tigerlake and cooperlake.
12080 Add "has_avx" to classify processor.
12081 * config/i386/i386-builtins.c (processor_model) :
12082 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
12083 (arch_names_table): Add tigerlake and cooperlake.
12084 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
12085 and PROCESSOR_COOPERLAKE.
12086 * config/i386/i386-c.c
12087 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
12088 * config/i386/i386-options.c
12089 (m_TIGERLAKE): Define.
12090 (m_COOPERLAKE): Ditto.
12091 (m_CORE_AVX512): Ditto.
12092 (processor_cost_table): Add cascadelake.
12093 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
12094 * config/i386/i386.h
12095 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
12096 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
12097 (PTA_MOVDIRI): Ditto.
12098 (PTA_MOVDIR64B): Ditto.
12099 (PTA_COOPERLAKE): Ditto.
12100 (PTA_TIGERLAKE): Ditto.
12101 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
12102 * doc/extend.texi: Add tigerlake and cooperlake.
12103 * doc/invoke.texi: Add tigerlake and cooperlake.
12104
12105 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
12106
12107 * doc/install.texi (Specific, alpha): Remove note to use
12108 binutils 2.11.2 or later.
12109
12110 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12111
12112 PR middle-end/89544
12113 * function.c (assign_parm_find_stack_rtl): Use larger alignment
12114 when possible.
12115
12116 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
12117
12118 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
12119 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
12120 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
12121 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
12122 * config/aarch64/constraints.md (Dt): New constraint
12123 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
12124
12125 2019-08-19 Richard Biener <rguenther@suse.de>
12126
12127 PR tree-optimization/91403
12128 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
12129 cases we can handle with tail-recursion...
12130 (follow_ssa_edge_expr): ... here. Do so.
12131
12132 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
12133
12134 PR target/91441
12135 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
12136 implemented for -fsanitize=kernel-address, and merge check logic
12137 with -fsanitize=address.
12138
12139 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
12140
12141 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
12142 for cpu and machine. Factor 64/32b builtins.
12143
12144 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
12145
12146 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
12147 gone, point to sourceforge.net.
12148
12149 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
12150
12151 * doc/ux.texi (User Experience Guidelines): Update reference.
12152
12153 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
12154
12155 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
12156 not LGPL".
12157
12158 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
12159
12160 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
12161 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
12162
12163 2019-08-16 Martin Sebor <msebor@redhat.com>
12164
12165 * tree.def (TYPE_SIZE): Clarify.
12166 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
12167
12168 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
12169
12170 PR tree-optimization/91109
12171 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
12172 * lra.c (lra): Use lra_need_for_scratch_reg_p.
12173 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
12174
12175 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
12176
12177 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
12178 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
12179 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
12180 (uavg<mode>3_ceil): New expander.
12181 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
12182 mode iterator when creating CONST1_RTX.
12183 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
12184 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
12185 mode iterator for const1_operand predicate.
12186
12187 2019-08-16 Richard Biener <rguenther@suse.de>
12188
12189 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
12190 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
12191 follow_ssa_edge.
12192 (follow_ssa_edge_in_condition_phi_branch): Likewise.
12193 (analyze_evolution_in_loop): Likewise.
12194 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
12195 (follow_ssa_edge_expr): ... here. Refactor code.
12196
12197 2019-08-16 Richard Biener <rguenther@suse.de>
12198
12199 PR target/91469
12200 * config/i386/i386-features.c
12201 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
12202
12203 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12204
12205 PR other/91255
12206 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
12207 only if subst_name matches curr_attr string.
12208
12209 2019-08-16 Richard Biener <rguenther@suse.de>
12210
12211 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
12212 stmt at gsi_p, instead replace it with a NOP removed later.
12213 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
12214 that became dead because of that.
12215
12216 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
12217
12218 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
12219 for which we can't represent a range.
12220 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
12221 set_varying.
12222 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
12223 Set VR_UNDEFINED if type is not supported.
12224 * tree-ssanames.c (get_range_info): Pass type to set_varying.
12225 * tree-vrp.c (value_range_base::check): Assert that a varying has
12226 min/max set.
12227 (value_range_base::equal_p): Early bail for undefines.
12228 (value_range_base::set_varying): Accept a type.
12229 (value_range::set_varying): Same.
12230 (value_range_base::type): VARYING can have a type, while UNDEFINE
12231 is typeless.
12232 (value_range_base::dump): Print type for VARYING nodes.
12233 (value_range_base::set): Add type to VARYING.
12234 (extract_range_from_multiplicative_op): Pass type to set_varying.
12235 (extract_range_from_binary_expr): Same.
12236 (value_range_base::intersect_helper): Same.
12237 (value_range_base::union_helper): Same.
12238 (value_range_base::normalize_symbolics): Same.
12239 (determine_value_range_1): Same.
12240 * tree-vrp.h (class value_range_base): Add type to set_varying.
12241 Add prototype for dump(void).
12242 Add prototype for supports_type_p.
12243 (class value_range): Add type to set_varying.
12244 Add prototype for dump(void).
12245 * vr-values.c (set_value_range_to_truthvalue): Pass type to
12246 set_varying.
12247 (vr_values::get_lattice_entry): Set varying even if propagation
12248 finished.
12249 Pass type to set_varying.
12250 (vr_values::get_value_range): Remove vr_const_varying.
12251 Reallocate the lattice if needed.
12252 (vr_values::update_value_range): Pass type to set_varying.
12253 (vr_values::extract_range_for_var_from_comparison_expr): Same.
12254 (vr_values::extract_range_from_binary_expr): Same.
12255 (vr_values::extract_range_from_unary_expr): Same.
12256 (vr_values::extract_range_from_cond_expr): Same.
12257 (vr_values::check_for_binary_op_overflow): Same.
12258 (vr_values::extract_range_basic): Same.
12259 (vr_values::extract_range_from_assignment): Same.
12260 (vr_values::vr_values): Increase size of num_vr_values.
12261 (vr_values::extract_range_from_phi_node): Pass type to
12262 set_varying.
12263
12264 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
12265
12266 PR target/90878
12267 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
12268 for costs of hard register moves.
12269 (ix86_register_move_cost): Likewise.
12270 * config/i386/i386.h (processor_costs): Move costs of hard
12271 register moves to hard_register. Add int_load, int_store,
12272 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
12273 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
12274 for costs of RTL expressions.
12275 * config/i386/x86-tune-costs.h: Move costs of hard register
12276 moves to hard_register. Duplicate int_load, int_store,
12277 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
12278 sse_load, sse_store for costs of RTL expressions.
12279
12280 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12281
12282 * target.def (setup_incoming_vararg_bounds): Remove.
12283 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
12284 * doc/tm.texi: Regenerate.
12285 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
12286 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
12287 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
12288 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
12289
12290 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12291
12292 MSP430: Fix lines over 80 characters long in
12293 config/msp430/*.{c,h} files
12294
12295 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
12296 specifier in string.
12297 (msp430_select_hwmult_lib): Split line more than 80 characters long.
12298 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
12299 redundant old comment.
12300 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
12301 Split line more than 80 characters long.
12302 * config/msp430/msp430.c (msp430_option_override): Likewise.
12303 (msp430_return_in_memory): Likewise.
12304 (msp430_gimplify_va_arg_expr): Likewise.
12305 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
12306 (msp430_legitimate_constant): Likewise.
12307 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
12308 (msp430_attr): Likewise.
12309 (msp430_data_attr): Likewise.
12310 (msp430_start_function): Likewise.
12311 (gen_prefix): Likewise.
12312 (msp430_init_sections): Likewise.
12313 (msp430_select_section): Likewise.
12314 (msp430_function_section): Likewise.
12315 (msp430_unique_section): Likewise.
12316 (msp430_output_aligned_decl_common): Likewise.
12317 (msp430_do_not_relax_short_jumps): Likewise.
12318 (msp430_init_builtins): Likewise.
12319 (msp430_expand_delay_cycles): Likewise.
12320 (msp430_expand_prologue): Likewise.
12321 (msp430_expand_epilogue): Likewise.
12322 (msp430_expand_helper): Likewise.
12323 (msp430_split_movsi): Likewise.
12324 (msp430_print_operand): Likewise.
12325 (msp430_return_addr_rtx): Likewise.
12326 (msp430x_extendhisi): Likewise.
12327 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
12328 (ASM_SPEC): Likewise.
12329 Remove very obvious comments.
12330 (LIB_SPEC): Split line more than 80 characters long.
12331 (EH_RETURN_HANDLER_RTX): Likewise.
12332 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12333
12334 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12335
12336 MSP430: Fix whitespace errors and incorrect indentation in
12337 config/msp430/*.{c,h} files
12338
12339 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
12340 (msp430_select_hwmult_lib): Likewise.
12341 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
12342 (msp430_extract_mcu_data): Likewise.
12343 (struct t_msp430_mcu_data): Likewise.
12344 * config/msp430/msp430.c (struct machine_function): Remove whitespace
12345 before left square bracket.
12346 (msp430_option_override): Fix indentation.
12347 (msp430_hard_regno_nregs_with_padding): Likewise.
12348 (msp430_initial_elimination_offset): Likewise.
12349 (msp430_special_register_convention_p): Remove whitespace before left
12350 square bracket and after exclamation mark.
12351 (msp430_evaluate_arg): Likewise.
12352 (msp430_callee_copies): Fix indentation.
12353 (msp430_gimplify_va_arg_expr): Likewise.
12354 (msp430_function_arg_advance): Remove whitespace before left square
12355 bracket.
12356 (reg_ok_for_addr): Likewise.
12357 (msp430_preserve_reg_p): Likewise.
12358 (msp430_compute_frame_info): Likewise.
12359 (msp430_asm_output_addr_const_extra): Add space between function name
12360 and open parenthesis.
12361 (has_section_name): Fix indentation.
12362 (msp430_attr): Remove trailing whitespace.
12363 (msp430_section_attr): Likewise.
12364 (msp430_data_attr): Likewise.
12365 (struct msp430_attribute_table): Fix comment and whitespace.
12366 (msp430_start_function): Remove whitespace before left square bracket.
12367 Add space between function name and open parenthesis.
12368 (msp430_select_section): Remove trailing whitespace.
12369 (msp430_section_type_flags): Remove trailing whitespace.
12370 (msp430_unique_section): Remove space before closing parenthesis.
12371 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
12372 (msp430_builtins): Remove whitespace before left square bracket.
12373 (msp430_init_builtins): Fix indentation.
12374 (msp430_expand_prologue): Remove whitespace before left square bracket.
12375 Remove space before closing parenthesis.
12376 (msp430_expand_epilogue): Remove whitespace before left square bracket.
12377 (msp430_split_movsi): Remove space before closing parenthesis.
12378 (helper_function_name_mappings): Fix indentation.
12379 (msp430_use_f5_series_hwmult): Fix whitespace.
12380 (use_32bit_hwmult): Likewise.
12381 (msp430_no_hwmult): Likewise.
12382 (msp430_output_labelref): Remove whitespace before left square bracket.
12383 (msp430_print_operand_raw): Likewise.
12384 (msp430_print_operand_addr): Likewise.
12385 (msp430_print_operand): Add two spaces after '.' in comment.
12386 Fix trailing whitespace.
12387 (msp430x_extendhisi): Fix indentation.
12388 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
12389 tab.
12390 (PC_REGNUM): Likewise.
12391 (STACK_POINTER_REGNUM): Likewise.
12392 (CC_REGNUM): Likewise.
12393
12394 2019-08-15 Richard Biener <rguenther@suse.de>
12395
12396 PR target/91454
12397 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
12398 helper.
12399 (general_scalar_chain::make_vector_copies): Use it.
12400
12401 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
12402
12403 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
12404
12405 2019-08-15 Martin Liska <mliska@suse.cz>
12406
12407 * tree-ssa-dce.c (propagate_necessity): We can't reach now
12408 operators with no arguments.
12409 (eliminate_unnecessary_stmts): Likewise here.
12410
12411 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
12412
12413 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
12414 <case COMPARE>: Revert 2019-08-14 change.
12415 (convertible_comparison_p): Revert 2019-08-14 change. Return false
12416 for (TARGET_64BIT || mode != DImode).
12417
12418 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
12419
12420 * tree-vrp.c (value_range_base::set): Merge in code from
12421 value_range_base::set_and_canonicalize.
12422 Enforce canonicalization at set time.
12423 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
12424 (value_range_base::set_undefined): Inline call to set().
12425 (value_range_base::set_varying): Same.
12426 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
12427 (vrp_val_max): New argument handle_pointers.
12428 (vrp_val_min): Same.
12429 (ranges_from_anti_range): Same.
12430 (extract_range_into_wide_ints): Use tree argument instead of sign
12431 and precision.
12432 (extract_range_from_multiplicative_op): Take in tree type instead
12433 of precision and sign. Adapt function for canonicalized ranges.
12434 (extract_range_from_binary_expr): Pass type to
12435 extract_range_from_multiplicative_op.
12436 Adapt for canonicalized ranges.
12437 (extract_range_from_unary_expr): Same.
12438 (value_range_base::intersect_helper): Adjust for canonicalized
12439 ranges.
12440 (value_range_base::union_helper): Same.
12441 (value_range_base::normalize_symbolics): New.
12442 * tree-vrp.h (class value_range_base): Remove
12443 set_and_canonicalize.
12444 New prototype for normalize_symbolics.
12445 (class value_range): Remove set_and_canonicalize.
12446 (vrp_val_min): Adjust prototype.
12447 (vrp_val_max): Same.
12448 * vr-values.c
12449 (vr_values::extract_range_for_var_from_comparison_expr): Call set
12450 instead of set_and_canonicalize.
12451
12452 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12453
12454 PR middle-end/91444
12455 * tree-vect-stmts.c (vectorizable_call): Check that the function
12456 is a BUILT_IN_MD function before passing it to
12457 targetm.vectorize.builtin_md_vectorized_function.
12458
12459 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12460
12461 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
12462 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
12463 (aarch64_select_early_remat_modes): Use it.
12464
12465 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12466
12467 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
12468 16 for SVE predicates even if they are fixed-length.
12469
12470 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12471
12472 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
12473 operand order match the MOV /Z alias.
12474
12475 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12476
12477 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
12478 the vector pattern as an aarch64_svpattern argument. Update the
12479 overloaded caller accordingly.
12480 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
12481 (aarch64_output_sve_vector_inc_dec): Likewise.
12482
12483 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12484
12485 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
12486 multiplication case, try to compute VG * (lowest set bit) directly
12487 rather than always basing the multiplication on VG. Use
12488 expand_mult for the multiplication if we can.
12489
12490 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12491
12492 * config/aarch64/aarch64-protos.h
12493 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
12494 (aarch64_sve_inc_dec_immediate_p): Rename to...
12495 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
12496 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
12497 (aarch64_output_sve_scalar_inc_dec): Declare.
12498 (aarch64_output_sve_inc_dec_immediate): Rename to...
12499 (aarch64_output_sve_vector_inc_dec): ...this.
12500 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
12501 (aarch64_output_sve_scalar_inc_dec): New functions.
12502 (aarch64_output_sve_addvl_addpl): Remove the base and offset
12503 arguments. Only handle true ADDVL and ADDPL instructions;
12504 don't emit an INC or DEC.
12505 (aarch64_sve_inc_dec_immediate_p): Rename to...
12506 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
12507 (aarch64_output_sve_inc_dec_immediate): Rename to...
12508 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
12509 aarch64_sve_vector_inc_dec_immediate_p.
12510 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
12511 (aarch64_sve_plus_immediate): New predicates.
12512 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
12513 rather than aarch64_sve_addvl_addpl_immediate.
12514 (aarch64_sve_inc_dec_immediate): Rename to...
12515 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
12516 aarch64_sve_vector_inc_dec_immediate_p.
12517 (aarch64_sve_add_operand): Update accordingly.
12518 * config/aarch64/constraints.md (Uai): New constraint.
12519 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
12520 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
12521 operand into a register if it satisfies aarch64_sve_plus_immediate.
12522 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
12523 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
12524 * config/aarch64/aarch64-sve.md (add<mode>3): Call
12525 aarch64_output_sve_vector_inc_dec instead of
12526 aarch64_output_sve_inc_dec_immediate.
12527
12528 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12529
12530 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
12531 (UNSPEC_REVW): New constants.
12532 (elem_bits): New mode attribute.
12533 (SVE_INT_UNARY): New int iterator.
12534 (optab): Handle UNSPEC_REV[BHW].
12535 (sve_int_op): New int attribute.
12536 (min_elem_bits): Handle VNx16QI and the predicate modes.
12537 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
12538 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
12539 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
12540 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
12541 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
12542 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
12543 unspecs based on the total width of the reversed data.
12544 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
12545 reinterpret followed by a subreg on big-endian targets.
12546
12547 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12548 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12549
12550 * config/aarch64/aarch64-sve.md
12551 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
12552 alternatives in which one of the inputs is in the same register
12553 as the output.
12554
12555 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12556
12557 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
12558 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
12559
12560 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12561
12562 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
12563 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
12564
12565 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12566 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12567
12568 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
12569 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
12570 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
12571
12572 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12573 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12574
12575 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
12576 Add an alternative that uses reversed shifts.
12577
12578 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12579
12580 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
12581 struct.
12582
12583 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12584
12585 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
12586 a commutativity marker.
12587
12588 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12589 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12590
12591 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
12592 (aarch64_prepare_sve_cond_int_fma): Declare.
12593 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
12594 (aarch64_prepare_sve_int_fma): New functions.
12595 (aarch64_prepare_sve_cond_int_fma): Likewise.
12596 * config/aarch64/aarch64-sve.md
12597 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
12598 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
12599 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
12600 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
12601 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
12602 (*madd<mode>): Rename to...
12603 (*fma<mode>4): ...this.
12604 (*msub<mode>): Rename to...
12605 (*fnma<mode>4): ...this.
12606
12607 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12608 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12609
12610 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
12611 Print 2.0 naturally.
12612 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
12613 * config/aarch64/predicates.md
12614 (aarch64_sve_float_negated_arith_immediate): New predicate,
12615 renamed from aarch64_sve_float_arith_with_sub_immediate.
12616 (aarch64_sve_float_arith_with_sub_immediate): Test for both
12617 positive and negative constants.
12618 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
12619 or an aarch64_sve_float_arith_with_sub_immediate.
12620 * config/aarch64/constraints.md (vsN): Use
12621 aarch64_sve_float_negated_arith_immediate.
12622 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
12623 iterator.
12624 (sve_pred_fp_rhs2_immediate): New int attribute.
12625 * config/aarch64/aarch64-sve.md
12626 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
12627 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
12628 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
12629 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
12630 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
12631 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
12632
12633 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12634 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12635
12636 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
12637 (*aarch64_cond_abd<SVE_F:mode>_3)
12638 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
12639
12640 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12641 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12642
12643 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
12644 (*aarch64_cond_<su>abd<mode>_any): New patterns.
12645
12646 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12647 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12648
12649 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
12650 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
12651 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
12652 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
12653 optabs.
12654 * optabs.h (create_convert_operand_from): Expand comment.
12655 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
12656 when mapping scalar rtxes to vector operands.
12657 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
12658 ashiftrt and lshiftrt.
12659 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
12660 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
12661 (*cond_<optab><mode>_any_const): New patterns.
12662
12663 2019-08-15 Martin Liska <mliska@suse.cz>
12664
12665 PR ipa/91438
12666 * cgraph.c (cgraph_node::remove): When setting
12667 n->origin = NULL for all nested functions, reset
12668 also next_nested.
12669
12670 2019-08-15 Martin Liska <mliska@suse.cz>
12671
12672 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
12673 and next_nested.
12674
12675 2019-08-15 Martin Liska <mliska@suse.cz>
12676
12677 PR ipa/91404
12678 * passes.c (order): Remove.
12679 (uid_hash_t): Likewise).
12680 (remove_cgraph_node_from_order): Remove from set
12681 of pointers (cgraph_node *).
12682 (insert_cgraph_node_to_order): New.
12683 (duplicate_cgraph_node_to_order): New.
12684 (do_per_function_toporder): Register all 3 cgraph hooks.
12685 Skip removed_nodes now as we know about all of them.
12686
12687 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
12688
12689 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
12690 <case E_V8QImode>: Use vector_set path for
12691 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
12692 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
12693 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
12694
12695 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12696
12697 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
12698
12699 2019-08-14 Martin Sebor <msebor@redhat.com>
12700
12701 PR tree-optimization/91294
12702 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
12703 source length as exact.
12704
12705 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
12706
12707 * doc/extend.texi: Add "noinit" attribute documentation.
12708 * doc/sourcebuild.texi: Add noinit effective target documentation.
12709 * varasm.c (default_section_type_flags): Add support for "noinit"
12710 section.
12711 (default_elf_select_section): Add support for "noinit" attribute.
12712 * config/msp430/msp430.c (msp430_attribute_table): Remove
12713 "noinit" entry.
12714
12715 2019-08-14 Richard Biener <rguenther@suse.de>
12716 Uroš Bizjak <ubizjak@gmail.com>
12717
12718 PR target/91154
12719 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
12720 mode arguments.
12721 (scalar_chain::smode): New member.
12722 (scalar_chain::vmode): Likewise.
12723 (dimode_scalar_chain): Rename to...
12724 (general_scalar_chain): ... this.
12725 (general_scalar_chain::general_scalar_chain): Take mode arguments.
12726 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
12727 base with TImode and V1TImode.
12728 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
12729 (general_scalar_chain::vector_const_cost): Adjust for SImode
12730 chains.
12731 (general_scalar_chain::compute_convert_gain): Likewise. Add
12732 {S,U}{MIN,MAX} support.
12733 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
12734 (general_scalar_chain::make_vector_copies): Likewise. Handle
12735 non-DImode chains appropriately.
12736 (general_scalar_chain::convert_reg): Likewise.
12737 (general_scalar_chain::convert_op): Likewise.
12738 (general_scalar_chain::convert_insn): Likewise. Add
12739 fatal_insn_not_found if the result is not recognized.
12740 (convertible_comparison_p): Pass in the scalar mode and use that.
12741 (general_scalar_to_vector_candidate_p): Likewise. Rename from
12742 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
12743 (scalar_to_vector_candidate_p): Remove by inlining into single
12744 caller.
12745 (general_remove_non_convertible_regs): Rename from
12746 dimode_remove_non_convertible_regs.
12747 (remove_non_convertible_regs): Remove by inlining into single caller.
12748 (convert_scalars_to_vector): Handle SImode and DImode chains
12749 in addition to TImode chains.
12750 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
12751 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
12752 (*<maxmin>di3_doubleword): Likewise.
12753
12754 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12755 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12756
12757 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
12758 (*cond_bic<mode>_any): New patterns.
12759
12760 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12761
12762 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
12763 take the equivalent mask, as well as a bit count.
12764 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
12765 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
12766 (aarch64_sve_pred_and_operand): New predicates.
12767 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
12768 code attribute.
12769 * config/aarch64/aarch64-sve.md
12770 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
12771 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
12772
12773 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12774
12775 * config/aarch64/aarch64-sve.md
12776 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
12777 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
12778 New patterns.
12779
12780 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12781 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12782
12783 * config/aarch64/aarch64-sve.md
12784 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
12785 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
12786
12787 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12788 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12789
12790 * config/aarch64/aarch64-sve.md
12791 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
12792 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
12793
12794 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12795
12796 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
12797 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
12798 New pattern.
12799
12800 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12801 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12802
12803 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
12804
12805 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12806 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12807
12808 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
12809 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
12810 (aarch64_print_operand): Add support for %I.
12811 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
12812 Bitcast floating-point constants to the corresponding integer constant.
12813 (aarch64_float_const_representable_p): Handle vectors as well
12814 as scalars.
12815 (aarch64_expand_sve_vcond): Make sure that the operands are valid
12816 for the new vcond_mask_<mode><vpred> expander.
12817 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
12818 test aarch64_float_const_representable_p.
12819 (aarch64_sve_reg_or_dup_imm): New predicate.
12820 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
12821 gen_vcond_mask_<mode><vpred> instead of
12822 gen_aarch64_sve_dup<mode>_const.
12823 (vcond_mask_<mode><vpred>): Turn into a define_expand that
12824 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
12825 for operands 1 and 2 respectively. Force operand 2 into a
12826 register if operand 1 is a register. Fold old define_insn...
12827 (aarch64_sve_dup<mode>_const): ...and this define_insn...
12828 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
12829 floating-point constants that can be moved as integers. Add
12830 alternatives for MOV /M and FMOV /M.
12831 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
12832 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
12833 1 and 2 respectively.
12834 * config/aarch64/constraints.md (Ufc): Handle vectors as well
12835 as scalars.
12836 (vss): New constraint.
12837
12838 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12839
12840 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
12841 (aarch64_sve_float_maxmin_operand): New predicates.
12842 * config/aarch64/constraints.md (vsB): New constraint.
12843 (vsM): Fix typo.
12844 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
12845 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
12846 UNSPEC_COND_FMINNM.
12847 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
12848 Use aarch64_sve_float_maxmin_operand for operand 2.
12849 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
12850 Add alternatives for the constant forms.
12851
12852 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12853
12854 * config/aarch64/constraints.md (vsb): New constraint.
12855 (vsm): Generalize description.
12856 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
12857 iterator.
12858 (sve_imm_con): Handle smax, smin, umax and umin.
12859 (sve_imm_prefix): New code attribute.
12860 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
12861 (aarch64_sve_vsb_operand): New predicates.
12862 (aarch64_sve_mul_immediate): Rename to...
12863 (aarch64_sve_vsm_immediate): ...this.
12864 (aarch64_sve_mul_operand): Rename to...
12865 (aarch64_sve_vsm_operand): ...this.
12866 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
12867 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
12868 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
12869 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
12870 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
12871 add movprfx support for the immediate alternatives.
12872 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
12873 of the above.
12874 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
12875 for operand 3.
12876
12877 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12878
12879 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
12880 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
12881 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
12882
12883 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12884
12885 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
12886 (optab, sve_int_op): Handle them.
12887 * config/aarch64/aarch64-sve.md: Expand comment.
12888
12889 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12890
12891 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
12892 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
12893 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
12894
12895 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12896
12897 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
12898 (aarch64_expand_sve_const_pred_trn): New functions.
12899 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
12900 use the above functions when the parameter is true.
12901 (aarch64_expand_sve_const_pred): Update call accordingly.
12902 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
12903 Rename to...
12904 (@aarch64_sve_<perm_insn><mode>): ...this.
12905
12906 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12907
12908 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
12909 Declare.
12910 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
12911 (aarch64_sve_emit_int_cmp): New functions.
12912 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
12913 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
12914 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
12915 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
12916 (UNSPEC_PRED_Z): New unspec.
12917 (set_clobber_cc_nzc): Delete.
12918 * config/aarch64/aarch64-sve.md: Add a block comment about
12919 UNSPEC_PRED_Z.
12920 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
12921 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
12922 the old pattern with that name. Use UNSPEC_PRED_Z instead of
12923 UNSPEC_MERGE_PTRUE.
12924 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
12925 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
12926 check for compatible predicates.
12927 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
12928 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
12929 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
12930 comparisons above.
12931
12932 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12933
12934 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
12935 * config/aarch64/aarch64-sve.md: Add a section describing it.
12936 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
12937 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
12938 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
12939 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
12940 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
12941 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
12942 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
12943 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
12944 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
12945 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
12946 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
12947 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
12948 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
12949 (aarch64_evpc_rev_local): Update accordingly.
12950
12951 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12952
12953 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
12954 iterators.
12955 (SVE_BHSI, SVE_SDI): Tweak comment.
12956 (SVE_HSDI): Likewise. Fix definition.
12957 (SVE_SDF): New mode iterator.
12958 (elem_bits): New mode attribute.
12959 (SVE_COND_FCVT): New int iterator.
12960 * config/aarch64/aarch64-sve.md
12961 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
12962 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
12963 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
12964 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
12965 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
12966 ...these new patterns.
12967 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
12968 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
12969 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
12970 Merge into...
12971 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
12972 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
12973 ...these new patterns.
12974 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
12975 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
12976 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
12977 ...this new pattern.
12978 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
12979 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
12980 ...this new pattern.
12981 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
12982
12983 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12984
12985 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
12986 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
12987 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
12988 unspecs.
12989 (optab, su): Handle them.
12990 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
12991 * config/aarch64/aarch64-sve.md
12992 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
12993 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
12994 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
12995 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
12996 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
12997 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
12998 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
12999 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
13000 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
13001 FIXUORS.
13002 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
13003 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
13004 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
13005 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
13006 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
13007 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
13008 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
13009 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
13010 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
13011 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
13012 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
13013 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
13014 of UNSPEC_FLOAT_CONVERT.
13015 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
13016 aarch64_sve_extend<mode><Vwide>2.
13017
13018 2019-08-14 Richard Biener <rguenther@suse.de>
13019
13020 PR target/91154
13021 * config/i386/i386-features.c
13022 (dimode_scalar_chain::compute_convert_gain): Compute and dump
13023 individual instruction gain. Fix reg-reg copy GRP cost. Use
13024 ix86_cost->sse_op for vector instruction costs.
13025
13026 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13027
13028 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
13029 (cmp_op): Handle it.
13030 (SVE_COND_FP_CMP): Rename to...
13031 (SVE_COND_FP_CMP_I0): ...this.
13032 (SVE_FP_CMP): Remove.
13033 * config/aarch64/aarch64-sve.md
13034 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
13035 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
13036 using unspecs to represent the comparison.
13037 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
13038 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
13039 accordingly.
13040 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
13041 (aarch64_unspec_cond_code): Move after integer code. Handle
13042 UNORDERED.
13043 (aarch64_emit_sve_predicated_cond): Replace with...
13044 (aarch64_emit_sve_fp_cond): ...this new function.
13045 (aarch64_emit_sve_or_conds): Replace with...
13046 (aarch64_emit_sve_or_fp_conds): ...this new function.
13047 (aarch64_emit_sve_inverted_cond): Replace with...
13048 (aarch64_emit_sve_invert_fp_cond): ...this new function.
13049 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
13050
13051 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13052
13053 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
13054 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
13055 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
13056 SVE_HSD instead of SVE_SD.
13057
13058 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13059 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13060
13061 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
13062 iterator.
13063 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
13064 attributes.
13065 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
13066 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
13067 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
13068 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
13069 (*div<SVE_F:mode>3): Generalize to...
13070 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
13071
13072 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13073 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13074
13075 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
13076 constants.
13077 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
13078 predicate.
13079 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
13080 Declare.
13081 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
13082 function.
13083 * config/aarch64/aarch64-sve.md: Add a block comment about the
13084 handling of predicated FP operations.
13085 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
13086 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
13087 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
13088 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
13089 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
13090 operand.
13091 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
13092 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
13093 operand.
13094 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
13095 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
13096 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
13097 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
13098 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
13099 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
13100 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
13101 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
13102 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
13103 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
13104 strictness operands. Use aarch64_sve_pred_dominates_p to check
13105 whether the predicate on the conditional operation is suitable
13106 for merging. Split patterns into the canonical equal-predicate form.
13107 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
13108 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
13109
13110 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13111 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13112
13113 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
13114 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
13115 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
13116 rtx codes.
13117 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
13118 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
13119 unspecs.
13120
13121 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13122 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13123
13124 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
13125 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
13126 actually has, rather than relying on REG_EQUAL notes.
13127 Make the insn operand order match the SVE operand order.
13128 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
13129 the SVE operand order.
13130
13131 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13132
13133 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
13134 (aarch64_emit_set_immediate): Likewise.
13135 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
13136 (aarch64_pfalse_reg): Likewise.
13137 (aarch64_convert_sve_data_to_pred): New function.
13138 (aarch64_sve_move_pred_via_while): Take an optional target register
13139 and the required register mode.
13140 (aarch64_expand_sve_const_pred_1): New function.
13141 (aarch64_expand_sve_const_pred): Likewise.
13142 (aarch64_expand_mov_immediate): Build an all-true predicate
13143 if the significant bits of the immediate are all true. Use
13144 aarch64_expand_sve_const_pred for all compile-time predicate constants.
13145 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
13146 before register allocation.
13147 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
13148 a VNx16BI PTRUE when splitting the memory alternative.
13149 (vec_duplicate<mode>): Update accordingly.
13150 (*pred_cmp<cmp_op><mode>): Rename to...
13151 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
13152
13153 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13154
13155 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
13156 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
13157 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
13158 (UNSPEC_PTEST): New unspec.
13159 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
13160 * config/aarch64/iterators.md (data_bytes): New mode attribute.
13161 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
13162 * config/aarch64/aarch64-sve.md: Add a new section describing the
13163 handling of UNSPEC_PTEST.
13164 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
13165 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
13166 (ptest_ptrue<mode>): Replace with...
13167 (aarch64_ptest<mode>): ...this new pattern.
13168 (cbranch<mode>4): Update after above changes.
13169 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
13170 UNSPEC_PTEST_PTRUE.
13171 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
13172 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
13173 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
13174
13175 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
13176
13177 PR lto/91287
13178 * builtins.c (builtin_with_linkage_p): New function.
13179 * builtins.h (builtin_with_linkage_p): New function.
13180 * symtab.c (write_symbol): Remove redundant assert.
13181 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
13182 Remove FIXME and use builtin_with_linkage_p.
13183
13184 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13185
13186 PR middle-end/91421
13187 * tree-core.h (function_decl::function_code): Change type to
13188 unsigned int.
13189 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
13190 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
13191 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
13192 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
13193 is BUILT_IN_NORMAL.
13194 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
13195 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
13196 (fndecl_built_in_p): Change the type of the "name" argument to
13197 unsigned int.
13198 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
13199 after check for DECL_BUILT_IN_CLASS.
13200 * cgraphclones.c (build_function_decl_skip_args): Use
13201 set_decl_built_in_function.
13202 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
13203 * ipa-split.c (split_function): Likewise.
13204 * langhooks.c (add_builtin_function_common): Likewise.
13205 * omp-simd-clone.c (simd_clone_create): Likewise.
13206 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
13207 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
13208 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
13209 DECL_FUNCTION_CODE.
13210 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
13211 instead of DECL_FUNCTION_CODE.
13212 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
13213 instead of DECL_FUNCTION_CODE.
13214 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
13215 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
13216 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
13217 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
13218 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
13219 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
13220 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
13221 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
13222 (alpha_gimple_fold_builtin): Likewise.
13223 * config/arc/arc.c (arc_expand_builtin): Likewise.
13224 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
13225 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
13226 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
13227 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
13228 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
13229 * config/frv/frv.c (frv_expand_builtin): Likewise.
13230 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
13231 (gcn_expand_builtin): Likewise.
13232 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
13233 (fold_builtin_cpu): Likewise.
13234 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
13235 * config/i386/i386.c (ix86_fold_builtin): Likewise.
13236 (ix86_gimple_fold_builtin): Likewise.
13237 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
13238 (ia64_expand_builtin): Likewise.
13239 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
13240 * config/mips/mips.c (mips_expand_builtin): Likewise.
13241 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
13242 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
13243 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
13244 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
13245 * config/pa/pa.c (pa_expand_builtin): Likewise.
13246 * config/pru/pru.c (pru_expand_builtin): Likewise.
13247 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
13248 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13249 Likewise.
13250 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
13251 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
13252 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
13253 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
13254 (rs6000_builtin_reciprocal): Likewise.
13255 * config/rx/rx.c (rx_expand_builtin): Likewise.
13256 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
13257 * config/s390/s390.c (s390_expand_builtin): Likewise.
13258 * config/sh/sh.c (sh_expand_builtin): Likewise.
13259 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
13260 (sparc_fold_builtin): Likewise.
13261 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
13262 * config/spu/spu.c (spu_expand_builtin): Likewise.
13263 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
13264 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
13265 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
13266 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
13267 (xtensa_expand_builtin): Likewise.
13268
13269 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13270
13271 PR middle-end/91421
13272 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
13273 before the DECL_FUNCTION_CODE.
13274 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
13275 to check for a BUILT_IN_ALLOCA call.
13276 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
13277 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
13278 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
13279 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
13280 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
13281 for BUILT_IN_NORMAL functions.
13282 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
13283 test for BUILT_IN_TM_ABORT.
13284 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
13285 to check for a BUILT_IN_STACK_RESTORE call.
13286 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
13287 * tree-ssa-threadedge.c
13288 (record_temporary_equivalences_from_stmts_at_dest): Check for a
13289 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
13290 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
13291 test for a BUILT_IN_NORMAL call instead of a negative test for
13292 an internal function call.
13293
13294 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13295
13296 * tree.h (build_vector_a_then_b): Declare.
13297 * tree.c (build_vector_a_then_b): New function.
13298 * fold-const-call.c (fold_while_ult): Likewise.
13299 (fold_const_call): Use it to handle IFN_WHILE_ULT.
13300 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
13301 (aarch64_svpattern): New enum.
13302 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
13303 constants through aarch64_expand_mov_immediate.
13304 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
13305 than general_operand as the predicate for operand 1.
13306 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
13307 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
13308 insn_type.
13309 (simd_immediate_info::simd_immediate_info): New overload that
13310 takes a scalar_int_mode and an svpattern.
13311 (simd_immediate_info::u): Add a "pattern" field.
13312 (svpattern_token): New function.
13313 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
13314 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
13315 (aarch64_sve_move_pred_via_while): New functions.
13316 (aarch64_expand_mov_immediate): Try using
13317 aarch64_sve_move_pred_via_while for predicates that contain N ones
13318 followed by M zeros but that do not correspond to a VLnnn pattern.
13319 (aarch64_sve_pred_valid_immediate): New function.
13320 (aarch64_simd_valid_immediate): Use it instead of dealing directly
13321 with PTRUE and PFALSE.
13322 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
13323 forms.
13324
13325 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
13326
13327 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
13328 flag.
13329 (darwin_override_options): Likewise.
13330 * config/darwin.h: Likewise.
13331 * config/darwin.opt: Likewise.
13332 * config/i386/i386.c (output_pic_addr_const): Likewise.
13333 * config/rs6000/darwin.h: Likewise.
13334 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
13335 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
13336 ... this TARGET_MACHO_SYMBOL_STUBS.
13337 (FUNCTION_PROFILER):Likewise.
13338 * config/i386/i386.h: Likewise.
13339
13340 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
13341
13342 * config/i386/i386-expand.c (ix86_expand_vector_extract)
13343 <case E_V2SImode>: Use vec_extr path for
13344 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13345 <case E_V8QImode>: Ditto.
13346 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
13347 Use SWI48 mode iterator. Use %k to output operand 0.
13348 (*mmx_pextrw): New insn pattern.
13349 (*mmx_pextrb): Ditto.
13350 (*mmx_pextrb_zext): Ditto.
13351
13352 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
13353
13354 * target.def (libc_has_function, libc_has_fast_function): Improve
13355 documentation strings.
13356 * doc/tm.texi: Regenerate.
13357
13358 2019-08-13 Caroline Tice <cmtice@google.com>
13359
13360 PR other/91396
13361 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
13362 vtv_end.o or vtv_end_preinit.o files if !static.
13363
13364 2019-08-13 Olivier Hainque <hainque@adacore.com>
13365
13366 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
13367
13368 2019-08-13 Olivier Hainque <hainque@adacore.com>
13369
13370 * rtlanal.c (tablejump_casesi_pattern): New function, to
13371 determine if a tablejump insn is a casesi dispatcher. Extracted
13372 from patch_jump_insn.
13373 * rtl.h (tablejump_casesi_pattern): Declare.
13374 * cfgrtl.c (patch_jump_insn): Use it.
13375 * dwarf2cfi.c (create_trace_edges): Use it.
13376
13377 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
13378
13379 PR target/81800
13380 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
13381 operand is larger than a long int.
13382
13383 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13384
13385 * machmode.h (opt_mode::else_mode): New function.
13386 (opt_mode::else_blk): Use it.
13387 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
13388 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
13389 (aarch64_gen_stepped_int_parallel): Likewise.
13390 (aarch64_stepped_int_parallel_p): Likewise.
13391 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
13392 argument.
13393 * config/aarch64/aarch64.c
13394 (aarch64_expand_sve_widened_duplicate): Delete.
13395 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
13396 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
13397 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
13398 argument. Use early returns in the !CONST_INT_P handling.
13399 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
13400 than handling some inline.
13401 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
13402 from...
13403 (aarch64_simd_container_mode): ...here.
13404 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
13405 (aarch64_sve_ld1rq_operand_p): New functions.
13406 * config/aarch64/predicates.md (descending_int_parallel)
13407 (aarch64_sve_ld1rq_operand): New predicates.
13408 * config/aarch64/constraints.md (UtQ): New constraint.
13409 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
13410 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
13411 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
13412 (@aarch64_sve_reinterpret<mode>): New expander.
13413 (*aarch64_sve_reinterpret<mode>): New pattern.
13414 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
13415 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
13416 (*sve_ld1rq<Vesize>): Replace with...
13417 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
13418
13419 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
13420
13421 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
13422 16:12.
13423
13424 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13425
13426 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
13427 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
13428 (msp430_check_path_for_devices): New.
13429 (parse_devices_csv_1): New.
13430 (parse_devices_csv): New.
13431 (msp430_extract_mcu_data): Try to find devices.csv and search for the
13432 MCU data in devices.csv before using the hard-coded data.
13433 Warn if devices.csv isn't found and the MCU wasn't found in the
13434 hard-coded data either.
13435 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
13436 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
13437 Search for devices.csv on -I and -L paths.
13438 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
13439 msp430_set_driver_var.
13440 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
13441 -mdevices-csv-loc=.
13442 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
13443 searched for devices.csv.
13444 (mwarn-devices-csv): Document option.
13445
13446 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13447
13448 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
13449 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
13450 Use a single Dn alternative instead of separate Dz and Dm
13451 alternatives. Use aarch64_output_sve_move_immediate.
13452 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
13453 function.
13454 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
13455 for predicates too.
13456 (aarch64_output_sve_mov_immediate): Handle predicate modes.
13457 (aarch64_output_ptrue): Delete.
13458
13459 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13460
13461 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
13462 INDEX.
13463 (simd_immediate_info::value, simd_immediate_info::step)
13464 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
13465 with...
13466 (simd_immediate_info::u): ...this new union.
13467 (simd_immediate_info::simd_immediate_info): Update accordingly.
13468 (aarch64_output_simd_mov_immediate): Likewise.
13469 (aarch64_output_sve_mov_immediate): Likewise.
13470
13471 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13472
13473 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
13474 extra_gcc_objs.
13475 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
13476 (msp430_select_cpu): New spec function.
13477 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
13478 MCU data.
13479 * config/msp430/msp430-devices.c: New file.
13480 * config/msp430/msp430-devices.h: New file.
13481 * config/msp430/msp430.c: Remove msp430_mcu_data.
13482 (msp430_option_override): Use msp430_extract_mcu_data to extract
13483 MCU data.
13484 (msp430_use_f5_series_hwmult): Likewise.
13485 (use_32bit_hwmult): Likewise.
13486 (msp430_no_hwmult): Likewise.
13487 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
13488 assembler.
13489 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
13490 and -mcpu option.
13491 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
13492 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
13493 Remove hard-coded MCU multilib data.
13494
13495 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13496
13497 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
13498 based on the mode instead of testing properties of it.
13499
13500 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13501
13502 * doc/md.texi: Document the x and y constraints for AArch64.
13503 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
13504 (FP_LO8_REGS): New reg_class.
13505 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
13506 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
13507 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
13508 * config/aarch64/predicates.md (aarch64_simd_register): Use
13509 FP_REGNUM_P instead of checking the classes manually.
13510 * config/aarch64/constraints.md (y): New constraint.
13511
13512 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13513
13514 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
13515 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
13516 * config/aarch64/aarch64-simd.md
13517 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
13518 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
13519 from the asm template.
13520 * config/aarch64/aarch64-sve.md
13521 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
13522 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
13523 from the asm template.
13524 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
13525 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
13526 from the asm template.
13527 * config/aarch64/aarch64-simd-builtins.def: Update comment.
13528
13529 2019-08-13 Martin Liska <mliska@suse.cz>
13530
13531 * value-prof.c (gimple_ic_transform): Add new line.
13532 Print details with MSG_NOTE.
13533
13534 2019-08-13 Martin Liska <mliska@suse.cz>
13535
13536 * doc/invoke.texi: Document automatic detection of jobserver.
13537 * lto-wrapper.c (run_gcc): Detect jobserver always.
13538
13539 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
13540
13541 * config/i386/i386-expand.c (ix86_expand_vector_set)
13542 <case E_V2SImode>: Use vec_merge path for
13543 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13544 <case E_V8QImode>: Ditto.
13545 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
13546 (*mmx_pinsrb): Ditto.
13547
13548 2019-08-12 Jakub Jelinek <jakub@redhat.com>
13549
13550 PR target/83250
13551 PR target/91340
13552 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
13553 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
13554 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
13555 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
13556 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
13557
13558 2019-08-12 Richard Biener <rguenther@suse.de>
13559
13560 PR lto/91375
13561 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
13562 flag_devirtualize.
13563
13564 2019-08-12 Richard Biener <rguenther@suse.de>
13565
13566 PR driver/91130
13567 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
13568 lang_mask option, always use CL_DRIVER.
13569 (get_options_from_collect_gcc_options): Adjust.
13570 (find_and_merge_options): Likewise.
13571 (run_gcc): Likewise.
13572
13573 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13574
13575 * ipa-predicate.c (add_condition): Restore inverted test.
13576
13577 2019-08-10 Jakub Jelinek <jakub@redhat.com>
13578
13579 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
13580 (enum omp_clause_device_type_kind): New enum.
13581 (struct tree_omp_clause): Add subcode.device_type_kind.
13582 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
13583 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
13584 for device_type clause.
13585 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
13586 * tree-pretty-print.c (dump_omp_clause): Likewise.
13587
13588 PR target/91408
13589 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
13590 vector_operand.
13591
13592 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
13593
13594 * reload1.c (finish_spills): Do not check ira_conflicts_p when
13595 handling spilled pseudos.
13596
13597 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
13598
13599 PR target/91386
13600 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
13601 to preserve the contents of the original insns.
13602
13603 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
13604
13605 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
13606 (addsi3_compare_op2): Likewise.
13607
13608 2019-08-09 Martin Liska <mliska@suse.cz>
13609
13610 * alias.c (alias_ptr_types_compatible_p): Strengten
13611 type comparison in LTO mode.
13612
13613 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
13614
13615 PR middle-end/90313
13616 * tree-tailcall.c (find_tail_calls): Reject calls that might
13617 read from an escaped RESULT_DECL.
13618
13619 2019-08-09 Martin Liska <mliska@suse.cz>
13620
13621 * doc/invoke.texi: Document the option value.
13622 * lto-wrapper.c (run_gcc): Set auto_parallel
13623 only with -flto=auto.
13624
13625 2019-08-09 Martin Liska <mliska@suse.cz>
13626
13627 * opts.c (common_handle_option): Error for an invalid argument
13628 to -flto=.
13629
13630 2019-08-09 Martin Liska <mliska@suse.cz>
13631
13632 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
13633 use dump_printf to report optimization.
13634 (sem_variable::merge): Likwise.
13635 (sem_item_optimizer::merge_classes): Use dump_printf to report
13636 ICF hits.
13637
13638 2019-08-09 Martin Liska <mliska@suse.cz>
13639
13640 * value-prof.c (gimple_divmod_fixed_value_transform):
13641 Use dump_printf_loc.
13642 (gimple_mod_pow2_value_transform): Likewise.
13643 (gimple_mod_subtract_transform): Likewise.
13644 (init_node_map): Likewise.
13645 (gimple_ic_transform): Likewise.
13646 (gimple_stringops_transform): Likewise.
13647
13648 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
13649
13650 * doc/extend.texi: Add const qualifier to ld intrinsics.
13651
13652 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
13653
13654 * config/rs6000/dfp.md (D64_D128): Rename to ...
13655 (DDTD): ... this, throughout.
13656 (dfp_suffix): Rename to ...
13657 (q): ... this, throughout.
13658
13659 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
13660
13661 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
13662 (dfp_suffix): Ditto.
13663 (adddd3, addtd3): Merge to ...
13664 (add<mode>3 for D64_D128): ... this.
13665 (subdd3, subtd3): Merge to ...
13666 (sub<mode>3 for D64_D128): ... this.
13667 (muldd3, multd3): Merge to ...
13668 (mul<mode>3 for D64_D128): ... this.
13669 (divdd3, divtd3): Merge to ...
13670 (div<mode>3 for D64_D128): ... this.
13671 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
13672 (*cmp<mode>_internal1 for D64_D128): ... this.
13673 (ftruncdd2, ftrunctd2): Merge to ...
13674 (ftrunc<mode>2 for D64_D128): ... this.
13675 (fixdddi2, fixtddi2): Merge to ...
13676 (fix<mode>di2 for D64_D128): ... this.
13677
13678 2019-08-08 Jim Wilson <jimw@sifive.com>
13679
13680 PR target/91229
13681 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
13682 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
13683 Pass into recursive call.
13684 (riscv_flatten_aggregate_argument): New arg. Pass to
13685 riscv_flatten_aggregate_field.
13686 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
13687 riscv_flatten_aggregate_argument twice, with false and true as last
13688 arg. Process result twice. Compare results and warn if different.
13689 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
13690
13691 2019-08-08 Martin Liska <mliska@suse.cz>
13692
13693 PR bootstrap/91352
13694 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
13695 * lto-wrapper.c (jobserver_active_p): Likewise.
13696
13697 2019-08-08 Martin Liska <mliska@suse.cz>
13698
13699 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
13700 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
13701 (create_version_clone_with_body): Likewise.
13702
13703 2019-08-08 Jakub Jelinek <jakub@redhat.com>
13704
13705 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
13706 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
13707 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
13708 GOVD_EXPLICIT flags.
13709 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
13710 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
13711 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
13712 call install_var_field with mask 11 instead of 3.
13713 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
13714 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
13715
13716 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13717
13718 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
13719 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
13720
13721 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13722
13723 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
13724 MOVPRFX alternatives. Make the GPR alternatives more expensive
13725 than the FPR ones.
13726
13727 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13728
13729 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
13730 Disparage the GPR alternative relative to the FPR one.
13731 Fix handling of 8-bit and 16-bit FPR values.
13732
13733 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13734
13735 * config/aarch64/iterators.md (BITWISEV): Delete.
13736 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
13737 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
13738 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
13739 UNSPEC_FMINNMV, UNSPEC_FMINV.
13740 (bit_reduc_op): Delete.
13741 (sve_int_op): New int attribute.
13742 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
13743 UNSPEC_FMINNMV, UNSPEC_FMINV.
13744 * config/aarch64/aarch64-sve.md
13745 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
13746 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
13747 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
13748 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
13749 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
13750 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
13751 new patterns.
13752 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
13753 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
13754 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
13755 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
13756 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
13757 new patterns.
13758
13759 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13760
13761 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
13762 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
13763 (fms<mode>4, *fms<mode>4): Replace with...
13764 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
13765 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
13766 Use unspecs instead of rtx codes.
13767 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
13768 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
13769
13770 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13771
13772 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
13773 int iterator.
13774 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
13775 * config/aarch64/aarch64-sve.md
13776 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
13777 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
13778 use a single unspec for the rhs.
13779 (*<su><maxmin><mode>3): Delete.
13780 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
13781
13782 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13783
13784 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
13785 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
13786 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
13787 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
13788 (optab, sve_fp_op): Handle them.
13789 (SVE_FP_UNARY): Delete.
13790 (optab): Remove sqrt entry.
13791 (sve_fp_op): Remove neg, abs and sqrt entries.
13792 (SVE_COND_FP_UNARY): New int iterator.
13793 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
13794 (*<frint_pattern><mode>2): Delete.
13795 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
13796 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
13797 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
13798 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
13799
13800 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13801
13802 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
13803
13804 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13805
13806 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
13807 (UNSPEC_COND_FADD): ...this.
13808 (UNSPEC_COND_SUB): Rename to...
13809 (UNSPEC_COND_FSUB): ...this.
13810 (UNSPEC_COND_MUL): Rename to...
13811 (UNSPEC_COND_FMUL): ...this.
13812 (UNSPEC_COND_DIV): Rename to...
13813 (UNSPEC_COND_FDIV): ...this.
13814 (UNSPEC_COND_MAX): Rename to...
13815 (UNSPEC_COND_FMAXNM): ...this.
13816 (UNSPEC_COND_MIN): Rename to...
13817 (UNSPEC_COND_FMINNM): ...this.
13818 (UNSPEC_COND_LT): Rename to...
13819 (UNSPEC_COND_FCMLT): ...this.
13820 (UNSPEC_COND_LE): Rename to...
13821 (UNSPEC_COND_FCMLE): ...this.
13822 (UNSPEC_COND_EQ): Rename to...
13823 (UNSPEC_COND_FCMEQ): ...this.
13824 (UNSPEC_COND_NE): Rename to...
13825 (UNSPEC_COND_FCMNE): ...this.
13826 (UNSPEC_COND_GE): Rename to...
13827 (UNSPEC_COND_FCMGE): ...this.
13828 (UNSPEC_COND_GT): Rename to...
13829 (UNSPEC_COND_FCMGT): ...this.
13830 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
13831 (sve_fp_op_rev): Update accordingly.
13832 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
13833
13834 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13835
13836 * config/aarch64/aarch64-sve.md: Reorganize contents and add
13837 banner comments.
13838 * config/aarch64/check-sve-md.awk: New file.
13839 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
13840 (insn-conditions.md): Depend on it.
13841
13842 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
13843
13844 PR target/91385
13845 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
13846 (*negsi2_cmpz_zext): Ditto.
13847
13848 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13849
13850 * config/aarch64/iterators.md (commutative): Remove.
13851
13852 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
13853
13854 PR driver/91130
13855 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
13856 processing COLLECT_GCC_OPTIONS.
13857 (run_gcc): Likewise.
13858
13859 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13860
13861 PR tree-optimization/91109
13862 * lra-remat.c (update_scratch_ops): Remove assignment of the
13863 hard register.
13864
13865 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13866
13867 * data-streamer.h (streamer_write_poly_uint64): Declare.
13868 (streamer_read_poly_uint64): Likewise.
13869 * data-streamer-in.c (streamer_read_poly_uint64): New function.
13870 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
13871 * ipa-predicate.h (condition::size): Turn into a poly_int64.
13872 (add_condition): Take a poly_int64 size.
13873 * ipa-predicate.c (add_condition): Likewise.
13874 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
13875 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
13876 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
13877 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
13878 condition::size as a poly_int64.
13879 (unmodified_parm_1): Take a poly_int64 size pointer.
13880 (unmodified_parm): Likewise.
13881 (unmodified_parm_or_parm_agg_item): Likewise.
13882 (set_cond_stmt_execution_predicate): Update accordingly.
13883 (set_switch_stmt_execution_predicate): Likewise.
13884 (will_be_nonconstant_expr_predicate): Likewise.
13885 (will_be_nonconstant_predicate): Likewise.
13886 (inline_read_section): Stream condition::size as a poly_int.
13887 (ipa_fn_summary_write): Likewise.
13888
13889 2019-08-07 Martin Liska <mliska@suse.cz>
13890
13891 * fold-const.c (twoval_comparison_p): Replace int
13892 with bool as a return type.
13893 (simple_operand_p): Likewise.
13894 (operand_equal_p): Replace int with bool as a return type.
13895 * fold-const.h (operand_equal_p): Likewise.
13896
13897 2019-08-07 Jakub Jelinek <jakub@redhat.com>
13898
13899 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
13900 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
13901 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
13902 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
13903 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
13904 * tree-pretty-print.c (dump_omp_clause): Likewise.
13905 * tree-nested.c (convert_nonlocal_omp_clauses,
13906 convert_local_omp_clauses): Likewise.
13907 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
13908 Likewise.
13909 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
13910 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
13911 clause with array or reference to array types, no matter what type
13912 except for reference it has.
13913
13914 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
13915
13916 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
13917
13918 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
13919
13920 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
13921 (arch_canonicalize): Support rv32g and rv64g and fix error
13922 handling.
13923
13924 2019-08-06 Martin Liska <mliska@suse.cz>
13925
13926 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
13927 and DECL_IS_OPERATOR_DELETE_P.
13928
13929 2019-08-06 Jakub Jelinek <jakub@redhat.com>
13930
13931 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
13932 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
13933 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
13934 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
13935 (gimplify_omp_for): Don't do C++ random access iterator clause
13936 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
13937 don't predetermine the artificial iterator in case of C++ random
13938 access iterators as lastprivate, but private. For OMP_LOOP, force
13939 bind expr around simd body and force for_pre_body before the
13940 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
13941 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
13942 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
13943 diff var of C++ random access iterators. Handle
13944 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
13945 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
13946 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
13947 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
13948 * omp-low.c (lower_rec_input_clauses): For
13949 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
13950 variables instead of default constructing them.
13951 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
13952 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
13953 is_taskloop_ctx check from the assert to the guarding condition.
13954
13955 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
13956
13957 * config/riscv/multilib-generator: (canonical_order): New.
13958 (arch_canonicalize): Dito.
13959 Apply arch_canonicalize for alts.
13960
13961 2019-08-05 Martin Sebor <msebor@redhat.com>
13962
13963 * doc/extend.texi (Common Variable Attributes): Document alias
13964 attribute.
13965
13966 2019-08-05 Marek Polacek <polacek@redhat.com>
13967
13968 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
13969 * doc/invoke.texi: Document -Wcomma-subscript.
13970
13971 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
13972
13973 * tree-core.h (tree_function_decl): Make function_code an
13974 independent field. Group the remaining bitfields into bytes
13975 and move decl_type so that it contines to be at a byte boundary.
13976 Leave 12 bits for future expansion.
13977
13978 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
13979
13980 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
13981 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
13982 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
13983 IFN_MASK_STORE.
13984
13985 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
13986
13987 * gimple.h (gimple_move_vops): Declare.
13988 * gimple.c (gimple_move_vops): New function
13989 * gimple-fold.c (replace_call_with_call_and_fold)
13990 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
13991 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
13992 (gimple_fold_call): Use it.
13993 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
13994 * tree-call-cdce.c (use_internal_fn): Likewise.
13995 * tree-if-conv.c (predicate_load_or_store): Likewise.
13996 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
13997 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
13998 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
13999 (update_call_from_tree): Likewise.
14000 * tree-vect-stmts.c (vectorizable_load): Likewise.
14001 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
14002
14003 2019-08-05 Martin Liska <mliska@suse.cz>
14004
14005 PR c++/91334
14006 * tree-ssa-dce.c (propagate_necessity): Handle new operators
14007 with not arguments.
14008 (eliminate_unnecessary_stmts): Likewise.
14009
14010 2019-08-05 Richard Biener <rguenther@suse.de>
14011
14012 PR middle-end/91169
14013 * fold-const.c (get_array_ctor_element_at_index): Create
14014 offset_ints according to the sign of the index type and treat
14015 that as signed if it is obviously so.
14016
14017 2019-08-05 Jakub Jelinek <jakub@redhat.com>
14018
14019 PR target/91341
14020 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
14021 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
14022 _mm256_storeu2_m128i): New function.
14023
14024 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
14025
14026 * config/riscv/riscv.c (riscv_promote_function_mode): New.
14027 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
14028
14029 2019-08-05 Alan Modra <amodra@gmail.com>
14030
14031 PR target/91349
14032 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
14033 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
14034
14035 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
14036
14037 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
14038 bug that was fixed in Tcl 8.6.1.
14039
14040 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
14041
14042 * config/rs6000/future.md: New file.
14043 * config/rs6000/rs6000.md: Include future.md.
14044 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
14045
14046 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14047
14048 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
14049 check to use targetm.slow_unaligned_access instead.
14050
14051 * function.c (assign_param_data_one): Remove unused data members.
14052
14053 2019-08-02 Steve Ellcey <sellcey@marvell.com>
14054
14055 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
14056 build_distinct_type_copy.
14057 (simd_clone_adjust_argument_types): Ditto.
14058 (simd_clone_adjust): Call build_distinct_type_copy here.
14059 (expand_simd_clones): Ditto.
14060
14061 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
14062
14063 PR target/91201
14064 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
14065
14066 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
14067
14068 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
14069 from 'const void *'.
14070 (sort_locs_in_loop_postorder_cmp): Likewise.
14071
14072 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
14073
14074 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
14075 (hot-bb-count-ws-permille): Likewise.
14076 (hot-bb-frequency-fraction): Likewise.
14077 (unlikely-bb-count-fraction): Likewise.
14078 * params.def (hot-bb-count-fraction): Rework description.
14079 (hot-bb-count-ws-permille): Likewise.
14080 (hot-bb-frequency-fraction): Likewise.
14081 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
14082 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
14083
14084 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
14085
14086 PR target/91323
14087 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
14088 Return false.
14089
14090 2019-08-02 Richard Biener <rguenther@suse.de>
14091
14092 * vec.h (vec::sort): Add gcc_qsort_r support.
14093 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
14094 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
14095 to gcc_qsort_r style callback.
14096 (sort_locs_in_loop_postorder_cmp): Likewise.
14097 (analyze_memory_references): Use gcc_sort_r interfaces.
14098 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
14099
14100 2019-08-02 Martin Liska <mliska@suse.cz>
14101
14102 PR lto/91313
14103 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
14104 to detect working job server.
14105 (driver::detect_jobserver): Test whether jobserver
14106 is active from GCC driver. That will prevent situation where
14107 GCC is invoked from a LD plugin and the linker already uses
14108 file descriptors suggested by make. That leads to a wrong
14109 detection.
14110 * gcc.h (driver): Add detect_jobserver.
14111 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
14112 not scanning for --jobserver-auth prefix.
14113
14114 2019-08-02 Jakub Jelinek <jakub@redhat.com>
14115
14116 PR tree-optimization/91201
14117 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
14118 V16QImode extraction without sse4.1 try to use V4SImode lowpart
14119 extraction.
14120
14121 2019-08-01 Martin Sebor <msebor@redhat.com>
14122
14123 PR c++/90947
14124 * tree.c (type_initializer_zero_p): Define.
14125 * tree.h (type_initializer_zero_p): New function.
14126
14127 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
14128
14129 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
14130
14131 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
14132
14133 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
14134 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
14135 * predict.c (maybe_hot_count_p): Likewise.
14136 (maybe_hot_bb_p): Tweak comment.
14137 (maybe_hot_edge_p): Likewise.
14138 (probably_never_executed): Likewise. Minor tweak.
14139 (probably_never_executed_bb_p): Likewise.
14140 (unlikely_executed_edge_p): Likewise.
14141 (probably_never_executed_edge_p): Likewise.
14142 (optimize_function_for_size_p): Likewise.
14143 (optimize_function_for_speed_p): Likewise.
14144 (function_optimization_type): Likewise.
14145 (optimize_bb_for_size_p): Likewise.
14146 (optimize_bb_for_speed_p): Likewise.
14147 (bb_optimization_type): Likewise.
14148 (optimize_edge_for_size_p): Likewise.
14149 (optimize_edge_for_speed_p): Likewise.
14150 (optimize_insn_for_size_p): Likewise.
14151 (optimize_insn_for_speed_p): Likewise.
14152 (optimize_loop_for_size_p): Likewise.
14153 (optimize_loop_for_speed_p): Likewise.
14154 (optimize_loop_nest_for_speed_p): Likewise.
14155 (optimize_loop_nest_for_size_p): Likewise.
14156 (predictable_edge_p): Likewise.
14157 (handle_missing_profiles): Minor tweak.
14158
14159 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
14160
14161 * config/rs6000/predicates.md (pcrel_external_address): Update
14162 comment.
14163
14164 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
14165
14166 PR target/85693
14167 * config/i386/mmx.md (usadv8qi): New expander.
14168
14169 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
14170
14171 PR c++/90590
14172 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
14173 with reserved names that are in a system header.
14174
14175 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
14176
14177 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
14178 (*vec_extractv2si_0_zext_sse4): New insn pattern.
14179 (*vec_extractv2si_0_zext): Ditto.
14180 (*vec_extractv2si_1): Add (rm,x) alternative.
14181 (*vec_extractv2si_1_zext): New insn pattern.
14182 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
14183 insn constraint.
14184
14185 2019-08-01 Richard Biener <rguenther@suse.de>
14186
14187 * domwalk.c (bb_postorder): Remove static variable.
14188 (cmp_bb_postorder): Adjust.
14189 (sort_bbs_postorder): Adjust and use gcc_sort_r.
14190 (dom_walker::walk): Adjust.
14191
14192 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
14193
14194 * sort.cc (sort_r_ctx): New struct.
14195 (reorder23): Make templated on context type.
14196 (reorder45): Ditto.
14197 (cmp1): Ditto. Adjust signature.
14198 (netsort): Ditto.
14199 (mergesort): Ditto.
14200 [CHECKING_P] (cmp2to3): New static function. Use it...
14201 (gcc_qsort) [CHECKING_P]: ...here.
14202 (gcc_sort_r): New function.
14203 * system.h (sort_r_cmp_fn): New function typedef.
14204 (qsort_chk): Adjust signature.
14205 (gcc_sort_r): Declare.
14206 * vec.c (qsort_chk_error): Adjust.
14207 (qsort_chk): Adjust.
14208
14209 2019-08-01 Richard Biener <rguenther@suse.de>
14210
14211 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
14212 (compute_antic): Localize it here.
14213
14214 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
14215
14216 * common/config/riscv/riscv-common.c: Check -march string ends
14217 with null.
14218
14219 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
14220
14221 * ipa-devirt.c (type_warning_cmp): Make static.
14222 (decl_warning_cmp): Ditto.
14223
14224 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
14225
14226 PR target/91050
14227 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
14228 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
14229 use of deleted rs6000_dejagnu_cpu_index variable.
14230 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
14231 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
14232 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
14233 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
14234 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
14235 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
14236
14237 2019-07-31 Richard Biener <rguenther@suse.de>
14238
14239 PR tree-optimization/91280
14240 * tree-ssa-structalias.c (get_constraint_for_component_ref):
14241 Decompose MEM_REF manually for offset handling.
14242
14243 2019-07-31 Richard Biener <rguenther@suse.de>
14244
14245 PR tree-optimization/91293
14246 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
14247 of reduction stmts.
14248
14249 2019-07-31 Matt Thomas <matt@3am-software.com>
14250 Nick Hudson <nick@nthcliff.demon.co.uk>
14251 Matthew Green <mrg@eterna.com.au>
14252 Maya Rashish <coypu@sdf.org>
14253
14254 * config.gcc (hppa*-*-netbsd*): New target.
14255 * config/pa/pa-netbsd.h: New file.
14256 * config/pa/pa32-netbsd.h: New file.
14257
14258 2019-07-31 Jakub Jelinek <jakub@redhat.com>
14259
14260 PR tree-optimization/91201
14261 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
14262
14263 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
14264
14265 * config/gcn/gcn-valu.md
14266 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
14267 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
14268 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
14269 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
14270 struct ilist. Add nops for delayeduse insns.
14271 * config/gcn/gcn.md (delayeduse): New attribute.
14272 (*movbi): Remove s_waitcnt from stores.
14273 (*mov<mode>_insn): Likewise.
14274 (*movti_insn): Likewise. Add delayeduse attribute.
14275 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
14276 (atomic_store<mode>): Remove or adjust s_waitcnt.
14277
14278 2019-07-31 Richard Biener <rguenther@suse.de>
14279
14280 * vr-values.h (vr_values::swap_vr_value): New.
14281 (vr_values::free_value_range): likewise.
14282 * vr-values.c (vr_values::swap_vr_value): Implement.
14283 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
14284 Do not return a range or take a var.
14285 (evrp_range_analyzer::stack): Change back to recording a non-const
14286 value_range *.
14287 * gimple-ssa-evrp-analyze.c
14288 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
14289 value-range.
14290 (evrp_range_analyzer::pop_to_marker): Adjust.
14291 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
14292 (evrp_range_analyzer::pop_value_range): Likewise. Free the
14293 no longer needed value-range.
14294
14295 2019-07-31 Martin Liska <mliska@suse.cz>
14296
14297 * tree-ssa-dce.c (propagate_necessity): Delete operator can
14298 have size and (or) alignment as 2nd and later arguments.
14299 Mark all of them as necessary.
14300
14301 2019-07-31 Richard Biener <rguenther@suse.de>
14302
14303 PR tree-optimization/91178
14304 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
14305 Use tail-recursion.
14306
14307 2019-07-31 Jakub Jelinek <jakub@redhat.com>
14308
14309 PR tree-optimization/91201
14310 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
14311 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
14312 TARGET_AVX512F.
14313 (reduc_plus_scal_<mode>): Improve formatting by introducing
14314 a temporary.
14315
14316 2019-07-31 Sudakshina Das <sudi.das@arm.com>
14317
14318 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
14319 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
14320 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
14321 (aarch64_init_tme_builtins): New.
14322 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
14323 (aarch64_expand_builtin_tme): New.
14324 (aarch64_expand_builtin): Handle TME builtins.
14325 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14326 __ARM_FEATURE_TME when enabled.
14327 * config/aarch64/aarch64-option-extensions.def: Add "tme".
14328 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
14329 (TARGET_TME): New.
14330 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
14331 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
14332 UNSPECV_TCANCEL.
14333 (tstart, ttest, tcommit, tcancel): New instructions.
14334 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
14335 (__tcancel, __ttest): New.
14336 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
14337 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
14338 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
14339 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
14340 * config/arm/types.md: Add new tme type attr.
14341 * doc/invoke.texi: Document "tme".
14342
14343 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
14344
14345 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
14346 warn_unused_result attribute.
14347 (cmse_check_address_range): Add warn_unused_result attribute.
14348
14349 2019-07-31 Richard Biener <rguenther@suse.de>
14350
14351 PR tree-optimization/91257
14352 * tree-vrp.c (union_ranges): Unify equality and less tests
14353 by using compare_values. Re-order cheap tests first.
14354
14355 2019-07-31 Jakub Jelinek <jakub@redhat.com>
14356
14357 PR middle-end/91301
14358 * gimplify.c (gimplify_omp_for): If for class iterator on
14359 distribute parallel for there is no data sharing clause
14360 on inner_for_stmt, look for private clause on combined
14361 parallel too and if found, move it to inner_for_stmt.
14362
14363 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
14364
14365 * lra-int.h (lra_operand_data): Remove early_clobber field.
14366 (lra_insn_reg): Likewise.
14367 * lra.c (debug_operand_data): Update accordingly.
14368 (setup_operand_alternative): Likewise.
14369 (new_insn_reg): Likewise. Remove early_clobber parameter.
14370 (collect_non_operand_hard_regs): Update call accordingly.
14371 Don't assign to lra_insn_reg::early_clobber.
14372 (add_regs_to_insn_regno_info): Remove early_clobber parameter
14373 and update calls to new_insn_reg.
14374 (lra_update_insn_regno_info): Update calls accordingly.
14375 * lra-constraints.c (update_and_check_small_class_inputs): Take the
14376 alternative number as a parameter and test whether the operand
14377 is earlyclobbered in that particular alternative.
14378 (process_alt_operands): Update call accordingly. Use per-alternative
14379 checks for earyclobber here too.
14380 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
14381 against zero for IRA_UNKNOWN_ALT.
14382
14383 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
14384
14385 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
14386
14387 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
14388
14389 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
14390 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
14391
14392 2019-07-30 Martin Liska <mliska@suse.cz>
14393
14394 PR ipa/89330
14395 * cgraph.c (cgraph_edge::make_direct): Use
14396 edge->indirect_unknown_callee as edge->resolve_speculation can
14397 deallocate edge which is this pointer.
14398
14399 2019-07-30 Richard Biener <rguenther@suse.de>
14400
14401 PR tree-optimization/91257
14402 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
14403
14404 2019-07-30 Martin Liska <mliska@suse.cz>
14405
14406 * doc/invoke.texi: Document new behavior.
14407 * lto-wrapper.c (cpuset_popcount): New function
14408 is a copy of libgomp/config/linux/proc.c.
14409 (init_num_threads): Likewise.
14410 (run_gcc): Automatically detect core count for -flto.
14411 (jobserver_active_p): New function.
14412
14413 2019-07-30 Richard Biener <rguenther@suse.de>
14414
14415 PR tree-optimization/91257
14416 * bitmap.h (bitmap_ior_into_and_free): Declare.
14417 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
14418 whether to add the unliked element to the freelist.
14419 (bitmap_list_insert_element_after): Add defaulted param for
14420 an already allocated element.
14421 (bitmap_ior_into_and_free): New function.
14422 * tree-ssa-structalias.c (condense_visit): Reduce the
14423 ponts-to and edge bitmaps of the SCC members in a
14424 logarithmic fashion rather than all to one.
14425
14426 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
14427
14428 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
14429 parameter. When nonnull, make sure that the addition or subtraction
14430 has the same condition.
14431 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
14432 for CFN_COND_MUL too.
14433
14434 2019-07-30 Richard Biener <rguenther@suse.de>
14435
14436 PR tree-optimization/91291
14437 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
14438 constant values.
14439
14440 2019-07-30 Jakub Jelinek <jakub@redhat.com>
14441
14442 PR middle-end/91216
14443 * omp-low.c (global_nonaddressable_vars): New variable.
14444 (use_pointer_for_field): For global decls, if they are non-addressable,
14445 remember it in the global_nonaddressable_vars bitmap, if they are
14446 addressable and in the global_nonaddressable_vars bitmap, ignore their
14447 TREE_ADDRESSABLE bit.
14448 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
14449 vars in global_nonaddressable_vars bitmap.
14450 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
14451
14452 PR target/91150
14453 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
14454 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
14455 comparison to unsigned HOST_WIDE_INT before shifting it left.
14456
14457 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
14458
14459 * config/i386/i386.md (movstrict<mode>): Use register_operand
14460 predicate for operand 0. Add expander condition. Assert that
14461 operand 0 is a SUBREG RTX.
14462 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
14463 Update operand constraints and insn condition.
14464 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
14465 (zero_extendqihi2_and): Do not call gen_movstrictqi.
14466 (*setcc_qi_slp): Use register_operand predicate for operand 0.
14467 Update operand 0 constraints.
14468 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
14469
14470 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14471
14472 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
14473 when -m{code,data}-region are used without -mlarge.
14474 * config/msp430/msp430.c (msp430_option_override): Error when a
14475 non-default code or data region is used without -mlarge.
14476 (msp430_section_attr): Emit a warning and do not add upper/lower/either
14477 attributes when they are used without -mlarge.
14478
14479 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14480
14481 PR target/70320
14482 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
14483
14484 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14485
14486 PR middle-end/91242
14487 * wide-int.h (generic_wide_int::sext_elt): New function.
14488 * inchash.h (hash::add_wide_int): Use it instead of elt.
14489
14490 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14491
14492 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
14493 CODE_FOR_arm_##.
14494 * config/arm/arm.md (<crc_variant>): Rename to...
14495 (arm_<crc_variant>): ... This.
14496 (<cdp>): Rename to...
14497 (arm_<cdp>): ... This.
14498 (<ldc>): Rename to...
14499 (arm_<ldc>): ... This.
14500 (<stc>): Rename to...
14501 (arm_<stc>): ... This.
14502 (<mcr>): Rename to...
14503 (arm_<mcr>): ... This.
14504 (<mrc>): Rename to...
14505 (arm_<mrc>): ... This.
14506 (<mcrr>): Rename to...
14507 (arm_<mcrr>): ... This.
14508 (<mrrc>): Rename to...
14509 (arm_<mrrc>): ... This.
14510
14511 2019-07-29 Richard Biener <rguenther@suse.de>
14512
14513 PR tree-optimization/91257
14514 * tree-ssa-sccvn.h (struct vn_avail): New.
14515 (struct vn_ssa_aux): Add avail member.
14516 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
14517 member, add m_avail_freelist one.
14518 (rpo_elim::~rpo_elim): Remove.
14519 (rpo_elim::eliminate_avail): Adjust to new avail tracking
14520 data structure.
14521 (rpo_elim::eliminate_push_avail): Likewise.
14522 (do_unwind): Likewise.
14523 (do_rpo_vn): Likewise.
14524
14525 2019-07-29 Richard Biener <rguenther@suse.de>
14526
14527 PR tree-optimization/91257
14528 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
14529 most cases, instead call compare_values which handles the
14530 symbolic ranges we handle specially.
14531 (compare_values_warnv): Do not call operand_less_p but open-code
14532 the effective fold calls. Avoid converting so much.
14533
14534 2019-07-29 Martin Liska <mliska@suse.cz>
14535
14536 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
14537 remove LHS of operator new call. It's handled latter.
14538
14539 2019-07-29 Richard Biener <rguenther@suse.de>
14540
14541 PR tree-optimization/91267
14542 * vr-values.c (vr_values::update_value_range): Add early return
14543 for effectively VARYING lattice entry.
14544
14545 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14546
14547 PR debug/86638
14548 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
14549 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
14550 necessary if keep_all_vdefs_p is true.
14551 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
14552 that keep_all_vdefs_p is false.
14553 (mark_all_reaching_defs_necessary): Likewise.
14554 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
14555
14556 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14557
14558 * common.opt (Og): Change the initial value of flag_dse to 0.
14559 * opts.c (default_options_table): Move OPT_ftree_dse from
14560 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
14561 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
14562 entry before the OPT_ftree_sra entry.
14563 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
14564 of flags disabled by Og.
14565
14566 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14567
14568 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
14569 variables for -Og.
14570
14571 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14572
14573 * doc/sourcebuild.texi (check-function-bodies): Document.
14574
14575 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14576
14577 * simplify-rtx.c (simplify_const_unary_operation): Fold a
14578 VEC_DUPLICATE of a fixed-length vector even if the result
14579 is variable-length. Likewise fold a duplicate of a
14580 variable-length vector if the variable-length vector is
14581 itself a duplicate of a fixed-length sequence.
14582 (test_vector_ops_duplicate): Test more cases.
14583
14584 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14585
14586 * vector-builder.h (vector_builder): Add a shape template parameter.
14587 (vector_builder::new_unary_operation): New function, generalizing
14588 the old tree_vector_builder function.
14589 (vector_builder::new_binary_operation): Likewise.
14590 (vector_builder::binary_encoded_nelts): Likewise.
14591 * int-vector-builder.h (int_vector_builder): Update template
14592 parameters to vector_builder.
14593 (int_vector_builder::shape_nelts): New function.
14594 * rtx-vector-builder.h (rtx_vector_builder): Update template
14595 parameters to vector_builder.
14596 (rtx_vector_builder::shape_nelts): New function.
14597 (rtx_vector_builder::nelts_of): Likewise.
14598 (rtx_vector_builder::npatterns_of): Likewise.
14599 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
14600 * tree-vector-builder.h (tree_vector_builder): Update template
14601 parameters to vector_builder.
14602 (tree_vector_builder::shape_nelts): New function.
14603 (tree_vector_builder::nelts_of): Likewise.
14604 (tree_vector_builder::npatterns_of): Likewise.
14605 (tree_vector_builder::nelts_per_pattern_of): Likewise.
14606 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
14607 (tree_vector_builder::new_binary_operation): Delete.
14608 (tree_vector_builder::binary_encoded_nelts): Likewise.
14609 * simplify-rtx.c: Include rtx-vector-builder.h.
14610 (distributes_over_addition_p): New function.
14611 (simplify_const_unary_operation)
14612 (simplify_const_binary_operation): Generalize handling of vector
14613 constants to include variable-length vectors.
14614 (test_vector_ops_series): Add more tests.
14615
14616 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
14617
14618 PR lto/91222
14619 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
14620 than INDENTIFIER_POINTER.
14621
14622 2019-07-28 Martin Liska <mliska@suse.cz>
14623
14624 PR ipa/89330
14625 * cgraph.c (symbol_table::create_edge): Always allocate
14626 a cgraph_edge.
14627 (symbol_table::free_edge): Store summary_id to
14628 edge_released_summary_ids if != -1;
14629 * cgraph.h (NEXT_FREE_NODE): Remove.
14630 (SET_NEXT_FREE_NODE): Likewise.
14631 (NEXT_FREE_EDGE): Likewise.
14632 (symbol_table::release_symbol): Store summary_id to
14633 cgraph_released_summary_ids if != -1;
14634 (symbol_table::allocate_cgraph_symbol): Always allocate
14635 a cgraph_node.
14636
14637 2019-07-28 Alan Modra <amodra@gmail.com>
14638
14639 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
14640 gen_sibcall.
14641
14642 2019-07-28 Alan Modra <amodra@gmail.com>
14643
14644 PR target/91135
14645 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
14646 define.
14647 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
14648 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
14649 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
14650
14651 2019-07-28 Alan Modra <amodra@gmail.com>
14652
14653 PR target/91050
14654 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
14655 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
14656 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
14657 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
14658 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
14659 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
14660 in asm_default spec.
14661 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
14662 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
14663
14664 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
14665
14666 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
14667
14668 2019-07-26 Tamar Christina <tamar.christina@arm.com>
14669
14670 PR target/89517
14671 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
14672 * config/aarch64/aarch64-option-extensions.def: Add new comments
14673 and restore easier to read options.
14674
14675 2019-07-26 Tamar Christina <tamar.christina@arm.com>
14676
14677 * convert.c (convert_to_real_1): Move part of conversion code...
14678 * match.pd: ...To here.
14679
14680 2019-07-26 Martin Jambor <mjambor@suse.cz>
14681
14682 PR ipa/89330
14683 * ipa-inline-transform.c (check_speculations_1): New function.
14684 (push_all_edges_in_set_to_vec): Likewise.
14685 (check_speculations): Use check_speculations_1, new parameter
14686 new_edges.
14687 (inline_call): Pass new_edges to check_speculations.
14688 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
14689 NULL.
14690 (speculation_useful_p): Early return true if edge is inlined, remove
14691 later checks for inline_failed.
14692
14693 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
14694
14695 PR rtl-optimization/91223
14696 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
14697 matching with INOUT operand.
14698
14699 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
14700
14701 * stmt.c (expand_case): Try to narrow the index type if it's larger
14702 than a word. Tidy up.
14703
14704 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
14705
14706 * cif-code.def (NEVER_CALL): New code.
14707 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
14708 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
14709
14710 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
14711
14712 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
14713 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
14714
14715 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
14716
14717 * ipa-devirt.c (add_type_duplicate): Fix return value.
14718
14719 2019-07-25 Richard Biener <rguenther@suse.de>
14720
14721 * tree-vrp.c (extract_range_from_multiplicative_op): Add
14722 type parameter and use it instead of guessing expression
14723 type from the first operand.
14724 (extract_range_from_binary_expr): Pass expr_type down.
14725
14726 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14727
14728 * config/arm/arm.md (SATrev): Change to code attribute.
14729 (*satsi_<SAT:code>): Adjust for the above.
14730 (*satsi_<SAT:code>_shift): Likewise.
14731
14732 2019-07-25 Richard Biener <rguenther@suse.de>
14733
14734 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
14735 Make value_range * temporary const.
14736 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
14737 Likewise.
14738 (evrp_range_analyzer::record_ranges_from_): Likewise.
14739 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
14740 deal with having recorded a const one.
14741 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
14742 Return a const value_range *.
14743 (evrp_range_analyzer::pop_value_range): Likewise.
14744 (evrp_range_analyzer::stack): Record const value_range *s.
14745 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
14746 Adjust.
14747 * gimple-ssa-sprintf.c (get_int_range): Likewise.
14748 (format_integer): Likewise.
14749 (sprintf_dom_walker::handle_gimple_call): Likewise.
14750 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
14751 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
14752 (vrp_prop::get_value_range): Adjust.
14753 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
14754 modifying the lattice in-place.
14755 (vrp_prop::visit_stmt): Likewise.
14756 * vr-values.c (vr_values::get_lattice_entry): New private method.
14757 (vr_values::get_value_range): Wrap it and return a const
14758 value_range *.
14759 (vr_values::set_def_to_varying): New.
14760 (vr_values::set_defs_to_varying): Use it.
14761 (vr_values::update_value_range): Likewise.
14762 (vr_values::vrp_stmt_computes_nonzero): Adjust.
14763 (values::op_with_constant_singleton_va): Likewise.
14764 (vr_values::extract_range_for_var_from_co): Likewise.
14765 (vr_values::extract_range_from_ssa_name): Likewise.
14766 (vr_values::extract_range_from_cond_expr): Likewise.
14767 (vr_values::extract_range_basic): Likewise.
14768 (compare_ranges): Take const value_range *, adjust.
14769 (compare_range_with_value): Likewise.
14770 (vrp_valueize): Adjust.
14771 (vrp_valueize_1): Likewise.
14772 (vr_values::get_vr_for_comparison): Return a const value_range *.
14773 (vr_values::compare_name_with_value): Adjust.
14774 (vr_values::compare_names): Likewise.
14775 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14776 Likewise.
14777 (vr_values::vrp_evaluate_conditional): Likewise.
14778 (find_case_label_ranges): Take a const value_range *.
14779 (vr_values::vrp_visit_switch_stmt): Adjust.
14780 (vr_values::extract_range_from_phi_node): Likewise.
14781 (vr_values::simplify_div_or_mod_using_ran): Likewise.
14782 (vr_values::simplify_abs_using_ranges): Likewise.
14783 (test_for_singularity): Take a const value_range *.
14784 (range_fits_type_p): Likewise.
14785 (vr_values::simplify_cond_using_ranges_1): Adjust.
14786 (vr_values::simplify_cond_using_ranges_2): Likewise.
14787 (vr_values::simplify_switch_using_ranges): Likewise.
14788 (vr_values::simplify_float_conversion_usi): Likewise.
14789 (vr_values::two_valued_val_range_p): Likewise.
14790 * vr-values.h (vr_values::get_value_range): Return a const
14791 value_range *.
14792 (vr_values::set_def_to_varying): New.
14793 (vr_values::get_lattice_entry): New private method.
14794 (vr_values::get_vr_for_comparison): Return a const value_range *.
14795
14796 2019-07-25 Martin Liska <mliska@suse.cz>
14797 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
14798
14799 PR c++/23383
14800 * common.opt: Add -fallocation-dce
14801 * gimple.c (gimple_call_operator_delete_p): New.
14802 * gimple.h (gimple_call_operator_delete_p): Likewise.
14803 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
14804 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
14805 DECL_IS_OPERATOR_DELETE_P.
14806 (mark_all_reaching_defs_necessary_1): Likewise.
14807 (propagate_necessity): Likewise.
14808 (eliminate_unnecessary_stmts): Handle
14809 gimple_call_operator_delete_p.
14810 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
14811 Add packing of OPERATOR_DELETE.
14812 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
14813 Similarly here.
14814 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
14815 (DECL_SET_IS_OPERATOR_DELETE): New.
14816 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
14817
14818 2019-07-25 Martin Liska <mliska@suse.cz>
14819
14820 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
14821 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
14822 * coverage.c (coverage_begin_function): Likewise.
14823 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
14824 * gimple.c (gimple_call_nonnull_result_p): Likewise.
14825 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
14826 (sem_item::hash_referenced_symbol_properties): Likewise.
14827 * lto-streamer-out.c (hash_tree): Likewise.
14828 * predict.c (expr_expected_value_1): Likewise.
14829 * tree-inline.c (expand_call_inline): Likewise.
14830 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
14831 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
14832 * tree-core.h (enum function_decl_type): New enum.
14833 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
14834 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
14835 (set_function_decl_type): Likewise.
14836 (DECL_IS_OPERATOR_NEW_P): New.
14837 (DECL_SET_IS_OPERATOR_NEW): Likewise.
14838 (DECL_LAMBDA_FUNCTION): Likewise.
14839 (DECL_LAMBDA_FUNCTION_P): Likewise.
14840 (DECL_IS_OPERATOR_NEW): Remove.
14841 (DECL_SET_LAMBDA_FUNCTION): Likewise.
14842
14843 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
14844
14845 * ipa-profile.c (get_most_common_single_value): Use
14846 get_nth_most_common_value.
14847 * profile.c (sort_hist_value): New function.
14848 (compute_value_histograms): Call sort_hist_value to sort the
14849 values after loading from disk.
14850 * value-prof.c (get_most_common_single_value): Rename to ...
14851 get_nth_most_common_value. Add input params n, return
14852 the n_th value and count.
14853 (gimple_divmod_fixed_value_transform): Use
14854 get_nth_most_common_value.
14855 (gimple_ic_transform): Likewise.
14856 (gimple_stringops_transform): Likewise.
14857 * value-prof.h (get_most_common_single_value): Add input params
14858 n, default to 0.
14859
14860 2019-07-25 Richard Biener <rguenther@suse.de>
14861
14862 PR tree-optimization/91236
14863 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
14864 size of CONSTRUCTOR write. Fix buffer size we pass to
14865 native_encode_expr.
14866
14867 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14868
14869 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
14870 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
14871 r273773.
14872
14873 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14874
14875 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
14876 explicitly disabled with --disable-initfini-array.
14877
14878 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14879
14880 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
14881 if-exists.
14882
14883 2019-07-24 Martin Sebor <msebor@redhat.com>
14884
14885 PR tree-optimization/91183
14886 PR tree-optimization/86688
14887 * builtins.c (compute_objsize): Handle MEM_REF.
14888 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
14889 (get_min_string_length): Remove.
14890 (count_nonzero_bytes): New function.
14891 (handle_char_store): Rename...
14892 (handle_store): to this. Handle multibyte stores via integer types.
14893 (strlen_check_and_optimize_stmt): Adjust conditional and the called
14894 function name.
14895
14896 2019-07-24 Martin Sebor <msebor@redhat.com>
14897
14898 PR driver/80545
14899 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
14900 (diagnostic_report_diagnostic): Same.
14901 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
14902 (diagnostic_context::lang_mask): New data member.
14903 * ipa-pure-const.c (suggest_attribute): Use
14904 lang_hooks.option_lang_mask ().
14905 * opts-common.c (option_enabled): Handle new argument.
14906 (get_option_state): Pass an additional argument.
14907 * opts.c (print_filtered_help): Print supported languages for
14908 unsupported options. Adjust printing of current state.
14909 * opts.h (option_enabled): Add argument.
14910 * toplev.c (print_switch_values): Use lang_mask.
14911 (general_init): Set global_dc->lang_mask.
14912
14913 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
14914
14915 PR bootstrap/87030
14916 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
14917
14918 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
14919
14920 * cgraphunit.c (symbol_table::compile): Start and stop
14921 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
14922 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
14923
14924 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
14925
14926 * gimplify.c (flag_instrument_functions_exclude_p): Include
14927 namespace/class information in the printable name.
14928 * opts.c (add_comma_separated_to_vector): Add NUL terminator
14929 to tokens entered into the vector.
14930
14931 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
14932
14933 * tree-nested.c (build_simple_mem_ref_notrap): New function.
14934 (get_static_chain): Call it instead of build_simple_mem_ref.
14935 (get_frame_field): Likewise.
14936 (get_nonlocal_debug_decl): Likewise.
14937 (convert_nonlocal_reference_op): Likewise.
14938
14939 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
14940
14941 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
14942 declaration.
14943 (arc_compute_frame_size): Millicode is disabled when compiling
14944 ISR.
14945 (arc_return_address_register): Likewise.
14946 (arc_compute_function_type): Likewise.
14947 (arc_compute_frame_size): Likewise.
14948 (secondary_reload_info): Likewise.
14949 (arc_get_unalign): Likewise.
14950 (arc_can_use_return_insn): Declare.
14951 * config/arc/arc.c (AUX_LP_START): Define
14952 (AUX_LP_END): Likewise.
14953 (arc_frame_info): Update gmask member to 64-bit datum.
14954 (GMASK_LEN): Update.
14955 (arc_compute_function_type): Make it static, move it forward.
14956 (arc_must_save_register): Update, consider the extra regs.
14957 (arc_compute_millicode_save_restore_regs): Update to use the 64
14958 bit gmask.
14959 (arc_compute_frame_size): Likewise.
14960 (arc_enter_leave_p): Likewise.
14961 (arc_save_callee_saves): Likewise.
14962 (arc_restore_callee_saves): Likewise.
14963 (arc_save_callee_enter): Likewise.
14964 (arc_restore_callee_leave): Likewise.
14965 (arc_save_callee_milli): Likewise.
14966 (arc_restore_callee_milli): Likewise.
14967 (arc_expand_prologue): Add new interrupt handling.
14968 (arc_return_address_register): Make it static, move it forward.
14969 (arc_expand_epilogue): Add new interrupt handling.
14970 (arc_get_unalign): Delete.
14971 (arc_epilogue_uses): Make sure we do not remove the extra
14972 saved/restored registers when interrupt.
14973 (arc_can_use_return_insn): New function.
14974 (push_reg): Likewise.
14975 (pop_reg): Likewise.
14976 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
14977 procedures.
14978 (arc_restore_callee_saves): Likewise, but restoring.
14979 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
14980 (R33_REG): Likewise.
14981 (R34_REG): Likewise.
14982 (R35_REG): Likewise.
14983 (R36_REG): Likewise.
14984 (R37_REG): Likewise.
14985 (R38_REG): Likewise.
14986 (R39_REG): Likewise.
14987 (R45_REG): Likewise.
14988 (R46_REG): Likewise.
14989 (R47_REG): Likewise.
14990 (R48_REG): Likewise.
14991 (R49_REG): Likewise.
14992 (R50_REG): Likewise.
14993 (R51_REG): Likewise.
14994 (R52_REG): Likewise.
14995 (R53_REG): Likewise.
14996 (R54_REG): Likewise.
14997 (R55_REG): Likewise.
14998 (R56_REG): Likewise.
14999 (R58_REG): Likewise.
15000 (type): Add rtie attribute.
15001 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
15002 (movsi_insn): Accept moves to lp_count.
15003 (rtie): Update pattern.
15004 (simple_return): Simplify it, don't use this pattern as a return
15005 from an interrupt.
15006 (arc600_rtie): New pattern.
15007 (p_return_i): Clean up.
15008 (return): Likewise.
15009 * config/arc/builtins.def (rtie): Only available for non ARC6xx
15010 family CPUs.
15011 * config/arc/predicates.md (move_src_operand): Consider lp_count
15012 as a register.
15013
15014 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
15015
15016 * config/s390/predicates.md (addv_const_operand): New predicate.
15017 * config/s390/s390-modes.def (CCO): New condition code mode.
15018 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
15019 (s390_branch_condition_mask): Likewise.
15020 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
15021 ("mulv<mode>4"): New expanders.
15022 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
15023 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
15024 pattern definitions.
15025
15026 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15027
15028 PR middle-end/91166
15029 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
15030 (define_predicates): Add entry for uniform_vector_p.
15031 (vec_same_elem_p): New match pattern.
15032
15033 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
15034
15035 PR bootstrap/87030
15036 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
15037 * config/i386/darwin32-biarch.h .. to here.
15038 * config/i386/darwin64-biarch.h: Adjust comments.
15039 * config/rs6000/darwin32-biarch.h: Likewise.
15040 * config/rs6000/darwin64-biarch.h: Likewise.
15041 * config.gcc: Missed commit from r273746
15042 (*-*-darwin*): Don't include CPU t-darwin here.
15043 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
15044 an error message if i686-darwin configuration is attempted for
15045 Darwin >= 18.
15046
15047 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
15048
15049 PR bootstrap/87030
15050 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
15051 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
15052 an error message if i686-darwin configuration is attempted for
15053 Darwin >= 18.
15054 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
15055 (powerpc-*-darwin*): Use biarch files where needed.
15056 (powerpc64-*-darwin*): Likewise.
15057 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
15058 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
15059 arch case.
15060 * config/i386/darwin32-biarch.h: New.
15061 * config/i386/darwin64.h: Rename.
15062 * config/i386/darwin64-biarch.h: To this.
15063 * config/i386/t-darwin: Rename.
15064 * config/i386/t-darwin32-biarch: To this.
15065 * config/i386/t-darwin64: Rename.
15066 * config/i386/t-darwin64-biarch: To this.
15067 * config/rs6000/darwin32-biarch.h: New.
15068 * config/rs6000/darwin64.h: Rename.
15069 * config/rs6000/darwin64-biarch.h: To this.
15070 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
15071 arch case.
15072 * config/rs6000/t-darwin8: Rename.
15073 * config/rs6000/t-darwin32-biarch: To this.
15074 * config/rs6000/t-darwin64 Rename.
15075 * config/rs6000/t-darwin64-biarch: To this.
15076
15077 2019-07-23 Martin Sebor <msebor@redhat.com>
15078
15079 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
15080
15081 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
15082
15083 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
15084 (rh): New alias for it.
15085
15086 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
15087
15088 * gdbhooks.py: Pass replace=True to
15089 gdb.printing.register_pretty_printer.
15090
15091 2019-07-23 Richard Biener <rguenther@suse.de>
15092
15093 PR debug/91231
15094 * lto-streamer-in.c (input_function): Drop inline-entry markers
15095 that ended up with an unknown location block.
15096
15097 2019-07-23 Richard Biener <rguenther@suse.de>
15098
15099 PR tree-optimization/83518
15100 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
15101 init from a constant even when partial defs are already recorded.
15102
15103 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15104
15105 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
15106 * config/i386/znver1.md: Enable patterns for znver2 and add store
15107 variants which use extra AGU unit.
15108
15109 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15110
15111 * config/i386/i386-options.c (ix86_option_override_internal): Default
15112 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
15113 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
15114 for ZNVER2.
15115
15116 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15117
15118 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
15119 (znver2_costs): Update 256 bit SSE costs and multiplication.
15120
15121 2019-07-23 Jan Beulich <jbeulich@suse.com>
15122
15123 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
15124 Require only AVX512F.
15125 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
15126 alternative expanding to vpternlog.
15127
15128 2019-07-23 Martin Liska <mliska@suse.cz>
15129
15130 * dwarf2out.c (gen_producer_string): Canonize -flto=N
15131 to -flto in dwarf producer string.
15132
15133 2019-07-23 Richard Biener <rguenther@suse.de>
15134
15135 * tree-cfg.c (label_for_bb): Remove global var.
15136 (main_block_label): Take label_for_bb as argument.
15137 (cleanup_dead_labels_eh): Likewise, adjust.
15138 (cleanup_dead_labels): Adjust.
15139
15140 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
15141
15142 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
15143 Configurations): Add documentation for __builtin_mtfsf.
15144
15145 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
15146
15147 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
15148 * config/riscv/riscv.c (riscv_constant_alignment): Use
15149 riscv_align_data_type.
15150 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
15151 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
15152 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
15153 * config/riscv/riscv.opt (malign-data): New.
15154 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
15155
15156 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
15157
15158 * cgraph.c (dump_graphviz): New function.
15159 * cgraph.h (dump_graphviz): New function.
15160 * symtab.c (dump_graphviz): New function.
15161
15162 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
15163
15164 * config/aarch64/aarch64-simd.md
15165 (*aarch64_simd_sra<mode>): New.
15166 * config/aarch64/iterators.md
15167 (SHIFTRT): New iterator.
15168 (sra_op): New attribute.
15169
15170 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15171
15172 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
15173 callee-saved regs R4->R10 in an interrupt function that calls another
15174 function.
15175
15176 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
15177
15178 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
15179 (_mm_blendv_epi8): New.
15180
15181 2019-07-22 Richard Biener <rguenther@suse.de>
15182
15183 PR tree-optimization/91221
15184 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
15185 restrict partial-def handling of empty constructors and
15186 memset to refs with known offset.
15187
15188 2019-07-22 Jan Beulich <jbeulich@suse.com>
15189
15190 * config/i386/sse.md (ternlogsuffix): New.
15191 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
15192 AVX512F is in use.
15193 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
15194
15195 2019-07-22 Martin Liska <mliska@suse.cz>
15196
15197 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
15198 comment.
15199 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
15200
15201 2019-07-22 Martin Liska <mliska@suse.cz>
15202
15203 * lto-section-in.c (lto_get_section_data):
15204 Use new function get_compression.
15205 * lto-streamer-out.c (produce_lto_section): Use
15206 set_compression to encode compression algorithm.
15207 * lto-streamer.h (struct lto_section): Do not
15208 use bitfields in the format.
15209
15210 2019-07-22 Martin Liska <mliska@suse.cz>
15211
15212 PR driver/91172
15213 * opts-common.c (decode_cmdline_option): Decode
15214 argument of -Werror and check it for a wrong language.
15215 * opts-global.c (complain_wrong_lang): Remove such case.
15216
15217 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
15218
15219 * config/arc/arc.c (prepare_move_operands): Always use an
15220 intermediate register when storing a TLS symbols.
15221
15222 2019-07-22 Stafford Horne <shorne@gmail.com>
15223
15224 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
15225 force_reg.
15226
15227 2019-07-22 Stafford Horne <shorne@gmail.com>
15228
15229 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
15230 and munordered-float validations.
15231 * config/or1k/constraints.md (d): New register constraint.
15232 * config/or1k/predicates.md (fp_comparison_operator): New.
15233 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
15234 operands.
15235 (or1k_expand_compare): Normalize unordered comparisons.
15236 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
15237 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
15238 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
15239 * config/or1k/or1k.md (type): Add fpu.
15240 (fpu): New instruction reservation.
15241 (F, f, fr, fi, FI, FOP, fop): New.
15242 (<fop><F:mode>3): New ALU instruction definition.
15243 (float<fi><F:mode>2): New conversion instruction definition.
15244 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
15245 (fpcmpcc): New code iterator.
15246 (*sf_fp_insn): New instruction definition.
15247 (cstore<F:mode>4): New expand definition.
15248 (cbranch<F:mode>4): New expand definition.
15249 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
15250 munordered-float): New options.
15251 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
15252 munordered-float.
15253
15254 2019-07-22 Stafford Horne <shorne@gmail.com>
15255
15256 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
15257 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
15258 documenation to be more clear.
15259 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
15260 more clear.
15261 * config/or1k/or1k.opt (mrori): New option.
15262 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
15263 msfimm, mshftimm): Rewrite documentation to be more clear.
15264 * config/or1k/or1k.md (insn_support): Add ror and rori.
15265 (enabled): Add conditions for ror and rori.
15266 (rotrsi3): Replace condition for shftimm with ror and rori.
15267
15268 2019-07-22 Stafford Horne <shorne@gmail.com>
15269
15270 PR target/90363
15271 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
15272 (extend<mode>si2): Update predicate.
15273 * config/or1k/predicates.md (volatile_mem_operand): New.
15274 (reg_or_mem_operand): New.
15275
15276 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
15277
15278 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
15279 * config/rs6000/rs6000-call.c: ... to here.
15280
15281 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15282
15283 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
15284 memory.
15285
15286 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15287
15288 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
15289
15290 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15291
15292 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
15293
15294 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15295
15296 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
15297 (any_memory_operand): New predicate.
15298 (reg_or_mem_operand): Use it.
15299
15300 2019-07-20 Jakub Jelinek <jakub@redhat.com>
15301
15302 PR target/91204
15303 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
15304
15305 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
15306
15307 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
15308 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
15309
15310 2019-07-20 Jakub Jelinek <jakub@redhat.com>
15311
15312 * tree.def (OMP_LOOP): New tree code.
15313 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
15314 (enum omp_clause_bind_kind): New enum.
15315 (struct tree_omp_clause): Add subcode.bind_kind.
15316 * tree.h (OMP_LOOP_CHECK): Rename to ...
15317 (OMP_LOOPING_CHECK): ... this.
15318 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
15319 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
15320 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
15321 (OMP_CLAUSE_BIND_KIND): Define.
15322 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
15323 bind clause entries.
15324 (walk_tree_1): Handle OMP_CLAUSE_BIND.
15325 * tree-pretty-print.c (dump_omp_clause): Likewise.
15326 (dump_generic_node): Handle OMP_LOOP.
15327 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
15328 (in_omp_construct): New variable.
15329 (is_gimple_stmt): Handle OMP_LOOP.
15330 (gimplify_scan_omp_clauses): For lastprivate don't set
15331 check_non_private if code == OMP_LOOP. For reduction clause
15332 on OMP_LOOP combined with parallel or teams propagate as shared
15333 on the combined construct. Handle OMP_CLAUSE_BIND.
15334 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
15335 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
15336 for constructs from a loop construct to gimplify_scan_omp_clauses.
15337 Don't predetermine iterator linear on OMP_SIMD from loop construct.
15338 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
15339 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
15340 to match the implicit ORT_TARGET construct around whole body.
15341 Temporarily clear in_omp_construct when processing body.
15342 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
15343 etc. temporarily set in_omp_construct when processing body.
15344 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
15345 * omp-low.c (struct omp_context): Add loop_p.
15346 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
15347 in that the original var might be private.
15348 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
15349 (check_omp_nesting_restrictions): Adjust nesting restrictions for
15350 addition of loop construct.
15351 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
15352
15353 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
15354 lastprivate non-addressable iterator of a collapse(1) simd.
15355
15356 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
15357
15358 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
15359 as in rs6000.c.
15360
15361 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
15362
15363 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
15364 refer to default conditions. Warn for the 'y' spec which is ignored
15365 by current linkers.
15366
15367 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
15368
15369 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
15370 cpu_supports_info, builtin_hash_struct, builtin_hasher,
15371 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
15372 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
15373 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
15374 init_cumulative_args, rs6000_promote_function_mode,
15375 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
15376 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
15377 rs6000_function_arg_boundary, rs6000_parm_offset,
15378 rs6000_parm_start, rs6000_arg_size,
15379 rs6000_darwin64_record_arg_advance_flush,
15380 rs6000_darwin64_record_arg_advance_recurse,
15381 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
15382 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
15383 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
15384 rs6000_mixed_function_arg, rs6000_psave_function_arg,
15385 rs6000_finish_function_arg, rs6000_function_arg,
15386 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
15387 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
15388 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
15389 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
15390 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
15391 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
15392 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
15393 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
15394 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
15395 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
15396 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
15397 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
15398 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
15399 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
15400 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
15401 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
15402 get_element_number, altivec_expand_vec_set_builtin,
15403 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
15404 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
15405 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
15406 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
15407 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
15408 rs6000_expand_builtin, rs6000_vector_type,
15409 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
15410 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
15411 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
15412 to rs6000-call.c.
15413 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
15414 cpu_supports_info, builtin_hash_struct, builtin_hasher,
15415 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
15416 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
15417 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
15418 init_cumulative_args, rs6000_promote_function_mode,
15419 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
15420 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
15421 rs6000_function_arg_boundary, rs6000_parm_offset,
15422 rs6000_parm_start, rs6000_arg_size,
15423 rs6000_darwin64_record_arg_advance_flush,
15424 rs6000_darwin64_record_arg_advance_recurse,
15425 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
15426 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
15427 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
15428 rs6000_mixed_function_arg, rs6000_psave_function_arg,
15429 rs6000_finish_function_arg, rs6000_function_arg,
15430 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
15431 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
15432 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
15433 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
15434 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
15435 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
15436 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
15437 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
15438 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
15439 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
15440 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
15441 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
15442 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
15443 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
15444 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
15445 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
15446 get_element_number, altivec_expand_vec_set_builtin,
15447 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
15448 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
15449 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
15450 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
15451 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
15452 rs6000_expand_builtin, rs6000_vector_type,
15453 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
15454 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
15455 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
15456 to here from rs6000.c.
15457 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
15458 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
15459 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
15460 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
15461 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
15462 rs6000_return_in_memory, rs6000_return_in_msb,
15463 rs6000_pass_by_reference, setup_incoming_varargs,
15464 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
15465 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
15466 rs6000_function_arg_padding, rs6000_function_arg,
15467 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
15468 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
15469 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
15470 rs6000_passes_long_double, rs6000_passes_vector,
15471 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
15472 altivec_builtin_mask_for_load) Add declarations.
15473 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
15474 * config/config.gcc: Add new source file rs6000-call.c to garbage
15475 collector and extra_objs.
15476
15477 2019-07-19 Jeff Law <law@redhat.com>
15478
15479 PR tree-optimization/86061
15480 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
15481 strncpy. Drop some trivial dead code.
15482 (maybe_trim_memstar_call): Handle strncpy.
15483
15484 2019-07-19 Richard Biener <rguenther@suse.de>
15485
15486 PR tree-optimization/91211
15487 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
15488 memset encoding size.
15489
15490 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
15491
15492 PR target/91204
15493 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
15494
15495 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
15496
15497 PR ipa/91194
15498 * ipa-inline.c (recursive_inlining): Fix limits check.
15499
15500 2019-07-19 Richard Biener <rguenther@suse.de>
15501
15502 PR tree-optimization/91200
15503 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
15504 no PHI nodes in middle-bb.
15505
15506 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
15507
15508 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
15509 to +sve-bitperm.
15510 * config/aarch64/aarch64-option-extensions.def: Likewise.
15511
15512 2019-07-19 Jakub Jelinek <jakub@redhat.com>
15513
15514 PR middle-end/91190
15515 * function.c (insert_temp_slot_address): Store into the hash table
15516 a copy of address to avoid RTL sharing issues.
15517
15518 2019-07-19 Richard Biener <rguenther@suse.de>
15519
15520 PR tree-optimization/91207
15521 Revert
15522 2019-07-17 Richard Biener <rguenther@suse.de>
15523
15524 PR tree-optimization/91178
15525 * tree-vect-stmts.c (get_group_load_store_type): For SLP
15526 loads with a gap larger than the vector size always use
15527 VMAT_STRIDED_SLP.
15528 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
15529 avoid loading vectors that are only contained in the gap
15530 and thus are not needed.
15531
15532 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
15533
15534 * config/i386/i386.md (*addqi_2_slp): Remove.
15535 (*<code>qi_2_slp): Ditto.
15536
15537 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
15538
15539 * config/rs6000/predicates.md (prefixed_mem_operand): Call
15540 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
15541 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
15542 Rename function from rs6000_prefixed_address.
15543 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
15544 TARGET_HAS_TOC.
15545 (TARGET_TOC): Likewise.
15546 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
15547 rs6000.h.
15548 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
15549 TARGET_HAS_TOC.
15550 (TARGET_TOC): Likewise.
15551 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
15552 rs6000.h.
15553 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
15554 TARGET_HAS_TOC.
15555 (TARGET_TOC): Likewise.
15556 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
15557 check to require -mcmodel=medium for pc-relative addressing.
15558 (create_TOC_reference): Add assertion for TARGET_TOC.
15559 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
15560 TARGET_NO_TOC.
15561 (rs6000_emit_move): Likewise.
15562 (TOC_alias_set): Rename TOC alias set static variable from 'set'
15563 to 'TOC_alias_set'.
15564 (get_TOC_alias_set): Likewise.
15565 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
15566 TARGET_NO_TOC.
15567 (rs6000_can_eliminate): Likewise.
15568 (rs6000_prefixed_address_mode_p): Rename function from
15569 rs6000_prefixed_address.
15570 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
15571 TARGET_HAS_TOC and not pc-relative.
15572 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
15573 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
15574 TARGET_HAS_TOC.
15575 (TARGET_TOC): Likewise.
15576 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
15577 rs6000.h.
15578
15579 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
15580
15581 PR target/91188
15582 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
15583 for operand 0. Do not use (match_dup) to match operand 1 with
15584 operand 0. Add check in insn constraint that either input operand
15585 matches operand 0. Use SWI12 mode iterator to also handle
15586 HImode operands.
15587 (*and<mode>_1_slp): Ditto.
15588 (*<code>qi_1_slp): Ditto.
15589 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
15590 Do not use (match_dup) to match operand 1 with operand 0. Add
15591 check in insn constraint that operand 1 matches operand 0.
15592 Use SWI12 mode iterator to also handle HImode operands.
15593 (*ashl<mode>3_1_slp): Ditto.
15594 (*<shift_insn><mode>3_1_slp): Ditto.
15595 (*<rotate_insn><mode>3_1_slp): Ditto.
15596
15597 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
15598
15599 * config/arm/arm-builtins.c
15600 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
15601 (arm_expand_unop_builtin): Likewise.
15602 * config/arm/crypto.md
15603 (crypto_sha1h): Convert from define_insn to define_expand.
15604 (crypto_<crypto_pattern>): Likewise.
15605 (crypto_sha1h_lb): New define_insn.
15606 (crypto_<crypto_pattern>_lb): Likewise.
15607
15608 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
15609
15610 PR target/90317
15611 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
15612 (vsha1cq_u32): Likewise.
15613 (vsha1pq_u32): Likewise.
15614 (vsha1mq_u32): Likewise.
15615 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
15616 vec select.
15617 (crypto_sha1c): Correct vec select.
15618 (crypto_sha1m): Likewise.
15619 (crypto_sha1p): Likewise.
15620
15621 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
15622
15623 * config/arm/predicates.md (arm_borrow_operation): New predicate.
15624 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
15625 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
15626 (subdi_zesidi_zesidi): Likewise.
15627 (negdi2_compare, negdi2_insn): Likewise.
15628 (negdi_extensidi): Likewise.
15629 (negdi_zero_extendsidi): Likewise.
15630 (arm_cmpdi_insn): Likewise.
15631 (subsi3_carryin): Use arm_borrow_operation.
15632 (subsi3_carryin_const): Likewise.
15633 (subsi3_carryin_const0): Likewise.
15634 (subsi3_carryin_compare): Likewise.
15635 (subsi3_carryin_compare_const): Likewise.
15636 (subsi3_carryin_compare_const0): Likewise.
15637 (subsi3_carryin_shift): Likewise.
15638 (rsbsi3_carryin_shift): Likewise.
15639 (negsi2_carryin_compare): Likewise.
15640
15641 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
15642
15643 PR tree-optimization/91137
15644 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
15645 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
15646 Init, use and fini the above new field.
15647 (determine_base_object_1): New function.
15648 (determine_base_object): Reimplement using walk_tree.
15649
15650 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
15651
15652 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
15653 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
15654 CLEANUP_FORCE_FAST_DCE is set.
15655 * ifcvt.c (rest_of_handle_if_conversion): Pass
15656 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
15657 if-conversion succeeded.
15658
15659 2019-07-18 Richard Biener <rguenther@suse.de>
15660
15661 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
15662 branches to make code less indented.
15663
15664 2019-07-17 Alexandre Oliva <oliva@adacore.com>
15665
15666 PR middle-end/81824
15667 * attribs.c (decls_mismatched_attributes): Simplify the logic
15668 that avoids duplicates and false positives.
15669
15670 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
15671
15672 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
15673 data into data section when generating PIC code.
15674 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
15675 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
15676 generating code for SOM targets earlier than HP-UX 11. Otherwise,
15677 return 2 for SOM and 0 for other targets.
15678
15679 2019-07-17 Jeff Law <law@redhat.com>
15680
15681 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
15682 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
15683 avoid unexpected switch statement fallthru.
15684
15685 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
15686
15687 * config/i386/i386.md (*add<dwi>3_doubleword):
15688 Remove redundant constraints.
15689 (*add<mode>_1): Ditto.
15690 (*addhi_1): Ditto.
15691 (*addqi_1): Ditto.
15692 (*addqi_1_slp): Ditto.
15693 (*add<mode>_2): Ditto.
15694 (*addv<mode>4): Ditto.
15695 (*sub<dwi>3_doubleword): Ditto.
15696 (*sub<mode>_1): Ditto.
15697 (*subqi_1_slp): Ditto.
15698 (*sub<mode>_2): Ditto.
15699 (*subv<mode>4): Ditto.
15700 (*sub<mode>_3): Ditto.
15701 (@add<mode>3_carry): Ditto.
15702 (@sub<mode>3_carry): Ditto.
15703 (*add<mode>3_cc_overflow_1): Ditto.
15704 (*add<mode>3_zext_cc_overflow_2): Ditto.
15705 (*anddi_1): Ditto.
15706 (*and<mode>_1): Ditto.
15707 (*andqi_1): Ditto.
15708 (*andqi_1_slp): Ditto.
15709 (*anddi_2): Ditto.
15710 (*andqi_2_maybe_si): Ditto.
15711 (*and<mode>_2): Ditto.
15712 (*andqi_2_slp): Ditto.
15713 (*<code><mode>_1): Ditto.
15714 (*<code>qi_1): Ditto.
15715 (*<code>qi_1_slp): Ditto.
15716 (*<code><mode>_2): Ditto.
15717 (*<code>qi_2_slp): Ditto.
15718
15719 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
15720
15721 * alias.c (record_component_aliases): Do not simplify pointed-to
15722 types of ODR types.
15723
15724 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
15725
15726 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
15727 partial reg stall on alternative 2.
15728
15729 2019-07-17 Richard Biener <rguenther@suse.de>
15730
15731 PR tree-optimization/91178
15732 * tree-ssa.c (release_defs_bitset): Iterate from higher to
15733 lower SSA names to avoid quadratic behavior in the common case.
15734 * tree-data-ref.c (split_constant_offset): Add limit argument
15735 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
15736 (split_constant_offset_1): Add limit argument and use it to
15737 limit SSA def walking. Optimize the common plus/minus case.
15738
15739 2019-07-17 Richard Biener <rguenther@suse.de>
15740
15741 PR tree-optimization/91178
15742 * tree-vect-stmts.c (get_group_load_store_type): For SLP
15743 loads with a gap larger than the vector size always use
15744 VMAT_STRIDED_SLP.
15745 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
15746 avoid loading vectors that are only contained in the gap
15747 and thus are not needed.
15748
15749 2019-07-17 Richard Biener <rguenther@suse.de>
15750
15751 PR tree-optimization/91180
15752 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
15753 computation for memset partial defs.
15754
15755 2019-07-17 Jakub Jelinek <jakub@redhat.com>
15756
15757 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
15758 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
15759 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
15760 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
15761 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
15762 * omp-grid.c (grid_process_grid_body,
15763 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
15764 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
15765 == GF_OMP_FOR_KIND_SIMD.
15766 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
15767 check_omp_nesting_restrictions, scan_omp_1_stmt,
15768 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
15769 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
15770 omp_find_scan): Likewise.
15771 * omp-expand.c (expand_omp_for): Likewise.
15772 * omp-general.c (omp_extract_for_data): Likewise.
15773
15774 PR tree-optimization/91157
15775 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
15776 a vector boolean with scalar mode.
15777 (expand_vector_condition): Handle first operand being a vector boolean
15778 with scalar mode.
15779 (expand_vector_operations_1): For comparisons, don't bail out early
15780 if the return type is vector boolean with scalar mode, but comparison
15781 operand type is not.
15782
15783 2019-07-17 Richard Biener <rguenther@suse.de>
15784
15785 PR tree-optimization/91181
15786 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
15787 IFN_LOADs as calls.
15788
15789 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
15790
15791 * config/i386/i386.md (*testdi_1): Match CCZmode for
15792 constants that might have the SImode sign bit set.
15793 (*testqi_1_maybe_si): Remove "!" constraint modifier.
15794 Use correct constraints for pentium pairing.
15795 (*test<mode>_1): Ditto.
15796
15797 2019-07-16 Jeff Law <law@redhat.com>
15798
15799 PR rtl-optimization/91173
15800 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
15801 SSA_NAME with a constant value, fold its value into the offset
15802 and clear the base before calling gen_addr_rtx.
15803
15804 2019-07-16 Jakub Jelinek <jakub@redhat.com>
15805
15806 PR rtl-optimization/91164
15807 * dse.c (rest_of_handle_dse): If dead edges have been purged,
15808 invalidate dominance info.
15809
15810 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
15811
15812 * read-md.h (md_reader::record_potential_iterator_use): Add a
15813 file_location parameter.
15814 * read-rtl.c (attribute_use::loc): New field.
15815 (map_attr_string): Take a file_location parameter. Report cases
15816 in which attributes map to multiple distinct values.
15817 (apply_attribute_uses): Update call accordingly.
15818 (md_reader::handle_overloaded_name): Likewise.
15819 (md_reader::apply_iterator_to_string): Likewise. Skip empty
15820 nonnull strings.
15821 (record_attribute_use): Take a file_location parameter.
15822 Initialize attribute_use::loc.
15823 (md_reader::record_potential_iterator_use): Take a file_location
15824 parameter. Update call to record_attribute_use.
15825 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
15826 (rtx_reader::read_rtx_code): Likewise.
15827 (rtx_reader::read_rtx_operand): Likewise. Record a location
15828 for implicitly-expanded empty strings.
15829
15830 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
15831
15832 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
15833 Use file_location instead of separate fields.
15834 (md_reader::set_md_ptr_loc): Take a file_location instead of a
15835 separate filename and line number.
15836 * read-md.c (ptr_loc): As above.
15837 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
15838 (md_reader::fprint_md_ptr_loc): Likewise.
15839 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
15840 instead of a separate filename and line number.
15841 (md_reader::read_string): Update call accordingly.
15842
15843 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
15844
15845 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
15846 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
15847 leaving the choice between SFDF and P implicit.
15848 (*mov<mode>_update2): Likewise.
15849 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
15850 rather than leaving the choice betweem IBM128 and GPR implicit.
15851 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
15852 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
15853 QHSI implicit.
15854 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
15855 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
15856 * config/rs6000/vsx.md
15857 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
15858 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
15859 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
15860 and VSX_EXTRACT_I implicit.
15861
15862 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
15863
15864 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
15865 Explicitly use <MOVEP1:MODE> for the mode attribute.
15866
15867 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
15868
15869 PR bootstrap/91176
15870 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
15871
15872 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
15873
15874 PR target/91050
15875 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
15876 .machine directive.
15877
15878 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
15879
15880 * config/i386/i386.md (@test<mode>_ccno_1):
15881 Rename from test<mode>_ccno_1.
15882 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
15883 (*testqi_1_maybe_si): Remove modrm attribute.
15884 (*test<mode>_1): Ditto.
15885 * config/i386/i386-expand.c (ix86_split_idivmod): Use
15886 gen_test_ccno_1 and gen_extend_insn.
15887
15888 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
15889
15890 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
15891 to 0.
15892
15893 2019-07-15 Richard Biener <rguenther@suse.de>
15894
15895 PR middle-end/91162
15896 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
15897 node make sure to replace all uses with something valid.
15898
15899 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
15900
15901 PR tree-optimization/88497
15902 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
15903 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
15904 function undistribute_bitref_for_vector.
15905 (undistribute_bitref_for_vector): New function.
15906 (cleanup_vinfo_map): Likewise.
15907 (sort_by_mach_mode): Likewise.
15908
15909 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
15910
15911 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
15912 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
15913 and testdi_ccno_1 using SWI48 mode attribute.
15914 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
15915 x86_64_szext_general_operand.
15916 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
15917 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
15918 instead of genera_operand mode attribute.
15919
15920 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
15921
15922 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
15923 fopen and fclose to their respective types.
15924 (DotFn.invoke): Ditto.
15925
15926 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
15927
15928 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
15929 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
15930 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
15931 (array_index_predicate): Remove.
15932 (analyze_function_body): Account cost for variable ofsetted array
15933 indexing.
15934 (estimate_node_size_and_time): Do not compute array index hint.
15935 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
15936 (inline_read_section): Do not read array index hint.
15937 (ipa_fn_summary_write): Do not write array index hint.
15938 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
15939 * ipa-cp.c (hint_time_bonus): Remove.
15940 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
15941 (ipa_fnsummary): Remove array_index.
15942 * ipa-inline.c (want_inline_small_function_p): Do not use
15943 array_index.
15944 (edge_badness): Likewise.
15945 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
15946
15947 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
15948
15949 PR target/91148
15950 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
15951 superfluous "builtin function" phrasing.
15952
15953 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
15954
15955 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
15956 Break out from ...
15957 (aliasing_component_refs_walk): Break out from ...
15958 (aliasing_component_refs_p): ... here.
15959
15960 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
15961
15962 PR target/91148
15963 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
15964 "builtin function" phrasing.
15965
15966 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15967
15968 PR target/90723
15969 * recog.h (temporary_volatile_ok): New class.
15970 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
15971 volatile_ok temporarily to true using temporary_volatile_ok.
15972 * expr.c (emit_block_move_via_cpymem): Likewise.
15973 * optabs.c (maybe_legitimize_operand): Likewise.
15974
15975 2019-07-13 Jakub Jelinek <jakub@redhat.com>
15976
15977 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
15978 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
15979 uses inside of order(concurrent) constructs.
15980 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
15981 OMP_CLAUSE_ORDER is seen.
15982 * omp-low.c (struct omp_context): Add order_concurrent member.
15983 (scan_sharing_clauses): Set ctx->order_concurrent if
15984 OMP_CLAUSE_ORDER is seen.
15985 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
15986 of simd order(concurrent). Diagnose constructs not allowed inside of
15987 for order(concurrent).
15988 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
15989 complaining about static double setjmp (double); or class static
15990 methods or non-global namespace setjmps.
15991 (omp_runtime_api_call): New function.
15992 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
15993 order(concurrent) loops.
15994
15995 2019-07-12 Martin Sebor <msebor@redhat.com>
15996
15997 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
15998 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
15999 * tree-vrp.c (vrp_prop::check_mem_ref): Use
16000 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
16001
16002 2019-07-12 Jan Hubicka <jh@suse.cz>
16003
16004 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
16005 (indirect_refs_may_alias_p): ... here.
16006 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
16007 mem refs in the access paths.
16008
16009 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
16010
16011 PR tree-optimization/89430
16012 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
16013 store elimination for local variable without address escape.
16014
16015 2019-07-12 Jeff Law <law@redhat.com>
16016
16017 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
16018 for the ".far" section.
16019
16020 2019-07-12 Richard Biener <rguenther@suse.de>
16021
16022 PR tree-optimization/91145
16023 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
16024 chain check.
16025
16026 2019-07-12 Alexandre Oliva <oliva@adacore.com>
16027
16028 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
16029 rather than this_state as the lowering context for the ELSE
16030 seq in a GIMPLE_EH_ELSE.
16031
16032 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
16033
16034 * vector-builder.h (vector_builder::elt): Allow already-supplied
16035 elements to be read back before building is complete.
16036
16037 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
16038
16039 PR rtl-optimization/91136
16040 * df-core.c (ACCESSING REFS): Fix typos in comment.
16041 * resource.c (mark_target_live_reg): Add artificial defs that occur at
16042 the beginning of the block to the initial set of live registers.
16043
16044 2019-07-12 Richard Biener <rguenther@suse.de>
16045
16046 * fold-const.h (get_array_ctor_element_at_index): Adjust.
16047 * fold-const.c (get_array_ctor_element_at_index): Add
16048 ctor_idx output parameter informing the caller where in
16049 the constructor the element was (not) found. Add early exit
16050 for when the ctor is sorted.
16051 * gimple-fold.c (fold_array_ctor_reference): Support constant
16052 folding across multiple array elements.
16053
16054 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
16055
16056 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
16057 doesn't have location, set the current location to the function's end.
16058
16059 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
16060
16061 * config/aarch64/aarch64.md (*compare_condjump<mode>)
16062 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
16063 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
16064 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
16065 * config/aarch64/aarch64-simd.md
16066 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
16067 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
16068 * config/aarch64/aarch64-sve.md
16069 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
16070 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
16071
16072 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
16073
16074 * doc/md.texi: Document that @ patterns can have different
16075 numbers of operands.
16076 * genemit.c (handle_overloaded_gen): Handle this case.
16077 * genopinit.c (handle_overloaded_gen): Likewise.
16078 * gensupport.c (replace_operands_with_dups): Iterate over
16079 the new rtx's format rather than the old one's.
16080
16081 2019-07-12 Jakub Jelinek <jakub@redhat.com>
16082
16083 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
16084 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
16085 order clause entries.
16086 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
16087 * tree-pretty-print.c (dump_omp_clause): Likewise.
16088 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
16089 Likewise.
16090 * omp-low.c (scan_sharing_clauses): Likewise.
16091 * tree-nested.c (convert_nonlocal_omp_clauses,
16092 convert_local_omp_clauses): Likewise.
16093
16094 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
16095
16096 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
16097 fallthrough target of current basic block isn't the placed
16098 right next.
16099
16100 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
16101
16102 PR target/90980
16103 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
16104 (_mm512_storeu_epi64): Likewise.
16105 (_mm512_loadu_epi32): Likewise.
16106 (_mm512_storeu_epi32): Likewise.
16107 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
16108 (_mm_storeu_epi64): Likewise.
16109 (_mm256_storeu_epi32): Likewise.
16110 (_mm_storeu_epi32): Likewise.
16111
16112 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
16113
16114 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
16115
16116 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
16117
16118 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
16119 Handle Modula-2.
16120
16121 2019-07-11 Jakub Jelinek <jakub@redhat.com>
16122
16123 PR target/91124
16124 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
16125 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
16126 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
16127 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
16128 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
16129 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
16130 define_insns.
16131 (ufix_truncv2dfv2si2<mask_name>): Change into ...
16132 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
16133 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
16134 define_insns.
16135 (sse2_cvttpd2dq<mask_name>): Change into ...
16136 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
16137 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
16138 (*sse2_cvtpd2dq<mask_name>): Change into ...
16139 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
16140 Add "C" constraint to const0_operand.
16141 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
16142 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
16143 changes.
16144
16145 PR target/91124
16146 * config/i386/i386-builtin-types.def
16147 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
16148 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
16149 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
16150 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
16151 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
16152 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
16153 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
16154 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
16155 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
16156 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
16157 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
16158 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
16159 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
16160 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
16161 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
16162 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
16163 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
16164 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
16165 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
16166 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
16167 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
16168 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
16169 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
16170 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
16171 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
16172 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
16173 __builtin_ia32_vpdpbusd_v4si_maskz,
16174 __builtin_ia32_vpdpbusds_v16si_mask,
16175 __builtin_ia32_vpdpbusds_v16si_maskz,
16176 __builtin_ia32_vpdpbusds_v8si_mask,
16177 __builtin_ia32_vpdpbusds_v8si_maskz,
16178 __builtin_ia32_vpdpbusds_v4si_mask,
16179 __builtin_ia32_vpdpbusds_v4si_maskz,
16180 __builtin_ia32_vpdpwssd_v16si_mask,
16181 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
16182 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
16183 __builtin_ia32_vpdpwssd_v4si_maskz,
16184 __builtin_ia32_vpdpwssds_v16si_mask,
16185 __builtin_ia32_vpdpwssds_v16si_maskz,
16186 __builtin_ia32_vpdpwssds_v8si_mask,
16187 __builtin_ia32_vpdpwssds_v8si_maskz,
16188 __builtin_ia32_vpdpwssds_v4si_mask,
16189 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
16190 suffixed types rather than *_INT.
16191 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
16192 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
16193 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
16194 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
16195 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
16196 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
16197
16198 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
16199
16200 * tree-vrp.c (intersect_ranges): If we know the intersection is
16201 empty, there is no need to conservatively add anything else to
16202 the set.
16203
16204 2019-07-11 Richard Biener <rguenther@suse.de>
16205
16206 PR middle-end/91131
16207 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
16208 when the object is volatile and we have not cleared it even though
16209 there are no nonzero elements.
16210
16211 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
16212
16213 * config/rs6000/predicates.md (cint34_operand): Update
16214 SIGNED_34BIT_OFFSET_P call.
16215 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
16216 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
16217 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
16218 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
16219 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
16220 argument.
16221 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
16222 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
16223 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
16224 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
16225 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
16226
16227 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
16228
16229 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
16230 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
16231 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
16232 (DEF_MIN_OSX_VERSION): New.
16233
16234 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
16235
16236 * fold-const.c (fold_relational_const): Fix folding of
16237 vector-to-scalar NE_EXPRs.
16238 (test_vector_folding): Add more tests.
16239
16240 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
16241
16242 PR target/91060
16243 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
16244 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
16245 (vec_setv2di_internal): Reexpress as...
16246 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
16247 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
16248 rather than gen_neon_vset_lane<mode>.
16249
16250 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
16251
16252 PR target/91102
16253 * lra-constraints.c (process_alt_operands): Don't match user
16254 defined regs only if they are early clobbers.
16255
16256 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
16257
16258 * wide-int.h (wi::lshift): Reject negative values for the fast path.
16259
16260 2019-07-10 Richard Biener <rguenther@suse.de>
16261
16262 PR tree-optimization/91126
16263 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
16264 native encoding offset for BYTES_BIG_ENDIAN.
16265 (vn_reference_lookup_3): Likewise.
16266
16267 2019-07-10 Richard Biener <rguenther@suse.de>
16268
16269 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
16270 LHS whenever possible.
16271
16272 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
16273
16274 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
16275 from ...; work also on duplicated types.
16276 (nonoverlapping_component_refs_since_match): ... here
16277 (ncr_type_uid): Break out from ...
16278 (ncr_compar): ... here; look for TYPE_UID of canonical type if
16279 available.
16280 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
16281 the types and nonoverlapping_component_refs_p_1 to disambiguate.
16282
16283 2019-07-09 Martin Sebor <msebor@redhat.com>
16284
16285 PR tree-optimization/90989
16286 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
16287 optimization to just single character stores.
16288
16289 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
16290
16291 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
16292 Swap operands only once.
16293
16294 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
16295
16296 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
16297 for both call instructions.
16298
16299 2019-07-09 John Darrington <john@darrington.wattle.id.au>
16300
16301 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
16302 rather than GET_MODE_BITSIZE to better handle partial integer modes.
16303
16304 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
16305
16306 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
16307 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
16308 function from rs6000-logue.c back to rs6000.c.
16309 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
16310
16311 2019-07-09 Martin Sebor <msebor@redhat.com>
16312
16313 PR c++/61339
16314 * auto-profile.c: Change class-key of PODs to struct and others
16315 to class.
16316 * basic-block.h: Same.
16317 * bitmap.c (bitmap_alloc): Same.
16318 * bitmap.h: Same.
16319 * builtins.c (expand_builtin_prefetch): Same.
16320 (expand_builtin_interclass_mathfn): Same.
16321 (expand_builtin_strlen): Same.
16322 (expand_builtin_mempcpy_args): Same.
16323 (expand_cmpstr): Same.
16324 (expand_builtin___clear_cache): Same.
16325 (expand_ifn_atomic_bit_test_and): Same.
16326 (expand_builtin_thread_pointer): Same.
16327 (expand_builtin_set_thread_pointer): Same.
16328 * caller-save.c (setup_save_areas): Same.
16329 (replace_reg_with_saved_mem): Same.
16330 (insert_restore): Same.
16331 (insert_save): Same.
16332 (add_used_regs): Same.
16333 * cfg.c (get_bb_copy): Same.
16334 (set_loop_copy): Same.
16335 * cfg.h: Same.
16336 * cfganal.h: Same.
16337 * cfgexpand.c (alloc_stack_frame_space): Same.
16338 (add_stack_var): Same.
16339 (add_stack_var_conflict): Same.
16340 (add_scope_conflicts_1): Same.
16341 (update_alias_info_with_stack_vars): Same.
16342 (expand_used_vars): Same.
16343 * cfghooks.c (redirect_edge_and_branch_force): Same.
16344 (delete_basic_block): Same.
16345 (split_edge): Same.
16346 (make_forwarder_block): Same.
16347 (force_nonfallthru): Same.
16348 (duplicate_block): Same.
16349 (lv_flush_pending_stmts): Same.
16350 * cfghooks.h: Same.
16351 * cfgloop.c (flow_loops_cfg_dump): Same.
16352 (flow_loop_nested_p): Same.
16353 (superloop_at_depth): Same.
16354 (get_loop_latch_edges): Same.
16355 (flow_loop_dump): Same.
16356 (flow_loops_dump): Same.
16357 (flow_loops_free): Same.
16358 (flow_loop_nodes_find): Same.
16359 (establish_preds): Same.
16360 (flow_loop_tree_node_add): Same.
16361 (flow_loop_tree_node_remove): Same.
16362 (flow_loops_find): Same.
16363 (find_subloop_latch_edge_by_profile): Same.
16364 (find_subloop_latch_edge_by_ivs): Same.
16365 (mfb_redirect_edges_in_set): Same.
16366 (form_subloop): Same.
16367 (merge_latch_edges): Same.
16368 (disambiguate_multiple_latches): Same.
16369 (disambiguate_loops_with_multiple_latches): Same.
16370 (flow_bb_inside_loop_p): Same.
16371 (glb_enum_p): Same.
16372 (get_loop_body_with_size): Same.
16373 (get_loop_body): Same.
16374 (fill_sons_in_loop): Same.
16375 (get_loop_body_in_dom_order): Same.
16376 (get_loop_body_in_custom_order): Same.
16377 (release_recorded_exits): Same.
16378 (get_loop_exit_edges): Same.
16379 (num_loop_branches): Same.
16380 (remove_bb_from_loops): Same.
16381 (find_common_loop): Same.
16382 (delete_loop): Same.
16383 (cancel_loop): Same.
16384 (verify_loop_structure): Same.
16385 (loop_preheader_edge): Same.
16386 (loop_exit_edge_p): Same.
16387 (single_exit): Same.
16388 (loop_exits_to_bb_p): Same.
16389 (loop_exits_from_bb_p): Same.
16390 (get_loop_location): Same.
16391 (record_niter_bound): Same.
16392 (get_estimated_loop_iterations_int): Same.
16393 (max_stmt_executions_int): Same.
16394 (likely_max_stmt_executions_int): Same.
16395 (get_estimated_loop_iterations): Same.
16396 (get_max_loop_iterations): Same.
16397 (get_max_loop_iterations_int): Same.
16398 (get_likely_max_loop_iterations): Same.
16399 * cfgloop.h (simple_loop_desc): Same.
16400 (get_loop): Same.
16401 (loop_depth): Same.
16402 (loop_outer): Same.
16403 (loop_iterator::next): Same.
16404 (loop_outermost): Same.
16405 * cfgloopanal.c (mark_irreducible_loops): Same.
16406 (num_loop_insns): Same.
16407 (average_num_loop_insns): Same.
16408 (expected_loop_iterations_unbounded): Same.
16409 (expected_loop_iterations): Same.
16410 (mark_loop_exit_edges): Same.
16411 (single_likely_exit): Same.
16412 * cfgloopmanip.c (fix_bb_placement): Same.
16413 (fix_bb_placements): Same.
16414 (remove_path): Same.
16415 (place_new_loop): Same.
16416 (add_loop): Same.
16417 (scale_loop_frequencies): Same.
16418 (scale_loop_profile): Same.
16419 (create_empty_if_region_on_edge): Same.
16420 (create_empty_loop_on_edge): Same.
16421 (loopify): Same.
16422 (unloop): Same.
16423 (fix_loop_placements): Same.
16424 (copy_loop_info): Same.
16425 (duplicate_loop): Same.
16426 (duplicate_subloops): Same.
16427 (loop_redirect_edge): Same.
16428 (can_duplicate_loop_p): Same.
16429 (duplicate_loop_to_header_edge): Same.
16430 (mfb_keep_just): Same.
16431 (has_preds_from_loop): Same.
16432 (create_preheader): Same.
16433 (create_preheaders): Same.
16434 (lv_adjust_loop_entry_edge): Same.
16435 (loop_version): Same.
16436 * cfgloopmanip.h: Same.
16437 * cgraph.h: Same.
16438 * cgraphbuild.c: Same.
16439 * combine.c (make_extraction): Same.
16440 * config/i386/i386-features.c: Same.
16441 * config/i386/i386-features.h: Same.
16442 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
16443 (ix86_emit_outlined_ms2sysv_restore): Same.
16444 (ix86_noce_conversion_profitable_p): Same.
16445 (ix86_init_cost): Same.
16446 (ix86_simd_clone_usable): Same.
16447 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
16448 Wstruct-not-pod.
16449 * coretypes.h: Same.
16450 * data-streamer-in.c (string_for_index): Change class-key of PODs
16451 to struct and others to class.
16452 (streamer_read_indexed_string): Same.
16453 (streamer_read_string): Same.
16454 (bp_unpack_indexed_string): Same.
16455 (bp_unpack_string): Same.
16456 (streamer_read_uhwi): Same.
16457 (streamer_read_hwi): Same.
16458 (streamer_read_gcov_count): Same.
16459 (streamer_read_wide_int): Same.
16460 * data-streamer.h (streamer_write_bitpack): Same.
16461 (bp_unpack_value): Same.
16462 (streamer_write_char_stream): Same.
16463 (streamer_write_hwi_in_range): Same.
16464 (streamer_write_record_start): Same.
16465 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
16466 (add_cross_iteration_register_deps): Same.
16467 (build_intra_loop_deps): Same.
16468 * df-core.c (df_analyze): Same.
16469 (loop_post_order_compute): Same.
16470 (loop_inverted_post_order_compute): Same.
16471 * df-problems.c (df_rd_alloc): Same.
16472 (df_rd_simulate_one_insn): Same.
16473 (df_rd_local_compute): Same.
16474 (df_rd_init_solution): Same.
16475 (df_rd_confluence_n): Same.
16476 (df_rd_transfer_function): Same.
16477 (df_rd_free): Same.
16478 (df_rd_dump_defs_set): Same.
16479 (df_rd_top_dump): Same.
16480 (df_lr_alloc): Same.
16481 (df_lr_reset): Same.
16482 (df_lr_local_compute): Same.
16483 (df_lr_init): Same.
16484 (df_lr_confluence_n): Same.
16485 (df_lr_free): Same.
16486 (df_lr_top_dump): Same.
16487 (df_lr_verify_transfer_functions): Same.
16488 (df_live_alloc): Same.
16489 (df_live_reset): Same.
16490 (df_live_init): Same.
16491 (df_live_confluence_n): Same.
16492 (df_live_finalize): Same.
16493 (df_live_free): Same.
16494 (df_live_top_dump): Same.
16495 (df_live_verify_transfer_functions): Same.
16496 (df_mir_alloc): Same.
16497 (df_mir_reset): Same.
16498 (df_mir_init): Same.
16499 (df_mir_confluence_n): Same.
16500 (df_mir_free): Same.
16501 (df_mir_top_dump): Same.
16502 (df_word_lr_alloc): Same.
16503 (df_word_lr_reset): Same.
16504 (df_word_lr_init): Same.
16505 (df_word_lr_confluence_n): Same.
16506 (df_word_lr_free): Same.
16507 (df_word_lr_top_dump): Same.
16508 (df_md_alloc): Same.
16509 (df_md_simulate_one_insn): Same.
16510 (df_md_reset): Same.
16511 (df_md_init): Same.
16512 (df_md_free): Same.
16513 (df_md_top_dump): Same.
16514 * df-scan.c (df_insn_delete): Same.
16515 (df_insn_rescan): Same.
16516 (df_notes_rescan): Same.
16517 (df_sort_and_compress_mws): Same.
16518 (df_install_mws): Same.
16519 (df_refs_add_to_chains): Same.
16520 (df_ref_create_structure): Same.
16521 (df_ref_record): Same.
16522 (df_def_record_1): Same.
16523 (df_find_hard_reg_defs): Same.
16524 (df_uses_record): Same.
16525 (df_get_conditional_uses): Same.
16526 (df_get_call_refs): Same.
16527 (df_recompute_luids): Same.
16528 (df_get_entry_block_def_set): Same.
16529 (df_entry_block_defs_collect): Same.
16530 (df_get_exit_block_use_set): Same.
16531 (df_exit_block_uses_collect): Same.
16532 (df_mws_verify): Same.
16533 (df_bb_verify): Same.
16534 * df.h (df_scan_get_bb_info): Same.
16535 * doc/tm.texi: Same.
16536 * dse.c (record_store): Same.
16537 * dumpfile.h: Same.
16538 * emit-rtl.c (const_fixed_hasher::equal): Same.
16539 (set_mem_attributes_minus_bitpos): Same.
16540 (change_address): Same.
16541 (adjust_address_1): Same.
16542 (offset_address): Same.
16543 * emit-rtl.h: Same.
16544 * except.c (dw2_build_landing_pads): Same.
16545 (sjlj_emit_dispatch_table): Same.
16546 * explow.c (allocate_dynamic_stack_space): Same.
16547 (emit_stack_probe): Same.
16548 (probe_stack_range): Same.
16549 * expmed.c (store_bit_field_using_insv): Same.
16550 (store_bit_field_1): Same.
16551 (store_integral_bit_field): Same.
16552 (extract_bit_field_using_extv): Same.
16553 (extract_bit_field_1): Same.
16554 (emit_cstore): Same.
16555 * expr.c (emit_block_move_via_cpymem): Same.
16556 (expand_cmpstrn_or_cmpmem): Same.
16557 (set_storage_via_setmem): Same.
16558 (emit_single_push_insn_1): Same.
16559 (expand_assignment): Same.
16560 (store_constructor): Same.
16561 (expand_expr_real_2): Same.
16562 (expand_expr_real_1): Same.
16563 (try_casesi): Same.
16564 * flags.h: Same.
16565 * function.c (try_fit_stack_local): Same.
16566 (assign_stack_local_1): Same.
16567 (assign_stack_local): Same.
16568 (cut_slot_from_list): Same.
16569 (insert_slot_to_list): Same.
16570 (max_slot_level): Same.
16571 (move_slot_to_level): Same.
16572 (temp_address_hasher::equal): Same.
16573 (remove_unused_temp_slot_addresses): Same.
16574 (assign_temp): Same.
16575 (combine_temp_slots): Same.
16576 (update_temp_slot_address): Same.
16577 (preserve_temp_slots): Same.
16578 * function.h: Same.
16579 * fwprop.c: Same.
16580 * gcc-rich-location.h: Same.
16581 * gcov.c: Same.
16582 * genattrtab.c (check_attr_test): Same.
16583 (check_attr_value): Same.
16584 (convert_set_attr_alternative): Same.
16585 (convert_set_attr): Same.
16586 (check_defs): Same.
16587 (copy_boolean): Same.
16588 (get_attr_value): Same.
16589 (expand_delays): Same.
16590 (make_length_attrs): Same.
16591 (min_fn): Same.
16592 (make_alternative_compare): Same.
16593 (simplify_test_exp): Same.
16594 (tests_attr_p): Same.
16595 (get_attr_order): Same.
16596 (clear_struct_flag): Same.
16597 (gen_attr): Same.
16598 (compares_alternatives_p): Same.
16599 (gen_insn): Same.
16600 (gen_delay): Same.
16601 (find_attrs_to_cache): Same.
16602 (write_test_expr): Same.
16603 (walk_attr_value): Same.
16604 (write_attr_get): Same.
16605 (eliminate_known_true): Same.
16606 (write_insn_cases): Same.
16607 (write_attr_case): Same.
16608 (write_attr_valueq): Same.
16609 (write_attr_value): Same.
16610 (write_dummy_eligible_delay): Same.
16611 (next_comma_elt): Same.
16612 (find_attr): Same.
16613 (make_internal_attr): Same.
16614 (copy_rtx_unchanging): Same.
16615 (gen_insn_reserv): Same.
16616 (check_tune_attr): Same.
16617 (make_automaton_attrs): Same.
16618 (handle_arg): Same.
16619 * genextract.c (gen_insn): Same.
16620 (VEC_char_to_string): Same.
16621 * genmatch.c (print_operand): Same.
16622 (lower): Same.
16623 (parser::parse_operation): Same.
16624 (parser::parse_capture): Same.
16625 (parser::parse_c_expr): Same.
16626 (parser::parse_simplify): Same.
16627 (main): Same.
16628 * genoutput.c (output_operand_data): Same.
16629 (output_get_insn_name): Same.
16630 (compare_operands): Same.
16631 (place_operands): Same.
16632 (process_template): Same.
16633 (validate_insn_alternatives): Same.
16634 (validate_insn_operands): Same.
16635 (gen_expand): Same.
16636 (note_constraint): Same.
16637 * genpreds.c (write_one_predicate_function): Same.
16638 (add_constraint): Same.
16639 (process_define_register_constraint): Same.
16640 (write_lookup_constraint_1): Same.
16641 (write_lookup_constraint_array): Same.
16642 (write_insn_constraint_len): Same.
16643 (write_reg_class_for_constraint_1): Same.
16644 (write_constraint_satisfied_p_array): Same.
16645 * genrecog.c (optimize_subroutine_group): Same.
16646 * gensupport.c (process_define_predicate): Same.
16647 (queue_pattern): Same.
16648 (remove_from_queue): Same.
16649 (process_rtx): Same.
16650 (is_predicable): Same.
16651 (change_subst_attribute): Same.
16652 (subst_pattern_match): Same.
16653 (alter_constraints): Same.
16654 (alter_attrs_for_insn): Same.
16655 (shift_output_template): Same.
16656 (alter_output_for_subst_insn): Same.
16657 (process_one_cond_exec): Same.
16658 (subst_dup): Same.
16659 (process_define_cond_exec): Same.
16660 (mnemonic_htab_callback): Same.
16661 (gen_mnemonic_attr): Same.
16662 (read_md_rtx): Same.
16663 * ggc-page.c: Same.
16664 * gimple-loop-interchange.cc (dump_reduction): Same.
16665 (dump_induction): Same.
16666 (loop_cand::~loop_cand): Same.
16667 (free_data_refs_with_aux): Same.
16668 (tree_loop_interchange::interchange_loops): Same.
16669 (tree_loop_interchange::map_inductions_to_loop): Same.
16670 (tree_loop_interchange::move_code_to_inner_loop): Same.
16671 (compute_access_stride): Same.
16672 (compute_access_strides): Same.
16673 (proper_loop_form_for_interchange): Same.
16674 (tree_loop_interchange_compute_ddrs): Same.
16675 (prune_datarefs_not_in_loop): Same.
16676 (prepare_data_references): Same.
16677 (pass_linterchange::execute): Same.
16678 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
16679 (unroll_jam_possible_p): Same.
16680 (fuse_loops): Same.
16681 (adjust_unroll_factor): Same.
16682 (tree_loop_unroll_and_jam): Same.
16683 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
16684 (loop_versioning::expensive_stmt_p): Same.
16685 (loop_versioning::version_for_unity): Same.
16686 (loop_versioning::dump_inner_likelihood): Same.
16687 (loop_versioning::find_per_loop_multiplication): Same.
16688 (loop_versioning::analyze_term_using_scevs): Same.
16689 (loop_versioning::record_address_fragment): Same.
16690 (loop_versioning::analyze_expr): Same.
16691 (loop_versioning::analyze_blocks): Same.
16692 (loop_versioning::prune_conditions): Same.
16693 (loop_versioning::merge_loop_info): Same.
16694 (loop_versioning::add_loop_to_queue): Same.
16695 (loop_versioning::decide_whether_loop_is_versionable): Same.
16696 (loop_versioning::make_versioning_decisions): Same.
16697 (loop_versioning::implement_versioning_decisions): Same.
16698 * gimple-ssa-evrp-analyze.c
16699 (evrp_range_analyzer::record_ranges_from_phis): Same.
16700 * gimple-ssa-store-merging.c (split_store::split_store): Same.
16701 (count_multiple_uses): Same.
16702 (split_group): Same.
16703 (imm_store_chain_info::output_merged_store): Same.
16704 (pass_store_merging::process_store): Same.
16705 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
16706 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
16707 (is_max): Same.
16708 (alloca_call_type): Same.
16709 (pass_walloca::execute): Same.
16710 * gimple-streamer-in.c (input_phi): Same.
16711 (input_gimple_stmt): Same.
16712 * gimple-streamer.h: Same.
16713 * godump.c (go_force_record_alignment): Same.
16714 (go_format_type): Same.
16715 (go_output_type): Same.
16716 (go_output_fndecl): Same.
16717 (go_output_typedef): Same.
16718 (keyword_hash_init): Same.
16719 (find_dummy_types): Same.
16720 * graph.c (draw_cfg_nodes_no_loops): Same.
16721 (draw_cfg_nodes_for_loop): Same.
16722 * hard-reg-set.h (hard_reg_set_iter_next): Same.
16723 * hsa-brig.c: Same.
16724 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
16725 * hsa-dump.c (dump_hsa_cfun): Same.
16726 * hsa-gen.c (gen_function_def_parameters): Same.
16727 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
16728 * input.c (dump_line_table_statistics): Same.
16729 (test_lexer): Same.
16730 * input.h: Same.
16731 * internal-fn.c (get_multi_vector_move): Same.
16732 (expand_load_lanes_optab_fn): Same.
16733 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
16734 (expand_GOMP_SIMT_EXIT): Same.
16735 (expand_GOMP_SIMT_LAST_LANE): Same.
16736 (expand_GOMP_SIMT_ORDERED_PRED): Same.
16737 (expand_GOMP_SIMT_VOTE_ANY): Same.
16738 (expand_GOMP_SIMT_XCHG_BFLY): Same.
16739 (expand_GOMP_SIMT_XCHG_IDX): Same.
16740 (expand_addsub_overflow): Same.
16741 (expand_neg_overflow): Same.
16742 (expand_mul_overflow): Same.
16743 (expand_call_mem_ref): Same.
16744 (expand_mask_load_optab_fn): Same.
16745 (expand_scatter_store_optab_fn): Same.
16746 (expand_gather_load_optab_fn): Same.
16747 * ipa-cp.c (ipa_get_parm_lattices): Same.
16748 (print_all_lattices): Same.
16749 (ignore_edge_p): Same.
16750 (build_toporder_info): Same.
16751 (free_toporder_info): Same.
16752 (push_node_to_stack): Same.
16753 (ipcp_lattice<valtype>::set_contains_variable): Same.
16754 (set_agg_lats_to_bottom): Same.
16755 (ipcp_bits_lattice::meet_with): Same.
16756 (set_single_call_flag): Same.
16757 (initialize_node_lattices): Same.
16758 (ipa_get_jf_ancestor_result): Same.
16759 (ipcp_verify_propagated_values): Same.
16760 (propagate_scalar_across_jump_function): Same.
16761 (propagate_context_across_jump_function): Same.
16762 (propagate_bits_across_jump_function): Same.
16763 (ipa_vr_operation_and_type_effects): Same.
16764 (propagate_vr_across_jump_function): Same.
16765 (set_check_aggs_by_ref): Same.
16766 (set_chain_of_aglats_contains_variable): Same.
16767 (merge_aggregate_lattices): Same.
16768 (agg_pass_through_permissible_p): Same.
16769 (propagate_aggs_across_jump_function): Same.
16770 (call_passes_through_thunk_p): Same.
16771 (propagate_constants_across_call): Same.
16772 (devirtualization_time_bonus): Same.
16773 (good_cloning_opportunity_p): Same.
16774 (context_independent_aggregate_values): Same.
16775 (gather_context_independent_values): Same.
16776 (perform_estimation_of_a_value): Same.
16777 (estimate_local_effects): Same.
16778 (value_topo_info<valtype>::add_val): Same.
16779 (add_all_node_vals_to_toposort): Same.
16780 (value_topo_info<valtype>::propagate_effects): Same.
16781 (ipcp_propagate_stage): Same.
16782 (ipcp_discover_new_direct_edges): Same.
16783 (same_node_or_its_all_contexts_clone_p): Same.
16784 (cgraph_edge_brings_value_p): Same.
16785 (gather_edges_for_value): Same.
16786 (create_specialized_node): Same.
16787 (find_more_scalar_values_for_callers_subset): Same.
16788 (find_more_contexts_for_caller_subset): Same.
16789 (copy_plats_to_inter): Same.
16790 (intersect_aggregates_with_edge): Same.
16791 (find_aggregate_values_for_callers_subset): Same.
16792 (cgraph_edge_brings_all_agg_vals_for_node): Same.
16793 (decide_about_value): Same.
16794 (decide_whether_version_node): Same.
16795 (spread_undeadness): Same.
16796 (identify_dead_nodes): Same.
16797 (ipcp_store_vr_results): Same.
16798 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
16799 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
16800 (redirect_to_unreachable): Same.
16801 (edge_set_predicate): Same.
16802 (evaluate_conditions_for_known_args): Same.
16803 (evaluate_properties_for_edge): Same.
16804 (ipa_fn_summary_t::duplicate): Same.
16805 (ipa_call_summary_t::duplicate): Same.
16806 (dump_ipa_call_summary): Same.
16807 (ipa_dump_fn_summary): Same.
16808 (eliminated_by_inlining_prob): Same.
16809 (set_cond_stmt_execution_predicate): Same.
16810 (set_switch_stmt_execution_predicate): Same.
16811 (compute_bb_predicates): Same.
16812 (will_be_nonconstant_expr_predicate): Same.
16813 (phi_result_unknown_predicate): Same.
16814 (analyze_function_body): Same.
16815 (compute_fn_summary): Same.
16816 (estimate_edge_devirt_benefit): Same.
16817 (estimate_edge_size_and_time): Same.
16818 (estimate_calls_size_and_time): Same.
16819 (estimate_node_size_and_time): Same.
16820 (remap_edge_change_prob): Same.
16821 (remap_edge_summaries): Same.
16822 (ipa_merge_fn_summary_after_inlining): Same.
16823 (ipa_fn_summary_generate): Same.
16824 (inline_read_section): Same.
16825 (ipa_fn_summary_read): Same.
16826 (ipa_fn_summary_write): Same.
16827 * ipa-fnsummary.h: Same.
16828 * ipa-hsa.c (ipa_hsa_read_section): Same.
16829 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
16830 * ipa-icf.c (sem_function::param_used_p): Same.
16831 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
16832 * ipa-inline.c (edge_badness): Same.
16833 (inline_small_functions): Same.
16834 * ipa-polymorphic-call.c
16835 (ipa_polymorphic_call_context::stream_out): Same.
16836 * ipa-predicate.c (predicate::remap_after_duplication): Same.
16837 (predicate::remap_after_inlining): Same.
16838 (predicate::stream_out): Same.
16839 * ipa-predicate.h: Same.
16840 * ipa-profile.c (ipa_profile_read_summary): Same.
16841 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
16842 (count_formal_params): Same.
16843 (ipa_dump_param): Same.
16844 (ipa_alloc_node_params): Same.
16845 (ipa_print_node_jump_functions_for_edge): Same.
16846 (ipa_print_node_jump_functions): Same.
16847 (ipa_load_from_parm_agg): Same.
16848 (get_ancestor_addr_info): Same.
16849 (ipa_compute_jump_functions_for_edge): Same.
16850 (ipa_analyze_virtual_call_uses): Same.
16851 (ipa_analyze_stmt_uses): Same.
16852 (ipa_analyze_params_uses_in_bb): Same.
16853 (update_jump_functions_after_inlining): Same.
16854 (try_decrement_rdesc_refcount): Same.
16855 (ipa_impossible_devirt_target): Same.
16856 (update_indirect_edges_after_inlining): Same.
16857 (combine_controlled_uses_counters): Same.
16858 (ipa_edge_args_sum_t::duplicate): Same.
16859 (ipa_write_jump_function): Same.
16860 (ipa_write_indirect_edge_info): Same.
16861 (ipa_write_node_info): Same.
16862 (ipa_read_edge_info): Same.
16863 (ipa_prop_read_section): Same.
16864 (read_replacements_section): Same.
16865 * ipa-prop.h (ipa_get_param_count): Same.
16866 (ipa_get_param): Same.
16867 (ipa_get_type): Same.
16868 (ipa_get_param_move_cost): Same.
16869 (ipa_set_param_used): Same.
16870 (ipa_get_controlled_uses): Same.
16871 (ipa_set_controlled_uses): Same.
16872 (ipa_get_cs_argument_count): Same.
16873 * ipa-pure-const.c (analyze_function): Same.
16874 (pure_const_read_summary): Same.
16875 * ipa-ref.h: Same.
16876 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
16877 * ipa-split.c (test_nonssa_use): Same.
16878 (dump_split_point): Same.
16879 (dominated_by_forbidden): Same.
16880 (split_part_set_ssa_name_p): Same.
16881 (find_split_points): Same.
16882 * ira-build.c (finish_loop_tree_nodes): Same.
16883 (low_pressure_loop_node_p): Same.
16884 * ira-color.c (ira_reuse_stack_slot): Same.
16885 * ira-int.h: Same.
16886 * ira.c (setup_reg_equiv): Same.
16887 (print_insn_chain): Same.
16888 (ira): Same.
16889 * loop-doloop.c (doloop_condition_get): Same.
16890 (add_test): Same.
16891 (record_reg_sets): Same.
16892 (doloop_optimize): Same.
16893 * loop-init.c (loop_optimizer_init): Same.
16894 (fix_loop_structure): Same.
16895 * loop-invariant.c (merge_identical_invariants): Same.
16896 (compute_always_reached): Same.
16897 (find_exits): Same.
16898 (may_assign_reg_p): Same.
16899 (find_invariants_bb): Same.
16900 (find_invariants_body): Same.
16901 (replace_uses): Same.
16902 (can_move_invariant_reg): Same.
16903 (free_inv_motion_data): Same.
16904 (move_single_loop_invariants): Same.
16905 (change_pressure): Same.
16906 (mark_ref_regs): Same.
16907 (calculate_loop_reg_pressure): Same.
16908 * loop-iv.c (biv_entry_hasher::equal): Same.
16909 (iv_extend_to_rtx_code): Same.
16910 (check_iv_ref_table_size): Same.
16911 (clear_iv_info): Same.
16912 (latch_dominating_def): Same.
16913 (iv_get_reaching_def): Same.
16914 (iv_constant): Same.
16915 (iv_subreg): Same.
16916 (iv_extend): Same.
16917 (iv_neg): Same.
16918 (iv_add): Same.
16919 (iv_mult): Same.
16920 (get_biv_step): Same.
16921 (record_iv): Same.
16922 (analyzed_for_bivness_p): Same.
16923 (record_biv): Same.
16924 (iv_analyze_biv): Same.
16925 (iv_analyze_expr): Same.
16926 (iv_analyze_def): Same.
16927 (iv_analyze_op): Same.
16928 (iv_analyze): Same.
16929 (iv_analyze_result): Same.
16930 (biv_p): Same.
16931 (eliminate_implied_conditions): Same.
16932 (simplify_using_initial_values): Same.
16933 (shorten_into_mode): Same.
16934 (canonicalize_iv_subregs): Same.
16935 (determine_max_iter): Same.
16936 (check_simple_exit): Same.
16937 (find_simple_exit): Same.
16938 (get_simple_loop_desc): Same.
16939 * loop-unroll.c (report_unroll): Same.
16940 (decide_unrolling): Same.
16941 (unroll_loops): Same.
16942 (loop_exit_at_end_p): Same.
16943 (decide_unroll_constant_iterations): Same.
16944 (unroll_loop_constant_iterations): Same.
16945 (compare_and_jump_seq): Same.
16946 (unroll_loop_runtime_iterations): Same.
16947 (decide_unroll_stupid): Same.
16948 (unroll_loop_stupid): Same.
16949 (referenced_in_one_insn_in_loop_p): Same.
16950 (reset_debug_uses_in_loop): Same.
16951 (analyze_iv_to_split_insn): Same.
16952 * lra-eliminations.c (lra_debug_elim_table): Same.
16953 (setup_can_eliminate): Same.
16954 (form_sum): Same.
16955 (lra_get_elimination_hard_regno): Same.
16956 (lra_eliminate_regs_1): Same.
16957 (eliminate_regs_in_insn): Same.
16958 (update_reg_eliminate): Same.
16959 (init_elimination): Same.
16960 (lra_eliminate): Same.
16961 * lra-int.h: Same.
16962 * lra-lives.c (initiate_live_solver): Same.
16963 * lra-remat.c (create_remat_bb_data): Same.
16964 * lra-spills.c (lra_spill): Same.
16965 * lra.c (lra_set_insn_recog_data): Same.
16966 (lra_set_used_insn_alternative_by_uid): Same.
16967 (init_reg_info): Same.
16968 (expand_reg_info): Same.
16969 * lto-cgraph.c (output_symtab): Same.
16970 (read_identifier): Same.
16971 (get_alias_symbol): Same.
16972 (input_node): Same.
16973 (input_varpool_node): Same.
16974 (input_ref): Same.
16975 (input_edge): Same.
16976 (input_cgraph_1): Same.
16977 (input_refs): Same.
16978 (input_symtab): Same.
16979 (input_offload_tables): Same.
16980 (output_cgraph_opt_summary): Same.
16981 (input_edge_opt_summary): Same.
16982 (input_cgraph_opt_section): Same.
16983 * lto-section-in.c (lto_free_raw_section_data): Same.
16984 (lto_create_simple_input_block): Same.
16985 (lto_free_function_in_decl_state_for_node): Same.
16986 * lto-streamer-in.c (lto_tag_check_set): Same.
16987 (lto_location_cache::revert_location_cache): Same.
16988 (lto_location_cache::input_location): Same.
16989 (lto_input_location): Same.
16990 (stream_input_location_now): Same.
16991 (lto_input_tree_ref): Same.
16992 (lto_input_eh_catch_list): Same.
16993 (input_eh_region): Same.
16994 (lto_init_eh): Same.
16995 (make_new_block): Same.
16996 (input_cfg): Same.
16997 (fixup_call_stmt_edges): Same.
16998 (input_struct_function_base): Same.
16999 (input_function): Same.
17000 (lto_read_body_or_constructor): Same.
17001 (lto_read_tree_1): Same.
17002 (lto_read_tree): Same.
17003 (lto_input_scc): Same.
17004 (lto_input_tree_1): Same.
17005 (lto_input_toplevel_asms): Same.
17006 (lto_input_mode_table): Same.
17007 (lto_reader_init): Same.
17008 (lto_data_in_create): Same.
17009 * lto-streamer-out.c (output_cfg): Same.
17010 * lto-streamer.h: Same.
17011 * modulo-sched.c (duplicate_insns_of_cycles): Same.
17012 (generate_prolog_epilog): Same.
17013 (mark_loop_unsched): Same.
17014 (dump_insn_location): Same.
17015 (loop_canon_p): Same.
17016 (sms_schedule): Same.
17017 * omp-expand.c (expand_omp_for_ordered_loops): Same.
17018 (expand_omp_for_generic): Same.
17019 (expand_omp_for_static_nochunk): Same.
17020 (expand_omp_for_static_chunk): Same.
17021 (expand_omp_simd): Same.
17022 (expand_omp_taskloop_for_inner): Same.
17023 (expand_oacc_for): Same.
17024 (expand_omp_atomic_pipeline): Same.
17025 (mark_loops_in_oacc_kernels_region): Same.
17026 * omp-offload.c (oacc_xform_loop): Same.
17027 * omp-simd-clone.c (simd_clone_adjust): Same.
17028 * optabs-query.c (get_traditional_extraction_insn): Same.
17029 * optabs.c (expand_vector_broadcast): Same.
17030 (expand_binop_directly): Same.
17031 (expand_twoval_unop): Same.
17032 (expand_twoval_binop): Same.
17033 (expand_unop_direct): Same.
17034 (emit_indirect_jump): Same.
17035 (emit_conditional_move): Same.
17036 (emit_conditional_neg_or_complement): Same.
17037 (emit_conditional_add): Same.
17038 (vector_compare_rtx): Same.
17039 (expand_vec_perm_1): Same.
17040 (expand_vec_perm_const): Same.
17041 (expand_vec_cond_expr): Same.
17042 (expand_vec_series_expr): Same.
17043 (maybe_emit_atomic_exchange): Same.
17044 (maybe_emit_sync_lock_test_and_set): Same.
17045 (expand_atomic_compare_and_swap): Same.
17046 (expand_atomic_load): Same.
17047 (expand_atomic_store): Same.
17048 (maybe_emit_op): Same.
17049 (valid_multiword_target_p): Same.
17050 (create_integer_operand): Same.
17051 (maybe_legitimize_operand_same_code): Same.
17052 (maybe_legitimize_operand): Same.
17053 (create_convert_operand_from_type): Same.
17054 (can_reuse_operands_p): Same.
17055 (maybe_legitimize_operands): Same.
17056 (maybe_gen_insn): Same.
17057 (maybe_expand_insn): Same.
17058 (maybe_expand_jump_insn): Same.
17059 (expand_insn): Same.
17060 * optabs.h (create_expand_operand): Same.
17061 (create_fixed_operand): Same.
17062 (create_output_operand): Same.
17063 (create_input_operand): Same.
17064 (create_convert_operand_to): Same.
17065 (create_convert_operand_from): Same.
17066 * optinfo.h: Same.
17067 * poly-int.h: Same.
17068 * predict.c (optimize_insn_for_speed_p): Same.
17069 (optimize_loop_for_size_p): Same.
17070 (optimize_loop_for_speed_p): Same.
17071 (optimize_loop_nest_for_speed_p): Same.
17072 (get_base_value): Same.
17073 (predicted_by_loop_heuristics_p): Same.
17074 (predict_extra_loop_exits): Same.
17075 (predict_loops): Same.
17076 (predict_paths_for_bb): Same.
17077 (predict_paths_leading_to): Same.
17078 (propagate_freq): Same.
17079 (pass_profile::execute): Same.
17080 * predict.h: Same.
17081 * profile-count.c (profile_count::differs_from_p): Same.
17082 (profile_probability::differs_lot_from_p): Same.
17083 * profile-count.h: Same.
17084 * profile.c (branch_prob): Same.
17085 * regrename.c (free_chain_data): Same.
17086 (mark_conflict): Same.
17087 (create_new_chain): Same.
17088 (merge_overlapping_regs): Same.
17089 (init_rename_info): Same.
17090 (merge_chains): Same.
17091 (regrename_analyze): Same.
17092 (regrename_do_replace): Same.
17093 (scan_rtx_reg): Same.
17094 (record_out_operands): Same.
17095 (build_def_use): Same.
17096 * regrename.h: Same.
17097 * reload.h: Same.
17098 * reload1.c (init_reload): Same.
17099 (maybe_fix_stack_asms): Same.
17100 (copy_reloads): Same.
17101 (count_pseudo): Same.
17102 (count_spilled_pseudo): Same.
17103 (find_reg): Same.
17104 (find_reload_regs): Same.
17105 (select_reload_regs): Same.
17106 (spill_hard_reg): Same.
17107 (fixup_eh_region_note): Same.
17108 (set_reload_reg): Same.
17109 (allocate_reload_reg): Same.
17110 (compute_reload_subreg_offset): Same.
17111 (reload_adjust_reg_for_icode): Same.
17112 (emit_input_reload_insns): Same.
17113 (emit_output_reload_insns): Same.
17114 (do_input_reload): Same.
17115 (inherit_piecemeal_p): Same.
17116 * rtl.h: Same.
17117 * sanopt.c (maybe_get_dominating_check): Same.
17118 (maybe_optimize_ubsan_ptr_ifn): Same.
17119 (can_remove_asan_check): Same.
17120 (maybe_optimize_asan_check_ifn): Same.
17121 (sanopt_optimize_walker): Same.
17122 * sched-deps.c (add_dependence_list): Same.
17123 (chain_to_prev_insn): Same.
17124 (add_insn_mem_dependence): Same.
17125 (create_insn_reg_set): Same.
17126 (maybe_extend_reg_info_p): Same.
17127 (sched_analyze_reg): Same.
17128 (sched_analyze_1): Same.
17129 (get_implicit_reg_pending_clobbers): Same.
17130 (chain_to_prev_insn_p): Same.
17131 (deps_analyze_insn): Same.
17132 (deps_start_bb): Same.
17133 (sched_free_deps): Same.
17134 (init_deps): Same.
17135 (init_deps_reg_last): Same.
17136 (free_deps): Same.
17137 * sched-ebb.c: Same.
17138 * sched-int.h: Same.
17139 * sched-rgn.c (add_branch_dependences): Same.
17140 (concat_insn_mem_list): Same.
17141 (deps_join): Same.
17142 (sched_rgn_compute_dependencies): Same.
17143 * sel-sched-ir.c (reset_target_context): Same.
17144 (copy_deps_context): Same.
17145 (init_id_from_df): Same.
17146 (has_dependence_p): Same.
17147 (change_loops_latches): Same.
17148 (bb_top_order_comparator): Same.
17149 (make_region_from_loop_preheader): Same.
17150 (sel_init_pipelining): Same.
17151 (get_loop_nest_for_rgn): Same.
17152 (make_regions_from_the_rest): Same.
17153 (sel_is_loop_preheader_p): Same.
17154 * sel-sched-ir.h (inner_loop_header_p): Same.
17155 (get_all_loop_exits): Same.
17156 * selftest.h: Same.
17157 * sese.c (sese_build_liveouts): Same.
17158 (sese_insert_phis_for_liveouts): Same.
17159 * sese.h (defined_in_sese_p): Same.
17160 * sreal.c (sreal::stream_out): Same.
17161 * sreal.h: Same.
17162 * streamer-hooks.h: Same.
17163 * target-globals.c (save_target_globals): Same.
17164 * target-globals.h: Same.
17165 * target.def: Same.
17166 * target.h: Same.
17167 * targhooks.c (default_has_ifunc_p): Same.
17168 (default_empty_mask_is_expensive): Same.
17169 (default_init_cost): Same.
17170 * targhooks.h: Same.
17171 * toplev.c: Same.
17172 * tree-affine.c (aff_combination_mult): Same.
17173 (aff_combination_expand): Same.
17174 (aff_combination_constant_multiple_p): Same.
17175 * tree-affine.h: Same.
17176 * tree-cfg.c (build_gimple_cfg): Same.
17177 (replace_loop_annotate_in_block): Same.
17178 (replace_uses_by): Same.
17179 (remove_bb): Same.
17180 (dump_cfg_stats): Same.
17181 (gimple_duplicate_sese_region): Same.
17182 (gimple_duplicate_sese_tail): Same.
17183 (move_block_to_fn): Same.
17184 (replace_block_vars_by_duplicates): Same.
17185 (move_sese_region_to_fn): Same.
17186 (print_loops_bb): Same.
17187 (print_loop): Same.
17188 (print_loops): Same.
17189 (debug): Same.
17190 (debug_loops): Same.
17191 * tree-cfg.h: Same.
17192 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
17193 (chrec_fold_multiply_poly_poly): Same.
17194 (chrec_evaluate): Same.
17195 (chrec_component_in_loop_num): Same.
17196 (reset_evolution_in_loop): Same.
17197 (is_multivariate_chrec): Same.
17198 (chrec_contains_symbols): Same.
17199 (nb_vars_in_chrec): Same.
17200 (chrec_convert_1): Same.
17201 (chrec_convert_aggressive): Same.
17202 * tree-chrec.h: Same.
17203 * tree-core.h: Same.
17204 * tree-data-ref.c (dump_data_dependence_relation): Same.
17205 (canonicalize_base_object_address): Same.
17206 (data_ref_compare_tree): Same.
17207 (prune_runtime_alias_test_list): Same.
17208 (get_segment_min_max): Same.
17209 (create_intersect_range_checks): Same.
17210 (conflict_fn_no_dependence): Same.
17211 (object_address_invariant_in_loop_p): Same.
17212 (analyze_ziv_subscript): Same.
17213 (analyze_siv_subscript_cst_affine): Same.
17214 (analyze_miv_subscript): Same.
17215 (analyze_overlapping_iterations): Same.
17216 (build_classic_dist_vector_1): Same.
17217 (add_other_self_distances): Same.
17218 (same_access_functions): Same.
17219 (build_classic_dir_vector): Same.
17220 (subscript_dependence_tester_1): Same.
17221 (subscript_dependence_tester): Same.
17222 (access_functions_are_affine_or_constant_p): Same.
17223 (get_references_in_stmt): Same.
17224 (loop_nest_has_data_refs): Same.
17225 (graphite_find_data_references_in_stmt): Same.
17226 (find_data_references_in_bb): Same.
17227 (get_base_for_alignment): Same.
17228 (find_loop_nest_1): Same.
17229 (find_loop_nest): Same.
17230 * tree-data-ref.h (dr_alignment): Same.
17231 (ddr_dependence_level): Same.
17232 * tree-if-conv.c (fold_build_cond_expr): Same.
17233 (add_to_predicate_list): Same.
17234 (add_to_dst_predicate_list): Same.
17235 (phi_convertible_by_degenerating_args): Same.
17236 (idx_within_array_bound): Same.
17237 (all_preds_critical_p): Same.
17238 (pred_blocks_visited_p): Same.
17239 (predicate_bbs): Same.
17240 (build_region): Same.
17241 (if_convertible_loop_p_1): Same.
17242 (is_cond_scalar_reduction): Same.
17243 (predicate_scalar_phi): Same.
17244 (remove_conditions_and_labels): Same.
17245 (combine_blocks): Same.
17246 (version_loop_for_if_conversion): Same.
17247 (versionable_outer_loop_p): Same.
17248 (ifcvt_local_dce): Same.
17249 (tree_if_conversion): Same.
17250 (pass_if_conversion::gate): Same.
17251 * tree-if-conv.h: Same.
17252 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
17253 * tree-loop-distribution.c (bb_top_order_cmp): Same.
17254 (free_rdg): Same.
17255 (stmt_has_scalar_dependences_outside_loop): Same.
17256 (copy_loop_before): Same.
17257 (create_bb_after_loop): Same.
17258 (const_with_all_bytes_same): Same.
17259 (generate_memset_builtin): Same.
17260 (generate_memcpy_builtin): Same.
17261 (destroy_loop): Same.
17262 (build_rdg_partition_for_vertex): Same.
17263 (compute_access_range): Same.
17264 (data_ref_segment_size): Same.
17265 (latch_dominated_by_data_ref): Same.
17266 (compute_alias_check_pairs): Same.
17267 (fuse_memset_builtins): Same.
17268 (finalize_partitions): Same.
17269 (find_seed_stmts_for_distribution): Same.
17270 (prepare_perfect_loop_nest): Same.
17271 * tree-parloops.c (lambda_transform_legal_p): Same.
17272 (loop_parallel_p): Same.
17273 (reduc_stmt_res): Same.
17274 (add_field_for_name): Same.
17275 (create_call_for_reduction_1): Same.
17276 (replace_uses_in_bb_by): Same.
17277 (transform_to_exit_first_loop_alt): Same.
17278 (try_transform_to_exit_first_loop_alt): Same.
17279 (transform_to_exit_first_loop): Same.
17280 (num_phis): Same.
17281 (gen_parallel_loop): Same.
17282 (gather_scalar_reductions): Same.
17283 (get_omp_data_i_param): Same.
17284 (try_create_reduction_list): Same.
17285 (oacc_entry_exit_single_gang): Same.
17286 (parallelize_loops): Same.
17287 * tree-pass.h: Same.
17288 * tree-predcom.c (determine_offset): Same.
17289 (last_always_executed_block): Same.
17290 (split_data_refs_to_components): Same.
17291 (suitable_component_p): Same.
17292 (valid_initializer_p): Same.
17293 (find_looparound_phi): Same.
17294 (insert_looparound_copy): Same.
17295 (add_looparound_copies): Same.
17296 (determine_roots_comp): Same.
17297 (predcom_tmp_var): Same.
17298 (initialize_root_vars): Same.
17299 (initialize_root_vars_store_elim_1): Same.
17300 (initialize_root_vars_store_elim_2): Same.
17301 (finalize_eliminated_stores): Same.
17302 (initialize_root_vars_lm): Same.
17303 (remove_stmt): Same.
17304 (determine_unroll_factor): Same.
17305 (execute_pred_commoning_cbck): Same.
17306 (base_names_in_chain_on): Same.
17307 (combine_chains): Same.
17308 (pcom_stmt_dominates_stmt_p): Same.
17309 (try_combine_chains): Same.
17310 (prepare_initializers_chain_store_elim): Same.
17311 (prepare_initializers_chain): Same.
17312 (prepare_initializers): Same.
17313 (prepare_finalizers_chain): Same.
17314 (prepare_finalizers): Same.
17315 (insert_init_seqs): Same.
17316 * tree-scalar-evolution.c (loop_phi_node_p): Same.
17317 (compute_overall_effect_of_inner_loop): Same.
17318 (add_to_evolution_1): Same.
17319 (add_to_evolution): Same.
17320 (follow_ssa_edge_binary): Same.
17321 (follow_ssa_edge_expr): Same.
17322 (backedge_phi_arg_p): Same.
17323 (follow_ssa_edge_in_condition_phi_branch): Same.
17324 (follow_ssa_edge_in_condition_phi): Same.
17325 (follow_ssa_edge_inner_loop_phi): Same.
17326 (follow_ssa_edge): Same.
17327 (analyze_evolution_in_loop): Same.
17328 (analyze_initial_condition): Same.
17329 (interpret_loop_phi): Same.
17330 (interpret_condition_phi): Same.
17331 (interpret_rhs_expr): Same.
17332 (interpret_expr): Same.
17333 (interpret_gimple_assign): Same.
17334 (analyze_scalar_evolution_1): Same.
17335 (analyze_scalar_evolution): Same.
17336 (analyze_scalar_evolution_for_address_of): Same.
17337 (get_instantiated_value_entry): Same.
17338 (loop_closed_phi_def): Same.
17339 (instantiate_scev_name): Same.
17340 (instantiate_scev_poly): Same.
17341 (instantiate_scev_binary): Same.
17342 (instantiate_scev_convert): Same.
17343 (instantiate_scev_not): Same.
17344 (instantiate_scev_r): Same.
17345 (instantiate_scev): Same.
17346 (resolve_mixers): Same.
17347 (initialize_scalar_evolutions_analyzer): Same.
17348 (scev_reset_htab): Same.
17349 (scev_reset): Same.
17350 (derive_simple_iv_with_niters): Same.
17351 (simple_iv_with_niters): Same.
17352 (expression_expensive_p): Same.
17353 (final_value_replacement_loop): Same.
17354 * tree-scalar-evolution.h (block_before_loop): Same.
17355 * tree-ssa-address.h: Same.
17356 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
17357 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
17358 (record_edge_info): Same.
17359 * tree-ssa-live.c (var_map_base_fini): Same.
17360 (remove_unused_locals): Same.
17361 * tree-ssa-live.h: Same.
17362 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
17363 (pass_ch_vect::execute): Same.
17364 (pass_ch::process_loop_p): Same.
17365 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
17366 (movement_possibility): Same.
17367 (outermost_invariant_loop): Same.
17368 (stmt_cost): Same.
17369 (determine_max_movement): Same.
17370 (invariantness_dom_walker::before_dom_children): Same.
17371 (move_computations): Same.
17372 (may_move_till): Same.
17373 (force_move_till_op): Same.
17374 (force_move_till): Same.
17375 (memref_free): Same.
17376 (record_mem_ref_loc): Same.
17377 (set_ref_stored_in_loop): Same.
17378 (mark_ref_stored): Same.
17379 (sort_bbs_in_loop_postorder_cmp): Same.
17380 (sort_locs_in_loop_postorder_cmp): Same.
17381 (analyze_memory_references): Same.
17382 (mem_refs_may_alias_p): Same.
17383 (find_ref_loc_in_loop_cmp): Same.
17384 (rewrite_mem_ref_loc::operator): Same.
17385 (first_mem_ref_loc_1::operator): Same.
17386 (sm_set_flag_if_changed::operator): Same.
17387 (execute_sm_if_changed_flag_set): Same.
17388 (execute_sm): Same.
17389 (hoist_memory_references): Same.
17390 (ref_always_accessed::operator): Same.
17391 (refs_independent_p): Same.
17392 (record_dep_loop): Same.
17393 (ref_indep_loop_p_1): Same.
17394 (ref_indep_loop_p): Same.
17395 (can_sm_ref_p): Same.
17396 (find_refs_for_sm): Same.
17397 (loop_suitable_for_sm): Same.
17398 (store_motion_loop): Same.
17399 (store_motion): Same.
17400 (fill_always_executed_in): Same.
17401 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
17402 (estimated_unrolled_size): Same.
17403 (loop_edge_to_cancel): Same.
17404 (remove_exits_and_undefined_stmts): Same.
17405 (remove_redundant_iv_tests): Same.
17406 (unloop_loops): Same.
17407 (estimated_peeled_sequence_size): Same.
17408 (try_peel_loop): Same.
17409 (canonicalize_loop_induction_variables): Same.
17410 (canonicalize_induction_variables): Same.
17411 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
17412 (name_info): Same.
17413 (stmt_after_inc_pos): Same.
17414 (contains_abnormal_ssa_name_p): Same.
17415 (niter_for_exit): Same.
17416 (find_bivs): Same.
17417 (mark_bivs): Same.
17418 (find_givs_in_bb): Same.
17419 (find_induction_variables): Same.
17420 (find_interesting_uses_cond): Same.
17421 (outermost_invariant_loop_for_expr): Same.
17422 (idx_find_step): Same.
17423 (add_candidate_1): Same.
17424 (add_iv_candidate_derived_from_uses): Same.
17425 (alloc_use_cost_map): Same.
17426 (prepare_decl_rtl): Same.
17427 (generic_predict_doloop_p): Same.
17428 (computation_cost): Same.
17429 (determine_common_wider_type): Same.
17430 (get_computation_aff_1): Same.
17431 (get_use_type): Same.
17432 (determine_group_iv_cost_address): Same.
17433 (iv_period): Same.
17434 (difference_cannot_overflow_p): Same.
17435 (may_eliminate_iv): Same.
17436 (determine_set_costs): Same.
17437 (cheaper_cost_pair): Same.
17438 (compare_cost_pair): Same.
17439 (iv_ca_cand_for_group): Same.
17440 (iv_ca_recount_cost): Same.
17441 (iv_ca_set_remove_invs): Same.
17442 (iv_ca_set_no_cp): Same.
17443 (iv_ca_set_add_invs): Same.
17444 (iv_ca_set_cp): Same.
17445 (iv_ca_add_group): Same.
17446 (iv_ca_cost): Same.
17447 (iv_ca_compare_deps): Same.
17448 (iv_ca_delta_reverse): Same.
17449 (iv_ca_delta_commit): Same.
17450 (iv_ca_cand_used_p): Same.
17451 (iv_ca_delta_free): Same.
17452 (iv_ca_new): Same.
17453 (iv_ca_free): Same.
17454 (iv_ca_dump): Same.
17455 (iv_ca_extend): Same.
17456 (iv_ca_narrow): Same.
17457 (iv_ca_prune): Same.
17458 (cheaper_cost_with_cand): Same.
17459 (iv_ca_replace): Same.
17460 (try_add_cand_for): Same.
17461 (get_initial_solution): Same.
17462 (try_improve_iv_set): Same.
17463 (find_optimal_iv_set_1): Same.
17464 (create_new_iv): Same.
17465 (rewrite_use_compare): Same.
17466 (remove_unused_ivs): Same.
17467 (determine_scaling_factor): Same.
17468 * tree-ssa-loop-ivopts.h: Same.
17469 * tree-ssa-loop-manip.c (create_iv): Same.
17470 (compute_live_loop_exits): Same.
17471 (add_exit_phi): Same.
17472 (add_exit_phis): Same.
17473 (find_uses_to_rename_use): Same.
17474 (find_uses_to_rename_def): Same.
17475 (find_uses_to_rename_in_loop): Same.
17476 (rewrite_into_loop_closed_ssa): Same.
17477 (check_loop_closed_ssa_bb): Same.
17478 (split_loop_exit_edge): Same.
17479 (ip_end_pos): Same.
17480 (ip_normal_pos): Same.
17481 (copy_phi_node_args): Same.
17482 (gimple_duplicate_loop_to_header_edge): Same.
17483 (can_unroll_loop_p): Same.
17484 (determine_exit_conditions): Same.
17485 (scale_dominated_blocks_in_loop): Same.
17486 (niter_for_unrolled_loop): Same.
17487 (tree_transform_and_unroll_loop): Same.
17488 (rewrite_all_phi_nodes_with_iv): Same.
17489 * tree-ssa-loop-manip.h: Same.
17490 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
17491 (number_of_iterations_ne): Same.
17492 (assert_no_overflow_lt): Same.
17493 (assert_loop_rolls_lt): Same.
17494 (number_of_iterations_lt): Same.
17495 (adjust_cond_for_loop_until_wrap): Same.
17496 (tree_simplify_using_condition): Same.
17497 (simplify_using_initial_conditions): Same.
17498 (simplify_using_outer_evolutions): Same.
17499 (loop_only_exit_p): Same.
17500 (ssa_defined_by_minus_one_stmt_p): Same.
17501 (number_of_iterations_popcount): Same.
17502 (number_of_iterations_exit): Same.
17503 (find_loop_niter): Same.
17504 (finite_loop_p): Same.
17505 (chain_of_csts_start): Same.
17506 (get_val_for): Same.
17507 (loop_niter_by_eval): Same.
17508 (derive_constant_upper_bound_ops): Same.
17509 (do_warn_aggressive_loop_optimizations): Same.
17510 (record_estimate): Same.
17511 (get_cst_init_from_scev): Same.
17512 (record_nonwrapping_iv): Same.
17513 (idx_infer_loop_bounds): Same.
17514 (infer_loop_bounds_from_ref): Same.
17515 (infer_loop_bounds_from_array): Same.
17516 (infer_loop_bounds_from_pointer_arith): Same.
17517 (infer_loop_bounds_from_signedness): Same.
17518 (bound_index): Same.
17519 (discover_iteration_bound_by_body_walk): Same.
17520 (maybe_lower_iteration_bound): Same.
17521 (estimate_numbers_of_iterations): Same.
17522 (estimated_loop_iterations): Same.
17523 (estimated_loop_iterations_int): Same.
17524 (max_loop_iterations): Same.
17525 (max_loop_iterations_int): Same.
17526 (likely_max_loop_iterations): Same.
17527 (likely_max_loop_iterations_int): Same.
17528 (estimated_stmt_executions_int): Same.
17529 (max_stmt_executions): Same.
17530 (likely_max_stmt_executions): Same.
17531 (estimated_stmt_executions): Same.
17532 (stmt_dominates_stmt_p): Same.
17533 (nowrap_type_p): Same.
17534 (loop_exits_before_overflow): Same.
17535 (scev_var_range_cant_overflow): Same.
17536 (scev_probably_wraps_p): Same.
17537 (free_numbers_of_iterations_estimates): Same.
17538 * tree-ssa-loop-niter.h: Same.
17539 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
17540 (idx_analyze_ref): Same.
17541 (analyze_ref): Same.
17542 (gather_memory_references_ref): Same.
17543 (mark_nontemporal_store): Same.
17544 (emit_mfence_after_loop): Same.
17545 (may_use_storent_in_loop_p): Same.
17546 (mark_nontemporal_stores): Same.
17547 (should_unroll_loop_p): Same.
17548 (volume_of_dist_vector): Same.
17549 (add_subscript_strides): Same.
17550 (self_reuse_distance): Same.
17551 (insn_to_prefetch_ratio_too_small_p): Same.
17552 * tree-ssa-loop-split.c (split_at_bb_p): Same.
17553 (patch_loop_exit): Same.
17554 (find_or_create_guard_phi): Same.
17555 (easy_exit_values): Same.
17556 (connect_loop_phis): Same.
17557 (connect_loops): Same.
17558 (compute_new_first_bound): Same.
17559 (split_loop): Same.
17560 (tree_ssa_split_loops): Same.
17561 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
17562 (is_maybe_undefined): Same.
17563 (tree_may_unswitch_on): Same.
17564 (simplify_using_entry_checks): Same.
17565 (tree_unswitch_single_loop): Same.
17566 (tree_unswitch_loop): Same.
17567 (tree_unswitch_outer_loop): Same.
17568 (empty_bb_without_guard_p): Same.
17569 (used_outside_loop_p): Same.
17570 (get_vop_from_header): Same.
17571 (hoist_guard): Same.
17572 * tree-ssa-loop.c (gate_oacc_kernels): Same.
17573 (get_lsm_tmp_name): Same.
17574 * tree-ssa-loop.h: Same.
17575 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
17576 (build_and_add_sum): Same.
17577 (no_side_effect_bb): Same.
17578 (get_ops): Same.
17579 (linearize_expr): Same.
17580 (should_break_up_subtract): Same.
17581 (linearize_expr_tree): Same.
17582 * tree-ssa-scopedtables.c: Same.
17583 * tree-ssa-scopedtables.h: Same.
17584 * tree-ssa-structalias.c (condense_visit): Same.
17585 (label_visit): Same.
17586 (dump_pred_graph): Same.
17587 (perform_var_substitution): Same.
17588 (move_complex_constraints): Same.
17589 (remove_preds_and_fake_succs): Same.
17590 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
17591 (determine_bb_domination_status): Same.
17592 (duplicate_thread_path): Same.
17593 (thread_through_all_blocks): Same.
17594 * tree-ssa-threadupdate.h: Same.
17595 * tree-streamer-in.c (streamer_read_string_cst): Same.
17596 (input_identifier): Same.
17597 (unpack_ts_type_common_value_fields): Same.
17598 (unpack_ts_block_value_fields): Same.
17599 (unpack_ts_translation_unit_decl_value_fields): Same.
17600 (unpack_ts_omp_clause_value_fields): Same.
17601 (streamer_read_tree_bitfields): Same.
17602 (streamer_alloc_tree): Same.
17603 (lto_input_ts_common_tree_pointers): Same.
17604 (lto_input_ts_vector_tree_pointers): Same.
17605 (lto_input_ts_poly_tree_pointers): Same.
17606 (lto_input_ts_complex_tree_pointers): Same.
17607 (lto_input_ts_decl_minimal_tree_pointers): Same.
17608 (lto_input_ts_decl_common_tree_pointers): Same.
17609 (lto_input_ts_decl_non_common_tree_pointers): Same.
17610 (lto_input_ts_decl_with_vis_tree_pointers): Same.
17611 (lto_input_ts_field_decl_tree_pointers): Same.
17612 (lto_input_ts_function_decl_tree_pointers): Same.
17613 (lto_input_ts_type_common_tree_pointers): Same.
17614 (lto_input_ts_type_non_common_tree_pointers): Same.
17615 (lto_input_ts_list_tree_pointers): Same.
17616 (lto_input_ts_vec_tree_pointers): Same.
17617 (lto_input_ts_exp_tree_pointers): Same.
17618 (lto_input_ts_block_tree_pointers): Same.
17619 (lto_input_ts_binfo_tree_pointers): Same.
17620 (lto_input_ts_constructor_tree_pointers): Same.
17621 (lto_input_ts_omp_clause_tree_pointers): Same.
17622 (streamer_read_tree_body): Same.
17623 * tree-streamer.h: Same.
17624 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
17625 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
17626 (vect_analyze_possibly_independent_ddr): Same.
17627 (vect_analyze_data_ref_dependence): Same.
17628 (vect_compute_data_ref_alignment): Same.
17629 (vect_enhance_data_refs_alignment): Same.
17630 (vect_analyze_data_ref_access): Same.
17631 (vect_check_gather_scatter): Same.
17632 (vect_find_stmt_data_reference): Same.
17633 (vect_create_addr_base_for_vector_ref): Same.
17634 (vect_setup_realignment): Same.
17635 (vect_supportable_dr_alignment): Same.
17636 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
17637 (adjust_phi_and_debug_stmts): Same.
17638 (vect_set_loop_mask): Same.
17639 (add_preheader_seq): Same.
17640 (vect_maybe_permute_loop_masks): Same.
17641 (vect_set_loop_masks_directly): Same.
17642 (vect_set_loop_condition_masked): Same.
17643 (vect_set_loop_condition_unmasked): Same.
17644 (slpeel_duplicate_current_defs_from_edges): Same.
17645 (slpeel_add_loop_guard): Same.
17646 (slpeel_can_duplicate_loop_p): Same.
17647 (create_lcssa_for_virtual_phi): Same.
17648 (iv_phi_p): Same.
17649 (vect_update_ivs_after_vectorizer): Same.
17650 (vect_gen_vector_loop_niters_mult_vf): Same.
17651 (slpeel_update_phi_nodes_for_loops): Same.
17652 (slpeel_update_phi_nodes_for_guard1): Same.
17653 (find_guard_arg): Same.
17654 (slpeel_update_phi_nodes_for_guard2): Same.
17655 (slpeel_update_phi_nodes_for_lcssa): Same.
17656 (vect_do_peeling): Same.
17657 (vect_create_cond_for_alias_checks): Same.
17658 (vect_loop_versioning): Same.
17659 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
17660 (vect_inner_phi_in_double_reduction_p): Same.
17661 (vect_analyze_scalar_cycles_1): Same.
17662 (vect_fixup_scalar_cycles_with_patterns): Same.
17663 (vect_get_loop_niters): Same.
17664 (bb_in_loop_p): Same.
17665 (vect_get_max_nscalars_per_iter): Same.
17666 (vect_verify_full_masking): Same.
17667 (vect_compute_single_scalar_iteration_cost): Same.
17668 (vect_analyze_loop_form_1): Same.
17669 (vect_analyze_loop_form): Same.
17670 (vect_active_double_reduction_p): Same.
17671 (vect_analyze_loop_operations): Same.
17672 (neutral_op_for_slp_reduction): Same.
17673 (vect_is_simple_reduction): Same.
17674 (vect_model_reduction_cost): Same.
17675 (get_initial_def_for_reduction): Same.
17676 (get_initial_defs_for_reduction): Same.
17677 (vect_create_epilog_for_reduction): Same.
17678 (vectorize_fold_left_reduction): Same.
17679 (vectorizable_reduction): Same.
17680 (vectorizable_induction): Same.
17681 (vectorizable_live_operation): Same.
17682 (loop_niters_no_overflow): Same.
17683 (vect_get_loop_mask): Same.
17684 (vect_transform_loop_stmt): Same.
17685 (vect_transform_loop): Same.
17686 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
17687 (vect_determine_precisions): Same.
17688 (vect_pattern_recog_1): Same.
17689 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
17690 * tree-vect-stmts.c (stmt_vectype): Same.
17691 (process_use): Same.
17692 (vect_init_vector_1): Same.
17693 (vect_truncate_gather_scatter_offset): Same.
17694 (get_group_load_store_type): Same.
17695 (vect_build_gather_load_calls): Same.
17696 (vect_get_strided_load_store_ops): Same.
17697 (vectorizable_simd_clone_call): Same.
17698 (vectorizable_store): Same.
17699 (permute_vec_elements): Same.
17700 (vectorizable_load): Same.
17701 (vect_transform_stmt): Same.
17702 (supportable_widening_operation): Same.
17703 * tree-vectorizer.c (vec_info::replace_stmt): Same.
17704 (vec_info::free_stmt_vec_info): Same.
17705 (vect_free_loop_info_assumptions): Same.
17706 (vect_loop_vectorized_call): Same.
17707 (set_uid_loop_bbs): Same.
17708 (vectorize_loops): Same.
17709 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
17710 * tree.c (add_tree_to_fld_list): Same.
17711 (fld_type_variant_equal_p): Same.
17712 (fld_decl_context): Same.
17713 (fld_incomplete_type_of): Same.
17714 (free_lang_data_in_binfo): Same.
17715 (need_assembler_name_p): Same.
17716 (find_decls_types_r): Same.
17717 (get_eh_types_for_runtime): Same.
17718 (find_decls_types_in_eh_region): Same.
17719 (find_decls_types_in_node): Same.
17720 (assign_assembler_name_if_needed): Same.
17721 * value-prof.c (stream_out_histogram_value): Same.
17722 * value-prof.h: Same.
17723 * var-tracking.c (use_narrower_mode): Same.
17724 (prepare_call_arguments): Same.
17725 (vt_expand_loc_callback): Same.
17726 (resolve_expansions_pending_recursion): Same.
17727 (vt_expand_loc): Same.
17728 * varasm.c (const_hash_1): Same.
17729 (compare_constant): Same.
17730 (tree_output_constant_def): Same.
17731 (simplify_subtraction): Same.
17732 (get_pool_constant): Same.
17733 (output_constant_pool_2): Same.
17734 (output_constant_pool_1): Same.
17735 (mark_constants_in_pattern): Same.
17736 (mark_constant_pool): Same.
17737 (get_section_anchor): Same.
17738 * vr-values.c (compare_range_with_value): Same.
17739 (vr_values::extract_range_from_phi_node): Same.
17740 * vr-values.h: Same.
17741 * web.c (unionfind_union): Same.
17742 * wide-int.h: Same.
17743
17744 2019-07-09 Martin Sebor <msebor@redhat.com>
17745
17746 PR c++/61339
17747 * align.h: Change class-key from class to struct and vice versa
17748 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
17749 * alloc-pool.h: Same.
17750 * asan.c (shadow_mem_size): Same.
17751 * auto-profile.c: Same.
17752 * basic-block.h: Same.
17753 * bitmap.h: Same.
17754 * cfgexpand.c (set_rtl): Same.
17755 (expand_one_stack_var_at): Same.
17756 * cfghooks.h: Same.
17757 * cfgloop.h: Same.
17758 * cgraph.h: Same.
17759 * config/i386/i386.h: Same.
17760 * df-problems.c (df_print_bb_index): Same.
17761 * df-scan.c: Same.
17762 * df.h (df_single_use): Same.
17763 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
17764 (layout::annotation_line_showed_range_p): Same.
17765 (get_printed_columns): Same.
17766 (correction::ensure_terminated): Same.
17767 (line_corrections::~line_corrections): Same.
17768 * dojump.h: Same.
17769 * dse.c: Same.
17770 * dump-context.h: Same.
17771 * dumpfile.h: Same.
17772 * dwarf2out.c: Same.
17773 * edit-context.c: Same.
17774 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
17775 * flags.h: Same.
17776 * function.c (assign_stack_local): Same.
17777 * function.h: Same.
17778 * gcc.c: Same.
17779 * gcov.c (block_info::block_info): Same.
17780 * genattrtab.c: Same.
17781 * genextract.c: Same.
17782 * genmatch.c (comparison_code_p): Same.
17783 (id_base::id_base): Same.
17784 (decision_tree::print): Same.
17785 * genoutput.c: Same.
17786 * genpreds.c (write_one_predicate_function): Same.
17787 * genrecog.c (validate_pattern): Same.
17788 (find_operand_positions): Same.
17789 (optimize_subroutine_group): Same.
17790 (merge_pattern_transition::merge_pattern_transition): Same.
17791 (merge_pattern_info::merge_pattern_info): Same.
17792 (merge_state_result::merge_state_result): Same.
17793 (merge_into_state): Same.
17794 * gensupport.c: Same.
17795 * gensupport.h: Same.
17796 * ggc-common.c (init_ggc_heuristics): Same.
17797 * ggc-tests.c (test_union): Same.
17798 * gimple-loop-interchange.cc (dump_induction): Same.
17799 * gimple-loop-versioning.cc: Same.
17800 * gimple-match.h (gimple_match_cond::any_else): Same.
17801 * gimple-ssa-backprop.c: Same.
17802 * gimple-ssa-sprintf.c: Same.
17803 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
17804 Same.
17805 (store_immediate_info::store_immediate_info): Same.
17806 (merged_store_group::apply_stores): Same.
17807 (get_location_for_stmts): Same.
17808 * gimple-ssa-strength-reduction.c: Same.
17809 * gimple-ssa-warn-alloca.c: Same.
17810 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
17811 * godump.c (go_type_decl): Same.
17812 * hash-map-tests.c (test_map_of_strings_to_int): Same.
17813 * hash-map.h: Same.
17814 * hash-set-tests.c (test_set_of_strings): Same.
17815 * hsa-brig.c: Same.
17816 * hsa-common.h: Same.
17817 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
17818 * input.c (assert_loceq): Same.
17819 * input.h: Same.
17820 * ipa-cp.c: Same.
17821 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
17822 * ipa-fnsummary.h: Same.
17823 * ipa-inline.h: Same.
17824 * ipa-prop.h: Same.
17825 * ipa-split.c (visit_bb): Same.
17826 * ira-int.h (minmax_set_iter_next): Same.
17827 * loop-invariant.c: Same.
17828 * loop-iv.c: Same.
17829 * lra-eliminations.c: Same.
17830 * lra-int.h: Same.
17831 * lra-lives.c (mark_regno_dead): Same.
17832 * lra-remat.c: Same.
17833 * lra-spills.c: Same.
17834 * lto-streamer.h: Same.
17835 * mem-stats.h: Same.
17836 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
17837 * omp-low.c (omp_clause_aligned_alignment): Same.
17838 * optabs-query.h (get_vcond_eq_icode): Same.
17839 * optabs.h: Same.
17840 * opts.c (wrap_help): Same.
17841 * poly-int.h: Same.
17842 * predict.c (predict_paths_leading_to_edge): Same.
17843 * pretty-print.h: Same.
17844 * profile-count.h: Same.
17845 * read-md.h: Same.
17846 * read-rtl-function.c: Same.
17847 * ree.c: Same.
17848 * reginfo.c: Same.
17849 * regrename.c: Same.
17850 * regrename.h: Same.
17851 * reload.h: Same.
17852 * rtl-iter.h: Same.
17853 * rtl.h (costs_add_n_insns): Same.
17854 * sanopt.c: Same.
17855 * sched-int.h: Same.
17856 * sel-sched-ir.h: Same.
17857 * selftest.h: Same.
17858 * sese.h (vec_find): Same.
17859 * stmt.c: Same.
17860 * target-globals.h: Same.
17861 * tree-affine.c (aff_combination_find_elt): Same.
17862 * tree-affine.h: Same.
17863 * tree-data-ref.h: Same.
17864 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
17865 * tree-predcom.c: Same.
17866 * tree-scalar-evolution.c (find_var_scev_info): Same.
17867 * tree-ssa-alias.h: Same.
17868 * tree-ssa-ccp.c: Same.
17869 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
17870 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
17871 (rewrite_mem_refs): Same.
17872 (execute_sm_if_changed): Same.
17873 (hoist_memory_references): Same.
17874 * tree-ssa-loop-ivopts.c (operator<=): Same.
17875 * tree-ssa-loop.h: Same.
17876 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
17877 * tree-ssa-structalias.c: Same.
17878 * tree-switch-conversion.h (cluster::cluster): Same.
17879 (simple_cluster::simple_cluster): Same.
17880 * tree-vect-patterns.c (type_conversion_p): Same.
17881 * tree-vectorizer.c (dump_stmt_cost): Same.
17882 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
17883 * tree.c (protected_set_expr_location): Same.
17884 * tree.h (desired_pro_or_demotion_p): Same.
17885 (fndecl_built_in_p): Same.
17886 * unique-ptr-tests.cc: Same.
17887 * var-tracking.c (delete_variable_part): Same.
17888 * varasm.c (assemble_real): Same.
17889 (tree_output_constant_def): Same.
17890 * vec.c: Same.
17891 * wide-int-bitmask.h: Same.
17892 * wide-int.h (decompose): Same.
17893
17894 2019-07-09 Richard Biener <rguenther@suse.de>
17895
17896 PR tree-optimization/91114
17897 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
17898 find a vector type isn't fatal.
17899
17900 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
17901
17902 * config/aarch64/aarch64-simd.md
17903 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
17904 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
17905 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
17906 (*aarch64_crypto_aese_fused,
17907 *aarch64_crypto_aesd_fused): Update to new definition.
17908 * config/aarch64/aarch64.c
17909 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
17910
17911 2019-07-09 Richard Biener <rguenther@suse.de>
17912
17913 * gimple-match.h (gimple_match_op::resimplify): New.
17914 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
17915 gimple_resimplify4, gimple_resimplify5): Remove.
17916 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
17917 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
17918 Make static.
17919 (gimple_match_op::resimplify): New.
17920 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
17921 according to availability. Use gimple_match_op::resimplify.
17922
17923 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
17924
17925 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
17926
17927 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
17928
17929 * config/arm/crypto.md:
17930 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
17931 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
17932 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
17933 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
17934 * config/arm/arm.c
17935 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
17936 * config/arm/aarch-common-protos.h
17937 (aarch_crypto_can_dual_issue): Remove.
17938 * config/arm/aarch-common.c
17939 (aarch_crypto_can_dual_issue): Likewise.
17940 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
17941 * config/arm/cortex-a53.md: Likewise.
17942 * config/arm/cortex-a57.md: Likewise.
17943 * config/arm/iterators.md:
17944 (CRYPTO_BINARY): Redefine.
17945 (CRYPTO_UNARY): Removed.
17946 (CRYPTO_AES, CRYPTO_AESMC): New.
17947
17948 2019-07-09 Richard Biener <rguenther@suse.de>
17949
17950 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
17951 (vn_reference_lookup_3): If the main ref has no access path recorded
17952 but orig_ref has use it to do access-path based disambiguation.
17953 (vn_reference_lookup_pieces): Adjust.
17954 (vn_reference_lookup): Pass down original ref if we valueized.
17955
17956 2019-07-09 Martin Liska <mliska@suse.cz>
17957
17958 * doc/extend.texi: Document influence on loop
17959 optimizers.
17960
17961 2019-07-09 Martin Liska <mliska@suse.cz>
17962
17963 * lto-compress.c (lto_normalized_zstd_level): Do not use
17964 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
17965 of libzstd. One can use 0 as a default compression level.
17966
17967 2019-07-09 Martin Liska <mliska@suse.cz>
17968
17969 * doc/invoke.texi: Add link from -fprofile-dir option.
17970 Use better wording for 'gcno filename'.
17971
17972 2019-07-08 Martin Sebor <msebor@redhat.com>
17973
17974 PR middle-end/71924
17975 PR middle-end/90549
17976 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
17977 comment.
17978 (args_loc_t): New type.
17979 (args_loc_t, locmap_t): same.
17980 (diag_returned_locals): New function.
17981 (is_addr_local): Same.
17982 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
17983 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
17984 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
17985
17986 2019-07-08 Jakub Jelinek <jakub@redhat.com>
17987
17988 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
17989 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
17990 and casts in offset when different, both through gimple stmts
17991 and through trees. Rewritten using loops to minimize code duplication
17992 for each operand.
17993
17994 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
17995
17996 * emit-rtl.c (set_insn_locations): New function moved from...
17997 * function.c (set_insn_locations): ...here.
17998 * ira-emit.c (emit_moves): Propagate location of the first instruction
17999 to the inserted move instructions.
18000 * reg-stack.c (compensate_edge): Set the location if the sequence is
18001 inserted on the edge.
18002 * rtl.h (set_insn_locations): Declare.
18003
18004 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
18005
18006 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
18007 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
18008 .machine string.
18009
18010 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
18011
18012 PR rtl-optimization/88233
18013 * common.opt (fsplit-wide-types-early): New option.
18014 * common/config/rs6000/rs6000-common.c
18015 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
18016 OPT_LEVELS_ALL.
18017 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
18018 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
18019 flag_split_wide_types_early.
18020 (pass_data_lower_subreg3): New.
18021 (pass_lower_subreg3): New.
18022 (make_pass_lower_subreg3): New.
18023 * passes.def (pass_lower_subreg2): Move after the loop passes.
18024 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
18025 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
18026 the pass pipeline; its previous place is taken by ...
18027 (make_pass_lower_subreg3): ... this.
18028
18029 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
18030
18031 * config/s390/s390.c (s390_shift_truncation_mask): Define.
18032 (TARGET_SHIFT_TRUNCATION_MASK): Define.
18033
18034 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
18035
18036 * config/s390/constraints.md: Add new jsc constraint.
18037 * config/s390/predicates.md: New predicates.
18038 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
18039 * config/s390/s390.c (s390_valid_shift_count): New function.
18040 (print_shift_count_operand): Use s390_valid_shift_count.
18041 (print_operand): Likewise.
18042 * config/s390/s390.md: Use new predicate.
18043 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
18044 * config/s390/vector.md: Use new predicate.
18045
18046 2019-07-08 Andrew Waterman <andrew@sifive.com>
18047 Jim Wilson <jimw@sifive.com>
18048
18049 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
18050 bitsize instead of BITS_PER_WORD.
18051
18052 2019-07-08 Martin Liska <mliska@suse.cz>
18053
18054 * collect2.c (defined): Revert to before r254460.
18055 (scan_prog_file): Revert to before r254460.
18056
18057 2019-07-08 Richard Biener <rguenther@suse.de>
18058
18059 PR tree-optimization/83518
18060 * tree-ssa-sccvn.c: Include splay-tree.h.
18061 (struct pd_range, struct pd_data): New.
18062 (struct vn_walk_cb_data): Add data to track partial definitions.
18063 (vn_walk_cb_data::~vn_walk_cb_data): New.
18064 (vn_walk_cb_data::push_partial_def): New.
18065 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
18066 (vn_reference_lookup_2): When partial defs are registered give up.
18067 (vn_reference_lookup_3): Track partial defs for memset and
18068 constructor zeroing and for defs from constants.
18069
18070 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
18071
18072 * doc/install.texi (bootstrap-Og): Document.
18073
18074 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
18075
18076 * config/riscv/pic.md (*local_pic_load_s<mode>)
18077 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
18078 referenced by <mode>, giving...
18079 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
18080 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
18081 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
18082 use <X:MODE> for the mode attribute.
18083
18084 2019-07-07 Jeff Law <law@redhat.com>
18085
18086 PR tree-optimization/91090
18087 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
18088 in handling of ranges to simplify switch statements.
18089
18090 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
18091
18092 * config/darwin.c (darwin_override_options): Make a final check on PIC
18093 options.
18094
18095 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
18096
18097 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
18098 on for kernel code.
18099
18100 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
18101
18102 PR target/91068
18103 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
18104 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
18105 instead of matching them to "l" output operands.
18106
18107 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
18108
18109 * config/mips/mips.c (mips_split_move): Zero-initialize addr
18110 and check whether addr.reg is nonnull before using it.
18111
18112 2019-07-06 Jakub Jelinek <jakub@redhat.com>
18113
18114 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
18115 ctx->for_simd_scan_phase simd copy the outer var to the privatized
18116 variable(s). For conditional lastprivate look through outer
18117 GIMPLE_OMP_SCAN context.
18118 (lower_omp_1): For conditional lastprivate look through outer
18119 GIMPLE_OMP_SCAN context.
18120
18121 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
18122 member to combined_into_simd_safelen1.
18123 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
18124 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
18125 clauses if ctx->combined_into_simd_safelen1 put statements after the
18126 predicate conditionalized block rather than into it.
18127
18128 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18129
18130 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
18131 operand 1.
18132 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
18133 Make the choice of <mode> explicit, giving...
18134 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
18135
18136 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18137
18138 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
18139 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
18140 of .md attributes.
18141 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
18142 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
18143 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
18144 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
18145 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
18146 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
18147 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
18148 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
18149 (*avx512f_scatterdi<mode>): Likewise.
18150 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
18151
18152 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18153
18154 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
18155 specify the mode iterator referenced by <mode>, giving...
18156 (*push1_h8300hs_<QHI:mode>): ...this.
18157
18158 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18159
18160 * config/gcn/gcn-valu.md
18161 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
18162 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
18163 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
18164 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
18165 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
18166 but using the _exec comparison patterns.
18167 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
18168 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
18169 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
18170 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
18171 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
18172 but using the _exec comparison patterns.
18173
18174 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18175
18176 * config/arm/sync.md
18177 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
18178 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
18179 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
18180 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
18181 <SIDI:cas_cmp_str>.
18182
18183 2019-07-06 Jakub Jelinek <jakub@redhat.com>
18184
18185 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
18186 (maybe_lookup_ctx): Add forward declaration.
18187 (omp_find_scan): Likewise. Walk into body of simd if composited
18188 with worksharing loop.
18189 (scan_omp_simd_scan): New function.
18190 (scan_omp_1_stmt): Call it.
18191 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
18192 ctx->for_simd_scan_phase.
18193 (lower_rec_input_clauses): Do much less work for inscan reductions
18194 in ctx->for_simd_scan_phase is_simd regions.
18195 (lower_omp_scan): Set is_simd also on simd constructs composited
18196 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
18197 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
18198 emit their body after in simd constructs composited with worksharing
18199 loop.
18200 (lower_omp_for_scan): Handle worksharing loop composited with simd.
18201
18202 * omp-low.c (omp_find_scan): Make static.
18203 (lower_omp_for_scan): Fix order of merge arguments in input phase of
18204 the second loop, var2 represents the first partial sum and so needs
18205 to go before rprivb[ivar].
18206
18207 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
18208
18209 * config/rs6000/rs6000-logue.c: Remove unused code.
18210
18211 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
18212
18213 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
18214
18215 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
18216
18217 PR target/90712
18218 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
18219 check with a frame laid out check.
18220
18221 2019-07-05 Richard Biener <rguenther@suse.de>
18222
18223 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
18224 when comparing against a store with possibly the same value.
18225
18226 2019-07-05 Richard Biener <rguenther@suse.de>
18227
18228 PR tree-optimization/91091
18229 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
18230 (walk_non_aliased_vuses): Likewise.
18231 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
18232 (get_continuation_for_phi): New tbaa_p parameter and pass
18233 it down.
18234 (walk_non_aliased_vuses): Likewise.
18235 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
18236 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
18237 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
18238 Likewise.
18239 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
18240 (adjust_offsets_for_equal_base_address): New function.
18241 (vn_reference_lookup_3): Use it to catch more base equivalences.
18242 Handle and pass down tbaa_p flag.
18243 (vn_reference_lookup_pieces): Adjust.
18244 (vn_reference_lookup): Remove alias-set altering, instead pass
18245 down false as tbaa_p.
18246
18247 2019-07-05 Richard Biener <rguenther@suse.de>
18248
18249 PR tree-optimization/91091
18250 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
18251 accesses can happen with -fno-strict-aliasing.
18252
18253 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
18254
18255 * tree-ssa-alias.c (alias_stats): Add
18256 nonoverlapping_component_refs_since_match_p_must_overlap.
18257 (dump_alias_stats): Print it.
18258 (nonoverlapping_component_refs_since_match_p): Add early exit.
18259 (nonoverlapping_component_refs_p): Do not account early exit.
18260
18261 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
18262
18263 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
18264 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
18265 (emit_eh_dispatch): Delete.
18266 (lower_catch): Emit the eh_dispatch manually and set the location of
18267 the first catch statement onto it.
18268 (lower_eh_filter): Emit the eh_dispatch manually and set location.
18269 (lower_eh_dispatch): Propagate location.
18270 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
18271 (eliminate_build): Likewise.
18272
18273 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
18274
18275 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
18276 phi nodes if possible.
18277 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
18278 location info on the newly created statement.
18279 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
18280 newly created increment if needed.
18281
18282 2019-07-04 Jakub Jelinek <jakub@redhat.com>
18283
18284 PR middle-end/78884
18285 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
18286 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
18287 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
18288 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
18289 ctx->add_safelen1 is set.
18290
18291 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
18292 GOMP_loop_start at the start of second worksharing loop in a scan.
18293 For nowait, don't emit GOMP_loop_end_nowait at the end of first
18294 worksharing loop in a scan even if there are conditional lastprivates,
18295 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
18296
18297 2019-07-04 Jan Hubicka <jh@suse.cz>
18298
18299 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
18300 Fix check for match in the ref walk.
18301
18302 2019-07-04 Martin Liska <mliska@suse.cz>
18303
18304 * tree-ssa-loop-niter.c
18305 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
18306 (estimate_numbers_of_iterations):
18307 Support __builtin_expect_with_probability for analysis
18308 of # of loop iterations.
18309
18310 2019-07-04 Alexandre Oliva <oliva@adacore.com>
18311
18312 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
18313 * except.c: Likewise.
18314 * expr.c (expand_expr_real_1): Reject it.
18315 * gimplify.c (gimplify_expr): Gimplify it, within
18316 TRY_FINALLY_EXPR.
18317 * tree-dump.c (dequeue_and_dump): Dump it.
18318 * tree-pretty-print.c (dump_generic_node): Likewise.
18319 * tree.c (block_may_fallthru): Handle it.
18320 * tree.def (EH_ELSE_EXPR): Introduce it.
18321 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
18322 with GIMPLE_EH_ELSE as try/finally/else.
18323
18324 2019-07-04 Richard Biener <rguenther@suse.de>
18325
18326 PR ipa/91062
18327 * tree-pass.h (execute_all_ipa_transforms): Add a flag
18328 parameter whether to disable GC collection.
18329 * passes.c (execute_one_ipa_transform_pass): Likewise, and
18330 honor it.
18331 (execute_all_ipa_transforms): Likewise and pass it down.
18332 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
18333 collection from applying IPA transforms.
18334 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
18335 from applying IPA transforms.
18336
18337 2019-07-04 Richard Biener <rguenther@suse.de>
18338
18339 PR tree-optimization/90911
18340 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
18341 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
18342 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18343 scalar_loop_scaling.
18344 (vect_transform_loop): Scale scalar loop profile if needed.
18345 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
18346 the loop copy from if-conversion adjust edge probabilities
18347 and scale the vectorized loop body profile, queue the scalar
18348 profile for updating after peeling.
18349
18350 2019-07-04 Jan Hubicka <jh@suse.cz>
18351
18352 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
18353 parameters; return early for must-alias.
18354 (indirect_ref_may_alias_decl_p): Likewise; when establishing
18355 outer types match, try nonoverlapping_component_refs
18356 if must-alias is not obvious.
18357 (indirect_refs_may_alias_p): Likewise.
18358 (refs_may_alias_p_2): Likewise.
18359
18360 2019-07-04 Richard Biener <rguenther@suse.de>
18361
18362 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
18363 argument.
18364 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
18365 globals into...
18366 (struct vn_walk_cb_data): New callback data struct.
18367 (vn_reference_lookup_2): Adjust.
18368 (vn_reference_lookup_3): Likewise.
18369 (vn_reference_lookup_pieces): Likewise.
18370 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
18371 (visit_reference_op_load): Adjust.
18372
18373 2019-07-04 Jakub Jelinek <jakub@redhat.com>
18374
18375 PR tree-optimization/91063
18376 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
18377 stmt from stmts sequence before calling vect_init_vector_1.
18378 Formatting fix.
18379
18380 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18381
18382 PR target/88833
18383 * fwprop.c (reg_single_def_p): New function.
18384 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
18385 (forward_propagate_into): New parameter reg_prop_only
18386 with default value false.
18387 Propagate def's src into loop only if SET_SRC and SET_DEST
18388 of def_set have single definitions.
18389 Likewise if reg_prop_only is set to true.
18390 (fwprop): New param fwprop_addr_p.
18391 Integrate fwprop_addr into fwprop.
18392 (fwprop_addr): Remove.
18393 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
18394 to true.
18395 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
18396 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
18397 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
18398
18399 2019-07-04 Jakub Jelinek <jakub@redhat.com>
18400
18401 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
18402 in worksharing loop scans.
18403
18404 PR tree-optimization/91074
18405 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
18406 temporary.
18407
18408 PR rtl-optimization/90756
18409 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
18410 for VECTOR_TYPE_P.
18411
18412 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
18413
18414 * config/aarch64/aarch64.md: Remove redundant constraints from
18415 define_expand but keep some patterns untouched if they are
18416 specially selected by TARGET_SECONDARY_RELOAD hook.
18417 * config/aarch64/aarch64-sve.md: Likewise.
18418 * config/aarch64/atomics.md: Remove redundant constraints from
18419 define_expand.
18420 * config/aarch64/aarch64-simd.md: Likewise.
18421
18422 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
18423
18424 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
18425 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
18426 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
18427 clauses.
18428 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
18429 DARWIN_NOPIE_SPEC.
18430
18431 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
18432
18433 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
18434 (STARTFILE_SPEC): Split crt3 into a separate spec.
18435 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
18436 (DARWIN_CRT2_SPEC): New.
18437 (DARWIN_CRT3_SPEC): New.
18438 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
18439 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
18440 (DARWIN_CRT3_SPEC): New.
18441
18442 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
18443
18444 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
18445 Change the RTL attribute "length" from "4" to "*" to allow the
18446 length attribute to be adjusted automatically for prefixed load,
18447 store, and add immediate instructions.
18448 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
18449 Likewise.
18450 (extendsi<mode>2, EXTSI iterator): Likewise.
18451 (movsi_internal1): Likewise.
18452 (movsi_from_sf): Likewise.
18453 (movdi_from_sf_zero_ext): Likewise.
18454 (mov<mode>_internal): Likewise.
18455 (movcc_internal1, QHI iterator): Likewise.
18456 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
18457 (movsf_from_si): Likewise.
18458 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
18459 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
18460 (mov<mode>, FMOVE128 iterator): Likewise.
18461 (movdi_internal64): Likewise.
18462 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
18463 Likewise.
18464 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
18465 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
18466 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
18467 (vsx_splat_v4sf): Likewise.
18468
18469 2019-07-03 Mark Wielaard <mark@klomp.org>
18470
18471 PR debug/90981
18472 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
18473 DW_AT_addr_base if there is actually a .debug_addr section with
18474 addresses.
18475 (output_addr_table): Add DWARF5 table header generation here after
18476 checking there are actually any addresses from...
18477 (dwarf2out_finish): ...here.
18478
18479 2019-07-03 Richard Biener <rguenther@suse.de>
18480
18481 PR middle-end/91069
18482 * match.pd (vec_perm -> bit_insert): Fix element read from
18483 first vector.
18484
18485 2019-07-03 Martin Liska <mliska@suse.cz>
18486
18487 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
18488 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
18489 condition.
18490 * generic-match-head.c: Include dbgcnt.h.
18491 * gimple-match-head.c: Likewise.
18492
18493 2019-07-03 Martin Liska <mliska@suse.cz>
18494
18495 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
18496 (GCOV_COUNTER_V_TOPN): New.
18497 (GCOV_COUNTER_V_INDIR): Use _topn.
18498 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
18499 (GCOV_TOPN_VALUES): New.
18500 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
18501 (GCOV_TOPN_VALUES_COUNTERS): New.
18502 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
18503 * tree-profile.c:
18504 (gimple_init_gcov_profiler): Rename variables from one_value
18505 to topn_values.
18506 (gimple_gen_one_value_profiler): Remove.
18507 (gimple_gen_topn_values_profiler): New function.
18508 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
18509 names instead of SINGLE_VALUE.
18510 (stream_out_histogram_value): Likewise.
18511 (stream_in_histogram_value): Likewise.
18512 (get_most_common_single_value): Likewise.
18513 (gimple_divmod_fixed_value_transform): Likewise.
18514 (gimple_stringops_transform): Likewise.
18515 (gimple_divmod_values_to_profile): Likewise.
18516 (gimple_stringops_values_to_profile): Likewise.
18517 (gimple_find_values_to_profile): Likewise.
18518 * value-prof.h (enum hist_type): Rename to TOPN.
18519 (gimple_gen_one_value_profiler): Remove.
18520 (gimple_gen_topn_values_profiler): New.
18521
18522 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
18523
18524 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
18525 if it has the DW_AT_data_member_location attribute.
18526
18527 2019-07-03 Richard Biener <rguenther@suse.de>
18528
18529 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
18530 dumping.
18531
18532 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
18533
18534 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
18535 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
18536 (tlsdesc_small_sve_<mode>): Likewise.
18537
18538 2019-07-03 Martin Liska <mliska@suse.cz>
18539
18540 * Makefile.in: Define ZSTD_LIB.
18541 * common.opt: Adjust compression level
18542 to support also zstd levels.
18543 * config.in: Regenerate.
18544 * configure: Likewise.
18545 * configure.ac: Add --with-zstd and --with-zstd-include options
18546 and detect ZSTD.
18547 * doc/install.texi: Mention zstd dependency.
18548 * gcc.c: Print supported LTO compression algorithms.
18549 * lto-compress.c (lto_normalized_zstd_level): Likewise.
18550 (lto_compression_zstd): Likewise.
18551 (lto_uncompression_zstd): Likewise.
18552 (lto_end_compression): Dispatch in between zlib and zstd.
18553 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
18554 (lto_uncompression_zlib): Make it static.
18555 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
18556 * lto-section-in.c (lto_get_section_data): Pass info
18557 about used compression.
18558 * lto-streamer-out.c: By default use zstd when possible.
18559 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
18560 (TV_IPA_LTO_COMPRESS): Likewise for compression.
18561
18562 2019-07-03 Martin Liska <mliska@suse.cz>
18563
18564 * lto-section-in.c (lto_get_section_data): Add "lto" section.
18565 * lto-section-out.c (lto_destroy_simple_output_block): Never
18566 compress LTO_section_lto section.
18567 * lto-streamer-out.c (produce_asm): Do not set major_version
18568 and minor_version.
18569 (lto_output_toplevel_asms): Likewise.
18570 (produce_lto_section): New function.
18571 (lto_output): Call produce_lto_section.
18572 (lto_write_mode_table): Do not set major_version and
18573 minor_version.
18574 (produce_asm_for_decls): Likewise.
18575 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
18576 type.
18577 (struct lto_header): Remove.
18578 (struct lto_section): New struct.
18579 (struct lto_simple_header): Do not inherit from lto_header.
18580 (struct lto_file_decl_data): Add lto_section_header field.
18581
18582 2019-07-03 Martin Liska <mliska@suse.cz>
18583
18584 * lra-eliminations.c (eliminate_regs_in_insn): Remove
18585 dead assignemts.
18586 * reg-stack.c (check_asm_stack_operands): Likewise.
18587 * tree-ssa-structalias.c (create_function_info_for): Likewise.
18588 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
18589 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
18590 force_expand_binop.
18591
18592 2019-07-03 Martin Liska <mliska@suse.cz>
18593
18594 PR tree-optimization/90892
18595 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
18596 in string constants.
18597
18598 2019-07-03 Martin Liska <mliska@suse.cz>
18599
18600 PR middle-end/90899
18601 * multiple_target.c (create_dispatcher_calls): Add to comdat
18602 group only if set for ifunc.
18603
18604 2019-07-03 Martin Liska <mliska@suse.cz>
18605
18606 PR target/88056
18607 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
18608 Define local_object_name in outer scope in order to handle
18609 use-after-scope issue.
18610
18611 2019-07-03 Martin Liska <mliska@suse.cz>
18612
18613 * common.opt: Add fprofile-note.
18614 * coverage.c (coverage_init): Append the option
18615 to bbg_file_name.
18616 * doc/invoke.texi: Document -fprofile-note.
18617
18618 2019-07-03 Jakub Jelinek <jakub@redhat.com>
18619
18620 PR tree-optimization/91033
18621 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
18622 vect_analyze_data_refs): Add bool * arguments.
18623 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
18624 if failure is due to scatter/gather, set *fatal to false if non-NULL.
18625 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
18626 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
18627 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
18628 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
18629 vect_analyze_data_refs caller.
18630
18631 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
18632 clause.
18633 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
18634 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
18635 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
18636 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18637 OMP_CLAUSE__SCANTEMP_ entry.
18638 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
18639 * tree-pretty-print.c (dump_omp_clause): Likewise.
18640 * tree-nested.c (convert_nonlocal_omp_clauses,
18641 convert_local_omp_clauses): Likewise.
18642 * omp-general.h (struct omp_for_data): Add have_scantemp and
18643 have_nonctrl_scantemp members.
18644 * omp-general.c (omp_extract_for_data): Initialize them.
18645 * omp-low.c (struct omp_context): Add scan_exclusive member.
18646 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
18647 result again with GF_OMP_FOR_KIND_MASK. Initialize also
18648 ctx->scan_exclusive.
18649 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
18650 of !ctx->scan_inclusive.
18651 (lower_rec_input_clauses): Simplify gimplification of dtors using
18652 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
18653 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
18654 loops. Don't add barrier for reduction_omp_orig_ref if
18655 ctx->scan_??xclusive.
18656 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
18657 (lower_omp_scan): Use ctx->scan_exclusive instead
18658 of !ctx->scan_inclusive. Handle worksharing loops with inscan
18659 reductions. Use new_vard != new_var instead of repeated
18660 omp_is_reference calls.
18661 (omp_find_scan, lower_omp_for_scan): New functions.
18662 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
18663 inscan reductions.
18664 * omp-expand.c (expand_omp_scantemp_alloc): New function.
18665 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
18666 and fd->have_scantemp.
18667
18668 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
18669 on worksharing loop propagate it as shared clause to containing
18670 combined parallel.
18671
18672 * omp-expand.c (expand_omp_for_static_nochunk,
18673 expand_omp_for_static_chunk): For nowait worksharing loop with
18674 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
18675 at the end.
18676
18677 2019-07-02 qing zhao <qing.zhao@oracle.com>
18678
18679 PR preprocessor/90581
18680 * doc/cppopts.texi: Add document for -fmax-include-depth.
18681 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
18682
18683 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
18684
18685 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
18686 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
18687 (mmx_packssdw): Ditto.
18688 (mmx_punpckhbw): Ditto.
18689 (mmx_punpcklbw): Ditto.
18690 (mmx_punpckhwd): Ditto.
18691 (mmx_punpcklwd): Ditto.
18692 (mmx_punpckhdq): Ditto.
18693 (mmx_punpckldq): Ditto.
18694 (*vec_dupv4hi): Ditto.
18695 (*vec_dupv2si): Ditto.
18696 (mmx_pmovmskb): Ditto.
18697 * config/i386/sse.md (sse_cvtpi2ps): Use
18698 TARGET_SSE2 && SSE_REG_P in split condition.
18699 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
18700 TARGET_SSSE3 && SSE_REGNO_P in split condition.
18701 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
18702 (ssse3_pshufbv8qi3): Ditto.
18703 (ssse3_palignrdi): Ditto.
18704
18705 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
18706
18707 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
18708 with inlined save and restore.
18709
18710 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
18711
18712 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
18713 to be inserted on single successor edge of the entry block. Then call
18714 commit_edge_insertions instead of inserting the instructions manually.
18715 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
18716 RTL expansion and rebuild jump labels chain.
18717
18718 2019-07-02 Richard Biener <rguenther@suse.de>
18719
18720 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
18721 TI_CHREC_KNOWN.
18722 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
18723 Define here.
18724 * tree.c (build_common_tree_nodes): Initialize them.
18725 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
18726 Make declarations comments.
18727 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
18728 chrec_known): Remove definitions.
18729 (initialize_scalar_evolutions_analyzer): Remove.
18730 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
18731 * tree-streamer.c (preload_common_nodes): Do not preload
18732 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
18733
18734 2019-07-02 Jan Hubicka <jh@suse.cz>
18735
18736 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
18737 sanity check.
18738
18739 2019-07-02 Jan Hubicka <jh@suse.cz>
18740
18741 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
18742 to ..
18743 (nonoverlapping_component_refs_since_match_p): ... this one;
18744 handle also non-decl bases; return -1 if search gave up.
18745 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
18746 nonoverlapping_component_refs_of_decl_p_no_alias to
18747 nonoverlapping_component_refs_since_match_p_may_alias,
18748 nonoverlapping_component_refs_since_match_p_no_alias.
18749 (dump_alias_stats): Update dumping.
18750 (aliasing_matching_component_refs_p): Break out from ...;
18751 dispatch to nonoverlapping_component_refs_for_decl_p
18752 and nonoverlapping_component_refs_since_match_p.
18753 (aliasing_component_refs_p): ... here; call
18754 nonoverlapping_component_refs_p in scenarios where we can not
18755 precisely determine base match.
18756 (decl_refs_may_alias_p): Use
18757 nonoverlapping_component_refs_since_match_p.
18758 (indirect_ref_may_alias_decl_p): Do not call
18759 nonoverlapping_component_refs_p.
18760 (indirect_refs_may_alias_p): Likewise.
18761
18762 2019-07-02 Jan Hubicka <jh@suse.cz>
18763
18764 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
18765 to clobber of return value.
18766
18767 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18768
18769 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
18770 for is_neon_type instructions that have not already been categorized.
18771
18772 2019-07-02 Richard Biener <rguenther@suse.de>
18773
18774 PR tree-optimization/58483
18775 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
18776 for MEM_REF base hashing.
18777 (equal_mem_array_ref_p): Likewise for base comparison.
18778
18779 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18780
18781 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
18782 parameterized name.
18783 (signbit<mode>2): Use that name. Simplify.
18784
18785 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
18786
18787 PR middle-end/66726
18788 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
18789 Tune heuristic from PR71016 to allow MIN / MAX.
18790
18791 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18792
18793 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
18794 parameterized name.
18795 (abs<mode>2): Use that name. Simplify.
18796
18797 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18798
18799 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
18800 parameterized name.
18801 (neg<mode>2): Use that name. Simplify.
18802
18803 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18804
18805 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
18806 name.
18807 (abs<mode>2): Use that name. Simplify.
18808
18809 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18810
18811 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
18812 name.
18813 (neg<mode>2): Use that name. Simplify.
18814
18815 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
18816
18817 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
18818 ("enabled" attribute): Handle sse_noavx isa attribute.
18819 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
18820 Use TARGET_SSE && SSE_REGNO_P in split condition.
18821 (*vec_dupv2sf): Ditto.
18822
18823 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18824
18825 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
18826 name.
18827 (floatsi<mode>2): Use that name. Simplify.
18828
18829 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18830
18831 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
18832 parameterized name.
18833 (extenddf<mode>2_vsx): Make this a parameterized name.
18834 (extenddf<mode>2): Use those names. Simplify.
18835
18836 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18837
18838 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
18839 name.
18840 (eh_return): Use that name. Simplify.
18841
18842 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18843
18844 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
18845 (doloop_end): Use that name. Simplify.
18846
18847 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18848
18849 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
18850 parameterized name.
18851 (indirect_jump): Use that name. Simplify.
18852
18853 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18854
18855 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
18856 parameterized name.
18857 (abs<mode>2): Use that name. Simplify.
18858
18859 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18860
18861 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
18862 parameterized name.
18863 (fix_trunc<mode>si2): Use that name. Simplify.
18864
18865 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18866
18867 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
18868 (allocate_stack): Use that name. Simplify.
18869
18870 2019-07-01 Martin Sebor <msebor@redhat.com>
18871
18872 PR middle-end/90923
18873 * hash-map.h (hash_map::put): On insertion invoke element ctor.
18874 (hash_map::get_or_insert): Same. Reformat comment.
18875 * hash-set.h (hash_set::add): On insertion invoke element ctor.
18876 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
18877 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
18878 * hash-table.h (hash_table::operator=): Prevent copy assignment.
18879 (hash_table::hash_table (const hash_table&)): Use copy ctor
18880 instead of assignment to copy elements.
18881
18882 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
18883 John David Anglin <danglin@gcc.gnu.org>
18884
18885 PR target/90963
18886 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
18887 using saved frame pointer.
18888
18889 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
18890
18891 PR middle-end/64242
18892 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
18893 Add frame clobber and schedule blockage.
18894
18895 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
18896
18897 * doc/invoke.texi (Link Options): Further editorial changes to
18898 -flinker-output docs.
18899
18900 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18901
18902 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
18903 Load both operands of a PLUS into registers separately.
18904
18905 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
18906
18907 * config/s390/vector.md: Fix shift count operand printing.
18908
18909 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
18910
18911 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
18912
18913 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
18914
18915 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
18916 Use recog_data to test for an output operand.
18917
18918 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
18919
18920 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
18921 exclude any others that are disparaged or that are bound to need
18922 a reload or spill.
18923 (ira_get_dup_out_num): Expand comment.
18924
18925 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
18926
18927 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
18928 constraint string for each operand/alternative combo. Only handle
18929 '%' at the start of constraint strings, and look for it outside
18930 the main loop.
18931
18932 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
18933
18934 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
18935 alternative_mask instead of HARD_REG_SET to represent a
18936 bitmask of alternatives.
18937 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18938 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
18939
18940 2019-07-01 Martin Liska <mliska@suse.cz>
18941
18942 * edit-context.c (test_applying_fixits_unreadable_file): Do not
18943 use () for a constructor call.
18944 (test_applying_fixits_line_out_of_range): Likewise.
18945 * ggc-page.c (alloc_page): Use (void *) for %p printf format
18946 argument.
18947 (free_page): Likewise.
18948
18949 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
18950
18951 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
18952 parameter names to match usage (no functional change).
18953 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
18954
18955 2019-07-01 Richard Biener <rguenther@suse.de>
18956
18957 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
18958 pass parameter.
18959 (pass_fre::execute): Honor it.
18960 * passes.def: Adjust pass_fre invocations to allow iterating,
18961 add non-iterating pass_fre before late threading/dom.
18962
18963 2019-07-01 Richard Biener <rguenther@suse.de>
18964
18965 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
18966 TARGET_MEM_REF handling to also handle address-taken ones.
18967
18968 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
18969
18970 * doc/sourcebuild.texi (Effective-Target Keywords, Other
18971 hardware attributes): Document avx512vp2intersect.
18972
18973 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
18974
18975 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
18976 (abs<mode>2): New expander.
18977 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
18978 Use CODE_FOR_ssse3_absv8qi2.
18979 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
18980 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
18981
18982 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
18983
18984 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
18985 to sse, sse_noavx and avx. Update all uses.
18986
18987 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
18988
18989 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
18990 (*mmx_<plusminus_insn><mode>3): Ditto.
18991 (*mmx_mulv4hi3"): Ditto.
18992 (*mmx_smulv4hi3_highpart): Ditto.
18993 (*mmx_umulv4hi3_highpart): Ditto.
18994 (*mmx_pmaddwd): Ditto.
18995 (*sse2_umulv1siv1di3): Ditto.
18996 (*mmx_<code>v4hi3): Ditto.
18997 (*mmx_<code>v8qi3): Ditto.
18998 (mmx_ashr<mode>3): Ditto.
18999 ("mmx_<shift_insn><mode>3): Ditto.
19000 (*mmx_eq<mode>3): Ditto.
19001 (mmx_gt<mode>3): Ditto.
19002 (mmx_andnot<mode>3): Ditto.
19003 (*mmx_<code><mode>3): Ditto.
19004 (*mmx_pinsrw): Ditto.
19005 (*mmx_pextrw): Ditto.
19006 (mmx_pshufw_1): Ditto.
19007 (*mmx_uavgv8qi3): Ditto.
19008 (*mmx_uavgv4hi3): Ditto.
19009 ("mmx_psadbw): Ditto.
19010 * config/i386/sse.md (sse_cvtps2pi): Ditto.
19011 (sse_cvttps2pi): Ditto.
19012 (ssse3_pmaddubsw): Ditto.
19013 (*ssse3_pmulhrswv4hi3): Ditto.
19014 (ssse3_psign<mode>3): Ditto.
19015
19016 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
19017
19018 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
19019 adjustment for bit-fields to all aggregate types.
19020
19021 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
19022
19023 * config/rs6000/predicates.md (pcrel_address): Use
19024 SYMBOL_REF_LOCAL_P to determine if a label is local.
19025 (pcrel_external_address): New predicate.
19026 (non_prefixed_mem_operand): Delete, predicate not used.
19027 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
19028 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
19029 addressing.
19030 (SYMBOL_REF_PCREL_P): Likewise.
19031
19032 PR target/91009
19033 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
19034 alternative.
19035 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
19036 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
19037 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
19038
19039 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
19040
19041 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
19042 override on extra_headers.
19043
19044 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
19045
19046 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
19047 * config/darwin-driver.c (darwin_default_min_version): Remove newline
19048 from warning.
19049 (darwin_driver_init): Likewise.
19050
19051 2019-06-28 Jan Beulich <jbeulich@suse.com>
19052
19053 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
19054 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
19055 Eliminate redundant alternative.
19056
19057 2019-06-28 Jan Beulich <jbeulich@suse.com>
19058
19059 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
19060 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
19061 Use vector_operand.
19062
19063 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
19064
19065 * config/arc/arc.c (arc_rtx_costs): All short instructions are
19066 having a lower cost regardless of the speed option.
19067
19068 2019-06-28 Jan Beulich <jbeulich@suse.com>
19069
19070 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
19071 vector_operand plus, on both alternatives, "Bm" constraint.
19072
19073 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
19074
19075 * config/arm/arm.md: Remove redundant constraints from
19076 define_expand but leave reload_inm and reload_outm patterns
19077 untouched since they need special constraints to work.
19078 * config/arm/arm-fixed.md: Remove redundant constraints from
19079 define_expand.
19080 * config/arm/iwmmxt.md: Likewise.
19081 * config/arm/neon.md: Likewise.
19082 * config/arm/sync.md: Likewise.
19083 * config/arm/thumb1.md: Likewise.
19084 * config/arm/vec-common.md: Likewise.
19085
19086 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
19087
19088 * doc/install.texi: Document --disable-tm-clone-registry.
19089
19090 2019-06-27 Jakub Jelinek <jakub@redhat.com>
19091
19092 PR c++/91024
19093 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
19094 statements.
19095
19096 PR tree-optimization/91010
19097 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
19098 return true. Otherwise, don't call operand_equal_p if offset1 or
19099 offset2 is NULL and just return false.
19100
19101 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
19102
19103 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
19104 user-specified float mode choice for kernel mode code.
19105
19106 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
19107
19108 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
19109 spec.
19110
19111 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
19112
19113 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
19114 use longcall for 64b code.
19115
19116 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
19117
19118 * builtins.c (get_memory_rtx): Fix comment.
19119 * optabs.def (movmem_optab): Change to cpymem_optab.
19120 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
19121 (emit_block_move_hints): Change movmem to cpymem.
19122 * defaults.h: Change movmem to cpymem.
19123 * targhooks.c (get_move_ratio): Change movmem to cpymem.
19124 (default_use_by_pieces_infrastructure_p): Ditto.
19125 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
19126 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
19127 to cpymem.
19128 * config/aarch64/aarch64.h: Change movmem to cpymem.
19129 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
19130 * config/alpha/alpha.h: Change movmem to cpymem in comment.
19131 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
19132 movmem to cpymem.
19133 * config/arc/arc-protos.h: Change movmem to cpymem.
19134 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
19135 * config/arc/arc.h: Change movmem to cpymem in comment.
19136 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
19137 * config/arm/arm-protos.h: Change movmem to cpymem in names.
19138 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
19139 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
19140 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
19141 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
19142 * config/avr/avr-protos.h: Change movmem to cpymem.
19143 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
19144 avr_out_movmem): Change movmem to cpymem.
19145 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
19146 Change movmem to cpymem.
19147 * config/bfin/bfin-protos.h: Change movmem to cpymem.
19148 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
19149 Change movmem to cpymem.
19150 * config/bfin/bfin.h: Change movmem to cpymem in comment.
19151 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
19152 * config/c6x/c6x-protos.h: Change movmem to cpymem.
19153 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
19154 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
19155 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
19156 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
19157 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
19158 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
19159 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
19160 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
19161 expand_small_cpymem_or_setmem,
19162 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
19163 expand_set_or_cpymem_constant_prologue,
19164 ix86_expand_set_or_cpymem): Change movmem to cpymem.
19165 * config/i386/i386-protos.h: Change movmem to cpymem.
19166 * config/i386/i386.h: Change movmem to cpymem in comment.
19167 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
19168 (setmem<mode>): Change expansion function name.
19169 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
19170 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
19171 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
19172 * config/m32c/m32c-protos.h: Change movmem to cpymem.
19173 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
19174 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
19175 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
19176 to cpymem.
19177 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
19178 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
19179 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
19180 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
19181 Change movmem to cpymem.
19182 * config/mips/mips.h: Change movmem to cpymem.
19183 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
19184 * config/nds32/nds32-memory-manipulation.c
19185 (nds32_expand_movmemsi_loop_unknown_size,
19186 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
19187 nds32_expand_movmemsi_unroll,
19188 nds32_expand_movmemsi): Change movmem to cpymem.
19189 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
19190 * config/nds32/nds32-protos.h: Change movmem to cpymem.
19191 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
19192 (pa_adjust_insn_length): Change call to compute_movmem_length.
19193 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
19194 movmemdi, movmemdi_prereload,
19195 movmemdi_postreload): Change movmem to cpymem.
19196 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
19197 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
19198 * config/riscv/riscv.c: Change movmem to cpymem in comment.
19199 * config/riscv/riscv.h: Change movmem to cpymem.
19200 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
19201 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
19202 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
19203 movmem to cpymem.
19204 * config/s390/s390-protos.h: Change movmem to cpymem.
19205 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
19206 s390_expand_insv): Change movmem to cpymem.
19207 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
19208 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
19209 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
19210 * config/sparc/sparc.h: Change movmem to cpymem in comment.
19211 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
19212 for nonexistent function.
19213 * config/vax/vax.h: Change movmem to cpymem in comment.
19214 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
19215 * config/visium/visium.h: Change movmem to cpymem in comment.
19216 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
19217 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
19218 * doc/md.texi: Change movmem to cpymem and update description to match.
19219 * doc/rtl.texi: Change movmem to cpymem.
19220 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
19221 * doc/tm.texi: Regenerate.
19222
19223 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
19224
19225 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
19226 -fvariable-expansion-in-unroller by default.
19227 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
19228 default for Power.
19229
19230 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
19231
19232 Revert
19233 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
19234 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
19235
19236 * config.gcc(rs6000-*-*): Define target_gtfiles.
19237
19238 2019-06-27 Jan Hubicka <jh@suse.cz>
19239
19240 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
19241 (add_type_duplicate): When odr hash is not allocated, to nothing.
19242 (odr_based_tbaa_p): New function.
19243 (set_type_canonical_for_odr_type): New function.
19244 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
19245 set_type_canonical_for_odr_type): New.
19246 * tree.c (gimple_canonical_types_compatible_p): ODR types with
19247 ODR based TBAA are not equivalent to non-ODR types.
19248
19249 2019-06-27 Martin Liska <mliska@suse.cz>
19250
19251 PR tree-optimization/90974
19252 PR rtl-optimization/90975
19253 PR rtl-optimization/90976
19254 PR target/91016
19255 PR tree-optimization/91017
19256 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
19257 unused tmp.
19258 * lra.c (lra_set_insn_recog_data): Remove a leftover from
19259 initial commit of IRA.
19260 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
19261 of op0 and op1.
19262 * tree-vect-loop.c (vect_create_epilog_for_reduction):
19263 Remove unused mode1.
19264 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
19265 to new_stmt_info.
19266
19267 2019-06-27 Jakub Jelinek <jakub@redhat.com>
19268
19269 PR target/90991
19270 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
19271 instead of register_operand for operands[1], add m to its constraints
19272 if operands[2] uses "C" constraint. Ensure in condition that if
19273 operands[2] is not 0, then operands[1] is not a MEM. For last two
19274 alternatives, use unaligned loads instead of aligned if operands[1] is
19275 misaligned_operand.
19276
19277 2019-06-27 Martin Liska <mliska@suse.cz>
19278
19279 * asan.c (asan_emit_allocas_unpoison): Remove obviously
19280 dead assignments.
19281 * bt-load.c (move_btr_def): Likewise.
19282 * builtins.c (expand_builtin_apply_args_1): Likewise.
19283 (expand_builtin_apply): Likewise.
19284 * cfgexpand.c (expand_asm_stmt): Likewise.
19285 (construct_init_block): Likewise.
19286 * cfghooks.c (verify_flow_info): Likewise.
19287 * cfgloopmanip.c (remove_path): Likewise.
19288 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
19289 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
19290 * combine.c (simplify_if_then_else): Likewise.
19291 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
19292 (choose_basereg): Likewise.
19293 (ix86_expand_prologue): Likewise.
19294 (ix86_preferred_output_reload_class): Likewise.
19295 * cselib.c (cselib_record_sets): Likewise.
19296 * df-scan.c (df_scan_alloc): Likewise.
19297 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
19298 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
19299 * emit-rtl.c (try_split): Likewise.
19300 * graphite-scop-detection.c (assign_parameter_index_in_region):
19301 Likewise.
19302 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
19303 * ira-color.c (setup_profitable_hard_regs): Likewise.
19304 * ira.c (rtx_moveable_p): Likewise.
19305 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
19306 * read-rtl.c (read_subst_mapping): Likewise.
19307 * regrename.c (scan_rtx): Likewise.
19308 * reorg.c (fill_slots_from_thread): Likewise.
19309 * tree-inline.c (tree_function_versioning): Likewise.
19310 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
19311 * tree-ssa-sink.c (statement_sink_location): Likewise.
19312 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
19313 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
19314 (vect_create_epilog_for_reduction): Likewise.
19315 * tree.c (build_nonstandard_integer_type): Likewise.
19316
19317 2019-06-27 Richard Biener <rguenther@suse.de>
19318
19319 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
19320
19321 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
19322
19323 PR tree-optimization/89772
19324 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
19325 out-of-bound accesses checking.
19326
19327 2019-06-27 Martin Liska <mliska@suse.cz>
19328
19329 PR tree-optimization/91014
19330 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
19331 when LHS is NULL_TREE.
19332
19333 2019-06-27 Martin Liska <mliska@suse.cz>
19334
19335 * symbol-summary.h (traverse): Pass
19336 argument a to the call of callback.
19337 (gt_ggc_mx): Mark arguments as unused.
19338 (gt_pch_nx): Likewise.
19339
19340 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
19341
19342 PR target/62147
19343 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
19344 finiteness.
19345
19346 2019-06-26 Jeff Law <law@redhat.com>
19347
19348 PR tree-optimization/90883
19349 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
19350 (delete_dead_or_redundant_assignment): Likewise.
19351
19352 PR tree-optimization/90883
19353 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
19354 * tree-ssa-dse.c: Update various comments to distinguish between
19355 dead and redundant stores.
19356 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
19357 (dse_optimize_redundant_stores): New function.
19358 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
19359 Distinguish between dead and redundant calls in dump output. All
19360 callers updated.
19361 (delete_dead_or_redundant_assignment): Similarly for assignments.
19362 (dse_optimize_stmt): Handle _CHK variants. For statements which
19363 store 0 into multiple memory locations, try to prove a subsequent
19364 store is redundant.
19365
19366 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
19367
19368 PR target/89021
19369 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
19370 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
19371
19372 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
19373
19374 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
19375 (branch_islands): New extern.
19376 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
19377 * config/rs6000/rs6000.c: .. here.
19378
19379 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
19380
19381 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
19382 (powerpc*-*-*) ... to here.
19383
19384 2019-06-26 Jeff Law <law@redhat.com>
19385
19386 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
19387 memcpy, memmove and memset builtins.
19388 (maybe_trim_memstar_call): Likewise.
19389
19390 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
19391
19392 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
19393
19394 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
19395
19396 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
19397
19398 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
19399
19400 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
19401 declaration.
19402 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
19403 "static".
19404 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
19405 declaration.
19406
19407 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
19408
19409 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
19410
19411 2019-06-26 Richard Biener <rguenther@suse.de>
19412
19413 PR ipa/90982
19414 * tree-inline.c (remap_ssa_name): Copy SSA range info.
19415
19416 2019-06-26 Richard Biener <rguenther@suse.de>
19417
19418 * lto-streamer.h (lto_bitmap_alloc): Remove.
19419 (lto_bitmap_free): Likewise.
19420 * lto-streamer.c (lto_bitmap_alloc): Remove.
19421 (lto_bitmap_free): Likewise.
19422 (lto_obstack): Likewise.
19423 (lto_obstack_initialized): Likewise.
19424 * lto-streamer-out.c (lto_output): Use own obstack for local
19425 bitmap, free it consistently.
19426
19427 2019-06-26 Jakub Jelinek <jakub@redhat.com>
19428
19429 PR target/90991
19430 * config/i386/sse.md
19431 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
19432 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
19433 insns if operands[2] is misaligned_operand.
19434
19435 2019-06-26 Li Jia He <helijia@linux.ibm.com>
19436
19437 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
19438 TARGET_POWERPC64.
19439 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
19440 to GPR.
19441
19442 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
19443
19444 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
19445
19446 2019-06-26 Martin Liska <mliska@suse.cz>
19447
19448 PR tree-optimization/90973
19449 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
19450 epilogue_cost_vec instead of prologue_cost_vec for
19451 a epilogue cost.
19452
19453 2019-06-26 Martin Liska <mliska@suse.cz>
19454
19455 * bb-reorder.c (connect_better_edge_p): Add missing else
19456 statement in the middle of if-else statements.
19457
19458 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
19459 H.J. Lu <hongjiu.lu@intel.com>
19460 Olga Makhotina <olga.makhotina@intel.com>
19461
19462 * common/config/i386/i386-common.c
19463 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
19464 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
19465 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
19466 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
19467 (ix86_handle_option): Handle -mavx512vp2intersect.
19468 * config/i386/avx512vp2intersectintrin.h: New.
19469 * config/i386/avx512vp2intersectvlintrin.h: New.
19470 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
19471 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
19472 AVX512VP2INTERSECT.
19473 * config/i386/i386-builtin-types.def: Add new types.
19474 * config/i386/i386-builtin.def: Add new builtins.
19475 * config/i386/i386-builtins.c: (enum processor_features): Add
19476 F_AVX512VP2INTERSECT.
19477 (static const _isa_names_table isa_names_table): Ditto.
19478 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19479 __AVX512VP2INTERSECT__.
19480 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
19481 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
19482 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
19483 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
19484 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
19485 * config/i386/i386-options.c (ix86_target_string): Add
19486 -mavx512vp2intersect.
19487 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
19488 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
19489 P2HImode and P2QImode.
19490 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
19491 number for P2QImode and P2HImode.
19492 (ix86_regmode_natural_size): New function.
19493 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
19494 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
19495 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
19496 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
19497 * config/i386/i386.opt: Add -mavx512vp2intersect.
19498 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
19499 avx512vp2intersectvlintrin.h.
19500 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
19501 (define_mode_iterator VI48_AVX512VP2VL): New.
19502 (avx512vp2intersect_2intersect<mode>,
19503 avx512vp2intersect_2intersectv16si): New define_insn patterns.
19504 * config.gcc: Add avx512vp2intersectvlintrin.h and
19505 avx512vp2intersectintrin.h to extra_headers.
19506 * doc/invoke.texi: Document -mavx512vp2intersect.
19507
19508 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
19509
19510 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
19511
19512 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
19513
19514 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
19515 savres_routine_syms, savres_routine_name, morestack_ref,
19516 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
19517 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
19518 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
19519 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
19520 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
19521 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
19522 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
19523 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
19524 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
19525 get_stack_clash_protection_probe_interval,
19526 get_stack_clash_protection_guard_size,
19527 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
19528 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
19529 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
19530 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
19531 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
19532 gen_frame_mem_offset, rs6000_savres_routine_name,
19533 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
19534 ptr_regno_for_savres, rs6000_emit_savres_rtx,
19535 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
19536 rs6000_global_entry_point_prologue_needed_p,
19537 rs6000_get_separate_components, rs6000_components_for_bb,
19538 rs6000_disqualify_components, rs6000_emit_prologue_components,
19539 rs6000_emit_epilogue_components, rs6000_set_handled_components,
19540 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
19541 rs6000_output_savres_externs, rs6000_output_function_prologue,
19542 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
19543 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
19544 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
19545 rs6000_output_function_epilogue, gen_add3_const,
19546 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
19547 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
19548 to rs6000-logue.c.
19549 (machine_function): Moved to rs6000.h.
19550 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
19551 rs6000-internal.h.
19552 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
19553 savres_routine_syms, savres_routine_name, morestack_ref,
19554 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
19555 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
19556 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
19557 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
19558 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
19559 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
19560 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
19561 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
19562 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
19563 get_stack_clash_protection_probe_interval,
19564 get_stack_clash_protection_guard_size,
19565 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
19566 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
19567 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
19568 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
19569 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
19570 gen_frame_mem_offset, rs6000_savres_routine_name,
19571 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
19572 ptr_regno_for_savres, rs6000_emit_savres_rtx,
19573 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
19574 rs6000_global_entry_point_prologue_needed_p,
19575 rs6000_get_separate_components, rs6000_components_for_bb,
19576 rs6000_disqualify_components, rs6000_emit_prologue_components,
19577 rs6000_emit_epilogue_components, rs6000_set_handled_components,
19578 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
19579 rs6000_output_savres_externs, rs6000_output_function_prologue,
19580 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
19581 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
19582 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
19583 rs6000_output_function_epilogue, gen_add3_const,
19584 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
19585 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
19586 to here from rs6000.c.
19587 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
19588 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
19589 quad_address_offset_p) Moved to here from rs6000.c.
19590 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
19591 * config/config.gcc: Add new source file rs6000-logue.c to garbage
19592 collector.
19593
19594 2019-06-25 Martin Liska <mliska@suse.cz>
19595
19596 * hash-table.c (hashtab_chk_error): Move here from ...
19597 * hash-table.h (hashtab_chk_error): ... here.
19598
19599 2019-06-25 Martin Liska <mliska@suse.cz>
19600
19601 PR tree-optimization/90978
19602 * df-scan.c (df_update_entry_block_defs): Remove dead else
19603 branch.
19604 (df_update_exit_block_uses): Likewise.
19605
19606 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
19607 Andrew Stubbs <ams@codesourcery.com>
19608
19609 * config.gcc (thread_file): Set to gcn for AMD GCN.
19610 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
19611 (TARGET_EMUTLS_VAR_INIT): New hook.
19612
19613 2019-06-25 Martin Jambor <mjambor@suse.cz>
19614
19615 PR ipa/90939
19616 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
19617
19618 2019-06-25 Richard Biener <rguenther@suse.de>
19619
19620 PR tree-optimization/90930
19621 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
19622 into parallel form in the last pass instance.
19623
19624 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
19625
19626 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
19627 (arc_legitimize_pic_address): Simplify and cleanup the function.
19628 (SYMBOLIC_CONST): Remove.
19629 (prepare_pic_move): Likewise.
19630 (prepare_move_operands): Handle complex mov cases here.
19631 (arc_legitimize_address_0): Remove call to
19632 arc_legitimize_pic_address.
19633 (arc_legitimize_address): Remove call to
19634 arc_legitimize_tls_address.
19635 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
19636 (movhi_insn): Likewise.
19637
19638 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19639
19640 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
19641 PTRDIFF_TYPE.
19642 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
19643 format of "__intN" types for UINTMAX_TYPE.
19644 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
19645 format of "__intN" types for SIZETYPE.
19646 * tree.c (build_common_tree_nodes): Accept "__intN__"
19647 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
19648 * doc/invoke.texi: Document that __intN__ disables pedantic
19649 warnings.
19650
19651 2019-06-25 Jan Hubicka <jh@suse.cz>
19652
19653 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
19654 base2_alias_set is non-zero before doing TBAA based disambiguation.
19655
19656 2019-06-25 Martin Liska <mliska@suse.cz>
19657
19658 PR tree-optimization/90973
19659 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
19660 of prologue and epilogue.
19661
19662 2019-06-24 Jan Hubicka <jh@suse.cz>
19663
19664 * ipa-utils.h (type_with_linkage_p): Verify that type is
19665 CXX_ODR_P.
19666 (odr_type_p): Remove extra return.
19667 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
19668 hash STRING_FLAG only for arrays and integers.
19669 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
19670 Update analogously.
19671 * tree-streamer-out.c (pack_ts_type_common_value_fields):
19672 Likewise.
19673 * print-tree.c (print_node): Print cxx-odr-p
19674 and string-flag.
19675 * tree.c (need_assembler_name_p): Also check that type
19676 is CXX_ODR_TYPE_P
19677 (verify_type_variant): Update verification of SRING_FLAG;
19678 also check CXX_ODR_P.
19679 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
19680 (TYPE_STRING_FLAG): Use it.
19681 (TYPE_CXX_ODR_P): New macro.
19682 * dwarf2out.c (gen_array_type_die): First check that type
19683 is an array and then test string flag.
19684
19685 2019-06-24 Richard Biener <rguenther@suse.de>
19686
19687 PR tree-optimization/90972
19688 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
19689 in common code, dealing with STRING_CST properly.
19690
19691 2019-06-24 Richard Biener <rguenther@suse.de>
19692
19693 PR tree-optimization/90930
19694 PR tree-optimization/90316
19695 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
19696 decrement of limit.
19697
19698 2019-06-24 Martin Sebor <msebor@redhat.com>
19699
19700 * tree-pretty-print.h: Remove unnecessary punctuation characters
19701 from a diagnostic.
19702 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
19703
19704 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
19705
19706 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
19707 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
19708 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
19709
19710 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
19711
19712 * config/rs6000/darwin.h: Handle GCC target pragma.
19713
19714 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
19715
19716 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
19717
19718 2019-06-22 Jeff Law <law@redhat.com>
19719
19720 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
19721
19722 2019-06-22 Jan Hubicka <jh@suse.cz>
19723
19724 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
19725 give up on bitfields; continue searching for different refs
19726 appearing later.
19727
19728 2019-06-21 Jakub Jelinek <jakub@redhat.com>
19729
19730 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
19731 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
19732 containing the offset as possible simd lane access. Look through
19733 widening conversion. Move the
19734 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
19735
19736 2019-06-21 Richard Biener <rguenther@suse.de>
19737
19738 PR tree-optimization/90930
19739 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
19740 flag on new stmts to avoid re-processing them.
19741
19742 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
19743
19744 PR c++/90875 - added -Wswitch-outside-range option
19745 * doc/invoke.texi (Wswitch-outside-range): Document.
19746
19747 2019-06-21 Jeff Law <law@redhat.com>
19748
19749 PR tree-optimization/90949
19750 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
19751 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
19752
19753 2019-06-21 Richard Biener <rguenther@suse.de>
19754
19755 PR debug/90914
19756 * dwarf2out.c (prune_unused_types_walk): Always consider
19757 function-local extern declarations as used.
19758
19759 2019-06-21 Richard Biener <rguenther@suse.de>
19760
19761 PR tree-optimization/90913
19762 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
19763 the scalar variant of if-conversion versioning.
19764
19765 2019-06-21 Jakub Jelinek <jakub@redhat.com>
19766
19767 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
19768 create another "omp scan inscan exclusive" array if
19769 !ctx->scan_inclusive.
19770 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
19771 (lower_omp_scan): Likewise.
19772 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
19773 2-bit bitfield for simd_lane_access_p member.
19774 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
19775 aux == (void *)-4 as simd lane access.
19776 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
19777 comment with permutations to show the canonical permutation order.
19778 (vectorizable_scan_store): Handle exclusive scan.
19779 (vectorizable_store): Call vectorizable_scan_store even for
19780 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
19781
19782 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
19783 "omp simd array" arrays with one byte elements.
19784
19785 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
19786
19787 * config/alpha/alpha.md (@unaligned_store<mode>):
19788 Rename from unaligned_store<mode>.
19789 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
19790 * config/alpha/sync.md (@load_locked_<mode>): Rename
19791 from load_locked_<mode>.
19792 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
19793 (@atomic_compare_and_swap<mode>_1): Rename
19794 from atomic_compare_and_swap<mode>_1.
19795 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
19796 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
19797 Use gen_reload_in_aligned and gen_unaligned_store.
19798 (emit_load_locked): Remove.
19799 (emit_store_conditional): Ditto.
19800 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
19801 (alpha_split_compare_and_swap): Ditto.
19802 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
19803 (alpha_split_compare_and_swap_12): Use gen_load_locked
19804 and gen_store_conditional.
19805 (alpha_split_atomic_exchange): Ditto.
19806 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
19807 (alpha_split_atomic_exchange_12): Use gen_load_locked
19808 and gen_store_conditional.
19809
19810 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
19811
19812 * config/aarch64/aarch64-errata.h: New file.
19813 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
19814 (CA53_ERR_843419_SPEC): Delete.
19815 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
19816 * config/aarch64/aarch64-linux.h: Likewise.
19817 * config/aarch64/aarch64-netbsd.h: Likewise.
19818 * config/aarch64/aarch64-freebsd.h: Likewise.
19819
19820 2019-06-20 Marek Polacek <polacek@redhat.com>
19821
19822 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
19823
19824 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
19825
19826 * config/rs6000/rs6000.md (isa attribute): Add support for
19827 for a future processor.
19828
19829 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
19830
19831 PR target/54855
19832 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
19833 standard scalar operation pattern for V2DF.
19834 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
19835 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
19836 (*ieee_<ieee_maxmin><mode>3): Likewise.
19837 (vec_setv2df_0): Likewise.
19838
19839 2019-06-20 Jan Hubicka <jh@suse.cz>
19840
19841 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
19842 parameter; it has no use in gimple memory model.
19843 (indirect_ref_may_alias_decl_p): Update.
19844
19845 2019-06-20 Martin Liska <mliska@suse.cz>
19846
19847 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
19848 to 10.
19849
19850 2019-06-20 Jakub Jelinek <jakub@redhat.com>
19851
19852 * tree-vect-stmts.c (enum scan_store_kind): New type.
19853 (scan_store_can_perm_p): Change last argument from int * to
19854 vec<enum scan_store_kind> *, record precisely which permutations
19855 need whole vector left shift or that plus VEC_COND_EXPR.
19856 (vectorizable_scan_store): Adjust caller, use whole vector left shift
19857 and additional VEC_COND_EXPR only for those iterations that need it.
19858
19859 2019-06-20 Alexandre Oliva <oliva@adacore.com>
19860
19861 * config.gcc: Fix ARM --with-fpu checking and error message.
19862
19863 2019-06-19 Marek Polacek <polacek@redhat.com>
19864
19865 PR c++/60364 - noreturn after first decl not diagnosed.
19866 * attribs.c (get_attribute_namespace): No longer static.
19867 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
19868 attributes.
19869 (attr_noreturn_exclusions): Make it extern.
19870 * attribs.h (get_attribute_namespace): Declare.
19871 * tree-inline.c (function_attribute_inlinable_p): Use
19872 get_attribute_name.
19873
19874 2019-06-19 Martin Sebor <msebor@redhat.com>
19875
19876 PR tree-optimization/90626
19877 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
19878
19879 PR tree-optimization/90626
19880 * tree-ssa-strlen.c (strxcmp_unequal): New function.
19881 (handle_builtin_string_cmp): Call it.
19882
19883 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
19884
19885 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
19886 and DARWIN_NOPIE_SPEC.
19887 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
19888 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
19889 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
19890 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
19891 (DARWIN_EXPORT_DYNAMIC): Delete.
19892 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
19893 and pie options processing to darwin.h.
19894 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
19895
19896 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
19897
19898 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
19899 in computing the number of options to be moved.
19900
19901 2019-06-19 Maya Rashish <coypu@sdf.org>
19902
19903 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
19904 (CLEAR_INSN_CACHE) Use it.
19905
19906 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
19907
19908 * config/i386/i386.md (cmpstrnsi): Remove dead code.
19909
19910 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
19911
19912 PR middle-end/84521
19913 * builtins.c (expand_builtin_setjmp_setup): Save
19914 hard_frame_pointer_rtx.
19915 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
19916 restore fp.
19917 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
19918 non-local goto.
19919 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
19920 elimination code.
19921 (remove_reg_equal_offset_note): Remove unused function.
19922 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
19923 code.
19924 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
19925 (arc_builtin_setjmp_frame_value): Remove function.
19926 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
19927 (avr_builtin_setjmp_frame_value): Remove function.
19928 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
19929 (ix86_builtin_setjmp_frame_value): Remove function.
19930 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
19931 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
19932 (sparc_builtin_setjmp_frame_value): Remove function.
19933 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
19934 (vax_builtin_setjmp_frame_value): Remove function.
19935 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
19936 pointer if has_nonlocal_label.
19937
19938 2019-06-19 Jakub Jelinek <jakub@redhat.com>
19939
19940 * doc/md.texi: Document vec_shl_<mode> pattern.
19941 * optabs.def (vec_shl_optab): New optab.
19942 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
19943 argument, if == vec_shl_optab, check for left whole vector shift
19944 pattern rather than right shift.
19945 (expand_vec_perm_const): Add vec_shl_optab support.
19946 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
19947 in the comment.
19948 * tree-vect-generic.c (lower_vec_perm): Support permutations which
19949 can be handled by vec_shl_optab.
19950 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
19951 (check_scan_store): Use it.
19952 (vectorizable_scan_store): If target can't do normal permutations,
19953 try to use whole vector left shifts and if needed a VEC_COND_EXPR
19954 after it.
19955 * config/i386/sse.md (vec_shl_<mode>): New expander.
19956
19957 * omp-low.c (lower_rec_input_clauses): Handle references properly
19958 in inscan clauses.
19959 (lower_omp_scan): Likewise.
19960
19961 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
19962
19963 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
19964 mem_mode is BLKmode.
19965
19966 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
19967
19968 PR target/90922
19969 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
19970 pointer adjustment for the case of no callee-saved registers and
19971 stack frame bigger than 128 bytes.
19972
19973 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
19974
19975 PR middle-end/90862
19976 * omp-low.c (check_omp_nesting_restrictions): Handle
19977 GF_OMP_TARGET_KIND_OACC_DECLARE.
19978
19979 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
19980
19981 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
19982 (@add<mode>3_carry): Rename from add<mode>3_carry.
19983 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
19984 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
19985 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
19986 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
19987 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
19988 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
19989 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
19990 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
19991 (cmpstrnsi): Use gen_cmp_1.
19992 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
19993 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
19994 (@umonitor_<mode>): Rename from umonitor_<mode>.
19995 * config/i386/i386-expand.c (ix86_expand_copysign):
19996 Use gen_copysign3_const and gen_copysign3_var.
19997 (ix86_expand_xorsign): Use gen_xorsign3_1.
19998 (ix86_expand_branch): Use gen_sub3_carry_ccc,
19999 gen_sub3_carry_ccgz and gen_cmp1.
20000 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
20001 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
20002 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
20003 (ix86_split_lshr): Ditto.
20004 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
20005
20006 2019-06-18 Jason Merrill <jason@redhat.com>
20007
20008 * tree.c (build_constructor): Add MEM_STAT_DECL.
20009
20010 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20011
20012 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
20013 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
20014 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
20015 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
20016 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
20017 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
20018 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
20019 Use CC_NZC instead of CC.
20020 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
20021 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
20022 (aarch64_print_operand): Handle E_CC_NZCmode.
20023 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
20024 of gen_set_clobber_cc.
20025
20026 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20027
20028 * config/aarch64/aarch64-sve.md: Tabify file.
20029
20030 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20031
20032 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
20033 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
20034 * config/aarch64/aarch64-sve.md: Use it.
20035
20036 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20037
20038 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
20039 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
20040 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
20041 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
20042 (aarch64_expand_sve_vec_cmp_int): Use it.
20043 (aarch64_expand_sve_vec_cmp_float): Likewise.
20044 * config/aarch64/aarch64-sve.md: Likewise throughout.
20045
20046 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20047 Kugan Vivekanandarajah <kuganv@linaro.org>
20048
20049 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
20050 (*cond_<optab><mode>_z): Fold into...
20051 (*cond_<optab><mode>_any): ...here. Also handle cases in which
20052 operand 4 can be tied to operand 0 (either inherently or via RA).
20053
20054 2019-06-18 Richard Biener <rguenther@suse.de>
20055
20056 PR debug/90900
20057 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
20058 as if optimized away.
20059
20060 2019-06-18 Tom de Vries <tdevries@suse.de>
20061
20062 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
20063 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
20064 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
20065 Rename to ...
20066 (define_insn "@set_softstack_<mode>"): ... this.
20067 (define_insn "omp_simt_enter_<mode>"): Rename to ...
20068 (define_insn "@omp_simt_enter_<mode>"): ... this.
20069 (define_insn "omp_simt_exit_<mode>"): Rename to ...
20070 (define_insn "@omp_simt_exit_<mode>"): ... this.
20071
20072 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20073
20074 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
20075 vf parameter. Restore the previous iv step of nscalars_step,
20076 but give it iv_type rather than compare_type. Tweak code order
20077 to match the comments.
20078 (vect_set_loop_condition_masked): Update accordingly.
20079 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
20080 for iv_precision. Tweak comment formatting.
20081
20082 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
20083
20084 * config/darwin.c: Strip trailing whitespace.
20085
20086 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
20087
20088 * config/darwin.c (darwin_emit_unwind_label): New default to false.
20089 (darwin_override_options): Set darwin_emit_unwind_label as needed.
20090
20091 2019-06-18 Martin Jambor <mjambor@suse.cz>
20092
20093 PR ipa/90889
20094 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
20095 caller does not have flag_ipa_cp set.
20096
20097 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20098
20099 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
20100 from "*fold_left_plus_<mode>", updated operands order.
20101 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
20102 * internal-fn.c (mask_fold_left_direct): New define.
20103 (expand_mask_fold_left_optab_fn): Likewise.
20104 (direct_mask_fold_left_optab_supported_p): Likewise.
20105 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
20106 * optabs.def (mask_fold_left_plus_optab): New optab.
20107 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
20108 masked internal_fn for a reduction ifn.
20109 (vectorize_fold_left_reduction): Add support for masking reductions.
20110
20111 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
20112
20113 PR middle-end/80791
20114 * target.def (predict_doloop_p): New hook.
20115 * targhooks.h (default_predict_doloop_p): New declaration.
20116 * targhooks.c (default_predict_doloop_p): New function.
20117 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
20118 * doc/tm.texi: Regenerate.
20119 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
20120 (TARGET_PREDICT_DOLOOP_P): New macro.
20121 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
20122
20123 2019-06-17 Jakub Jelinek <jakub@redhat.com>
20124
20125 * omp-low.c (struct omp_context): Add scan_inclusive field.
20126 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
20127 if inclusive scan.
20128 (struct omplow_simd_context): Add lastlane member.
20129 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
20130 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
20131 1 or 2 argument.
20132 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
20133 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
20134 (lower_omp_scan): New function.
20135 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
20136 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
20137 check 3rd argument if present rather than 2nd.
20138 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
20139 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
20140 2-bit bitfield.
20141 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
20142 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
20143 than 2nd.
20144 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
20145 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
20146 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
20147 init.
20148 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
20149 IFN_GOMP_SIMD_LANE argument.
20150 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
20151 encoded ->aux value.
20152 * tree-vect-stmts.c: Include attribs.h.
20153 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
20154 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
20155 functions.
20156 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
20157 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
20158
20159 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
20160
20161 PR target/62055
20162 * config/i386/i386.md (*nabstf2_1): New insn pattern.
20163 (*nabs<mode>2_1): Ditto.
20164 (nabs sse-reg splitter): New splitter.
20165 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
20166
20167 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
20168
20169 PR bootstrap/90873.
20170 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
20171 TMR index check.
20172
20173 2019-06-17 Tom de Vries <tdevries@suse.de>
20174
20175 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
20176 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
20177 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
20178 ...
20179 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
20180 match_operand 0.
20181 (define_insn "omp_simt_enter_insn"): Rename to ...
20182 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
20183 match_operand 0, 1 and 2, as well as the unspec_volatile result.
20184 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
20185 gen_omp_simt_enter_si.
20186 (define_expand "omp_simt_exit"): New.
20187 (define_insn "omp_simt_exit"): Rename to ...
20188 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
20189 match_operand 0.
20190
20191 2019-06-17 Matthew Green <mrg@eterna.com.au>
20192 Maya Rashish <coypu@sdf.org>
20193
20194 * config.gcc (aarch64*-*-netbsd*): New target.
20195 * config/aarch64/aarch64-netbsd.h: New file.
20196 * config/aarch64/t-aarch64-netbsd: Likewise.
20197
20198 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
20199
20200 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
20201 the access path from base to first VIEW_CONVERT_EXPR or
20202 BIT_FIELD_REF.
20203
20204 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
20205
20206 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
20207 access path on BIT_FIELD_REFs.
20208
20209 2019-06-17 Martin Liska <mliska@suse.cz>
20210
20211 PR ipa/90874
20212 * ipa-utils.h (odr_type_p): Remove dead code.
20213
20214 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20215
20216 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
20217 alternative Solaris 11.4 format.
20218 * configure: Regenerate.
20219
20220 2019-06-17 Tom de Vries <tdevries@suse.de>
20221
20222 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
20223 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
20224 match_operand 0.
20225 (define_insn "call_value_insn"): Rename to ...
20226 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
20227 match_operand 0.
20228 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
20229 DI.
20230
20231 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
20232
20233 PR middle-end/64242
20234 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
20235 frame clobbers and schedule block.
20236 (builtin_longjmp): Likewise.
20237
20238 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20239
20240 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
20241 describe how to perform MSPABI compliant 64-bit shift.
20242 * config/msp430/msp430.md (ashldi3): New define_expand.
20243 (ashrdi3): New define_expand.
20244 (lshrdi3): New define_expand.
20245
20246 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20247
20248 * doc/sourcebuild.texi: Document new effective target keyword
20249 longlong64.
20250
20251 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
20252
20253 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
20254 indirect_refs_may_alias_p): Revert accidental commits.
20255
20256 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
20257 at the end of structures.
20258
20259 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
20260
20261 * config/darwin.c (machopic_indirect_call_target): Use renamed
20262 darwin_picsymbol_stubs to decide on output.
20263 (darwin_override_options): Handle darwin_picsymbol_stubs.
20264 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
20265 (LD64_VERSION): Revise default.
20266 * config/darwin.opt: (mpic-symbol-stubs): New option.
20267 (darwin_picsymbol_stubs): New variable.
20268 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
20269 rename to TARGET_MACHO_PICSYM_STUBS.
20270 * config/i386/i386.c (output_pic_addr_const): Likewise.
20271 * config/i386/i386.h Likewise.
20272 * config/rs6000/darwin.h: Likewise.
20273 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
20274 darwin_picsymbol_stubs.
20275
20276 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
20277
20278 * config/darwin.opt (prebind, noprebind, seglinkedit,
20279 noseglinkedit): Add RejectNegative.
20280
20281 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
20282
20283 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
20284 in my previous patch.
20285
20286 2019-06-16 Tom de Vries <tdevries@suse.de>
20287
20288 PR tree-optimization/89376
20289 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
20290
20291 2019-06-15 Maya Rashish <coypu@sdf.org>
20292
20293 * doc/invoke.texi (Spec Files): Update location of the
20294 Fortran spec file.
20295
20296 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
20297
20298 * doc/extend.texi (Common Function Attributes): Clarify
20299 no_sanitize. Fix grammar.
20300
20301 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
20302
20303 * tree-ssa-alias.c (alias_stats): Add
20304 nonoverlapping_component_refs_p_may_alias,
20305 nonoverlapping_component_refs_p_no_alias,
20306 nonoverlapping_component_refs_of_decl_p_may_alias,
20307 nonoverlapping_component_refs_of_decl_p_no_alias.
20308 (dump_alias_stats): Dump them.
20309 (nonoverlapping_component_refs_of_decl_p): Add stats.
20310 (nonoverlapping_component_refs_p): Add stats; do not stop on first
20311 ARRAY_REF.
20312
20313 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
20314
20315 * config/i386/i386.md (and<mode>3): Generate zero-extends for
20316 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
20317 only.
20318 (*anddi3_doubleword): Split before reload. Merge with
20319 anddi->zext pre-reload splitter.
20320 (*andndi3_doubleword): Split before reload.
20321 (*<code>di3_doubleword): Ditto.
20322 (*one_cmpldi2_doubleword): Ditto.
20323
20324 2019-06-15 Jakub Jelinek <jakub@redhat.com>
20325
20326 PR middle-end/90779
20327 * gimplify.c: Include omp-offload.h and context.h.
20328 (gimplify_bind_expr): Add "omp declare target" attributes
20329 to static block scope variables inside of target region or target
20330 functions.
20331
20332 2019-06-15 Tom de Vries <tdevries@suse.de>
20333
20334 PR tree-optimization/90009
20335 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
20336 Return NULL if bb contains IFN_UNIQUE.
20337
20338 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
20339
20340 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
20341 (un): New define_mode_attr.
20342 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
20343 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
20344 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
20345 merge into ...
20346 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
20347
20348 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
20349
20350 * config/darwin.opt: Add RejectNegative where needed, reorder
20351 and add minimal functional descriptions.
20352
20353 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
20354
20355 PR rtl-optimization/90765
20356 * calls.c (update_stack_alignment_for_call): New function.
20357 (expand_call): Call update_stack_alignment_for_call when
20358 outgoing parameter is passed in the stack.
20359 (emit_library_call_value_1): Likewise.
20360 * function.c (locate_and_pad_parm): Don't update
20361 stack_alignment_needed and preferred_stack_boundary.
20362
20363 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
20364
20365 PR target/90877
20366 * config/i386/i386-features.c
20367 (dimode_scalar_chain::compute_convert_gain): Replace
20368 mmxsse_to_integer with sse_to_integer.
20369 * config/i386/i386.c (ix86_register_move_cost): Verify that
20370 moves between MMX and non-MMX units require secondary memory.
20371 Correct costs of moves between SSE and integer units.
20372 * config/i386/i386.h (processor_costs): Rename cost of moving
20373 SSE register to integer to sse_to_integer. Rename cost of
20374
20375 2019-06-14 Matt Thomas <matt@3am-software.com>
20376 Matthew Green <mrg@eterna.com.au>
20377 Nick Hudson <skrll@netbsd.org>
20378 Maya Rashish <coypu@sdf.org>
20379 Richard Earnshaw <rearnsha@arm.com>
20380
20381 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
20382 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
20383 * config/arm/netbsd-eabi.h: New file.
20384 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
20385 redefining.
20386 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
20387 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
20388 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
20389 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
20390
20391 2019-06-14 Richard Biener <rguenther@suse.de>
20392
20393 * tree-loop-distribution.c (classify_partition): Return
20394 whether a reduction appeared in all partitions and do not
20395 stop builtin detection because of this.
20396 (distribute_loop): Sort a non-builtin partition last if
20397 there's a reduction in all partitions and make sure the
20398 partition prevailing as last is not a builtin.
20399
20400 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
20401
20402 PR ipa/90401
20403 * ipa-prop.c (add_to_agg_contents_list): New function.
20404 (clobber_by_agg_contents_list_p): Likewise.
20405 (extract_mem_content): Likewise.
20406 (get_place_in_agg_contents_list): Delete.
20407 (determine_known_aggregate_parts): Renamed from
20408 determine_locally_known_aggregate_parts. New parameter
20409 aa_walk_budget_p.
20410
20411 2019-06-13 Martin Sebor <msebor@redhat.com>
20412
20413 PR tree-optimization/90662
20414 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
20415 to the same type.
20416
20417 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
20418
20419 PR bootstrap/90873
20420 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
20421 dbase is not TARGET_MEM_REF.
20422
20423 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
20424
20425 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
20426 Update all uses.
20427 (and<mode>3): Use gen_extend_insn instead of indirect functions.
20428 Do not generate DImode extends for 32bit targets.
20429 (and->zext post-reload splitter): Use gen_extend_insn
20430 instead of indirect functions.
20431 (anddi->zext pre-reload splitter): New.
20432 (*zext<mode>_doubleword_and): Remove.
20433 (*zext<mode>_doubleword): Ditto.
20434 (*zextsi_doubleword): Dittto.
20435
20436 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
20437
20438 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
20439 Use gen_sub3_insn instead of indirect function.
20440 (ix86_expand_ashl_const): Use gen_add2_insn instead of
20441 indirect function.
20442 (ix86_adjust_counter): Ditto.
20443
20444 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
20445 Lijia He <helijia@linux.ibm.com>
20446
20447 PR tree-optimization/77820
20448 * tree-ssa-threadedge.c
20449 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
20450 function.
20451 (thread_across_edge): Add call to
20452 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
20453
20454 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
20455
20456 * config/darwin-driver.c (validate_macosx_version_min): New.
20457 (darwin_default_min_version): Cleanup and validate supplied version.
20458 (darwin_driver_init): Likewise and push cleaned version into opts.
20459
20460 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
20461
20462 PR tree-optimization/90869
20463 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
20464 converts in MEM_REF referencing decl rather than view converts
20465 from decl type to MEM_REF type.
20466
20467 2019-06-13 Richard Biener <rguenther@suse.de>
20468
20469 PR tree-optimization/90856
20470 * tree-sra.c (build_ref_for_model): Only use
20471 build_reconstructed_reference when address-spaces are the same.
20472
20473 2019-06-13 Jakub Jelinek <jakub@redhat.com>
20474
20475 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
20476 wrap ei variable name in the declaration in ()s.
20477 (nvptx_single): Actually use mode_label variable. Formatting fix.
20478
20479 2019-06-13 Richard Biener <rguenther@suse.de>
20480
20481 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
20482 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
20483 also return the condition stmt.
20484 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
20485 loop we can version and version that, reusing the loop version
20486 created by if-conversion instead of versioning again.
20487
20488 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
20489
20490 * gimple-loop-versioning.cc (prune_loop_conditions): Use
20491 may_contain_p.
20492 * tree-vrp (value_range_base::may_contain_p): Call into
20493 value_inside_range.
20494 (value_inside_range): Make private inside value_range_base class.
20495 Take min/max from *this.
20496 (range_includes_p): Remove.
20497 * tree-vrp.h (value_range_base): Add value_inside_range.
20498 (range_includes_p): Remove.
20499 (range_includes_zero_p): Call may_contain_p.
20500 * vr-values.c (compare_range_with_value): Same.
20501
20502 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
20503
20504 * doc/extend.texi (ARC Function Attributes): Update info.
20505
20506 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
20507
20508 PR tree-optimization/89713
20509 * doc/invoke.texi (-ffinite-loops): Document new option.
20510 * common.opt (-ffinite-loops): New option.
20511 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
20512 IFN_GOACC_LOOP calls as necessary.
20513 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
20514 is finite.
20515 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
20516 IFN_GOACC_LOOP call is not used.
20517 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
20518
20519 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20520
20521 PR target/88838
20522 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
20523 compare_type is not with Pmode size, we will create an IV with
20524 Pmode size with truncated use (i.e. converted to the correct type).
20525 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
20526 (vect_iv_limit_for_full_masking): New. Factored out of
20527 vect_set_loop_condition_masked.
20528 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
20529 (vect_iv_limit_for_full_masking): Declare.
20530
20531 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20532
20533 PR target/88834
20534 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
20535 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
20536 (get_alias_ptr_type_for_ptr_address): Likewise.
20537 (add_iv_candidate_for_use): Add scaled index candidate if useful.
20538 * tree-ssa-address.c (preferred_mem_scale_factor): New.
20539 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
20540 allow_reg_index_p.
20541
20542 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20543
20544 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
20545
20546 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
20547
20548 * common/config/pru/pru-common.c: New file.
20549 * config.gcc: Add PRU target.
20550 * config/pru/alu-zext.md: New file.
20551 * config/pru/constraints.md: New file.
20552 * config/pru/predicates.md: New file.
20553 * config/pru/pru-opts.h: New file.
20554 * config/pru/pru-passes.c: New file.
20555 * config/pru/pru-pragma.c: New file.
20556 * config/pru/pru-protos.h: New file.
20557 * config/pru/pru.c: New file.
20558 * config/pru/pru.h: New file.
20559 * config/pru/pru.md: New file.
20560 * config/pru/pru.opt: New file.
20561 * config/pru/t-pru: New file.
20562 * doc/extend.texi: Document PRU pragmas.
20563 * doc/invoke.texi: Document PRU-specific options.
20564 * doc/md.texi: Document PRU asm constraints.
20565
20566 2019-06-12 Martin Sebor <msebor@redhat.com>
20567
20568 PR middle-end/90676
20569 * tree-pretty-print.c (dump_mem_ref): New function. Include
20570 MEM_REF type in output when different size than operand.
20571 (dump_generic_node): Move code to dump_mem_ref and call it.
20572
20573 2019-06-12 Martin Sebor <msebor@redhat.com>
20574
20575 PR tree-optimization/90662
20576 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
20577 to arrays.
20578
20579 2019-06-12 Tom de Vries <tdevries@suse.de>
20580
20581 PR tree-optimization/90009
20582 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
20583
20584 2019-06-12 Martin Liska <mliska@suse.cz>
20585
20586 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
20587 the created map.
20588 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
20589 * mem-stats.h (mem_alloc_description::mem_alloc_description):
20590 Do not sanitize created maps.
20591
20592 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
20593
20594 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
20595 value_range::singleton_p.
20596 * tree-vrp.c (value_range_constant_singleton): Remove.
20597 * tree-vrp.h (value_range_constant_singleton): Remove.
20598 * vr-values.c (vr_values::singleton): Use
20599 value_range::singleton_p.
20600
20601 2019-06-12 Jakub Jelinek <jakub@redhat.com>
20602
20603 PR target/90811
20604 * cfgexpand.c (align_local_variable): Add really_expand argument,
20605 don't SET_DECL_ALIGN if it is false.
20606 (add_stack_var): Add really_expand argument, pass it through to
20607 align_local_variable.
20608 (expand_one_stack_var_1): Pass true as really_expand to
20609 align_local_variable.
20610 (expand_one_ssa_partition): Pass true as really_expand to
20611 add_stack_var.
20612 (expand_one_var): Pass really_expand through to add_stack_var.
20613
20614 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
20615
20616 * config/arm/iterators.md (VABAL): New int iterator.
20617 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
20618 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
20619 UNSPEC_VABAL_U values.
20620
20621 2019-06-12 Martin Liska <mliska@suse.cz>
20622
20623 * value-prof.c (stream_out_histogram_value): Only first value
20624 can't be negative.
20625
20626 2019-06-12 Jakub Jelinek <jakub@redhat.com>
20627
20628 PR c/90760
20629 * symtab.c (symtab_node::set_section): Allow being called on aliases
20630 as long as they aren't analyzed yet.
20631
20632 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
20633
20634 * config/mips/mips.c (mips_final_postscan_insn): Modify call
20635 to `mips_set_text_contents_type' to indicate whether a
20636 non-debug insn follows.
20637
20638 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
20639
20640 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
20641 enabling -mpcrel by default.
20642 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
20643 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
20644 that the test against -mcpu=future is done first. Then test if
20645 -mprefixed-addr is on for -mpcrel.
20646 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
20647
20648 2019-06-11 Jakub Jelinek <jakub@redhat.com>
20649
20650 PR target/90811
20651 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
20652 instead of and.u%d.
20653
20654 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
20655
20656 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
20657
20658 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
20659
20660 PR c++/90449 - add -Winaccessible-base option.
20661 * doc/invoke.texi (Winaccessible-base): Document.
20662
20663 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
20664
20665 PR tree-optimization/62041
20666 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
20667
20668 2019-06-11 Jason Merrill <jason@redhat.com>
20669
20670 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
20671 * tree.c (get_tree_code_name): Likewise.
20672 * print-tree.c (print_node): Only briefly print a node with an
20673 invalid code.
20674
20675 2019-06-11 Jakub Jelinek <jakub@redhat.com>
20676
20677 PR bootstrap/90819
20678 * trans-mem.c (tm_memopt_compute_available): Add assertion
20679 that blocks is not empty. Formatting fix.
20680
20681 2019-06-11 Martin Liska <mliska@suse.cz>
20682
20683 PR c++/87847
20684 * hash-table.h: Extend create_gcc, add one parameter
20685 that is passed into hash_table::hash_table.
20686
20687 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
20688
20689 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
20690 New prototype.
20691 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
20692 Emit clobber also for non-sse operations.
20693 (ix86_split_fp_absneg_operator): New function.
20694 * config/i386/i386.md (SSEMODEF): New mode iterator.
20695 (ssevecmodef): New mode attribute.
20696 (<code>tf2): Use absneg code iterator.
20697 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
20698 Add three-operand AVX alternatives.
20699 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
20700 Use absneg code iterator and X87MODEF mode iterator.
20701 (absneg fp_reg non-sse splitter): Call absneg code iterator
20702 and X87MODEF mode iterator.
20703 (absneg general_reg non-sse splitter): Use absneg code iterator
20704 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
20705 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
20706 code iterator. Add three-operand AVX alternative.
20707 (absneg sse_reg splitter): Use absneg code iterator
20708 and SSEMODEF mode iterator. Handle AVX operands.
20709 (absneg fp_reg splitter): Use absneg code iterator
20710 and MODEF mode iterator.
20711 (absneg general_reg splitter): Merge splitters using MODEF mode
20712 iterator. Use absneg code iterator. Call
20713 ix86_split_fp_absneg_operator.
20714 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
20715 Do not enable for non-sse modes before reload.
20716 (CSGNMODE): Remove.
20717 (CSGNVMODE): Ditto.
20718 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
20719 ssevecmodef mode attribute instaed of CSGNVMODE.
20720 (copysign<mode>3_const): Ditto.
20721 (copysign<mode>3_var): Ditto.
20722 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
20723 Use absneg code iterator. Simplify code using std::swap.
20724 * config/i386/predicates.md (absneg_operator): Remove.
20725
20726 2019-06-10 Martin Sebor <msebor@redhat.com>
20727
20728 * gimple-fold.c (get_range_strlen): Update comment that didn't
20729 make it into r267503 or related commits.
20730
20731 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
20732
20733 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
20734 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
20735
20736 2019-06-10 Jakub Jelinek <jakub@redhat.com>
20737
20738 * tree.def (OMP_SCAN): New tree code.
20739 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
20740 OMP_CLAUSE_EXCLUSIVE.
20741 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
20742 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
20743 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
20744 OMP_CLAUSE_{IN,EX}CLUSIVE.
20745 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
20746 * tree-nested.c (convert_nonlocal_reference_stmt,
20747 convert_local_reference_stmt, convert_gimple_call): Handle
20748 GIMPLE_OMP_SCAN.
20749 * tree-pretty-print.c (dump_omp_clause): Handle
20750 OMP_CLAUSE_{IN,EX}CLUSIVE.
20751 (dump_generic_node): Handle OMP_SCAN.
20752 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
20753 * gimple.h (gomp_scan): New type.
20754 (is_a_helper <gomp_scan *>::test,
20755 is_a_helper <const gomp_scan *>::test): New templates.
20756 (gimple_build_omp_scan): Declare.
20757 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
20758 gimple_omp_scan_set_clauses): New inline functions.
20759 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
20760 * gimple.c (gimple_build_omp_scan): New function.
20761 (gimple_copy): Handle GIMPLE_OMP_SCAN.
20762 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
20763 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
20764 GIMPLE_OMP_TASKGROUP.
20765 (dump_gimple_omp_scan): New function.
20766 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
20767 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
20768 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
20769 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
20770 (is_gimple_stmt): Handle OMP_SCAN.
20771 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
20772 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
20773 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
20774 mentioned in nested #pragma omp scan. Handle
20775 OMP_CLAUSE_{IN,EX}CLUSIVE.
20776 (gimplify_expr): Handle OMP_SCAN.
20777 * omp-low.c (check_omp_nesting_restrictions): For parent context,
20778 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
20779 simd constructs.
20780 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
20781 GIMPLE_OMP_SCAN.
20782
20783 2019-06-10 Martin Liska <mliska@suse.cz>
20784
20785 * ipa-cp.c (ignore_edge_p): New function.
20786 (build_toporder_info): Use it.
20787 * ipa-inline.c (ignore_edge_p): New function.
20788 (inline_small_functions): Use it.
20789 * ipa-pure-const.c (ignore_edge_for_nothrow):
20790 Verify opt_for_fn for caller and callee.
20791 (ignore_edge_for_pure_const): Likewise.
20792 * ipa-reference.c (ignore_edge_p): Extend to check
20793 for opt_for_fn.
20794 * ipa-utils.c (searchc): Refactor.
20795 * ipa-utils.h: Fix coding style.
20796
20797 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
20798
20799 * config/arc/arc.c (arc_rtx_costs): Update costs.
20800
20801 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
20802
20803 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
20804 (arc_split_ior): Likewise.
20805 (arc_check_mov_const): Likewise.
20806 (arc_split_mov_const): Likewise.
20807 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
20808 (arc_rtx_costs): Replace check Crr with Cax constraint.
20809 (prepare_move_operands): Cleanup, remove unused code.
20810 (arc_split_ior): New function.
20811 (arc_check_ior_const): Likewise.
20812 (arc_split_mov_const): Likewise.
20813 (arc_check_mov_const): Likewise.
20814 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
20815 in define_insn_and_split pattern.
20816 (iorsi3): Likewise.
20817 (mulsi3_v2): Add new matching variant.
20818 (andsi3_i): Cleanup pattern.
20819 (rotrsi3_cnt1): Update pattern.
20820 (rotrsi3_cnt8): New pattern.
20821 (ashlsi2_cnt8): Likewise.
20822 (ashlsi2_cnt16): Likewise.
20823 * config/arc/constraints.md (C0p): Update constraint.
20824 (Crr): Remove it.
20825 (C0x): New pattern.
20826 (Cax): New pattern.
20827
20828 2019-06-10 Martin Liska <mliska@suse.cz>
20829
20830 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
20831 Update coding style.
20832 (sem_item_optimizer::dump_cong_classes):
20833 Print how many items are in a non-singular class. Improve
20834 coding style.
20835
20836 2019-06-10 Martin Liska <mliska@suse.cz>
20837
20838 * value-prof.c (dump_histogram_value): Change dump format.
20839 (gimple_mod_subtract_transform): Remove legacy comment.
20840
20841 2019-06-10 Martin Liska <mliska@suse.cz>
20842
20843 * value-prof.c (dump_histogram_value): Print histogram values
20844 only if present.
20845
20846 2019-06-10 Martin Liska <mliska@suse.cz>
20847
20848 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
20849 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
20850 * ipa-profile.c (ipa_profile_generate_summary):
20851 Use get_most_common_single_value.
20852 * tree-profile.c (gimple_init_gcov_profiler):
20853 Instrument with __gcov_one_value_profiler_v2
20854 and __gcov_indirect_call_profiler_v4.
20855 * value-prof.c (dump_histogram_value):
20856 Print all values for HIST_TYPE_SINGLE_VALUE.
20857 (stream_out_histogram_value): Update assert for
20858 N values.
20859 (stream_in_histogram_value): Set number of
20860 counters for HIST_TYPE_SINGLE_VALUE.
20861 (get_most_common_single_value): New.
20862 (gimple_divmod_fixed_value_transform):
20863 Use get_most_common_single_value.
20864 (gimple_ic_transform): Likewise.
20865 (gimple_stringops_transform): Likewise.
20866 (gimple_find_values_to_profile): Set number
20867 of counters for HIST_TYPE_SINGLE_VALUE.
20868 * value-prof.h (get_most_common_single_value): New.
20869
20870 2019-06-10 Martin Liska <mliska@suse.cz>
20871
20872 * hash-map.h: Pass default value to hash_table ctor.
20873 * hash-table.h: Add default value to call of a ctor.
20874
20875 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
20876
20877 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
20878 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
20879
20880 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
20881
20882 PR target/90751
20883 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
20884 Call pa_output_function_label.
20885 (TARGET_ASM_FUNCTION_PROLOGUE): define.
20886 * config/pa/pa-protos.h (pa_output_function_label): Declare.
20887 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
20888 to declaration.
20889 (pa_linux_output_function_prologue): Declare.
20890 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
20891 (pa_output_function_label): New.
20892 (pa_output_function_prologue): Revise to use pa_output_function_label.
20893 (pa_linux_output_function_prologue): New.
20894 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
20895
20896 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
20897
20898 * tree-vrp.h (value_range_base::intersect): New.
20899 (value_range::intersect_helper): Move from here...
20900 (value_range_base::intersect_helper): ...to here.
20901 * tree-vrp.c (value_range::intersect_helper): Rename to...
20902 (value_range_base::intersect_helper): ...this, and rewrite to
20903 return a value instead of modifying THIS in place.
20904 Also, move equivalence handling...
20905 (value_range::intersect): ...here, while calling intersect_helper.
20906 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
20907 calling intersect.
20908 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
20909 Same.
20910 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
20911
20912 2019-06-07 Jakub Jelinek <jakub@redhat.com>
20913
20914 * Makefile.in (genprogerr): Add condmd.
20915 (genprog): Remove it here.
20916
20917 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
20918
20919 * doc/invoke.texi (AMD GCN Options): Add gfx906.
20920
20921 2019-06-07 Richard Biener <rguenther@suse.de>
20922
20923 PR debug/90574
20924 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
20925 that appear after user labels.
20926
20927 2019-06-07 Martin Liska <mliska@suse.cz>
20928
20929 * cselib.c (cselib_init): Disable hash table
20930 sanitization.
20931 * hash-set.h: Pass new default argument to m_table.
20932 * hash-table.c: Add global variable with hash table
20933 sanitization limit.
20934 * hash-table.h (Allocator>::hash_table): Add new argument
20935 to ctor.
20936 (hashtab_chk_error): New.
20937 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
20938 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
20939 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
20940
20941 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
20942
20943 * common.opt (flto-odr-type-merging): Ignore.
20944 * invoke.texi (-flto-odr-type-merging): Remove.
20945 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
20946 (can_be_vtable_hashed_p): Remove.
20947 (hash_odr_vtable): Remove.
20948 (odr_vtable_hasher::hash): Remove.
20949 (types_same_for_odr): Remove.
20950 (types_odr_comparable): Remove.
20951 (odr_vtable_hasher::equal): Remove.
20952 (odr_vtable_hash_type, odr_vtable_hash): Remove.
20953 (add_type_duplicate): Do not synchronize vtable and name hashtables.
20954 (get_odr_type): Do not use vtable hash.
20955 (dump_odr_type): Remove commented out code.
20956 (build_type_inheritance_graph): Do not allocate vtable hash.
20957 (rebuild_type_inheritance_graph): Do not delete vtable hash.
20958 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
20959 (odr_type_p): Likewise.
20960 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
20961 test.
20962
20963 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
20964
20965 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
20966 immediately after same_types_for_tbaa_p returns -1 and continue
20967 looking for possible exact match; if matching types are arrays
20968 watch for partial overlaps.
20969 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
20970 (indirect_refs_may_alias_p): Do type based disambiguation first;
20971 update comment.
20972
20973 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
20974
20975 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
20976
20977 2019-06-07 Martin Liska <mliska@suse.cz>
20978
20979 * doc/invoke.texi: Remove param.
20980 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
20981 Remove.
20982 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
20983 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
20984 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
20985 * profile.c (instrument_values): Remove
20986 HIST_TYPE_INDIR_CALL_TOPN.
20987 * tree-profile.c (init_ic_make_global_vars):
20988 Always build __gcov_indirect_call only.
20989 (gimple_init_gcov_profiler): Remove usage
20990 of PARAM_INDIR_CALL_TOPN_PROFILE.
20991 (gimple_gen_ic_profiler): Likewise.
20992 * value-prof.c (dump_histogram_value): Likewise.
20993 (stream_in_histogram_value): Likewise.
20994 (gimple_indirect_call_to_profile): Likewise.
20995 (gimple_find_values_to_profile): Likewise.
20996 * value-prof.h (enum hist_type): Likewise.
20997
20998 2019-06-07 Martin Liska <mliska@suse.cz>
20999
21000 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
21001 function.
21002
21003 2019-06-07 Martin Liska <mliska@suse.cz>
21004
21005 PR tree-optimization/78902
21006 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
21007 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
21008 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
21009 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
21010 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
21011 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
21012 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
21013 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
21014 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
21015 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
21016 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
21017 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
21018 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
21019 New.
21020 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
21021 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
21022 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
21023 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
21024 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
21025 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
21026 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
21027 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
21028 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
21029 warn_unused_result attribute.
21030 (BUILT_IN_STRDUP): Likewise.
21031 (BUILT_IN_STRNDUP): Likewise.
21032 (BUILT_IN_ALLOCA): Likewise.
21033 (BUILT_IN_CALLOC): Likewise.
21034 (BUILT_IN_MALLOC): Likewise.
21035 (BUILT_IN_REALLOC): Likewise.
21036
21037 2019-06-06 Jim Wilson <jimw@sifive.com>
21038
21039 PR target/89955
21040 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
21041 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
21042 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
21043
21044 2019-06-06 Martin Sebor <msebor@redhat.com>
21045
21046 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
21047 (handle_builtin_malloc): Remove trailing spaces.
21048 (handle_builtin_memset): Same.
21049 (handle_builtin_memcmp): Same.
21050 (compute_string_length): Same.
21051 (determine_min_objsize): Same.
21052 (handle_builtin_string_cmp): Same.
21053 (handle_char_store): Same. Break up excessively long line.
21054
21055 2019-06-06 Martin Jambor <mjambor@suse.cz>
21056
21057 * tree-sra.c (build_reconstructed_reference): Drop the alignment
21058 check.
21059
21060 2019-06-06 Martin Jambor <mjambor@suse.cz>
21061
21062 * tree-sra.c (struct access): New field grp_same_access_path.
21063 (dump_access): Dump it.
21064 (build_reconstructed_reference): New function.
21065 (build_ref_for_model): Use it if possible.
21066 (path_comparable_for_same_access): New function.
21067 (same_access_path_p): Likewise.
21068 (sort_and_splice_var_accesses): Set the new flag.
21069 (analyze_access_subtree): Likewise.
21070 (propagate_subaccesses_across_link): Propagate zero value of the new
21071 flag down the access tree.
21072
21073 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
21074
21075 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
21076 * config/gcn/gcn.opt (gpu_type): Add gfx906.
21077 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
21078 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
21079 Add gfx906.
21080
21081 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21082
21083 PR tree-optimization/90332
21084 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
21085 Handle VALS containing two vectors.
21086 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
21087 to...
21088 (@aarch64_combinez<mode>): ... This.
21089 (*aarch64_combinez_be<mode>): Rename to...
21090 (@aarch64_combinez_be<mode>): ... This.
21091 (vec_init<mode><Vhalf>): New define_expand.
21092 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
21093
21094 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21095
21096 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
21097 library functions only when not optimizing for size.
21098 (ashlsi3): Likewise.
21099 (ashrhi3): Likewise.
21100 (ashrsi3): Likewise.
21101 (lshrhi3): Likewise.
21102 (lshrsi3): Likewise.
21103
21104 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
21105
21106 PR rtl-optimization/88751
21107 * ira.c (ira): Use the number of the actually referenced registers
21108 when calculating the threshold.
21109
21110 2019-06-06 Jakub Jelinek <jakub@redhat.com>
21111
21112 * configure: Regenerate.
21113
21114 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21115
21116 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
21117 register if it is in memory, so the shift can be emulated with a rotate
21118 instruction.
21119 (ashrhi3): Likewise.
21120 (lshrhi3): Likewise.
21121
21122 2019-06-06 Martin Liska <mliska@suse.cz>
21123
21124 PR tree-optimization/87954
21125 * match.pd: Simplify mult where both arguments are 0 or 1.
21126
21127 2019-06-06 Richard Biener <rguenther@suse.de>
21128
21129 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
21130 put equivalences on UNDEFINED ranges.
21131 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
21132 Make sure to drop defs of stmts added during simplification
21133 to VARYING.
21134
21135 2019-06-06 Richard Biener <rguenther@suse.de>
21136
21137 * tree-ssa-structalias.c: Include tree-cfg.h.
21138 (make_heapvar): Do not make heap vars artificial.
21139 (find_func_aliases_for_builtin_call): Handle stack allocation
21140 functions.
21141 (find_func_aliases): Delay processing of simple enough returns
21142 in non-IPA mode.
21143 (set_uids_in_ptset): Adjust.
21144 (find_what_var_points_to): Likewise.
21145 (solve_constraints): Do not dump points-to sets here.
21146 (compute_points_to_sets): Post-process return statements,
21147 amending the escaped solution. Dump points-to sets afterwards.
21148 (ipa_pta_execute): Dump points-to sets.
21149
21150 2019-06-06 Martin Liska <mliska@suse.cz>
21151
21152 PR web/87933
21153 * doc/install.texi: Fix HTML headers and
21154 titles for 'Installing GCC' pages.
21155
21156 2019-06-06 Martin Liska <mliska@suse.cz>
21157
21158 * ipa-icf-gimple.h (dump_message_1): Remove.
21159 (dump_message): Likewise.
21160 (return_false_with_message_1): Print also file.
21161 (return_false_with_msg): Likewise.
21162 (return_with_result): Likewise.
21163 (return_with_debug): Likewise.
21164 * ipa-icf.c (sem_function::equals_private): Remove call
21165 to dump_message.
21166
21167 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
21168
21169 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
21170 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
21171 memory operand for it.
21172 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
21173
21174 2019-06-05 Martin Sebor <msebor@redhat.com>
21175
21176 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
21177 Adjust quoting and hyphenation.
21178 * convert.c (convert_to_real_1): Same.
21179 * gcc.c (driver_wrong_lang_callback): Same.
21180 (driver::handle_unrecognized_options): Same.
21181 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
21182 * opts-common.c (cmdline_handle_error): Same.
21183 (read_cmdline_option): Same.
21184 * opts-global.c (complain_wrong_lang): Same.
21185 (print_ignored_options): Same.
21186 (handle_common_deferred_options): Same.
21187 * pretty-print.h: Same.
21188 * print-rtl.c (debug_bb_n_slim): Same.
21189 * sched-rgn.c (make_pass_sched_fusion): Same.
21190 * tree-cfg.c (verify_gimple_assign_unary): Same.
21191 (verify_gimple_label): Same.
21192 * tree-ssa-operands.c (verify_ssa_operands): Same.
21193 * varasm.c (do_assemble_alias): Same.
21194 (assemble_alias): Same.
21195
21196 2019-06-05 Richard Henderson <rth@twiddle.net>
21197
21198 * config/alpha/alpha.c (direct_return): Move down after
21199 struct machine_function definition; use saved frame_size;
21200 return bool.
21201 (struct machine_function): Add sa_mask, sa_size, frame_size.
21202 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
21203 (alpha_compute_frame_layout): ... new function.
21204 (TARGET_COMPUTE_FRAME_LAYOUT): New.
21205 (alpha_initial_elimination_offset): Use saved sa_size.
21206 (alpha_vms_initial_elimination_offset): Likewise.
21207 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
21208 (alpha_expand_prologue): Use saved frame data. Merge integer
21209 and fp register save loops.
21210 (alpha_expand_epilogue): Likewise.
21211 (alpha_start_function): Use saved frame data.
21212 * config/alpha/alpha-protos.h (direct_return): Update.
21213 (alpha_sa_size): Remove.
21214
21215 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
21216
21217 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
21218 multiplication by a power-of-two value.
21219 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
21220 and turn the modulo operation into a masking operation.
21221
21222 2019-06-05 Jakub Jelinek <jakub@redhat.com>
21223
21224 PR debug/90733
21225 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
21226 with VOIDmode inner operands.
21227
21228 2019-06-05 Richard Biener <rguenther@suse.de>
21229
21230 PR middle-end/90726
21231 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
21232 turn an expression graph into a tree.
21233
21234 2019-06-05 Jakub Jelinek <jakub@redhat.com>
21235
21236 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
21237 member.
21238 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
21239 treat it like explicit monotonic schedule modifier.
21240 (expand_omp_for): Initialize has_lastprivate_conditional.
21241 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
21242 schedule modifier.
21243
21244 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
21245 references, lookup in in hash map MEM_REF operand instead of the
21246 MEM_REF itself.
21247 (lower_omp_1): When looking for lastprivate conditional assignments,
21248 handle MEM_REFs with REFERENCE_TYPE operands.
21249
21250 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
21251 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
21252 and references a VLA. Handle references to non-VLAs if is_simd
21253 all privatization clauses like reductions.
21254 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
21255 If omp_is_reference, use always omp simd arrays and set
21256 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
21257 fails, emit reference initialization.
21258
21259 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
21260
21261 PR target/89803
21262 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
21263 _mm_mask_fpclass_sd_mask): New intrinsics.
21264 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
21265 * config/i386/i386-builtin.def
21266 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
21267 New builtins.
21268 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
21269 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
21270 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
21271 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
21272 case QI_FTYPE_V2SF_INT): Ditto.
21273 * config/i386/sse.md
21274 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
21275 Extended to insnstructions with mask operands.
21276
21277 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21278
21279 * config/rs6000/constraints.md (define_register_constraint "wp"):
21280 Delete.
21281 (define_register_constraint "wq"): Delete.
21282 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21283 (rs6000_init_hard_regno_mode_ok): Adjust.
21284 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21285 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
21286 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
21287 (define_mode_attr VSa): Delete.
21288 (define_mode_attr VSisa): New.
21289 (rest of file): Adjust.
21290 * doc/md.texi (Machine Constraints): Adjust.
21291
21292 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21293
21294 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
21295 (define_attr "enabled"): Handle those new isa values.
21296
21297 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21298
21299 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
21300 (define_mode_attr VSr5): Delete.
21301 (define_mode_attr VStype_sqrt): Delete.
21302 (define_mode_iterator VSX_SPDP): Delete.
21303 (define_mode_attr VS_spdp_res): Delete.
21304 (define_mode_attr VS_spdp_insn): Delete.
21305 (define_mode_attr VS_spdp_type): Delete.
21306 (*vsx_sqrt<mode>2): Adjust.
21307 (vsx_<VS_spdp_insn>): Delete, split to...
21308 (vsx_xscvdpsp): ... this. New. And...
21309 (vsx_xvcvspdp): ... this. New. And...
21310 (vsx_xvcvdpsp): ... this. New.
21311
21312 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21313
21314 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
21315 and V2DF.
21316 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
21317 (rest of file): Adjust.
21318
21319 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21320
21321 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
21322 (vsx_extract_<mode>_var): Ditto.
21323
21324 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21325
21326 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
21327 with just "wa".
21328
21329 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21330
21331 * config/rs6000/constraints.md (define_register_constraint "ww"):
21332 Delete.
21333 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21334 (rs6000_init_hard_regno_mode_ok): Adjust.
21335 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21336 RS6000_CONSTRAINT_ww.
21337 * config/rs6000/rs6000.md: Adjust.
21338 * config/rs6000/vsx.md: Adjust.
21339 * doc/md.texi (Machine Constraints): Adjust.
21340
21341 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21342
21343 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
21344 (define_mode_attr sd): New.
21345 (define_mode_attr s): New.
21346 (define_mode_attr Ftrad): Delete.
21347 (define_mode_attr Fvsx): Delete.
21348 (define_mode_attr Fs): Delete.
21349 (rest of file): Use the new mode attributes.
21350 * config.rs6000/vsx.md: Use the new mode attributes.
21351
21352 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21353
21354 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
21355 with just "wa".
21356
21357 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21358
21359 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
21360 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
21361 used with VSX_B, VSX_D, or VSX_F, with just "wa".
21362
21363 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
21364
21365 PR target/78263
21366 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
21367 C++ with strict ANSI requirements.
21368
21369 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
21370
21371 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
21372 computations when step is 1.
21373
21374 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21375
21376 * config/rs6000/constraints.md (define_register_constraint "wf"):
21377 Delete.
21378 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21379 (rs6000_init_hard_regno_mode_ok): Adjust.
21380 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21381 RS6000_CONSTRAINT_wf.
21382 * config/rs6000/rs6000.md: Adjust.
21383 * config/rs6000/vsx.md: Adjust.
21384 * doc/md.texi (Machine Constraints): Adjust.
21385
21386 2019-06-04 Andrew Pinski <apinski@marvell.com>
21387
21388 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
21389 Fix ILP32 value.
21390
21391 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21392
21393 * config/rs6000/constraints.md (define_register_constraint "wd"):
21394 Delete.
21395 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21396 (rs6000_init_hard_regno_mode_ok): Adjust.
21397 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21398 RS6000_CONSTRAINT_wd.
21399 * config/rs6000/rs6000.md: Adjust.
21400 * config/rs6000/vsx.md: Adjust.
21401 * doc/md.texi (Machine Constraints): Adjust.
21402
21403 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21404
21405 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
21406 (rest of file): Adjust.
21407
21408 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21409
21410 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
21411 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
21412 (vsx_splat_<mode>_reg): Adjust.
21413
21414 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21415
21416 * config/rs6000/constraints.md (define_register_constraint "ws"):
21417 Delete.
21418 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21419 (rs6000_init_hard_regno_mode_ok): Adjust.
21420 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21421 RS6000_CONSTRAINT_ws.
21422 * config/rs6000/rs6000.md: Adjust.
21423 * config/rs6000/vsx.md: Adjust.
21424 * doc/md.texi (Machine Constraints): Adjust.
21425
21426 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21427
21428 * config/rs6000/constraints.md (define_register_constraint "wv"):
21429 Delete.
21430 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21431 (rs6000_init_hard_regno_mode_ok): Adjust.
21432 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21433 RS6000_CONSTRAINT_wv.
21434 * config/rs6000/rs6000.md: Adjust.
21435 * config/rs6000/vsx.md: Adjust.
21436 * doc/md.texi (Machine Constraints): Adjust.
21437
21438 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21439
21440 * config/rs6000/constraints.md (define_register_constraint "wi"):
21441 Delete.
21442 (define_register_constraint "wt"): Delete.
21443 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21444 (rs6000_init_hard_regno_mode_ok): Adjust.
21445 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21446 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
21447 * config/rs6000/rs6000.md: Adjust.
21448 * config/rs6000/vsx.md: Adjust.
21449 * doc/md.texi (Machine Constraints): Adjust.
21450
21451 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
21452
21453 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
21454 const.
21455 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
21456 default_elf_asm_output_external.
21457
21458 2019-06-04 Martin Liska <mliska@suse.cz>
21459
21460 * ipa-icf.c (INCLUDE_LIST): Remove.
21461 (sem_item_optimizer::execute): Remove call to init_wpa.
21462 * ipa-icf.h (init_wpa): Remove.
21463
21464 2019-06-04 Jakub Jelinek <jakub@redhat.com>
21465
21466 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
21467 conditional on combined for simd.
21468 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
21469 member.
21470 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
21471 constructs, don't remove lastprivate_conditional_map, but instead set
21472 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
21473 to parent construct temporaries.
21474 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
21475 like !ctx->lastprivate_conditional_map.
21476 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
21477 use up->outer context instead of up.
21478 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
21479 gimple_omp_for_combined_p.
21480 (expand_omp_for_static_nochunk): Likewise.
21481 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
21482 probably moved over into expand_omp_for_generic rather than being copied
21483 there.
21484
21485 2019-06-04 Martin Liska <mliska@suse.cz>
21486
21487 * value-prof.c (dump_histogram_value): Fix typo.
21488 (gimple_mod_subtract_transform): Likewise.
21489
21490 2019-06-04 Richard Biener <rguenther@suse.de>
21491
21492 PR middle-end/90726
21493 * tree-chrec.c (chrec_contains_symbols): Add to visited.
21494 (tree_contains_chrecs): Likewise.
21495 (chrec_contains_symbols_defined_in_loop): Move here and avoid
21496 exponential behaivor from ...
21497 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
21498 ... here.
21499 (expression_expensive_p): Avoid exponential behavior and compute
21500 expanded size, rejecting any expansion.
21501 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
21502 (idx_contains_abnormal_ssa_name_p): Likewise.
21503 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
21504 (contains_abnormal_ssa_name_p): Simplify and use
21505 walk_tree_without_duplicates.
21506
21507 2019-06-04 Richard Biener <rguenther@suse.de>
21508
21509 PR tree-optimization/90738
21510 Revert
21511 2019-06-03 Richard Biener <rguenther@suse.de>
21512
21513 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
21514 full reference tree and record in ref->ref.
21515 (vn_reference_lookup_3): Pass in original ref to
21516 ao_ref_init_from_vn_reference.
21517 (vn_reference_lookup): Likewise.
21518 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
21519 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21520 Handle non-decl bases in the original reference.
21521
21522 2019-06-04 Martin Liska <mliska@suse.cz>
21523
21524 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
21525 number of references.
21526 (sem_item_optimizer::do_congruence_step):
21527 (sem_item_optimizer::worklist_push): Dump how references
21528 a class has.
21529 (sem_item_optimizer::worklist_pop): Use heap.
21530 (sem_item_optimizer::process_cong_reduction): Likewise.
21531 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
21532
21533 2019-06-04 Martin Liska <mliska@suse.cz>
21534
21535 * ipa-icf.h (struct sem_usage_pair_hash): New.
21536 (sem_usage_pair_hash::hash): Likewise.
21537 (sem_usage_pair_hash::equal): Likewise.
21538 (struct sem_usage_hash): Likewise.
21539 * ipa-icf.c (sem_item::sem_item): Initialize
21540 referenced_by_count.
21541 (sem_item::add_reference): Register a reference
21542 in ref_map and not in target->usages.
21543 (sem_item::setup): Remove initialization of
21544 dead vectors.
21545 (sem_item::~sem_item): Remove usage of dead vectors.
21546 (sem_item::dump): Remove dump of references.
21547 (sem_item_optimizer::sem_item_optimizer): Initialize
21548 m_references.
21549 (sem_item_optimizer::read_section): Remove useless
21550 dump.
21551 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
21552 (sem_item_optimizer::build_graph): Pass m_references
21553 to ::add_reference.
21554 (sem_item_optimizer::verify_classes): Remove usage of dead
21555 vectors.
21556 (sem_item_optimizer::traverse_congruence_split): Return true
21557 when a class is split.
21558 (sem_item_optimizer::do_congruence_step_for_index): Use
21559 hash_map for look up of (sem_item *, index). That brings
21560 significant speed up.
21561 (sem_item_optimizer::do_congruence_step): Return true
21562 when a split is done.
21563 (congruence_class::is_class_used): Use referenced_by_count.
21564
21565 2019-06-04 Alan Modra <amodra@gmail.com>
21566
21567 PR target/90689
21568 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
21569 error.
21570
21571 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
21572
21573 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
21574 * config/rs6000/rs6000.c (direct_move_p): Adjust.
21575 (rs6000_secondary_reload_simple_move): Adjust.
21576 (rs6000_opt_masks): Neuter the "mfpgpr" option.
21577 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
21578 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
21579 comment.
21580 (power6x): Adjust.
21581 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
21582 (floatunssi<mode>2_lfiwzx): Adjust.
21583 (fix_trunc<mode>si2_stfiwx): Adjust.
21584 (fixuns_trunc<mode>si2_stfiwx): Adjust.
21585 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
21586 (mfpgpr): Mark as deprecated.
21587 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
21588 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
21589 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
21590
21591 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
21592
21593 * config/rs6000/constraints.md (define_register_constraint "wg"):
21594 Delete.
21595 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21596 RS6000_CONSTRAINT_wg.
21597 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21598 (rs6000_init_hard_regno_mode_ok): Adjust.
21599 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
21600 Delete "wg" alternatives.
21601 * doc/md.texi (Machine Constraints): Adjust.
21602
21603 2019-06-03 Alan Modra <amodra@gmail.com>
21604
21605 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
21606 (get_uncond_jump_length): Assert length less than INT_MAX and
21607 non-negative.
21608
21609 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
21610
21611 PR middle-end/64242
21612 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
21613 block.
21614 (expand_builtin_nonlocal_goto): Likewise.
21615
21616 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
21617
21618 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
21619 (aarch64_asm_output_external): Declare.
21620 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
21621 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
21622 (aarch64_asm_output_alias): New.
21623 (aarch64_asm_output_external): New.
21624 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
21625 (ASM_OUTPUT_EXTERNAL): Define.
21626
21627 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
21628 * tree-vrp.h (value_range_base::nonzero_p): New.
21629 (value_range_base::set_nonnull): Rename to...
21630 (value_range_base::set_nonzero): ...this.
21631 (value_range_base::set_null): Rename to...
21632 (value_range_base::set_zero): ...this.
21633 (value_range::set_nonnull): Remove.
21634 (value_range::set_null): Remove.
21635 * tree-vrp.c (range_is_null): Remove.
21636 (range_is_nonnull): Remove.
21637 (extract_range_from_binary_expr): Use value_range_base::*zero_p
21638 instead of range_is_*null.
21639 (extract_range_from_unary_expr): Same.
21640 (value_range_base::set_nonnull): Rename to...
21641 (value_range_base::set_nonzero): ...this.
21642 (value_range::set_nonnull): Remove.
21643 (value_range_base::set_null): Rename to...
21644 (value_range_base::set_zero): ...this.
21645 (value_range::set_null): Remove.
21646 (extract_range_from_binary_expr): Rename set_*null uses to
21647 set_*zero.
21648 (extract_range_from_unary_expr): Same.
21649 (union_helper): Same.
21650 * vr-values.c (get_value_range): Use set_*zero instead of
21651 set_*null.
21652 (vr_values::extract_range_from_binary_expr): Same.
21653 (vr_values::extract_range_basic): Same.
21654
21655 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
21656
21657 PR driver/90684
21658 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
21659
21660 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21661
21662 * config/aarch64/iterators.md (MAX_OPP): New code attr.
21663 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
21664 Rename to...
21665 (aarch64_<su>abd<mode>_3): ... This.
21666 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
21667
21668 2019-06-03 Richard Biener <rguenther@suse.de>
21669
21670 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
21671 full reference tree and record in ref->ref.
21672 (vn_reference_lookup_3): Pass in original ref to
21673 ao_ref_init_from_vn_reference.
21674 (vn_reference_lookup): Likewise.
21675 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
21676 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21677 Handle non-decl bases in the original reference.
21678
21679 2019-06-03 Martin Liska <mliska@suse.cz>
21680
21681 * doc/generic.texi: Remove Java Trees.
21682
21683 2019-06-03 Martin Liska <mliska@suse.cz>
21684
21685 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
21686 returns 0 when operands are equal.
21687
21688 2019-06-03 Richard Biener <rguenther@suse.de>
21689
21690 PR tree-optimization/90716
21691 * tree-loop-distribution.c (destroy_loop): Process blocks in
21692 correct order.
21693
21694 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21695
21696 PR target/88837
21697 * vector-builder.h (vector_builder::count_dups): New method.
21698 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
21699 Declare prototype.
21700 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
21701 (vec_init<mode><Vel>): New pattern.
21702 * config/aarch64/aarch64.c (emit_insr): New function.
21703 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
21704 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
21705 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
21706 (aarch64_sve_expand_vector_init): Define two overloaded functions.
21707
21708 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
21709
21710 PR tree-optimization/90681
21711 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
21712 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
21713 special case for SLP, but fail on non-groupped loads.
21714
21715 2019-06-03 Martin Liska <mliska@suse.cz>
21716
21717 * cfg.c (debug): Use TDF_DETAILS for debug and
21718 print edge info only once.
21719
21720 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
21721
21722 PR fortran/90539
21723 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
21724
21725 2019-06-01 Martin Sebor <msebor@redhat.com>
21726
21727 PR middle-end/90694
21728 * tree-pretty-print.c (dump_generic_node): Add parentheses.
21729
21730 2019-05-31 Jan Hubicka <jh@suse.cz>
21731
21732 * alias.c: Include ipa-utils.h.
21733 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
21734 * ipa-devirt.c (prevailing_odr_type): New.
21735 * ipa-utils.h (previaling_odr_type): Declare.
21736
21737 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
21738 Hongtao Liu <hongtao.liu@intel.com>
21739
21740 PR target/89355
21741 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
21742 NOTE_INSN_DELETED_LABEL check.
21743
21744 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
21745 Robert Suchanek <robert.suchanek@mips.com>
21746
21747 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
21748 and 3rd operands of the fmadd/fmsub/maddv builtin.
21749
21750 2019-05-31 Jakub Jelinek <jakub@redhat.com>
21751
21752 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
21753 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
21754 on OMP_SIMD if not nested inside of worksharing loop that also has
21755 lastprivate conditional clause for the same decl.
21756 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
21757 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
21758 on simd.
21759 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
21760 on simd construct.
21761 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
21762 on simd construct.
21763 (lower_lastprivate_clauses): Likewise.
21764 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
21765 calling lower_rec_input_clauses.
21766 (lower_omp_for): Likewise.
21767 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
21768 clause on simd construct.
21769 * omp-expand.c (expand_omp_simd): Initialize cond_var if
21770 OMP_CLAUSE__CONDTEMP_ clause is present.
21771
21772 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
21773 ivar and lvar.
21774
21775 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
21776
21777 PR c/43673
21778 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
21779 TEX_D32, TEX_D64 or TEX_D128.
21780
21781 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
21782
21783 * match.pd (~(vec?cst1:cst2)): New transformation.
21784
21785 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
21786
21787 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
21788 ((size_t)(A /[ex] B) CMP C): New transformation.
21789
21790 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
21791
21792 * doc/md.texi: Document define_insn_and_rewrite.
21793 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
21794 * gensupport.c (queue_elem): Update comment.
21795 (replace_operands_with_dups): New function.
21796 (gen_rewrite_sequence): Likewise.
21797 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
21798 * read-rtl.c (apply_subst_iterator): Likewise.
21799 (add_condition_to_rtx, named_rtx_p): Likewise.
21800 (rtx_reader::read_rtx_operand): Likewise.
21801 * config/aarch64/aarch64-sve.md
21802 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
21803 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
21804 define_insn_and_rewrite.
21805 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
21806 Remove separate define_split.
21807
21808 2019-05-31 Jan Hubicka <jh@suse.cz>
21809
21810 * tree-ssa-alias.c (type_has_components_p): New function.
21811 (aliasing_component_refs_p): Use it.
21812
21813 2019-05-31 Martin Liska <mliska@suse.cz>
21814
21815 * gdbhooks.py: Add const_tree to TreePrinter.
21816
21817 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
21818
21819 PR debug/86964
21820 * common.opt (feliminate-unused-debug-symbols): Enable by default.
21821 * doc/invoke.texi (Debugging Options): Document new default of
21822 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
21823
21824 2019-05-31 Jakub Jelinek <jakub@redhat.com>
21825
21826 PR tree-optimization/90671
21827 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
21828 template_block used to be empty on the first call, don't use
21829 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
21830 seq with bb_seq and set it with set_bb_seq.
21831
21832 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
21833
21834 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
21835
21836 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
21837 Michael Meissner <meissner@linux.ibm.com>
21838
21839 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
21840 (prefixed_mem_operand): Likewise.
21841 (non_prefixed_mem_operand): Likewise.
21842 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
21843 prototype.
21844 * config/rs6000/rs6000.c (print_operand_address): Handle
21845 PC-relative addresses.
21846 (mode_supports_prefixed_address_p): New function.
21847 (rs6000_prefixed_address): New function.
21848 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
21849 (SYMBOL_REF_PCREL_P): Likewise.
21850
21851 2019-05-30 Jakub Jelinek <jakub@redhat.com>
21852
21853 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
21854 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
21855 (gimplify_omp_for): If worksharing loop with lastprivate conditional
21856 is nested inside of parallel region, add _condtemp_ clause to both.
21857 * tree-nested.c (convert_nonlocal_omp_clauses,
21858 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
21859 assertion failure.
21860 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
21861 member.
21862 * omp-general.c (omp_extract_for_data): Compute it.
21863 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
21864 (lower_rec_input_clauses): Likewise.
21865 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
21866 clause is already present, just add one further one after it.
21867 (lower_lastprivate_clauses): Handle cond_ptr with array type.
21868 (lower_send_shared_vars): Clear _condtemp_ vars.
21869 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
21870 or section or taskgroup.
21871 * omp-expand.c (determine_parallel_type): Disallow combining only if
21872 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
21873 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
21874 (expand_omp_for_generic, expand_omp_for_static_nochunk,
21875 expand_omp_for_static_chunk, expand_omp_for): Use
21876 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
21877 determine if a special set of API routines are needed and if condtemp
21878 needs to be initialized, while always initialize cond_var if
21879 fd->lastprivate_conditional is non-zero.
21880
21881 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
21882 Michael Meissner <meissner@linux.ibm.com>
21883
21884 * config/rs6000/constraints.md (eI): New constraint.
21885 * config/rs6000/predicates.md (cint34_operand): New predicate.
21886 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
21887 (SIGNED_34BIT_OFFSET_P): Likewise.
21888 * doc/md.texi (eI): Document constraint.
21889
21890 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
21891
21892 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
21893
21894 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
21895 Michael Meissner <meissner@linux.ibm.com>
21896
21897 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
21898 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
21899 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
21900 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
21901 (OTHER_FUTURE_MASKS): Likewise.
21902 (POWERPC_MASKS): Likewise.
21903 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
21904 specified without -mprefixed-addr or -mcpu=future. Error if
21905 -mprefixed-addr is specified without -mcpu=future.
21906 (rs6000_opt_masks): Add entry for prefixed-addr.
21907 * rs6000.opt (mprefixed-addr): New option.
21908
21909 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
21910
21911 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
21912 cfun->is_thunk check.
21913
21914 2019-05-30 Jakub Jelinek <jakub@redhat.com>
21915
21916 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
21917 to length.
21918
21919 2019-05-30 Martin Liska <mliska@suse.cz>
21920
21921 * gdbinit.in: Fix 'ptc' command. Add trt
21922 that prints TREE_TYPE($).
21923
21924 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
21925 Alan Modra <amodra@gmail.com>
21926
21927 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
21928 calls here...
21929 (rs6000_indirect_call_template_1): ...and here.
21930 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
21931 plt16_ha, plt16_lo, mtctr indirect calls. Use
21932 rs6000_pltseq_enum.
21933 (rs6000_decl_ok_for_sibcall): New function.
21934 (rs6000_function_ok_for_sibcall): Refactor.
21935 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
21936 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
21937 when pcrel. Reorganize.
21938 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
21939 * rs6000.h (rs6000_pltseq_enum): New enum.
21940 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
21941 (*pltseq_tocsave): Use rs6000_pltseq_enum.
21942 (*pltseq_plt16_ha): Likewise.
21943 (*pltseq_plt16_lo): Likewise.
21944 (*pltseq_mtctr): Likewise.
21945 (*pltseq_plt_pcrel): New insn.
21946 (*call_local_aix): Handle @notoc calls.
21947 (*call_value_local_aix): Likewise.
21948 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
21949 (*call_value_nonlocal_aix): Likewise.
21950 (*call_indirect_pcrel): New insn.
21951 (*call_value_indirect_pcrel): Likewise.
21952
21953 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
21954
21955 * config/i386/sse.md (*save_multiple<mode>): Rename from
21956 save_multiple<mode>.
21957 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
21958 (*restore_multiple_and_return<mode>): Rename from
21959 restore_multiple_and_return<mode>.
21960 (*restore_multiple_leave_return<mode>): Rename from
21961 restore_multiple_leave_return<mode>.
21962
21963 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
21964
21965 * config.gcc (rx-*-linux*): New target.
21966 * config/rx/elf.opt: New file.
21967 * config/rx/linux.h: Likewise.
21968 * config/rx/t-linux: Likewise.
21969 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
21970 make it zero.
21971 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
21972 (ASM_APP_OFF): Likewise.
21973 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
21974 moved elsewhere.
21975
21976 2019-05-29 Jan Hubicka <jh@suse.cz>
21977
21978 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
21979 variants are pointer equivalent.
21980
21981 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
21982
21983 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
21984 * config/aarch64/aarch64-sve2.md: New file.
21985 (<u>avg<mode>3_floor): New pattern.
21986 (<u>avg<mode>3_ceil): Likewise.
21987 (*<sur>h<addsub><mode>): Likewise.
21988 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
21989 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
21990
21991 2019-05-29 Jakub Jelinek <jakub@redhat.com>
21992
21993 PR bootstrap/90543
21994 * optc-save-gen.awk: In cl_optimization_print, use correct condition
21995 for var_opt_string printing. In cl_optimization_print_diff, print
21996 (null) instead of invoking undefined behavior if one of the
21997 var_opt_string pointers is NULL and use && instead of first || in the
21998 guarding condition. For var_target_other options, handle const char *
21999 target variables similarly to const char * optimize node variables.
22000
22001 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
22002
22003 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
22004 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
22005 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
22006 Add autib1716 and pacib1716 initialisation.
22007 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
22008 for autib1716 and pacib1716.
22009 * config/aarch64/aarch64-protos.h (aarch64_key_type,
22010 aarch64_post_cfi_startproc): Define.
22011 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
22012 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
22013 aarch64_handle_pac_ret_protection): Set default sign key to A.
22014 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
22015 aarch64_expand_prologue): Add check for b-key.
22016 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
22017 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
22018 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
22019 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
22020 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
22021 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
22022 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
22023 * config/aarch64/aarch64.md (do_return): Add check for b-key.
22024 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
22025 pauth_hint_num_a with pauth_hint_num.
22026 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
22027 pauth_hint_num_a with pauth_hint_num.
22028 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
22029 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
22030 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
22031 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
22032 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
22033 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
22034 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
22035 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
22036 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
22037 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
22038 UNSPEC_AUTIA1716 respectively.
22039 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
22040 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
22041 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
22042 * doc/invoke.texi (-mbranch-protection): Add b-key type.
22043 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
22044 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
22045
22046 2019-05-29 Jakub Jelinek <jakub@redhat.com>
22047
22048 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
22049 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
22050 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
22051 explicit clause on combined parallel into implicit shared clause.
22052 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
22053 and firstprivate if the decl has one too from combined parallel to
22054 the worksharing construct.
22055
22056 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
22057 Michael Meissner <meissner@linux.ibm.com>
22058
22059 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
22060
22061 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
22062
22063 * rtl.h (LABEL_REF_P): New #define.
22064
22065 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
22066
22067 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
22068
22069 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22070
22071 * internal-fn.c: Marked mask_load_direct as vectorizable.
22072 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
22073 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
22074 combined even if masks different with allow_slp_p param.
22075 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
22076 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
22077 dissolve SLP-only vectorizable groups when SLP has been discarded.
22078 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
22079 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
22080 masks.
22081 (vect_build_slp_tree_1): Fixed comment typo.
22082 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
22083 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
22084 loads for SLP only.
22085 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
22086 vectorizable.
22087 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
22088
22089 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22090
22091 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
22092 Remove obsolete use_thunk reference.
22093 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
22094 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
22095 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
22096 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
22097 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
22098 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
22099 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
22100 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
22101 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
22102
22103 2019-05-28 Nathan Sidwell <nathan@acm.org>
22104
22105 * tree.h (IDENTIFIER_ANON_P): New.
22106 (anon_aggrname_format, anon_aggname_p): Don't declare.
22107 (make_anon_name): Declare.
22108 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
22109 (hash_tree): Likewise.
22110 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
22111 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
22112 (anon_cnt, make_anon_name): New.
22113
22114 2019-05-28 Martin Liska <mliska@suse.cz>
22115
22116 PR other/90315
22117 * opts-global.c (decode_options): Print help for all
22118 help_option_arguments.
22119 * opts.c (print_help): Add new argument.
22120 (common_handle_option): Remember all values into
22121 help_option_arguments.
22122 * opts.h (print_help): Add new argument.
22123
22124 2019-05-28 Martin Liska <mliska@suse.cz>
22125
22126 PR ipa/90555
22127 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
22128 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
22129 (func_checker::compare_bb): Call compare_loops.
22130
22131 2019-05-27 Jakub Jelinek <jakub@redhat.com>
22132
22133 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
22134 on sections construct.
22135 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
22136 construct.
22137 (lower_omp_sections): Handle lastprivate conditional.
22138 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
22139 lastprivate_conditional_map.
22140 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
22141
22142 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
22143 critical, taskgroup and section regions when looking for a region
22144 with non-NULL lastprivate_conditional_map.
22145
22146 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
22147
22148 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
22149 (*ix86_gen_sub3): Ditto.
22150 (*ix86_gen_sub3_carry): Ditto.
22151 (*ix86_gen_one_cmpl2): Ditto.
22152 (*ix86_gen_andsp): Ditto.
22153 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
22154 (gen_and2_insn): New static function.
22155 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
22156 Use gen_add3_insn instead of ix86_gen_add3.
22157 (ix86_expand_split_stack_prologue): Use gen_add2_insn
22158 instead of ix86_gen_add3.
22159 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
22160 Use gen_sub3_insn instead of ix86_gen_sub3.
22161 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
22162 instead of ix86_gen_add3.
22163 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
22164 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
22165 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
22166 * config/i386/i386-options.c (ix86_option_override_internal):
22167 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
22168 ix86_gen_one_cmpl2 and ix86_gen_andsp.
22169
22170 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
22171
22172 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
22173 and DW_OP_GNU_const_index opcodes.
22174
22175 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
22176
22177 * config/i386/i386.h (STACK_SIZE_MODE): Define.
22178
22179 2019-05-27 Richard Biener <rguenther@suse.de>
22180
22181 PR tree-optimization/90637
22182 * tree-ssa-sink.c (statement_sink_location): Honor the
22183 computed sink location for single-uses.
22184
22185 2019-05-27 Richard Biener <rguenther@suse.de>
22186
22187 PR middle-end/90610
22188 * match.pd (vec_perm): Avoid clobbering op0 when not generating
22189 a bit-insert.
22190
22191 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
22192
22193 * config/i386/i386.md (@sub<mode>3_carry): Rename
22194 from sub<mode>3_carry.
22195 (@leave_<mode>): New expander.
22196 (*leave): Rename from leave.
22197 (*leave_rex64): Rename from leave_rex64.
22198 (@monitorx_<mode>): Rename from monitorx_<mode>.
22199 (@clzero_<mode>): Rename from clzero_<mode>.
22200 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
22201 from sse3_monitor_<mode>.
22202 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
22203 (*ix86_gen_leave): Ditto.
22204 (*ix86_gen_monitor): Ditto.
22205 (*ix86_gen_monitorx): Ditto.
22206 (*ix86_gen_clzero): Ditto.
22207 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
22208 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
22209 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
22210 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
22211 Use gen_sse3_monitor instead of ix86_gen_monitor.
22212 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
22213 instead of ix86_gen_monitorx.
22214 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
22215 instead of ix86_gen_clzero.
22216 * config/i386/i386-options.c (ix86_option_override_internal):
22217 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
22218 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
22219
22220 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
22221
22222 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
22223 Rename from tls_global_dynamic_64_<mode>.
22224 (@tls_local_dynamic_base_64_<mode>): Rename from
22225 tls_local_dynamic_base_64_<mode>.
22226 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
22227 Remove indirect function.
22228 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
22229 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
22230 instead of ix86_gen_tls_global_dynamic_64.
22231 Use gen_tls_local_dynamic_base_64 instead of
22232 ix86_gen_tls_local_dynamic_base_64.
22233 * config/i386/i386-options.c (ix86_option_override_internal):
22234 Do not initialize ix86_gen_tls_global_dynamic_64 and
22235 ix86_gen_tls_local_dynamic_base_64.
22236
22237 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
22238
22239 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
22240 Rename from pro_epilogue_adjust_stack_<mode>_add.
22241 (@pro_epilogue_adjust_stack_sub_<mode>)
22242 Rename from pro_epilogue_adjust_stack_<mode>_sub.
22243 (@allocate_stack_worker_probe_<mode>):
22244 Rename from allocate_stack_worker_probe_<mode>.
22245 (allocate_stack): Use gen_allocate_stack_worker_probe.
22246 (probe_stack): Use gen_probe_stack_1.
22247 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
22248 (@adjust_stack_and_probe_<mode>): Rename from
22249 adjust_stack_and_probe<mode>.
22250 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
22251 (stack_protect_set): Use gen_stack_protect_set_1.
22252 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
22253 (stack_protect_test): Use gen_stack_protect_test_1.
22254 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
22255 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
22256 Remove indirect function.
22257 (*ix86_gen_adjust_stack_and_probe): Ditto.
22258 (*ix86_gen_probe_stack_range): Ditto.
22259 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
22260 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
22261 (ix86_adjust_stack_and_probe_stack_clash): Use
22262 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
22263 (ix86_adjust_stack_and_probe): Ditto.
22264 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
22265 of ix86_gen_probe_stack_range.
22266 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
22267 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
22268 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
22269 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
22270 CODE_FOR_stack_protect_test_{si,di}.
22271 * config/i386/i386-options.c (ix86_option_override_internal):
22272 Do not initialize ix86_gen_allocate_stack_worker,
22273 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
22274
22275 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
22276
22277 * doc/invoke.texi (Link Options): Many editorial changes around
22278 -flinker-output.
22279
22280 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22281
22282 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
22283 pre-Solaris 11 referene and most Studio compiler details.
22284
22285 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
22286
22287 PR target/90530
22288 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
22289 DImode to SImode in floating-point registers on 64-bit target.
22290 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
22291 register_operand in xmpyu patterns.
22292
22293 2019-05-24 Jakub Jelinek <jakub@redhat.com>
22294
22295 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
22296 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
22297 OMP_CLAUSE__REDUCTEMP_.
22298 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22299 OMP_CLAUSE__CONDTEMP_.
22300 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
22301 * tree-pretty-print.c (dump_omp_clause): Likewise.
22302 * tree-nested.c (convert_nonlocal_omp_clauses,
22303 convert_local_omp_clauses): Likewise.
22304 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
22305 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
22306 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
22307 on OMP_FOR.
22308 (gimplify_omp_for): Warn and disable conditional modifier from
22309 lastprivate on loop iterators.
22310 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
22311 member.
22312 * omp-general.c (omp_extract_for_data): Initialize it.
22313 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
22314 member.
22315 (delete_omp_context): Delete it.
22316 (lower_lastprivate_conditional_clauses): New function.
22317 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
22318 handle lastprivate conditional clauses.
22319 (lower_reduction_clauses): Add CLIST argument, emit it into
22320 the critical section if any.
22321 (lower_omp_sections): Adjust lower_lastprivate_clauses and
22322 lower_reduction_clauses callers.
22323 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
22324 to lower_lastprivate_clauses.
22325 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
22326 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
22327 clist into a critical section if not emitted there already by
22328 lower_reduction_clauses.
22329 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
22330 callers.
22331 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
22332 conditional variables.
22333 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
22334 clause is present.
22335 (expand_omp_for_generic, expand_omp_for_static_nochunk,
22336 expand_omp_for_static_chunk): Handle lastprivate conditional.
22337 (expand_omp_for): Handle fd.lastprivate_conditional like
22338 fd.have_reductemp.
22339
22340 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
22341
22342 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
22343 kernel does not exit cleanly.
22344 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
22345
22346 2019-05-24 Jason Merrill <jason@redhat.com>
22347
22348 Revert:
22349 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
22350
22351 2019-05-24 Richard Biener <rguenther@suse.de>
22352
22353 PR testsuite/90607
22354 * tree-loop-distribution.c (struct partition): Add location
22355 member.
22356 (partition_alloc): Initialize all fields.
22357 (generate_memset_builtin): Use the location recorded in the
22358 partition for the generated call.
22359 (generate_memcpy_builtin): Likewise.
22360 (classify_partition): Record the location of a single store
22361 as location for the partition.
22362
22363 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
22364
22365 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
22366 for lo-part.
22367
22368 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
22369
22370 PR target/90588
22371 * common/config/aarch64/aarch64-common.c
22372 (aarch64_rewrite_selected_cpu): Change local temporary variable
22373 type from unsigned long to uint64_t.
22374 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
22375 aarch64_get_extension_string_for_isa_flags): Change declaration to
22376 match new definition by replacing unsigned long with uint64_t.
22377
22378 2019-05-24 Jakub Jelinek <jakub@redhat.com>
22379
22380 PR target/90568
22381 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
22382 gen_attr_type just once instead of 4-7 times. Formatting fixes.
22383 Handle stack_protect_test_<mode> codegen similarly to corresponding
22384 sub instruction.
22385
22386 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
22387
22388 * config/i386/darwin.h: Reject -mfentry*.
22389 * doc/sourcebuild.texi: Document mfentry target support.
22390
22391 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
22392
22393 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
22394 Rename to rs6000_global_entry_point_prologue_needed_p. Return
22395 false for PC-relative functions.
22396 (rs6000_output_function_prologue): Change called function name to
22397 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
22398 name,1" for PC-relative functions.
22399 (rs6000_elf_declare_function_name): Change called function name to
22400 rs6000_global_entry_point_prologue_needed_p.
22401
22402 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
22403
22404 PR target/90552
22405 * config/i386/i386.c (gen_rtx_cost):
22406 Use ix86_tune_cost instead of ix86_cost.
22407
22408 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
22409 Michael Meissner <meissner@linux.ibm.com>
22410 Segher Boessenkool <segher@kernel.crashing.org>
22411
22412 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
22413 OPTION_MASK_PCREL.
22414 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
22415 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
22416 (rs6000_fndecl_pcrel_p): Likewise.
22417 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
22418 error if -mpcrel is requested without -mcpu=future.
22419 (rs6000_opt_masks): Add entry for pcrel.
22420 (rs6000_fndecl_pcrel_p): New function.
22421 (rs6000_pcrel_p): Likewise.
22422 * config/rs6000/rs6000.opt (mpcrel): New option.
22423 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
22424
22425 2019-05-23 Jan Hubicka <jh@suse.cz>
22426 Martin Liska <mliska@suse.cz>
22427
22428 PR tree-optimization/90576
22429 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
22430 poly_int_tree_p.
22431 (aliasing_component_refs_p): Fix three way size compare conditional;
22432 give up earlier in case we can not decide on equivalence.
22433
22434 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
22435 Michael Meissner <meissner@linux.ibm.com>
22436 Segher Boessenkool <segher@kernel.crashing.org>
22437
22438 * config.gcc: Add future cpu.
22439 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
22440 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
22441 #define.
22442 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
22443 (RS6000_CPU): New instantiation for future cpu.
22444 * config/rs6000/rs6000-opts.h (enum processor_type): Add
22445 PROCESSOR_FUTURE.
22446 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
22447 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
22448 * config/rs6000/rs6000-tables.opt: Regenerate.
22449 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
22450 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
22451 (rs6000_machine_from_flags): Handle future cpu.
22452 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
22453 PROCESSOR_POWER9 for now.
22454 (rs6000_adjust_cost): Likewise.
22455 (rs6000_issue_rate): Likewise.
22456 (rs6000_register_move_cost): Likewise.
22457 (rs6000_opt_masks): Add entry for future.
22458 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
22459 (MASK_FUTURE): New #define.
22460 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
22461 * config/rs6000/rs6000.opt (mfuture): New target option.
22462 * doc/invoke.texi (mcpu): Add future cpu.
22463
22464 2019-05-23 Martin Liska <mliska@suse.cz>
22465
22466 PR c++/90587
22467 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
22468 operation points to a temporary (pointed via tree_to_wide_ref)
22469 that is out of scope after the &.
22470
22471 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
22472
22473 PR c++/90592
22474 * doc/extend.texi (Function Names): Add missing word.
22475
22476 2019-05-23 Richard Biener <rguenther@suse.de>
22477
22478 PR tree-optimization/88440
22479 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
22480 at -O[2s]+.
22481 * tree-loop-distribution.c (generate_memset_builtin): Fold the
22482 generated call.
22483 (generate_memcpy_builtin): Likewise.
22484 (distribute_loop): Pass in whether to only distribute patterns.
22485 (prepare_perfect_loop_nest): Also allow size optimization.
22486 (pass_loop_distribution::execute): When optimizing a loop
22487 nest for size allow pattern replacement.
22488
22489 2019-05-23 Jakub Jelinek <jakub@redhat.com>
22490
22491 PR target/90568
22492 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
22493 of xor.
22494
22495 2019-05-23 Martin Liska <mliska@suse.cz>
22496
22497 PR sanitizer/90570
22498 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
22499 expression similarly to gimplify_decl_expr.
22500
22501 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22502
22503 * cse.c (cse_dump_path): s/dump_file/f.
22504
22505 2019-05-22 David Malcolm <dmalcolm@redhat.com>
22506
22507 PR c++/90462
22508 * diagnostic-format-json.cc: Include "selftest.h".
22509 (json_from_expanded_location): Only add "file" key for non-NULL
22510 file strings.
22511 (json_from_location_range): Don't add "start" and "finish"
22512 children if they are UNKNOWN_LOCATION.
22513 (selftest::test_unknown_location): New selftest.
22514 (selftest::test_bad_endpoints): New selftest.
22515 (selftest::diagnostic_format_json_cc_tests): New function.
22516 * json.cc (json::object::get): New function.
22517 (selftest::test_object_get): New selftest.
22518 (selftest::json_cc_tests): Call it.
22519 * json.h (json::object::get): New decl.
22520 * selftest-run-tests.c (selftest::run_tests): Call
22521 selftest::diagnostic_format_json_cc_tests.
22522 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
22523 decl.
22524
22525 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
22526 Andrew Stubbs <amd@codesourcery.com>
22527
22528 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
22529 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
22530 (kernel): Rename to...
22531 (main_kernel): ... this.
22532 (load_image): Load _init_array and _fini_array kernels.
22533 (run): Add argument for kernel to run.
22534 (main): Run init_array_kernel before main_kernel, and
22535 fini_array_kernel after.
22536 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
22537 amdgpu_hsa_kernel attribute on functions.
22538 (gcn_disable_constructors): Delete.
22539 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
22540 * config/gcn/crt0.c (size_t): Define.
22541 (_init_array, _fini_array): New.
22542 (__preinit_array_start, __preinit_array_end,
22543 __init_array_start, __init_array_end,
22544 __fini_array_start, __fini_array_end): Declare weak references.
22545
22546 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
22547
22548 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
22549
22550 2019-05-22 Jason Merrill <jason@redhat.com>
22551
22552 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
22553
22554 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
22555
22556 PR target/88483
22557 * config/i386/i386-options.c (ix86_init_machine_status): Set
22558 stack_frame_required to true.
22559 * config/i386/i386.c (ix86_get_frame_size): New function.
22560 (ix86_frame_pointer_required): Replace get_frame_size with
22561 ix86_get_frame_size.
22562 (ix86_compute_frame_layout): Likewise.
22563 (ix86_find_max_used_stack_alignment): Changed to void. Set
22564 stack_frame_required.
22565 (ix86_finalize_stack_frame_flags): Always call
22566 ix86_find_max_used_stack_alignment. Replace get_frame_size with
22567 ix86_get_frame_size.
22568 * config/i386/i386.h (machine_function): Add stack_frame_required.
22569
22570 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
22571
22572 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
22573
22574 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
22575
22576 * common/config/aarch64/aarch64-common.c
22577 (struct aarch64_option_extension, struct processor_name_to_arch,
22578 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
22579 aarch64_contains_opt,
22580 aarch64_get_extension_string_for_isa_flags): Change type of
22581 variables storing flags to uint64_t.
22582 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
22583 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
22584 * config/aarch64/aarch64.c (struct processor,
22585 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
22586 aarch64_validate_march, aarch64_override_options,
22587 aarch64_option_print, aarch64_handle_attr_isa_flags,
22588 aarch64_declare_function_name, aarch64_start_file): Make flag
22589 variables uint64_t.
22590 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
22591 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
22592 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
22593 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
22594 * config/aarch64/driver-aarch64.c
22595 (struct aarch64_arch_extension, struct aarch64_core_data,
22596 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
22597 flag variables uint64_t.
22598 * doc/invoke.texi: Add documentation for new arguments.
22599
22600 2019-05-22 Richard Biener <rguenther@suse.de>
22601
22602 * alias.c (ao_ref_from_mem): Move stack-slot sharing
22603 rewrite ...
22604 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
22605
22606 2019-05-22 Martin Liska <mliska@suse.cz>
22607
22608 PR lto/90500
22609 * doc/extend.texi: Document the change.
22610
22611 2019-05-22 Richard Biener <rguenther@suse.de>
22612
22613 PR tree-optimization/90450
22614 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
22615 (mem_ref_hasher::equal): Check it.
22616 (mem_ref_alloc): Initialize it.
22617 (gather_mem_refs_stmt): Set it.
22618
22619 2019-05-22 Richard Biener <rguenther@suse.de>
22620
22621 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
22622 Add ABS_EXPR.
22623 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
22624 as ABSU_EXPR.
22625
22626 2019-05-22 Alan Modra <amodra@gmail.com>
22627
22628 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
22629 (ASM_CPU_SPEC): Conditionally add -many.
22630 * config/rs6000/rs6000.c (rs6000_machine): New static var.
22631 (rs6000_machine_from_flags, emit_asm_machine): New functions..
22632 (rs6000_file_start): ..extracted from here, and modified to
22633 test all ISA bits.
22634 (rs6000_output_function_prologue): Emit .machine as necessary.
22635
22636 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
22637
22638 PR middle-end/90553
22639 * ira-lives.c (process_bb_node_lives): Consider defs
22640 for a call insn to be die before the call, not after.
22641
22642 * function.c (assign_parm_setup_block): Raise alignment of
22643 stacked parameter only for STRICT_ALIGNMENT targets.
22644
22645 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
22646
22647 * config/rs6000/constraints.md (define_register_constraint "wz"):
22648 Delete.
22649 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22650 RS6000_CONSTRAINT_wz.
22651 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22652 (rs6000_init_hard_regno_mode_ok): Adjust.
22653 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
22654 * doc/md.texi (Machine Constraints): Adjust.
22655
22656 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
22657
22658 * config/rs6000/constraints.md (define_register_constraint "wl"):
22659 Delete.
22660 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22661 RS6000_CONSTRAINT_wl.
22662 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22663 (rs6000_init_hard_regno_mode_ok): Adjust.
22664 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
22665 * doc/md.texi (Machine Constraints): Adjust.
22666
22667 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
22668
22669 * config/rs6000/constraints.md (define_register_constraint "wm"):
22670 Delete.
22671 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22672 RS6000_CONSTRAINT_wm.
22673 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22674 (rs6000_init_hard_regno_mode_ok): Adjust.
22675 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
22676 * doc/md.texi (Machine Constraints): Adjust.
22677
22678 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
22679
22680 * config/rs6000/constraints.md (define_register_constraint "wk"):
22681 Delete.
22682 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22683 RS6000_CONSTRAINT_wk.
22684 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22685 (rs6000_init_hard_regno_mode_ok): Adjust.
22686 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
22687 * doc/md.texi (Machine Constraints): Adjust.
22688
22689 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
22690
22691 * config/rs6000/constraints.md (define_register_constraint "wj"):
22692 Delete.
22693 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22694 RS6000_CONSTRAINT_wj.
22695 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22696 (rs6000_init_hard_regno_mode_ok): Adjust.
22697 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
22698 (VS_64dm): Delete.
22699 * config/rs6000/vsx.md: Ditto.
22700 * doc/md.texi (Machine Constraints): Adjust.
22701
22702 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
22703
22704 * config/rs6000/constraints.md (define_register_constraint "wh"):
22705 Delete.
22706 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22707 RS6000_CONSTRAINT_wh.
22708 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22709 (rs6000_init_hard_regno_mode_ok): Adjust.
22710 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
22711 * doc/md.texi (Machine Constraints): Adjust.
22712
22713 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
22714
22715 PR target/90547
22716 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
22717 Avoid calling gen_lowpart with CONST operand.
22718
22719 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
22720
22721 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
22722 field template_last_to_copy.
22723 (ssa_create_duplicates): Set it, and use it. Attempt to
22724 preserve more debug stmts.
22725
22726 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
22727
22728 * config/i386/sse.md (VF1_AVX2): New mode iterator.
22729 (signbit<mode>2): New expander
22730
22731 2019-05-21 James Clarke <jrtc27@jrtc27.com>
22732
22733 PR bootstrap/87338
22734 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
22735 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
22736
22737 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
22738
22739 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
22740 %ebx and %ecx bafore calling cpuid with leaf 1 or
22741 non-constant leaf argument.
22742
22743 2019-05-21 Alan Modra <amodra@gmail.com>
22744
22745 PR target/90545
22746 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
22747 power9 direct move cost.
22748
22749 2019-05-21 Richard Biener <rguenther@suse.de>
22750
22751 PR middle-end/90510
22752 * fold-const.c (fold_read_from_vector): New function.
22753 * fold-const.h (fold_read_from_vector): Declare.
22754 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
22755 single-element insert permutations. Canonicalize selector
22756 further and fix issue with last commit.
22757
22758 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
22759
22760 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
22761 parameter with default value false to declaration.
22762 (split_edges_for_insertion): New inline function. Wrapper for
22763 split_critical_edges with for_edge_insertion_p = true.
22764 * tree-cfg.c (split_critical_edges): Don't split non-critical
22765 edges if for_edge_insertion_p is false. Fix whitespace.
22766 * tree-ssa-pre.c (pass_pre::execute): Call
22767 split_edges_for_insertion instead of split_critical_edges.
22768 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
22769 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
22770 (pass_data_sink_code): Update function name in the comment.
22771
22772 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
22773
22774 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
22775 around is_value_included_in that knows how to handle BIT_AND_EXPR.
22776 (is_pred_expr_subset_of): Use the new function. Handle more cases where
22777 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
22778 positives.
22779
22780 2019-05-21 Martin Liska <mliska@suse.cz>
22781
22782 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
22783 an extra newline.
22784 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
22785 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
22786 vec_lvsr.
22787 * config/rs6000/rs6000.c (rs6000_option_override_internal):
22788 Quote a C type.
22789 (rs6000_function_arg): Likewise.
22790 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
22791 (rs6000_expand_ternop_builtin): Use interval syntax.
22792 (get_element_number): Likewise.
22793 (altivec_expand_builtin): Likewise.
22794 (rs6000_get_function_versions_dispatcher): Quote target_clones.
22795
22796 2019-05-20 Jakub Jelinek <jakub@redhat.com>
22797
22798 PR c++/59813
22799 PR target/90418
22800 * function.h (struct function): Add calls_eh_return member.
22801 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
22802 gimplifying __builtin_eh_return call.
22803 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
22804 to cfun.
22805 (expand_call_inline): Or in src_cfun->calls_eh_return into
22806 dst_cfun->calls_eh_return.
22807 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
22808 cfun->calls_eh_return.
22809 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
22810 * lto-streamer-out.c (output_struct_function_base): Write
22811 calls_eh_return.
22812
22813 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
22814
22815 PR rtl-optimization/43147
22816 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
22817 IX86_BUILTIN_SHUFPD.
22818
22819 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
22820
22821 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
22822 (refs_may_alias_p_1): ... here; update stats.
22823 (refs_may_alias_p): Do not update stats here.
22824
22825 2019-05-20 Richard Biener <rguenther@suse.de>
22826
22827 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
22828 doesn't produce pointers.
22829 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
22830 the first operand points to.
22831
22832 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
22833
22834 * tree-ssa-alias.c (compare_sizes): New function.
22835 (sompare_type_sizes): New function
22836 (aliasing_component_refs_p): Use it.
22837 (indirect_ref_may_alias_decl_p): Likewise.
22838
22839 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22840
22841 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
22842
22843 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22844
22845 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
22846 (LIBLSAN_EARLY_SPEC): Likewise.
22847 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
22848
22849 2019-05-20 Martin Liska <mliska@suse.cz>
22850
22851 * config/i386/i386.c (ix86_libc_has_fast_function):
22852 Add ATTRIBUTE_UNUSED for the argument.
22853
22854 2019-05-20 Richard Biener <rguenther@suse.de>
22855
22856 * gimple-match-head.c: Include vec-perm-indices.h.
22857 * generic-match-head.c: Likewise.
22858 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
22859 is included.
22860 * fold-const.c (fold_vec_perm): Export.
22861 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
22862 (match.pd): ...here.
22863
22864 2019-05-20 Jakub Jelinek <jakub@redhat.com>
22865
22866 * cfgloop.h (struct loop): Add simdlen member.
22867 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
22868 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
22869 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
22870 as new argument to autovectorize_vector_sizes target hook. If
22871 loop->simdlen, pick up vector size where the vectorization factor
22872 is equal to loop->simd, and if there is none, fall back to the first
22873 successful one.
22874 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
22875 caller.
22876 * omp-low.c (omp_clause_aligned_alignment): Likewise.
22877 * omp-general.c (omp_max_vf): Likewise.
22878 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
22879 * tree-vect-slp.c (vect_slp_bb): Likewise.
22880 * target.def (autovectorize_vector_sizes): Add ALL argument and
22881 document it.
22882 * doc/tm.texi: Adjust documentation.
22883 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
22884 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
22885 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
22886 bool argument.
22887 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
22888 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
22889 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
22890 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
22891 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
22892 preferred vector size is not 512-bit or 256-bit, just put those
22893 unpreferred ones last.
22894
22895 2019-05-20 Martin Liska <mliska@suse.cz>
22896
22897 * targhooks.c (default_libc_has_fast_function): New function.
22898 * targhooks.h (default_libc_has_fast_function): Likewise.
22899
22900 2019-05-20 Martin Liska <mliska@suse.cz>
22901
22902 PR middle-end/90263
22903 * builtins.c (expand_builtin_memory_copy_args): When having a
22904 target with fast mempcpy implementation do now use memcpy.
22905 * config/i386/i386.c (ix86_libc_has_fast_function): New.
22906 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
22907 * doc/tm.texi: Likewise.
22908 * doc/tm.texi.in: Likewise.
22909 * target.def:
22910 * expr.c (emit_block_move_hints): Add 2 new arguments.
22911 * expr.h (emit_block_move_hints): Bail out when libcall
22912 to memcpy would be used.
22913
22914 2019-05-20 Martin Liska <mliska@suse.cz>
22915
22916 * profile-count.c: Add vertical spacing in order
22917 to separate functions.
22918 * profile-count.h: Likewise.
22919
22920 2019-05-20 Martin Liska <mliska@suse.cz>
22921
22922 * profile-count.h: Do not use full qualified
22923 names if possible.
22924 * profile-count.c (profile_count::to_frequency): Likewise.
22925
22926 2019-05-20 Martin Liska <mliska@suse.cz>
22927
22928 * profile-count.h (enum profile_quality): Use capital letters
22929 for enum value names. Use the adjusted names.
22930 * profile-count.c: Use the adjusted names.
22931
22932 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22933
22934 * config/rs6000/constraints.md (define_register_constraint "wH"):
22935 Delete.
22936 (define_register_constraint "wI"): Delete.
22937 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22938 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
22939 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22940 (rs6000_init_hard_regno_mode_ok): Adjust.
22941 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
22942 resp. "d", or with "wa" as appropriate, all with "p8v".
22943 * config/rs6000/vsx.md: Ditto.
22944 * doc/md.texi (Machine Constraints): Adjust.
22945
22946 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22947
22948 * config/rs6000/constraints.md (define_register_constraint "wy"):
22949 Delete.
22950 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22951 RS6000_CONSTRAINT_wy.
22952 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22953 (rs6000_init_hard_regno_mode_ok): Adjust.
22954 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
22955 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
22956 (define_mode_attr Fisa): New.
22957 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
22958 * doc/md.texi (Machine Constraints): Adjust.
22959
22960 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22961
22962 * config/rs6000/constraints.md (define_register_constraint "wu"):
22963 Delete.
22964 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22965 RS6000_CONSTRAINT_wu.
22966 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22967 (rs6000_init_hard_regno_mode_ok): Adjust.
22968 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
22969 both with "p8v".
22970 (define_mode_attr Fa): Delete.
22971 * config/rs6000/vsx.md: Ditto.
22972 * doc/md.texi (Machine Constraints): Adjust.
22973
22974 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22975
22976 * config/rs6000/constraints.md (define_register_constraint "wJ"):
22977 Delete.
22978 (define_register_constraint "wK"): Delete.
22979 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22980 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
22981 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22982 (rs6000_init_hard_regno_mode_ok): Adjust.
22983 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
22984 Replace "wK" constraint by "wH" with "p9v".
22985 * config/rs6000/vsx.md: Ditto.
22986 * doc/md.texi (Machine Constraints): Adjust.
22987
22988 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22989
22990 * config/rs6000/constraints.md (define_register_constraint "wb"):
22991 Delete.
22992 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22993 RS6000_CONSTRAINT_wb.
22994 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22995 (rs6000_init_hard_regno_mode_ok): Adjust.
22996 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
22997 * config/rs6000/vsx.md: Ditto.
22998 * doc/md.texi (Machine Constraints): Adjust.
22999
23000 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23001
23002 * config/rs6000/constraints.md (define_register_constraint "wo"):
23003 Delete.
23004 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23005 RS6000_CONSTRAINT_wo.
23006 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23007 (rs6000_init_hard_regno_mode_ok): Adjust.
23008 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
23009 * config/rs6000/altivec.md: Ditto.
23010 * doc/md.texi (Machine Constraints): Adjust.
23011
23012 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
23013
23014 * config/darwin-c.c (darwin_register_objc_includes): Do not
23015 prepend the sysroot when building gnu-runtime header search
23016 paths.
23017
23018 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
23019
23020 * config/darwin.c (darwin_file_end): Use switch_to_section ()
23021 instead of direct output of the asm.
23022
23023 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
23024
23025 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
23026 argument to be type bool (was int before).
23027 (rs6000_emit_epilogue): Simplify some code. Declare some variables
23028 at first use. Use type bool for some variables. Fix a theoretical
23029 eh_return bug for svr4.
23030
23031 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
23032
23033 * config/rs6000/rs6000.md (isa): New attribute.
23034 (enabled): New attribute.
23035
23036 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
23037
23038 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
23039 assemble_start_function and assemble_end_function.
23040
23041 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
23042
23043 PR middle-end/89433
23044 * omp-general.c (oacc_verify_routine_clauses): Change formal
23045 parameters. Add checking if already marked with an OpenACC
23046 'routine' directive. Adjust all users.
23047
23048 PR middle-end/89433
23049 * omp-general.c (oacc_build_routine_dims): Move some of its
23050 processing into...
23051 (oacc_verify_routine_clauses): ... this new function.
23052 * omp-general.h (oacc_verify_routine_clauses): New prototype.
23053
23054 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
23055
23056 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
23057 formating of picbase labels to match other ports.
23058
23059 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
23060
23061 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
23062 in the generated code.
23063
23064 2019-05-16 Martin Sebor <msebor@redhat.com>
23065
23066 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
23067 identifiers, keywords, operators, and types in diagnostics. Correct
23068 quoting, spelling, and sentence capitalization issues.
23069 (expand_builtin_atomic_is_lock_free): Same.
23070 (fold_builtin_next_arg): Same.
23071 * cfgexpand.c (expand_one_var): Same.
23072 (tree_conflicts_with_clobbers_p): Same.
23073 (expand_asm_stmt): Same.
23074 (verify_loop_structure): Same.
23075 * cgraphunit.c (process_function_and_variable_attributes): Same.
23076 * collect-utils.c (collect_execute): Same.
23077 * collect2.c (maybe_run_lto_and_relink): Same.
23078 (is_lto_object_file): Same.
23079 (scan_prog_file): Same.
23080 * convert.c (convert_to_real_1): Same.
23081 * dwarf2out.c (dwarf2out_begin_prologue): Same.
23082 * except.c (verify_eh_tree): Same.
23083 * gcc.c (execute): Same.
23084 (eval_spec_function): Same.
23085 (run_attempt): Same.
23086 (driver::set_up_specs): Same.
23087 (compare_debug_auxbase_opt_spec_function): Same.
23088 * gcov-tool.c (unlink_gcda_file): Same.
23089 (do_merge): Same.
23090 (do_rewrite): Same.
23091 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
23092 * gimplify.c (gimplify_asm_expr): Same.
23093 (gimplify_adjust_omp_clauses): Same.
23094 * hsa-gen.c (gen_hsa_addr_insns): Same.
23095 (gen_hsa_insns_for_load): Same.
23096 (gen_hsa_cmp_insn_from_gimple): Same.
23097 (gen_hsa_insns_for_operation_assignment): Same.
23098 (gen_get_level): Same.
23099 (gen_hsa_alloca): Same.
23100 (omp_simple_builtin::generate): Same.
23101 (gen_hsa_atomic_for_builtin): Same.
23102 (gen_hsa_insns_for_call): Same.
23103 * input.c (dump_location_info): Same.
23104 * ipa-devirt.c (compare_virtual_tables): Same.
23105 * ira.c (ira_setup_eliminable_regset): Same.
23106 * lra-assigns.c (lra_assign): Same.
23107 * lra-constraints.c (lra_constraints): Same.
23108 * lto-streamer-in.c (lto_input_mode_table): Same.
23109 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
23110 (merge_and_complain): Same.
23111 (compile_offload_image): Same.
23112 (compile_images_for_offload_targets): Same.
23113 (debug_objcopy): Same.
23114 (run_gcc): Same.
23115 (main): Same.
23116 * opts.c (print_specific_help): Same.
23117 (parse_no_sanitize_attribute): Same.
23118 (print_help): Same.
23119 (handle_param): Same.
23120 * plugin.c (add_new_plugin): Same.
23121 (parse_plugin_arg_opt): Same.
23122 (try_init_one_plugin): Same.
23123 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
23124 operators, and types in diagnostics. Correct quoting and spelling
23125 issues.
23126 * read-rtl-function.c (parse_edge_flag_token): Same.
23127 (function_reader::parse_enum_value): Same.
23128 * reg-stack.c (check_asm_stack_operands): Same.
23129 * regcprop.c (validate_value_data): Same.
23130 * sched-rgn.c (make_pass_sched_fusion): Same.
23131 * stmt.c (check_unique_operand_names): Same.
23132 * targhooks.c (default_target_option_pragma_parse): Same.
23133 * tlink.c (recompile_files): Same.
23134 * toplev.c (process_options): Same.
23135 (do_compile): Same.
23136 * trans-mem.c (diagnose_tm_1): Same.
23137 (ipa_tm_scan_irr_block): Same.
23138 (ipa_tm_diagnose_transaction): Same.
23139 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
23140 format a tree code name in a diagnostic.
23141 (verify_types_in_gimple_min_lval): Same.
23142 (verify_types_in_gimple_reference): Same.
23143 (verify_gimple_call): Same.
23144 (verify_gimple_assign_unary): Same.
23145 (verify_gimple_assign_binary): Same.
23146 (verify_gimple_assign_ternary): Same.
23147 (verify_gimple_assign_single): Same.
23148 (verify_gimple_switch): Same.
23149 (verify_gimple_label): Same.
23150 (verify_gimple_phi): Same.
23151 (verify_gimple_in_seq): Same.
23152 (verify_eh_throw_stmt_node): Same.
23153 (collect_subblocks): Same.
23154 (gimple_verify_flow_info): Same.
23155 (do_warn_unused_result): Same.
23156 * tree-inline.c (expand_call_inline): Same.
23157 * tree-into-ssa.c (update_ssa): Same.
23158 * tree.c (tree_int_cst_elt_check_failed): Same.
23159 (tree_vec_elt_check_failed): Same.
23160 (omp_clause_operand_check_failed): Same.
23161 (verify_type_variant): Same.
23162 (verify_type): Same.
23163 * value-prof.c (verify_histograms): Same.
23164 * varasm.c (assemble_start_function): Same.
23165
23166 2019-05-16 Martin Sebor <msebor@redhat.com>
23167
23168 * config/i386/i386-expand.c (get_element_number): Quote keywords
23169 and other internal names in diagnostics. Adjust other diagnostic
23170 formatting issues noted by -Wformat-diag.
23171 * config/i386/i386-features.c
23172 (ix86_mangle_function_version_assembler_name): Same.
23173 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
23174 * config/i386/i386.c (ix86_function_type_abi): Same.
23175 (ix86_function_ms_hook_prologue): Same.
23176 (classify_argument): Same.
23177 (ix86_expand_prologue): Same.
23178 (ix86_md_asm_adjust): Same.
23179 (ix86_memmodel_check): Same.
23180
23181 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
23182
23183 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
23184 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
23185 and fpxx modes.
23186
23187 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
23188
23189 PR target/90497
23190 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
23191 intrinsics without SSE/SSE2/SSSE3.
23192 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
23193 check.
23194 (*mmx_uavgv8qi3): Likewise.
23195
23196 2019-05-17 Richard Biener <rguenther@suse.de>
23197
23198 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
23199 VEC_PERM_EXPR as __VEC_PERM with -gimple.
23200
23201 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
23202
23203 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
23204 vec_sldw insn pattern.
23205
23206 2019-05-17 Richard Biener <rguenther@suse.de>
23207
23208 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
23209
23210 2019-05-17 Martin Liska <mliska@suse.cz>
23211
23212 PR driver/90496
23213 * toplev.c (output_stack_usage): With LTO and sanitizer it
23214 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
23215 has no file location.
23216
23217 2019-05-16 Jakub Jelinek <jakub@redhat.com>
23218
23219 PR c++/90484
23220 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
23221 sz0 is equal to sz1, instead return false in that case.
23222
23223 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
23224 has non-constant expression, force sctx.lane and use two
23225 argument IFN_GOMP_SIMD_LANE instead of single argument.
23226 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
23227 two argument IFN_GOMP_SIMD_LANE without lhs.
23228 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
23229 member.
23230 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
23231 Define.
23232 (LOOP_REQUIRES_VERSIONING): Or in
23233 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
23234 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23235 simd_if_cond.
23236 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
23237 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
23238 from simd if clause if needed.
23239
23240 2019-05-16 Richard Biener <rguenther@suse.de>
23241
23242 * tree-affine.c (expr_to_aff_combination): New function split
23243 out from...
23244 (tree_to_aff_combination): ... here.
23245 (aff_combination_expand): Avoid building a GENERIC tree.
23246
23247 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
23248
23249 * cgraphunit.c (cgraph_node::expand_thunk): Remove
23250 assemble_start_function and assemble_end_function calls.
23251 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
23252 assemble_start_function and assemble_end_function.
23253 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
23254 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
23255 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
23256 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
23257 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
23258 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
23259 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
23260 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
23261 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
23262 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
23263 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
23264 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
23265 Likewise.
23266 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
23267 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
23268 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
23269 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
23270 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
23271 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
23272 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
23273 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
23274 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
23275 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
23276 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
23277 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
23278 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
23279 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
23280 Likewise.
23281 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
23282 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
23283 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
23284
23285 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
23286
23287 * tree-ssa-alias.c (alias_stats): Add
23288 aliasing_component_refs_p_may_alias and
23289 aliasing_component_refs_p_no_alias.
23290 (dump_alias_stats): Print aliasing_component_refs_p stats.
23291 (aliasing_component_refs_p): Update stats.
23292
23293 2019-05-16 Martin Liska <mliska@suse.cz>
23294
23295 PR lto/90500
23296 * multiple_target.c (expand_target_clones): Do not allow
23297 target_clones being used with a symbol that is an alias.
23298
23299 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
23300
23301 PR tree-optimization/90394
23302 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
23303 positives rather than ICE for cases where (code2 == NE_EXPR
23304 && code1 == BIT_AND_EXPR).
23305
23306 2019-05-16 Jakub Jelinek <jakub@redhat.com>
23307
23308 PR fortran/90329
23309 * tree-core.h (struct tree_decl_common): Document
23310 decl_nonshareable_flag for PARM_DECLs.
23311 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
23312 * calls.c (expand_call): Don't try tail call if caller
23313 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
23314 passed on the stack and callee needs to pass any arguments on the
23315 stack.
23316 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
23317 else if instead of series of mutually exclusive ifs. Handle
23318 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
23319 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
23320
23321 * lto-streamer.h (LTO_major_version): Bump to 9.
23322
23323 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
23324
23325 PR tree-optimization/90106
23326 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
23327 new parameter as new internal function call, also move it to new
23328 basic block.
23329 (use_internal_fn): Pass internal function call to
23330 shrink_wrap_one_built_in_call_with_conds.
23331
23332 2019-05-15 Jakub Jelinek <jakub@redhat.com>
23333
23334 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
23335 max_vf to 1.
23336 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
23337 safelen_int and set loop->dont_vectorize.
23338
23339 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23340
23341 PR target/89021
23342 * config/i386/i386-builtin.def: Enable MMX intrinsics with
23343 SSE/SSE2/SSSE3.
23344 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
23345 Likewise.
23346 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
23347 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
23348 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
23349 is defined.
23350
23351 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23352
23353 PR target/89021
23354 * config/i386/mmx.md (*vec_dupv2sf): Changed to
23355 define_insn_and_split to support SSE emulation.
23356 (*vec_extractv2sf_0): Likewise.
23357 (*vec_extractv2sf_1): Likewise.
23358 (*vec_extractv2si_0): Likewise.
23359 (*vec_extractv2si_1): Likewise.
23360 (*vec_extractv2si_zext_mem): Likewise.
23361 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
23362 (vec_extractv2sf_1 splitter): Likewise.
23363 (vec_extractv2sfsf): Likewise.
23364 (vec_setv2si): Likewise.
23365 (vec_extractv2si_1 splitter): Likewise.
23366 (vec_extractv2sisi): Likewise.
23367 (vec_setv4hi): Likewise.
23368 (vec_extractv4hihi): Likewise.
23369 (vec_setv8qi): Likewise.
23370 (vec_extractv8qiqi): Likewise.
23371 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
23372 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
23373 (vec_extractv2sisi): Likewise.
23374 (vec_extractv4hihi): Likewise.
23375 (vec_extractv8qiqi): Likewise.
23376 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
23377 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
23378 (vec_initv2sisi): Likewise.
23379 (vec_initv4hihi): Likewise.
23380 (vec_initv8qiqi): Likewise.
23381 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
23382 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
23383 (vec_setv4hi): Likewise.
23384 (vec_setv8qi): Likewise.
23385
23386 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23387
23388 PR target/89021
23389 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
23390 TARGET_MMX_WITH_SSE.
23391 (MMXMODE:*mov<mode>_internal): Likewise.
23392 (MMXMODE:movmisalign<mode>): Likewise.
23393
23394 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
23395
23396 PR target/89021
23397 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
23398 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
23399 (sse2_cvtpd2pi): Ditto.
23400 (sse2_cvttpd2pi): Ditto.
23401 (*vec_concatv2sf_sse4_1): Ditto.
23402 (*vec_concatv2sf_sse): Ditto.
23403 (*vec_concatv2si_sse4_1): Ditto.
23404 (*vec_concatv2si): Ditto.
23405 (*vec_concatv4si_0): Ditto.
23406 (*vec_concatv2di_0): Ditto.
23407
23408 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23409
23410 PR target/89021
23411 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
23412
23413 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23414
23415 PR target/89021
23416 * config/i386/sse.md (ssse3_palignrdi): Changed to
23417 define_insn_and_split to support SSE emulation.
23418
23419 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23420
23421 PR target/89021
23422 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
23423
23424 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23425
23426 PR target/89021
23427 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
23428 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
23429 SSE emulation.
23430
23431 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23432
23433 PR target/89021
23434 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
23435 or TARGET_MMX_WITH_SSE.
23436 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
23437
23438 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23439
23440 PR target/89021
23441 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
23442
23443 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23444
23445 PR target/89021
23446 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
23447 Changed to define_insn_and_split to support SSE emulation.
23448
23449 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23450
23451 PR target/89021
23452 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
23453 Changed to define_insn_and_split to support SSE emulation.
23454
23455 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23456
23457 PR target/89021
23458 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
23459 (*mmx_<emms>): This.
23460 (mmx_<emms>): New expander.
23461
23462 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23463
23464 PR target/89021
23465 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
23466 support.
23467 (*sse2_umulv1siv1di3): Add SSE2 emulation.
23468
23469 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23470
23471 PR target/89021
23472 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
23473
23474 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23475
23476 PR target/89021
23477 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
23478
23479 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23480
23481 PR target/89021
23482 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
23483 TARGET_MMX_WITH_SSE.
23484 (*mmx_uavgv4hi3): Add SSE emulation.
23485
23486 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23487
23488 PR target/89021
23489 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
23490 and TARGET_MMX_WITH_SSE.
23491 (*mmx_uavgv8qi3): Add SSE emulation.
23492
23493 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23494
23495 PR target/89021
23496 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
23497 maskmovdqu for __MMX_WITH_SSE__.
23498
23499 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23500
23501 PR target/89021
23502 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
23503 TARGET_MMX and TARGET_MMX_WITH_SSE.
23504 (*mmx_umulv4hi3_highpart): Add SSE emulation.
23505
23506 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23507
23508 PR target/89021
23509 * config/i386/mmx.md (mmx_pmovmskb): Changed to
23510 define_insn_and_split to support SSE emulation.
23511
23512 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23513
23514 PR target/89021
23515 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
23516 and TARGET_MMX_WITH_SSE.
23517 (mmx_<code>v8qi3): Likewise.
23518 (smaxmin:<code>v4hi3): New.
23519 (umaxmin:<code>v8qi3): Likewise.
23520 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
23521 (umaxmin:*mmx_<code>v8qi3): Likewise.
23522
23523 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23524
23525 PR target/89021
23526 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
23527 TARGET_MMX_WITH_SSE.
23528 (*mmx_pinsrw): Add SSE emulation.
23529
23530 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23531
23532 PR target/89021
23533 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
23534
23535 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23536
23537 PR target/89021
23538 * config/i386/sse.md (sse_cvtpi2ps): Changed to
23539 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
23540 SSE emulation.
23541
23542 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23543
23544 PR target/89021
23545 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
23546 (sse_cvttps2pi): Likewise.
23547
23548 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23549
23550 PR target/89021
23551 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
23552 TARGET_MMX_WITH_SSE.
23553 (mmx_pshufw_1): Add SSE emulation.
23554 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
23555 TARGET_MMX_WITH_SSE to support SSE emulation.
23556
23557 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23558
23559 PR target/89021
23560 * config/i386/constraints.md (Yw): New constraint.
23561 * config/i386/mmx.md (*vec_dupv2si): Changed to
23562 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
23563 support SSE emulation.
23564
23565 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23566
23567 PR target/89021
23568 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
23569 TARGET_MMX_WITH_SSE.
23570 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
23571 support.
23572 (mmx_gt<mode>3): Likewise.
23573
23574 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23575
23576 PR target/89021
23577 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
23578 TARGET_MMX_WITH_SSE. Add SSE support.
23579
23580 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23581
23582 PR target/89021
23583 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
23584 TARGET_MMX_WITH_SSE.
23585 (any_logic:<code><mode>3): New.
23586 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
23587 Add SSE support.
23588
23589 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23590
23591 PR target/89021
23592 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
23593 TARGET_MMX_WITH_SSE. Add SSE emulation.
23594 (mmx_<shift_insn><mode>3): Likewise.
23595 (ashr<mode>3): New.
23596 (<shift_insn><mode>3): Likewise.
23597
23598 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23599
23600 PR target/89021
23601 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
23602 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
23603
23604 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23605
23606 PR target/89021
23607 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
23608 TARGET_MMX_WITH_SSE.
23609 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
23610 SSE support.
23611
23612 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23613
23614 PR target/89021
23615 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
23616 TARGET_MMX_WITH_SSE.
23617 (mulv4hi3): New.
23618 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
23619 support.
23620
23621 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23622
23623 PR target/89021
23624 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
23625 (plusminus:mmx_<plusminus_insn><mode>3): Check
23626 TARGET_MMX_WITH_SSE.
23627 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
23628 (<plusminus_insn><mode>3): New.
23629 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
23630 (*mmx_<plusminus_insn><mode>3): Likewise.
23631
23632 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23633
23634 PR target/89021
23635 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
23636 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
23637 prototype.
23638 * config/i386/mmx.m (mmx_punpckhbw): Changed to
23639 define_insn_and_split to support SSE emulation.
23640 (mmx_punpcklbw): Likewise.
23641 (mmx_punpckhwd): Likewise.
23642 (mmx_punpcklwd): Likewise.
23643 (mmx_punpckhdq): Likewise.
23644 (mmx_punpckldq): Likewise.
23645
23646 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23647 Uros Bizjak <ubizjak@gmail.com>
23648
23649 PR target/89021
23650 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
23651 New function.
23652 (ix86_split_mmx_pack): Likewise.
23653 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
23654 New prototype.
23655 (ix86_split_mmx_pack): Likewise.
23656 * config/i386/i386.md (mmx_isa): New.
23657 (enabled): Also check mmx_isa.
23658 * config/i386/mmx.md (any_s_truncate): New code iterator.
23659 (s_trunsuffix): New code attr.
23660 (mmx_packsswb): Removed.
23661 (mmx_packssdw): Likewise.
23662 (mmx_packuswb): Likewise.
23663 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
23664 MMX packsswb/packuswb with SSE2.
23665 (mmx_packssdw): Likewise.
23666 * config/i386/predicates.md (register_mmxmem_operand): New.
23667
23668 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23669
23670 PR target/89021
23671 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23672 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
23673 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
23674 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
23675 (ix86_vector_mode_supported_p): Likewise.
23676 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
23677
23678 2019-05-15 Martin Liska <mliska@suse.cz>
23679
23680 PR middle-end/90478
23681 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
23682 Check for overflow.
23683
23684 2019-05-15 Richard Biener <rguenther@suse.de>
23685
23686 * tree-into-ssa.c (pass_build_ssa::execute): Run
23687 update_address_taken before going into SSA.
23688
23689 2019-05-15 Richard Biener <rguenther@suse.de>
23690
23691 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
23692 as __BIT_FIELD_REF with type with -gimple.
23693
23694 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
23695
23696 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
23697 semantically equivalent branches (left over after prior refactorings).
23698
23699 2019-05-15 Richard Biener <rguenther@suse.de>
23700
23701 PR tree-optimization/88828
23702 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
23703 bogus check.
23704
23705 2019-05-14 Richard Biener <rguenther@suse.de>
23706
23707 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
23708 as __VIEW_CONVERT with -gimple.
23709
23710 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
23711
23712 PR target/82920
23713 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
23714 Darwin.
23715
23716 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
23717
23718 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
23719 define_split to become a define_insn_and_split.
23720
23721 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
23722
23723 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
23724 arguments.
23725 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
23726 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
23727 (sibcall_epilogue): Adjust.
23728 (epilogue): Adjust.
23729
23730 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23731
23732 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
23733 to unsupported ones.
23734 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
23735 * config.host: Likewise.
23736 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
23737 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
23738 __svr4__]: Remove "brand" fallback.
23739 [!KSTAT_DATA_STRING]: Remove.
23740 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
23741 to *-*-solaris2*.
23742 (comdat_group): Likewise.
23743 (set_have_as_tls): Likewise.
23744 (gcc_cv_target_dl_iterate_phdr): Likewise.
23745 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
23746 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
23747 * configure: Regenerate.
23748 * doc/install.texi: Simplify Solaris target triplets.
23749 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
23750 (Specific, *-*-solaris2*): Document Solaris 10 removal.
23751 Remove Solaris 10 references.
23752 Remove obsolete Solaris bug reference.
23753 (Specific, sparc-sun-solaris2.10): Remove.
23754
23755 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
23756
23757 * config/i386/i386.md (any_div): New code iterator.
23758 (paired_mod): New code attribute.
23759 (sgnprefix): Handle DIV and UDIV RTXes.
23760 (u): Ditto.
23761 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
23762 and udivmod<mode>4 patterns using any_div code iterator.
23763 (divmod splitters): Macroize splitters using any_div code iterator.
23764 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
23765 (*udivmodsi4_pow2_zext_2): Ditto.
23766 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
23767 and *udivmod<mode>4_noext patterns using any_div code iterator.
23768 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
23769 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
23770 patterns using any_div code iterator.
23771 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
23772 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
23773 patterns using any_div code iterator.
23774 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
23775 udivmodhiqi3 patterns using any_extend code iterator.
23776
23777 2019-05-14 Richard Biener <rguenther@suse.de>
23778 H.J. Lu <hongjiu.lu@intel.com>
23779
23780 PR tree-optimization/88828
23781 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
23782 permuting in a single non-constant element not extracted
23783 from a vector.
23784
23785 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
23786
23787 * internal-fn.def (SIGNBIT): New.
23788 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
23789 defined.
23790 (signbitv4sf2): Likewise.
23791
23792 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
23793
23794 PR target/90357
23795 * config/mips/mips.c (mips_split_move): Skip forward SRC into
23796 next insn when the SRC reg is dead.
23797
23798 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
23799
23800 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
23801 (alloc_cand_and_find_basis): Ditto.
23802 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
23803 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
23804 (create_add_imm_cand, slsr_process_cast): Ditto.
23805 (slsr_process_copy, replace_mult_candidate): Ditto.
23806 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
23807 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
23808 (pass_strength_reduction::execute): Init the first NULL element.
23809
23810 2019-05-13 Nathan Sidwell <nathan@acm.org>
23811
23812 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
23813 (run_attempt): Reformat line break.
23814
23815 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
23816
23817 PR target/90418
23818 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
23819 data registers in sibcall epilogues.
23820 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
23821
23822 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
23823
23824 PR target/89221
23825 * configure.ac (--enable-frame-pointer):
23826 Disable by default for cygwin and mingw.
23827 * configure: Regenerate.
23828
23829 2019-05-13 Nathan Sidwell <nathan@acm.org>
23830
23831 * dwarf2out.c (breakout_comdat_types): Move comment to correct
23832 piece of code.
23833 (const_ok_for_output_1): Balance parens around #if/#else/#endif
23834 (gen_member_die): Move abstract origin check earlier. Only VARs
23835 can be static_inline_p. Simplify splicing control flow.
23836
23837 2019-05-13 Richard Biener <rguenther@suse.de>
23838
23839 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
23840 VIEW_CONVERT_EXPR.
23841 (vect_build_slp_tree_1): Likewise.
23842
23843 2019-05-13 Richard Biener <rguenther@suse.de>
23844
23845 PR tree-optimization/90402
23846 * tree-if-conv.c (tree_if_conversion): Value number only
23847 the loop body by making the latch an exit of the region
23848 as well.
23849 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
23850 processing PHIs.
23851 (do_rpo_vn): Deal with multiple edges into the entry block
23852 that are not backedges inside the region by skipping PHIs
23853 of the entry block.
23854
23855 2019-05-13 Richard Biener <rguenther@suse.de>
23856
23857 PR tree-optimization/90316
23858 * tree-ssa-pre.c (insert_aux): Fold into ...
23859 (insert): ... this function. Use a RPO walk to reduce the
23860 number of required iterations.
23861
23862 2019-05-13 Martin Liska <mliska@suse.cz>
23863
23864 PR tree-optimization/90416
23865 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
23866 string instead of passing the second part as va_arg argument.
23867
23868 2019-05-13 Martin Liska <mliska@suse.cz>
23869
23870 PR gcov-profile/90380
23871 * gcov.c (handle_cycle): Do not support zero cycle count,
23872 it should not be possible.
23873 (path_contains_zero_cycle_arc): New function.
23874 (circuit): Ignore zero cycle arc counts.
23875
23876 2019-05-13 Martin Liska <mliska@suse.cz>
23877
23878 PR gcov-profile/90380
23879 * gcov.c (enum loop_type): Remove the enum and
23880 the operator.
23881 (handle_cycle): Assert that we should not reach
23882 a negative count.
23883 (circuit): Use loop_found instead of a tri-state loop_type.
23884 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
23885 happen.
23886
23887 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
23888
23889 PR target/82920
23890 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
23891 (ix86_output_indirect_branch_via_reg): Use output mechanism
23892 accounting for __USER_LABEL_PREFIX__.
23893 (ix86_output_indirect_branch_via_push): Likewise.
23894 (ix86_output_function_return): Likewise.
23895 (ix86_output_indirect_function_return): Likewise.
23896
23897 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
23898
23899 * doc/md.texi: Document use of code attributes in rtx patterns.
23900 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
23901 * read-rtl.c (find_code): Split out search loops into...
23902 (maybe_find_code): ...this new function.
23903 (check_code_iterator): Make the error message more informative.
23904 (check_code_attribute): New function.
23905 (rtx_reader::rtx_alloc_for_name): Likewise.
23906 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
23907 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
23908 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
23909 <max_opp> directly as an rtx code instead of via a match_operator.
23910 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
23911 (<su>abd<mode>_3): Update accordingly.
23912
23913 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
23914
23915 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
23916 is given, print the state of the EH "save world" computation for
23917 Darwin.
23918
23919 2019-05-11 Jakub Jelinek <jakub@redhat.com>
23920
23921 PR c++/59813
23922 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
23923 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
23924
23925 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
23926
23927 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
23928 Use pinsrd for TARGET_SSE4_1.
23929 * config/i386/sse.md (movdi_to_sse): Ditto.
23930
23931 2019-05-10 Richard Biener <rguenther@suse.de>
23932
23933 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
23934 (do_rpo_vn): Initialize next_value_id.
23935
23936 2019-05-10 Martin Liska <mliska@suse.cz>
23937
23938 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
23939 Fix plural form.
23940
23941 2019-05-10 Jakub Jelinek <jakub@redhat.com>
23942
23943 PR tree-optimization/90385
23944 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
23945 arguments of the exit phis.
23946
23947 PR c++/90383
23948 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
23949 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
23950 id->do_not_fold.
23951 (copy_tree_body_r): Likewise.
23952 (copy_fn): Set id.do_not_fold to true.
23953
23954 2019-05-10 Martin Liska <mliska@suse.cz>
23955
23956 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
23957 Reapply changes from r269790.
23958
23959 2019-05-10 Martin Liska <mliska@suse.cz>
23960
23961 PR middle-end/90340
23962 * doc/invoke.texi: New params.
23963 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
23964 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
23965 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
23966 Use it.
23967 * tree-switch-conversion.h (struct jump_table_cluster):
23968 Likewise.
23969
23970 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
23971
23972 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
23973
23974 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
23975
23976 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
23977
23978 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
23979
23980 PR rtl-optimization/88879
23981 * sel-sched.c (sel_target_adjust_priority): Remove assert.
23982
23983 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
23984
23985 PR target/90405
23986 * config/arm/arm.c (callee_saved_reg_p): Move before
23987 thumb_find_work_register.
23988 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
23989 thumb_find_work_register. Only call df_get_live_out once.
23990 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
23991 (thumb_find_work_register): Use
23992 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
23993 algorithms to locate a spare call clobbered reg.
23994
23995 2019-05-09 Martin Liska <mliska@suse.cz>
23996
23997 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
23998 and MAX_EXPR in GIMPLE FE format.
23999
24000 2019-05-09 Martin Liska <mliska@suse.cz>
24001
24002 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
24003 * gimple-pretty-print.c (dump_gimple_bb_header):
24004 Dump BB count.
24005 (pp_cfg_jump): Dump edge probability.
24006 * profile-count.c (profile_quality_as_string): Simplify
24007 with a static array.
24008 (parse_profile_quality): New function.
24009 (profile_count::dump): Simplify with a static array.
24010 (profile_count::from_gcov_type): Add new argument.
24011 * profile-count.h (parse_profile_quality): Likewise.
24012 * predict.h (set_hot_bb_threshold): New.
24013 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
24014 New param.
24015 * predict.c (get_hot_bb_threshold): Set from the new param.
24016 (set_hot_bb_threshold): New.
24017
24018 2019-05-09 Richard Biener <rguenther@suse.de>
24019
24020 PR tree-optimization/90395
24021 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
24022 rewrite vector stores that throw internally.
24023
24024 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
24025
24026 * cif-code.def (CHKP): Remove.
24027
24028 PR target/89221
24029 * configure.ac (--enable-frame-pointer): Disable by default for
24030 GNU systems.
24031 * configure: Regenerate.
24032
24033 2019-05-09 Alan Modra <amodra@gmail.com>
24034
24035 PR target/89271
24036 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
24037 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
24038 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
24039 cost for general <-> vsx when direct moves are available.
24040 Cost union classes at minimal cost for any reg in the class.
24041 Correct calculation for moves between vsx, float, and altivec.
24042 Don't return a low cost for moves between special regs. Don't
24043 use hard coded register numbers.
24044 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
24045 (rs6000_ira_change_pseudo_allocno_class): New function.
24046 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
24047 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
24048 alternatives.
24049 (movsi_internal1): Don't disparage vector alternatives.
24050 (mov<mode>_internal): Likewise, excepting alternative that
24051 will be split.
24052 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
24053 we <- b alternative.
24054
24055 2019-05-08 Jakub Jelinek <jakub@redhat.com>
24056
24057 PR c++/59813
24058 PR tree-optimization/89060
24059 * tree-ssa-live.h (live_vars_map): New typedef.
24060 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
24061 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
24062 (struct compute_live_vars_data): New type.
24063 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
24064 live_vars_at_stmt, destroy_live_vars): New functions.
24065 * tree-tailcall.c: Include tree-ssa-live.h.
24066 (live_vars, live_vars_vec): New global variables.
24067 (find_tail_calls): Perform variable life analysis before punting.
24068 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
24069 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
24070 member.
24071 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
24072 Perform variable life analysis to select variables that really need
24073 clobbers added.
24074 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
24075 instead set id->eh_landing_pad_dest and assert it is the same.
24076 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
24077
24078 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
24079 Richard Earnshaw <rearnsha@arm.com>
24080
24081 PR target/88167
24082 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
24083 function.
24084 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
24085 (thumb1_compute_save_core_reg_mask): Don't force a spare work
24086 register if both the epilogue and prologue can use call-clobbered
24087 regs.
24088 (thumb1_unexpanded_epilogue): Use
24089 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
24090 picking temporaries for restoring high regs to match that of the
24091 prologue where possible.
24092 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
24093 the list of work registers. Detect if the return address is still live
24094 at the end of the prologue and avoid using it for a work register if so.
24095 If the return address is not live, add LR to the list of pushable regs
24096 after the first pass.
24097
24098 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
24099
24100 PR tree-optimization/90078
24101 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
24102 (INFTY): Increase the value for infinite cost.
24103 (struct comp_cost): Promote type of members to int64_t.
24104 (infinite_cost): Don't set complexity in initialization.
24105 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
24106 overflows to infinite_cost.
24107 (adjust_setup_cost): Promote type of parameter and cost computation
24108 to int64_t.
24109 (struct ainc_cost_data, struct iv_ca): Promote type of member to
24110 int64_t.
24111 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
24112 cost computation to int64_t.
24113 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
24114 int64_t's format specifier in dump.
24115
24116 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
24117
24118 PR tree-optimization/90240
24119 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
24120 with respect to scaling factor pre-computed for each basic block.
24121 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
24122 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
24123 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
24124 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
24125 live range for array of loop's basic blocks. Cleanup aux field of
24126 loop's basic blocks.
24127
24128 2019-05-08 Jakub Jelinek <jakub@redhat.com>
24129
24130 PR tree-optimization/90356
24131 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
24132
24133 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
24134
24135 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
24136 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
24137 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
24138 (ix86_handle_option): Handle -mavx512bf16.
24139 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
24140 to extra_headers.
24141 * config/i386/avx512bf16vlintrin.h: New.
24142 * config/i386/avx512bf16intrin.h: New.
24143 * config/i386/cpuid.h (bit_AVX512BF16): New.
24144 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
24145 * config/i386/i386-builtin-types.def: Add new types.
24146 * config/i386/i386-builtin.def: Add new builtins.
24147 * config/i386/i386-c.c (ix86_target_macros_internal): Define
24148 __AVX512BF16__.
24149 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
24150 (ix86_option_override_internal): Handle BF16.
24151 (ix86_valid_target_attribute_inner_p): Ditto.
24152 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
24153 * config/i386/i386-builtin.c (enum processor_features): Add
24154 F_AVX512BF16.
24155 (static const _isa_names_table isa_names_table): Ditto.
24156 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
24157 (PTA_AVX512BF16): Ditto.
24158 * config/i386/i386.opt: Add -mavx512bf16.
24159 * config/i386/immintrin.h: Include avx512bf16intrin.h
24160 and avx512bf16vlintrin.h.
24161 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
24162 avx512f_cvtneps2bf16_<mode><mask_name>,
24163 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
24164 * config/i386/subst.md (mask_half): Add new subst.
24165 * doc/invoke.texi: Document -mavx512bf16.
24166
24167 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
24168
24169 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
24170 Delete declaration.
24171 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
24172 (rs6000_debug_legitimize_reload_address): Delete.
24173 (rs6000_legitimize_reload_address_ptr): Delete.
24174 (rs6000_option_override_internal): Adjust.
24175 (mem_operand_gpr): Adjust comment.
24176 (legitimate_lo_sum_address_p): Ditto.
24177 (rs6000_legitimize_reload_address): Delete.
24178 (rs6000_debug_legitimize_reload_address): Delete.
24179 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
24180
24181 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
24182
24183 PR target/89765
24184 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24185 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
24186 to compute vector element selector for both constant and variable
24187 operands.
24188
24189 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
24190
24191 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
24192 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
24193 ashrdi3_cvt using SWI48 mode iterator.
24194
24195 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24196
24197 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
24198 (aarch64_<su>abd<mode>_3): Likewise.
24199 (*aarch64_<su>abd<mode>_3): New define_insn.
24200 (<sur>sad<vsi2qi>): New define_expand.
24201 * config/aarch64/iterators.md: Added MAX_OPP attribute.
24202 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
24203 (build_vect_cond_expr): Likewise.
24204
24205 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
24206
24207 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
24208 clobbers outside of accessible_reg_set.
24209 * config/i386/i386.c (ix86_conditional_register_usage):
24210 Disable register sets by clearing corresponding bits in
24211 accessible_reg_set. Do not set corresponding bits in fixed_regs,
24212 call_used_regs and don't clear corresponding reg_names array members.
24213
24214 2019-05-07 Richard Biener <rguenther@suse.de>
24215
24216 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
24217 not specified still compute a comp_vectype for invariant
24218 compares.
24219
24220 2019-05-07 Richard Biener <rguenther@suse.de>
24221
24222 PR tree-optimization/90316
24223 * tree-ssa-pre.c (translate_vuse_through_block): When
24224 same_valid is NULL do not bother to search for a virtual
24225 PHI continuation.
24226 (phi_translate_1): When operands changed we cannot keep
24227 the same value-number so do not bother to ask whether
24228 that's possible from translate_vuse_through_block.
24229
24230 2019-05-07 Martin Liska <mliska@suse.cz>
24231
24232 * bitmap.c (bitmap_register): Come up with
24233 alloc_descriptor_max_uid and assign it for
24234 a new bitmap.
24235 (register_overhead): Use get_descriptor as
24236 a descriptor.
24237 (release_overhead): New.
24238 (bitmap_elem_to_freelist): Call it.
24239 (bitmap_elt_clear_from): Likewise.
24240 (bitmap_obstack_free): Likewise.
24241 (bitmap_move): Sensitively release memory.
24242 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
24243 (bitmap_initialize): Initialize alloc_descriptor to zero.
24244 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
24245
24246 2019-05-07 Richard Biener <rguenther@suse.de>
24247
24248 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
24249 we build a SLP node. Remove max_size and limiting.
24250 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
24251
24252 2019-05-07 Richard Biener <rguenther@suse.de>
24253
24254 PR tree-optimization/90316
24255 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
24256 limit by reference.
24257 (walk_non_aliased_vuses): Take walking limit argument.
24258 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
24259 walking if it is reached instead of just counting.
24260 (get_continuation_for_phi): Likewise.
24261 (walk_non_aliased_vuses): Likewise, instead of leaving counter
24262 limiting to the callback.
24263 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
24264 (vn_reference_lookup_3): Likewise.
24265 (vn_reference_lookup_pieces): Likewise.
24266 (vn_reference_lookup): Likewise.
24267 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
24268 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
24269 (avail_exprs_stack::lookup_avail_expr): Likewise.
24270
24271 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
24272
24273 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
24274 for comparaible types in the second direction even if first one
24275 hits incomparable type.
24276
24277 2019-05-07 Richard Biener <rguenther@suse.de>
24278
24279 PR lto/90369
24280 * lto-wrapper.c (debug_objcopy): Use the original filename
24281 including archive offset for the filename used for -save-temps.
24282
24283 2019-05-07 Li Jia He <helijia@linux.ibm.com>
24284
24285 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
24286 detection.
24287
24288 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
24289 Hongtao Liu <hongtao.liu@intel.com>
24290
24291 PR target/89750
24292 PR target/86444
24293 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
24294 Modified, original implementation isn't correct.
24295
24296 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24297
24298 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
24299 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
24300 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
24301 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
24302 (FRAME_POINTER_REGNUM): Change numbering.
24303 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
24304 (alt_reg_names): Adjust.
24305 (rs6000_conditional_register_usage): Don't mark hard register 64 as
24306 fixed.
24307 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
24308 (DWARF_FRAME_REGISTERS): Delete.
24309 (DWARF2_FRAME_REG_OUT): Fix whitespace.
24310 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
24311 Adjust.
24312 (REG_ALLOC_ORDER): Adjust.
24313 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
24314 (REG_CLASS_CONTENTS): Adjust.
24315 (RETURN_ADDR_RTX): Change comment.
24316 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
24317 instead of 67.
24318 (REGISTER_NAMES): Adjust.
24319 (ADDITIONAL_REGISTER_NAMES): Adjust.
24320 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
24321
24322 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24323
24324 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
24325 Delete.
24326 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
24327 (DWARF_FRAME_REGISTERS): Adjust.
24328 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
24329 Adjust.
24330 (REG_ALLOC_ORDER): Adjust.
24331 (enum reg_class): Delete SPR_REGS.
24332 (REG_CLASS_NAMES): Delete SPR_REGS.
24333 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
24334 (REGISTER_NAMES): Adjust.
24335 (ADDITIONAL_REGISTER_NAMES): Adjust.
24336 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
24337 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
24338 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
24339 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
24340 (htm_spr_regno): Delete.
24341 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
24342 argument.
24343 (rs6000_dbx_register_number): Adjust.
24344
24345 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24346
24347 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
24348
24349 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24350
24351 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
24352 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
24353
24354 2019-05-06 Jakub Jelinek <jakub@redhat.com>
24355
24356 PR tree-optimization/88709
24357 PR tree-optimization/90271
24358 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
24359 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
24360 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
24361 variable.
24362 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
24363 of the store merging group is larger than
24364 PARAM_STORE_MERGING_MAX_SIZE parameter.
24365 (split_group): Add bzero_first argument. If set, always emit first
24366 the first store which must be = {} of the whole area and then for the
24367 rest of the stores consider all zero bytes as paddings.
24368 (imm_store_chain_info::output_merged_store): Check if first store
24369 is = {} of the whole area and if yes, determine which setting of
24370 bzero_first for split_group gives smaller number of stores. Adjust
24371 split_group callers.
24372 (lhs_valid_for_store_merging_p): Allow decls.
24373 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
24374 no elts.
24375 (pass_store_merging::process_store): Likewise.
24376
24377 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
24378
24379 PR target/89424
24380 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
24381 handling of V1TImode.
24382
24383 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
24384
24385 PR target/89221
24386 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
24387 and enable_frame_pointer ...
24388 * configure.ac: ... here. Update help strings for
24389 --enable-frame-pointer.
24390 * configure: Regenerate.
24391 * config/i386/i386-options.c (ix86_option_override_internal): Remove
24392 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
24393 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
24394 (USE_X86_64_FRAME_POINTER): Ditto.
24395
24396 2019-05-06 Martin Liska <mliska@suse.cz>
24397
24398 * config.gcc: Append to target_gtfiles and fix indentation.
24399
24400 2019-05-06 Richard Biener <rguenther@suse.de>
24401
24402 PR tree-optimization/90358
24403 * tree-vect-stmts.c (get_group_load_store_type): Properly
24404 detect unused upper half of load.
24405 (vectorizable_load): Likewise.
24406
24407 2019-05-06 Richard Biener <rguenther@suse.de>
24408
24409 PR tree-optimization/88828
24410 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
24411 (simplify_vector_constructor): ...here. Handle constants in
24412 the constructor.
24413
24414 2019-05-06 Richard Biener <rguenther@suse.de>
24415
24416 PR tree-optimization/90328
24417 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
24418 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
24419 is valid in the loop nest before using it.
24420 (initialize_data_dependence_relation): Adjust.
24421 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
24422 loop as loop-nest to dr_may_alias_p.
24423
24424 2019-05-06 Richard Biener <rguenther@suse.de>
24425
24426 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
24427
24428 2019-05-06 Richard Biener <rguenther@suse.de>
24429
24430 PR tree-optimization/90316
24431 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
24432 compute target on demand.
24433 (get_continuation_for_phi): Remove code walking stmts to
24434 get to a target virtual operand which could end up being
24435 quadratic.
24436
24437 2019-05-06 Martin Liska <mliska@suse.cz>
24438
24439 PR sanitizer/90312
24440 * config/i386/i386-options.c (ix86_option_override_internal): Error only
24441 when -mabi is selected to a non-default version.
24442
24443 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
24444 Martin Liska <mliska@suse.cz>
24445
24446 * Makefile.in: Add lto-dump.texi.
24447 * cgraph.h: Add new functions get_visibility_string and
24448 get_symtab_type_string.
24449 * doc/gcc.texi: Include lto-dump section.
24450 * doc/lto-dump.texi: New file.
24451 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
24452 (parse_dump_option): Factor out this function.
24453 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
24454 (parse_dump_option): Export the function.
24455 * symtab.c (symtab_node::get_visibility_string): New function.
24456 (symtab_node::get_symtab_type_string): Likewise.
24457
24458 2019-05-06 Martin Liska <mliska@suse.cz>
24459
24460 * config/i386/i386-builtins.c: New file.
24461 * config/i386/i386-builtins.h: New file.
24462 * config/i386/i386-expand.c: New file.
24463 * config/i386/i386-expand.h: New file.
24464 * config/i386/i386-features.c: New file.
24465 * config/i386/i386-features.h: New file.
24466 * config/i386/i386-options.c: New file.
24467 * config/i386/i386-options.h: New file.
24468 * config.gcc: Add new files into extra_objs and
24469 target_gtfiles.
24470 * config/i386/i386.c: Split content of the file
24471 into newly introduced files.
24472 * config/i386/i386.h: Declare common variables
24473 and macros.
24474 * config/i386/t-i386: Define dependencies for new files.
24475
24476 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
24477
24478 PR target/89400
24479 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
24480 Restrict 'all' variant to 32-bit configurations.
24481 (unaligned_loadhiu): Likewise.
24482 (unaligned_storehi): Likewise.
24483 (unaligned_storesi): Likewise.
24484 (unaligned_loadhis): Disable when compiling for thumb1.
24485
24486 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
24487
24488 PR tree-optimization/90269
24489 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
24490 Ignore clobbers.
24491
24492 2019-05-03 Martin Liska <mliska@suse.cz>
24493
24494 * hash-map.h: Add is_empty function.
24495 * hash-set.h: Likewise.
24496 * hash-table.h: Likewise.
24497 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
24498 elements () == 0 (and similar usages).
24499 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
24500 * gimplify.c (gimplify_bind_expr): Likewise.
24501 (gimplify_switch_expr): Likewise.
24502 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
24503 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
24504 * postreload-gcse.c (dump_hash_table): Likewise.
24505 (gcse_after_reload_main): Likewise.
24506 * predict.c (combine_predictions_for_bb): Likewise.
24507 * tree-parloops.c (reduction_phi): Likewise.
24508 (separate_decls_in_region): Likewise.
24509 (transform_to_exit_first_loop): Likewise.
24510 (gen_parallel_loop): Likewise.
24511 (gather_scalar_reductions): Likewise.
24512 (try_create_reduction_list): Likewise.
24513 * var-tracking.c (dump_vars): Likewise.
24514 (emit_notes_for_changes): Likewise.
24515 (vt_emit_notes): Likewise.
24516
24517 2019-05-03 Richard Biener <rguenther@suse.de>
24518
24519 PR tree-optimization/90316
24520 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
24521 before running VN.
24522
24523 2019-05-03 Richard Biener <rguenther@suse.de>
24524
24525 * tree-vect-stmts.c (get_group_load_store_type): Avoid
24526 peeling for gaps by loading only lower halves of vectors
24527 if possible.
24528 (vectorizable_load): Likewise.
24529
24530 2019-05-03 Richard Biener <rguenther@suse.de>
24531
24532 PR middle-end/89518
24533 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
24534
24535 2019-05-03 Richard Biener <rguenther@suse.de>
24536
24537 PR middle-end/87314
24538 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
24539 Handle STRING_CST vs DECL or STRING_CST.
24540
24541 2019-05-03 Richard Biener <rguenther@suse.de>
24542
24543 PR tree-optimization/88963
24544 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
24545 vector loads feeding only BIT_FIELD_REFs to component
24546 loads. Rewrite stores fed by CONSTRUCTORs to component
24547 stores.
24548
24549 2019-05-03 Jakub Jelinek <jakub@redhat.com>
24550
24551 * opts.h (finish_options): Remove lang_mask argument.
24552 (print_help, help_option_argument): Declare.
24553 * opts.c (print_help): Remove forward declaration, no longer static.
24554 (finish_options): Remove lang_mask argument, don't call print_help
24555 here.
24556 * opts-global.c (decode_options): Adjust finish_option caller, call
24557 print_help here.
24558
24559 PR tree-optimization/90303
24560 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
24561 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
24562
24563 2019-05-03 Richard Biener <rguenther@suse.de>
24564
24565 PR tree-optimization/89698
24566 * gimple-fold.c (canonicalize_constructor_val): Early out
24567 for constants, handle unfolded INTEGER_CSTs as they appear in
24568 C++ virtual table ctors.
24569
24570 2019-05-03 Richard Biener <rguenther@suse.de>
24571
24572 * passes.c (execute_function_todo): Remove dead code.
24573
24574 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
24575
24576 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
24577 the internal register number, for any "real" register.
24578
24579 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
24580
24581 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
24582 correct numbers for TFHAR, TFIAR, TEXASR.
24583
24584 2019-05-02 Richard Biener <rguenther@suse.de>
24585
24586 PR tree-optimization/89653
24587 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
24588 update-address-taken before the pass.
24589 * passes.def (pass_tree_loop_init): Put comment before it.
24590
24591 2019-05-02 Richard Biener <rguenther@suse.de>
24592
24593 PR tree-optimization/89509
24594 * tree-ssa-structalias.c (compute_dependence_clique): Look
24595 at the first subvar when determining whether it is restrict.
24596
24597 2019-05-02 Richard Biener <rguenther@suse.de>
24598
24599 PR tree-optimization/90273
24600 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
24601 useless debug stmts.
24602
24603 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24604
24605 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
24606 ACLE branch.
24607 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
24608 SVE ACLE branch.
24609 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
24610 VEC_COND_EXPR be inserted to emulate a conditional internal function.
24611 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
24612 (vectorizable_reduction): Use the functions above to vectorize in a
24613 fully masked loop codes that don't have a conditional internal
24614 function.
24615
24616 2019-05-02 Martin Liska <mliska@suse.cz>
24617
24618 * cgraphclones.c: Call valid_attribute_p with 1 for
24619 target_clone.
24620 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
24621 it's for target attribute.
24622 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
24623 Add new boolean argument.
24624 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
24625 Likewise.
24626 (ix86_valid_target_attribute_tree): Pass target_clone_attr
24627 to ix86_valid_target_attribute_inner_p.
24628 (ix86_valid_target_attribute_p): Pass flags argument to
24629 ix86_valid_target_attribute_inner_p.
24630 (get_builtin_code_for_version): Use 0 as it's target attribute.
24631
24632 2019-05-02 Martin Liska <mliska@suse.cz>
24633
24634 * gcc.c (process_command): Add dummy file only
24635 if n_infiles == 0.
24636 * opts-global.c (decode_options): Pass lang_mask.
24637 * opts.c (print_help): New function.
24638 (finish_options): Print --help if help_option_argument
24639 is set.
24640 (common_handle_option): Factor out content of OPT__help_
24641 into print_help.
24642 * opts.h (finish_options): Add new argument.
24643
24644 2019-05-02 Martin Liska <mliska@suse.cz>
24645
24646 PR target/88809
24647 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
24648 With -minline-all-stringops use inline expansion using 4B loop.
24649 * doc/invoke.texi: Document the change of
24650 -minline-all-stringops.
24651
24652 2019-05-01 Jeff Law <law@redhat.com>
24653
24654 PR tree-optimization/88797
24655 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
24656 PHI feeds a conditional on the RHS of an assignment.
24657
24658 2019-04-30 Andrew Waterman <andrew@sifive.com>
24659 Jim Wilson <jimw@sifive.com>
24660
24661 * config/riscv/constraints.md (L): New.
24662 * config/riscv/predicates.md (lui_operand): New.
24663 (sfb_alu_operand): New.
24664 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
24665 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
24666 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
24667 * config/riscv/risc.md (type): Add sfb_alu.
24668 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
24669 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
24670 (branch_zero<mode>): Delete.
24671 (mov<mode>cc): New.
24672 (mov<GPR:mode><X:mode>cc): Likewise.
24673 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
24674
24675 2019-04-30 Nathan Sidwell <nathan@acm.org>
24676
24677 * tree.h (MARK_TS_EXP): New.
24678
24679 2019-04-30 Martin Liska <mliska@suse.cz>
24680
24681 * opts.c (enable_warning_as_error): Provide hints
24682 for unknown options.
24683
24684 2019-04-30 Martin Liska <mliska@suse.cz>
24685
24686 PR debug/90288
24687 * doc/invoke.texi: Add missing dash for gas-locview-support
24688 and gno-as-locview-support.
24689
24690 2019-04-30 Jakub Jelinek <jakub@redhat.com>
24691
24692 PR target/89093
24693 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
24694 whitespace at the start of target attribute string.
24695
24696 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24697
24698 PR target/86538
24699 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
24700 Define __ARM_FEATURE_ATOMICS.
24701
24702 2019-04-30 Martin Liska <mliska@suse.cz>
24703
24704 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
24705 into built_in_function enum. Remove code for endp == 2 and
24706 use BUILT_IN_* constants.
24707 (gimple_fold_builtin): Call the function with fcode.
24708
24709 2019-04-30 Martin Liska <mliska@suse.cz>
24710
24711 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
24712 DECL_FUNCTION_CODE into ix86_builtins enum before
24713 the switch statement.
24714
24715 2019-04-30 Jakub Jelinek <jakub@redhat.com>
24716
24717 PR tree-optimization/89475
24718 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
24719 calls.
24720
24721 2019-04-30 Martin Liska <mliska@suse.cz>
24722
24723 PR translation/90274
24724 * opts.c (print_filtered_help): Wrap string in _(...).
24725
24726 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
24727
24728 PR tree-optimization/90240
24729 Revert:
24730 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
24731
24732 PR tree-optimization/90078
24733 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
24734 checks for infinite_cost overflow.
24735
24736 2019-04-29 Jeff Law <law@redhat.com>
24737
24738 * passes.def: Move -Wrestrict pass after copy propagation.
24739
24740 2019-04-29 Maya Rashish <coypu@sdf.org>
24741
24742 * config.gcc (default_gnu_indirect_function): Default to yes
24743 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
24744 sparc*-*-netbsd*, x86_64-*-netbsd*.
24745
24746 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
24747
24748 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
24749 where cond2 is NE_EXPR.
24750 (is_value_included_in): Update comment.
24751
24752 2019-04-29 Richard Biener <rguenther@suse.de>
24753
24754 PR tree-optimization/90278
24755 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
24756 EH on comparison simplification.
24757
24758 2019-04-29 Jason Merrill <jason@redhat.com>
24759
24760 PR c++/82081 - tail call optimization breaks noexcept
24761 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
24762 nothrow function to a might-throw function into a tail call.
24763
24764 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
24765
24766 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
24767 (DDR_INNER_LOOP): Likewise.
24768 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
24769 (initialize_data_dependence_relation): Likewise.
24770 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
24771
24772 2019-04-29 Jakub Jelinek <jakub@redhat.com>
24773
24774 PR rtl-optimization/90257
24775 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
24776 return value.
24777
24778 Revert the revert:
24779 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
24780
24781 PR target/90178
24782 Revert:
24783 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
24784
24785 Revert the revert:
24786 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
24787
24788 Revert:
24789 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
24790
24791 * lra-spills.c (lra_final_code_change): Remove useless move insns.
24792
24793 2019-04-29 Richard Biener <rguenther@suse.de>
24794
24795 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
24796 rhs issue a reset.
24797
24798 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
24799
24800 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
24801 varasm.h, and netbsd-protos.h.
24802
24803 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
24804
24805 PR target/89261
24806 * config/i386/i386-protos.h (ix86_data_alignment): Change
24807 the second argument type to unsigned int.
24808 * config/i386/i386.c (ix86_data_alignment): Change "align"
24809 argument type to unsigned int.
24810
24811 2019-04-27 Martin Liska <mliska@suse.cz>
24812
24813 PR middle-end/90258
24814 * opt-suggestions.c (option_proposer::build_option_suggestions):
24815 When get_valid_option_values returns empty values, add the
24816 misspelling candidate.
24817
24818 2019-04-26 Jim Wilson <jimw@sifive.com>
24819
24820 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
24821 parameter.
24822 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
24823 Pass orig_mode to riscv_build_integer.
24824 (riscv_split_integer): Pass mode to riscv_move_integer.
24825 (riscv_legitimize_const_move): Likewise.
24826 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
24827 promoted_mode. Replace force_reg call with code to load constant into
24828 promoted reg and then subreg it for the store.
24829 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
24830 riscv_move_integer.
24831
24832 2018-04-26 Eugene Sharygin <eush@ispras.ru>
24833
24834 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
24835 corrupt codes.
24836
24837 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
24838
24839 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
24840 commentary about the encoding of precision.
24841
24842 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
24843
24844 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
24845 * config/i386/t-freebsd64: New file.
24846 * config.gcc: Add the t-freebsd64 for multilib support.
24847
24848 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
24849
24850 * doc/extend.texi (vector_size): Add missing comma after @xref.
24851
24852 2019-04-25 Jakub Jelinek <jakub@redhat.com>
24853
24854 * BASE-VER: Set to 10.0.0.
24855
24856 2019-04-25 Richard Biener <rguenther@suse.de>
24857
24858 PR middle-end/89765
24859 * gimplify.c (gimplify_expr): Avoid turning a lvalue
24860 VIEW_CONVERT_EXPR into one operating on an rvalue.
24861
24862 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
24863
24864 PR target/89929
24865 * config/i386/i386.c (feature_priority): Moved to file scope.
24866 (processor_features): Likewise.
24867 (processor_model): Likewise.
24868 (_arch_names_table): Likewise.
24869 (arch_names_table): Likewise.
24870 (_feature_list): Removed.
24871 (feature_list): Likewise.
24872 (_isa_names_table): Moved to file scope. Add priority.
24873 (isa_names_table): Likewise.
24874 (get_builtin_code_for_version): Replace feature_list with
24875 isa_names_table. Update error message for P_ZERO priority.
24876
24877 2019-04-25 Richard Biener <rguenther@suse.de>
24878
24879 * tree-pass.h (make_pass_phi_only_cprop): Remove.
24880 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
24881
24882 2019-04-24 Jeff Law <law@redhat.com>
24883
24884 PR tree-optimization/90037
24885 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
24886 * passes.def: Replace all instance of phi-only cprop with the
24887 lattice propagator. Move propagation pass from after erroneous
24888 path isolation to before erroneous path isolation.
24889 * tree-ssa-phionlycprop.c: Remove.
24890
24891 2019-04-24 Richard Biener <rguenther@suse.de>
24892
24893 PR middle-end/90213
24894 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
24895 by size and BITS_PER_UNIT on poly-wide-ints.
24896
24897 2019-04-25 Richard Biener <rguenther@suse.de>
24898
24899 PR middle-end/90194
24900 * match.pd: Add pattern to simplify view-conversion of an
24901 empty constructor.
24902
24903 2019-04-24 Clement Chigot <clement.chigot@atos.net>
24904
24905 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
24906 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
24907 for Go on 32 bit AIX.
24908 * config/rs6000/aix72.h: Likewise.
24909
24910 2019-04-24 Jakub Jelinek <jakub@redhat.com>
24911
24912 PR target/90193
24913 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
24914 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
24915
24916 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
24917
24918 PR target/89952
24919 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
24920 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
24921 for restored hard frame pointer.
24922 (s390_sched_dependencies_evaluation): Implement new target hook.
24923 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
24924
24925 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
24926
24927 * config/arc/arc-options.def: Fix typos and spelling mistakes.
24928 * config/arc/arc.c (arc_init): Cleanup warning message.
24929 (arc_override_options): Likewise.
24930
24931 2019-04-24 Jakub Jelinek <jakub@redhat.com>
24932
24933 PR target/90187
24934 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
24935 a register if both if_true and if_false are MEMs.
24936
24937 PR tree-optimization/90208
24938 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
24939 after labels of new_bb, not before them.
24940
24941 PR tree-optimization/90211
24942 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
24943 which are not SSA_NAMEs.
24944
24945 2018-04-23 Sudakshina Das <sudi.das@arm.com>
24946
24947 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
24948 AArch64.
24949 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
24950
24951 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
24952
24953 PR rtl-optimization/87979
24954 * modulo-sched.c (sms_schedule): Start ii value "mii" should
24955 not equal zero.
24956
24957 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
24958
24959 PR rtl-optimization/84032
24960 * modulo-sched.c (ps_insn_find_column): Change condition so that
24961 branch will always be the last insn in a row inside partial
24962 schedule.
24963
24964 2019-04-23 Richard Biener <rguenther@suse.de>
24965
24966 PR debug/90131
24967 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
24968 dest_single_pred_p argument.
24969 (remove_forwarder_block): Adjust.
24970 (remove_forwarder_block_with_phi): Likewise.
24971
24972 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24973 Bernd Edlinger <bernd.edlinger@hotmail.de>
24974 Jakub Jelinek <jakub@redhat.com>
24975
24976 PR target/89093
24977 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
24978 if used with general-regs-only.
24979 (arm_conditional_register_usage): Don't add non-general regs if
24980 general-regs-only.
24981 (arm_valid_target_attribute_rec): Handle general-regs-only.
24982 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
24983 general-regs-only.
24984 (TARGET_HARD_FLOAT_SUB): Define.
24985 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
24986 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
24987 (TARGET_REALLY_IWMMXT2): Likewise.
24988 * config/arm/arm.opt: Add -mgeneral-regs-only.
24989 * doc/extend.texi: Document ARM general-regs-only target.
24990 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
24991
24992 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
24993
24994 PR tree-optimization/90078
24995 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
24996 checks for infinite_cost overflow.
24997
24998 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
24999
25000 PR tree-optimization/90021
25001 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
25002 and check univariate against it.
25003 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
25004 * tree-data-ref.c (add_other_self_distances): Pass new argument.
25005
25006 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
25007
25008 PR target/90178
25009 Revert:
25010 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
25011
25012 Revert the revert:
25013 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
25014
25015 Revert:
25016 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
25017
25018 * lra-spills.c (lra_final_code_change): Remove useless move insns.
25019
25020 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
25021
25022 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
25023 names using operand format, rather than hard-wired.
25024 (speculation_barrier): Likewise.
25025
25026 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
25027
25028 PR tree-optimization/88055
25029 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
25030 (gen_one_condition): Use it if !HONOR_NANS.
25031
25032 2019-04-19 Jakub Jelinek <jakub@redhat.com>
25033
25034 PR middle-end/90139
25035 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
25036 assign_temp instead of gen_reg_rtx.
25037
25038 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
25039
25040 PR translation/90118
25041 * config/aarch64/aarch64.c (aarch64_override_options_internal):
25042 Add missing space before %<.
25043
25044 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
25045
25046 PR rtl-optimization/87871
25047 * ira-lives.c (make_object_dead): Don't add conflicts to
25048 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
25049
25050 2019-04-18 Martin Sebor <msebor@redhat.com>
25051
25052 PR middle-end/89797
25053 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
25054 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
25055 assuming type size fits in SHWI.
25056
25057 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
25058
25059 PR ipa/85051
25060 * ipa-inline.c (flatten_function): New parameter UPDATE.
25061 (ipa_inline, early_inliner): Use it.
25062
25063 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
25064
25065 * fold-const.c (int_const_binop): Return early on failure.
25066
25067 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
25068
25069 PR middle-end/85164
25070 * combine.c (force_int_to_mode): Cast the argument rather than
25071 the result of known_alignment.
25072 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
25073
25074 2019-04-18 Richard Biener <rguenther@suse.de>
25075
25076 PR debug/90131
25077 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
25078 out from ...
25079 (remove_forwarder_block): ... here.
25080 (remove_forwarder_block_with_phi): Also move debug stmts here.
25081
25082 2019-04-18 Jakub Jelinek <jakub@redhat.com>
25083
25084 PR translation/79183
25085 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
25086 inform where appropriate.
25087
25088 2019-04-18 Richard Biener <rguenther@suse.de>
25089
25090 * tree.c (get_qualified_type): Put found type variants at the
25091 head of the variant list.
25092
25093 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
25094
25095 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
25096
25097 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
25098
25099 PR target/90125
25100 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
25101 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
25102 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
25103 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
25104 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
25105
25106 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
25107
25108 * ira-conflicts.c (print_allocno_conflicts): Always print something,
25109 even for allocno's with no conflicts.
25110 (print_conflicts): Print an extra newline.
25111
25112 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
25113
25114 * auto-inc-dec.c (attempt_change): Set the alignment of the
25115 temporary memory to that of the original.
25116
25117 2019-04-17 Joao Moreira <jmoreira@suse.de>
25118
25119 * targhooks.c (default_print_patchable_function_entry): Emit
25120 __patchable_function_entries section with writable flags to allow
25121 relocation resolution.
25122
25123 2019-04-17 Jonny Grant <jg@jguk.org>
25124
25125 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
25126
25127 2019-04-17 Jakub Jelinek <jakub@redhat.com>
25128
25129 PR middle-end/90095
25130 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
25131 on lowpart SUBREGs.
25132
25133 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
25134
25135 * config/arc/arc.c (arc_init): Format diagnostic string.
25136 (arc_override_options): Likewise.
25137 (check_if_valid_regno_const): Likewise.
25138 (arc_reorg): Likewise.
25139
25140 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
25141
25142 PR target/17108
25143 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
25144 name.
25145 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
25146 name.
25147 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
25148 (*movdi_update1): Use Pmode.
25149 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
25150 (movdi_<mode>_update_stack): Rename to ...
25151 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
25152 use Pmode.
25153 (*movsi_update1): Use Pmode.
25154 (*movsi_update2): Use Pmode.
25155 (movsi_update): Rename to ...
25156 (movsi_<mode>_update): ... this. Use Pmode.
25157 (movsi_update_stack): Fix condition.
25158 (*movhi_update1): Use Pmode. Fix argument to
25159 avoiding_indexed_address_p.
25160 (*movhi_update2): Ditto.
25161 (*movhi_update3): Ditto.
25162 (*movhi_update4): Ditto.
25163 (*movqi_update1): Ditto.
25164 (*movqi_update2): Ditto.
25165 (*movqi_update3): Ditto.
25166 (*movsf_update1, *movdf_update1): Merge, rename to...
25167 (*mov<mode>_update1): This. Use Pmode. Fix argument to
25168 avoiding_indexed_address_p. Add "size" attribute.
25169 (*movsf_update2, *movdf_update2): Merge, rename to...
25170 (*mov<mode>_update2): This. Ditto.
25171 (*movsf_update3): Use Pmode. Fix argument to
25172 avoiding_indexed_address_p.
25173 (*movsf_update4): Ditto.
25174 (allocate_stack): Simplify condition. Adjust pattern names.
25175
25176 2019-04-17 Jakub Jelinek <jakub@redhat.com>
25177
25178 PR target/89093
25179 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
25180 whitespace at the start of target attribute string.
25181
25182 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
25183
25184 PR target/84369
25185 * config/rs6000/power9.md: Add store forwarding bypass.
25186
25187 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
25188
25189 PR debug/89528
25190 * valtrack.c (dead_debug_insert_temp): Reset debug references
25191 to the return value of a call being removed.
25192
25193 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25194
25195 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
25196 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
25197 implement target hook.
25198 (arc_memory_move_cost): New function.
25199 (TARGET_REGISTER_MOVE_COST): Define.
25200 (TARGET_MEMORY_MOVE_COST): Likewise.
25201 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
25202 (MEMORY_MOVE_COST): Likewise.
25203
25204 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25205
25206 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
25207 (sibcall_value_insn): Likewise.
25208 * config/arc/constraints.md (Rs5): Remove.
25209
25210 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25211
25212 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
25213 for last two fake registers.
25214 (arc_conditional_register_usage): Make sure fake frame and arg
25215 pointer regs are in general regs class.
25216 (FRAME_POINTER_MASK): Remove.
25217 (RETURN_ADDR_MASK): Remove.
25218 (arc_must_save_register): Use hard frame regnum.
25219 (frame_restore_reg): Use hard_frame_pointer_rtx.
25220 (arc_save_callee_saves): Likewise.
25221 (arc_restore_callee_saves): Likewise.
25222 (arc_save_callee_enter): Likewise.
25223 (arc_restore_callee_leave): Likewise.
25224 (arc_save_callee_milli): Likewise.
25225 (arc_eh_return_address_location): Likewise.
25226 (arc_check_multi): Use hard frame regnum.
25227 (arc_can_eliminate): Likewise.
25228 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
25229 for register allocator.
25230 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
25231 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
25232 (FRAME_POINTER_REGNUM): Change it to a fake register.
25233 (HARD_FRAME_POINTER_REGNUM): Defined.
25234 (ARG_POINTER_REGNUM): Change it to a new fake register.
25235 (ELIMINABLE_REGS): Update.
25236 (REGISTER_NAMES): Update names.
25237 * config/arc/arc.md (LP_START): Remove.
25238 (LP_END): Likewise.
25239 (shift_si3_loop): Update pattern.
25240
25241 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25242
25243 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
25244 to avoid delay slot scheduling.
25245 (arc_must_save_register): Don't save SP.
25246 * config/arc/arc.md (stack_tie): Remove.
25247 (UNSPEC_ARC_STKTIE): Likewise.
25248
25249 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
25250 Shiva Chen <shiva0217@gmail.com>
25251
25252 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
25253 code gen with large shift amount.
25254
25255 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
25256
25257 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
25258 subreg.
25259
25260 2019-04-16 Jakub Jelinek <jakub@redhat.com>
25261
25262 PR target/90096
25263 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
25264 print -m64/-mx32/-m32 if it is true.
25265 (ix86_debug_options, ix86_function_specific_print): Pass true as
25266 ADD_ABI_P to ix86_target_string.
25267 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
25268 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
25269 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
25270
25271 PR rtl-optimization/90082
25272 * dce.c (can_delete_call): New function.
25273 (deletable_insn_p, mark_insn): Use it.
25274
25275 PR tree-optimization/90090
25276 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
25277 throw internally.
25278 (is_division_by_square): Likewise. Formatting fix.
25279
25280 2019-04-16 Richard Biener <rguenther@suse.de>
25281
25282 PR tree-optimization/56049
25283 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
25284 equality check if alias-set zero will prevail.
25285
25286 2019-04-15 Jeff Law <law@redhat.com>
25287
25288 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
25289 size and alignment as unsigned.
25290
25291 2019-04-15 Richard Biener <rguenther@suse.de>
25292
25293 PR debug/90074
25294 * tree-loop-distribution.c (destroy_loop): Preserve correct
25295 debug info.
25296
25297 2019-04-15 Richard Biener <rguenther@suse.de>
25298
25299 PR tree-optimization/90071
25300 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
25301 abnormal operands from def stmts.
25302
25303 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
25304
25305 PR rtl-optimization/89794
25306 * combine.c (count_auto_inc): New function.
25307 (try_combine): Count how many auto_inc expressions there were in the
25308 original instructions. Ensure we have the same number in the new
25309 instructions. Remove the code that tried to ensure auto_inc side
25310 effects on i1 and i0 are not lost.
25311
25312 2019-04-15 Richard Biener <rguenther@suse.de>
25313
25314 PR ipa/88936
25315 * tree.h (auto_var_p): Declare.
25316 * tree.c (auto_var_p): New function, split out from ...
25317 (auto_var_in_fn_p): ... here.
25318 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
25319 member.
25320 (new_var_info): Initialize it.
25321 (set_uids_in_ptset): Also set the shadow variable uid if required.
25322 (ipa_pta_execute): Postprocess points-to solutions assigning
25323 shadow variable uids for locals that may reach their containing
25324 function recursively.
25325 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
25326 assert but instead check whether the points-to solution is
25327 a singleton.
25328
25329 2019-04-15 Martin Jambor <mjambor@suse.cz>
25330
25331 PR ipa/pr89693
25332 * cgraph.c (clone_of_p): Loop over clone chain for each step in
25333 the thunk chain.
25334
25335 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
25336
25337 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
25338
25339 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
25340 Kito Cheng <kito.cheng@gmail.com>
25341 Shiva Chen <shiva0217@gmail.com>
25342
25343 * config/nds32/nds32-md-auxiliary.c
25344 (nds32_legitimize_pic_address): Use new PIC pattern.
25345 (nds32_legitimize_tls_address): Use new TLS pattern.
25346 (nds32_output_symrel): New.
25347 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
25348 (nds32_alloc_relax_group_id): Ditto.
25349 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
25350 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
25351 relax_group_id.
25352 (nds32_group_tls_insn): Ditto.
25353 (nds32_group_float_insns): Ditto.
25354 * config/nds32/nds32.md (tls_le): New.
25355 (sym_got): Ditto.
25356
25357 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
25358
25359 * configure: Add nds32 target for dwarf2 debug_line checking.
25360 * configure.ac: Regenerated.
25361
25362 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
25363
25364 PR lto/89358
25365 * ipa-devirt.c (skip_in_fields_list_p): New.
25366 (odr_types_equivalent_p): Use it.
25367
25368 2019-04-13 Jakub Jelinek <jakub@redhat.com>
25369
25370 PR target/89093
25371 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
25372 instead of strncmp when checking for thumb and arm. Formatting fixes.
25373
25374 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
25375
25376 * doc/install.texi: Document --with-target-system-zlib.
25377
25378 2019-04-12 Martin Sebor <msebor@redhat.com>
25379
25380 PR c/88383
25381 PR c/89288
25382 PR c/89798
25383 PR c/89797
25384 * targhooks.c (default_vector_alignment): Avoid assuming
25385 argument fits in SHWI.
25386 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
25387 a shift expression.
25388 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
25389
25390 2019-04-12 Jakub Jelinek <jakub@redhat.com>
25391
25392 PR rtl-optimization/89965
25393 * dce.c: Include rtl-iter.h.
25394 (struct check_argument_load_data): New type.
25395 (check_argument_load): New function.
25396 (find_call_stack_args): Check for loads from stack slots still tracked
25397 in sp_bytes and punt if any is found.
25398
25399 * config/mips/loongson-mmiintrin.h: Fix up #error message.
25400
25401 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
25402
25403 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
25404 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
25405
25406 2019-04-12 Martin Liska <mliska@suse.cz>
25407
25408 PR middle-end/89970
25409 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
25410 in error message.
25411 (separate_attrs): Handle multiple 'default's.
25412 (expand_target_clones): Rework error handling code.
25413
25414 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
25415
25416 PR target/87532
25417 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
25418 mode of vector rather than mode of destination for move instruction.
25419 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
25420 Use QI inner mode with V16QI vector mode.
25421
25422 2019-04-12 Jakub Jelinek <jakub@redhat.com>
25423
25424 PR target/52726
25425 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
25426 "invalid %%t operand" in output_operand_lossage message.
25427
25428 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
25429
25430 * config/s390/predicates.md (permute_pattern_operand): New
25431 predicate.
25432 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
25433 operand for the permute pattern.
25434 ("*vec_perm<mode>"): New insn definition.
25435 ("bswap<mode>"): Generate the permute pattern operand in the
25436 expander and perform the operand reloads for pre arch13 level
25437 already.
25438 ("*bswap<mode>_emu"): Rename to ...
25439 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
25440 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
25441 Add the USE operand for the permute pattern.
25442 ("*vec_set_bswap_vec<mode>"): Likewise.
25443
25444 2019-04-12 Jakub Jelinek <jakub@redhat.com>
25445
25446 PR c/89946
25447 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
25448 and gcc_unreachable if it fails, just call tree_to_uhwi which
25449 verifies that too. Test TREE_CHAIN instead of list_length > 1.
25450 Start warning message with a lower-case letter. Formatting fixes.
25451
25452 PR rtl-optimization/90026
25453 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
25454 successors, look for BARRIERs inside of the whole BB_FOOTER chain
25455 rather than just at the start of it. If e->src BB_FOOTER is not NULL
25456 in cfglayout mode, use emit_barrier_after_bb.
25457
25458 2018-04-11 Steve Ellcey <sellcey@marvell.com>
25459
25460 PR rtl-optimization/87763
25461 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
25462 New Instruction.
25463
25464 2019-04-11 Tom de Vries <tdevries@suse.de>
25465
25466 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
25467 max macro using statement expression.
25468
25469 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
25470
25471 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
25472 * xcoffout.c (xcoff_private_rodata_section_name): Define.
25473 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
25474 read_only_private_data_section using xcoff_private_rodata_section_name.
25475 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
25476
25477 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
25478
25479 PR target/90016
25480 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
25481
25482 2019-04-11 Jakub Jelinek <jakub@redhat.com>
25483
25484 PR rtl-optimization/89965
25485 * dce.c (sp_based_mem_offset): New function.
25486 (find_call_stack_args): Use sp_based_mem_offset.
25487
25488 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
25489
25490 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
25491
25492 2019-04-11 Richard Biener <rguenther@suse.de>
25493
25494 PR tree-optimization/90020
25495 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
25496 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
25497 * tree-ssa-pre.c (compute_avail): Use it to not put
25498 possibly trapping references after a call that might not
25499 return into EXP_GEN.
25500 * gcse.c (compute_hash_table_work): Do not elide
25501 marking a block containing a call if the call might not
25502 return.
25503
25504 2019-04-11 Richard Biener <rguenther@suse.de>
25505
25506 PR tree-optimization/90018
25507 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
25508 Test both SLP and interleaving variants.
25509
25510 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
25511
25512 * config/s390/8561.md: New file.
25513 * config/s390/driver-native.c (s390_host_detect_local_cpu):
25514 Add arch13 cpu model.
25515 * config/s390/s390-opts.h (enum processor_type): Likewise.
25516 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
25517 (s390_get_unit_mask): Likewise.
25518 (s390_is_fpd): Likewise.
25519 (s390_is_fxd): Likewise.
25520 * config/s390/s390.h (s390_tune_attr): Likewise.
25521 * config/s390/s390.md: Include arch13 pipeline description.
25522 * config/s390/s390.opt: Add arch13.
25523
25524 2018-04-10 Steve Ellcey <sellcey@marvell.com>
25525
25526 PR rtl-optimization/87763
25527 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
25528 New prototype.
25529 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
25530 New function.
25531 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
25532 New instruction.
25533 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
25534 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
25535 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
25536 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
25537
25538 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
25539
25540 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
25541 "Although" in -fipa-icf documentation.
25542
25543 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
25544 of using multiple -g options.
25545
25546 2019-04-10 Martin Liska <mliska@suse.cz>
25547
25548 PR gcov-profile/89959
25549 * doc/gcov.texi: Make documentation of -x option
25550 more precise.
25551
25552 2019-04-10 Richard Biener <rguenther@suse.de>
25553
25554 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
25555 member.
25556 (DR_GROUP_SAME_DR_STMT): Remove.
25557 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
25558 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
25559 replace with assert.
25560 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
25561 (vect_record_grouped_load_vectors): Remove unreachable code.
25562
25563 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
25564
25565 PR target/90016
25566 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
25567 obsolete reference to N.
25568
25569 2019-04-10 Jakub Jelinek <jakub@redhat.com>
25570
25571 PR middle-end/90025
25572 * expr.c (store_expr): Set properly size on the MEM passed to
25573 clear_storage.
25574
25575 PR c++/90010
25576 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
25577 with strlen in between hostsz-3 and hostsz-1 inclusive when no
25578 translation is needed, and when translation is needed, only append
25579 ... if the string length is hostsz or more bytes long. Avoid using
25580 strncpy or strcat.
25581
25582 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
25583
25584 PR target/90024
25585 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
25586 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
25587 into three.
25588 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
25589 differences directly.
25590 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
25591
25592 2019-04-09 Jakub Jelinek <jakub@redhat.com>
25593
25594 PR translation/90011
25595 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
25596 from diagnostics.
25597 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
25598 diagnostics.
25599 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
25600 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
25601 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
25602 trailing space from -gsplit-dwarf diagnostics.
25603
25604 PR tree-optimization/89998
25605 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
25606 instead of integer_type_node if possible, don't add ranges if return
25607 type is not compatible with int.
25608 * gimple-fold.c (gimple_fold_builtin_sprintf,
25609 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
25610 integer_type_node.
25611
25612 2019-04-09 Martin Liska <mliska@suse.cz>
25613
25614 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
25615 * doc/install.texi: Document the new config.
25616
25617 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
25618
25619 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
25620 use gimple_expr_type for load and store calls. Skip over the
25621 condition argument in a conditional internal function.
25622 Protect use of TREE_INT_CST_LOW.
25623
25624 2019-04-09 Jakub Jelinek <jakub@redhat.com>
25625
25626 PR target/90015
25627 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
25628 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
25629 trailing period from it too.
25630
25631 2019-04-08 wu yuan <wuyuan5@huawei.com>
25632
25633 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
25634 * config/aarch64/aarch64.md: Add "tsv110.md".
25635 * config/aarch64/tsv110.md: New file.
25636
25637 2019-04-08 Richard Biener <rguenther@suse.de>
25638
25639 PR tree-optimization/90006
25640 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
25641 calls like lrint.
25642
25643 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
25644
25645 PR target/83033
25646 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
25647 construction.
25648 (fma_root_node): Likewise.
25649 (func_fma_steering): Likewise.
25650
25651 2019-04-08 Jakub Jelinek <jakub@redhat.com>
25652
25653 PR rtl-optimization/89865
25654 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
25655
25656 PR rtl-optimization/89865
25657 * config/i386/i386.md
25658 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
25659 numbers not to clash with the additional operands[4].
25660 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
25661 with extra register copy in the middle.
25662
25663 2019-04-08 Martin Liska <mliska@suse.cz>
25664
25665 PR gcov-profile/89961
25666 * doc/gcov.texi: Document data_file.
25667 * gcov.c (generate_results): Add data_info into JSON output.
25668
25669 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
25670
25671 PR tree-optimization/89725
25672 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
25673 loop's chrec as invariant symbol.
25674 * tree-chrec.h (chrec_contains_symbols): New parameter.
25675 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
25676 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
25677 function of loops not in DDR's loop_nest.
25678 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
25679
25680 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
25681
25682 PR target/89623
25683 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
25684 Mask.
25685
25686 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
25687
25688 PR target/89945
25689 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
25690 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
25691
25692 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
25693
25694 * sched-deps.c (sched_macro_fuse_insns): Check return value of
25695 targetm.fixed_condition_code_regs.
25696
25697 2019-04-05 Richard Biener <rguenther@suse.de>
25698
25699 PR debug/89892
25700 PR debug/89905
25701 * tree-cfgcleanup.c (remove_forwarder_block): Always move
25702 debug bind stmts but reset them if they are not valid at the
25703 destination.
25704
25705 2019-04-05 Martin Liska <mliska@suse.cz>
25706
25707 PR translation/89936
25708 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
25709 order to wrap keywords or arguments.
25710 * collect2.c (main): Likewise.
25711 (scan_prog_file): Likewise.
25712 (scan_libraries): Likewise.
25713 * common/config/riscv/riscv-common.c
25714 (riscv_subset_list::parsing_subset_version): Likewise.
25715 (riscv_subset_list::parse_std_ext): Likewise.
25716 * config/aarch64/aarch64.c (aarch64_override_options_internal):
25717 Likewise.
25718 * config/arm/arm.c (arm_option_override): Likewise.
25719 * config/cris/cris.c (cris_print_operand): Likewise.
25720 * config/darwin-c.c (darwin_pragma_options): Likewise.
25721 (darwin_pragma_unused): Likewise.
25722 (darwin_pragma_ms_struct): Likewise.
25723 * config/ft32/ft32.c (ft32_print_operand): Likewise.
25724 * config/i386/i386.c (print_reg): Likewise.
25725 (ix86_print_operand): Likewise.
25726 * config/i386/xm-djgpp.h: Likewise.
25727 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
25728 * config/m32c/m32c.c (m32c_option_override): Likewise.
25729 * config/msp430/msp430.c (msp430_option_override): Likewise.
25730 * config/nds32/nds32.c (nds32_option_override): Likewise.
25731 * config/nvptx/mkoffload.c (main): Likewise.
25732 * config/rx/rx.c (rx_print_operand): Likewise.
25733 (valid_psw_flag): Likewise.
25734 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
25735 (vms_pragma_nomember_alignment): Likewise.
25736 (vms_pragma_extern_model): Likewise.
25737 * lto-wrapper.c (compile_offload_image): Likewise.
25738 * omp-offload.c (oacc_parse_default_dims): Likewise.
25739 * symtab.c (symtab_node::verify_base): Likewise.
25740 * tlink.c (recompile_files): Likewise.
25741 (start_tweaking): Likewise.
25742 * tree-profile.c (parse_profile_filter): Likewise.
25743
25744 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
25745
25746 PR tree-optimization/89956
25747 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
25748 multiple negates of the same value.
25749
25750 2019-04-04 Martin Sebor <msebor@redhat.com>
25751
25752 PR middle-end/89957
25753 PR middle-end/89911
25754 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
25755 have the same precision since the function crashes otherwise.
25756 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
25757 has non-zero arguments.
25758
25759 2019-04-04 Martin Sebor <msebor@redhat.com>
25760
25761 PR middle-end/89934
25762 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
25763 out if the number of arguments is less than expected.
25764
25765 2019-04-04 Jeff Law <law@redhat.com>
25766
25767 PR rtl-optimization/89399
25768 * ree.c (combine_set_extension): Use single_set rather than
25769 digging into PATTERN for items on the candidate list.
25770 (combine_reaching_defs): Likewise.
25771
25772 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
25773
25774 PR rtl-optimization/46590
25775 * loop-invariant.c (find_defs): Move df_remove_problem and
25776 df_process_deferred_rescans to move_invariants.
25777 Move df_live_add_problem and df_live_set_all_dirty calls
25778 to move_invariants.
25779 (move_invariants): Likewise.
25780 (move_loop_invariants): Likewise, making the df_live calls
25781 conditional on -O. Remove the problem again if we added it
25782 locally.
25783
25784 2019-04-03 qing zhao <qing.zhao@oracle.com>
25785
25786 PR tree-optimization/89730
25787 * ipa-inline.c (can_inline_edge_p): Delete the checking for
25788 -flive-patching=inline-only-static.
25789 (can_inline_edge_by_limits_p): Add the checking for
25790 -flive-patching=inline-only-static and grant always_inline
25791 even when -flive-patching=inline-only-static is specified.
25792
25793 2019-04-03 Jeff Law <law@redhat.com>
25794
25795 PR rtl-optimization/81025
25796 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
25797
25798 2019-04-03 Richard Biener <rguenther@suse.de>
25799
25800 PR tree-optimization/84101
25801 * tree-vect-stmts.c: Include explow.h for hard_function_value,
25802 regs.h for hard_regno_nregs.
25803 (cfun_returns): New helper.
25804 (vect_model_store_cost): When vectorizing a store to a decl
25805 we return and the function ABI returns in a multi-reg location
25806 account for the possible spilling that will happen.
25807
25808 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
25809
25810 * config/s390/s390.c (s390_legitimate_address_p): Reject long
25811 displacement addresses for vector mode operands.
25812
25813 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
25814
25815 * config/arc/arc.c (GMASK_LEN): Define.
25816 (arc_restore_callee_saves): Restore first blink when
25817 !optimize_size.
25818
25819 2019-04-03 Sudakshina Das <sudi.das@arm.com>
25820
25821 * doc/extend.texi: Add deprecated comment on sign-return-address
25822 function attribute and add mbranch-protection.
25823 * doc/invoke.texi: Add bti to the options for mbranch-protection.
25824
25825 2019-04-03 Richard Biener <rguenther@suse.de>
25826
25827 PR lto/89896
25828 * lto-wrapper.c (run_gcc): Avoid implicit rules making
25829 the all target phony.
25830
25831 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
25832
25833 PR target/89902
25834 PR target/89903
25835 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
25836 Return false for variable DImode shifts.
25837 (dimode_scalar_chain::compute_convert_gain): Do not handle
25838 register count operand in variable DImode shifts.
25839 (dimode_scalar_chain::make_vector_copies): Remove support to copy
25840 count argument of a variable shift instruction to a vector register.
25841 (dimode_scalar_chain::convert_reg): Remove support to convert
25842 count argument of a variable shift instruction.
25843
25844 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
25845
25846 PR rtl-optimization/84206
25847 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
25848 iterating over loop headers.
25849
25850 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
25851
25852 PR rtl-optimization/85876
25853 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
25854 beyond the original fence.
25855
25856 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
25857
25858 * config.gcc: Mark spu* targets as deprecated/obsolete.
25859
25860 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25861
25862 * config/s390/s390-builtin-types.def: New builtin function type
25863 definitions. Remove unused types.
25864 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
25865 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
25866 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
25867 overloaded builtins.
25868 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
25869 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
25870 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
25871 (vec_double, vec_signed, vec_unsigned): Define to use the new
25872 overloaded builtins.
25873 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
25874 Remove expanders.
25875
25876 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25877
25878 * config/s390/s390-builtin-types.def: New builtin function type
25879 definitions.
25880 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
25881 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
25882 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
25883 (s390_vstrszh, s390_vstrszf): New low-level builtins.
25884 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
25885 constant definitions.
25886 * config/s390/vecintrin.h (vec_search_string_cc)
25887 (vec_search_string_until_zero_cc): New builtin name definitions.
25888 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
25889 expanders.
25890 ("vec_vstrs<mode>"): New insn definition.
25891
25892 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25893
25894 * config/s390/s390-builtin-types.def: Add new builtin function
25895 types.
25896 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
25897 New overloaded builtins.
25898 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
25899 s390_vsrd.
25900 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
25901 (UNSPEC_VEC_SLDBYTE): ... this.
25902 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
25903 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
25904 definitions.
25905 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
25906 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
25907 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
25908
25909 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25910
25911 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
25912 New insn definition.
25913 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
25914 * config/s390/vector.md (V_HW_HSD): ... here.
25915
25916 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25917
25918 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
25919 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
25920 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
25921 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
25922 New insn definitions.
25923
25924 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25925
25926 * config/s390/s390-builtin-types.def: Add new builtin function type.
25927 * config/s390/s390-builtins.def: Add overloaded builtin
25928 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
25929 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
25930 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
25931 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
25932 ("eltswap<mode>"): New expander.
25933 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
25934 insn definitions.
25935
25936 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25937
25938 * config/s390/s390-builtin-types.def: Add new builtin function types.
25939 * config/s390/s390-builtins.def: Add overloaded builtin
25940 s390_vec_revb. Add low-level builtins for vlbr and vstbr
25941 instructions.
25942 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
25943 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
25944 ("bswap<mode>"): New expander.
25945 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
25946
25947 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25948
25949 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
25950 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
25951 vector builtin version number in __VEC__.
25952
25953 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25954
25955 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
25956 iterators.
25957 (SFSI): New mode attribute.
25958 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
25959 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
25960 rename to ...
25961 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
25962 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
25963 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
25964 ("floatsi<mode>2"): Add wcefb instruction.
25965
25966 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25967
25968 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
25969 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
25970 mode iterators.
25971 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
25972 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
25973 support 32 bit fp-int conversions. Rename to ...
25974 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
25975 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
25976 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
25977 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
25978 ... to these.
25979
25980 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25981
25982 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
25983 if-then-else constructs if we can use the select instruction.
25984 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
25985
25986 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25987
25988 * config/s390/s390.md ("*popcountdi_arch13_cc")
25989 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
25990 definition.
25991 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
25992 Append _z196 to make it ...
25993 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
25994 ("popcounthi2_z196"): ... this.
25995 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
25996 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
25997
25998 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25999
26000 * config/s390/s390.c (s390_canonicalize_comparison): Convert
26001 certain compares for arch13 in order to make use of the condition
26002 code result produced by the new instructions.
26003 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
26004 nxrk, and nxgrk instruction patterns.
26005 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
26006 (inv_no): Add new code iterator together with some attributes.
26007 ("*andc_split_<mode>"): Disable splitter for arch13.
26008 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
26009 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
26010 ("*<ANDOR:bitops_name>c<GPR:mode>")
26011 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
26012 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
26013 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
26014 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
26015
26016 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26017
26018 * common/config/s390/s390-common.c (processor_flags_table): New
26019 entry for arch13.
26020 * config.gcc: Support arch13 with the --with-arch= configure flag.
26021 * config/s390/driver-native.c (s390_host_detect_local_cpu):
26022 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
26023 * config/s390/s390.c (s390_get_sched_attrmask)
26024 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
26025 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
26026 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
26027 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
26028 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
26029 definitions.
26030 * config/s390/s390.opt: Support arch13 as processor type in
26031 command line options.
26032
26033 2019-04-02 Martin Liska <mliska@suse.cz>
26034
26035 PR translation/89912
26036 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
26037 Fix param description of graphite-max-arrays-per-scop.
26038
26039 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
26040
26041 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
26042 (ASAN_CC1_SPEC): Use it in 64-bit mode.
26043 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
26044
26045 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
26046
26047 PR rtl-optimization/85412
26048 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
26049 sel_sched_region_1, not after.
26050
26051 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
26052
26053 PR rtl-optimization/86928
26054 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
26055 compute_live if necessary.
26056 (sel_redirect_edge_and_branch): Likewise.
26057
26058 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
26059
26060 PR rtl-optimization/89865
26061 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
26062 register if it is a part of small class.
26063
26064 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
26065
26066 PR rtl-optimization/87273
26067 * sel-sched-ir.c (merge_fences): Remove assert.
26068
26069 2019-04-01 Richard Biener <rguenther@suse.de>
26070
26071 PR tree-optimization/46590
26072 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
26073 (dom_walker::m_reachability): Add in place of...
26074 (dom_walker::m_skip_unreachable_blocks): ...this.
26075 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
26076 Move complex initialization ...
26077 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
26078 lazily and initialize edge flags on each invocation.
26079 (dom_walker::bb_reachable): Use m_reachability.
26080
26081 2019-04-01 Martin Liska <mliska@suse.cz>
26082
26083 PR driver/89861
26084 * opt-suggestions.c (option_proposer::build_option_suggestions):
26085 Add variant without any argument in order to provide better
26086 hints.
26087
26088 2019-04-01 Richard Biener <rguenther@suse.de>
26089
26090 PR c/71598
26091 * gimple.c: Include langhooks.h.
26092 (gimple_get_alias_set): Treat enumeral types as the underlying
26093 integer type.
26094
26095 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
26096 Eric Botcazou <ebotcazou@adacore.com>
26097
26098 PR rtl-optimization/89862
26099 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
26100 that operates on the full registers for WORD_REGISTER_OPERATIONS
26101 architectures.
26102
26103 2019-03-29 Jim Wilson <jimw@sifive.com>
26104
26105 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
26106 Clear MASK_RVC and then set if C subset supported.
26107
26108 2019-03-29 Jakub Jelinek <jakub@redhat.com>
26109
26110 PR c/89872
26111 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
26112 non-addressable complit into its initializer if it is volatile.
26113
26114 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
26115
26116 * opts-common.c (integral_argument): Set errno properly in one case.
26117
26118 2019-03-29 Martin Liska <mliska@suse.cz>
26119
26120 * doc/invoke.texi: Remove -Wchkp from documentation.
26121
26122 2019-03-29 Martin Liska <mliska@suse.cz>
26123
26124 * dbgcnt.c (print_limit_reach): New function.
26125 (dbg_cnt): Use it.
26126
26127 2019-03-29 Martin Liska <mliska@suse.cz>
26128
26129 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
26130 (dbg_cnt_process_opt): Parse first tokens aas
26131 dbg_cnt_process_single_pair is also using strtok.
26132
26133 2019-03-29 Jakub Jelinek <jakub@redhat.com>
26134
26135 PR rtl-optimization/87485
26136 * function.c (expand_function_end): Move stack_protect_epilogue
26137 before loading of return value into hard register(s).
26138
26139 2019-03-28 Jakub Jelinek <jakub@redhat.com>
26140
26141 PR middle-end/89621
26142 * tree-inline.h (struct copy_body_data): Add
26143 dont_remap_vla_if_no_change flag.
26144 * tree-inline.c (remap_type_3, remap_type_2): New functions.
26145 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
26146 and remap_type_2 returns false.
26147 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
26148 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
26149 only from where it is copied to nested contexts.
26150
26151 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
26152
26153 PR target/89865
26154 * config/i386/i386.md (RMW operation with LEA peephole):
26155 Use LEAMODE mode attribute instead of SWI mode iterator for
26156 LEA pattern.
26157
26158 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
26159
26160 PR target/89848
26161 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
26162 Also process XEXP (src, 0) of a shift insn.
26163
26164 2019-03-28 David Malcolm <dmalcolm@redhat.com>
26165
26166 PR middle-end/89725
26167 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
26168 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
26169
26170 2019-03-28 Jakub Jelinek <jakub@redhat.com>
26171
26172 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
26173 test.
26174 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
26175 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
26176 immediately after first one with df_analyze in between, but rather
26177 process all bbs, queueing ones that need second pass in a worklist,
26178 df_analyze, process queued debug insn changes and if second pass is
26179 needed, process bbs from worklist, df_analyze, process queued debug
26180 insns again.
26181
26182 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
26183 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
26184 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
26185
26186 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
26187
26188 PR c/79022
26189 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
26190 definition.
26191
26192 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
26193
26194 PR target/85667
26195 * config/i386/i386.c (ix86_function_value_1): Call the newly added
26196 function for 32-bit MS_ABI.
26197 (function_value_ms_32): New function.
26198
26199 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
26200
26201 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
26202 (movdi): Call gen_movdi_symbol_save_scc.
26203 (gen_movdi_symbol_save_scc): New insn and split.
26204
26205 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
26206
26207 PR rtl-optimization/89313
26208 * function.c (matching_constraint_num): New static function.
26209 (match_asm_constraints_1): Use it. Fixup white space and comment.
26210 Don't replace inputs with non-matching constraints which conflict
26211 with early clobber outputs.
26212
26213 2019-03-27 Jeff Law <law@redhat.com>
26214
26215 PR rtl-optimization/87761
26216 PR rtl-optimization/89826
26217 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
26218 slightly later.
26219 (pass_cprop_hardreg::execute): Call df_analyze after adding the
26220 note problem to get REG_DEAD/REG_UNUSED notes updated.
26221
26222 2019-03-27 Richard Biener <rguenther@suse.de>
26223
26224 PR tree-optimization/89463
26225 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
26226 queue edges to remove.
26227 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
26228 dead stmts. Delay edge removal until PHIs are removed to
26229 make debug-stmt creation not confused by seemingly degenerate
26230 PHIs.
26231
26232 2019-03-27 Alan Modra <amodra@gmail.com>
26233
26234 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
26235 throughout file.
26236 * config/rs6000/darwin.h: Likewise.
26237 * config/rs6000/rs6000.c: Likewise.
26238
26239 2019-03-27 Alan Modra <amodra@gmail.com>
26240
26241 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
26242 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
26243
26244 2019-03-26 Andrew Waterman <andrew@sifive.com>
26245 Jim Wilson <jimw@sifive.com>
26246
26247 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
26248 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
26249 (generic_idivdi, generic_fmul_single, generic_fmul_double)
26250 (generic_fdiv, generic_fsqrt): Add check for generic tune.
26251 (generic_alu): Add auipc to type list.
26252 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
26253 (riscv_microarchitecture): Declare.
26254 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
26255 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
26256 field.
26257 (riscv_microarchitecture): New.
26258 (sifive_7_tune_info): New.
26259 (riscv_cpu_info_table): Add microarchitecture value for rocket and
26260 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
26261 entries.
26262 (riscv_store_data_bypass_p): New.
26263 (riscv_option_override): Set riscv_microarchitecture from
26264 cpu->microarchitecture.
26265 * config/riscv/riscv.md: Include sifive-7.md.
26266 (type): Add auipc.
26267 (tune): New.
26268 (auipc<mode>): Change type to auipc.
26269 (restore_stack_nonlocal): New.
26270 * config/riscv/sifive-7.md: New.
26271 * doc/invoke.texi (RISC-V Options): Update mtune docs.
26272
26273 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
26274
26275 PR target/89827
26276 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
26277 Also process XEXP (src, 0) of a shift insn.
26278
26279 2019-03-26 Richard Biener <rguenther@suse.de>
26280
26281 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
26282 (copy_debug_stmt): Likewise.
26283 (expand_call_inline): Likewise.
26284 (copy_bb): Avoid redundant lookup & set of gimple_block.
26285 * gimple-low.c (lower_gimple_return): Likewise.
26286 (lower_builtin_setjmp): Likewise.
26287
26288 2019-03-26 Jakub Jelinek <jakub@redhat.com>
26289
26290 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
26291 is constant 0, turn into static const data member initialized to false.
26292 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
26293 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
26294
26295 2019-03-26 Jason Merrill <jason@redhat.com>
26296 Jakub Jelinek <jakub@redhat.com>
26297
26298 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
26299 method.
26300 (mem_alloc_description::release_object_overhead): Fix comment typos.
26301 * hash-table.h (hash_table::~hash_table): Call
26302 release_instance_overhead only if m_entries is non-NULL, otherwise
26303 call unregister_descriptor.
26304
26305 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
26306
26307 PR tree-optimization/81740
26308 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
26309 In case of outer loop vectorization, check for backward dependence
26310 at the inner loop if outer loop dependence is reversed.
26311
26312 2019-03-26 Alan Modra <amodra@gmail.com>
26313
26314 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
26315 rs6000_vector_mem init. Correct wI and wJ comment.
26316
26317 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
26318
26319 PR rtl-optimization/88347
26320 PR rtl-optimization/88423
26321 * sched-deps.c (sched_analyze_insn): Take into account that for
26322 tablejumps the barrier appears after a label and a jump_table_data.
26323
26324 2019-03-25 Martin Sebor <msebor@redhat.com>
26325
26326 PR c/89812
26327 * c-common.c (check_user_alignment): Rename local. Correct maximum
26328 alignment in diagnostic. Avoid assuming argument fits in SHWI,
26329 convert it to UHWI when it fits.
26330
26331 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
26332
26333 PR debug/86964
26334 * dwarf2out.c (premark_used_variables): New function.
26335 (prune_unused_types_walk): Do not mark not premarked external
26336 variables.
26337 (prune_unused_types): Call premark_used_variables.
26338
26339 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
26340
26341 PR rtl-optimization/89676
26342 * lra-constraints.c (curr_insn_transform): Do match reload for
26343 early clobbers when the match was successful only for different
26344 registers.
26345
26346 2019-03-25 Martin Sebor <msebor@redhat.com>
26347
26348 * doc/extend.texi (Common Type Attributes): Document vector_size.
26349 (Common Variable Attributes): Mention size constraint. Correct
26350 quoting and typos.
26351 (Vector Extensions): Use @dfn when defining bas type. Clarify
26352 base type and size constraints.
26353
26354 2019-03-25 Richard Biener <rguenther@suse.de>
26355
26356 PR tree-optimization/89789
26357 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
26358 changes from non-undefined back to undefined.
26359
26360 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
26361
26362 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
26363 heap string and a gc string, but since this variable is unknown to
26364 ggc the gc string might get reused and corrupted. Fixed by always
26365 using a heap string.
26366
26367 2019-03-25 Richard Biener <rguenther@suse.de>
26368
26369 PR tree-optimization/89779
26370 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
26371 to remove IV defs, delay actual removal.
26372 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
26373 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
26374 very end, properly also reset loop control IV information.
26375
26376 2019-03-25 Richard Biener <rguenther@suse.de>
26377
26378 PR tree-optimization/89802
26379 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
26380 move EH data to folded stmt.
26381
26382 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
26383
26384 * config/s390/s390-builtin-types.def: Remove few unused types and
26385 fix sort order for others.
26386
26387 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
26388
26389 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
26390 expected and found types with -mdebug during builtin matching.
26391
26392 2019-03-25 Richard Biener <rguenther@suse.de>
26393
26394 PR middle-end/89790
26395 * fold-const.c (operand_equal_p): Revert last change with
26396 updated comment.
26397
26398 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
26399
26400 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
26401 notes for the result of the __tls_get_addr calls.
26402 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
26403
26404 2019-03-24 Jeff Law <law@redhat.com>
26405
26406 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
26407
26408 PR rtl-optimization/87761
26409 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
26410 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
26411 as needed.
26412 (pass_cprop_hardreg::execute): Add df note problem and defer insn
26413 rescans. Reprocess blocks as needed, calling df_analyze before
26414 reprocessing. Always call df_analyze before fixing up debug bind
26415 insns.
26416
26417 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
26418
26419 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
26420 big endian.
26421
26422 2019-03-22 Andrew Pinski <apinski@marvell.com>
26423
26424 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
26425 attrribute for uxtw.
26426
26427 2019-03-26 Jeff Law <law@redhat.com>
26428
26429 PR rtl-optimization/87761
26430 * config/mips/mips-protos.h (mips_split_move): Add new argument.
26431 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
26432 (mips_split_move): Accept new INSN argument. Try to forward SRC
26433 into the next instruction.
26434 (mips_split_move_insn): Pass INSN through to mips_split_move.
26435
26436 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
26437
26438 PR rtl-optimization/89676
26439 * lra-constraints.c (curr_insn_transform): Do match reload for
26440 early clobbers even if the match was successful.
26441
26442 2019-03-22 Jakub Jelinek <jakub@redhat.com>
26443
26444 PR c++/87481
26445 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
26446
26447 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
26448
26449 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
26450
26451 2019-03-22 Jakub Jelinek <jakub@redhat.com>
26452
26453 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
26454 <avx512>_fmsub_<mode>_mask3<round_name>,
26455 <avx512>_fnmadd_<mode>_mask3<round_name>,
26456 <avx512>_fnmsub_<mode>_mask3<round_name>,
26457 avx512f_vmfmadd_<mode>_mask3<round_name>,
26458 avx512f_vmfmsub_<mode>_mask3<round_name>,
26459 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
26460 instead of register_operand and %v instead of v for match_operand 1.
26461 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
26462 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
26463 <round_nimm_predicate> instead of register_operand and %v instead of v
26464 for match_operand 1.
26465
26466 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
26467 <avx512>_fmadd_<mode>_mask3<round_name>,
26468 <avx512>_fmsub_<mode>_mask<round_name>,
26469 <avx512>_fmsub_<mode>_mask3<round_name>,
26470 <avx512>_fnmadd_<mode>_mask<round_name>,
26471 <avx512>_fnmadd_<mode>_mask3<round_name>,
26472 <avx512>_fnmsub_<mode>_mask<round_name>,
26473 <avx512>_fnmsub_<mode>_mask3<round_name>,
26474 <avx512>_fmaddsub_<mode>_mask<round_name>,
26475 <avx512>_fmaddsub_<mode>_mask3<round_name>,
26476 <avx512>_fmsubadd_<mode>_mask<round_name>,
26477 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
26478 <round_nimm_predicate> instead of nonimmediate_operand.
26479 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
26480 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
26481 Use register_operand instead of <round_nimm_predicate> for the
26482 operand that needs to match output.
26483 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
26484 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
26485 Likewise. Formatting fixes.
26486
26487 PR target/89784
26488 * config/i386/i386.c (enum ix86_builtins): Remove
26489 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
26490 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
26491 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
26492 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
26493 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
26494 __builtin_ia32_vfmsubss3_mask3): New builtins.
26495 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
26496 avx512f_vmfmadd_<mode>_mask3<round_name>,
26497 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
26498 *avx512f_vmfmsub_<mode>_mask<round_name>,
26499 avx512f_vmfmsub_<mode>_mask3<round_name>,
26500 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
26501 *avx512f_vmfnmadd_<mode>_mask<round_name>,
26502 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
26503 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
26504 *avx512f_vmfnmsub_<mode>_mask<round_name>,
26505 avx512f_vmfnmsub_<mode>_mask3<round_name>,
26506 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
26507 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
26508 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
26509 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
26510 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
26511 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
26512 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
26513 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
26514 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
26515 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
26516 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
26517 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
26518 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
26519 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
26520 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
26521 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
26522 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
26523 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
26524 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
26525 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
26526 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
26527 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
26528
26529 2019-03-21 Martin Sebor <msebor@redhat.com>
26530
26531 PR tree-optimization/89350
26532 * builtins.c (compute_objsize): Also ignore offsets whose upper
26533 bound is negative.
26534 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
26535 (builtin_memref::builtin_memref): Initialize new member.
26536 Allow EXPR to be null.
26537 (builtin_memref::extend_offset_range): Replace local with a member.
26538 Avoid assuming pointer offsets are unsigned.
26539 (builtin_memref::set_base_and_offset): Determine base object
26540 before computing offset range.
26541 (builtin_access::builtin_access): Handle memset.
26542 (builtin_access::generic_overlap): Replace local with a member.
26543 (builtin_access::strcat_overlap): Same.
26544 (builtin_access::overlap): Same.
26545 (maybe_diag_overlap): Same.
26546 (maybe_diag_access_bounds): Same.
26547 (wrestrict_dom_walker::check_call): Handle memset.
26548 (check_bounds_or_overlap): Same.
26549
26550 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
26551 Jakub Jelinek <jakub@redhat.com>
26552
26553 PR lto/89692
26554 * tree.c (fld_type_variant, fld_incomplete_type_of,
26555 fld_process_array_type): Call fld->pset.add and don't call
26556 add_tree_to_fld_list if it returns true.
26557 (free_lang_data_in_type): Similarly with self-recursive call. Purge
26558 non-marked types from TYPE_NEXT_VARIANT list.
26559 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
26560
26561 2019-03-21 Jakub Jelinek <jakub@redhat.com>
26562
26563 * hash-table.h (hash_table): Add Lazy template parameter defaulted
26564 to false, if true, don't alloc_entries during construction, but defer
26565 it to the first method that needs m_entries allocated.
26566 (hash_table::hash_table, hash_table::~hash_table,
26567 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
26568 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
26569 hash_table::clear_slot, hash_table::traverse_noresize,
26570 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
26571 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
26572 false.
26573 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
26574 NO_INSERT instead of find_with_hash.
26575 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
26576 hash_set::m_table): Add Lazy to template params of hash_table.
26577 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
26578 * attribs.c (test_attribute_exclusions): Likewise.
26579 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
26580 hash_set. Add tests for hash_set with Lazy = true.
26581
26582 2019-03-21 Richard Biener <rguenther@suse.de>
26583
26584 PR tree-optimization/89779
26585 * tree.c (tree_nop_conversion): Consolidate and fix defensive
26586 checks with respect to released SSA names now having error_mark_node
26587 type.
26588 * fold-const.c (operand_equal_p): Likewise.
26589
26590 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
26591
26592 PR target/89775
26593 * config/s390/s390.c (global_not_special_regno_p): Move to make it
26594 available to ...
26595 (s390_optimize_register_info): Use global_not_special_regno_p to
26596 check for global regs.
26597
26598 2019-03-20 Jakub Jelinek <jakub@redhat.com>
26599
26600 PR target/89752
26601 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
26602 update this_alternative nor this_alternative_set.
26603
26604 2019-03-19 Jim Wilson <jimw@sifive.com>
26605
26606 PR target/89411
26607 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
26608 align, size, offset. Use them to handle a BLKmode reference. Update
26609 comment.
26610 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
26611
26612 2019-03-19 Jakub Jelinek <jakub@redhat.com>
26613
26614 PR rtl-optimization/89768
26615 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
26616 instead of GEN_INT.
26617 (unroll_loop_runtime_iterations): Likewise.
26618
26619 2019-03-19 Martin Sebor <msebor@redhat.com>
26620
26621 PR tree-optimization/89644
26622 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
26623 rather than endptr as an indicator of nul-termination.
26624
26625 PR tree-optimization/89644
26626 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
26627 arrays in determining sequence sizes in strncpy and stpncpy.
26628
26629 2019-03-19 Martin Liska <mliska@suse.cz>
26630
26631 PR middle-end/89737
26632 * predict.c (combine_predictions_for_bb): Empty likely_edges and
26633 unlikely_edges if there's an edge that belongs to both these sets.
26634
26635 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
26636
26637 PR target/89746
26638 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
26639 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
26640 go via a stack temporary.
26641
26642 2019-03-19 Jakub Jelinek <jakub@redhat.com>
26643
26644 PR target/89378
26645 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
26646 instead of gen_rtx_SUBREG.
26647 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
26648
26649 2019-03-19 Richard Biener <rguenther@suse.de>
26650
26651 PR debug/88389
26652 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
26653
26654 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
26655
26656 PR lto/87809
26657 PR lto/89335
26658 * tree.c (free_lang_data_in_decl): Do not free context of C++
26659 destrutors.
26660
26661 2019-03-19 Jakub Jelinek <jakub@redhat.com>
26662
26663 PR target/89506
26664 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
26665 subs for the first alternative except when operands[3] is 1.
26666
26667 PR target/89752
26668 * gimplify.c (gimplify_asm_expr): For output argument with
26669 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
26670 diagnose error.
26671
26672 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
26673
26674 PR rtl-optimization/89753
26675 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
26676 explicit unrolling factor even more robust.
26677
26678 2019-03-19 Jakub Jelinek <jakub@redhat.com>
26679
26680 PR target/89726
26681 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
26682 compensation use x2 += 1 instead of x2 -= -1 and when honoring
26683 signed zeros, do another copysign after the compensation.
26684
26685 2019-03-18 Martin Sebor <msebor@redhat.com>
26686
26687 PR tree-optimization/89720
26688 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
26689 more conservatively, the same as anti-range.
26690
26691 2019-03-18 Richard Biener <rguenther@suse.de>
26692
26693 PR middle-end/88945
26694 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
26695 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
26696 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
26697 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
26698
26699 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
26700
26701 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
26702 Extend queue to 1024 entries.
26703 Add "consumed" field.
26704 (gomp_print_output): Remove print_index parameter.
26705 Add final parameter.
26706 Change limit to unsigned.
26707 Use consumed field to implement circular buffer.
26708 Detect interrupted print in final pass.
26709 Flush output at the end.
26710 (run): Update gomp_print_output usage.
26711 (main): Initialize kernargs->output_data.consumed.
26712
26713 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
26714
26715 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
26716 calculation of the minimum number of scalar iterations for
26717 fully-predicated loops.
26718
26719 2019-03-18 Martin Jambor <mjambor@suse.cz>
26720
26721 PR tree-optimization/89546
26722 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
26723 any propagation to its children took place.
26724
26725 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
26726
26727 PR target/89627
26728 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
26729 parameter, and make use of it.
26730 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
26731
26732 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
26733
26734 * config/arc/arc.opt (mcode-density-frame): Get the inital value
26735 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
26736 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
26737 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
26738 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
26739 match what the ops is doing.
26740 (push_multi_fp_blink): Likewise.
26741 * config/arc/arc.c (arc_override_options): Enable enter/leave when
26742 compiling for size and elf target.
26743 (arc_save_callee_enter): Adjust note to match what enter/leave
26744 operation does.
26745
26746 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
26747
26748 * config/arc/arc.md (tst_movb): Fix constraint.
26749
26750 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
26751
26752 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
26753
26754 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
26755
26756 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
26757 * config/arc/arc.c (arc_conditional_register_usage): Remove all
26758 reg_alloc_order references.
26759 (size_alloc_order): Define.
26760 (arc_adjust_reg_alloc_order): New function.
26761 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
26762 order.
26763 (ADJUST_REG_ALLOC_ORDER): Define.
26764 (HONOR_REG_ALLOC_ORDER): Likewise.
26765
26766 2019-03-18 Richard Biener <rguenther@suse.de>
26767
26768 PR target/87561
26769 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
26770 loads and stores a bit more.
26771
26772 2019-03-18 Richard Biener <rguenther@suse.de>
26773
26774 PR target/87561
26775 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
26776 load pessimization to stores as well.
26777
26778 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
26779
26780 PR middle-end/86979
26781 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
26782 successor, use NULL as its av set.
26783
26784 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
26785
26786 PR rtl-optimization/89721
26787 * lra-constraints (invariant_p): Return false if side_effects_p holds.
26788
26789 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
26790
26791 PR target/87532
26792 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26793 When handling vec_extract, use modular arithmetic to allow
26794 constant selectors greater than vector length.
26795 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
26796 V1TImode vectors to have constant selector values greater than 0.
26797 Use modular arithmetic to compute vector index.
26798 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
26799 index for in-memory vectors. Correct code generation for
26800 in-register vectors.
26801 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
26802 compute index.
26803
26804 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
26805
26806 PR c++/88534
26807 PR c++/88537
26808 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
26809 VAR_DECL args.
26810
26811 2019-03-15 Jakub Jelinek <jakub@redhat.com>
26812
26813 PR c++/89709
26814 * tree.c (inchash::add_expr): Strip any location wrappers.
26815 * fold-const.c (operand_equal_p): Move stripping of location wrapper
26816 after hash verification.
26817
26818 PR debug/89704
26819 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
26820 SIGN_EXTEND and ZERO_EXTEND.
26821
26822 2019-03-14 Jason Merrill <jason@redhat.com>
26823 Jakub Jelinek <jakub@redhat.com>
26824
26825 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
26826 than if is_empty (*slot).
26827 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
26828 existing elt and for elt removal.
26829 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
26830 of already removed elt.
26831
26832 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
26833
26834 PR target/89650
26835 * config/i386/i386.c (remove_partial_avx_dependency): Handle
26836 REG_EH_REGION note.
26837
26838 2019-03-14 Martin Liska <mliska@suse.cz>
26839
26840 PR other/89712
26841 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
26842
26843 2019-03-14 Richard Biener <rguenther@suse.de>
26844
26845 PR target/89711
26846 * config/i386/i386.c (make_resolver_func): Properly set
26847 DECL_CONTEXT on the RESULT_DECL.
26848 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
26849
26850 2019-03-14 Richard Biener <rguenther@suse.de>
26851
26852 * gimple-pretty-print.c: Include cfgloop.h.
26853 (dump_gimple_phi): Adjust.
26854 (dump_gimple_bb_header): Dump loop header for GIMPLE.
26855 (pp_cfg_jump): Adjust.
26856 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
26857 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
26858 (lower_phi_internal_fn): Remove.
26859 (verify_gimple_call): Remove IFN_PHI special-casing.
26860 (dump_function_to_file): Dump IL state.
26861 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
26862 done to deal with PHI nodes being present in non-SSA state.
26863
26864 2019-03-14 Jakub Jelinek <jakub@redhat.com>
26865
26866 PR ipa/89684
26867 * multiple_target.c (create_dispatcher_calls): Change
26868 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
26869 In the node->iterate_referring loop, push *ref rather than ref, call
26870 ref->remove_reference () and always pass 0 to iterate_referring.
26871
26872 PR rtl-optimization/89679
26873 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
26874 would contain a paradoxical SUBREG.
26875
26876 2019-03-14 Richard Biener <rguenther@suse.de>
26877
26878 PR tree-optimization/89710
26879 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
26880 safe_dyn_cast.
26881
26882 2019-03-14 Martin Liska <mliska@suse.cz>
26883
26884 * coverage.c (coverage_begin_function): Stream also
26885 end_column.
26886 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
26887 documentation about function declaration location.
26888 * gcov-dump.c (tag_function): Print whole range
26889 of function declaration.
26890 * gcov.c (struct function_info): Add end_column field.
26891 (function_info::function_info): Initialize it.
26892 (output_json_intermediate_file): Output {start,end}_column
26893 fields.
26894 (read_graph_file): Read end_column.
26895
26896 2019-03-14 Richard Biener <rguenther@suse.de>
26897
26898 PR middle-end/89698
26899 * fold-const.c (operand_equal_p): For INDIRECT_REF check
26900 that the access types are similar.
26901
26902 2019-03-14 Jakub Jelinek <jakub@redhat.com>
26903
26904 PR tree-optimization/89703
26905 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
26906 aren't compatible also with builtin_decl_explicit. Check pure
26907 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
26908 and BUILT_IN_STPNCPY{,_CHK}.
26909
26910 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
26911
26912 PR target/89523
26913 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
26914 addr32 prefix to VSIB address for X32.
26915 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
26916 "%M2" to opcode.
26917 (*avx512pf_gatherpf<mode>df_mask): Likewise.
26918 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
26919 (*avx512pf_scatterpf<mode>df_mask): Likewise.
26920 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
26921 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
26922 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
26923 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
26924 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
26925 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
26926 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
26927 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
26928 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
26929 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
26930 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
26931 (*avx512f_scatterdi<mode>): Likewise.
26932
26933 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
26934
26935 PR target/85860
26936 * lra-constraints.c (inherit_in_ebb): Update
26937 potential_reload_hard_regs along with live_hard_regs.
26938
26939 2019-03-13 Jakub Jelinek <jakub@redhat.com>
26940
26941 PR debug/89498
26942 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
26943 DWARF_OFFSET_SIZE.
26944 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
26945
26946 2019-03-13 Martin Sebor <msebor@redhat.com>
26947
26948 PR tree-optimization/89662
26949 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
26950 has a size.
26951
26952 2019-03-13 Richard Biener <rguenther@suse.de>
26953
26954 PR middle-end/89677
26955 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
26956 throw FP expressions at tree-affine.
26957
26958 2019-03-14 Richard Biener <rguenther@suse.de>
26959
26960 * tree-pretty-print.c (dump_generic_node): For -gimple properly
26961 dump negative integer constants using _Literal (type) -num.
26962
26963 2019-03-13 Jakub Jelinek <jakub@redhat.com>
26964
26965 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
26966 nonlocal_value member.
26967
26968 PR middle-end/88588
26969 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
26970 (ipa_simd_modify_function_body): Handle PHIs.
26971
26972 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
26973
26974 * config/s390/s390.c (s390_option_override_internal): Use more
26975 aggressive inlining parameters.
26976
26977 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
26978
26979 * config/s390/3906.md: New file.
26980 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
26981 (LONGRUNNING_THRESHOLD): Remove.
26982 (MAX_SCHED_MIX_SCORE): Decrease.
26983 (MAX_SCHED_MIX_DISTANCE): Decrease.
26984 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
26985 (struct s390_sched_state): New struct to hold scheduling state.
26986 (S390_SCHED_STATE_NORMAL): Remove.
26987 (S390_SCHED_STATE_CRACKED): Remove.
26988 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
26989 (s390_get_sched_attrmask): Use new attribute.
26990 (s390_get_unit_mask): Use new units.
26991 (s390_is_fpd): New function.
26992 (s390_is_fxd): New function.
26993 (s390_is_longrunning): New function.
26994 (s390_sched_score): Use new functions.
26995 (s390_sched_reorder): Likewise.
26996 (s390_sched_variable_issue): Rework and use new functions.
26997 (s390_sched_init): Use new functions.
26998 * config/s390/s390.h (s390_tune_attr): Add z14.
26999 * config/s390/s390.md: Add z14.
27000
27001 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27002
27003 * config/s390/2964.md: Update pipeline description.
27004 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
27005 (LONGRUNNING_THRESHOLD): Remove.
27006 (LATENCY_FACTOR): Remove.
27007 (s390_get_unit_mask): Add unit.
27008 (s390_sched_score): Use fxd/fpd.
27009 (s390_sched_variable_issue): Use fxd/fpd.
27010
27011 2019-03-12 Martin Liska <mliska@suse.cz>
27012
27013 * config/i386/i386.c: Reword an error message.
27014
27015 2019-03-12 Martin Jambor <mjambor@suse.cz>
27016
27017 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
27018 terminate with newline.
27019
27020 2019-03-12 Jakub Jelinek <jakub@redhat.com>
27021
27022 PR target/52726
27023 * config/s390/s390.md (tabort): Use %wd instead of
27024 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
27025 letters and periods.
27026 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
27027 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
27028 's with %< and %>.
27029
27030 PR middle-end/89663
27031 * builtins.c (expand_builtin_int_roundingfn,
27032 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
27033 gcc_unreachable if validate_arglist fails.
27034
27035 2019-03-12 Richard Biener <rguenther@suse.de>
27036
27037 PR tree-optimization/89664
27038 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
27039 free the occurance tree after the early out.
27040
27041 2019-03-11 Jakub Jelinek <jakub@redhat.com>
27042
27043 PR middle-end/89655
27044 PR bootstrap/89656
27045 * vr-values.c (vr_values::update_value_range): If
27046 old_vr->varying_p (), don't update it, make new_vr also VARYING
27047 and return false.
27048
27049 2019-03-11 Martin Liska <mliska@suse.cz>
27050
27051 * config/aarch64/aarch64.c (aarch64_override_options_internal):
27052 Fix double string quoting.
27053
27054 2019-03-11 Martin Liska <mliska@suse.cz>
27055
27056 * collect-utils.c (collect_wait): Wrap apostrophes
27057 in gcc internal format with %'.
27058 * collect2.c (main): Likewise.
27059 (scan_prog_file): Likewise.
27060 (scan_libraries): Likewise.
27061 * config/i386/i386.c (ix86_expand_call): Likewise.
27062 (ix86_handle_interrupt_attribute): Likewise.
27063 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
27064 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
27065 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
27066 * lto-wrapper.c (find_crtoffloadtable): Likewise.
27067 * symtab.c (symtab_node::verify_base): Likewise.
27068 * tree-cfg.c (verify_gimple_label): Likewise.
27069 * tree.c (verify_type_variant): Likewise.
27070
27071 2019-03-11 Martin Liska <mliska@suse.cz>
27072
27073 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
27074 in a string format message and fix GNU coding style.
27075 (expand_builtin_set_thread_pointer): Likewise.
27076 * common/config/aarch64/aarch64-common.c
27077 (aarch64_rewrite_selected_cpu): Likewise.
27078 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
27079 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
27080 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
27081 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
27082 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
27083 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
27084 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
27085 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
27086 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
27087 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
27088 Likewise.
27089 * common/config/riscv/riscv-common.c
27090 (riscv_subset_list::parsing_subset_version): Likewise.
27091 (riscv_subset_list::parse_std_ext): Likewise.
27092 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
27093 (riscv_subset_list::parse): Likewise.
27094 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
27095 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
27096 (aarch64_override_options_internal): Likewise.
27097 (aarch64_validate_mcpu): Likewise.
27098 (aarch64_validate_march): Likewise.
27099 (aarch64_validate_mtune): Likewise.
27100 (aarch64_override_options): Likewise.
27101 * config/alpha/alpha.c (alpha_option_override): Likewise.
27102 * config/arc/arc.c (arc_init): Likewise.
27103 (parse_mrgf_banked_regs_option): Likewise.
27104 (arc_override_options): Likewise.
27105 (arc_expand_builtin_aligned): Likewise.
27106 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
27107 (arm_expand_builtin): Likewise.
27108 * config/arm/arm.c (arm_option_check_internal): Likewise.
27109 (arm_configure_build_target): Likewise.
27110 (arm_option_override): Likewise.
27111 (arm_options_perform_arch_sanity_checks): Likewise.
27112 (arm_handle_cmse_nonsecure_entry): Likewise.
27113 (arm_handle_cmse_nonsecure_call): Likewise.
27114 (arm_tls_referenced_p): Likewise.
27115 (thumb1_expand_prologue): Likewise.
27116 * config/avr/avr.c (avr_option_override): Likewise.
27117 * config/bfin/bfin.c (bfin_option_override): Likewise.
27118 * config/c6x/c6x.c (c6x_option_override): Likewise.
27119 * config/cr16/cr16.c (cr16_override_options): Likewise.
27120 * config/cris/cris.c (cris_option_override): Likewise.
27121 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
27122 * config/darwin-c.c (macosx_version_as_macro): Likewise.
27123 * config/darwin.c (darwin_override_options): Likewise.
27124 * config/frv/frv.c (frv_expand_builtin): Likewise.
27125 * config/h8300/h8300.c (h8300_option_override): Likewise.
27126 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
27127 (ix86_option_override_internal): Likewise.
27128 (warn_once_call_ms2sysv_xlogues): Likewise.
27129 (ix86_expand_prologue): Likewise.
27130 (split_stack_prologue_scratch_regno): Likewise.
27131 (ix86_warn_parameter_passing_abi): Likewise.
27132 * config/ia64/ia64.c (fix_range): Likewise.
27133 * config/m68k/m68k.c (m68k_option_override): Likewise.
27134 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
27135 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
27136 (mips_set_compression_mode): Likewise.
27137 * config/mmix/mmix.c (mmix_option_override): Likewise.
27138 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
27139 * config/msp430/msp430.c (msp430_option_override): Likewise.
27140 * config/nds32/nds32.c (nds32_option_override): Likewise.
27141 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
27142 (nios2_option_override): Likewise.
27143 (nios2_expand_custom_builtin): Likewise.
27144 * config/nvptx/mkoffload.c (main): Likewise.
27145 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
27146 * config/pa/pa.c (fix_range): Likewise.
27147 (pa_option_override): Likewise.
27148 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
27149 (riscv_option_override): Likewise.
27150 * config/rl78/rl78.c (rl78_option_override): Likewise.
27151 * config/rs6000/aix61.h: Likewise.
27152 * config/rs6000/aix71.h: Likewise.
27153 * config/rs6000/aix72.h: Likewise.
27154 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
27155 * config/rs6000/freebsd64.h: Likewise.
27156 * config/rs6000/linux64.h: Likewise.
27157 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
27158 (rs6000_expand_zeroop_builtin): Likewise.
27159 (rs6000_expand_mtfsb_builtin): Likewise.
27160 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
27161 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
27162 (rs6000_invalid_builtin): Likewise.
27163 (rs6000_expand_split_stack_prologue): Likewise.
27164 * config/rs6000/rtems.h: Likewise.
27165 * config/rx/rx.c (valid_psw_flag): Likewise.
27166 (rx_expand_builtin): Likewise.
27167 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
27168 * config/s390/s390.c (s390_expand_builtin): Likewise.
27169 (s390_function_profiler): Likewise.
27170 (s390_option_override_internal): Likewise.
27171 (s390_option_override): Likewise.
27172 * config/sh/sh.c (sh_option_override): Likewise.
27173 (sh_builtin_saveregs): Likewise.
27174 (sh_fix_range): Likewise.
27175 * config/sh/vxworks.h: Likewise.
27176 * config/sparc/sparc.c (sparc_option_override): Likewise.
27177 * config/spu/spu.c (spu_option_override): Likewise.
27178 (fix_range): Likewise.
27179 * config/visium/visium.c (visium_option_override): Likewise.
27180 (visium_handle_interrupt_attr): Likewise.
27181 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
27182 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
27183 (dbg_cnt_process_opt): Likewise.
27184 * dwarf2out.c (output_dwarf_version): Likewise.
27185 * except.c (expand_eh_return): Likewise.
27186 * gcc.c (defined): Likewise.
27187 (driver_handle_option): Likewise.
27188 (process_command): Likewise.
27189 (compare_files): Likewise.
27190 (driver::prepare_infiles): Likewise.
27191 (driver::do_spec_on_infiles): Likewise.
27192 (driver::maybe_run_linker): Likewise.
27193 * omp-offload.c (oacc_parse_default_dims): Likewise.
27194 * opts-global.c (handle_common_deferred_options): Likewise.
27195 * opts.c (parse_sanitizer_options): Likewise.
27196 (common_handle_option): Likewise.
27197 (enable_warning_as_error): Likewise.
27198 * passes.c (enable_disable_pass): Likewise.
27199 * plugin.c (parse_plugin_arg_opt): Likewise.
27200 (default_plugin_dir_name): Likewise.
27201 * targhooks.c (default_expand_builtin_saveregs): Likewise.
27202 (default_pch_valid_p): Likewise.
27203 * toplev.c (init_asm_output): Likewise.
27204 (process_options): Likewise.
27205 (toplev::run_self_tests): Likewise.
27206 * tree-cfg.c (verify_gimple_call): Likewise.
27207 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
27208 (tree_inlinable_function_p): Likewise.
27209 * var-tracking.c (vt_find_locations): Likewise.
27210
27211 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
27212
27213 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
27214 only on the else branch.
27215
27216 2019-03-11 Martin Liska <mliska@suse.cz>
27217
27218 * gcov.c (output_intermediate_json_line): Print function
27219 name of each line.
27220 (output_json_intermediate_file): Add new argument.
27221 * doc/gcov.texi: Document the change.
27222
27223 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
27224
27225 PR rtl-optimization/89588
27226 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
27227 explicit unrolling factor more robust.
27228
27229 2019-03-11 Richard Biener <rguenther@suse.de>
27230
27231 PR tree-optimization/89649
27232 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
27233 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
27234 on the prolog and epilog loops.
27235 (vect_loop_versioning): Return copy of loop.
27236 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
27237 on the non-vectorized version of the loop.
27238
27239 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
27240
27241 PR target/68924
27242 * config/i386/sse.md (*vec_extractv2di_0_sse):
27243 Add (=r,x) alternative and corresponding splitter.
27244
27245 2019-03-10 Martin Jambor <mjambor@suse.cz>
27246
27247 PR tree-optimization/85762
27248 PR tree-optimization/87008
27249 PR tree-optimization/85459
27250 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
27251 it points to if there is a type changing MEM_REF. Adjust all callers.
27252 (build_accesses_from_assign): Disable total scalarization if
27253 contains_vce_or_bfcref_p returns true through the new parameter, for
27254 both rhs and lhs.
27255
27256 2019-03-09 Jakub Jelinek <jakub@redhat.com>
27257
27258 PR c/88568
27259 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
27260 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
27261
27262 PR target/79645
27263 * common.opt (fdiagnostics-show-labels,
27264 fdiagnostics-show-line-numbers, fdiagnostics-format=,
27265 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
27266 gas-locview-support, ginline-points, ginternal-reset-location-views):
27267 Terminate description text with a dot.
27268 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
27269 * config/mcore/mcore.opt (m210, m340): Likewise.
27270 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
27271 mnops=): Start description text with a capital letter.
27272 * config/arc/arc.opt (msize-level=): Likewise.
27273 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
27274 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
27275 mnewlib): Likewise.
27276 * config/ft32/ft32.opt (msim): Likewise.
27277 (mft32b, mcompress): Likewise. Terminate description text with a dot.
27278 (mnodiv, mnopm): Terminate description text with a dot.
27279 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
27280 a colon.
27281 * config/i386/i386.opt (prefer_vector_width, instrument_return):
27282 Likewise.
27283 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
27284 text.
27285
27286 PR rtl-optimization/89634
27287 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
27288 are modified in BB_END (e->src) instruction.
27289
27290 2019-03-08 David Malcolm <dmalcolm@redhat.com>
27291
27292 PR target/79926
27293 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
27294 messages more amenable to translation, and improve wording.
27295
27296 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
27297
27298 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
27299 ud- and du-chains between phases.
27300
27301 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
27302
27303 PR debug/89631
27304 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
27305 instead of POLY_INT_CST.
27306
27307 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
27308
27309 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
27310 requirement.
27311
27312 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
27313
27314 PR target/68924
27315 PR target/78782
27316 PR target/87558
27317 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
27318 (_mm_storeu_si64): Ditto.
27319
27320 2019-03-08 Martin Liska <mliska@suse.cz>
27321
27322 PR target/86952
27323 * config/i386/i386.c (ix86_option_override_internal): Disable
27324 jump tables when retpolines are used.
27325
27326 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
27327
27328 PR go/63560
27329 * ipa-split.c (execute_split_functions): Do not split
27330 'noinline' or 'section' function.
27331
27332 2019-03-08 Jakub Jelinek <jakub@redhat.com>
27333
27334 PR target/79846
27335 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
27336 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
27337 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
27338
27339 PR ipa/80000
27340 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
27341 from diagnostics. Formatting fixes.
27342
27343 PR target/85665
27344 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
27345 warn_odr diagnostics.
27346
27347 PR other/80058
27348 * lra-constraints.c (process_alt_operands): Avoid one space before
27349 " at the end of line and another after " on another line in a string
27350 literal.
27351 * attribs.c (handle_dll_attribute): Likewise.
27352 * config/avr/avr-devices.c (avr_texinfo): Likewise.
27353
27354 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
27355 warning_at or inform messages in G_() if there is no ?:.
27356
27357 PR tree-optimization/89550
27358 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
27359 returned true. Formatting fixes.
27360 (expand_builtin_strnlen): Formatting fixes.
27361 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
27362 if warning_at returned true.
27363 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
27364
27365 2019-03-08 Richard Biener <rguenther@suse.de>
27366
27367 PR middle-end/89578
27368 * cfgloop.h (struct loop): Add owned_clique field.
27369 * cfgloopmanip.c (copy_loop_info): Copy it.
27370 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
27371 cliques.
27372 * tree-inline.c (copy_loops): Remap owned_clique.
27373 * lto-streamer-in.c (input_cfg): Stream owned_clique.
27374 * lto-streamer-out.c (output_cfg): Likewise.
27375
27376 2019-03-08 Jakub Jelinek <jakub@redhat.com>
27377
27378 PR target/80190
27379 * config/darwin.c: Include intl.h.
27380 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
27381 composing the message out of two separate parts.
27382
27383 2019-03-07 Jakub Jelinek <jakub@redhat.com>
27384
27385 PR target/80003
27386 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
27387 doesn't start with a capital letter and doesn't end with a dot.
27388 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
27389 with a capital letter.
27390 (ix86_mangle_function_version_assembler_name): Likewise.
27391 (ix86_generate_version_dispatcher_body): Likewise.
27392 (fold_builtin_cpu): Likewise.
27393 (get_builtin_code_for_version): Likewise. Remove extraneous space.
27394 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
27395 translators, wrap full type name in %qs.
27396
27397 PR translation/79999
27398 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
27399 depend clause with source (or sink) modifier.
27400 * omp-expand.c (expand_omp_ordered_sink): Likewise.
27401
27402 PR target/89602
27403 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
27404 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
27405 (avx512f_load<mode>_mask): New define_expand.
27406 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
27407 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
27408 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
27409 __builtin_ia32_movess_mask): New builtins.
27410 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
27411 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
27412 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
27413 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
27414
27415 2019-03-07 Martin Jambor <mjambor@suse.cz>
27416
27417 PR lto/87525
27418 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
27419 for extern inline functions.
27420
27421 2019-03-07 Martin Jambor <mjambor@suse.cz>
27422
27423 PR ipa/88235
27424 * cgraph.h (cgraph_node): New inline method former_thunk_p.
27425 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
27426 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
27427 have multiple callees. At the end check if declarations match as
27428 opposed to cgraph_nodes.
27429
27430 2019-03-07 Martin Liska <mliska@suse.cz>
27431
27432 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
27433 which is equivalent to searching for this in clones chain.
27434 * symtab.c (symtab_node::verify_base): Similarly compare ASM
27435 names with a neighbour and special case first node in a chain.
27436
27437 2019-01-25 Jason Merrill <jason@redhat.com>
27438
27439 PR c++/80916 - spurious "static but not defined" warning.
27440 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
27441 for an internal symbol with DECL_EXTERNAL.
27442
27443 2019-04-07 Richard Biener <rguenther@suse.de>
27444
27445 PR middle-end/89618
27446 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
27447 * tree-inline.c (copy_loops): Simplify.
27448
27449 2019-03-07 Martin Liska <mliska@suse.cz>
27450
27451 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
27452
27453 2019-03-07 Richard Biener <rguenther@suse.de>
27454
27455 PR tree-optimization/89595
27456 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
27457 stmt iterator as reference, take boolean output parameter to
27458 indicate whether the stmt was removed and thus the iterator
27459 already advanced.
27460 (dom_opt_dom_walker::before_dom_children): Re-iterate over
27461 stmts created by folding.
27462
27463 2019-03-07 Jakub Jelinek <jakub@redhat.com>
27464
27465 PR c++/89585
27466 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
27467 at toplevel.
27468
27469 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
27470
27471 PR rtl-optimization/88845
27472 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
27473 LRA.
27474 * lra.c (remove_scratches_1): New function.
27475 (remove_scratches): Use it.
27476 (lra_emit_move): Likewise.
27477
27478 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
27479
27480 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
27481 unaligned_access variable.
27482 * config/arc/arc.c (arc_override_options): Set unaligned access
27483 default on for HS CPUs.
27484 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
27485
27486 2019-03-06 Martin Liska <mliska@suse.cz>
27487
27488 PR gcov-profile/89577
27489 * doc/gcov.texi: Prefer to use --coverage.
27490 * doc/sourcebuild.texi: Likewise.
27491
27492 2019-03-02 Jason Merrill <jason@redhat.com>
27493
27494 PR c++/86485 - -Wmaybe-unused with empty class ?:
27495 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
27496
27497 2019-03-05 Jakub Jelinek <jakub@redhat.com>
27498
27499 PR target/89587
27500 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
27501 if_multiarch.
27502
27503 PR middle-end/89590
27504 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
27505 exactly one argument.
27506
27507 2019-03-05 Jakub Jelinek <jakub@redhat.com>
27508 Richard Sandiford <richard.sandiford@arm.com>
27509
27510 PR tree-optimization/89570
27511 * match.pd (vec_cond into cond_op simplification): Don't use
27512 get_conditional_internal_fn, use as_internal_fn (cond_op).
27513
27514 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
27515
27516 PR target/89222
27517 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
27518 to decide when to split off a non-zero offset from a symbol.
27519 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
27520 in function symbols.
27521
27522 2019-03-05 Richard Biener <rguenther@suse.de>
27523
27524 PR tree-optimization/89594
27525 * tree-if-conv.c (pass_if_conversion::execute): Handle
27526 case where .LOOP_VECTORIZED_FUNCTION was removed.
27527
27528 2019-03-05 Jakub Jelinek <jakub@redhat.com>
27529
27530 PR bootstrap/89560
27531 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
27532 instead alloca it only when needed with the needed size.
27533
27534 PR tree-optimization/89570
27535 * match.pd (vec_cond into cond_op simplification): Guard with
27536 vectorized_internal_fn_supported_p test and #if GIMPLE.
27537
27538 PR tree-optimization/89566
27539 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
27540 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
27541 Punt if get_user_idx_format succeeds, but idx_format argument is
27542 not provided or doesn't have pointer type, or if idx_args is above
27543 number of provided arguments.
27544
27545 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
27546
27547 PR tree-optimization/89437
27548 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
27549
27550 2019-03-04 Richard Biener <rguenther@suse.de>
27551
27552 PR middle-end/89572
27553 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
27554 safe_dyn_cast.
27555
27556 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
27557
27558 PR tree-optimization/89487
27559 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
27560 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
27561 (distribute_loop): Don't do runtime alias check if there is non-
27562 addressable data reference.
27563 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
27564 is a register variable.
27565
27566 2019-03-02 Jakub Jelinek <jakub@redhat.com>
27567
27568 PR target/89506
27569 * config/arm/arm.md (cmpsi2_addneg): Use
27570 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
27571 If operands[2] is 0 or INT_MIN, force use of subs.
27572 (*compare_scc splitter): Use gen_int_mode.
27573 (*negscc): Likewise.
27574 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
27575
27576 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
27577 Monk Chiang <sh.chiang04@gmail.com>
27578
27579 * common/config/riscv/riscv-common.c: Include sstream.
27580 (riscv_subset_list::to_string): New.
27581 (riscv_arch_str): Likewise.
27582 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
27583 * config.in: Regen.
27584 * config/riscv/riscv-protos.h (riscv_arch_str): New.
27585 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
27586 (riscv_emit_attribute): New.
27587 (riscv_file_start): Emit attribute if needed.
27588 (riscv_option_override): Init riscv_emit_attribute_p.
27589 * config/riscv/riscv.opt (mriscv-attribute): New option.
27590 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
27591 * configure: Regen.
27592 * doc/install.texi: Document --with-riscv-attribute.
27593 * doc/invoke.texi: Document -mriscv-attribute.
27594
27595 * common/config/riscv/riscv-common.c:
27596 Include config/riscv/riscv-protos.h.
27597 (INCLUDE_STRING): Defined.
27598 (RISCV_DONT_CARE_VERSION): Defined.
27599 (riscv_subset_t): Declare.
27600 (riscv_subset_t::riscv_subset_t): New.
27601 (riscv_subset_list): Declare.
27602 (riscv_subset_list::riscv_subset_list): New.
27603 (riscv_subset_list::~riscv_subset_list): Likewise.
27604 (riscv_subset_list::parsing_subset_version): Likewise.
27605 (riscv_subset_list::parse_std_ext): Likewise.
27606 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
27607 (riscv_subset_list::add): Likewise.
27608 (riscv_subset_list::lookup): Likewise.
27609 (riscv_subset_list::xlen): Likewise.
27610 (riscv_subset_list::parse): Likewise.
27611 (riscv_supported_std_ext): Likewise.
27612 (current_subset_list): Likewise.
27613 (riscv_parse_arch_string): Using riscv_subset_list::parse to
27614 parse.
27615
27616 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
27617
27618 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
27619 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
27620 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
27621
27622 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
27623
27624 PR rtl-optimization/85899
27625 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
27626 fallthru edges leading to the exit block.
27627
27628 2019-03-01 Tamar Christina <tamar.christina@arm.com>
27629
27630 PR target/89517
27631 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
27632 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
27633
27634 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
27635
27636 PR tree-optimization/89535
27637 * tree-vect-stmts.c (vectorizable_call): Record the vector types
27638 for each operand. Calculate the fallback choice for mask operands
27639 and pass it to vect_get_vec_def_for_operand.
27640
27641 2019-03-01 Richard Biener <rguenther@suse.de>
27642
27643 PR middle-end/89541
27644 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
27645 get virtual operands.
27646 (get_expr_operands): Handle CONST_DECL like other decls.
27647
27648 2019-03-01 Jakub Jelinek <jakub@redhat.com>
27649
27650 PR middle-end/89503
27651 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
27652 on DECL_P and EXPR_P.
27653
27654 2019-03-01 Richard Biener <rguenther@suse.de>
27655
27656 PR middle-end/89497
27657 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
27658 argument, defaulted to zero.
27659 * passes.c (execute_function_todo): Pass down SSA update flags
27660 to cleanup_tree_cfg.
27661 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
27662 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
27663 form if requested.
27664 (cleanup_tree_cfg): Get and pass down SSA update flags.
27665
27666 2019-03-01 Jakub Jelinek <jakub@redhat.com>
27667
27668 PR bootstrap/89539
27669 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
27670 early_lto_debug argument.
27671
27672 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
27673
27674 PR tree-optimization/89536
27675 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
27676 only whether bit #0 of the value is 0 instead of the entire value.
27677
27678 2019-02-28 Marek Polacek <polacek@redhat.com>
27679
27680 PR c++/87068 - missing diagnostic with fallthrough statement.
27681 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
27682 at the end of a seq, save its location to walk_stmt_info.
27683 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
27684 a switch.
27685
27686 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
27687
27688 PR lto/88585
27689 * tree.c (find_atomic_core_type): Move ahead in file.
27690 (check_base_type): Correctly compare alignments of atomic types.
27691
27692 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
27693
27694 PR target/89455
27695 * config/i386/i386.c (get_builtin_code_for_version): Identify
27696 Westmere from PCLMUL, instead of AES.
27697
27698 2019-02-28 Jakub Jelinek <jakub@redhat.com>
27699
27700 PR target/89434
27701 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
27702 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
27703 -UINTVAL (...).
27704
27705 2019-02-28 Tamar Christina <tamar.christina@arm.com>
27706
27707 PR target/88530
27708 * config/aarch64/aarch64-option-extensions.def: Document it.
27709 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
27710 if empty hwcaps.
27711
27712 2019-02-28 Jakub Jelinek <jakub@redhat.com>
27713
27714 PR c/89520
27715 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
27716 builtins if they don't have a single scalar floating point argument.
27717 Formatting fixes.
27718
27719 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
27720
27721 PR rtl-optimization/89490
27722 * varasm.c (get_block_for_section): Bail out for mergeable sections.
27723 (default_use_anchors_for_symbol_p, output_object_block): Assert the
27724 block section is not mergeable.
27725
27726 2019-02-27 Jakub Jelinek <jakub@redhat.com>
27727
27728 PR target/70341
27729 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
27730 old define_insn to ...
27731 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
27732 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
27733 Rename old define_insn to ...
27734 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
27735 (thumb2_casesi_internal_pic): New define_expand. Rename old
27736 define_insn to ...
27737 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
27738 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
27739 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
27740
27741 2019-02-27 Richard Biener <rguenther@suse.de>
27742
27743 PR debug/88878
27744 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
27745
27746 2019-02-27 Richard Biener <rguenther@suse.de>
27747
27748 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
27749 building.
27750
27751 2019-02-27 Richard Biener <rguenther@suse.de>
27752
27753 PR debug/88878
27754 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
27755 parameter, prefix section name with .gnu.debuglto_ if true.
27756 (dwarf2out_finish): Pass false to output_comdat_type_unit.
27757 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
27758
27759 2019-02-27 Richard Biener <rguenther@suse.de>
27760
27761 PR debug/89514
27762 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
27763 rather than on use_debug_types, doing what output_die does.
27764 (value_format): Likewise.
27765
27766 2019-02-27 Martin Jambor <mjambor@suse.cz>
27767 Martin Sebor <msebor@redhat.com>
27768
27769 * doc/invoke.texi (Warning Options): Reword description of
27770 -Wno-absolute-value.
27771
27772 2019-02-27 Jakub Jelinek <jakub@redhat.com>
27773
27774 PR tree-optimization/89280
27775 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
27776 builtin_setjmp_setup_bb): New functions.
27777 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
27778 When visiting __builtin_setjmp_setup block, queue in special
27779 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
27780 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
27781 from visited after the loop if they don't have any visited successor
27782 blocks.
27783
27784 2018-02-26 Steve Ellcey <sellcey@marvell.com>
27785
27786 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
27787 New function.
27788 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
27789
27790 2019-02-26 Jakub Jelinek <jakub@redhat.com>
27791
27792 PR c++/89507
27793 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
27794 with types other than sizetype/ssizetype.
27795
27796 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
27797
27798 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
27799 (enum sparc_processor_type): ...this.
27800 (enum sparc_code_model_type): New enumeration type.
27801 (enum sparc_memory_model_type): Tweak comments.
27802 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
27803 (mtune): Likewise.
27804 (mcmodel): Use sparc_code_model enumeration and variable.
27805 (sparc_code_model): New enumeration.
27806 (mdebug): Add Undocumented marker.
27807 * config/sparc/sparc.h (enum cmodel): Delete.
27808 (sparc_cmodel): Likewise.
27809 (TARGET_CM_MEDLOW): Adjust to above renaming.
27810 (TARGET_CM_MEDMID): Likewise.
27811 (TARGET_CM_MEDANY): Likewise.
27812 (TARGET_CM_EMBMEDANY): Likewise.
27813 * config/sparc/sparc.c (sparc_cmodel): Delete.
27814 (sparc_option_override): Remove string/value mapping support for the
27815 code model. Move code and memory model support to after the handling
27816 of target flags. Do private machine setup last.
27817 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
27818 (sparc_legitimize_reload_address): Likewise.
27819 (sparc_output_mi_thunk): Likewise.
27820 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
27821
27822 2019-02-26 Jakub Jelinek <jakub@redhat.com>
27823
27824 PR tree-optimization/89500
27825 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
27826 (handle_builtin_strlen): Remove noncst_bound variable. Always
27827 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
27828 cst if the first cst bytes starting at x are known to be non-zero,
27829 even if the string is not zero terminated. Don't try to modify
27830 *si for strnlen. Update strlen_to_stridx only for strlen or if
27831 we can prove strnlen returns the same value as strlen would.
27832
27833 2019-02-26 Martin Liska <mliska@suse.cz>
27834
27835 * alloc-pool.h (struct pool_usage): Remove extra
27836 print_dash_line.
27837 * bitmap.h (struct bitmap_usage): Likewise.
27838 * ggc-common.c (struct ggc_usage): Likewise.
27839 * mem-stats.h (struct mem_usage): Likewise.
27840 (mem_alloc_description::dump): Print dash lines
27841 here and repeat header at the end of a table report.
27842 It's then more readable.
27843 * tree-phinodes.c (phinodes_print_statistics): Make
27844 horizontal alignment.
27845 * tree-ssanames.c (ssanames_print_statistics): Likewise.
27846 * vec.c (struct vec_usage): Remove extra print_dash_line.
27847 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
27848
27849 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
27850
27851 * doc/extend.texi (__builtin_object_size):
27852 Use @pxref instead of @xref inside parenthesis.
27853 (__builtin_has_attribute): Add missing comma after @xref.
27854 (__builtin_object_size): Ditto.
27855 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
27856
27857 2019-02-26 Jeff Law <law@redhat.com>
27858
27859 PR rtl-optimization/87761
27860 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
27861 detect obviously dead insns and delete them.
27862
27863 2019-02-26 Richard Biener <rguenther@suse.de>
27864
27865 PR tree-optimization/89505
27866 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
27867 to handle restrict pointed-to vars with multiple subvars
27868 correctly.
27869
27870 2019-02-26 Richard Biener <rguenther@suse.de>
27871
27872 PR tree-optimization/89489
27873 * tree-parloops.c (create_loop_fn): Copy over last_clique.
27874
27875 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
27876
27877 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
27878 and move around comment.
27879 <BIT_AND_EXPR>: Likewise.
27880 <BIT_NOT_EXPR>: Add specific handling for boolean types.
27881
27882 2019-02-26 Jakub Jelinek <jakub@redhat.com>
27883
27884 PR target/89474
27885 * config/i386/i386.c (remove_partial_avx_dependency): Call
27886 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
27887 after changing possibly many instructions to use that pseudo. Fix up
27888 insertion of v4sf_const0 setter at the start of bb.
27889
27890 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
27891
27892 PR c/80409
27893 * doc/extend.texi (Variadic Pointer Args): New section.
27894
27895 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
27896 Martin Sebor <msebor@gmail.com>
27897
27898 * common.opt (Wattribute-alias): Likewise.
27899 * doc/invoke.texi (Option Summary): List general form of
27900 -Wattribute-alias=. List positive form of -Wmissing-attributes.
27901 (-Wmissing-attributes): Invert entry, rewrite and correct default.
27902 Add cross-references.
27903 (-Wattribute-alias): Rewrite and correct default. Mention
27904 considered attributes (same as for -Wmissing-attributes).
27905
27906 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
27907
27908 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
27909 (_mm_cvtpd_ps): Likewise.
27910 (_mm_cvttpd_epi32): Likewise.
27911
27912 PR target/89338
27913 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
27914 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
27915
27916 PR target/89339
27917 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
27918
27919 2019-02-25 Tamar Christina <tamar.christina@arm.com>
27920
27921 PR target/88530
27922 * common/config/aarch64/aarch64-common.c
27923 (struct aarch64_option_extension): Add is_synthetic.
27924 (all_extensions): Use it.
27925 (TARGET_OPTION_INIT_STRUCT): Define hook.
27926 (struct gcc_targetm_common): Moved to end.
27927 (all_extensions_by_on): New.
27928 (opt_ext_cmp, typedef opt_ext): New.
27929 (aarch64_option_init_struct): New.
27930 (aarch64_contains_opt): New.
27931 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
27932 * config/aarch64/aarch64-option-extensions.def
27933 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
27934 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
27935 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
27936 Set is_synthetic to false.
27937 (crypto): Set is_synthetic to true.
27938 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
27939 SYNTHETIC.
27940
27941 2019-02-25 Tamar Christina <tamar.christina@arm.com>
27942
27943 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
27944 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
27945 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
27946 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
27947 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
27948 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
27949 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
27950 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
27951 Rename ...
27952 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
27953 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
27954 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
27955 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
27956 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
27957 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
27958 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
27959 vfmlsl_laneq_high_f16): ... To this.
27960 * config/arm/neon.md: Update comments.
27961
27962 2019-02-25 Tamar Christina <tamar.christina@arm.com>
27963
27964 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
27965 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
27966 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
27967 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
27968 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
27969 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
27970 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
27971 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
27972 Rename ...
27973 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
27974 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
27975 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
27976 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
27977 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
27978 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
27979 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
27980 vfmlslq_laneq_high_f16): ... To this.
27981
27982 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
27983
27984 PR rtl-optimization/86096
27985 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
27986 comparing mw_order values.
27987
27988 2019-02-25 Jakub Jelinek <jakub@redhat.com>
27989
27990 PR target/89434
27991 * config/arm/arm.md (*subsi3_carryin_const): Use
27992 arm_neg_immediate_operand predicate instead of
27993 arm_not_immediate_operand, "L" constraint instead of "K" and
27994 print it using %n2 instead of %B2.
27995 (*subsi3_carryin_const0): New define_insn.
27996 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
27997 instead of arm_not_operand and "I" constraint instead of "K" and
27998 print it using %n3 instead of %B2. Instead of using match_dup 2 add
27999 another match_operand and in the condition check that it is negation
28000 of operands[2].
28001 (*subsi3_carryin_compare_const0): New define_ins.
28002 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
28003 *subsi3_carryin_const.
28004 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
28005 split into *subsi3_carryin_compare_const0 if the highpart is zero.
28006
28007 PR target/89438
28008 * config/arm.vfp.md (*negdf2_vfp): Use
28009 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
28010 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
28011
28012 2019-02-24 Jakub Jelinek <jakub@redhat.com>
28013
28014 PR rtl-optimization/89445
28015 * simplify-rtx.c (simplify_ternary_operation): Don't use
28016 simplify_merge_mask on operands that may trap.
28017 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
28018 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
28019 second operand is CONST_VECTOR, check if any element could be zero.
28020 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
28021 their operands can trap.
28022
28023 2019-02-23 Martin Sebor <msebor@redhat.com>
28024
28025 * gimple-ssa-sprintf.c (target_strtol): Rename...
28026 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
28027 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
28028 check for range error.
28029
28030 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
28031
28032 PR driver/69471
28033 * opts-common.c (prune_options): Also prune joined switches
28034 with Negative and RejectNegative.
28035 * config/i386/i386.opt (march=): Add Negative(march=).
28036 (mtune=): Add Negative(mtune=).
28037 * doc/options.texi: Document Negative used together with Joined
28038 and RejectNegative.
28039
28040 2019-02-22 Martin Sebor <msebor@redhat.com>
28041
28042 * doc/extend.texi (Other Builtins): Add
28043 __builtin_is_constant_evaluated.
28044
28045 2019-02-22 Richard Biener <rguenther@suse.de>
28046
28047 PR tree-optimization/87609
28048 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
28049
28050 2019-02-22 Jeff Law <law@redhat.com>
28051
28052 PR rtl-optimization/87761
28053 * config/mips/mips.md: Add new combiner pattern to recognize
28054 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
28055
28056 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
28057
28058 PR target/89324
28059 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
28060 destination register in peepholes generating patterns for ADDS/SUBS.
28061 (add<mode>3_compare0,
28062 *addsi3_compare0_uxtw, add<mode>3_compareC,
28063 add<mode>3_compareV_imm, add<mode>3_compareV,
28064 *adds_<optab><ALLX:mode>_<GPI:mode>,
28065 *subs_<optab><ALLX:mode>_<GPI:mode>,
28066 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
28067 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
28068 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
28069 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
28070 sub<mode>3_compare1): Allow stack pointer for source register.
28071 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
28072
28073 2019-02-22 Martin Sebor <msebor@redhat.com>
28074
28075 PR tree-optimization/88993
28076 PR tree-optimization/88853
28077 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
28078 New helper.
28079 (sprintf_dom_walker::call_info::is_string_func): New helper.
28080 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
28081 for formatted string functions.
28082 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
28083
28084 2019-02-22 Martin Sebor <msebor@redhat.com>
28085
28086 PR c/89425
28087 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
28088 unreachable subexpressions.
28089
28090 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
28091 Hongtao Liu <hongtao.liu@intel.com>
28092 Sunil K Pandey <sunil.k.pandey@intel.com>
28093
28094 PR target/87007
28095 * config/i386/i386-passes.def: Add
28096 pass_remove_partial_avx_dependency.
28097 * config/i386/i386-protos.h
28098 (make_pass_remove_partial_avx_dependency): New.
28099 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
28100 New function.
28101 (pass_data_remove_partial_avx_dependency): New.
28102 (pass_remove_partial_avx_dependency): Likewise.
28103 (make_pass_remove_partial_avx_dependency): Likewise.
28104 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
28105 (*extendsfdf2): Add avx_partial_xmm_update.
28106 (truncdfsf2): Likewise.
28107 (*float<SWI48:mode><MODEF:mode>2): Likewise.
28108 (SF/DF conversion splitters): Disabled for TARGET_AVX.
28109
28110 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
28111
28112 PR middle-end/85598
28113 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
28114 analysis for pass.
28115
28116 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
28117
28118 PR target/89444
28119 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
28120 (PTA_SKYLAKE): Add PTA_AES.
28121 (PTA_GOLDMONT): Likewise.
28122
28123 2019-02-22 Sudakshina Das <sudi.das@arm.com>
28124
28125 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
28126 instruction if enabled.
28127 (aarch64_override_options): Remove reference to return address key.
28128
28129 2019-02-22 Richard Biener <rguenther@suse.de>
28130
28131 PR tree-optimization/89440
28132 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
28133 not necessary assert.
28134
28135 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
28136
28137 PR fortran/72741
28138 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
28139 (oacc_replace_fn_attrib_attr): ... this new function.
28140 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
28141 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
28142
28143 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28144
28145 * config/arm/arm-cpus.in (ares): Rename to...
28146 (neoverse-n1): ... This. Add ares as alias.
28147 * config/arm/arm-tables.opt: Regenerate.
28148 * config/arm/arm-tune.md: Likewise.
28149 * doc/invoke.txt (ARM Options): Document neoverse-n1.
28150
28151 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28152
28153 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
28154 * config/aarch64/aarch64-tune.md: Regenerate.
28155 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
28156
28157 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28158
28159 * config/aarch64/aarch64.c (ares_tunings): Rename to...
28160 (neoversen1_tunings): ... This.
28161 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
28162 (neoverse-n1): New CPU.
28163 * config/aarch64/aarch64-tune.md: Regenerate.
28164 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
28165
28166 2019-02-22 Richard Biener <rguenther@suse.de>
28167
28168 PR middle-end/87609
28169 * cfghooks.h (dependence_hash): New typedef.
28170 (struct copy_bb_data): New type.
28171 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
28172 (duplicate_block): Likewise.
28173 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
28174 (copy_bbs): Create and pass down copy_bb_data.
28175 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
28176 (rtl_duplicate_bb): Likewise.
28177 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
28178 remap dependence info.
28179
28180 2019-02-22 Richard Biener <rguenther@suse.de>
28181
28182 PR tree-optimization/87609
28183 * tree-core.h (tree_base): Document special clique values.
28184 * tree-inline.c (remap_dependence_clique): Do not use the
28185 special clique value of one.
28186 (maybe_set_dependence_info): Use clique one.
28187 (clear_dependence_clique): New callback.
28188 (compute_dependence_clique): Clear clique one from all refs
28189 before assigning it (again).
28190
28191 2019-02-21 Martin Sebor <msebor@redhat.com>
28192
28193 * doc/extend.texi (__clear_cache): Correct signature.
28194
28195 2019-02-21 Ian Lance Taylor <iant@golang.org>
28196
28197 PR go/89170
28198 * varasm.c (decode_addr_const): Call lookup_constant_def rather
28199 than output_constant_def.
28200 (add_constant_to_table): New static function.
28201 (output_constant_def): Call add_constant_to_table.
28202 (tree_output_constant_def): Likewise.
28203
28204 2019-02-21 Jakub Jelinek <jakub@redhat.com>
28205
28206 PR c++/89285
28207 * builtins.c (fold_builtin_arith_overflow): If first two args are
28208 INTEGER_CSTs, set intres and ovfres to constants rather than calls
28209 to ifn.
28210
28211 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
28212
28213 PR target/87412
28214 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
28215 error for -mindirect-branch/-mfunction-return with incompatible
28216 -fcf-protection.
28217
28218 2019-02-21 Jakub Jelinek <jakub@redhat.com>
28219
28220 PR bootstrap/88714
28221 * constraints.md (q): Remove.
28222 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
28223 instead of q.
28224
28225 2019-02-21 Martin Jambor <mjambor@suse.cz>
28226
28227 PR hsa/89302
28228 * omp-general.c (omp_extract_for_data): Removed a duplicate call
28229 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
28230 (omp_adjust_for_condition): ...here. Added necessary parameters.
28231 * omp-general.h (omp_adjust_for_condition): Updated declaration.
28232 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
28233 proper values to new parameters of omp_adjust_for_condition.
28234
28235 2019-02-20 Jakub Jelinek <jakub@redhat.com>
28236
28237 PR middle-end/89412
28238 * expr.c (expand_assignment): If result is a MEM, use change_address
28239 instead of simplify_gen_subreg.
28240
28241 2019-02-20 Jakub Jelinek <jakub@redhat.com>
28242 David Malcolm <dmalcolm@redhat.com>
28243
28244 PR middle-end/89091
28245 * fold-const.c (decode_field_reference): Return NULL_TREE if
28246 lang_hooks.types.type_for_size returns NULL. Check it before
28247 overwriting *exp_. Use return NULL_TREE instead of return 0.
28248
28249 2019-02-20 Jakub Jelinek <jakub@redhat.com>
28250
28251 PR middle-end/88074
28252 PR middle-end/89415
28253 * toplev.c (do_compile): Double the emin/emax exponents to workaround
28254 buggy mpc_norm.
28255
28256 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
28257
28258 PR target/89397
28259 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
28260 TARGET_SSE in addition to TARGET_SSE_MATH.
28261
28262 (ix86_excess_precision): Ditto.
28263 (ix86_float_exceptions_rounding_supported_p): Ditto.
28264 (use_rsqrt_p): Ditto.
28265 * config/i386/sse.md (rsqrt<mode>2): Ditto.
28266
28267 2019-02-20 David Malcolm <dmalcolm@redhat.com>
28268
28269 PR c/89410
28270 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
28271 linenum_arith_t when determining if two adjacent line spans are
28272 close enough to merge.
28273 (diagnostic_show_locus): Use linenum_arith_t when iterating over
28274 lines within each line_span.
28275
28276 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
28277
28278 PR target/86487
28279 * lra-constraints.c(uses_hard_regs_p): Fix handling of
28280 paradoxical SUBREGS.
28281
28282 2019-02-20 Li Jia He <helijia@linux.ibm.com>
28283
28284 PR target/88100
28285 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
28286 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
28287 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
28288 range checking it.
28289
28290 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
28291
28292 * config/gcn/gcn.c (print_operand): Fix typo.
28293
28294 2019-02-19 Richard Biener <rguenther@suse.de>
28295
28296 PR middle-end/88074
28297 * toplev.c (do_compile): Initialize mpfr's exponent range
28298 based on available float modes.
28299
28300 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
28301
28302 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
28303 as long as the epilogue isn't completed.
28304
28305 2019-02-18 Martin Sebor <msebor@redhat.com>
28306
28307 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
28308 __has_cpp_attribute, and __has_include.
28309
28310 2019-02-18 Martin Sebor <msebor@redhat.com>
28311
28312 * doc/invoke.texi (-Wreturn-type): Correct and expand.
28313
28314 2019-02-18 Martin Sebor <msebor@redhat.com>
28315
28316 PR middle-end/89294
28317 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
28318 expression.
28319 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
28320
28321 2019-02-18 Richard Biener <rguenther@suse.de>
28322
28323 PR tree-optimization/89296
28324 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
28325 of no-warning flag to cases that might emit the bogus warning.
28326
28327 2019-02-18 Jakub Jelinek <jakub@redhat.com>
28328
28329 PR bootstrap/88714
28330 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
28331 "q" constraint.
28332 * config/arm/vfp.md (*movdi_vfp): Likewise.
28333 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
28334 "q" constraint for operands[0].
28335
28336 PR target/89369
28337 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
28338 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
28339 pattern in a temporary buffer.
28340 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
28341 than 64-operands[2].
28342
28343 PR target/89361
28344 * config/s390/s390.c (s390_indirect_branch_attrvalue,
28345 s390_indirect_branch_settings): Define unconditionally.
28346 (s390_set_current_function): Likewise, but guard the whole body except
28347 the s390_indirect_branch_settings call with
28348 #if S390_USE_TARGET_ATTRIBUTE.
28349 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
28350
28351 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
28352 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
28353 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
28354 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
28355 HOST_WIDE_INT_1U instead of 1ULL.
28356 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
28357 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
28358 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
28359 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
28360 instead of 1UL.
28361 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
28362 instead of 1ul.
28363
28364 2019-02-18 Martin Jambor <mjambor@suse.cz>
28365
28366 PR tree-optimization/89209
28367 * tree-sra.c (create_access_replacement): New optional parameter
28368 reg_tree. Use it as a type if non-NULL and access type is not of
28369 a register type.
28370 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
28371 to create_access_replacement.
28372 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
28373 Check lacc is non-NULL before attempting to re-create it on the RHS.
28374
28375 2019-02-18 Martin Liska <mliska@suse.cz>
28376
28377 PR ipa/89306
28378 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
28379 by default.
28380 (symbol_table::free_edge): Recycle m_summary_id.
28381 * cgraph.h (get_summary_id): New.
28382 (symbol_table::release_symbol): Set m_summary_id to -1
28383 by default.
28384 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
28385 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
28386 function_summary to fast_function_summary.
28387 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
28388 * ipa-pure-const.c (class funct_state_summary_t):
28389 Switch from function_summary to fast_function_summary.
28390 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
28391 (class ipa_ref_opt_summary_t): Switch from function_summary
28392 to fast_function_summary.
28393 * symbol-summary.h (class function_summary_base): New class
28394 that is created from base of former function_summary.
28395 (function_summary_base::unregister_hooks): New.
28396 (class function_summary): Inherit from function_summary_base.
28397 (class call_summary_base): New class
28398 that is created from base of former call_summary.
28399 (class call_summary): Inherit from call_summary_base.
28400 (struct is_same): New.
28401 (class fast_function_summary): New summary class.
28402 (class fast_call_summary): New summary class.
28403 * vec.h (vec_safe_grow_cleared): New function.
28404
28405 2019-02-18 Martin Liska <mliska@suse.cz>
28406
28407 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
28408 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
28409 * doc/tm.texi: Document new target hook.
28410 * doc/tm.texi.in: Likewise.
28411 * target.def: Add new target macro.
28412 * gcc.c (find_fortran_preinclude_file): Do not search multilib
28413 suffixes.
28414
28415 2019-02-17 Alan Modra <amodra@gmail.com>
28416
28417 PR target/89271
28418 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
28419 output reg on add insn.
28420 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
28421
28422 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
28423
28424 PR target/89372
28425 * config/i386/sse.md (ssedoublemode): Remove V4HI.
28426 (PMULHRSW): Likewise.
28427 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
28428 TARGET_AVX2.
28429 (ssse3_pmulhrswv4hi3): New expander.
28430
28431 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
28432
28433 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
28434 MMX. Add isa attribute.
28435
28436 2019-02-16 Jakub Jelinek <jakub@redhat.com>
28437
28438 PR rtl-optimization/66152
28439 * builtins.h (c_readstr): Declare.
28440 * builtins.c (c_readstr): Remove forward declaration. Add
28441 null_terminated_p argument, if false, read all bytes from the
28442 string instead of stopping after '\0'.
28443 * expr.c (string_cst_read_str): New function.
28444 (store_expr): Use string_cst_read_str instead of
28445 builtin_strncpy_read_str. Try to store by pieces the whole
28446 exp_len first, and only if that fails, split it up into
28447 store by pieces followed by clear_storage. Formatting fix.
28448
28449 * config/i386/i386.md (*movqi_internal): Remove static from
28450 buf variable. Use output_asm_insn (buf, operands); return "";
28451 instead of return buf;.
28452 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
28453 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
28454 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
28455
28456 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
28457
28458 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
28459 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
28460 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
28461 (CC1_SPEC): Likewise.
28462 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
28463
28464 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
28465
28466 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
28467 the base address on 64-bit strict-alignment platforms.
28468
28469 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
28470
28471 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
28472
28473 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
28474
28475 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
28476
28477 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
28478
28479 PR rtl-optimization/88308
28480 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
28481 on copied instruction.
28482
28483 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
28484
28485 * final.c (insn_current_reference_address): Replace test on JUMP_P
28486 with test on jump_to_label_p.
28487 * config/visium/visium-passes.def: New file.
28488 * config/visium/t-visium (PASSES_EXTRA): Define.
28489 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
28490 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
28491 (TRAMPOLINE_ALIGNMENT): Define.
28492 * config/visium/visium.c (visium_option_override): Do not register
28493 the machine-specific reorg pass here.
28494 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
28495 for the GR6.
28496 (output_branch): Adjust threshold for long branch instruction.
28497 * config/visium/visium.md (cpu): Move around.
28498 (length): Adjust for the GR6.
28499
28500 2019-02-15 Richard Biener <rguenther@suse.de>
28501 Jakub Jelinek <jakub@redhat.com>
28502
28503 PR tree-optimization/89278
28504 * tree-loop-distribution.c: Include tree-eh.h.
28505 (generate_memset_builtin, generate_memcpy_builtin): Call
28506 rewrite_to_non_trapping_overflow on builtin->size before passing it
28507 to force_gimple_operand_gsi.
28508
28509 2019-02-15 Jakub Jelinek <jakub@redhat.com>
28510
28511 PR other/89342
28512 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
28513 optimize_debug.
28514 * opth-gen.awk: Likewise.
28515
28516 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
28517
28518 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
28519 Enable MMX, SSE and SSE2 by default.
28520 * config/i386/i386.c (ix86_option_override_internal): Do not
28521 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
28522
28523 2019-02-14 Jakub Jelinek <jakub@redhat.com>
28524
28525 PR rtl-optimization/89354
28526 * combine.c (make_extraction): Punt if extraction_mode is narrower
28527 than len bits.
28528
28529 2019-02-14 Maya Rashish <coypu@sdf.org>
28530
28531 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
28532 * config/netbsd-d.c: New file.
28533 * config/t-netbsd: Add netbsd-d.o
28534
28535 2018-02-14 Steve Ellcey <sellcey@marvell.com>
28536
28537 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
28538 affects_type_identity to true for aarch64_vector_pcs.
28539 (aarch64_comp_type_attributes): New function.
28540 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
28541
28542 2019-02-14 Tamar Christina <tamar.christina@arm.com>
28543
28544 PR target/88850
28545 * config/arm/iterators.md (ANY64): Add V4HF.
28546
28547 2019-02-14 Martin Liska <mliska@suse.cz>
28548
28549 PR rtl-optimization/89242
28550 * dce.c (delete_unmarked_insns): Call free_dominance_info we
28551 process a transformation.
28552
28553 2019-02-14 Jakub Jelinek <jakub@redhat.com>
28554
28555 PR tree-optimization/89314
28556 * fold-const.c (fold_binary_loc): Cast strlen argument to
28557 const char * before dereferencing it. Formatting fixes.
28558
28559 PR middle-end/89284
28560 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
28561
28562 2019-02-13 Ian Lance Taylor <iant@golang.org>
28563
28564 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
28565 and set current index for other optimizations.
28566
28567 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
28568
28569 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
28570 nonimmediate_operand as operand 2 predicate.
28571 (vec_set<VF2_512_256:mode>_0): Ditto.
28572 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
28573 (*vec_concatv2si): Remove alternative 2.
28574 (*vec_concatv4si_0): Use vm constraint for alternative 0.
28575 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
28576 (vec_concatv2di): Split alternatives 4,5,6 to ...
28577 (*vec_concatv2di_0) ... new pattern.
28578
28579 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
28580
28581 PR target/89190
28582 * config/arm/arm.c (ldm_stm_operation_p) Set
28583 addr_reg_in_reglist correctly for first register.
28584 (load_multiple_sequence): Remove dead base check.
28585 (gen_ldm_seq): Correctly set write_back for Thumb-1.
28586
28587 2019-02-13 Tamar Christina <tamar.christina@arm.com>
28588
28589 PR target/88847
28590 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
28591 Expose as @aarch64_pred_mov.
28592 * config/aarch64/aarch64.c (aarch64_classify_address):
28593 Use expand_insn which legitimizes operands.
28594
28595 2019-02-13 Martin Liska <mliska@suse.cz>
28596
28597 * builtins.h (expand_builtin_with_bounds): Remove declaration.
28598 * calls.c (struct arg_data): Remove special_slot, pointer_arg
28599 and pointer_offset fields.
28600 (initialize_argument_information): Remove usage of dead
28601 fields.
28602 * cgraph.h (struct cgraph_thunk_info): Remove
28603 add_pointer_bounds_args.
28604 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
28605 fields.
28606 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
28607 fields.
28608 * config/i386/i386.c (ix86_function_arg_advance): Remove
28609 unrelated comment.
28610 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
28611 (def_builtin): Remove usage of dead fields.
28612 (ix86_add_new_builtins): Likewise.
28613 * ipa-fnsummary.c (compute_fn_summary): Likewise.
28614 * ipa-icf.c (sem_function::equals_wpa): Likewise.
28615 (sem_function::init): Likewise.
28616 (sem_variable::merge): Likewise.
28617 * ipa-visibility.c (function_and_variable_visibility): Likewise.
28618 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
28619 * lto-cgraph.c (lto_output_node): Likewise.
28620 (lto_output_varpool_node): Likewise.
28621 (input_node): Likewise.
28622 (input_varpool_node): Likewise.
28623 * lto-streamer-out.c (lto_output): Likewise.
28624 * tree-inline.c (expand_call_inline): Remove usage of
28625 assign_stmts.
28626 * tree-inline.h (struct copy_body_data): Likewise.
28627 * varpool.c (varpool_node::dump): Likewise.
28628
28629 2019-02-13 Jakub Jelinek <jakub@redhat.com>
28630
28631 PR middle-end/89303
28632 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
28633 into pt->vars_contains_escaped_heap instead of setting
28634 pt->vars_contains_escaped_heap to it.
28635
28636 PR middle-end/89281
28637 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
28638 INTVAL (size), compare it to GET_MODE_MASK instead of
28639 1 << GET_MODE_BITSIZE.
28640
28641 PR target/89290
28642 * config/i386/predicates.md (x86_64_immediate_operand): Allow
28643 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
28644 -mcmodel=large.
28645
28646 2019-02-13 Martin Liska <mliska@suse.cz>
28647
28648 PR lto/88858
28649 * cfgrtl.c (remove_barriers_from_footer): New function.
28650 (try_redirect_by_replacing_jump): Use it.
28651 (cfg_layout_redirect_edge_and_branch): Likewise.
28652
28653 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
28654
28655 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
28656 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
28657 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
28658 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
28659 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
28660 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
28661 New BU_CRYPTO_2.
28662 * config/rs6000/rs6000.c (builtin_function_type)
28663 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
28664 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
28665 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
28666 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
28667 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
28668
28669 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
28670
28671 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
28672 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
28673
28674 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
28675
28676 PR target/89229
28677 * config/i386/i386.md (*movoi_internal_avx): Revert revision
28678 268678 and revision 268657.
28679 (*movti_internal): Likewise.
28680
28681 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
28682
28683 PR target/89233
28684 * config/s390/s390.c (s390_decompose_address): Update comment.
28685 (s390_check_qrst_address): Reject invalid address forms after
28686 LRA.
28687
28688 2019-02-12 Martin Liska <mliska@suse.cz>
28689
28690 PR lto/88876
28691 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
28692 we need default values of funct_state for a function that
28693 is not optimized.
28694
28695 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
28696
28697 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
28698 the object to pick the size of stores on strict-alignment platforms.
28699
28700 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
28701 (*movdi_insn_sp32): Likewise.
28702 (*movdi_insn_sp64): Likewise.
28703
28704 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
28705
28706 PR lto/88677
28707 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
28708 types that needs constructiong.
28709 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
28710
28711 2019-02-12 Richard Biener <rguenther@suse.de>
28712
28713 PR tree-optimization/89253
28714 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
28715 duplicate the loop.
28716
28717 2019-02-11 David Malcolm <dmalcolm@redhat.com>
28718
28719 PR lto/88147
28720 * input.c (selftest::test_line_offset_overflow): New selftest.
28721 (selftest::input_c_tests): Call it.
28722
28723 2019-02-11 Martin Sebor <msebor@redhat.com>
28724
28725 PR tree-optimization/88771
28726 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
28727 when -Wstringop-overflow is set.
28728 (builtin_memref::builtin_memref): Adjust excessive upper bound
28729 only when lower bound is not excessive.
28730 (maybe_diag_overlap): Detect and diagnose excessive bounds via
28731 -Wstringop-ovefflow.
28732 (maybe_diag_offset_bounds): Rename...
28733 (maybe_diag_access_bounds): ...to this.
28734 (check_bounds_or_overlap): Adjust for name change above.
28735
28736 2019-02-11 Martin Sebor <msebor@redhat.com>
28737
28738 PR c++/87996
28739 * builtins.c (max_object_size): Move from here...
28740 * builtins.h (max_object_size): ...and here...
28741 * tree.c (max_object_size): ...to here...
28742 * tree.h (max_object_size): ...and here.
28743
28744 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
28745
28746 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
28747 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
28748 for correct semantics.
28749
28750 2019-02-11 Alan Modra <amodra@gmail.com>
28751
28752 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
28753 -mlongcall and -mpltseq.
28754 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
28755 (RS/6000 and PowerPC Options <-mpltseq>): Document.
28756 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
28757 * config/rs6000/sysv4.opt (mpltseq): New option.
28758 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
28759 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
28760 support is lacking. Don't allow -mpltseq with -mbss-plt.
28761 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
28762 -mpltseq given for ELFv1.
28763 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
28764 Only use UNSPEC_PLTSEQ for inline PLT calls.
28765 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
28766 use UNSPEC_PLTSEQ for inline PLT calls.
28767 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
28768 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
28769 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
28770 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
28771 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
28772 (pltseq_mtctr_<mode>): Likewise.
28773
28774 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28775
28776 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
28777 Solaris ld.
28778 * configure: Regenerate.
28779
28780 2019-02-11 Jakub Jelinek <jakub@redhat.com>
28781
28782 PR bootstrap/88714
28783 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
28784 instead of r.
28785
28786 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
28787
28788 * function.c (assign_parm_setup_block): Use the stored
28789 size, not the passed size, when allocating stack-space,
28790 also for a parameter with alignment larger than
28791 MAX_SUPPORTED_STACK_ALIGNMENT.
28792
28793 2019-02-11 Martin Liska <mliska@suse.cz>
28794
28795 PR ipa/89009
28796 * ipa-cp.c (build_toporder_info): Remove usage of a param.
28797 * ipa-inline.c (inline_small_functions): Likewise.
28798 * ipa-pure-const.c (propagate_pure_const): Likewise.
28799 (propagate_nothrow): Likewise.
28800 * ipa-reference.c (propagate): Likewise.
28801 * ipa-utils.c (struct searchc_env): Remove unused field.
28802 (searchc): Always search across AVAIL_INTERPOSABLE.
28803 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
28804 the only called IPA pure const can properly not propagate
28805 across interposable boundary.
28806 * ipa-utils.h (ipa_reduced_postorder): Remove param.
28807
28808 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
28809
28810 * config/nds32/nds32.md (call_internal, call_value_internal,
28811 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
28812
28813 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
28814
28815 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
28816 typo.
28817
28818 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
28819
28820 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
28821 in comments
28822
28823 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
28824
28825 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
28826
28827 2019-02-10 Jakub Jelinek <jakub@redhat.com>
28828
28829 PR tree-optimization/89268
28830 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
28831 if preds is non-NULL.
28832
28833 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
28834
28835 PR lto/89272
28836 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
28837 polymorphic types.
28838
28839 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
28840
28841 * config/nds32/nds32.md (trap): New pattern.
28842
28843 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
28844
28845 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
28846 dwarf span.
28847
28848 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
28849
28850 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
28851 to split POST_INC.
28852
28853 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
28854
28855 * ipa-visibility.c (localize_node): Also do not localize
28856 LDPR_PREVAILING_DEF_IRONLY_EXP.
28857
28858 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
28859
28860 PR lto/87957
28861 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
28862 instead of type_with_linkage.
28863
28864 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
28865
28866 PR ipa/88755
28867 * params.def (uninlined-function-insns, uninlined-function-time,
28868 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
28869 bound so we don't get overflows.
28870
28871 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
28872
28873 * config/rs6000/rs6000-string.c (expand_compare_loop,
28874 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
28875 memcmp/strncmp.
28876
28877 2019-02-09 Jakub Jelinek <jakub@redhat.com>
28878
28879 PR middle-end/89246
28880 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28881 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
28882 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
28883
28884 2019-02-09 Alan Modra <amodra@gmail.com>
28885
28886 PR target/88343
28887 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
28888 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
28889 setup.
28890
28891 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
28892
28893 PR middle-end/88560
28894 * lra-constraints.c (process_alt_operands): Don't increase reject
28895 for memory when offset memory is required.
28896
28897 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
28898
28899 * config/s390/vector.md: Implement vector copysign.
28900
28901 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
28902
28903 * expr.c (expand_constructor): Correct indentations.
28904
28905 2019-02-08 Richard Biener <rguenther@suse.de>
28906
28907 PR tree-optimization/89247
28908 * tree-if-conv.c: Include tree-cfgcleanup.h.
28909 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
28910 (tree_if_conversion): Pass through predicate vector.
28911 (pass_if_conversion::execute): Do CFG cleanup and SSA update
28912 inline, see if any if-converted loops we refrece in
28913 LOOP_VECTORIZED calls vanished and fixup.
28914 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
28915
28916 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
28917
28918 * config/s390/constraints.md (jdd): New constraint.
28919
28920 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
28921
28922 PR target/89229
28923 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
28924 upper 16 vector registers without TARGET_AVX512VL.
28925 (*movti_internal): Likewise.
28926
28927 2019-02-08 Jakub Jelinek <jakub@redhat.com>
28928
28929 PR rtl-optimization/89234
28930 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
28931 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
28932 (copy_reg_eh_region_note_backward): Likewise.
28933
28934 2019-02-08 Richard Biener <rguenther@suse.de>
28935
28936 PR middle-end/89223
28937 * tree-data-ref.c (initialize_matrix_A): Fail if constant
28938 doesn't fit in HWI.
28939 (analyze_subscript_affine_affine): Handle failure from
28940 initialize_matrix_A.
28941
28942 2019-02-08 Jakub Jelinek <jakub@redhat.com>
28943
28944 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
28945 cfun everywhere.
28946
28947 2019-02-07 David Malcolm <dmalcolm@redhat.com>
28948
28949 PR tree-optimization/86637
28950 PR tree-optimization/89235
28951 * tree-vect-loop.c (optimize_mask_stores): Add an
28952 auto_purge_vect_location sentinel to ensure that vect_location is
28953 purged on exit.
28954 * tree-vectorizer.c
28955 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
28956 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
28957 to ensure that vect_location is purged on exit.
28958 (pass_slp_vectorize::execute): Likewise, replacing the manual
28959 reset.
28960 * tree-vectorizer.h (class auto_purge_vect_location): New class.
28961
28962 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28963
28964 * config/aarch64/iterators.md (max_opp): New code_attr.
28965 (USMAX): New code iterator.
28966 * config/aarch64/predicates.md (aarch64_smin): New predicate.
28967 (aarch64_smax): Likewise.
28968 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
28969 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
28970 MINUS (MAX MIN).
28971
28972 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
28973
28974 PR target/89229
28975 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
28976 for TARGET_AVX512VL.
28977 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
28978
28979 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
28980
28981 * config/s390/s390-builtin-types.def: Add new types.
28982 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
28983 (s390_vec_xlw4): Make the memory operand into a const pointer.
28984 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
28985 float.
28986 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
28987 a new vector type with the alignment of the scalar memory operand.
28988
28989 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
28990 Jakub Jelinek <jakub@redhat.com>
28991
28992 PR bootstrap/88714
28993 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
28994 arm_count_ldrdstrd_insns): New declarations.
28995 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
28996 MINUS.
28997 (valid_operands_ldrd_strd): New function.
28998 (arm_count_ldrdstrd_insns): New function.
28999 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
29000 sets instead of single DImode set and define new insns to match this.
29001
29002 2019-02-07 Tamar Christina <tamar.christina@arm.com>
29003
29004 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
29005 Make it a C initializer.
29006
29007 2019-02-07 Tamar Christina <tamar.christina@arm.com>
29008
29009 PR/target 88850
29010 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
29011
29012 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29013
29014 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
29015 Use neon_dot<q> for type.
29016 (neon_<sup>dot_lane<vsi2qi>): Likewise.
29017
29018 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29019
29020 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
29021 Use neon_dot<q> for type.
29022 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
29023 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
29024
29025 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
29026
29027 PR rtl-optimization/89225
29028 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
29029 sizes check.
29030
29031 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
29032
29033 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
29034 after restoring registers saved to allocate the frame on Windows.
29035
29036 2019-02-06 Richard Biener <rguenther@suse.de>
29037
29038 PR tree-optimization/89182
29039 * graphite.h (cached_scalar_evolution_in_region): Declare.
29040 * graphite.c (struct seir_cache_key): New.
29041 (struct sese_scev_hash): Likewise.
29042 (seir_cache): New global.
29043 (cached_scalar_evolution_in_region): New function.
29044 (graphite_transform_loops): Allocate and release seir_cache.
29045 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
29046 cached_scalar_evolution_in_region.
29047 * graphite-scop-detection.c (scop_detection::can_represent_loop):
29048 Simplify.
29049 (scop_detection::graphite_can_represent_expr: Use
29050 cached_scalar_evolution_in_region.
29051 (scop_detection::stmt_simple_for_scop_p): Likewise.
29052 (find_params_in_bb): Likewise.
29053 (gather_bbs::before_dom_children): Likewise.
29054 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
29055 (add_loop_constraints): Likewise.
29056
29057 2019-02-06 Jakub Jelinek <jakub@redhat.com>
29058
29059 PR middle-end/89210
29060 * fold-const-call.c (fold_const_vec_convert): Pass true as last
29061 operand to new_unary_operation only if both element types are integral
29062 and it isn't a widening conversion. Return NULL_TREE if
29063 new_unary_operation failed.
29064
29065 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
29066
29067 PR target/88856
29068 * config/s390/s390.md: Remove load and test FP splitter.
29069
29070 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
29071
29072 PR target/89112
29073 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
29074 expand_compare_loop, expand_block_compare_gpr,
29075 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
29076 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
29077 #include "profile-count.h" and "predict.h" for types and functions
29078 needed to work with REG_BR_PROB notes.
29079
29080 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
29081
29082 PR target/89112
29083 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
29084 for the long branch case.
29085
29086 2019-02-05 Jakub Jelinek <jakub@redhat.com>
29087
29088 PR target/89188
29089 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
29090 can throw, non-call exceptions are enabled and we can't delete
29091 dead exceptions or alter cfg. Set must_clean if
29092 delete_insn_and_edges returns true, don't set it blindly for calls.
29093 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
29094
29095 PR rtl-optimization/89195
29096 * combine.c (make_extraction): For MEMs, don't extract bytes outside
29097 of the original MEM.
29098
29099 2019-02-05 Martin Liska <mliska@suse.cz>
29100
29101 PR gcov-profile/89000
29102 * gcov.c (function_summary): Remove argument.
29103 (file_summary): New function.
29104 (print_usage): Replace tabs with spaces.
29105 (generate_results): Use new function file_summary.
29106
29107 2019-02-05 Jakub Jelinek <jakub@redhat.com>
29108
29109 PR target/89186
29110 * optabs.c (prepare_cmp_insn): Pass x and y to
29111 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
29112
29113 2019-02-05 Richard Biener <rguenther@suse.de>
29114
29115 PR middle-end/89150
29116 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
29117 (struct bitmap_element): Drop chain_prev so we properly recurse on
29118 the prev member, supporting tree views.
29119 (struct bitmap_head): GTY skip the obstack member.
29120
29121 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
29122
29123 PR c/88698
29124 * doc/extend.texi (Vector Extensions): Add an example of using vector
29125 types together with x86 intrinsics.
29126
29127 2019-02-04 Alan Modra <amodra@gmail.com>
29128
29129 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
29130 str[] size to 160, and comment.
29131
29132 2019-02-04 Alan Modra <amodra@gmail.com>
29133
29134 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
29135 (rs6000_pltseq_template): Guard output of TLS markers with
29136 TARGET_TLS_MARKERS.
29137 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
29138 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
29139 to use inline PLT sequences.
29140 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
29141 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
29142 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
29143
29144 2019-02-04 Martin Liska <mliska@suse.cz>
29145
29146 PR ipa/88985
29147 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
29148 out when ipa_fn_summaries does not contain entry for callee.
29149
29150 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
29151
29152 * config/sparc/sparc.h: Remove superfluous blank lines.
29153 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
29154 (got_register_rtx): ...this.
29155 (sparc_got): Adjust to above renaming.
29156 (sparc_tls_got): Likewise.
29157 (sparc_delegitimize_address): Likewise.
29158 (sparc_output_mi_thunk): Likewise.
29159 (sparc_init_pic_reg): Likewise.
29160 (save_local_or_in_reg_p): Fix test on the GOT register.
29161 (USE_HIDDEN_LINKONCE): Move around.
29162 (get_pc_thunk_name): Likewise.
29163 (gen_load_pcrel_sym): Likewise.
29164 (load_got_register): Likewise.
29165
29166 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
29167
29168 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
29169 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
29170
29171 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
29172
29173 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
29174 into consideration.
29175
29176 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
29177
29178 * config.gcc (with_nds32_lib, glibc):
29179 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
29180 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
29181 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
29182
29183 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
29184
29185 PR target/89071
29186 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
29187 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
29188 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
29189 (*rcpsf2_sse): Ditto.
29190 (*rsqrtsf2_sse): Ditto.
29191 (sse4_1_round<mode<2): Ditto.
29192
29193 2019-02-03 Richard Biener <rguenther@suse.de>
29194
29195 PR debug/87295
29196 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
29197 orig.
29198
29199 2019-02-02 Jakub Jelinek <jakub@redhat.com>
29200
29201 PR middle-end/87887
29202 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
29203 Punt with warning on aggregate return or argument types. Ignore
29204 type/mode checking for uniform arguments.
29205
29206 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
29207
29208 * combine.c (try_combine): Do not print "Can't combine" messages unless
29209 printing failed combination attempts.
29210
29211 2019-02-01 Martin Jambor <mjambor@suse.cz>
29212
29213 PR hsa/87863
29214 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
29215 segment and global segment variables before making them static.
29216
29217 2019-02-01 Martin Jambor <mjambor@suse.cz>
29218
29219 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
29220 missed optimization dump with dump_enabled_p.
29221
29222 2019-02-01 Richard Biener <rguenther@suse.de>
29223
29224 PR middle-end/88597
29225 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
29226 the instantiate cache.
29227 (instantiate_scev_binary): Elide second operand procesing
29228 if equal to the first.
29229 * tree-chrec.c (chrec_contains_symbols): Add visited set.
29230 (chrec_contains_undetermined): Likewise.
29231 (tree_contains_chrecs): Likewise.
29232
29233 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
29234
29235 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
29236
29237 2019-02-01 Jakub Jelinek <jakub@redhat.com>
29238
29239 PR tree-optimization/89143
29240 * wide-int-range.h (wide_int_range_absu): Declare.
29241 * wide-int-range.cc (wide_int_range_absu): New function.
29242 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
29243
29244 PR tree-optimization/88107
29245 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
29246 instead of assertion that eh_region_outermost is non-NULL, if it
29247 is NULL, set *ALL to true and return NULL.
29248 (move_sese_region_to_fn): Adjust caller, if all is set, call
29249 duplicate_eh_regions with NULL region.
29250
29251 2019-02-01 Richard Biener <rguenth@suse.de>
29252
29253 PR rtl-optimization/88593
29254 * mode-switching.c (optimize_mode_switching): Free dominators before
29255 calling cleanup_cfg.
29256
29257 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29258
29259 PR tree-optimization/88932
29260 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
29261
29262 2019-01-31 Jakub Jelinek <jakub@redhat.com>
29263
29264 PR middle-end/89137
29265 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
29266 bogus clang warning.
29267
29268 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
29269
29270 PR target/89071
29271 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
29272 alternative to avoid partial SSE register stall for TARGET_AVX.
29273 (truncdfsf2): Ditto.
29274 (sse4_1_round<mode>2): Ditto.
29275
29276 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
29277
29278 PR tree-optimization/89008
29279 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
29280 process anything of the form X * 0.
29281
29282 2019-01-31 Richard Biener <rguenther@suse.de>
29283
29284 PR tree-optimization/89135
29285 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
29286 with abnormal preds.
29287
29288 2019-01-31 Jakub Jelinek <jakub@redhat.com>
29289
29290 PR sanitizer/89124
29291 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
29292 always_inline callees into no_sanitize_address callers.
29293
29294 2019-01-31 Richard Biener <rguenther@suse.de>
29295
29296 PR rtl-optimization/89115
29297 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
29298
29299 2019-01-30 Martin Sebor <msebor@redhat.com>
29300
29301 PR other/89106
29302 * doc/extend.texi (cast to a union): Correct and expand.
29303
29304 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
29305
29306 PR rtl-optimization/87246
29307 * lra-constraints.c (simplify_operand_subreg): Reload memory
29308 in subreg if the address became invalid.
29309
29310 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
29311
29312 PR target/87064
29313 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
29314 Disable for little-endian.
29315
29316 2019-01-30 Richard Biener <rguenther@suse.de>
29317
29318 PR rtl-optimization/89115
29319 * opts.c (default_options_optimization): Reduce
29320 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
29321 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
29322 to the default.
29323
29324 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
29325
29326 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
29327 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
29328 type of vector element when vec_extract is implemented by direct
29329 move.
29330
29331 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
29332
29333 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
29334
29335 2019-01-30 Richard Biener <rguenther@suse.de>
29336
29337 PR tree-optimization/89111
29338 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
29339 canonicalization to appropriately sized access types.
29340
29341 2019-01-30 Jakub Jelinek <jakub@redhat.com>
29342
29343 PR c++/89105
29344 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
29345 for arguments to functions that are TU-local and shouldn't be
29346 referenced by assembly.
29347
29348 2019-01-30 Ulrich Drepper <drepper@redhat.com>
29349
29350 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
29351 after '='.
29352
29353 2019-01-29 Martin Sebor <msebor@redhat.com>
29354
29355 PR c/88956
29356 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
29357
29358 2019-01-29 Jakub Jelinek <jakub@redhat.com>
29359
29360 PR c++/66676
29361 PR ipa/89104
29362 * omp-simd-clone.c (simd_clone_clauses_extract)
29363 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
29364 OMP_CLAUSE_ALIGNED_ALIGNMENT.
29365
29366 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
29367
29368 * config.gcc: Force .init_array for ARC.
29369
29370 2019-01-29 Richard Biener <rguenther@suse.de>
29371
29372 PR debug/87295
29373 * dwarf2out.c (collect_skeleton_dies): New helper.
29374 (copy_decls_for_unworthy_types): Call it.
29375 (build_abbrev_table): Assert we do not try to replace
29376 DW_AT_signature refs with local refs.
29377
29378 2019-01-28 Jakub Jelinek <jakub@redhat.com>
29379
29380 PR middle-end/89002
29381 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
29382 for lastprivate/linear IV, push gimplify context around gimplify_assign
29383 and, if it needed any temporaries, pop it into a gimple bind around the
29384 sequence.
29385
29386 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
29387
29388 * common.opt (-Wattribute-alias): Remove "no-" from name.
29389 Make -Wattribute-alias command line option and
29390 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
29391
29392 2019-01-28 Jakub Jelinek <jakub@redhat.com>
29393
29394 PR target/89073
29395 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
29396 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
29397 x86 ISA options.
29398 (bmi2): Add missing @opindex.
29399 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
29400 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
29401 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
29402 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
29403 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
29404 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
29405 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
29406 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
29407 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
29408 xsavec, xsaveopt and xsaves options.
29409
29410 2019-01-28 Richard Biener <rguenther@suse.de>
29411
29412 PR debug/89076
29413 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
29414 support removal.
29415
29416 2019-01-28 Richard Biener <rguenther@suse.de>
29417
29418 PR tree-optimization/88739
29419 * tree-cfg.c (verify_types_in_gimple_reference): Verify
29420 BIT_FIELD_REFs only are applied to mode-precision operands
29421 when they are integral.
29422 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
29423 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
29424 BIT_FIELD_REFs of non-mode-precision integral operands.
29425
29426 2019-01-27 Jakub Jelinek <jakub@redhat.com>
29427
29428 PR target/87214
29429 * config/i386/sse.md
29430 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
29431 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
29432 first constants in pairs are multiples of 2. Formatting fixes.
29433 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
29434 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
29435 first constants in each quadruple are multiples of 4. Formatting fixes.
29436
29437 2019-01-26 Martin Jambor <mjambor@suse.cz>
29438
29439 PR ipa/88933
29440 * tree-inline.c: Include tree-cfgcleanup.h.
29441 (delete_unreachable_blocks_update_callgraph): Move...
29442 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
29443 ...here, make externally visible, make second argument bool, adjust
29444 all callers.
29445 * tree-cfgcleanup.c: Include cgraph.h.
29446 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
29447 Declare.
29448 * ipa-prop.c: Include tree-cfgcleanup.h.
29449 (ipcp_transform_function): Call
29450 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
29451
29452 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
29453
29454 PR rtl-optimization/88846
29455 * ira.c (process_set_for_memref_referenced_p): New.
29456 (memref_referenced_p): Add new param. Use
29457 process_set_for_memref_referenced_p. Add new switch cases.
29458 (memref_used_between_p): Pass new arg to memref_referenced_p.
29459
29460 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
29461
29462 PR target/88469
29463 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
29464 argument ABI_BREAK. Set to true if the calculated alignment has
29465 changed in gcc-9. Check bit-fields for their base type alignment.
29466 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
29467 (aarch64_function_arg_boundary): Likewise.
29468 (aarch64_gimplify_va_arg_expr): Likewise.
29469
29470 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
29471
29472 PR middle-end/89037
29473 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
29474 instead of accessing TREE_INT_CST_ELT directly.
29475
29476 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
29477
29478 * doc/sourcebuild.texi (Environment attributes): Add fenv and
29479 fenv_exceptions description.
29480
29481 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
29482
29483 PR rtl-optimization/87763
29484 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
29485 Allow SUBREG when matching CC_NZmode compare.
29486
29487 2019-01-25 Richard Biener <rguenther@suse.de>
29488
29489 PR tree-optimization/89049
29490 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
29491 Look at the pattern stmt to determine if the stmt is vectorized.
29492
29493 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
29494
29495 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
29496 (pred_mov<mode>): Handle all-register forms using both a new
29497 alternative and a split.
29498
29499 2019-01-25 Richard Biener <rguenther@suse.de>
29500
29501 PR tree-optimization/86865
29502 * graphite-scop-detection.c (scop_detection::can_represent_loop):
29503 Reject non-do-while loops.
29504
29505 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
29506
29507 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
29508 * config/rs6000/constraints.md (Q constraint): Use REG_P.
29509 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
29510 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
29511 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
29512 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
29513 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
29514 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
29515 vlogical_operand, gpc_reg_operand, int_reg_operand,
29516 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
29517 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
29518 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
29519 (save_world_operation, restore_world_operation, lmw_operation,
29520 stmw_operation): Use MEM_P and REG_P.
29521 (tie_operand): Use MEM_P.
29522 (vrsave_operation, crsave_operation): Use REG_P.
29523 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
29524 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
29525 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
29526 (call_operand): Use HARD_REGISTER_P.
29527 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
29528 Use CONST_INT_P.
29529 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
29530 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
29531 quad_aligned_load_p, replace_swapped_aligned_store,
29532 recombine_lvx_pattern, replace_swapped_aligned_load,
29533 recombine_stvx_pattern): Use MEM_P.
29534 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
29535 Use MEM_P and SYMBOL_REF_P.
29536 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
29537 (insn_is_swappable_p): Use REG_P and MEM_P.
29538 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
29539 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
29540 Use CONST_INT_P.
29541 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
29542 Use CONST_DOUBLE_P.
29543 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
29544 CONST_WIDE_INT_P.
29545 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
29546 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
29547 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
29548 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
29549 reg_or_subregno:
29550 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
29551 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
29552 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
29553 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
29554 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
29555 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
29556 rs6000_split_logical_di): Use CONST_INT_P.
29557 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
29558 REG_P and SYMBOL_REF_P.
29559 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
29560 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
29561 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
29562 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
29563 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
29564 (small_data_operand, print_operand_address): Use CONST_INT_P and
29565 SYMBOL_REF_P.
29566 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
29567 (rs6000_init_hard_regno_mode_ok, direct_move_p):
29568 Use HARD_REGISTER_NUM_P.
29569 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
29570 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
29571 SUBREG_P and SYMBOL_REF_P.
29572 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
29573 and HARD_REGISTER_NUM_P.
29574 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
29575 reg_or_subregno.
29576 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
29577 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
29578 MEM_P and REG_P.
29579 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
29580 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
29581 find_addr_reg): Use REG_P.
29582 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
29583 (rs6000_emit_le_vsx_move): Use SUBREG_P.
29584 (offsettable_ok_by_alignment, constant_pool_expr_p,
29585 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
29586 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
29587 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
29588 rs6000_assemble_integer, create_TOC_reference,
29589 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
29590 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
29591 (rs6000_split_vec_extract_var): Use reg_or_subregno.
29592 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
29593 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
29594 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
29595 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
29596 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
29597 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
29598 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
29599 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
29600 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
29601 and cbranch<mode>4): Use CONST_INT_P.
29602 (multiple define_splits): Use REG_P and SUBREG_P.
29603 (define_expands call, call_value): Use MEM_P.
29604 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
29605 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
29606 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
29607 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
29608 and HARD_REGISTER_NUM_P.
29609 (multiple define_splits): Use HARD_REGISTER_NUM_P.
29610
29611 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
29612
29613 PR rtl-optimization/88948
29614 * rtl.h (prepare_copy_insn): New prototype.
29615 * gcse.c (prepare_copy_insn): New function, split out from
29616 process_insert_insn.
29617 (process_insert_insn): Use prepare_copy_insn.
29618 * store-motion.c (replace_store_insn): Use prepare_copy_insn
29619 instead of gen_move_insn.
29620
29621 2019-01-24 Jakub Jelinek <jakub@redhat.com>
29622
29623 PR debug/89006
29624 * config/i386/i386.c (ix86_pic_register_p): Return true for
29625 UNSPEC_SET_GOT too.
29626
29627 PR tree-optimization/88964
29628 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
29629 punt if HONOR_SNANS (chrec).
29630
29631 PR middle-end/89015
29632 * tree-nested.c (convert_nonlocal_reference_stmt,
29633 convert_local_reference_stmt, convert_tramp_reference_stmt,
29634 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
29635 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
29636 or GIMPLE_OMP_TASK.
29637
29638 PR tree-optimization/89027
29639 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
29640 for "omp simd array" variables.
29641
29642 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
29643
29644 PR target/88469
29645 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
29646 force the alignment of m_val.
29647
29648 2019-01-24 Richard Biener <rguenther@suse.de>
29649
29650 PR lto/87187
29651 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
29652 When in "legacy" debug mode make sure to reset self-origins.
29653
29654 2019-01-24 Martin Liska <mliska@suse.cz>
29655
29656 PR gcov-profile/88994
29657 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
29658 result will be always smaller or equal to the original.
29659 * gcov.c (mangle_name): Fix else branch where we should
29660 also copy to PTR and shift the pointer.
29661
29662 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
29663
29664 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
29665 * vr-values.c (find_case_label_ranges): Fix a comment typo.
29666
29667 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
29668
29669 * common/config/i386/i386-common.c
29670 (OPTION_MASK_ISA_ENQCMD_SET,
29671 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
29672 (ix86_handle_option): Handle -menqcmd.
29673 * config.gcc (enqcmdintrin.h): New header file.
29674 * config/i386/cpuid.h (bit_ENQCMD): New bit.
29675 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
29676 -menqcmd.
29677 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
29678 function type.
29679 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
29680 __builtin_ia32_enqcmds): New builtins.
29681 * config/i386/i386-c.c (__ENQCMD__): New macro.
29682 * config/i386/i386-option.c (ix86_target_string): Add
29683 -menqcmd.
29684 (ix86_valid_target_attribute_inner_p): Likewise.
29685 * config/i386/i386-expand.c
29686 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
29687 IX86_BUILTIN_ENQCMDS.
29688 * config/i386/i386.h (TARGET_ENQCMD): New.
29689 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
29690 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
29691 (movdir64b_<mode>): Parameterize to enable share expansion code
29692 with ENQCMD in function ix86_expand_builtin.
29693 * config/i386/i386.opt: Add -menqcmd.
29694 * config/i386/immintrin.h: Include enqcmdintrin.h.
29695 * config/i386/enqcmdintrin.h: New intrinsic file.
29696 * doc/invoke.texi: Add -menqcmd.
29697
29698 2019-01-23 Bin Cheng <bin.cheng@arm.com>
29699 Steve Ellcey <sellcey@marvell.com>
29700
29701 PR target/85711
29702 * recog.c (address_operand): Return false on wrong mode for address.
29703 (constrain_operands): Check for mode with 'p' constraint.
29704
29705 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
29706
29707 PR target/88998
29708 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
29709 Disparage MMX alternative.
29710 (sse2_cvtpd2pi): Ditto.
29711 (sse2_cvttpd2pi): Ditto.
29712
29713 2019-01-23 David Malcolm <dmalcolm@redhat.com>
29714
29715 PR driver/89014
29716 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
29717 use-after-free of the result of
29718 aarch64_get_extension_string_for_isa_flags.
29719
29720 2019-01-23 Jakub Jelinek <jakub@redhat.com>
29721
29722 PR c/44715
29723 * doc/extend.texi: Document break and continue behavior in
29724 statement expressions.
29725
29726 2019-01-23 Richard Biener <rguenther@suse.de>
29727
29728 PR tree-optimization/89008
29729 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
29730 not leave another stray operand.
29731
29732 2019-01-23 Jakub Jelinek <jakub@redhat.com>
29733
29734 * BASE-VER: Bump to 9.0.1.
29735
29736 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
29737
29738 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
29739 thunk that returns by reference, use the type of the return object
29740 of the thunk instead of that of the alias to build the dereference.
29741
29742 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
29743
29744 * config/arc/atomic.md: Add operand to DMB instruction.
29745
29746 2019-01-23 Jakub Jelinek <jakub@redhat.com>
29747
29748 PR tree-optimization/88964
29749 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
29750 build_zero_cst instead of build_int_cst. Return false for loop
29751 invariants which honor signed zeros.
29752
29753 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
29754
29755 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
29756
29757 2019-01-22 Jakub Jelinek <jakub@redhat.com>
29758
29759 PR target/88965
29760 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
29761 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
29762 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
29763
29764 PR middle-end/88968
29765 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
29766 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
29767
29768 PR target/87064
29769 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
29770 Disable for little endian.
29771
29772 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
29773
29774 PR target/88469
29775 * config/arm/arm.c (arm_needs_double_word_align): Check
29776 DECL_BIT_FIELD_TYPE.
29777
29778 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
29779 H.J. Lu <hongjiu.lu@intel.com>
29780
29781 PR target/88909
29782 * config/i386/i386-builtin.def: Add mask2 to all builtin
29783 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
29784 SPECIAL_ARGS.
29785 * config/i386/i386.c (BDESC): Add mask2 to the definition.
29786 (BDESC_FIRST): Likewise.
29787 (define_builtin): Add an argument for mask2. Updated to handle
29788 both ix86_isa_flags and ix86_isa_flags2.
29789 (define_builtin_const): Likewise.
29790 (define_builtin_pure): Likewise.
29791 (define_builtin2): Deleted.
29792 (define_builtin_const2): Likewise.
29793 (builtin_description): Add a member, mask2.
29794 (bdesc_*): Add mask2 to builtin initializations.
29795 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
29796 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
29797 support.
29798 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
29799
29800 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
29801
29802 PR target/88954
29803 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
29804 noplt attribute.
29805
29806 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
29807
29808 PR target/88469
29809 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
29810 alignment is dominated by a bitfield with 64-bit aligned base type.
29811 (arm_function_arg): Emit a warning if the alignment has changed since
29812 earlier GCC releases.
29813 (arm_function_arg_boundary): Likewise.
29814 (arm_setup_incoming_varargs): Likewise.
29815
29816 2019-01-22 Richard Biener <rguenther@suse.de>
29817
29818 PR tree-optimization/88862
29819 * graphite-scop-detection.c
29820 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
29821
29822 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
29823
29824 * doc/extend.tex (AMD GCN Function Attributes): New section.
29825 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
29826 * doc/invoke.texi (AMD GCN Options): New section.
29827 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
29828
29829 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
29830
29831 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
29832 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
29833
29834 2019-01-22 Jakub Jelinek <jakub@redhat.com>
29835
29836 PR tree-optimization/88044
29837 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
29838 is false in the first iteration, but !every_iteration, return false
29839 instead of true with niter->niter zero.
29840
29841 PR rtl-optimization/88904
29842 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
29843 any nonequal registers before processing BB_END (b).
29844
29845 PR target/88905
29846 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
29847 GET_MODE (op0).
29848 (expand_binop_directly, expand_doubleword_clz,
29849 expand_doubleword_popcount, expand_ctz, expand_ffs,
29850 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
29851
29852 PR rtl-optimization/49429
29853 PR target/49454
29854 PR rtl-optimization/86334
29855 PR target/88906
29856 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
29857 addressable from here...
29858 (emit_block_op_via_libcall): ... to here.
29859
29860 2019-01-22 Richard Biener <rguenther@suse.de>
29861
29862 * tree-vect-loop.c (vect_analyze_loop_operations): Use
29863 auto_vec for cost vector to fix memleak.
29864 (vectorize_fold_left_reduction): Properly gather SLP defs.
29865 (vectorizable_comparison): Do not swap operands to properly
29866 gather SLP defs.
29867
29868 2019-01-22 Alan Modra <amodra@gmail.com>
29869
29870 PR target/88614
29871 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
29872 stays a reg. Allow a const_int.
29873 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
29874 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
29875 (IS_NOMARK_TLSGETADDR): Define.
29876 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
29877 (rs6000_output_tlsargs): New function.
29878 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
29879 __tls_get_addr call takes an arg.
29880 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
29881 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
29882 delete split..
29883 (call_value_nonlocal_sysv): ..or here, delete split.
29884 (tls_gdld_nomark): Delete.
29885 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
29886 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
29887 (call_value_nonlocal_sysv): Likewise.
29888 (call_value_nonlocal_sysv_secure): Likewise.
29889 (call_value_nonlocal_aix): Likewise.
29890 (call_value_indirect_aix): Likewise.
29891 (call_value_indirect_elfv2): Likewise.
29892 (call_value_local32, call_value_local64): Disable for no-mark tls.
29893 (call_value_local_aix): Likewise.
29894
29895 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
29896
29897 PR target/88938
29898 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
29899 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
29900
29901 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
29902
29903 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
29904 string contents as hash_map keys.
29905
29906 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
29907
29908 PR c/88928
29909 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
29910 for rvalue context. Handle rvalues correctly. Use min_align_of_type
29911 instead of TYPE_ALIGN.
29912 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
29913 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
29914 pointer from TYPE_STUB_DECL.
29915
29916 2019-01-21 Richard Biener <rguenther@suse.de>
29917
29918 PR tree-optimization/88934
29919 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
29920 at the possibly non-constant operand.
29921 (vect_get_constant_vectors): Adjust.
29922
29923 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
29924
29925 PR target/71659
29926 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
29927 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
29928 instead of _X86INTRIN_H_INCLUDED.
29929 * onfig/i386/clwbintrin.h: Likewise.
29930 * config/i386/pkuintrin.h: Likewise.
29931 * config/i386/prfchwintrin.h: Likewise.
29932 * config/i386/rdseedintrin.h: Likewise.
29933 * config/i386/wbnoinvdintrin.h: Likewise.
29934 * config/i386/xsavecintrin.h: Likewise.
29935 * config/i386/xsavesintrin.h: Likewise.
29936 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
29937 * config/i386/xsaveintrin.h: Likewise.
29938 * config/i386/xsaveoptintrin.h: Likewise.
29939 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
29940 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
29941 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
29942 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
29943 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
29944 * config/i386/immintrin.h: Here.
29945
29946 2019-01-20 Martin Jambor <mjambor@suse.cz>
29947
29948 PR ipa/87615
29949 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
29950 with aa_walk_budget.
29951 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
29952 aa_walk_budget_p parameter.
29953 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
29954 walk. Updated all callers.
29955 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
29956 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
29957 unmodified_parm.
29958 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
29959 parameter info. Extract info from fbi. Pass fbi to recursive calls
29960 and to unmodified_parm.
29961 (phi_result_unknown_predicate): New parameter fbi, removed parameter
29962 info, updated call to will_be_nonconstant_expr_predicate.
29963 (param_change_prob): New parameter fbi, limit AA walking.
29964 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
29965 calls to various above functions.
29966 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
29967 parameter. Use it to limit AA walking.
29968 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
29969 fbi, limit AA walk.
29970 (detect_type_change): New parameter fbi, pass it on to
29971 detect_type_change_from_memory_writes.
29972 (detect_type_change_ssa): Likewise.
29973 (aa_overwalked): Removed.
29974 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
29975 accordingly, adjust to the neew AA limiting scheme.
29976 (parm_ref_data_preserved_p): Likewise.
29977 (ipa_compute_jump_functions_for_edge): Adjust call to
29978 get_dynamic_type.
29979 (ipa_analyze_call_uses): Likewise.
29980 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
29981 (ipa_analyze_node): Initialize aa_walk_budget.
29982 (ipcp_transform_function): Likewise.
29983 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
29984 to get_dynamic_type.
29985
29986 2019-01-19 Jakub Jelinek <jakub@redhat.com>
29987
29988 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
29989 outside of #if CHECKING_P code.
29990
29991 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
29992
29993 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
29994 New function, split out from...
29995 (loop_versioning::analyze_stride): ...here.
29996 (loop_versioning::find_per_loop_multiplication): Use gassign.
29997 (loop_versioning::analyze_term_using_scevs): Return a success code.
29998 (loop_versioning::analyze_arbitrary_term): New function.
29999 (loop_versioning::analyze_address_fragment): Use
30000 analyze_arbitrary_term if all else fails.
30001
30002 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
30003
30004 PR target/88892
30005 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
30006 operands.
30007
30008 2019-01-18 Richard Biener <rguenther@suse.de>
30009
30010 PR tree-optimization/88903
30011 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
30012 scalar stmts a SLP shift amount is composed of when detecting
30013 shifts by scalars.
30014
30015 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
30016
30017 PR target/88799
30018 * config/arm/arm-cpus.in (mp): New feature.
30019 (sec): New feature.
30020 (fgroup ARMv7ve): Add mp and sec features.
30021 (arch armv7-a): Add options to allow mp and sec extensions.
30022 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
30023 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
30024 extenstions to the base architecture.
30025 (cpu cortex-a8): Add sec extension to the base architecture.
30026 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
30027 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
30028 variants down to the base v7-a varaint.
30029 * config/arm/t-multilib (v7_a_arch_variants): New variable.
30030 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
30031 of permitted extensions for -march=armv7-a and for
30032 -mcpu=generic-armv7-a.
30033
30034 2019-01-18 Martin Liska <mliska@suse.cz>
30035
30036 * params.def: Fix comment.
30037 * tree-profile.c (gimple_init_gcov_profiler): Bump function
30038 name.
30039 (gimple_gen_ic_func_profiler): Likewise.
30040
30041 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30042
30043 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
30044 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
30045 and put in error checks for stack protector guard options.
30046 (aarch64_stack_protect_guard): New.
30047 (TARGET_STACK_PROTECT_GUARD): Define.
30048 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
30049 (reg_stack_protect_address<mode>): New.
30050 (stack_protect_set): Adjust for SSP_GLOBAL.
30051 (stack_protect_test): Likewise.
30052 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
30053 (-mstack-protector-guard): Likewise.
30054 (-mstack-protector-guard-offset): Likewise.
30055
30056 2019-01-18 Jakub Jelinek <jakub@redhat.com>
30057
30058 PR tree-optimization/86214
30059 * tree-inline.h (struct copy_body_data): Add
30060 add_clobbers_to_eh_landing_pads member.
30061 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
30062 (copy_edges_for_bb): Call it if EH edge destination is <
30063 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
30064 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
30065 if flag_stack_reuse != SR_NONE and clear it afterwards.
30066
30067 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
30068
30069 PR target/85596
30070 * doc/install.texi (with-multilib-list): Document for aarch64.
30071
30072 2019-01-18 Jakub Jelinek <jakub@redhat.com>
30073
30074 PR target/88734
30075 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
30076 (("..."))) with ("...").
30077
30078 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
30079
30080 * doc/extend.texi (Built-in Functions for Memory Model Aware
30081 Atomic Operations): Document atomic fetch and nand.
30082
30083 2019-01-18 Martin Liska <mliska@suse.cz>
30084 Richard Biener <rguenther@suse.de>
30085
30086 PR middle-end/88587
30087 * cgraph.h (create_version_clone_with_body): Add new argument
30088 with attributes.
30089 * cgraphclones.c (cgraph_node::create_version_clone): Add
30090 DECL_ATTRIBUTES to a newly created decl. And call
30091 valid_attribute_p so that proper cl_target_optimization_node
30092 is set for the newly created declaration.
30093 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
30094 for declaration.
30095 (expand_target_clones): Do not call valid_attribute_p, it must
30096 be already done.
30097 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
30098 vector types.
30099
30100 2019-01-17 Jakub Jelinek <jakub@redhat.com>
30101
30102 PR target/88734
30103 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
30104 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
30105 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
30106
30107 2019-01-17 Martin Sebor <msebor@redhat.com>
30108
30109 PR middle-end/88273
30110 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
30111 Handle anti-ranges the same as no range at all.
30112
30113 2018-01-17 Steve Ellcey <sellcey@cavium.com>
30114
30115 * config/aarch64/aarch64.c (cgraph.h): New include.
30116 (intl.h): New include.
30117 (supported_simd_type): New function.
30118 (currently_supported_simd_type): Ditto.
30119 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
30120 (aarch64_simd_clone_adjust): Ditto.
30121 (aarch64_simd_clone_usable): Ditto.
30122 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
30123 (TARGET_SIMD_CLONE_ADJUST): Ditto.
30124 (TARGET_SIMD_CLONE_USABLE): Ditto.
30125 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
30126 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
30127 call.
30128
30129 2019-01-17 Martin Sebor <msebor@redhat.com>
30130
30131 PR tree-optimization/88800
30132 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
30133 NO_WARNING bit here. Avoid folding out-of-bounds calls.
30134 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
30135 redundant argument. Add new argument and issue diagnostics under
30136 its control. Detect out-of-bounds access even with warnings
30137 disabled.
30138 (check_bounds_or_overlap): Change return type. Add argument.
30139 (wrestrict_dom_walker::check_call): Adjust.
30140 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
30141 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
30142 check_bounds_or_overlap's return value.
30143 (handle_builtin_stxncpy): Same.
30144 (handle_builtin_strcat): Same.
30145
30146 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30147 Kwok Cheung Yeung <kcy@codesourcery.com>
30148 Julian Brown <julian@codesourcery.com>
30149 Tom de Vries <tom@codesourcery.com>
30150
30151 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
30152
30153 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30154
30155 * doc/sourcebuild.texi: Document dg-require-effective-target
30156 llvm_binutils and offload_gcn.
30157
30158 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30159 Kwok Cheung Yeung <kcy@codesourcery.com>
30160 Julian Brown <julian@codesourcery.com>
30161 Tom de Vries <tom@codesourcery.com>
30162
30163 * doc/sourcebuild.texi: Document dg-required-effective-target
30164 exceptions.
30165
30166 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30167 Kwok Cheung Yeung <kcy@codesourcery.com>
30168 Julian Brown <julian@codesourcery.com>
30169 Tom de Vries <tom@codesourcery.com>
30170 Jan Hubicka <hubicka@ucw.cz>
30171 Martin Jambor <mjambor@suse.cz>
30172
30173 * config.gcc: Add amdgcn*-*-amdhsa configuration.
30174 * configure.ac: Check for dlopen.
30175 * configure: Regenerate.
30176
30177 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30178 Kwok Cheung Yeung <kcy@codesourcery.com>
30179 Julian Brown <julian@codesourcery.com>
30180 Tom de Vries <tom@codesourcery.com>
30181 Jan Hubicka <hubicka@ucw.cz>
30182 Martin Jambor <mjambor@suse.cz>
30183
30184 * common/config/gcn/gcn-common.c: New file.
30185 * config/gcn/driver-gcn.c: New file.
30186 * config/gcn/gcn-builtins.def: New file.
30187 * config/gcn/gcn-hsa.h: New file.
30188 * config/gcn/gcn-modes.def: New file.
30189 * config/gcn/gcn-opts.h: New file.
30190 * config/gcn/gcn-passes.def: New file.
30191 * config/gcn/gcn-protos.h: New file.
30192 * config/gcn/gcn-run.c: New file.
30193 * config/gcn/gcn-tree.c: New file.
30194 * config/gcn/gcn.c: New file.
30195 * config/gcn/gcn.h: New file.
30196 * config/gcn/gcn.opt: New file.
30197 * config/gcn/t-gcn-hsa: New file.
30198
30199 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30200 Kwok Cheung Yeung <kcy@codesourcery.com>
30201 Julian Brown <julian@codesourcery.com>
30202 Tom de Vries <tom@codesourcery.com>
30203 Jan Hubicka <hubicka@ucw.cz>
30204 Martin Jambor <mjambor@suse.cz>
30205
30206 * config/gcn/constraints.md: New file.
30207 * config/gcn/gcn-valu.md: New file.
30208 * config/gcn/gcn.md: New file.
30209 * config/gcn/predicates.md: New file.
30210
30211 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
30212
30213 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
30214 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
30215 (stmt_uses_0_or_null_in_undefined_way): Likewise.
30216 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
30217
30218 2019-01-17 Tamar Christina <tamar.christina@arm.com>
30219
30220 PR target/88851
30221 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
30222 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
30223 it and document registers.
30224
30225 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30226
30227 * config/aarch64/aarch64.c (ares_tunings): Define.
30228 * config/aarch64/aarch64-cores.def (ares): Use the above.
30229
30230 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
30231
30232 PR target/88794
30233 Revert:
30234 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
30235
30236 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
30237 (_mm512_fixupimm_round_pd): Update parameters and builtin.
30238 (_mm512_maskz_fixupimm_round_pd): Ditto.
30239 (_mm512_fixupimm_round_ps): Ditto.
30240 (_mm512_maskz_fixupimm_round_ps): Ditto.
30241 (_mm_fixupimm_round_sd): Ditto.
30242 (_mm_maskz_fixupimm_round_sd): Ditto.
30243 (_mm_fixupimm_round_ss): Ditto.
30244 (_mm_maskz_fixupimm_round_ss): Ditto.
30245 (_mm512_fixupimm_pd): Ditto.
30246 (_mm512_maskz_fixupimm_pd): Ditto.
30247 (_mm512_fixupimm_ps): Ditto.
30248 (_mm512_maskz_fixupimm_ps): Ditto.
30249 (_mm_fixupimm_sd): Ditto.
30250 (_mm_maskz_fixupimm_sd): Ditto.
30251 (_mm_fixupimm_ss): Ditto.
30252 (_mm_maskz_fixupimm_ss): Ditto.
30253 (_mm512_mask_fixupimm_round_pd): Update builtin.
30254 (_mm512_mask_fixupimm_round_ps): Ditto.
30255 (_mm_mask_fixupimm_round_sd): Ditto.
30256 (_mm_mask_fixupimm_round_ss): Ditto.
30257 (_mm512_mask_fixupimm_pd): Ditto.
30258 (_mm512_mask_fixupimm_ps): Ditto.
30259 (_mm_mask_fixupimm_sd): Ditto.
30260 (_mm_mask_fixupimm_ss): Ditto.
30261 * config/i386/avx512vlintrin.h:
30262 (_mm256_fixupimm_pd): Update parameters and builtin.
30263 (_mm256_maskz_fixupimm_pd): Ditto.
30264 (_mm256_fixupimm_ps): Ditto.
30265 (_mm256_maskz_fixupimm_ps): Ditto.
30266 (_mm_fixupimm_pd): Ditto.
30267 (_mm_maskz_fixupimm_pd): Ditto.
30268 (_mm_fixupimm_ps): Ditto.
30269 (_mm_maskz_fixupimm_ps): Ditto.
30270 (_mm256_mask_fixupimm_pd): Update builtin.
30271 (_mm256_mask_fixupimm_ps): Ditto.
30272 (_mm_mask_fixupimm_pd): Ditto.
30273 (_mm_mask_fixupimm_ps): Ditto.
30274 * config/i386/i386-builtin-types.def: Add new types and remove
30275 useless ones.
30276 * config/i386/i386-builtin.def: Update builtin definitions.
30277 * config/i386/i386.c: Handle new builtin types and remove useless ones.
30278 * config/i386/sse.md: Update VFIXUPIMM* patterns.
30279 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30280 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30281 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
30282 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30283 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30284 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
30285 * config/i386/subst.md:
30286 (round_saeonly_sd_mask_operand4): Add new subst_attr.
30287 (round_saeonly_sd_mask_op4): Ditto.
30288 (round_saeonly_expand_operand5): Ditto.
30289 (round_saeonly_expand): Update.
30290
30291 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
30292
30293 PR target/88794
30294 Revert:
30295 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
30296
30297 * config/i386/sse.md: Combine VFIXUPIMM* patterns
30298 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30299 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30300 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
30301 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30302 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30303 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
30304
30305 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
30306
30307 PR target/88794
30308 Revert:
30309 2018-12-15 Jakub Jelinek <jakub@redhat.com>
30310
30311 PR target/88489
30312 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
30313 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
30314 instead of UNSPEC_FIXUPIMM.
30315
30316 2019-01-17 Richard Biener <rguenther@suse.de>
30317
30318 PR lto/86736
30319 * dwarf2out.c (want_pubnames): Never generate pubnames sections
30320 and friends for the LTO part of debug info.
30321
30322 2019-01-17 Jakub Jelinek <jakub@redhat.com>
30323
30324 PR tree-optimization/86214
30325 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
30326 if x == y.
30327
30328 PR rtl-optimization/88870
30329 * dce.c (deletable_insn_p): Never delete const/pure calls that can
30330 throw if we can't alter the cfg or delete dead exceptions.
30331 (mark_insn): Don't call find_call_stack_args for such calls.
30332
30333 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
30334
30335 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
30336 prototypes for vec_st.
30337 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
30338 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
30339 mainly on signed/unsigned long long and double.
30340
30341 2019-01-16 David Malcolm <dmalcolm@redhat.com>
30342
30343 PR target/88861
30344 * combine.c (delete_noop_moves): Convert to "bool" return,
30345 returning true if any edges are eliminated.
30346 (combine_instructions): Also return true if delete_noop_moves
30347 returns true.
30348
30349 2019-01-16 Tamar Christina <tamar.christina@arm.com>
30350
30351 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
30352 correct max nunits for endian swap.
30353 (aarch64_expand_fcmla_builtin): Correct subreg code.
30354 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
30355 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
30356 lane endianness.
30357
30358 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
30359
30360 * config/alpha/alpha.c (alpha_gimplify_va_arg):
30361 Handle split indirect COMPLEX_TYPE arguments.
30362
30363 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
30364
30365 PR target/86891
30366 * config/aarch64/aarch64-modes.def: Add comment about how the carry
30367 bit is set by add and compare.
30368 (CC_ADC): New CC_MODE.
30369 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
30370 to cache the code and mode of X. Adjust the shape of a CC_Cmode
30371 comparison. Add detection for CC_ADCmode.
30372 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
30373 CC_ADCmode.
30374 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
30375 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
30376 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
30377 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
30378 to eliminate the need for zero-extending the operands.
30379 (add<mode>3_compareC_imm): Delete. Merge into ...
30380 (add<mode>3_compareC): ... this. Restructure the comparison to
30381 eliminate the need for zero-extending the operands.
30382 (add<mode>3_carryin): Use LTU for the overflow detection.
30383 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
30384 Reexpress comparison for overflow.
30385 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
30386 (add<mode>3_carryinC): Likewise.
30387 (add<mode>3_carryinV): Use LTU for carry between partials.
30388 * config/aarch64/predicates.md (aarch64_carry_operation): Update
30389 handling of CC_Cmode and add CC_ADCmode.
30390 (aarch64_borrow_operation): Likewise.
30391
30392 2019-01-16 Tamar Christina <tamar.christina@arm.com>
30393
30394 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
30395 Remove patternmode.
30396 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
30397 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
30398 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
30399 Remove endianness conversion.
30400
30401 2019-01-16 Martin Liska <mliska@suse.cz>
30402
30403 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
30404 for GCC driver.
30405 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
30406 a new argument.
30407 * gcc.c (add_sysrooted_hdrs_prefix): New function.
30408 (path_prefix_reset): Move up in the source file.
30409 (find_fortran_preinclude_file): Make complex search for the
30410 fortran header files.
30411
30412 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
30413
30414 * godump.c (go_output_typedef): When outputting a typedef, refer
30415 to the underlying type by its name and not its structure.
30416
30417 2019-01-15 David Malcolm <dmalcolm@redhat.com>
30418
30419 PR c++/88795
30420 * tree.c (build_function_type): Assert that arg_types is not
30421 error_mark_node.
30422
30423 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
30424
30425 PR inline-asm/52813
30426 * doc/extend.texi: Document that listing the stack pointer in the
30427 clobber list of an asm is a deprecated feature.
30428 * common.opt (Wdeprecated): Moved from c-family/c.opt.
30429 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
30430 warning instead of an error for clobbers of the stack pointer.
30431 Add a note explaining why.
30432
30433 2019-01-15 Richard Biener <rguenther@suse.de>
30434
30435 PR debug/88046
30436 * dwarf2out.c (gen_member_die): Do not generate inheritance
30437 DIEs late.
30438
30439 2019-01-15 Richard Biener <rguenther@suse.de>
30440
30441 PR tree-optimization/88855
30442 * tree-if-conv.c (combine_blocks): Collect
30443 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
30444
30445 2019-01-15 Tom de Vries <tdevries@suse.de>
30446
30447 PR target/80547
30448 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
30449 lhs == NULL_TREE for gang-level reduction.
30450
30451 2019-01-15 Richard Biener <rguenther@suse.de>
30452 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30453
30454 PR ipa/88788
30455 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
30456 return true if SSA_NAME is already marked in visited bitmap.
30457 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
30458
30459 2019-01-15 Jakub Jelinek <jakub@redhat.com>
30460
30461 PR tree-optimization/88775
30462 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
30463 equal == 0 equality pointer comparisons some more if compared in
30464 integral types and either one points to an automatic var and the
30465 other to a global, or we can prove at least one points to the middle
30466 or both point to start or both point to end.
30467
30468 2019-01-14 Andi Kleen <ak@linux.intel.com>
30469
30470 * Makefile.in: Lower autofdo sampling rate by 10x.
30471 * Makefile.tpl: Dito.
30472
30473 2019-01-14 Tom Honermann <tom@honermann.net>
30474
30475 * defaults.h: Define CHAR8_TYPE.
30476
30477 2019-01-14 Martin Sebor <msebor@redhat.com>
30478
30479 PR target/88638
30480 * doc/extend.texi (Darwin Format Checks): Clarify.
30481
30482 2019-01-14 Richard Biener <rguenther@suse.de>
30483
30484 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
30485 whether we are in (simplify ...) or (match ...) context.
30486
30487 2019-01-14 Jakub Jelinek <jakub@redhat.com>
30488
30489 PR rtl-optimization/88796
30490 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
30491 * cfgexpand.c (stack_protect_prologue): Initialize
30492 crtl->stack_protect_guard_decl.
30493 * function.c (stack_protect_epilogue): Use it instead of calling
30494 targetm.stack_protect_guard again.
30495 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
30496 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
30497 crtl->stack_protect_guard_decl.
30498 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
30499 on the returned MEM_EXPR.
30500
30501 2019-01-12 Tom de Vries <tdevries@suse.de>
30502
30503 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
30504 vector length using -fopenacc-dim.
30505
30506 2019-01-12 Tom de Vries <tdevries@suse.de>
30507
30508 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
30509 lengths into account.
30510
30511 2019-01-12 Svante Signell <svante.signell@gmail.com>
30512
30513 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
30514 (TARGET_CAN_SPLIT_STACK): Define.
30515 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
30516
30517 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
30518
30519 * params.def (inline-unit-growth): Set to 40.
30520
30521 2019-01-12 Jakub Jelinek <jakub@redhat.com>
30522
30523 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
30524
30525 2019-01-12 Tom de Vries <tdevries@suse.de>
30526
30527 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
30528 region calling vector-partitionable routine, set default_vector_length
30529 to WARP_SIZE.
30530
30531 2019-01-12 Tom de Vries <tdevries@suse.de>
30532
30533 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
30534 variable default_vector_length.
30535
30536 2019-01-12 Tom de Vries <tdevries@suse.de>
30537
30538 PR middle-end/88703
30539 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
30540 from oacc_default_dims, as oacc_validate_dims would do it, and apply
30541 dimensions limits.
30542
30543 2019-01-12 Tom de Vries <tdevries@suse.de>
30544
30545 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
30546 (nvptx_goacc_validate_dims): Add used parameter.
30547 * doc/tm.texi: Regenerate.
30548 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
30549 argument to call to targetm.goacc.validate_dims.
30550 (default_goacc_validate_dims): Add used
30551 parameter.
30552 * target.def (validate_dims): Add used parameter in DEFHOOK.
30553 * targhooks.h (default_goacc_validate_dims): Add used parameter.
30554
30555 2019-01-11 Jakub Jelinek <jakub@redhat.com>
30556
30557 PR middle-end/85956
30558 PR lto/88733
30559 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
30560 field.
30561 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
30562 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
30563 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
30564 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
30565
30566 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
30567
30568 PR rtl-optimization/87305
30569 * lra-assigns.c
30570 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
30571 for little endian pseudos used as paradoxical subreg.
30572
30573 2019-01-11 Jakub Jelinek <jakub@redhat.com>
30574
30575 PR tree-optimization/88693
30576 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
30577 for STRING_CSTs that don't contain any NUL characters in the first
30578 TREE_STRING_LENGTH bytes.
30579
30580 2019-01-11 Alan Modra <amodra@gmail.com>
30581
30582 PR 88777
30583 PR 88614
30584 * genattrtab.c (min_fn): Don't translate values.
30585 (min_attr_value): Return INT_MAX when the value can't be calculated.
30586 Return minimum among any values that can be calculated.
30587 (max_attr_value): Adjust.
30588
30589 2019-01-11 Jakub Jelinek <jakub@redhat.com>
30590
30591 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
30592
30593 2019-01-11 Steve Ellcey <sellcey@marvell.com>
30594
30595 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
30596 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
30597 (aarch64_return_call_with_max_clobbers): New function.
30598 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
30599 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
30600 argument.
30601 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
30602 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
30603 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
30604 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
30605 * cselib.c (cselib_process_insn): Add argument to
30606 targetm.hard_regno_call_part_clobbered call.
30607 * ira-conflicts.c (ira_build_conflicts): Ditto.
30608 * ira-costs.c (ira_tune_allocno_costs): Ditto.
30609 * lra-constraints.c (inherit_reload_reg): Ditto.
30610 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
30611 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
30612 argument. Call targetm.return_call_with_max_clobbers.
30613 Add argument to targetm.hard_regno_call_part_clobbered call.
30614 (calls_have_same_clobbers_p): New function.
30615 (process_bb_lives): Add call_insn and last_call_insn variables.
30616 Pass call_insn to check_pseudos_live_through_calls.
30617 Modify if stmt to check targetm.return_call_with_max_clobbers.
30618 Update setting of flush variable.
30619 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
30620 to false.
30621 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
30622 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
30623 targetm.hard_regno_call_part_clobbered call.
30624 * reginfo.c (choose_hard_reg_mode): Ditto.
30625 * regrename.c (check_new_reg_p): Ditto.
30626 * reload.c (find_equiv_reg): Ditto.
30627 * reload1.c (emit_reload_insns): Ditto.
30628 * sched-deps.c (deps_analyze_insn): Ditto.
30629 * sel-sched.c (init_regs_for_mode): Ditto.
30630 (mark_unavailable_hard_regs): Ditto.
30631 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
30632 * target.def (hard_regno_call_part_clobbered): Add insn argument.
30633 (return_call_with_max_clobbers): New target function.
30634 * doc/tm.texi: Regenerate.
30635 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
30636 * hooks.c (hook_bool_uint_mode_false): Change to
30637 hook_bool_insn_uint_mode_false.
30638 * hooks.h (hook_bool_uint_mode_false): Ditto.
30639
30640 2019-01-11 Steve Ellcey <sellcey@marvell.com>
30641
30642 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
30643 (aarch64_remove_extra_call_preserved_regs): New function.
30644 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
30645 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
30646 * doc/tm.texi: Regenerate.
30647 * final.c (get_call_reg_set_usage): Call new hook.
30648 * target.def (remove_extra_call_preserved_regs): New hook.
30649 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
30650 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
30651
30652 2019-01-11 Jakub Jelinek <jakub@redhat.com>
30653
30654 PR bootstrap/88714
30655 * passes.c (finish_optimization_passes): Call print_combine_total_stats
30656 inside of pass_combine_1 dump rather than pass_profile_1.
30657
30658 2019-01-11 Tom de Vries <tdevries@suse.de>
30659
30660 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
30661 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
30662 (PTX_NUM_PER_WORKER_BARRIERS): Define.
30663 (nvptx_apply_dim_limits): Prevent vector_length 64 and
30664 num_workers 16.
30665
30666 2019-01-11 Tom de Vries <tdevries@suse.de>
30667
30668 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
30669
30670 2019-01-11 Jan Beulich <jbeulich@suse.com>
30671
30672 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
30673 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
30674 sse2_cvtsi2sd): Add {l}.
30675 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
30676 syntax.
30677
30678 2019-01-10 Jakub Jelinek <jakub@redhat.com>
30679
30680 PR target/88785
30681 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
30682 define_expand.
30683 (*float<floatunssuffix>v2div2sf2): New define_insn.
30684 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
30685 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
30686 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
30687 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
30688 match_operands with "const0_operand" "C".
30689
30690 2019-01-10 Tamar Christina <tamar.christina@arm.com>
30691
30692 * config/aarch64/aarch64-builtins.c
30693 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
30694 (aarch64_init_simd_builtins): ...Here
30695
30696 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
30697
30698 PR rtl-optimization/87305
30699 * lra-assigns.c
30700 (setup_live_pseudos_and_spill_after_risky_transforms): Check
30701 allocation for big endian pseudos used as paradoxical subregs and
30702 spill them if it is wrong.
30703 * lra-constraints.c (lra_constraints): Add a comment.
30704
30705 2019-01-10 Richard Biener <rguenther@suse.de>
30706
30707 PR tree-optimization/88792
30708 * tree-ssa-pre.c (get_representative_for): Do not return a
30709 value-number here.
30710
30711 2019-01-10 Jakub Jelinek <jakub@redhat.com>
30712
30713 PR middle-end/84877
30714 PR bootstrap/88450
30715 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
30716 (assign_parm_setup_block): Do the argument slot realignment here
30717 instead.
30718
30719 2019-01-10 Stefan Agner <stefan@agner.ch>
30720
30721 PR target/88648
30722 * config/arm/arm.c (arm_option_override_internal): Force
30723 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
30724
30725 2019-01-10 Jakub Jelinek <jakub@redhat.com>
30726
30727 PR c/88568
30728 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
30729 DECL_EXTERNAL.
30730
30731 2019-01-10 Tamar Christina <tamar.christina@arm.com>
30732
30733 * config/arm/arm-builtins.c
30734 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
30735 (MAC_LANE_PAIR_QUALIFIERS): New.
30736 (arm_expand_builtin_args): Use it.
30737 (arm_expand_builtin_1): Likewise.
30738 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
30739 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
30740 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
30741 * config/arm/arm_neon.h:
30742 (vcadd_rot90_f16): New.
30743 (vcaddq_rot90_f16): New.
30744 (vcadd_rot270_f16): New.
30745 (vcaddq_rot270_f16): New.
30746 (vcmla_f16): New.
30747 (vcmlaq_f16): New.
30748 (vcmla_lane_f16): New.
30749 (vcmla_laneq_f16): New.
30750 (vcmlaq_lane_f16): New.
30751 (vcmlaq_laneq_f16): New.
30752 (vcmla_rot90_f16): New.
30753 (vcmlaq_rot90_f16): New.
30754 (vcmla_rot90_lane_f16): New.
30755 (vcmla_rot90_laneq_f16): New.
30756 (vcmlaq_rot90_lane_f16): New.
30757 (vcmlaq_rot90_laneq_f16): New.
30758 (vcmla_rot180_f16): New.
30759 (vcmlaq_rot180_f16): New.
30760 (vcmla_rot180_lane_f16): New.
30761 (vcmla_rot180_laneq_f16): New.
30762 (vcmlaq_rot180_lane_f16): New.
30763 (vcmlaq_rot180_laneq_f16): New.
30764 (vcmla_rot270_f16): New.
30765 (vcmlaq_rot270_f16): New.
30766 (vcmla_rot270_lane_f16): New.
30767 (vcmla_rot270_laneq_f16): New.
30768 (vcmlaq_rot270_lane_f16): New.
30769 (vcmlaq_rot270_laneq_f16): New.
30770 (vcadd_rot90_f32): New.
30771 (vcaddq_rot90_f32): New.
30772 (vcadd_rot270_f32): New.
30773 (vcaddq_rot270_f32): New.
30774 (vcmla_f32): New.
30775 (vcmlaq_f32): New.
30776 (vcmla_lane_f32): New.
30777 (vcmla_laneq_f32): New.
30778 (vcmlaq_lane_f32): New.
30779 (vcmlaq_laneq_f32): New.
30780 (vcmla_rot90_f32): New.
30781 (vcmlaq_rot90_f32): New.
30782 (vcmla_rot90_lane_f32): New.
30783 (vcmla_rot90_laneq_f32): New.
30784 (vcmlaq_rot90_lane_f32): New.
30785 (vcmlaq_rot90_laneq_f32): New.
30786 (vcmla_rot180_f32): New.
30787 (vcmlaq_rot180_f32): New.
30788 (vcmla_rot180_lane_f32): New.
30789 (vcmla_rot180_laneq_f32): New.
30790 (vcmlaq_rot180_lane_f32): New.
30791 (vcmlaq_rot180_laneq_f32): New.
30792 (vcmla_rot270_f32): New.
30793 (vcmlaq_rot270_f32): New.
30794 (vcmla_rot270_lane_f32): New.
30795 (vcmla_rot270_laneq_f32): New.
30796 (vcmlaq_rot270_lane_f32): New.
30797 (vcmlaq_rot270_laneq_f32): New.
30798 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
30799 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
30800 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
30801 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
30802 vcmlaq_lane270): New.
30803 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
30804 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
30805 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
30806 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
30807 (arm_option_reconfigure_globals): Use them.
30808 * config/arm/iterators.md (VDF, VQ_HSF): New.
30809 (VCADD, VCMLA): New.
30810 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
30811 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
30812 New.
30813 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
30814 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
30815
30816 2019-01-10 Tamar Christina <tamar.christina@arm.com>
30817
30818 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
30819 Add qualifier_lane_pair_index.
30820 (emit-rtl.h): Include.
30821 (TYPES_QUADOP_LANE_PAIR): New.
30822 (aarch64_simd_expand_args): Use it.
30823 (aarch64_simd_expand_builtin): Likewise.
30824 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
30825 New.
30826 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
30827 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
30828 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
30829 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
30830 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
30831 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
30832 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
30833 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
30834 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
30835 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
30836 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
30837 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
30838 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
30839 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
30840 Add __ARM_FEATURE_COMPLEX.
30841 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
30842 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
30843 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
30844 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
30845 fcmlaq_lane270): New.
30846 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
30847 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
30848 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
30849 * config/aarch64/arm_neon.h:
30850 (vcadd_rot90_f16): New.
30851 (vcaddq_rot90_f16): New.
30852 (vcadd_rot270_f16): New.
30853 (vcaddq_rot270_f16): New.
30854 (vcmla_f16): New.
30855 (vcmlaq_f16): New.
30856 (vcmla_lane_f16): New.
30857 (vcmla_laneq_f16): New.
30858 (vcmlaq_lane_f16): New.
30859 (vcmlaq_rot90_lane_f16): New.
30860 (vcmla_rot90_laneq_f16): New.
30861 (vcmla_rot90_lane_f16): New.
30862 (vcmlaq_rot90_f16): New.
30863 (vcmla_rot90_f16): New.
30864 (vcmlaq_laneq_f16): New.
30865 (vcmla_rot180_laneq_f16): New.
30866 (vcmla_rot180_lane_f16): New.
30867 (vcmlaq_rot180_f16): New.
30868 (vcmla_rot180_f16): New.
30869 (vcmlaq_rot90_laneq_f16): New.
30870 (vcmlaq_rot270_laneq_f16): New.
30871 (vcmlaq_rot270_lane_f16): New.
30872 (vcmla_rot270_laneq_f16): New.
30873 (vcmlaq_rot270_f16): New.
30874 (vcmla_rot270_f16): New.
30875 (vcmlaq_rot180_laneq_f16): New.
30876 (vcmlaq_rot180_lane_f16): New.
30877 (vcmla_rot270_lane_f16): New.
30878 (vcadd_rot90_f32): New.
30879 (vcaddq_rot90_f32): New.
30880 (vcaddq_rot90_f64): New.
30881 (vcadd_rot270_f32): New.
30882 (vcaddq_rot270_f32): New.
30883 (vcaddq_rot270_f64): New.
30884 (vcmla_f32): New.
30885 (vcmlaq_f32): New.
30886 (vcmlaq_f64): New.
30887 (vcmla_lane_f32): New.
30888 (vcmla_laneq_f32): New.
30889 (vcmlaq_lane_f32): New.
30890 (vcmlaq_laneq_f32): New.
30891 (vcmla_rot90_f32): New.
30892 (vcmlaq_rot90_f32): New.
30893 (vcmlaq_rot90_f64): New.
30894 (vcmla_rot90_lane_f32): New.
30895 (vcmla_rot90_laneq_f32): New.
30896 (vcmlaq_rot90_lane_f32): New.
30897 (vcmlaq_rot90_laneq_f32): New.
30898 (vcmla_rot180_f32): New.
30899 (vcmlaq_rot180_f32): New.
30900 (vcmlaq_rot180_f64): New.
30901 (vcmla_rot180_lane_f32): New.
30902 (vcmla_rot180_laneq_f32): New.
30903 (vcmlaq_rot180_lane_f32): New.
30904 (vcmlaq_rot180_laneq_f32): New.
30905 (vcmla_rot270_f32): New.
30906 (vcmlaq_rot270_f32): New.
30907 (vcmlaq_rot270_f64): New.
30908 (vcmla_rot270_lane_f32): New.
30909 (vcmla_rot270_laneq_f32): New.
30910 (vcmlaq_rot270_lane_f32): New.
30911 (vcmlaq_rot270_laneq_f32): New.
30912 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
30913 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
30914 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
30915 (FCADD, FCMLA): New.
30916 (rot): New.
30917 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
30918
30919 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
30920
30921 PR other/16615
30922
30923 * config/pa/pa.c: Change "can not" to "cannot".
30924 * gimple-ssa-evrp-analyze.c: Likewise.
30925 * ipa-icf.c: Likewise.
30926 * ipa-polymorphic-call.c: Likewise.
30927 * ipa-pure-const.c: Likewise.
30928 * lra-constraints.c: Likewise.
30929 * lra-remat.c: Likewise.
30930 * reload1.c: Likewise.
30931 * reorg.c: Likewise.
30932 * tree-ssa-uninit.c: Likewise.
30933
30934 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
30935
30936 PR other/16615
30937
30938 * Makefile.in: Mechanically replace "can not" with "cannot".
30939 * alias.c: Likewise.
30940 * builtins.c: Likewise.
30941 * calls.c: Likewise.
30942 * cgraph.c: Likewise.
30943 * cgraph.h: Likewise.
30944 * cgraphclones.c: Likewise.
30945 * cgraphunit.c: Likewise.
30946 * combine-stack-adj.c: Likewise.
30947 * combine.c: Likewise.
30948 * common/config/i386/i386-common.c: Likewise.
30949 * config/aarch64/aarch64.c: Likewise.
30950 * config/alpha/sync.md: Likewise.
30951 * config/arc/arc.c: Likewise.
30952 * config/arc/predicates.md: Likewise.
30953 * config/arm/arm-c.c: Likewise.
30954 * config/arm/arm.c: Likewise.
30955 * config/arm/arm.h: Likewise.
30956 * config/arm/arm.md: Likewise.
30957 * config/arm/cortex-r4f.md: Likewise.
30958 * config/csky/csky.c: Likewise.
30959 * config/csky/csky.h: Likewise.
30960 * config/darwin-f.c: Likewise.
30961 * config/epiphany/epiphany.md: Likewise.
30962 * config/i386/i386.c: Likewise.
30963 * config/i386/sol2.h: Likewise.
30964 * config/m68k/m68k.c: Likewise.
30965 * config/mcore/mcore.h: Likewise.
30966 * config/microblaze/microblaze.md: Likewise.
30967 * config/mips/20kc.md: Likewise.
30968 * config/mips/sb1.md: Likewise.
30969 * config/nds32/nds32.c: Likewise.
30970 * config/nds32/predicates.md: Likewise.
30971 * config/pa/pa.c: Likewise.
30972 * config/rs6000/e300c2c3.md: Likewise.
30973 * config/rs6000/rs6000.c: Likewise.
30974 * config/s390/s390.h: Likewise.
30975 * config/sh/sh.c: Likewise.
30976 * config/sh/sh.md: Likewise.
30977 * config/spu/vmx2spu.h: Likewise.
30978 * cprop.c: Likewise.
30979 * dbxout.c: Likewise.
30980 * df-scan.c: Likewise.
30981 * doc/cfg.texi: Likewise.
30982 * doc/extend.texi: Likewise.
30983 * doc/fragments.texi: Likewise.
30984 * doc/gty.texi: Likewise.
30985 * doc/invoke.texi: Likewise.
30986 * doc/lto.texi: Likewise.
30987 * doc/md.texi: Likewise.
30988 * doc/objc.texi: Likewise.
30989 * doc/rtl.texi: Likewise.
30990 * doc/tm.texi: Likewise.
30991 * dse.c: Likewise.
30992 * emit-rtl.c: Likewise.
30993 * emit-rtl.h: Likewise.
30994 * except.c: Likewise.
30995 * expmed.c: Likewise.
30996 * expr.c: Likewise.
30997 * fold-const.c: Likewise.
30998 * genautomata.c: Likewise.
30999 * gimple-fold.c: Likewise.
31000 * hard-reg-set.h: Likewise.
31001 * ifcvt.c: Likewise.
31002 * ipa-comdats.c: Likewise.
31003 * ipa-cp.c: Likewise.
31004 * ipa-devirt.c: Likewise.
31005 * ipa-fnsummary.c: Likewise.
31006 * ipa-icf.c: Likewise.
31007 * ipa-inline-transform.c: Likewise.
31008 * ipa-inline.c: Likewise.
31009 * ipa-polymorphic-call.c: Likewise.
31010 * ipa-profile.c: Likewise.
31011 * ipa-prop.c: Likewise.
31012 * ipa-pure-const.c: Likewise.
31013 * ipa-reference.c: Likewise.
31014 * ipa-split.c: Likewise.
31015 * ipa-visibility.c: Likewise.
31016 * ipa.c: Likewise.
31017 * ira-build.c: Likewise.
31018 * ira-color.c: Likewise.
31019 * ira-conflicts.c: Likewise.
31020 * ira-costs.c: Likewise.
31021 * ira-int.h: Likewise.
31022 * ira-lives.c: Likewise.
31023 * ira.c: Likewise.
31024 * ira.h: Likewise.
31025 * loop-invariant.c: Likewise.
31026 * loop-unroll.c: Likewise.
31027 * lower-subreg.c: Likewise.
31028 * lra-assigns.c: Likewise.
31029 * lra-constraints.c: Likewise.
31030 * lra-eliminations.c: Likewise.
31031 * lra-lives.c: Likewise.
31032 * lra-remat.c: Likewise.
31033 * lra-spills.c: Likewise.
31034 * lra.c: Likewise.
31035 * lto-cgraph.c: Likewise.
31036 * lto-streamer-out.c: Likewise.
31037 * postreload-gcse.c: Likewise.
31038 * predict.c: Likewise.
31039 * profile-count.h: Likewise.
31040 * profile.c: Likewise.
31041 * recog.c: Likewise.
31042 * ree.c: Likewise.
31043 * reload.c: Likewise.
31044 * reload1.c: Likewise.
31045 * reorg.c: Likewise.
31046 * resource.c: Likewise.
31047 * rtl.def: Likewise.
31048 * rtl.h: Likewise.
31049 * rtlanal.c: Likewise.
31050 * sched-deps.c: Likewise.
31051 * sched-ebb.c: Likewise.
31052 * sched-rgn.c: Likewise.
31053 * sel-sched-ir.c: Likewise.
31054 * sel-sched.c: Likewise.
31055 * shrink-wrap.c: Likewise.
31056 * simplify-rtx.c: Likewise.
31057 * symtab.c: Likewise.
31058 * target.def: Likewise.
31059 * toplev.c: Likewise.
31060 * tree-call-cdce.c: Likewise.
31061 * tree-cfg.c: Likewise.
31062 * tree-complex.c: Likewise.
31063 * tree-core.h: Likewise.
31064 * tree-eh.c: Likewise.
31065 * tree-inline.c: Likewise.
31066 * tree-loop-distribution.c: Likewise.
31067 * tree-nrv.c: Likewise.
31068 * tree-profile.c: Likewise.
31069 * tree-sra.c: Likewise.
31070 * tree-ssa-alias.c: Likewise.
31071 * tree-ssa-dce.c: Likewise.
31072 * tree-ssa-dom.c: Likewise.
31073 * tree-ssa-forwprop.c: Likewise.
31074 * tree-ssa-loop-im.c: Likewise.
31075 * tree-ssa-loop-ivcanon.c: Likewise.
31076 * tree-ssa-loop-ivopts.c: Likewise.
31077 * tree-ssa-loop-niter.c: Likewise.
31078 * tree-ssa-phionlycprop.c: Likewise.
31079 * tree-ssa-phiopt.c: Likewise.
31080 * tree-ssa-propagate.c: Likewise.
31081 * tree-ssa-threadedge.c: Likewise.
31082 * tree-ssa-threadupdate.c: Likewise.
31083 * tree-ssa-uninit.c: Likewise.
31084 * tree-ssanames.c: Likewise.
31085 * tree-streamer-out.c: Likewise.
31086 * tree.c: Likewise.
31087 * tree.h: Likewise.
31088 * vr-values.c: Likewise.
31089
31090 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
31091
31092 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
31093 (ix86_split_xorsign): Ditto.
31094 * config/i386/i386.c (ix86_expand_xorsign): New function.
31095 (ix86_split_xorsign): Ditto.
31096 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
31097 (xorsign<mode>3): New expander.
31098 (xorsign<mode>3_1): New insn_and_split pattern.
31099 * config/i386/sse.md (xorsign<mode>3): New expander.
31100
31101 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
31102
31103 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
31104 (*tablejump_sp64): Likewise.
31105 (*tablejump<P:mode>): ...this.
31106 (*call_address_sp32): Merge into...
31107 (*call_address_sp64): Likewise.
31108 (*call_address<P:mode>): ...this.
31109 (*call_symbolic_sp32): Merge into...
31110 (*call_symbolic_sp64): Likewise.
31111 (*call_symbolic<P:mode>): ...this.
31112 (call_value): Remove constraint and add predicate.
31113 (*call_value_address_sp32): Merge into...
31114 (*call_value_address_sp64): Likewise.
31115 (*call_value_address<P:mode>): ...this.
31116 (*call_value_symbolic_sp32): Merge into...
31117 (*call_value_symbolic_sp64): Likewise.
31118 (*call_value_symbolic<P:mode>): ...this.
31119 (*sibcall_symbolic_sp32): Merge into...
31120 (*sibcall_symbolic_sp64): Likewise.
31121 (*sibcall_symbolic<P:mode>): ...this.
31122 (sibcall_value): Remove constraint and add predicate.
31123 (*sibcall_value_symbolic_sp32): Merge into...
31124 (*sibcall_value_symbolic_sp64): Likewise.
31125 (*sibcall_value_symbolic<P:mode>): ...this.
31126 (window_save): Minor tweak.
31127 (*branch_sp32): Merge into...
31128 (*branch_sp64): Likewise.
31129 (*branch<P:mode>): ...this.
31130
31131 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
31132 James Clarke <jrtc27@jrtc27.com>
31133
31134 PR target/84010
31135 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
31136 consistently in TLS address generation and adjust code to the renaming
31137 of patterns. Mark calls to __tls_get_addr as const.
31138 * config/sparc/sparc.md (tgd_hi22): Turn into...
31139 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
31140 (tgd_lo10): Turn into...
31141 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
31142 (tgd_add32): Merge into...
31143 (tgd_add64): Likewise.
31144 (tgd_add<P:mode>): ...this and use Pmode throughout.
31145 (tldm_hi22): Turn into...
31146 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
31147 (tldm_lo10): Turn into...
31148 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
31149 (tldm_add32): Merge into...
31150 (tldm_add64): Likewise.
31151 (tldm_add<P:mode>): ...this and use Pmode throughout.
31152 (tldm_call32): Merge into...
31153 (tldm_call64): Likewise.
31154 (tldm_call<P:mode>): ...this and use Pmode throughout.
31155 (tldo_hix22): Turn into...
31156 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
31157 (tldo_lox10): Turn into...
31158 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
31159 (tldo_add32): Merge into...
31160 (tldo_add64): Likewise.
31161 (tldo_add<P:mode>): ...this and use Pmode throughout.
31162 (tie_hi22): Turn into...
31163 (tie_hi22<P:mode>): ...this and use Pmode throughout.
31164 (tie_lo10): Turn into...
31165 (tie_lo10<P:mode>): ...this and use Pmode throughout.
31166 (tie_ld64): Use DImode throughout.
31167 (tie_add32): Merge into...
31168 (tie_add64): Likewise.
31169 (tie_add<P:mode>): ...this and use Pmode throughout.
31170 (tle_hix22_sp32): Merge into...
31171 (tle_hix22_sp64): Likewise.
31172 (tle_hix22<P:mode>): ...this and use Pmode throughout.
31173 (tle_lox22_sp32): Merge into...
31174 (tle_lox22_sp64): Likewise.
31175 (tle_lox22<P:mode>): ...this and use Pmode throughout.
31176 (*tldo_ldub_sp32): Merge into...
31177 (*tldo_ldub_sp64): Likewise.
31178 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
31179 (*tldo_ldub1_sp32): Merge into...
31180 (*tldo_ldub1_sp64): Likewise.
31181 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
31182 (*tldo_ldub2_sp32): Merge into...
31183 (*tldo_ldub2_sp64): Likewise.
31184 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
31185 (*tldo_ldsb1_sp32): Merge into...
31186 (*tldo_ldsb1_sp64): Likewise.
31187 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
31188 (*tldo_ldsb2_sp32): Merge into...
31189 (*tldo_ldsb2_sp64): Likewise.
31190 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
31191 (*tldo_ldub3_sp64): Use DImode throughout.
31192 (*tldo_ldsb3_sp64): Likewise.
31193 (*tldo_lduh_sp32): Merge into...
31194 (*tldo_lduh_sp64): Likewise.
31195 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
31196 (*tldo_lduh1_sp32): Merge into...
31197 (*tldo_lduh1_sp64): Likewise.
31198 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
31199 (*tldo_ldsh1_sp32): Merge into...
31200 (*tldo_ldsh1_sp64): Likewise.
31201 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
31202 (*tldo_lduh2_sp64): Use DImode throughout.
31203 (*tldo_ldsh2_sp64): Likewise.
31204 (*tldo_lduw_sp32): Merge into...
31205 (*tldo_lduw_sp64): Likewise.
31206 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
31207 (*tldo_lduw1_sp64): Use DImode throughout.
31208 (*tldo_ldsw1_sp64): Likewise.
31209 (*tldo_ldx_sp64): Likewise.
31210 (*tldo_stb_sp32): Merge into...
31211 (*tldo_stb_sp64): Likewise.
31212 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
31213 (*tldo_sth_sp32): Merge into...
31214 (*tldo_sth_sp64): Likewise.
31215 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
31216 (*tldo_stw_sp32): Merge into...
31217 (*tldo_stw_sp64): Likewise.
31218 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
31219 (*tldo_stx_sp64): Use DImode throughout.
31220
31221 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31222
31223 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
31224 check configure option to set BTI and Return Address Signing.
31225 * configure.ac: Add --enable-standard-branch-protection and
31226 --disable-standard-branch-protection.
31227 * configure: Regenerated.
31228 * doc/install.texi: Document the same.
31229
31230 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31231 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31232
31233 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
31234 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
31235 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
31236 if bti is enabled.
31237 * config/aarch64/aarch64-bti-insert.c: New file.
31238 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
31239 pass.
31240 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
31241 new bti pass.
31242 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
31243 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
31244 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
31245 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
31246
31247 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31248
31249 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
31250 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
31251 Disable bti for -mbranch-protection=none.
31252 (aarch64_handle_standard_branch_protection): Enable bti for
31253 -mbranch-protection=standard.
31254 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
31255 -mbranch-protection.
31256 (aarch64_bti_enabled): Check if bti is enabled.
31257 * config/aarch64/aarch64.opt: Declare target variable.
31258 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
31259
31260 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31261
31262 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
31263 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
31264 (aarch64_expand_epilogue): Likewise.
31265 (aarch64_output_mi_thunk): Likewise.
31266 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
31267 TAILCALL_ADDR_REGS to x16 and x17.
31268 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
31269
31270 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31271
31272 * config/aarch64/aarch64-option-extensions.def: Define
31273 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
31274 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
31275 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
31276 (AARCH64_FL_PREDRES): New.
31277 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
31278 AARCH64_FL_PREDRES by default.
31279 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
31280
31281 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31282
31283 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
31284 ARMv8.5-A.
31285 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
31286 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
31287 * doc/invoke.texi: Document ARMv8.5-A.
31288
31289 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
31290
31291 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
31292 (xorsign<mode>3): Likewise.
31293
31294 2019-01-09 Jelinek <jakub@redhat.com>
31295
31296 PR middle-end/88758
31297 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
31298 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
31299
31300 PR rtl-optimization/88331
31301 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
31302 not currently_expanding_to_rtl.
31303
31304 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
31305
31306 * doc/invoke.texi (-Os): Remove trailing spaces.
31307 (-finline-functions): Remove reference to -O2.
31308
31309 2019-01-08 Jakub Jelinek <jakub@redhat.com>
31310
31311 PR rtl-optimization/79593
31312 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
31313
31314 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
31315 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
31316
31317 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
31318
31319 PR bootstrap/88721
31320 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
31321 to -1 on entry.
31322
31323 PR debug/88723
31324 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
31325 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
31326
31327 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
31328
31329 PR target/88717
31330 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
31331 ix86_avx_u128_mode_entry.
31332
31333 2019-01-08 Martin Liska <mliska@suse.cz>
31334
31335 PR tree-optimization/88753
31336 * tree-switch-conversion.c (switch_conversion::build_one_array):
31337 Come up with local variable constructor. Convert first to
31338 type of constructor values.
31339
31340 2019-01-08 Richard Biener <rguenther@suse.de>
31341
31342 PR tree-optimization/86554
31343 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
31344 rpo_avail): Move earlier.
31345 (visit_nary_op): When value-numbering to expressions
31346 with different overflow behavior make sure there's an
31347 available expression on the path.
31348
31349 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
31350
31351 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
31352 aarch64_parse_branch_protection,
31353 struct aarch64_branch_protect_type,
31354 aarch64_handle_no_branch_protection,
31355 aarch64_handle_standard_branch_protection,
31356 aarch64_validate_mbranch_protection,
31357 aarch64_handle_pac_ret_protection,
31358 aarch64_handle_attr_branch_protection,
31359 accepted_branch_protection_string,
31360 aarch64_pac_ret_subtypes,
31361 aarch64_branch_protect_types,
31362 aarch64_handle_pac_ret_leaf): Define.
31363 (aarch64_override_options_after_change_1, aarch64_override_options):
31364 Add check for accepted_branch_protection_string.
31365 (aarch64_option_save): Save accepted_branch_protection_string.
31366 (aarch64_option_restore): Save accepted_branch_protection_string.
31367 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
31368 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
31369 msign-return-address.
31370 * doc/invoke.texi: Add mbranch-protection.
31371
31372 2019-01-08 Alan Modra <amodra@gmail.com>
31373
31374 PR target/88614
31375 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
31376 Delete "unknownp" parameter. Adjust callers. Handle
31377 CONST_INT, PLUS, MINUS, and MULT.
31378 (attr_value_aligned): Renamed from or_attr_value.
31379 (min_attr_value): Return INT_MIN for unhandled rtl case..
31380 (min_fn): ..and translate to INT_MAX here.
31381 (write_length_unit_log): Modify to cope without "unknown".
31382 (write_attr_value): Handle IF_THEN_ELSE.
31383
31384 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
31385
31386 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
31387 optimization for masked stores.
31388
31389 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
31390
31391 PR middle-end/88567
31392 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
31393 output vector directly to duplicate_and_interleave instead of
31394 going through a temporary. Postpone insertion of ctor_seq to
31395 the end of the loop.
31396
31397 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
31398
31399 PR target/86891
31400 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
31401 unsigned_p. Handle signed and unsigned overflow correction as
31402 required.
31403 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
31404 prototype.
31405 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
31406 for operand 2.
31407 (add<mode>3_compareV_imm): Make this callable for expanding.
31408 (subv<GPI:mode>4): Use register_operand for operand 1. Use
31409 aarch64_plus_operand for operand 2.
31410 (subv<GPI:mode>_insn): New insn pattern.
31411 (subv<GPI:mode>_imm): Likewise.
31412 (negv<GPI:mode>3): New expand pattern.
31413 (negv<GPI:mode>_insn): New insn pattern.
31414 (negv<GPI:mode>_cmp_only): Likewise.
31415 (cmpv<GPI:mode>_insn): Likewise.
31416 (subvti4): Use register_operand for operand 1. Update call to
31417 aarch64_expand_subvti.
31418 (usubvti4): Likewise.
31419 (negvti3): New expand pattern.
31420 (negdi_carryout): New insn pattern.
31421 (negvdi_carryinV): New insn pattern.
31422 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
31423 version the named version.
31424 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
31425 operands.
31426 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
31427 patterns.
31428 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
31429 patterns.
31430 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
31431 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
31432 (sub<mode>3_carryinCV): Delete.
31433 (sub<GPI:mode>3_carryinV): New expand pattern.
31434 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
31435
31436 2019-01-07 Richard Biener <rguenther@suse.de>
31437
31438 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
31439 of tree_operand_hash.
31440
31441 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
31442
31443 PR tree-optimization/88598
31444 * tree.h (single_nonzero_element): Declare.
31445 * tree.c (single_nonzero_element): New function.
31446 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
31447 if I is the only nonzero element of CST.
31448
31449 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
31450
31451 PR tree-optimization/88598
31452 * tree.h (initializer_each_zero_or_onep): Declare.
31453 * tree.c (initializer_each_zero_or_onep): New function.
31454 (signed_or_unsigned_type_for): Handle float types too.
31455 (unsigned_type_for, signed_type_for): Update comments accordingly.
31456 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
31457 x & { 0 or -1, 0 or -1, ... }.
31458
31459 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
31460
31461 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
31462 with x86_64-pc-linux-gnu.
31463
31464 2019-01-07 Tom de Vries <tdevries@suse.de>
31465
31466 PR target/85486
31467 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
31468 function.
31469 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
31470 routines.
31471
31472 2019-01-07 Jakub Jelinek <jakub@redhat.com>
31473
31474 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
31475 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
31476 TARGET_AVX512F as condition.
31477
31478 PR debug/88723
31479 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
31480 const_not_ok_for_debug_p target hook.
31481 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
31482 on UNSPEC and subexpressions thereof if all subexpressions of the
31483 UNSPEC are CONSTANT_P.
31484
31485 PR tree-optimization/88676
31486 * tree-ssa-phiopt.c (two_value_replacement): New function.
31487 (tree_ssa_phiopt_worker): Call it.
31488
31489 PR sanitizer/88619
31490 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
31491 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
31492
31493 PR c++/85052
31494 * tree-vect-generic.c: Include insn-config.h and recog.h.
31495 (expand_vector_piecewise): Add defaulted ret_type argument,
31496 if non-NULL, use that in preference to type for the result type.
31497 (expand_vector_parallel): Formatting fix.
31498 (do_vec_conversion, do_vec_narrowing_conversion,
31499 expand_vector_conversion): New functions.
31500 (expand_vector_operations_1): Call expand_vector_conversion
31501 for VEC_CONVERT ifn calls.
31502 * internal-fn.def (VEC_CONVERT): New internal function.
31503 * internal-fn.c (expand_VEC_CONVERT): New function.
31504 * fold-const-call.c (fold_const_vec_convert): New function.
31505 (fold_const_call): Use it for CFN_VEC_CONVERT.
31506 * doc/extend.texi (__builtin_convertvector): Document.
31507
31508 2019-01-07 Tom de Vries <tdevries@suse.de>
31509
31510 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
31511 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
31512 vector_red_partition, vector_red_sym): New global variables.
31513 (nvptx_option_override): Initialize vector_red_sym.
31514 (nvptx_declare_function_name): Restore red_partition register.
31515 (nvptx_file_end): Emit code to declare the vector reduction variables.
31516 (nvptx_output_red_partition): New function.
31517 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
31518 large vector reductions.
31519 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
31520 (nvptx_init_builtins): Add VECTOR_ADDR.
31521 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
31522 Handle nvptx_expand_shared_addr.
31523 (nvptx_get_shared_red_addr): Add vector argument and handle large
31524 vectors.
31525 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
31526 large vectors.
31527 (nvptx_goacc_reduction_init): Likewise.
31528 (nvptx_goacc_reduction_fini): Likewise.
31529 (nvptx_goacc_reduction_teardown): Likewise.
31530 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
31531 init,fini,teardown}.
31532 (nvptx_init_axis_predicate): Initialize vector_red_partition.
31533 (nvptx_set_current_function): Init vector_red_partition.
31534 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
31535 (nvptx_red_partition): New insn.
31536 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
31537
31538 2019-01-07 Tom de Vries <tdevries@suse.de>
31539
31540 PR target/85381
31541 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
31542 empty loops.
31543
31544 2019-01-07 Tom de Vries <tdevries@suse.de>
31545
31546 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
31547 (nvptx_option_override): Init oacc_bcast_partition.
31548 (nvptx_init_oacc_workers): New function.
31549 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
31550 (nvptx_needs_shared_bcast): New function.
31551 (nvptx_find_par): Generalize to enable vectors to use shared-memory
31552 to propagate state.
31553 (nvptx_shared_propagate): Initialize vector bcast partition and
31554 synchronization state.
31555 (nvptx_single): Generalize to enable vectors to use shared-memory
31556 to propagate state.
31557 (nvptx_process_pars): Likewise.
31558 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
31559 * config/nvptx/nvptx.h (struct machine_function): Add
31560 bcast_partition and sync_bar members.
31561
31562 2019-01-07 Tom de Vries <tdevries@suse.de>
31563
31564 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
31565 (nvptx_apply_dim_limits): New function.
31566 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
31567 PTX_WARP_SIZE.
31568
31569 2019-01-07 Tom de Vries <tdevries@suse.de>
31570
31571 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
31572 as late as possible.
31573
31574 2019-01-07 Tom de Vries <tdevries@suse.de>
31575
31576 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
31577 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
31578 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
31579 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
31580 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
31581
31582 2019-01-07 Tom de Vries <tdevries@suse.de>
31583
31584 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
31585
31586 2019-01-07 Tom de Vries <tdevries@suse.de>
31587
31588 * omp-offload.c (oacc_get_min_dim): New function.
31589 * omp-offload.h (oacc_get_min_dim): Declare.
31590
31591 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
31592
31593 PR target/88521
31594 * config/i386/i386.c (function_value_ms_64): Return small sturct in
31595 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
31596
31597 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31598
31599 PR tree-opt/86020
31600 Revert:
31601 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
31602
31603 * ipa-inline.c (edge_badness): Use inlined_time instead of
31604 inline_summaries->get.
31605
31606 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31607
31608 * opts.c (enable_fdo_optimizations): Enable
31609 version-loops-for-strides, loop-interchange, unrol-and-jam
31610 and tree-loop-distribution.
31611 * invoke.texi: Document newly enabled options.
31612
31613 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31614
31615 * doc/invoke.texi (max-inline-insns-small): New parameters.
31616 * ipa-inline.c (want_early_inline_function_p): simplify.
31617 (want_inline_small_function_p): Fix pasto from previous patch;
31618 use max-inline-insns-small bound.
31619 * params.def (max-inline-insns-small): New param.
31620 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
31621 variables correctly.
31622
31623 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31624
31625 * doc/invoke.texi: Document max-inline-insns-size,
31626 uninlined-function-insns, uninlined-function-time,
31627 uninlined-thunk-insns and uninlined-thunk-time.
31628 * params.def: Add max-inline-insns-size,
31629 uninlined-function-insns, uninlined-function-time,
31630 uninlined-thunk-insns and uninlined-thunk-time.
31631 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
31632 new parameters.
31633 * ipa-inline.c (can_inline_edge_by_limits_p,
31634 want_inline_small_function_p): Use new parameters.
31635
31636 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31637
31638 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
31639
31640 2019-01-05 Jakub Jelinek <jakub@redhat.com>
31641
31642 PR middle-end/82564
31643 PR target/88620
31644 * expr.c (expand_assignment): For calls returning VLA structures
31645 if to_rtx is not a MEM, force it into a stack temporary.
31646
31647 PR debug/88635
31648 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
31649 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
31650 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
31651 subexpressions of both operands.
31652 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
31653 subrtxes are CONSTANT_P.
31654 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
31655 2018-11-09 changes.
31656
31657 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
31658
31659 * params.def (hot-bb-count-ws-permille): Set to 990.
31660
31661 2019-01-04 Martin Sebor <msebor@redhat.com>
31662
31663 PR c/88546
31664 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
31665 leaf.
31666
31667 2019-01-04 Martin Sebor <msebor@redhat.com>
31668
31669 PR c/88363
31670 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
31671
31672 2019-01-04 Jakub Jelinek <jakub@redhat.com>
31673
31674 * gdbinit.in: Turn off pagination for the skip commands, restore
31675 it to previous state afterwards.
31676
31677 2019-01-04 Jakub Jelinek <jakub@redhat.com>
31678
31679 PR target/88594
31680 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
31681 of GET_MODE (opN) as modes of the libcall arguments.
31682
31683 2019-01-04 Jan Beulich <jbeulich@suse.com>
31684
31685 * config/i386/sse.md
31686 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
31687 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
31688 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
31689 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
31690 avx512f_vmcmp<mode>3<round_saeonly_name>,
31691 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
31692 avx512f_maskcmp<mode>3,
31693 <avx512>_cvt<ssemodesuffix>2mask<mode>,
31694 <avx512>_cvt<ssemodesuffix>2mask<mode>,
31695 *<avx512>_cvtmask2<ssemodesuffix><mode>,
31696 *<avx512>_cvtmask2<ssemodesuffix><mode>,
31697 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
31698 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
31699 <avx512>_gt<mode>3<mask_scalar_merge_name>,
31700 <avx512>_gt<mode>3<mask_scalar_merge_name>,
31701 <avx512>_testm<mode>3<mask_scalar_merge_name>,
31702 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
31703 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
31704 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
31705 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
31706 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
31707 avx512cd_maskb_vec_dup<mode>,
31708 avx512cd_maskw_vec_dup<mode>,
31709 avx512dq_fpclass<mode><mask_scalar_merge_name>,
31710 avx512dq_vmfpclass<mode>,
31711 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
31712 instead of =Yk.
31713
31714 2019-01-03 Martin Sebor <msebor@redhat.com>
31715
31716 PR tree-optimization/88659
31717 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
31718
31719 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
31720
31721 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
31722 unaligned vsx and avoid lxvd2x/stxvd2x.
31723 (gen_lvx_v4si_move): New function.
31724
31725 2019-01-03 Tom de Vries <tdevries@suse.de>
31726
31727 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
31728 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
31729 function.
31730 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
31731
31732 2019-01-03 Tom de Vries <tdevries@suse.de>
31733
31734 * config/nvptx/nvptx.c (struct offload_attrs): New.
31735 (populate_offload_attrs): New function. Factor mask extraction out of
31736 nvptx_reorg. Add extraction of dimensions.
31737 (nvptx_reorg): Use populate_offload_attrs.
31738
31739 2019-01-03 Tom de Vries <tdevries@suse.de>
31740
31741 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
31742 cases for oacc_min_dims_p and routine_p. Add asserts for
31743 oacc_default_dims_p and offload_region_p.
31744
31745 2019-01-03 Tom de Vries <tdevries@suse.de>
31746
31747 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
31748 factored out of ...
31749 (nvptx_goacc_validate_dims): ... here.
31750
31751 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
31752
31753 PR tree-optimization/85574
31754 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
31755 structure.
31756 (struct ssa_equip_hash_traits): Declare.
31757 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
31758
31759 2019-01-03 Jakub Jelinek <jakub@redhat.com>
31760
31761 PR debug/88644
31762 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
31763 change it to qualified_type.
31764
31765 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
31766
31767 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
31768 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
31769
31770 2019-01-02 Martin Sebor <msebor@redhat.com>
31771 Jeff Law <law@redhat.com>
31772
31773 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
31774 (get_range_strlen_tree): Update appropriately.
31775 (get_range_strlen)
31776 * gimple-fold.h (get_range_strlen): Drop unused last argument.
31777
31778 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
31779 rather than set_range_info.
31780 * tree-ssa-strlen.c (set_strlen_range): Extracted from
31781 maybe_set_strlen_range. Handle potentially boundary crossing
31782 cases more conservatively.
31783 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
31784 Call set_strlen_range.
31785 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
31786
31787 PR middle-end/88663
31788 * gimple-fold.c (get_range_strlen): Update prototype to no longer
31789 need the flexp argument.
31790 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
31791 from calls to get_range_strlen. Update comments. Just update
31792 VAL for an unterminated const char array and let the reset of the
31793 code handle it normally. No longer try to set *flexp. Adjust
31794 return value.
31795 (get_range_strlen): Update for the new get_range_strlen API.
31796 (get_maxval_strlen): Similarly.
31797 (gimple_fold_builtin_strlen): Handle update meaning of return value
31798 from get_range_strlen.
31799 * gimple-ssa-sprintf.c (get_string_length): Update for the new
31800 get_range_strlen API.
31801
31802 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
31803
31804 PR lto/88130
31805 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
31806 false at WPA time when body was removed.
31807
31808 2019-01-02 Martin Liska <mliska@suse.cz>
31809
31810 PR tree-optimization/88650
31811 * predict.c (set_even_probabilities): Calculate probability
31812 remainer only when really used.
31813
31814 2019-01-02 Richard Biener <rguenther@suse.de>
31815
31816 PR middle-end/88651
31817 * tree-data-ref.c (analyze_subscript_affine_affine): Use
31818 widest_ints when mangling max_stmt_execution results.
31819
31820 2019-01-02 Richard Biener <rguenther@suse.de>
31821
31822 PR tree-optimization/88621
31823 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
31824 bitfields when canoncalizing.
31825
31826 2019-01-02 Richard Biener <rguenther@suse.de>
31827
31828 PR target/87545
31829 * config/i386/x86-tune-costs.h (intel_cost): Adjust
31830 cost of cheap SSE instruction.
31831
31832 2019-01-02 Richard Biener <rguenther@suse.de>
31833
31834 PR ipa/85574
31835 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
31836 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
31837 function.
31838 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
31839 set after UIDs before splitting them.
31840
31841 2019-01-01 Martin Sebor <msebor@redhat.com>
31842 Jeff Law <law@redhat.com>
31843
31844 * gimple-fold.c (get_range_strlen_tree): Record if the computed
31845 length is optimistic. If it is, then arrange to compute the
31846 conservative length as well.
31847
31848 * gimple-fold.h (get_range_strlen): Update prototype.
31849 * builtins.c (check_access): Update call to get_range_strlen to use
31850 c_strlen_data pointer. Change various variable accesses to instead
31851 pull data from the c_strlen_data structure.
31852 (check_strncat_sizes, expand_builtin_strncat): Likewise.
31853 * calls.c (maybe_warn_nonstring_arg): Likewise.
31854 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
31855 minimum length if maximum lengh is unknown.
31856 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
31857 that used c_strlen, it's no longer needed. Restructure slightly.
31858 (format_string): Set unlikely range appropriately.
31859 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
31860 formatting issues.
31861 (get_range_strlen): Accept c_strlen_data pointer for external
31862 call sites as well. Pass through to call to internal get_range_strlen.
31863 Adjust minlen, maxlen and maxbound as needed.
31864 (get_maxval_strlen): Update comments.
31865 (gimple_fold_builtin_strlen): Update call to get_range_strlen
31866 to use c_strlen_data pointer. Change variable accesses to instead
31867 use c_strlen_data data members.
31868
31869 * gimple-fold.c (get_range_strlen): Update prototype.
31870 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
31871 local variables. Use pdata to return information to caller.
31872 Update calls to get_range_strlen. Update pdata->maxbound.
31873 (get_range_strlen -- static version): Similarly.
31874 (get_range_strlen -- extern version): Update for internal
31875 get_range_strlen API change. Convert to external data format.
31876 (get_maxval_strlen): Similarly.
31877
31878 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
31879
31880 * coverage.c (get_coverage_counts): Use current_function_decl.
31881 * profile.c (read_thunk_profile): New function.
31882 (branch_prob): Add THUNK parameter.
31883 * tree-profile.c (tree_profiling): Handle thunks.
31884 * value-prof.c (init_node_map): Handle thunks.
31885 * value-prof.h (branch_prob): Upate prototype.
31886 (read_thunk_profile): Declare.
31887
31888 2019-01-01 Jakub Jelinek <jakub@redhat.com>
31889
31890 Update copyright years.
31891
31892 * gcc.c (process_command): Update copyright notice dates.
31893 * gcov-dump.c (print_version): Ditto.
31894 * gcov.c (print_version): Ditto.
31895 * gcov-tool.c (print_version): Ditto.
31896 * gengtype.c (create_file): Ditto.
31897 * doc/cpp.texi: Bump @copying's copyright year.
31898 * doc/cppinternals.texi: Ditto.
31899 * doc/gcc.texi: Ditto.
31900 * doc/gccint.texi: Ditto.
31901 * doc/gcov.texi: Ditto.
31902 * doc/install.texi: Ditto.
31903 * doc/invoke.texi: Ditto.
31904 \f
31905 Copyright (C) 2019 Free Software Foundation, Inc.
31906
31907 Copying and distribution of this file, with or without modification,
31908 are permitted in any medium without royalty provided the copyright
31909 notice and this notice are preserved.