Make normalize_addresses and normalize_symbolics work on THIS, instead
[gcc.git] / gcc / ChangeLog
1 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2
3 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
4 normalize_symbolics and normalize_addresses working in place.
5 (range_fold_unary_symbolics_p): Same.
6 (range_fold_unary_symbolics_p): Same.
7 * value-range.cc (num_pairs): Same.
8 (lower_bound): Same.
9 (upper_bound): Same.
10 (contains_p): Same.
11 (normalize_addresses): Same.
12 (normalize_symbolics): Same.
13 * value-range.h (normalize_symbolics): Same.
14 (normalize_addresses): Same.
15
16 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
17
18 PR ipa/91682
19 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
20 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
21 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
22 (ipa_agg_jump_function): Remove member function equal_to.
23 (ipa_agg_jump_function_p): Remove typedef.
24 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
25 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
26 information for aggregate jump function.
27 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
28 record last definition statement.
29 (load_from_unmodified_param_or_agg): New function.
30 (ipa_known_agg_contents_list): Add new field type and value, remove
31 field constant.
32 (build_agg_jump_func_from_list): Rename parameter const_count to
33 value_count, build aggregate jump function from ipa_load_agg_data.
34 (analyze_agg_content_value): New function.
35 (extract_mem_content): Analyze memory store assignment to prepare
36 information for aggregate jump function generation.
37 (determine_known_aggregate_parts): Add new parameter fbi, remove
38 parameter aa_walk_budeget_p.
39 (update_jump_functions_after_inlining): Update aggregate jump function.
40 (ipa_find_agg_cst_for_param): Change type of parameter agg.
41 (try_make_edge_direct_simple_call): Add new parameter new_root.
42 (try_make_edge_direct_virtual_call): Add new parameter new_root and
43 new_root_info.
44 (update_indirect_edges_after_inlining): Pass new argument to
45 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
46 (ipa_write_jump_function): Write aggregate jump function to file.
47 (ipa_read_jump_function): Read aggregate jump function from file.
48 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
49 * ipa-cp.c (ipa_get_jf_arith_result): New function.
50 (ipa_agg_value_from_node): Likewise.
51 (ipa_agg_value_set_from_jfunc): Likewise.
52 (propagate_vals_across_arith_jfunc): Likewise.
53 (propagate_aggregate_lattice): Likewise.
54 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
55 (propagate_vals_across_pass_through): Call
56 propagate_vals_across_arith_jfunc.
57 (get_clone_agg_value): Move forward.
58 (propagate_aggs_across_jump_function): Handle value propagation for
59 aggregate jump function.
60 (agg_jmp_p_vec_for_t_vec): Remove.
61 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
62 with vec<ipa_agg_value>.
63 (copy_plats_to_inter, intersect_with_plats): Likewise.
64 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
65 (intersect_aggregate_with_edge): Likewise.
66 (find_aggregate_values_for_callers_subset): Likewise.
67 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
68 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
69 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
70 (gather_context_independent_values): Likewise.
71 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
72 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
73 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
74 (evaluate_properties_for_edge): Likewise.
75 (estimate_edge_devirt_benefit): Likewise.
76 (estimate_edge_size_and_time): Likewise.
77 (estimate_calls_size_and_time): Likewise.
78 (ipa_call_context::ipa_call_context): Likewise.
79 (estimate_ipcp_clone_size_and_time): Likewise.
80 * ipa-fnsummary.h (ipa_call_context): Replace
81 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
82 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
83 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
84 (do_estimate_edge_size): Likewise.
85 (do_estimate_edge_hints): Likewise.
86
87 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
88
89 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
90 binary operations.
91
92 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
93
94 * ipa-profile.c (check_argument_count): Check properly that e_info
95 is non-NULL; do not check descriptors.
96
97 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
98
99 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
100 check for ipa profiles.
101
102 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
103
104 PR c++/92421
105 * ipa-prop.c (update_indirect_edges_after_inlining):
106 Mark parameter as used.
107 * ipa-inline.c (recursive_inlining): Reset node cache
108 after inlining.
109 (inline_small_functions): Remove checking ifdef.
110 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
111 cache consistency.
112
113 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
114
115 PR ipa/92498
116 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
117 is NULL.
118 (ipa_profile): Fix reversed test.
119
120 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
121
122 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
123 (propagate_constants_topo): Fix typo.
124
125 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
126
127 * Makefile.in (OBJS): Add value-range.o.
128 (GTFILES): Add value-range.h.
129 * gengtype.c (open_base_files): Add value-range.h to list of
130 header files.
131 * tree-vrp.c: Move the following value_range related functions:
132 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
133 constant_p, set_undefined, set_varying, may_contain_p,
134 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
135 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
136 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
137 value_inside_range, ranges_from_anti_range, union_ranges,
138 intersect_ranges, intersect_helper, union_helper, union_,
139 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
140 upper_bound, contains_p, invert, intersect...
141 * value-range.cc: ...to here.
142 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
143 associated inline methods from here...
144 * value-range.h: ...to here.
145
146 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
147
148 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
149 instead of asserting its value.
150
151 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
152
153 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
154 constructors and set methods so value_range_kind is the last
155 argument and defaults to VR_RANGE.
156 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
157 * ipa-cp.c (propagate_vr_across_jump_function): Same.
158 * ipa-prop.c (ipa_get_value_range): Same.
159 (ipa_compute_jump_functions_for_edge): Same.
160 * range-op.cc (value_range_from_overflowed_bounds): Same.
161 (operator_cast::op1_range): Same.
162 (range_tests): Same.
163 * range.cc (range_nonzero): Same.
164 * tree-ssanames.c (get_range_info): Same.
165 * tree-vrp.c (value_range_equiv::set): Same.
166 (value_range::value_range): Same.
167 (value_range_equiv::value_range_equiv): Same.
168 (value_range_equiv::update): Same.
169 (value_range_equiv::deep_copy): Same.
170 (value_range_equiv::move): Same.
171 (value_range_equiv::set_undefined): Same.
172 (value_range::set): Same.
173 (value_range::set_nonzero): Same.
174 (ranges_from_anti_range): Same.
175 (extract_range_from_plus_minus_expr): Same.
176 (value_range::intersect_helper): Same.
177 (value_range_equiv::intersect): Same.
178 (value_range::union_helper): Same.
179 (value_range_equiv::union_): Same.
180 (value_range::normalize_symbolics): Same.
181 (value_range::invert): Same.
182 (determine_value_range_1): Same.
183 * tree-vrp.h (class value_range): Same.
184 (class value_range_equiv): Same.
185 * vr-values.c (set_value_range_to_nonnegative): Same.
186 (set_value_range_to_truthvalue): Same.
187 (vr_values::update_value_range): Same.
188 (vr_values::extract_range_for_var_from_comparison_expr): Same.
189 (vr_values::extract_range_from_binary_expr): Same.
190 (vr_values::extract_range_from_comparison): Same.
191 (vr_values::extract_range_basic): Same.
192 (vr_values::adjust_range_with_scev): Same.
193 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
194 (vr_values::extract_range_from_phi_node): Same.
195
196 2019-11-13 Ulrich Drepper <drepper@redhat.com>
197
198 * tree-dump.c (dequeue_and_dump): Print first tree operand
199 for VIEW_CONVERT_EXPR.
200
201 2019-11-13 Joseph Myers <joseph@codesourcery.com>
202
203 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
204 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
205 * real.c (get_max_float): Add norm_max argument.
206 * real.h (get_max_float): Update prototype.
207 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
208 get_max_float.
209
210 2019-11-13 Martin Liska <mliska@suse.cz>
211
212 * dbgcnt.c (test_sorted_dbg_counters): New.
213 (dbgcnt_c_tests): Likewise.
214 * selftest-run-tests.c (selftest::run_tests): Likewise.
215 * selftest.h (dbgcnt_c_tests): Likewise.
216
217 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
218 Martin Jambor <mjambor@suse.cz>
219
220 PR ipa/92454
221 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
222 (identify_dead_nodes): Likewise.
223
224 2019-11-13 Martin Liska <mliska@suse.cz>
225
226 * ipa-icf.c (sem_function::equals_private): Do not overuse
227 push/pop_cfun functions.
228
229 2019-11-13 Martin Liska <mliska@suse.cz>
230
231 * common.opt: Document change of -fdbg-cnt option.
232 * dbgcnt.c (DEBUG_COUNTER): Remove.
233 (dbg_cnt_is_enabled): Remove.
234 (dbg_cnt): Work with new intervals.
235 (dbg_cnt_set_limit_by_index): Set to new
236 list of intervals.
237 (dbg_cnt_set_limit_by_name): Likewise.
238 (dbg_cnt_process_single_pair): Process new format.
239 (dbg_cnt_process_opt): Likewise.
240 (dbg_cnt_list_all_counters): Likewise.
241 * doc/invoke.texi: Document change of -fdbg-cnt option.
242 (cmp_tuples): New.
243
244 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
245
246 * ipa-inline.c (ipa_inline): Check that function is defined before
247 flattening.
248
249 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
250 Julian Brown <julian@codesourcery.com>
251
252 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
253 flag_worker_partitioning is not set.
254 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
255 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
256
257 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
258
259 * config/gcn/gcn-run.c (heap_region): New global variable.
260 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
261 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
262 (get_kernarg_region): Move contents to ....
263 (get_memory_region): .... here.
264 (get_heap_region): New function.
265 (init_device): Initialize the heap_region.
266 (device_malloc): Add region parameter.
267 (struct kernargs): Move heap ....
268 (heap): ... to global scope.
269 (main): Allocate heap separate to kernargs.
270
271 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
272
273 * ipa-prop.c (ipa_print_node_jump_functions,
274 ipa_print_node_params): Print info about missing summaries.
275
276 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
277
278 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
279 the cost of generating loop masks.
280
281 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
282
283 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
284 New function.
285 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
286 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
287 (vect_transform_loop): Likewise.
288 (vect_analyze_loop_costing): Don't take the cost of versioning
289 into account for the static profitability threshold if it turns
290 out that no versioning is needed.
291
292 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
293
294 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
295 and target_option_default_node to get -fprofile-generate ctors working
296 right with LTO.
297
298 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
299
300 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
301 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
302 (vectorizable_assignment): Don't add a cost for nop conversions.
303 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
304 Likewise.
305 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
306
307 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
308
309 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
310 number of ncopies as an additional argument.
311 (vectorizable_conversion): Update call accordingly. Use "modifier"
312 to check whether a conversion is between vectors with the same
313 numbers of units.
314
315 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
316
317 * config/aarch64/aarch64-sve-builtins-functions.h
318 (unary_count::expand): Use aarch64_sve_int_mode instead of
319 mode_for_int_vector.
320
321 2019-11-13 Martin Liska <mliska@suse.cz>
322
323 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
324
325 2019-11-13 Martin Liska <mliska@suse.cz>
326
327 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
328 Remove call to finalize_options_struct.
329
330 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
331
332 PR target/92055
333 * config/avr/t-avr (avr-mcus): Do not depend on
334 $(srcdir)/config/avr/t-multilib.
335
336 2019-11-13 Richard Biener <rguenther@suse.de>
337
338 PR tree-optimization/92473
339 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
340 direct optab reduction in the correct type.
341
342 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
343
344 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
345 hexadecimal literal.
346
347 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
348
349 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
350 UNORDERED if !HONOR_NANS (DFmode).
351 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
352 if !HONOR_NANS (<MODE>mode).
353
354 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
355
356 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
357 (ipcp_verify_propagated_values): Likewise.
358 (propagate_constants_across_call): Likewise.
359 (propagate_constants_topo): Likewise.
360 (ipcp_propagate_stage): Likewise.
361
362 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
363
364 PR ipa/92471
365 * ipa-profile.c (check_argument_count): Break out from ...;
366 watch for missing summaries.
367 (ipa_profile): Here.
368
369 2019-11-12 Martin Sebor <msebor@redhat.com>
370
371 PR tree-optimization/92412
372 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
373 extern variables.
374
375 2019-11-12 Martin Sebor <msebor@redhat.com>
376
377 PR middle-end/83688
378 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
379 (directive::argno): New member.
380 (format_result::aliases, format_result::alias_count): New data members.
381 (format_result::append_alias): New member function.
382 (fmtresult::dst_offset): New data member.
383 (pass_sprintf_length::call_info::dst_origin): New data member.
384 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
385 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
386 (get_origin_and_offset): Same.
387 (format_string): Call it.
388 (format_directive): Call append_alias and set directive argument
389 number.
390 (maybe_warn_overlap): New function.
391 (pass_sprintf_length::compute_format_length): Call it.
392 (pass_sprintf_length::handle_gimple_call): Initialize new members.
393 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
394
395 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
396
397 PR rtl-optimization/92430
398 * cfgcleanup.c (pass_jump_after_combine::execute): Free
399 dominance info at the beginning.
400
401 2019-11-12 Richard Biener <rguenther@suse.de>
402
403 PR tree-optimization/92460
404 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
405 expression before gimplifying.
406
407 2019-11-12 Richard Biener <rguenther@suse.de>
408
409 PR tree-optimization/92461
410 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
411 stmt after propagation.
412
413 2019-11-12 Martin Liska <mliska@suse.cz>
414
415 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
416 Use SET_OPTION_IF_UNSET.
417 (ix86_option_override_internal): Likewise.
418 * opts.c (default_options_optimization): Likewise.
419 (finish_options): Likewise.
420 (enable_fdo_optimizations): Likewise.
421 (common_handle_option): Likewise.
422
423 2019-11-12 Martin Liska <mliska@suse.cz>
424
425 * common/common-target.def: Remove option_validate_param and
426 option_default_params.
427 * common/common-targhooks.c (default_option_validate_param):
428 Remove.
429 * common/common-targhooks.h (default_option_validate_param):
430 Remove.
431 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
432 Remove usage of this.
433 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
434 (aarch64_option_validate_param): Likewise.
435 (aarch64_option_default_params): Likewise
436 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
437 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
438 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
439 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
440 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
441 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
442 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
443 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
444 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
445 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
446 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
447 guard_size here.
448 * doc/tm.texi: Remove option_default_params and option_validate_param.
449 * doc/tm.texi.in: Likewise.
450
451 2019-11-12 Martin Liska <mliska@suse.cz>
452
453 * common/common-target.def:
454 Do not mention set_default_param_value
455 and set_param_value.
456 * doc/tm.texi: Likewise.
457
458 2019-11-12 Martin Liska <mliska@suse.cz>
459
460 * common.opt: Remove param_values.
461 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
462 Remove finalize_options_struct.
463 * gcc.c (driver::decode_argv): Do not call global_init_params
464 and finish_params.
465 (driver::finalize): Do not call params_c_finalize
466 and finalize_options_struct.
467 * opt-suggestions.c (option_proposer::get_completions): Remove
468 special casing of params.
469 (option_proposer::find_param_completions): Remove.
470 (test_completion_partial_match): Update expected output.
471 * opt-suggestions.h: Remove find_param_completions.
472 * opts-common.c (add_misspelling_candidates): Add
473 --param with a space.
474 * opts.c (handle_param): Remove.
475 (init_options_struct):. Remove init_options_struct and
476 similar calls.
477 (finalize_options_struct): Remove.
478 (common_handle_option): Use SET_OPTION_IF_UNSET.
479 * opts.h (finalize_options_struct): Remove.
480 * toplev.c (general_init): Do not call global_init_params.
481 (toplev::finalize): Do not call params_c_finalize and
482 finalize_options_struct.
483
484 2019-11-12 Martin Liska <mliska@suse.cz>
485
486 * Makefile.in: Remove PARAMS_H and params.list
487 and params.options.
488 * params-enum.h: Remove.
489 * params-list.h: Remove.
490 * params-options.h: Remove.
491 * params.c: Remove.
492 * params.def: Remove.
493 * params.h: Remove.
494 * asan.c: Do not include params.h.
495 * auto-profile.c: Likewise.
496 * bb-reorder.c: Likewise.
497 * builtins.c: Likewise.
498 * cfgcleanup.c: Likewise.
499 * cfgexpand.c: Likewise.
500 * cfgloopanal.c: Likewise.
501 * cgraph.c: Likewise.
502 * combine.c: Likewise.
503 * common/config/aarch64/aarch64-common.c: Likewise.
504 * common/config/gcn/gcn-common.c: Likewise.
505 * common/config/ia64/ia64-common.c: Likewise.
506 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
507 * common/config/rs6000/rs6000-common.c: Likewise.
508 * common/config/sh/sh-common.c: Likewise.
509 * config/aarch64/aarch64.c: Likewise.
510 * config/alpha/alpha.c: Likewise.
511 * config/arm/arm.c: Likewise.
512 * config/avr/avr.c: Likewise.
513 * config/csky/csky.c: Likewise.
514 * config/i386/i386-builtins.c: Likewise.
515 * config/i386/i386-expand.c: Likewise.
516 * config/i386/i386-features.c: Likewise.
517 * config/i386/i386-options.c: Likewise.
518 * config/i386/i386.c: Likewise.
519 * config/ia64/ia64.c: Likewise.
520 * config/rs6000/rs6000-logue.c: Likewise.
521 * config/rs6000/rs6000.c: Likewise.
522 * config/s390/s390.c: Likewise.
523 * config/sparc/sparc.c: Likewise.
524 * config/visium/visium.c: Likewise.
525 * coverage.c: Likewise.
526 * cprop.c: Likewise.
527 * cse.c: Likewise.
528 * cselib.c: Likewise.
529 * dse.c: Likewise.
530 * emit-rtl.c: Likewise.
531 * explow.c: Likewise.
532 * final.c: Likewise.
533 * fold-const.c: Likewise.
534 * gcc.c: Likewise.
535 * gcse.c: Likewise.
536 * ggc-common.c: Likewise.
537 * ggc-page.c: Likewise.
538 * gimple-loop-interchange.cc: Likewise.
539 * gimple-loop-jam.c: Likewise.
540 * gimple-loop-versioning.cc: Likewise.
541 * gimple-ssa-split-paths.c: Likewise.
542 * gimple-ssa-sprintf.c: Likewise.
543 * gimple-ssa-store-merging.c: Likewise.
544 * gimple-ssa-strength-reduction.c: Likewise.
545 * gimple-ssa-warn-alloca.c: Likewise.
546 * gimple-ssa-warn-restrict.c: Likewise.
547 * graphite-isl-ast-to-gimple.c: Likewise.
548 * graphite-optimize-isl.c: Likewise.
549 * graphite-scop-detection.c: Likewise.
550 * graphite-sese-to-poly.c: Likewise.
551 * graphite.c: Likewise.
552 * haifa-sched.c: Likewise.
553 * hsa-gen.c: Likewise.
554 * ifcvt.c: Likewise.
555 * ipa-cp.c: Likewise.
556 * ipa-fnsummary.c: Likewise.
557 * ipa-inline-analysis.c: Likewise.
558 * ipa-inline.c: Likewise.
559 * ipa-polymorphic-call.c: Likewise.
560 * ipa-profile.c: Likewise.
561 * ipa-prop.c: Likewise.
562 * ipa-split.c: Likewise.
563 * ipa-sra.c: Likewise.
564 * ira-build.c: Likewise.
565 * ira-conflicts.c: Likewise.
566 * loop-doloop.c: Likewise.
567 * loop-invariant.c: Likewise.
568 * loop-unroll.c: Likewise.
569 * lra-assigns.c: Likewise.
570 * lra-constraints.c: Likewise.
571 * modulo-sched.c: Likewise.
572 * opt-suggestions.c: Likewise.
573 * opts.c: Likewise.
574 * postreload-gcse.c: Likewise.
575 * predict.c: Likewise.
576 * reload.c: Likewise.
577 * reorg.c: Likewise.
578 * resource.c: Likewise.
579 * sanopt.c: Likewise.
580 * sched-deps.c: Likewise.
581 * sched-ebb.c: Likewise.
582 * sched-rgn.c: Likewise.
583 * sel-sched-ir.c: Likewise.
584 * sel-sched.c: Likewise.
585 * shrink-wrap.c: Likewise.
586 * stmt.c: Likewise.
587 * targhooks.c: Likewise.
588 * toplev.c: Likewise.
589 * tracer.c: Likewise.
590 * trans-mem.c: Likewise.
591 * tree-chrec.c: Likewise.
592 * tree-data-ref.c: Likewise.
593 * tree-if-conv.c: Likewise.
594 * tree-inline.c: Likewise.
595 * tree-loop-distribution.c: Likewise.
596 * tree-parloops.c: Likewise.
597 * tree-predcom.c: Likewise.
598 * tree-profile.c: Likewise.
599 * tree-scalar-evolution.c: Likewise.
600 * tree-sra.c: Likewise.
601 * tree-ssa-ccp.c: Likewise.
602 * tree-ssa-dom.c: Likewise.
603 * tree-ssa-dse.c: Likewise.
604 * tree-ssa-ifcombine.c: Likewise.
605 * tree-ssa-loop-ch.c: Likewise.
606 * tree-ssa-loop-im.c: Likewise.
607 * tree-ssa-loop-ivcanon.c: Likewise.
608 * tree-ssa-loop-ivopts.c: Likewise.
609 * tree-ssa-loop-manip.c: Likewise.
610 * tree-ssa-loop-niter.c: Likewise.
611 * tree-ssa-loop-prefetch.c: Likewise.
612 * tree-ssa-loop-unswitch.c: Likewise.
613 * tree-ssa-math-opts.c: Likewise.
614 * tree-ssa-phiopt.c: Likewise.
615 * tree-ssa-pre.c: Likewise.
616 * tree-ssa-reassoc.c: Likewise.
617 * tree-ssa-sccvn.c: Likewise.
618 * tree-ssa-scopedtables.c: Likewise.
619 * tree-ssa-sink.c: Likewise.
620 * tree-ssa-strlen.c: Likewise.
621 * tree-ssa-structalias.c: Likewise.
622 * tree-ssa-tail-merge.c: Likewise.
623 * tree-ssa-threadbackward.c: Likewise.
624 * tree-ssa-threadedge.c: Likewise.
625 * tree-ssa-uninit.c: Likewise.
626 * tree-switch-conversion.c: Likewise.
627 * tree-vect-data-refs.c: Likewise.
628 * tree-vect-loop.c: Likewise.
629 * tree-vect-slp.c: Likewise.
630 * tree-vrp.c: Likewise.
631 * tree.c: Likewise.
632 * value-prof.c: Likewise.
633 * var-tracking.c: Likewise.
634
635 2019-11-12 Martin Liska <mliska@suse.cz>
636
637 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
638 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
639 macro.
640 (asan_sanitize_allocas_p): Likewise.
641 (asan_emit_stack_protection): Likewise.
642 (asan_protect_global): Likewise.
643 (instrument_derefs): Likewise.
644 (instrument_builtin_call): Likewise.
645 (asan_expand_mark_ifn): Likewise.
646 * auto-profile.c (auto_profile): Likewise.
647 * bb-reorder.c (copy_bb_p): Likewise.
648 (duplicate_computed_gotos): Likewise.
649 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
650 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
651 (try_crossjump_bb): Likewise.
652 * cfgexpand.c (defer_stack_allocation): Likewise.
653 (stack_protect_classify_type): Likewise.
654 (pass_expand::execute): Likewise.
655 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
656 (estimate_reg_pressure_cost): Likewise.
657 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
658 * combine.c (combine_instructions): Likewise.
659 (record_value_for_reg): Likewise.
660 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
661 (aarch64_option_default_params): Likewise.
662 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
663 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
664 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
665 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
666 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
667 (aarch64_allocate_and_probe_stack_space): Likewise.
668 (aarch64_expand_epilogue): Likewise.
669 (aarch64_override_options_internal): Likewise.
670 * config/alpha/alpha.c (alpha_option_override): Likewise.
671 * config/arm/arm.c (arm_option_override): Likewise.
672 (arm_valid_target_attribute_p): Likewise.
673 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
674 * config/i386/i386.c (get_probe_interval): Likewise.
675 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
676 (ix86_max_noce_ifcvt_seq_cost): Likewise.
677 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
678 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
679 (get_stack_clash_protection_guard_size): Likewise.
680 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
681 * config/s390/s390.c (allocate_stack_space): Likewise.
682 (s390_emit_prologue): Likewise.
683 (s390_option_override_internal): Likewise.
684 * config/sparc/sparc.c (sparc_option_override): Likewise.
685 * config/visium/visium.c (visium_option_override): Likewise.
686 * coverage.c (get_coverage_counts): Likewise.
687 (coverage_compute_profile_id): Likewise.
688 (coverage_begin_function): Likewise.
689 (coverage_end_function): Likewise.
690 * cse.c (cse_find_path): Likewise.
691 (cse_extended_basic_block): Likewise.
692 (cse_main): Likewise.
693 * cselib.c (cselib_invalidate_mem): Likewise.
694 * dse.c (dse_step1): Likewise.
695 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
696 (get_max_insn_count): Likewise.
697 (make_debug_insn_raw): Likewise.
698 (init_emit): Likewise.
699 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
700 * final.c (compute_alignments): Likewise.
701 * fold-const.c (fold_range_test): Likewise.
702 (fold_truth_andor): Likewise.
703 (tree_single_nonnegative_warnv_p): Likewise.
704 (integer_valued_real_single_p): Likewise.
705 * gcse.c (want_to_gcse_p): Likewise.
706 (prune_insertions_deletions): Likewise.
707 (hoist_code): Likewise.
708 (gcse_or_cprop_is_too_expensive): Likewise.
709 * ggc-common.c: Likewise.
710 * ggc-page.c (ggc_collect): Likewise.
711 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
712 (MAX_DATAREFS): Likewise.
713 (OUTER_STRIDE_RATIO): Likewise.
714 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
715 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
716 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
717 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
718 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
719 (imm_store_chain_info::output_merged_store): Likewise.
720 (pass_store_merging::process_store): Likewise.
721 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
722 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
723 (scop_to_isl_ast): Likewise.
724 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
725 (optimize_isl): Likewise.
726 * graphite-scop-detection.c (build_scops): Likewise.
727 * haifa-sched.c (set_modulo_params): Likewise.
728 (rank_for_schedule): Likewise.
729 (model_add_to_worklist): Likewise.
730 (model_promote_insn): Likewise.
731 (model_choose_insn): Likewise.
732 (queue_to_ready): Likewise.
733 (autopref_multipass_dfa_lookahead_guard): Likewise.
734 (schedule_block): Likewise.
735 (sched_init): Likewise.
736 * hsa-gen.c (init_prologue): Likewise.
737 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
738 (cond_move_process_if_block): Likewise.
739 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
740 (merge_agg_lats_step): Likewise.
741 (devirtualization_time_bonus): Likewise.
742 (hint_time_bonus): Likewise.
743 (incorporate_penalties): Likewise.
744 (good_cloning_opportunity_p): Likewise.
745 (ipcp_propagate_stage): Likewise.
746 * ipa-fnsummary.c (decompose_param_expr): Likewise.
747 (set_switch_stmt_execution_predicate): Likewise.
748 (analyze_function_body): Likewise.
749 (compute_fn_summary): Likewise.
750 * ipa-inline-analysis.c (estimate_growth): Likewise.
751 * ipa-inline.c (caller_growth_limits): Likewise.
752 (inline_insns_single): Likewise.
753 (inline_insns_auto): Likewise.
754 (can_inline_edge_by_limits_p): Likewise.
755 (want_early_inline_function_p): Likewise.
756 (big_speedup_p): Likewise.
757 (want_inline_small_function_p): Likewise.
758 (want_inline_self_recursive_call_p): Likewise.
759 (edge_badness): Likewise.
760 (recursive_inlining): Likewise.
761 (compute_max_insns): Likewise.
762 (early_inliner): Likewise.
763 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
764 * ipa-profile.c (ipa_profile): Likewise.
765 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
766 (ipa_analyze_node): Likewise.
767 (ipcp_transform_function): Likewise.
768 * ipa-split.c (consider_split): Likewise.
769 * ipa-sra.c (allocate_access): Likewise.
770 (process_scan_results): Likewise.
771 (ipa_sra_summarize_function): Likewise.
772 (pull_accesses_from_callee): Likewise.
773 * ira-build.c (loop_compare_func): Likewise.
774 (mark_loops_for_removal): Likewise.
775 * ira-conflicts.c (build_conflict_bit_table): Likewise.
776 * loop-doloop.c (doloop_optimize): Likewise.
777 * loop-invariant.c (gain_for_invariant): Likewise.
778 (move_loop_invariants): Likewise.
779 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
780 (decide_unroll_runtime_iterations): Likewise.
781 (decide_unroll_stupid): Likewise.
782 (expand_var_during_unrolling): Likewise.
783 * lra-assigns.c (spill_for): Likewise.
784 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
785 * modulo-sched.c (sms_schedule): Likewise.
786 (DFA_HISTORY): Likewise.
787 * opts.c (default_options_optimization): Likewise.
788 (finish_options): Likewise.
789 (common_handle_option): Likewise.
790 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
791 (if): Likewise.
792 * predict.c (get_hot_bb_threshold): Likewise.
793 (maybe_hot_count_p): Likewise.
794 (probably_never_executed): Likewise.
795 (predictable_edge_p): Likewise.
796 (predict_loops): Likewise.
797 (expr_expected_value_1): Likewise.
798 (tree_predict_by_opcode): Likewise.
799 (handle_missing_profiles): Likewise.
800 * reload.c (find_equiv_reg): Likewise.
801 * reorg.c (redundant_insn): Likewise.
802 * resource.c (mark_target_live_regs): Likewise.
803 (incr_ticks_for_insn): Likewise.
804 * sanopt.c (pass_sanopt::execute): Likewise.
805 * sched-deps.c (sched_analyze_1): Likewise.
806 (sched_analyze_2): Likewise.
807 (sched_analyze_insn): Likewise.
808 (deps_analyze_insn): Likewise.
809 * sched-ebb.c (schedule_ebbs): Likewise.
810 * sched-rgn.c (find_single_block_region): Likewise.
811 (too_large): Likewise.
812 (haifa_find_rgns): Likewise.
813 (extend_rgns): Likewise.
814 (new_ready): Likewise.
815 (schedule_region): Likewise.
816 (sched_rgn_init): Likewise.
817 * sel-sched-ir.c (make_region_from_loop): Likewise.
818 * sel-sched-ir.h (MAX_WS): Likewise.
819 * sel-sched.c (process_pipelined_exprs): Likewise.
820 (sel_setup_region_sched_flags): Likewise.
821 * shrink-wrap.c (try_shrink_wrapping): Likewise.
822 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
823 * toplev.c (print_version): Likewise.
824 (process_options): Likewise.
825 * tracer.c (tail_duplicate): Likewise.
826 * trans-mem.c (tm_log_add): Likewise.
827 * tree-chrec.c (chrec_fold_plus_1): Likewise.
828 * tree-data-ref.c (split_constant_offset): Likewise.
829 (compute_all_dependences): Likewise.
830 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
831 * tree-inline.c (remap_gimple_stmt): Likewise.
832 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
833 * tree-parloops.c (MIN_PER_THREAD): Likewise.
834 (create_parallel_loop): Likewise.
835 * tree-predcom.c (determine_unroll_factor): Likewise.
836 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
837 * tree-sra.c (analyze_all_variable_accesses): Likewise.
838 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
839 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
840 (dse_optimize_redundant_stores): Likewise.
841 (dse_classify_store): Likewise.
842 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
843 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
844 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
845 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
846 (try_peel_loop): Likewise.
847 (tree_unroll_loops_completely): Likewise.
848 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
849 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
850 (MAX_CONSIDERED_GROUPS): Likewise.
851 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
852 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
853 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
854 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
855 (L1_CACHE_SIZE_BYTES): Likewise.
856 (L2_CACHE_SIZE_BYTES): Likewise.
857 (should_issue_prefetch_p): Likewise.
858 (schedule_prefetches): Likewise.
859 (determine_unroll_factor): Likewise.
860 (volume_of_references): Likewise.
861 (add_subscript_strides): Likewise.
862 (self_reuse_distance): Likewise.
863 (mem_ref_count_reasonable_p): Likewise.
864 (insn_to_prefetch_ratio_too_small_p): Likewise.
865 (loop_prefetch_arrays): Likewise.
866 (tree_ssa_prefetch_arrays): Likewise.
867 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
868 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
869 (convert_mult_to_fma): Likewise.
870 (math_opts_dom_walker::after_dom_children): Likewise.
871 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
872 (hoist_adjacent_loads): Likewise.
873 (gate_hoist_loads): Likewise.
874 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
875 (compute_partial_antic_aux): Likewise.
876 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
877 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
878 (vn_reference_lookup): Likewise.
879 (do_rpo_vn): Likewise.
880 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
881 * tree-ssa-sink.c (select_best_block): Likewise.
882 * tree-ssa-strlen.c (new_stridx): Likewise.
883 (new_addr_stridx): Likewise.
884 (get_range_strlen_dynamic): Likewise.
885 (class ssa_name_limit_t): Likewise.
886 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
887 (create_variable_info_for_1): Likewise.
888 (init_alias_vars): Likewise.
889 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
890 (tail_merge_optimize): Likewise.
891 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
892 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
893 (thread_jumps::find_jump_threads_backwards): Likewise.
894 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
895 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
896 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
897 (jump_table_cluster::can_be_handled): Likewise.
898 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
899 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
900 (param_switch_conversion_branch_ratio): Likewise.
901 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
902 (vect_enhance_data_refs_alignment): Likewise.
903 (vect_prune_runtime_alias_test_list): Likewise.
904 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
905 (vect_get_datarefs_in_loop): Likewise.
906 (vect_analyze_loop): Likewise.
907 * tree-vect-slp.c (vect_slp_bb): Likewise.
908 * tree-vectorizer.h: Likewise.
909 * tree-vrp.c (find_switch_asserts): Likewise.
910 (vrp_prop::check_mem_ref): Likewise.
911 * tree.c (wide_int_to_tree_1): Likewise.
912 (cache_integer_cst): Likewise.
913 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
914 (reverse_op): Likewise.
915 (vt_find_locations): Likewise.
916
917 2019-11-12 Martin Liska <mliska@suse.cz>
918
919 * Makefile.in: Include params.opt.
920 * flag-types.h (enum parloops_schedule_type): Add
921 parloops_schedule_type used in params.opt.
922 * params.opt: New file.
923
924 2019-11-12 Martin Liska <mliska@suse.cz>
925
926 * common.opt: Remove --param and --param= options.
927 * opt-functions.awk: Mark CL_PARAMS for options
928 that have Param keyword.
929 * opts-common.c (decode_cmdline_options_to_array):
930 Replace --param key=value with --param=key=value.
931 * opts.c (print_filtered_help): Remove special
932 printing of params.
933 (print_specific_help): Update title for params.
934 (common_handle_option): Do not handle OPT__param.
935 opts.h (SET_OPTION_IF_UNSET): New macro.
936 * doc/options.texi: Document Param keyword.
937
938 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
939 Frederik Harwath <frederik@codesourcery.com>
940 Thomas Schwinge <thomas@codesourcery.com>
941
942 gcc/
943 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
944 enumeration constant.
945 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
946 (is_gimple_omp_offloaded): Likewise.
947 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
948 constant. Adjust the value of ORT_NONE accordingly.
949 (is_gimple_stmt): Handle OACC_SERIAL.
950 (oacc_default_clause): Handle ORT_ACC_SERIAL.
951 (gomp_needs_data_present): Likewise.
952 (gimplify_adjust_omp_clauses): Likewise.
953 (gimplify_omp_workshare): Handle OACC_SERIAL.
954 (gimplify_expr): Likewise.
955 * omp-expand.c (expand_omp_target):
956 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
957 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
958 * omp-low.c (is_oacc_parallel): Rename function to...
959 (is_oacc_parallel_or_serial): ... this.
960 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
961 (scan_sharing_clauses): Adjust accordingly.
962 (scan_omp_for): Likewise.
963 (lower_oacc_head_mark): Likewise.
964 (convert_from_firstprivate_int): Likewise.
965 (lower_omp_target): Likewise.
966 (check_omp_nesting_restrictions): Handle
967 GF_OMP_TARGET_KIND_OACC_SERIAL.
968 (lower_oacc_reductions): Likewise.
969 (lower_omp_target): Likewise.
970 * tree.def (OACC_SERIAL): New tree code.
971 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
972
973 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
974
975 2019-11-12 Jakub Jelinek <jakub@redhat.com>
976
977 PR target/92449
978 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
979 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
980
981 PR tree-optimization/92452
982 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
983 into NULL_TREE, set up_bound to NULL_TREE instead of computing
984 MINUS_EXPR on it.
985
986 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
987
988 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
989 safelen with 0.
990
991 2019-11-12 Alan Modra <amodra@gmail.com>
992
993 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
994 element of unspec vec.
995 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
996 PC-relative TLS.
997 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
998 (tls_gd_pcrel, tls_ld_pcrel): New insns.
999 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
1000 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
1001
1002 2019-11-12 Alan Modra <amodra@gmail.com>
1003
1004 * config/rs6000/rs6000.opt (mtls-markers): Delete.
1005 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
1006 (IS_NOMARK_TLSGETADDR): Likewise.
1007 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
1008 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
1009 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
1010 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
1011 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
1012 (rs6000_indirect_call_template_1): Likewise.
1013 (rs6000_pltseq_template): Likewise.
1014 (rs6000_opt_vars): Remove "tls-markers" entry.
1015 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
1016 with TARGET_ELF.
1017 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
1018 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
1019 (pltseq_plt_pcrel<mode>): Likewise.
1020 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
1021 (call_value_local64): Likewise.
1022 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
1023 output and length attribute sub-expression.
1024 (call_value_nonlocal_sysv<mode>),
1025 (call_value_nonlocal_sysv_secure<mode>),
1026 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
1027 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
1028 (call_value_indirect_pcrel<mode>): Likewise.
1029 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
1030 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
1031 * configure: Regenerate.
1032 * config.in: Regenerate.
1033
1034 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
1035
1036 * config/rs6000/predicates.md (prefixed_memory): New predicate.
1037 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
1038 address being a prefixed load/store.
1039 (stack_protect_testdi): Deal with either address being a prefixed
1040 load.
1041
1042 2019-11-11 Jakub Jelinek <jakub@redhat.com>
1043
1044 PR bootstrap/92433
1045 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
1046 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
1047 std::swap.
1048
1049 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
1050
1051 PR tree-optimization/92420
1052 * tree-vect-stmts.c (get_negative_load_store_type): Move further
1053 up file.
1054 (get_group_load_store_type): Use it for reversed SLP accesses.
1055
1056 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
1057
1058 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
1059 summary.
1060 (ipcp_transformation_t::duplicate): Break out from ...
1061 (ipa_node_params_t::duplicate): ... here; add copying of agg
1062 replacements.
1063 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
1064 (ipcp_transformation_t): Add duplicate.
1065
1066 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
1067
1068 PR fortran/91828
1069 * doc/install.texi: Document that the minimum MPFR version is
1070 3.1.0.
1071
1072 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
1073
1074 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
1075 use new register constraint letters.
1076
1077 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
1078
1079 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
1080 as well, if interesting recover the symbol and re-legitimize the
1081 pic address.
1082
1083 2019-11-11 Martin Liska <mliska@suse.cz>
1084
1085 * dbgcnt.def (DEBUG_COUNTER): Sort counters
1086 alphabetically.
1087
1088 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
1089
1090 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
1091 account when checking if there are enough iterations to vectorize
1092 epilogue.
1093
1094 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
1095 Kwok Cheung Yeung <kcy@codesourcery.com>
1096
1097 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
1098 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
1099 (LANG_HOOKS_DECLS): Rename also here.
1100 * langhooks.h (lang_hooks_for_decls): Rename
1101 omp_is_optional_argument to omp_check_optional_argument; take
1102 additional bool argument.
1103 * omp-general.h (omp_check_optional_argument): Likewise.
1104 * omp-general.h (omp_check_optional_argument): Likewise.
1105 * omp-low.c (lower_omp_target): Update calls; handle absent
1106 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
1107
1108 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
1109
1110 PR target/87833
1111 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
1112 -fPIC and -shared the last to create offload image.
1113
1114 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
1115
1116 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
1117 of 'offset'.
1118
1119 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
1120 (config.status): Use/depend on it.
1121 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
1122 * configure: Regenerate.
1123
1124 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
1125
1126 PR tree-optimization/88760
1127 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
1128 * gcc/common/config/rs6000/rs6000-common.c
1129 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
1130 Turn on -funroll-loops and -munroll-only-small-loops.
1131 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
1132 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
1133 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
1134 Turn off -munroll-only-small-loops for explicit -funroll-loops.
1135 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
1136 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
1137
1138 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
1139
1140 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1141 Make scalar_load, vector_load, unaligned_load and
1142 vector_gather_load cost more to conform hardware latency and
1143 insn cost settings.
1144
1145 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
1146
1147 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
1148 (MACHO_SYMBOL_LINKER_VIS_P): New.
1149
1150 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
1151
1152 * lra-spills.c (assign_spill_hard_regs): Do not spill into
1153 registers in eliminable_regset.
1154
1155 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1156
1157 * ipa-inline.c (compute_uninlined_call_time,
1158 compute_inlined_call_time): Take edge frequency as
1159 parameter rather than computing it by itself.
1160 (big_speedup_p, edge_badness): Manually CSE sreal
1161 frequency calculations.
1162
1163 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1164
1165 * profile-count.c (profile_count::to_sreal_scale): Short circuit
1166 case where profiles are same.
1167
1168 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1169
1170 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
1171
1172 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1173
1174 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
1175 args summaries of inlined edge unless it holds info about
1176 described reference.
1177
1178 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
1179
1180 * config/rs6000/rs6000.md (CC_any): New mode iterator.
1181 (*movcc_internal1): Rename to...
1182 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
1183
1184 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1185
1186 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
1187 (cgraph_node::create_virtual_clone): Copy it.
1188 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
1189 summaries.
1190 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
1191 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
1192 is disabled.
1193 (propagate_constants_across_call): If callee is not analyzed, give up.
1194 (propagate_constants_topo): Lower to bottom latties of all callees of
1195 functions with ipa-cp disabled.
1196 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
1197 (cgraph_edge_brings_value_p): Check for availability first.
1198 (create_specialized_node): Set ipcp_clone.
1199 (ipcp_store_bits_results): Check that info is present.
1200 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
1201 thunks.
1202 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
1203 conservative when callee summary is missing.
1204 (remap_edge_summaries): Lookup call summary only when needed.
1205 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
1206 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
1207 Use get_create.
1208 (ipa_analyze_node): Use get_create.
1209 (propagate_controlled_uses): Do not propagate when function is not
1210 analyzed.
1211 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
1212 (ipa_read_node_info): Use get_create.
1213 * ipa-prop.h (IPA_NODE_REF): Use get.
1214 (IPA_NODE_REF_GET_CREATE): New.
1215
1216 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1217
1218 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
1219 on function symbol.
1220
1221 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1222
1223 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
1224 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
1225 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
1226 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
1227
1228 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1229
1230 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
1231 capping the growth cumulated.
1232 (offline_size): Break out from ...
1233 (estimate_growth): ... here.
1234 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
1235 parameters.
1236 (growth_likely_positive): Turn to ...
1237 (growth_positive_p): Re-implement.
1238 * ipa-inline.h (growth_likely_positive): Remove.
1239 (growth_positive_p): Declare.
1240 * ipa-inline.c (want_inline_small_function_p): Use
1241 growth_positive_p.
1242 (want_inline_function_to_all_callers_p): Likewise.
1243
1244 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1245
1246 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
1247 calculation of min_size.
1248 (ipa_update_overall_fn_summary): Likewise.
1249
1250 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1251
1252 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
1253 estimate_edge_devirt_benefit when not computing hints;
1254 do not compute time when not asked for.
1255 (estimate_calls_size_and_time): Pass NULL hints and time when
1256 these are not computed; do not evaluate hint predicates when these are
1257 not computed.
1258 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
1259 frequency.
1260
1261 2019-11-09 Jakub Jelinek <jakub@redhat.com>
1262
1263 PR tree-optimization/92401
1264 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
1265 if res_op->code is an expression with code length 1.
1266 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
1267 if res_op->code is an expression with code length 2.
1268 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
1269 if res_op->code is an expression with code length 3.
1270
1271 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
1272
1273 * config/darwin.c (machopic_mcount_stub_name): Validate the
1274 symbol stub name when it is created.
1275 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
1276 stub validation.
1277
1278 2019-11-09 Jakub Jelinek <jakub@redhat.com>
1279
1280 * symtab.c: Fix comment typos.
1281 * cgraphunit.c: Likewise.
1282 * cgraph.h: Likewise.
1283 * cgraphclones.c: Likewise.
1284 * cgraph.c: Likewise.
1285 * varpool.c: Likewise.
1286 * tree-ssa-strlen.c: Likewise.
1287 * ipa-sra.c: Likewise.
1288 (scan_expr_access, check_all_callers_for_issues): Fix typo
1289 in a dump message.
1290
1291 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
1292
1293 * config/darwin-protos.h: Add include quard.
1294
1295 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
1296
1297 * range-op.h (range_operator::fold_range): Return result in a
1298 reference parameter instead of by value.
1299 (range_operator::wi_fold): Same.
1300 * range-op.cc (range_operator::wi_fold): Return result in a reference
1301 parameter instead of by value.
1302 (range_operator::fold_range): Same.
1303 (value_range_from_overflowed_bounds): Same.
1304 (value_range_with_overflow): Same
1305 (create_possibly_reversed_range): Same.
1306 (operator_equal::fold_range): Same.
1307 (operator_not_equal::fold_range): Same.
1308 (operator_lt::fold_range): Same.
1309 (operator_le::fold_range): Same.
1310 (operator_gt::fold_range): Same.
1311 (operator_ge::fold_range): Same.
1312 (operator_plus::wi_fold): Same.
1313 (operator_plus::op1_range): Change call to fold_range.
1314 (operator_plus::op2_range): Change call to fold_range.
1315 (operator_minus::wi_fold): Return result via reference parameter.
1316 (operator_minus::op1_range): Change call to fold_range.
1317 (operator_minus::op2_range): Change call to fold_range.
1318 (operator_min::wi_fold): Return result via reference parameter.
1319 (operator_max::wi_fold): Same.
1320 (cross_product_operator::wi_cross_product): Same.
1321 (operator_mult::wi_fold): Same.
1322 (operator_div::wi_fold): Same.
1323 (operator_div op_floor_div): Fix whitespace.
1324 (operator_exact_divide::op1_range): Change call to fold_range.
1325 (operator_lshift::fold_range): Return result via reference parameter.
1326 (operator_lshift::wi_fold): Same.
1327 (operator_rshift::fold_range): Same.
1328 (operator_rshift::wi_fold): Same.
1329 (operator_cast::fold_range): Same.
1330 (operator_cast::op1_range): Change calls to fold_range.
1331 (operator_logical_and::fold_range): Return result via reference.
1332 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
1333 (operator_bitwise_and::wi_fold): Return result via reference.
1334 (operator_logical_or::fold_range): Same.
1335 (operator_bitwise_or::wi_fold): Same.
1336 (operator_bitwise_xor::wi_fold): Same.
1337 (operator_trunc_mod::wi_fold): Same.
1338 (operator_logical_not::fold_range): Same.
1339 (operator_bitwise_not::fold_range): Same.
1340 (operator_bitwise_not::op1_range): Change call to fold_range.
1341 (operator_cst::fold_range): Return result via reference.
1342 (operator_identity::fold_range): Same.
1343 (operator_abs::wi_fold): Same.
1344 (operator_absu::wi_fold): Same.
1345 (operator_negate::fold_range): Same.
1346 (operator_negate::op1_range): Change call to fold_range.
1347 (operator_addr_expr::fold_range): Return result via reference.
1348 (operator_addr_expr::op1_range): Change call to fold_range.
1349 (operator_pointer_plus::wi_fold): Return result via reference.
1350 (operator_pointer_min_max::wi_fold): Same.
1351 (operator_pointer_and::wi_fold): Same.
1352 (operator_pointer_or::wi_fold): Same.
1353 (range_op_handler): Change call to fold_range.
1354 (range_cast): Same.
1355 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
1356 fold_range.
1357 (range_fold_unary_symbolics_p): Same.
1358 (range_fold_binary_expr): Same.
1359 (range_fold_unary_expr): Same.
1360
1361 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1362
1363 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
1364 vector type as an argument rather than reading it from the
1365 stmt_vec_info.
1366 (vect_create_epilog_for_reduction): Update accordingly.
1367 (vectorizable_reduction): Likewise.
1368 (vect_transform_cycle_phi): Likewise.
1369
1370 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
1371
1372 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
1373 the comparison codes that make sense for the mode used, and only the
1374 codes that can be done with a single branch instruction.
1375
1376 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
1377
1378 PR tree-optimization/92351
1379 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
1380 peeling the main loop for alignment, make sure to set the misalignment
1381 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
1382
1383 2019-11-08 Richard Biener <rguenther@suse.de>
1384
1385 * dbgcnt.def (ivopts_loop): Add.
1386 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
1387 ivopts_loop before optimizing a loop.
1388
1389 2019-11-08 Richard Biener <rguenther@suse.de>
1390
1391 PR ipa/92409
1392 * tree-inline.c (declare_return_variable): Properly handle
1393 type mismatches for the return slot.
1394
1395 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
1396
1397 PR target/92095
1398 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
1399 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
1400 change.
1401 (got_helper_needed): New static variable.
1402 (output_load_pcrel_sym): New function.
1403 (get_pc_thunk_name): Remove after inlining...
1404 (load_got_register): ...here. Rework the initialization of the GOT
1405 register and of the GOT helper.
1406 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
1407 (sparc_file_end): Test got_helper_needed to decide whether the GOT
1408 helper must be emitted. Use output_asm_insn instead of fprintf.
1409 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
1410 if optimization is enabled.
1411 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
1412 by calling output_load_pcrel_sym.
1413
1414 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1415
1416 * tree-sra.c (create_access): Delay disqualifying the base
1417 for poly_int values until we know we have a base.
1418
1419 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
1420
1421 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
1422 for loops with SIMDUID set. Enable epilogue vectorization for loops
1423 with SIMDLEN set after finding a main loop with a VF that matches it.
1424
1425 2019-11-08 Jakub Jelinek <jakub@redhat.com>
1426
1427 PR target/92038
1428 * gimple-ssa-store-merging.c (find_constituent_stores): For return
1429 value only, return non-NULL if there is a single non-clobber
1430 constituent store even if there are constituent clobbers and return
1431 one of clobber constituent stores if all constituent stores are
1432 clobbers.
1433 (split_group): Handle clobbers.
1434 (imm_store_chain_info::output_merged_store): When computing
1435 bzero_first, look after all clobbers at the start. Don't count
1436 clobber stmts in orig_num_stmts, except if the first orig store is
1437 a clobber covering the whole area and split_stores cover the whole
1438 area, consider equal number of stmts ok. Punt if split_stores
1439 contains only ->orig stores and their number plus number of original
1440 clobbers is equal to original number of stmts. For ->orig, look past
1441 clobbers in the constituent stores.
1442 (imm_store_chain_info::output_merged_stores): Don't remove clobber
1443 stmts.
1444 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
1445 rhs.
1446 (store_valid_for_store_merging_p): Allow clobber stmts.
1447 (verify_clear_bit_region_be): Fix up a thinko in function comment.
1448
1449 PR c++/92384
1450 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
1451 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
1452 slot.
1453 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
1454 force creation of a unique data.stack_parm slot.
1455
1456 2019-11-08 Richard Biener <rguenther@suse.de>
1457
1458 * genmatch.c (expr::gen_transform): Use the resimplify
1459 member function instead of hard-coding the gimple_resimplifyN variant.
1460 (dt_simplify::gen_1): Likewise.
1461
1462 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1463
1464 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
1465 POLY_INT_CST.
1466
1467 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1468
1469 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
1470 instead of INTEGER_CST.
1471
1472 2019-11-08 Richard Biener <rguenther@suse.de>
1473
1474 PR tree-optimization/92324
1475 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
1476 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
1477 sign-conversions as necessary.
1478 (vectorizable_reduction): Reject conversions in the chain
1479 that are not sign-conversions, base analysis on a non-converting
1480 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
1481 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
1482 for debug stmts.
1483 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
1484 (STMT_VINFO_REDUC_VECTYPE): Likewise.
1485
1486 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
1487
1488 PR target/92055
1489 * config/avr/avr.opt (-mdouble=, -mlong-double=):
1490 Fix a missing '-' when displaying these options in the
1491 help screen.
1492
1493 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1494
1495 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
1496
1497 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1498
1499 * config/aarch64/aarch64-builtins.c
1500 (aarch64_builtin_vectorized_function): Remove bswap handling.
1501
1502 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1503
1504 * tree-core.h (tree_type_common::indivisible_p): New member variable.
1505 * tree.h (TYPE_INDIVISIBLE_P): New macro.
1506 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
1507 Treat the vector types as indivisible.
1508
1509 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1510
1511 * optabs.def (gather_load_optab, mask_gather_load_optab)
1512 (scatter_store_optab, mask_scatter_store_optab): Turn into
1513 conversion optabs, with the offset mode given explicitly.
1514 * doc/md.texi: Update accordingly.
1515 * config/aarch64/aarch64-sve-builtins-base.cc
1516 (svld1_gather_impl::expand): Likewise.
1517 (svst1_scatter_impl::expand): Likewise.
1518 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
1519 (expand_scatter_store_optab_fn): Likewise.
1520 (direct_gather_load_optab_supported_p): Likewise.
1521 (direct_scatter_store_optab_supported_p): Likewise.
1522 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
1523 to be argument 4.
1524 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
1525 (internal_gather_scatter_fn_supported_p): Replace the offset sign
1526 argument with the offset vector type. Require the two vector
1527 types to have the same number of elements but allow their element
1528 sizes to be different. Treat the optabs as conversion optabs.
1529 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
1530 prototype accordingly.
1531 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
1532 (supports_vec_convert_optab_p): ...this new function.
1533 (supports_vec_gather_load_p): Update accordingly.
1534 (supports_vec_scatter_store_p): Likewise.
1535 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
1536 Replace the offset sign and bits parameters with a scalar type tree.
1537 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
1538 Pass back the offset vector type instead of the scalar element type.
1539 Allow the offset to be wider than the memory elements. Search for
1540 an offset type that the target supports, stopping once we've
1541 reached the maximum of the element size and pointer size.
1542 Update call to internal_gather_scatter_fn_supported_p.
1543 (vect_check_gather_scatter): Update calls accordingly.
1544 When testing a new scale before knowing the final offset type,
1545 check whether the scale is supported for any signed or unsigned
1546 offset type. Check whether the target supports the source and
1547 target types of a conversion before deciding whether to look
1548 through the conversion. Record the chosen offset_vectype.
1549 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
1550 (vect_recog_gather_scatter_pattern): Get the scalar offset type
1551 directly from the gs_info's offset_vectype instead. Pass a zero
1552 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
1553 * tree-vect-stmts.c (check_load_store_masking): Update call to
1554 internal_gather_scatter_fn_supported_p, passing the offset vector
1555 type recorded in the gs_info.
1556 (vect_truncate_gather_scatter_offset): Update call to
1557 vect_check_gather_scatter, leaving it to search for a valid
1558 offset vector type.
1559 (vect_use_strided_gather_scatters_p): Convert the offset to the
1560 element type of the gs_info's offset_vectype.
1561 (vect_get_gather_scatter_ops): Get the offset vector type directly
1562 from the gs_info.
1563 (vect_get_strided_load_store_ops): Likewise.
1564 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
1565 and IFN_MASK_GATHER_LOAD.
1566 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
1567 (gather_load<mode><v_int_equiv>): ...this.
1568 (mask_gather_load<mode>): Rename to...
1569 (mask_gather_load<mode><v_int_equiv>): ...this.
1570 (scatter_store<mode>): Rename to...
1571 (scatter_store<mode><v_int_equiv>): ...this.
1572 (mask_scatter_store<mode>): Rename to...
1573 (mask_scatter_store<mode><v_int_equiv>): ...this.
1574
1575 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
1576
1577 PR target/92132
1578 * config/rs6000/predicates.md
1579 (signed_or_equality_comparison_operator): New predicate.
1580 (unsigned_or_equality_comparison_operator): Likewise.
1581 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
1582 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
1583 * config/rs6000/vector.md
1584 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
1585 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
1586 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
1587 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
1588 vector modes and same-size integer vector modes.
1589 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
1590 (vector_lt<mode> for VEC_F): New expand.
1591 (vector_le<mode> for VEC_F): Likewise.
1592 (vector_ne<mode> for VEC_F): Likewise.
1593 (vector_unge<mode> for VEC_F): Likewise.
1594 (vector_ungt<mode> for VEC_F): Likewise.
1595 (vector_unle<mode> for VEC_F): Likewise.
1596 (vector_unlt<mode> for VEC_F): Likewise.
1597 (vector_uneq<mode>): Expose name.
1598 (vector_ltgt<mode>): Likewise.
1599 (vector_unordered<mode>): Likewise.
1600 (vector_ordered<mode>): Likewise.
1601
1602 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
1603
1604 PR target/92295
1605 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
1606 Enhance ix86_expand_vector_init_concat.
1607
1608 2019-11-08 Joseph Myers <joseph@codesourcery.com>
1609
1610 * doc/invoke.texi (-Wold-style-definition): Document () not being
1611 considered an old-style definition for C2x.
1612
1613 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
1614
1615 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
1616 Enhance comment.
1617 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
1618 insn patterns using ldcw instruction.
1619 (memory_barrier): Remove insn pattern using sync instruction.
1620 * config/pa/pa.opt (coherent-ldcw): New option.
1621 (ordered): New option.
1622
1623 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
1624
1625 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
1626 valid conditions.
1627
1628 2019-11-07 Jakub Jelinek <jakub@redhat.com>
1629
1630 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
1631 typo - mistmatch -> mismatch.
1632 * ipa-profile.c (ipa_profile): Likewise.
1633 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
1634 - mistmatch -> mismatch.
1635
1636 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
1637
1638 * simplify-rtx.c (comparison_to_mask): New function.
1639 (mask_to_comparison): New function.
1640 (simplify_logical_relational_operation): New function.
1641 (simplify_binary_operation_1): Call
1642 simplify_logical_relational_operation.
1643
1644 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
1645
1646 PR other/92090
1647 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
1648 modes for integer constants.
1649
1650 2019-11-07 Jan Hubicka <jh@suse.cz>
1651
1652 PR ipa/92406
1653 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
1654 summary.
1655
1656 2019-11-07 Jan Hubicka <jh@suse.cz>
1657
1658 * optc-save-gen.awk: Generate cl_target_option_free
1659 and cl_optimization_option_free.
1660 * opth-en.awk: Declare cl_target_option_free
1661 and cl_optimization_option_free.
1662 * tree.c (free_node): Use it.
1663
1664 2019-11-06 Jan Hubicka <jh@suse.cz>
1665
1666 * lto-streamer-in.c: Include alloc-pool.h.
1667 (freeing_string_slot_hasher): Remove.
1668 (string_slot_allocator): New object allocator.
1669 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
1670 (file_name_obstack): New obstack.
1671 (canon_file_name): Allocate in obstack and allocator.
1672 (lto_reader_init): Initialize obstack and allocator.
1673 (lto_free_file_name_hash): New function.
1674 * lto-streamer.h (lto_free_file_name_hash): New.
1675
1676 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
1677
1678 PR tree-optimization/89134
1679 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
1680 * params.def: Add min-loop-cond-split-prob.
1681 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
1682 outside checks on loop into the function.
1683 (split_info): New class.
1684 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
1685 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
1686 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
1687 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
1688 (stmt_semi_invariant_p, branch_removable_p): Likewise.
1689 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
1690 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
1691 (split_loop_on_cond): Likewise.
1692 (tree_ssa_split_loops): Add loop split on conditional statement.
1693
1694 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
1695
1696 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
1697 pattern.
1698
1699 2019-11-07 Richard Biener <rguenther@suse.de>
1700
1701 PR tree-optimization/92405
1702 * tree-vect-loop.c (vectorizable_reduction): Appropriately
1703 restrict lane-reducing ops to single stmt chains.
1704
1705 2019-11-07 Martin Jambor <mjambor@suse.cz>
1706
1707 PR lto/70929
1708 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
1709 * cgraph.h (gimple_check_call_matching_types): Remove
1710 * cgraph.c (gimple_check_call_args): Likewise.
1711 (gimple_check_call_matching_types): Likewise.
1712 (symbol_table::create_edge): Do not call
1713 gimple_check_call_matching_types.
1714 (cgraph_edge::make_direct): Likewise.
1715 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1716 * value-prof.h (check_ic_target): Remove.
1717 * value-prof.c (check_ic_target): Remove.
1718 (gimple_ic_transform): Do nat call check_ic_target.
1719 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
1720 (afdo_indirect_call): Likewise.
1721 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
1722 gimple_check_call_matching_types.
1723 * ipa-inline.c (early_inliner): Likewise.
1724
1725 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1726
1727 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
1728 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
1729 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
1730 * config/arm/arm_acle_builtins.def: Define builtins for the above.
1731 * config/arm/iterators.md (USSAT16): New int_iterator.
1732 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
1733 (sup): Likewise.
1734 * config/arm/predicates.md (ssat16_imm): New predicate.
1735 (usat16_imm): Likewise.
1736 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
1737
1738 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1739
1740 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
1741 New define_insns.
1742 (arm_<simd32_op>): New define_expands.
1743 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
1744 __smuad, __smuadx): Define.
1745 * config/arm/arm_acle_builtins.def: Define builtins for the above.
1746 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
1747 (SIMD32_BINOP_Q): Likewise.
1748 (simd32_op): Handle the above.
1749 * config/arm/unspecs.md: Define unspecs for the above.
1750
1751 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1752
1753 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
1754 * config/arm/arm.md (APSRGE_REGNUM): Define.
1755 (arm_<simd32_op>): New define_insn.
1756 (arm_sel): Likewise.
1757 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
1758 (CALL_USED_REGISTERS): Likewise.
1759 (REG_ALLOC_ORDER): Likewise.
1760 (FIRST_PSEUDO_REGISTER): Update value.
1761 (ARM_GE_BITS_READ): Define.
1762 * config/arm/arm.c (arm_conditional_register_usage): Clear
1763 APSRGE_REGNUM from operand_reg_set.
1764 (arm_ge_bits_access): Define.
1765 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
1766 ARM_BUIILTIN_sel.
1767 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
1768 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
1769 FAIL if ARM_GE_BITS_READ.
1770 (*arm_add<mode>3): New define_insn.
1771 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
1772 (*arm_sub<mode>3): New define_insn.
1773 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
1774 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
1775 __usub16): Define.
1776 * config/arm/arm_acle_builtins.def: Define builtins for the above.
1777 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
1778 (simd32_op): Handle the above.
1779 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
1780 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
1781 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
1782 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
1783
1784 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1785
1786 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
1787 (arm_smlabb): New define_expand.
1788 (*maddhisi4tb): Rename to...
1789 (maddhisi4tb): ... This.
1790 (*maddhisi4tt): Rename to...
1791 (maddhisi4tt): ... This.
1792 (arm_smlatb_setq): New define_insn.
1793 (arm_smlatb): New define_expand.
1794 (arm_smlatt_setq): New define_insn.
1795 (arm_smlatt): New define_expand.
1796 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
1797 (arm_<smlaw_op>): New define_expand.
1798 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
1799 __smlawb, __smlawt): Define.
1800 * config/arm_acle_builtins.def: Define builtins for the above.
1801 * config/arm/iterators.md (SMLAWBT): New int_iterator.
1802 (slaw_op): New int_attribute.
1803 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
1804
1805 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1806
1807 * config/arm/arm.md (arm_<ss_op>): New define_expand.
1808 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
1809 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
1810 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
1811 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
1812 (ss_op): New code_attr.
1813
1814 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1815
1816 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
1817 * config/arm/arm.md (APSRQ_REGNUM): Define.
1818 (add_setq): New define_subst.
1819 (add_clobber_q_name): New define_subst_attr.
1820 (add_clobber_q_pred): Likewise.
1821 (maddhisi4): Change to define_expand. Split into mult and add if
1822 ARM_Q_BIT_READ.
1823 (arm_maddhisi4): New define_insn.
1824 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
1825 (*maddhisi4tt): Likewise.
1826 (arm_ssat): New define_expand.
1827 (arm_usat): Likewise.
1828 (arm_get_apsr): New define_insn.
1829 (arm_set_apsr): Likewise.
1830 (arm_saturation_occurred): New define_expand.
1831 (arm_set_saturation): Likewise.
1832 (*satsi_<SAT:code>): Rename to...
1833 (satsi_<SAT:code><add_clobber_q_name>): ... This.
1834 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
1835 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
1836 (CALL_USED_REGISTERS): Mark apsrq.
1837 (FIRST_PSEUDO_REGISTER): Update value.
1838 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
1839 (machine_function): Add q_bit_access.
1840 (ARM_Q_BIT_READ): Define.
1841 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
1842 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
1843 operand_reg_set.
1844 (arm_q_bit_access): Define.
1845 * config/arm/arm-builtins.c: Include stringpool.h.
1846 (arm_sat_binop_imm_qualifiers,
1847 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
1848 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
1849 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
1850 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
1851 SET_SAT_QUALIFIERS): Likewise.
1852 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
1853 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
1854 Handle 0 argument expander.
1855 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
1856 (arm_check_builtin_call): Define.
1857 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
1858 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
1859 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
1860 (arm_q_bit_access): Likewise.
1861 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
1862 __saturation_occurred, __set_saturation_occurred): Define.
1863 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
1864 saturation_occurred, set_saturation_occurred.
1865 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
1866 (UNSPEC_APSR_READ): Likewise.
1867 (VUNSPEC_APSR_WRITE): Likewise.
1868 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
1869 (*arm_ssadd<mode>3): New define_insn.
1870 (sssub<mode>3): Convert to define_expand.
1871 (*arm_sssub<mode>3): New define_insn.
1872 (ssmulsa3): Convert to define_expand.
1873 (*arm_ssmulsa3): New define_insn.
1874 (usmulusa3): Convert to define_expand.
1875 (*arm_usmulusa3): New define_insn.
1876 (ssmulha3): FAIL if ARM_Q_BIT_READ.
1877 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
1878 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
1879
1880 2019-11-07 Martin Liska <mliska@suse.cz>
1881
1882 PR c++/92354
1883 * cgraph.c (delete_function_version): Clear global
1884 variable version_info_node if equal to deleted
1885 function.
1886
1887 2019-11-07 Martin Liska <mliska@suse.cz>
1888
1889 * fold-const.c (operand_compare::operand_equal_p): Add comparison
1890 of CONSTRUCTOR_NO_CLEARING.
1891 (operand_compare::hash_operand): Likewise.
1892
1893 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
1894
1895 Support 64-bit double and 64-bit long double configurations.
1896
1897 PR target/92055
1898 * config.gcc (tm_defines) [avr]: Set from --with-double=,
1899 --with-long-double=.
1900 * config/avr/t-multilib: Remove.
1901 * config/avr/t-avr: Output of genmultilib.awk is now fully
1902 dynamically generated and no more part of the repo.
1903 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
1904 Pass them down to...
1905 * config/avr/genmultilib.awk: ...here and handle them.
1906 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
1907 (-mlong-double=, avr_long_double). New option and var.
1908 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
1909 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
1910 Set default as requested by --with-double=
1911 (TARGET_HANDLE_OPTION): Define to this...
1912 (avr_handle_option): ...new hook worker.
1913 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
1914 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
1915 (avr_double_lib): New proto for spec function.
1916 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
1917 (DRIVER_SELF_SPECS): Call %:double-lib.
1918 * config/avr/avr.c (avr_option_override): Assert
1919 sizeof(long double) >= sizeof(double) for the target.
1920 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
1921 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
1922 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
1923 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
1924 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
1925 New built-in define depending on --with-double=, --with-long-double=.
1926 * config/avr/driver-avr.c (avr_double_lib): New spec function.
1927 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
1928 * doc/install.texi (Cross-Compiler-Specific Options)
1929 <--with-double=, --with-long-double=>: Doc.
1930
1931 2019-11-07 Richard Biener <rguenther@suse.de>
1932
1933 * dbgcnt.def (gimple_unroll): New.
1934 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
1935 gimple_unroll debug counter before applying transform.
1936 (try_peel_loop): Likewise.
1937
1938 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
1939
1940 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
1941 frame pointer in multiple registers.
1942 (ira_setup_eliminable_regset): Setup eliminable_regset,
1943 ira_no_alloc_regs and regs_ever_live for frame pointer in
1944 multiple registers.
1945
1946 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
1947
1948 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
1949 V2DI modes.
1950
1951 2019-11-06 Jan Hubicka <jh@suse.cz>
1952
1953 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
1954 allocations.
1955 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
1956 Do not silently ignore summary corruptions.
1957
1958 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
1959
1960 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
1961 the epilogue if there are peeled iterations for it to handle.
1962
1963 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
1964
1965 * config/arc/arc.c (arc_split_ior): Add asserts.
1966 (arc_split_mov_const): Likewise.
1967 (arc_check_ior_const): Do not match known short immediate values.
1968 * config/arc/arc.md (movsi): Don't split predicated instructions
1969 (iorsi): Likewise.
1970
1971 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
1972
1973 * config/arc/arc.opt (mea): Update help string.
1974 * doc/invoke.texi(ARC): Update mea option info.
1975
1976 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
1977
1978 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
1979 (zero_extendqisi2_ac): Likewise.
1980 (zero_extendhisi2_i): Likewise.
1981 (extendqihi2_i): Likewise.
1982 (extendqisi2_ac): Likewise.
1983 (extendhisi2_i): Likewise.
1984
1985 2019-11-06 Richard Biener <rguenther@suse.de>
1986
1987 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
1988 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
1989 Simplify single_defuse_cycle condition.
1990
1991 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
1992
1993 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
1994 epilogue loop, make sure that the VF is small enough or that
1995 the epilogue loop can be fully-masked.
1996
1997 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
1998
1999 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
2000 loop when we've finished, rather than returning directly from
2001 the loop. Use a local variable to track whether we're still
2002 searching for the preferred simdlen. Make vect_epilogues
2003 record whether the next iteration should try to treat the
2004 loop as an epilogue.
2005
2006 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
2007
2008 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
2009 __arc_hard_float__, __ARC_HARD_FLOAT__,
2010 __arc_soft_float__, __ARC_SOFT_FLOAT__
2011
2012 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
2013
2014 PR tree-optimization/92317
2015 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
2016 update phi's with constant phi arguments.
2017
2018 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
2019 Alexandre Oliva <oliva@adacore.com>
2020
2021 * common.opt (-fcallgraph-info[=]): New option.
2022 * doc/invoke.texi (Developer options): Document it.
2023 * opts.c (common_handle_option): Handle it.
2024 * builtins.c (expand_builtin_alloca): Record allocation if
2025 -fcallgraph-info=da.
2026 * calls.c (expand_call): If -fcallgraph-info, record the call.
2027 (emit_library_call_value_1): Likewise.
2028 * flag-types.h (enum callgraph_info_type): New type.
2029 * explow.c: Include stringpool.h.
2030 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
2031 * function.c (allocate_stack_usage_info): New.
2032 (allocate_struct_function): Call it for -fcallgraph-info.
2033 (prepare_function_start): Call it otherwise.
2034 (record_final_call, record_dynamic_alloc): New.
2035 * function.h (struct callinfo_callee): New.
2036 (CALLEE_FROM_CGRAPH_P): New.
2037 (struct callinfo_dalloc): New.
2038 (struct stack_usage): Add callees and dallocs.
2039 (record_final_call, record_dynamic_alloc): Declare.
2040 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
2041 object if -fcallgraph-info=da.
2042 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
2043 * print-tree.h (print_decl_identifier): Declare.
2044 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
2045 * print-tree.c: Include print-tree.h.
2046 (print_decl_identifier): New function.
2047 * toplev.c: Include print-tree.h.
2048 (callgraph_info_file): New global variable.
2049 (callgraph_info_external_printed): Likewise.
2050 (output_stack_usage): Rename to...
2051 (output_stack_usage_1): ... this. Make it static, add cf
2052 parameter. If -fcallgraph-info=su, print stack usage to cf.
2053 If -fstack-usage, use print_decl_identifier for
2054 pretty-printing.
2055 (INDIRECT_CALL_NAME): New.
2056 (dump_final_node_vcg_start): New.
2057 (dump_final_callee_vcg, dump_final_node_vcg): New.
2058 (output_stack_usage): New.
2059 (lang_dependent_init): Open and start file if
2060 -fcallgraph-info. Allocated callgraph_info_external_printed.
2061 (finalize): If callgraph_info_file is not null, finish it,
2062 close it, and release callgraph_info_external_printed.
2063
2064 2019-11-06 Gergö Barany <gergo@codesourcery.com>
2065 Frederik Harwath <frederik@codesourcery.com>
2066 Thomas Schwinge <thomas@codesourcery.com>
2067
2068 * omp-low.c (struct omp_context): New fields
2069 local_reduction_clauses, outer_reduction_clauses.
2070 (new_omp_context): Initialize these.
2071 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
2072 (scan_omp_for): Check reduction clauses for incorrect nesting.
2073
2074 2019-11-06 Jakub Jelinek <jakub@redhat.com>
2075
2076 PR inline-asm/92352
2077 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
2078 operands with non-memory constraints.
2079
2080 2019-11-05 Martin Sebor <msebor@redhat.com>
2081
2082 PR tree-optimization/92373
2083 * tree.c (component_ref_size): Only consider initializers of objects
2084 of matching struct types.
2085 Return null for instances of interior zero-length arrays.
2086
2087 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
2088
2089 * doc/md.texi (Insn Splitting): Fix combiner documentation.
2090
2091 2019-11-05 Jason Merrill <jason@redhat.com>
2092
2093 PR tree-optimization/91825
2094 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
2095
2096 2019-11-05 Jim Wilson <jimw@sifive.com>
2097
2098 PR middle-end/92263
2099 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
2100 optimize_insn_for_speed_p is true.
2101
2102 2019-11-05 Martin Sebor <msebor@redhat.com>
2103
2104 PR middle-end/92333
2105 PR middle-end/82608
2106 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
2107 size.
2108 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
2109 name and location for a temporary variable.
2110
2111 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2112
2113 * tree-vrp.c (value_range::value_range): Fix whitespace.
2114 (defined_ranges_p): Same.
2115 (range_fold_binary_symbolics_p): Same.
2116 (value_range::intersect_helper): Same.
2117 (value_range::union_helper): Same.
2118 * tree-vrp.h (range_fold_binary_expr): Same.
2119
2120 2019-11-04 Martin Sebor <msebor@redhat.com>
2121
2122 PR middle-end/92341
2123 PR middle-end/82612
2124 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
2125 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
2126 of message printed in a warning for empty arrays.
2127 (vrp_prop::check_mem_ref): Also handle function parameters and
2128 empty arrays.
2129
2130 2019-11-05 Richard Biener <rguenther@suse.de>
2131
2132 PR tree-optimization/92371
2133 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
2134 on the original stmt of live stmts in the chain.
2135 (vectorizable_live_operation): Look at the original stmt when
2136 checking STMT_VINFO_REDUC_DEF.
2137
2138 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2139
2140 * gimple-fold.c, gimple-loop-versioning.cc,
2141 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
2142 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
2143 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
2144 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
2145 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
2146 value_range_equiv, and value_range_base to value_range.
2147
2148 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
2149
2150 * expr.c (build_personality_function): Fix generated type to
2151 match actual personality functions.
2152
2153 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
2154
2155 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
2156 enough bytes for the NULL character.
2157
2158 2019-11-05 Richard Biener <rguenther@suse.de>
2159
2160 PR tree-optimization/92280
2161 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
2162 had a single use do not create a new CTOR.
2163 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
2164 BIT_FIELD_REF of a CTOR via GENERIC.
2165
2166 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
2167
2168 * config/s390/s390.c (s390_vector_alignment): Check if the value
2169 fits into uhwi before using it.
2170
2171 2019-11-05 Martin Liska <mliska@suse.cz>
2172
2173 * symbol-summary.h: Use ggc_delete.
2174
2175 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2176
2177 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
2178 Change vec_perm field to 10.
2179
2180 2019-11-05 Arnaud Charlet <charlet@adacore.com>
2181
2182 * doc/install.texi: Further fix syntax for html generation.
2183
2184 2019-11-05 Martin Liska <mliska@suse.cz>
2185
2186 * symbol-summary.h: Rename allocator to m_allocator and
2187 add comment.
2188
2189 2019-11-05 Richard Biener <rguenther@suse.de>
2190
2191 PR tree-optimization/92324
2192 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
2193 all signed or unsigned operations.
2194
2195 2019-11-05 Jan Hubicka <jh@suse.cz>
2196
2197 * hsa-brig.c: Include alloc-pool.h
2198 * hsa-dump.c: Likewise.
2199 * hsa-gen.c: Likewise.
2200 * hse-regalloc.c: Likewise.
2201 * ipa-hsa.c: Likewise.
2202 * ipa-predicate.c: Likewise.
2203 * ipa-reference.c: Likewise.
2204 * ipa-sra.c: Likewise.
2205 * omp-expand.c: Likewise.
2206 * omp-general.c: Likewise.
2207 * omp-low.c: Likewise.
2208 * sumbol-summary.h (function_summary_base): Add allocator.
2209 (function_summary<T *>::function_summary): Update construction.
2210 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
2211 (call_summary_base): Add allcator.
2212 (call_summary<T *>::call_summary): Update construction.
2213 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
2214
2215 2019-11-05 Jakub Jelinek <jakub@redhat.com>
2216
2217 PR tree-optimization/91945
2218 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
2219 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
2220 Formatting fix.
2221
2222 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2223
2224 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
2225 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
2226 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
2227 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
2228 (vrp_set_zero_nonzero_bits): Move to...
2229 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
2230 (vr_values::simplify_bit_ops_using_ranges): Rename
2231 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
2232
2233 2019-11-05 Martin Liska <mliska@suse.cz>
2234
2235 PR c++/92339
2236 * fold-const.c (operand_compare::hash_operand): Remove
2237 FIELD_DECL handling.
2238
2239 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2240
2241 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
2242 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
2243 static.
2244
2245 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2246
2247 * tree-vrp.c (value_range_base::operator==): Use equal_p to
2248 properly handle symbolics.
2249 (range_compatible_p): Remove.
2250
2251 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
2252
2253 * common.opt (-fabi-version): Document =14.
2254 * doc/invoke.texi (C++ Dialect Options): Likewise.
2255
2256 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2257
2258 * tree-vrp.c (value_range_base::set): Do not special case pointers.
2259
2260 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
2261
2262 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
2263 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
2264 gcn_omp_device_kind_arch_isa.
2265 * config/gcn/t-omp-device: New file.
2266 * configure.ac: Support gcn for omp_device_property.
2267 * configure: Regenerate.
2268
2269 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2270
2271 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
2272 (vrp_val_max): Same.
2273 (vrp_val_is_min): Same.
2274 (vrp_val_is_max): Same.
2275 (value_range_base::nonzero_p): Remove last argument to
2276 vrp_val_is_max.
2277 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
2278 (vrp_val_max): Same.
2279 (vrp_val_is_min): Same.
2280 (vrp_val_is_max): Same.
2281 (value_range_base::set_varying): Remove last argument to vrp_val*.
2282 (value_range_base::dump): Same.
2283 (value_range_base::set): Same.
2284 (value_range_base::normalize_symbolics): Same.
2285 (value_range_base::num_pairs): Same.
2286 (value_range_base::lower_bound): Same.
2287 (value_range_base::upper_bound): Same.
2288 (ranges_from_anti_range): Remove handle_pointers argument.
2289 (value_range_base::singleton_p): Remove last argument to
2290 ranges_from_anti_range.
2291
2292 2019-11-04 Jan Hubicka <jh@suse.cz>
2293
2294 * ipa-reference.c (init_function_info): Initialize
2295 info->global.statics_read.
2296
2297 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2298
2299 * tree-vrp.c (value_range_base::invert): Use constructors to build
2300 range.
2301
2302 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2303
2304 * tree-vrp.c (range_int_cst_singleton_p): Remove.
2305 * tree-vrp.h (range_int_cst_singleton_p): Remove.
2306
2307 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2308
2309 * tree-vrp.c (value_range_base::normalize_addresses): Handle
2310 VR_UNDEFINED.
2311
2312 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2313
2314 * tree-vrp.c (dump_assert_info): New.
2315 (dump_asserts_info): New.
2316
2317 2019-11-04 Jan Hubicka <jh@suse.cz>
2318
2319 * ipa-inline-transform.c: Include ipa-utils.h
2320 (inline_call): Set thunk_expansion flag.
2321 * ipa-utils.h (thunk_expansion): Declare.
2322 * ipa-devirt.c (thunk_expansion): New global var.
2323 (devirt_node_removal_hook): Do not invalidate cache while
2324 doing thunk expansion.
2325
2326 2019-11-04 Tamar Christina <tamar.christina@arm.com>
2327
2328 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
2329
2330 2019-11-04 Martin Sebor <msebor@redhat.com>
2331
2332 PR tree-optimization/92349
2333 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
2334 memebers have constant sizes.
2335
2336 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
2337
2338 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
2339 parameter.
2340 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
2341 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
2342 vect_analyze_loop.
2343
2344 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
2345
2346 * expr.c (store_constructor): Modify to handle single element vectors.
2347 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
2348 constructors.
2349 (vect_slp_check_for_constructors): New function.
2350 (vect_slp_analyze_bb_1): Call new function to check for vector
2351 constructors.
2352 (vectorize_slp_instance_root_stmt): New function.
2353 (vect_schedule_slp): Call new function to vectorize root stmt of vector
2354 constructors.
2355 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
2356
2357 2019-11-04 Richard Biener <rguenther@suse.de>
2358
2359 PR tree-optimization/92345
2360 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
2361 we produced a reduction chain.
2362 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
2363 LOOP_VINFO_REDUCTIONS.
2364
2365 2019-11-04 Jan Hubicka <jh@suse.cz>
2366
2367 * cgraphclones.c (cgraph_node::create_version_clone): Do not
2368 duplicate summaries.
2369 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
2370 first.
2371 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
2372 access call summaries.
2373 (dump_ipa_call_summary): Be ready for missing edge summaries.
2374 (analyze_function_body): Use get instead of get_create to access
2375 edge summary.
2376 (estimate_calls_size_and_time): Do not access summaries of
2377 inlined edges; sanity check they are missing.
2378 (ipa_call_context::estimate_size_and_time): Use get instead
2379 of get_create to access node summary.
2380 (inline_update_callee_summaries): Do not update depth of
2381 inlined edge.
2382 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
2383 growth caches.
2384 (ipa_merge_fn_summary_after_inlining): Use get instead
2385 of get_create.
2386 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
2387 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
2388 fast summary.
2389 (initialize_growth_caches): Update.
2390 (do_estimate_edge_time): Remove redundant copy of context.
2391 (ipa_remove_from_growth_caches): New function.
2392 * ipa-inline.c (flatten_function): Update overall summary
2393 only when optimizing.
2394 (inline_to_all_callers): Update overall summary of function
2395 inlined to.
2396 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
2397 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
2398 to false.
2399
2400 2019-11-04 Richard Biener <rguenther@suse.de>
2401
2402 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
2403 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
2404
2405 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
2406
2407 * ggc-common.c: Include system.h before malloc.h.
2408
2409 2019-11-04 Alexandre Oliva <oliva@adacore.com>
2410
2411 * configure.ac: Pass --enable-obsolete=* and
2412 --enable-option-checking=* down to build configure, and fail
2413 if it fails. AC_SUBST HAVE_AUTO_BUILD.
2414 * configure: Rebuild.
2415 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
2416 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
2417
2418 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2419
2420 * config.in: Regenerate.
2421 * config/msp430/msp430.c (msp430_option_override): Emit an error if
2422 -mtiny-printf is used without GCC being configured with
2423 --enable-newlib-nano-formatted-io.
2424 * config/msp430/msp430.h (LINK_SPEC): Pass
2425 "--wrap puts --wrap printf" when -mtiny-printf is used.
2426 * config/msp430/msp430.opt: Document -mtiny-printf.
2427 * configure: Regenerate.
2428 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
2429 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
2430 --enable-newlib-nano-formatted-io is passed.
2431 * doc/invoke.texi: Document -mtiny-printf.
2432
2433 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2434
2435 * configure: Regenerate.
2436
2437 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2438
2439 * config/msp430/driver-msp430.c
2440 (msp430_get_linker_devices_include_path): New spec function.
2441 * config/msp430/msp430-devices.c (msp430_dirname): New function.
2442 (extract_devices_dir_from_exec_prefix): New function.
2443 (extract_devices_dir_from_collect_gcc): New function.
2444 (msp430_check_env_var_for_devices): New function.
2445 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
2446 (parse_devices_csv): Call msp430_check_env_var_for_devices if
2447 devices.csv was not found using other methods.
2448 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
2449 New prototype.
2450 (msp430_dirname): Likewise.
2451 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
2452 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
2453 msp430_get_linker_devices_include_path.
2454 (TARGET_EXTRA_PRE_INCLUDES): Define.
2455 * doc/invoke.texi: Document new ways of searching for support files.
2456
2457 2019-11-04 Richard Biener <rguenther@suse.de>
2458
2459 PR tree-optimization/92301
2460 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
2461 as required by epilogue generation
2462
2463 2019-11-04 Martin Liska <mliska@suse.cz>
2464
2465 PR ipa/92304
2466 * fold-const.c (operand_compare::hash_operand): Fix field
2467 hashing of CONSTRUCTOR.
2468
2469 2019-11-04 Martin Liska <mliska@suse.cz>
2470
2471 * ggc.h (ggc_delete): New function.
2472 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
2473 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
2474 (ipa_free_all_node_params): Likewise.
2475 * ipa-sra.c (ipa_sra_analysis): Likewise.
2476
2477 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2478
2479 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
2480 set_switch_stmt_execution_predicate, compute_bb_predicates,
2481 will_be_nonconstant_expr_predicate,
2482 phi_result_unknown_predicate,
2483 analyze_function_body): Pass arround params summary.
2484 (ipa_call_context::duplicate_from): New comment;
2485 only duplicate useful values.
2486 (ipa_call_context::equal_to): Only compare useful values.
2487 (remap_edge_summaries): Pass params_summary.
2488 (remap_hint_predicate): Likewise.
2489 (ipa_merge_fn_summary_after_inlining): Likewise.
2490 (inline_read_section): Initialize params summary used flags.
2491 * ipa-predicate.c (predicate::remap_after_inlining): Pass
2492 around param_summary.
2493 (add_condition): Initialized used params summary flags.
2494 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
2495 (inline_param_summary::useless_p): New predicate.
2496 (remap_after_inlining, add_condition): Update prototype
2497 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
2498 move_cost.
2499 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
2500 summaries.
2501 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
2502 (ipa_analyze_virtual_call_uses): Likewise.
2503 (update_indirect_edges_after_inlining): Update param summaries.
2504 (ipa_print_node_params): Print used flags.
2505 (ipa_read_indirect_edge_info): Update param summareis.
2506 * ipa-prop.h (ipa_param_descriptor): Add
2507 used_by_ipa_predicates, used_by_indirect_call
2508 and used_by_polymorphic_call.
2509 (ipa_set_param_used_by_ipa_predicates,
2510 ipa_set_param_used_by_indirect_call,
2511 ipa_set_param_used_by_polymorphic_call,
2512 ipa_is_param_used_by_ipa_predicates,
2513 ipa_is_param_used_by_indirect_call,
2514 ipa_is_param_used_by_polymorphic_call): New inline functions.
2515
2516 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2517
2518 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
2519 member function.
2520 (ipa_call_context::release): Add ALL parameter.
2521 (ipa_call_context::equal_to): New member function.
2522 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
2523 duplicate_form, release, equal_to and exists_p member functoins.
2524 * ipa-inline-analysis.c (node_context_cache_entry): New
2525 class.
2526 (node_context_summary): Likewise.
2527 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
2528 node_context_clear): New static vars.
2529 (initialize_growth_caches): New function.
2530 (free_growth_caches): Also delete node_context_cache; output stats.
2531 (do_estimate_edge_time): Cache contexts.
2532 (reset_node_cache): New function.
2533 * ipa-inline.c (reset_edge_caches): Reset also node cache.
2534 (inline_small_functions): Initialize growth caches.
2535 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
2536 Declare.
2537 * ipa-predicate.h (inline_param_summary::equal_to): New.
2538 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
2539 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
2540 (ipa_agg_jump_function): Implement equal_to member function.
2541
2542 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2543
2544 * ipa-fnsummary.c (inline_read_section): Set vector size
2545 ahead of time.
2546
2547 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2548
2549 * ipa-fnsummary.c (ipa_call_context): New constructor.
2550 (estimate_node_size_and_time): Turn to ...
2551 (ipa_call_context::estimate_size_and_time): ... this one.
2552 (ipa_call_context::release): New.
2553 * ipa-fnsummary.h (ipa_call_context): New class.
2554 (estimate_node_size_and_time): Remove.
2555 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
2556 do_estimate_edge_hints): Update.
2557
2558 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2559
2560 * config.in: Regenerate.
2561 * configure: Regenerate.
2562 * configure.ac: Check for mallinfo.
2563 * ggc-common.c: Include malloc.h if available;
2564 include options.h
2565 (report_heap_memory_use): New functoin.
2566 * ggc-page.c (ggc_grow): Do not print "start".
2567 * ggc.h (report_heap_memory_use): Declare.
2568 * pases.c (execute_one_pass): Report memory after IPA passes.
2569 (ipa_read_summaries_1): Likewise.
2570 (ipa_read_optimization_summaries_1): Likewise.
2571
2572 2019-11-02 Jakub Jelinek <jakub@redhat.com>
2573
2574 * gimplify.h (omp_construct_selector_matches): Change return
2575 type to int, add a new SCORES argument.
2576 * gimplify.c (omp_construct_selector_matches): Likewise. If
2577 SCORES is non-NULL, compute scores of each construct.
2578 * omp-general.h (omp_get_context_selector): Declare.
2579 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
2580 Adjust omp_construct_selector_matches callers.
2581 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
2582 (omp_context_compute_score): New function.
2583 (omp_resolve_declare_variant): Compute scores and decide based on
2584 that.
2585
2586 PR bootstrap/92314
2587 * configure.ac: Don't look for omp-device-properties files from
2588 installed offloading compilers. Instead add tmake_file snippets
2589 for configured offloading targets and use files they generate.
2590 * Makefile.in (install): Don't depend on
2591 install-omp-device-properties.
2592 (install-omp-device-properties): Remove goal.
2593 * config/i386/t-omp-device: New file.
2594 * config/i386/t-intelmic (omp-device-properties): Remove goal.
2595 * config/nvptx/t-omp-device: New file.
2596 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
2597 * configure: Regenerated.
2598
2599 * omp-general.h (omp_context_selector_set_compare): Declare.
2600 * omp-general.c (omp_construct_simd_compare,
2601 omp_context_selector_props_compare, omp_context_selector_set_compare,
2602 omp_context_selector_compare): New functions.
2603 (omp_resolve_declare_variant): Prune variants that are strict subset
2604 of another variant.
2605
2606 2019-11-01 Martin Sebor <msebor@redhat.com>
2607
2608 PR middle-end/91679
2609 PR middle-end/91647
2610 PR middle-end/91463
2611 PR middle-end/92312
2612 * doc/invoke.texi (-Wzero-length-bounds): Document.
2613 * gimple-match-head.c (try_conditional_simplification): Use memcpy
2614 instead of a hand-rolled loop to avoid PR 92323.
2615 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
2616 with initializers.
2617 (vrp_prop::check_mem_ref): Handle declared struct objects.
2618 * tree.c (last_field): New function.
2619 (array_at_struct_end_p): Handle MEM_REF.
2620 (get_initializer_for): New helper.
2621 (component_ref_size): Add argument. Rename locals. Call
2622 get_initializer_for instead of fold_ctor_reference. Correct handling
2623 of flexible array members.
2624 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
2625
2626 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
2627
2628 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
2629 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
2630 UNSPEC_VSX_CVSPUXDS): Remove.
2631 (vsx_xvcvspdp): New define_expand, old define_insn split to...
2632 (vsx_xvcvspdp_be): ... this. New. And...
2633 (vsx_xvcvspdp_le): ... this. New.
2634 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
2635 (vsx_xvcv<su>xwdp_be): ... this. New. And...
2636 (vsx_xvcv<su>xwdp_le): ... this. New.
2637 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
2638 (vsx_xvcvsp<su>xds_be): ... this. New. And...
2639 (vsx_xvcvsp<su>xds_le): ... this. New.
2640
2641 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
2642
2643 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
2644 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
2645 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
2646 UNSPEC_VSX_XVCVSPSXWS): Remove.
2647 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
2648 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
2649
2650 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
2651
2652 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
2653 (UNSPEC_VSX_XVCDPSP): Remove.
2654 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
2655 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
2656
2657 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
2658
2659 * hooks.c (hook_tree_tree_bool_null): New.
2660 * hooks.h (hook_tree_tree_bool_null): Declare.
2661 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
2662 (LANG_HOOKS_DECLS): Add it.
2663 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
2664 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
2665 (lower_omp_target): Handle Fortran array with descriptor in
2666 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
2667
2668 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
2669
2670 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2671 Assert that the type we store in abi_vector_types is its own
2672 main variant.
2673 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
2674
2675 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
2676
2677 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
2678 from a CONST_INT address when TARGET_THUMB2.
2679
2680 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
2681
2682 * config/arm/arm.md (add_not_cin): New insn.
2683 (add_not_shift_cin): Likewise.
2684
2685 2019-10-31 Martin Liska <mliska@suse.cz>
2686
2687 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
2688 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
2689 and compare_memory_operand.
2690
2691 2019-10-31 Jakub Jelinek <jakub@redhat.com>
2692
2693 * configure.ac: Compute and substitute omp_device_properties and
2694 omp_device_property_deps.
2695 * Makefile.in (generated_files): Add omp-device-properties.h.
2696 (omp-general.o): Depend on omp-device-properties.h.
2697 (omp_device_properties): New make variable.
2698 (omp-device-properties.h, s-omp-device-properties-h,
2699 install-omp-device-properties): New goals.
2700 (install): Depend on install-omp-device-properties for accelerators.
2701 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
2702 * target.h (enum omp_device_kind_arch_isa): New enum.
2703 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
2704 documentation.
2705 * omp-general.c: Include omp-device-properties.h.
2706 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
2707 colon instead of comma.
2708 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
2709 functions.
2710 (omp_context_selector_matches): Implement device set arch/isa
2711 selectors, improve device set kind selector handling.
2712 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
2713 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
2714 TARGET_SIMD_CLONE_USABLE): Formatting fix.
2715 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
2716 ix86_omp_device_kind_arch_isa.
2717 * config/i386/i386-options.c (struct ix86_target_opts): Move type
2718 definition from ix86_target_string to file scope.
2719 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
2720 to file scope.
2721 (ix86_omp_device_kind_arch_isa): New function.
2722 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
2723 isa_opts definitions to file scope.
2724 * config/i386/t-intelmic (omp-device-properties): New goal.
2725 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
2726 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
2727 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
2728 nvptx_omp_device_kind_arch_isa.
2729 * configure: Regenerate.
2730 * doc/tm.texi: Regenerate.
2731
2732 PR middle-end/92231
2733 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
2734 DECL_BUILT_IN in comment. Remove redundant ()s around return
2735 argument.
2736 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
2737 before calling fndecl_built_in_p.
2738 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
2739 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
2740 fndecl_built_in_p on it.
2741
2742 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
2743
2744 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
2745
2746 2019-10-31 Martin Liska <mliska@suse.cz>
2747
2748 * config/arm/arm.c (arm_get_pcs_model): Remove usage
2749 of cgraph_local_info and use local_info_node instead.
2750 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
2751 (bfin_function_ok_for_sibcall): Likewise.
2752 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
2753 (must_reload_pic_reg_p): Likewise.
2754
2755 2019-10-31 Jakub Jelinek <jakub@redhat.com>
2756
2757 PR c++/90947
2758 * tree.h (type_initializer_zero_p): Remove.
2759 * tree.c (type_initializer_zero_p): Remove.
2760
2761 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
2762
2763 * doc/invoke.texi (-Wshadow, -Wshadow=global
2764 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
2765
2766 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
2767
2768 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
2769 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
2770 and 'target exit data'.
2771
2772 2019-10-30 Martin Jambor <mjambor@suse.cz>
2773
2774 ipa/92278
2775 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
2776 availability comparison.
2777
2778 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2779
2780 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
2781 calls to __mspabi_mpy* functions.
2782 * config/msp430/msp430.md (mulhisi3): New define_expand.
2783 (umulhisi3): New define_expand.
2784 (*mulhisi3_inline): Use old mulhisi3 define_insn.
2785 (*umulhisi3_inline): Use old umulhisi3 define_insn.
2786
2787 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2788
2789 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
2790 (msp430_check_plus_not_high_mem): New.
2791 (msp430_op_not_in_high_mem): Use new functions to check if the operand
2792 might be in low memory.
2793 Indicate that a 16-bit absolute address is in lower memory.
2794
2795 2019-10-30 Martin Jambor <mjambor@suse.cz>
2796
2797 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
2798 ultimate_alias_target.
2799
2800 2019-10-30 Richard Biener <rguenther@suse.de>
2801
2802 PR tree-optimization/92275
2803 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
2804 Copy all loop-closed PHIs.
2805
2806 2019-10-30 Martin Liska <mliska@suse.cz>
2807
2808 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
2809 const_tree as function argument.
2810 (func_checker::compare_decl): Likewise.
2811 (func_checker::operand_equal_p): Likewise.
2812 (func_checker::compare_variable_decl): Likewise.
2813 (func_checker::parse_labels): Likewise.
2814 * ipa-icf-gimple.h: Likewise.
2815
2816 2019-10-30 Martin Liska <mliska@suse.cz>
2817
2818 * ipa-icf-gimple.c (func_checker::compatible_types_p):
2819 Do not compare alias sets. It's handled by operand_equal_p.
2820
2821 2019-10-30 Martin Liska <mliska@suse.cz>
2822
2823 * ipa-icf-gimple.c (func_checker::func_checker): Do not
2824 initialize m_compare_polymorphic.
2825 (func_checker::compare_decl): Do not compare polymorphic types.
2826 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
2827 * ipa-icf.c (sem_function::equals_private): Do not call
2828 compare_polymorphic_p.
2829
2830 2019-10-30 Martin Liska <mliska@suse.cz>
2831
2832 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
2833 compare_operand.
2834 (func_checker::compare_memory_operand): Remove.
2835 (func_checker::compare_cst_or_decl): Remove.
2836 (func_checker::operand_equal_valueize): Do not handle
2837 FIELD_DECL.
2838 (func_checker::compare_gimple_call): Call compare_operand.
2839 (func_checker::compare_gimple_assign): Likewise.
2840 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
2841 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
2842 * ipa-icf.h (icf_handled_component_p): Remove.
2843
2844 2019-10-30 Martin Liska <mliska@suse.cz>
2845
2846 * ipa-icf-gimple.c (func_checker::hash_operand): New.
2847 (func_checker::compare_cst_or_decl): Remove handling
2848 of FIELD_DECL.
2849 (func_checker::compare_operand): Transform to ...
2850 (func_checker::operand_equal_p): ... this.
2851 * ipa-icf-gimple.h (class func_checker): Add
2852 operand_equal_p and hash_operand.
2853 * ipa-icf.c (sem_function::equals_private): Fix
2854 pushing and popping of cfun.
2855
2856 2019-10-30 Martin Liska <mliska@suse.cz>
2857
2858 * fold-const.c (operand_equal_p): Move to ...
2859 (operand_compare::operand_equal_p): ... here.
2860 (operand_compare::verify_hash_value): New.
2861 (add_expr): Move to ...
2862 (operand_compare::hash_operand): ... here.
2863 * fold-const.h (operand_equal_p): Move to the class.
2864 (class operand_compare): New.
2865 * tree.c (add_expr): Remove.
2866
2867 2019-10-30 Martin Liska <mliska@suse.cz>
2868
2869 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
2870 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
2871
2872 2019-10-30 Martin Liska <mliska@suse.cz>
2873
2874 PR lto/91393
2875 PR lto/88220
2876 * cgraph.c (cgraph_node::get_create): Overwrite node->order
2877 from a first_clone in order to get proper LTO section
2878 in LTO stream.
2879 (cgraph_node::get_untransformed_body):
2880 Use lto_get_section_data where symtab_node::order
2881 must be provided.
2882 * cgraphclones.c (cgraph_node::find_replacement):
2883 Update also symbol order.
2884 * ipa-fnsummary.c (ipa_fn_summary_read):
2885 Use new function lto_get_summary_section_data.
2886 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
2887 * ipa-icf.c (sem_item_optimizer::read_summary):
2888 Likewise.
2889 * ipa-prop.c (ipa_prop_read_jump_functions):
2890 Likewise.
2891 (ipcp_read_transformation_summaries): Likewise.
2892 * ipa-sra.c (ipa_sra_read_summary): Likewise.
2893 * lto-cgraph.c (input_node): Add also order_base.
2894 (input_varpool_node): Likewise.
2895 (input_cgraph_1): Assign the order_base.
2896 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
2897 * lto-opts.c (lto_write_options): Pass new argument.
2898 * lto-section-in.c (lto_get_section_data): Add new argumente order.
2899 (lto_get_summary_section_data): New.
2900 (lto_get_raw_section_data): Add order argument.
2901 (lto_create_simple_input_block): Likewise.
2902 * lto-section-out.c (lto_destroy_simple_output_block):
2903 Likewise.
2904 * lto-streamer-in.c (lto_input_toplevel_asms):
2905 Use lto_get_summary_section_data.
2906 (lto_input_mode_table): Likewise.
2907 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
2908 (lto_output_toplevel_asms): Pass new argument.
2909 (copy_function_or_variable): Likewise.
2910 (produce_lto_section):Likewise.
2911 (produce_symtab): Likewise.
2912 (lto_write_mode_table): Likewise.
2913 (produce_asm_for_decls): Likewise.
2914 * lto-streamer.c (lto_get_section_name): Concat symbol name
2915 and symbol order.
2916 * lto-streamer.h (lto_get_section_data): Add order argument.
2917 (lto_get_summary_section_data): New.
2918 (lto_get_raw_section_data): Add order argument.
2919 (lto_get_section_name): Likewise.
2920 * varpool.c (varpool_node::get_constructor): Pass order argument.
2921
2922 2019-10-30 Jakub Jelinek <jakub@redhat.com>
2923
2924 PR tree-optimization/92262
2925 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
2926 ubase or cbase here.
2927 (remove_unused_ivs): Unshare comp before using it.
2928
2929 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
2930
2931 * ipa-prop.c (update_jump_functions_after_inlining):
2932 Watch for missing summaries.
2933
2934 2019-10-30 Richard Biener <rguenther@suse.de>
2935
2936 PR tree-optimization/65930
2937 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
2938 chains also allow a leading and trailing conversion.
2939 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
2940 intermediate reduction chains.
2941 (vect_analyze_slp_instance): Likewise. Build a SLP
2942 node for a trailing conversion manually.
2943
2944 2019-10-30 Martin Liska <mliska@suse.cz>
2945
2946 * cgraph.c (cgraph_node::local_info): Transform to ...
2947 (cgraph_node::local_info_node): ... this.
2948 (cgraph_node::dump): Remove cgraph_local_info and
2949 put its fields directly into cgraph_node.
2950 (cgraph_node::get_availability): Likewise.
2951 (cgraph_node::make_local): Likewise.
2952 (cgraph_node::verify_node): Likewise.
2953 * cgraph.h (struct GTY): Likewise.
2954 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
2955 (duplicate_thunk_for_node): Likewise.
2956 (cgraph_node::create_clone): Likewise.
2957 (cgraph_node::create_virtual_clone): Likewise.
2958 (cgraph_node::create_version_clone): Likewise.
2959 * cgraphunit.c (cgraph_node::reset): Likewise.
2960 (cgraph_node::finalize_function): Likewise.
2961 (cgraph_node::add_new_function): Likewise.
2962 (analyze_functions): Likewise.
2963 * combine.c (setup_incoming_promotions): Likewise.
2964 * config/i386/i386.c (ix86_function_regparm): Likewise.
2965 (ix86_function_sseregparm): Likewise.
2966 (init_cumulative_args): Likewise.
2967 * ipa-cp.c (determine_versionability): Likewise.
2968 (count_callers): Likewise.
2969 (set_single_call_flag): Likewise.
2970 (initialize_node_lattices): Likewise.
2971 (estimate_local_effects): Likewise.
2972 (create_specialized_node): Likewise.
2973 (identify_dead_nodes): Likewise.
2974 * ipa-fnsummary.c (compute_fn_summary): Likewise.
2975 (ipa_fn_summary_generate): Likewise.
2976 * ipa-hsa.c (check_warn_node_versionable): Likewise.
2977 (process_hsa_functions): Likewise.
2978 * ipa-icf.c (set_local): Likewise.
2979 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
2980 * ipa-inline.c (speculation_useful_p): Likewise.
2981 * ipa-profile.c (ipa_propagate_frequency): Likewise.
2982 (ipa_profile): Likewise.
2983 * ipa-split.c (split_function): Likewise.
2984 (execute_split_functions): Likewise.
2985 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
2986 (ipa_sra_ipa_function_checks): Likewise.
2987 * ipa-visibility.c (function_and_variable_visibility): Likewise.
2988 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
2989 * lto-cgraph.c (lto_output_node): Likewise.
2990 (input_overwrite_node): Likewise.
2991 * multiple_target.c (expand_target_clones): Likewise.
2992 * omp-simd-clone.c (simd_clone_create): Likewise.
2993 * trans-mem.c (expand_call_tm): Likewise.
2994 (ipa_tm_mayenterirr_function): Likewise.
2995 (ipa_tm_diagnose_tm_safe): Likewise.
2996 (ipa_tm_diagnose_transaction): Likewise.
2997 (ipa_tm_create_version): Likewise.
2998 (ipa_tm_transform_calls_redirect): Likewise.
2999 (ipa_tm_execute): Likewise.
3000 * tree-inline.c (expand_call_inline): Likewise.
3001
3002 2019-10-29 Martin Liska <mliska@suse.cz>
3003
3004 * symbol-summary.h (function_summary): Pass memory location
3005 to underlaying hash_map (or vec).
3006 (V>::fast_function_summary): Likewise.
3007
3008 2019-10-29 Martin Liska <mliska@suse.cz>
3009
3010 * ggc.h (ggc_alloc_no_dtor): New function.
3011 * ipa-fnsummary.c (ipa_free_fn_summary): Call
3012 destructor and ggc_free.
3013 (ipa_free_size_summary): Call delete instead
3014 of release.
3015 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
3016 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
3017 (ipa_free_all_edge_args): Call destructor and ggc_free.
3018 (ipa_free_all_node_params): Likewise.
3019 (ipcp_free_transformation_sum): Likewise.
3020 * ipa-prop.h (ipa_check_create_node_params):
3021 Call new ggc_alloc_no_dtor.
3022 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
3023 (ipa_sra_analysis): Call destructor and ggc_free.
3024 Replace release with delete operator.
3025 * symbol-summary.h (release): Remove ..
3026 (V>::~fast_function_summary): and move logic here.
3027 Likewise for other classes.
3028
3029 2019-10-29 Richard Biener <rguenther@suse.de>
3030
3031 PR tree-optimization/92260
3032 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
3033 lane-reducing ops.
3034
3035 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
3036
3037 PR tree-optimization/88915
3038 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
3039 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
3040 and make the valueize function pointer also take a void pointer.
3041 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
3042 around vn_valueize, to call it without a context.
3043 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
3044 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
3045 (~_loop_vec_info): Release epilogue_vinfos.
3046 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
3047 number of iterations of epilogue.
3048 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
3049 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
3050 versioning threshold needed for main loop.
3051 (vect_analyze_loop): Likewise.
3052 (find_in_mapping): New helper function.
3053 (update_epilogue_loop_vinfo): New function.
3054 (vect_transform_loop): When vectorizing epilogues re-use analysis done
3055 on main loop and call update_epilogue_loop_vinfo to update it.
3056 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
3057 stmts on loop preheader edge.
3058 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
3059 we decided to vectorize epilogues. Update epilogues NITERS and
3060 construct ADVANCE to update epilogues data references where needed.
3061 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
3062 (vect_do_peeling, vect_update_inits_of_drs,
3063 determine_peel_for_niter, vect_analyze_loop): Add or update
3064 declarations.
3065 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
3066 created loop_vec_info's for epilogues when available. Otherwise analyse
3067 epilogue separately.
3068
3069 2019-10-29 Richard Biener <rguenther@suse.de>
3070
3071 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
3072 example.
3073
3074 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3075
3076 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
3077 index for the COND_EXPR from stmt_info rather than reduc_info.
3078
3079 2019-10-29 Richard Biener <rguenther@suse.de>
3080
3081 PR tree-optimization/65930
3082 * tree-vect-loop.c (check_reduction_path): Relax single-use
3083 check allowing out-of-loop uses.
3084 (vect_is_simple_reduction): SLP reduction chains cannot have
3085 intermediate stmts used outside of the loop.
3086 (vect_create_epilog_for_reduction): The adjustment might need
3087 to be converted.
3088 (vectorizable_reduction): Annotate live stmts of the reduction
3089 chain with STMT_VINFO_REDUC_DEF.
3090 * tree-vect-stms.c (process_use): Remove no longer true asserts.
3091
3092 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3093
3094 * calls.c (pass_by_reference): Leave the target to decide whether
3095 POLY_INT_CST-sized arguments should be passed by value or reference,
3096 rather than forcing them to be passed by reference.
3097 (must_pass_in_stack_var_size): Likewise.
3098 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
3099 V31_REGNUM to P15_REGNUM.
3100 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
3101 Take an extra "silent_p" parameter, defaulting to false.
3102 (aarch64_sve::svbool_type_p): Declare.
3103 (aarch64_sve::nvectors_if_data_type): Likewise.
3104 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
3105 (aarch64_frame::reg_offset): Turn into poly_int64s.
3106 (aarch64_frame::save_regs_size): Likewise.
3107 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
3108 (aarch64_frame::sve_callee_adjust): Likewise.
3109 (aarch64_frame::spare_reg_reg): Likewise.
3110 (ARM_PCS_SVE): New arm_pcs value.
3111 (CUMULATIVE_ARGS::aapcs_nprn): New field.
3112 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
3113 (CUMULATIVE_ARGS::silent_p): Likewise.
3114 (BITS_PER_SVE_PRED): New macro.
3115 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
3116 function. Reject aarch64_vector_pcs attributes on SVE functions.
3117 (aarch64_attribute_table): Use the above handler.
3118 (aarch64_sve_abi): New function.
3119 (aarch64_sve_argument_p): Likewise.
3120 (aarch64_returns_value_in_sve_regs_p): Likewise.
3121 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
3122 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
3123 descriptor for them.
3124 (aarch64_simd_decl_p): Delete.
3125 (aarch64_emit_cfi_for_reg_p): New function.
3126 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
3127 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
3128 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
3129 as partly clobbered for the SVE PCS.
3130 (aarch64_function_ok_for_sibcall): Check whether the two functions
3131 use the same ABI, rather than checking specifically for whether
3132 they're aarch64_vector_pcs functions.
3133 (aarch64_pass_by_reference): Raise an error for attempts to pass
3134 SVE arguments when SVE is disabled. Pass SVE arguments by reference
3135 if there are not enough free registers left, or if the argument is
3136 variadic.
3137 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
3138 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
3139 tuples in memory.
3140 (aarch64_layout_arg): Take a function_arg_info rather than
3141 individual properties. Handle SVE predicates, vectors and tuples.
3142 Raise an error if they are passed to unprototyped functions.
3143 (aarch64_function_arg): If the silent_p flag is set, suppress the
3144 usual error about using float registers without TARGET_FLOAT.
3145 (aarch64_init_cumulative_args): Take a silent_p parameter and store
3146 it in the cumulative_args structure. Initialize aapcs_nprn and
3147 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
3148 error about using float registers without TARGET_FLOAT.
3149 If the silent_p flag is not set, also raise an error about
3150 using SVE functions when SVE is disabled.
3151 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
3152 and call it for SVE functions too. Update aapcs_nprn similarly
3153 to the other register counts.
3154 (aarch64_layout_frame): If a big-endian function needs to save
3155 and restore Z8-Z15, search for a spare predicate that it can use.
3156 Store SVE predicates at the bottom of the register save area,
3157 followed by SVE vectors, then followed by the normal slots.
3158 Keep pointing the hard frame pointer at the base of the normal slots,
3159 above the SVE vectors. Update the various frame creation and
3160 tear-down strategies for the new layout, initializing the new
3161 sve_callee_adjust field. Add an additional layout for frames
3162 whose saved registers are all SVE registers.
3163 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
3164 (aarch64_return_address_signing_enabled): Likewise.
3165 (aarch64_push_regs, aarch64_pop_regs): Update calls to
3166 aarch64_reg_save_mode.
3167 (aarch64_adjust_sve_callee_save_base): New function.
3168 (aarch64_add_cfa_expression): Move earlier in file. Take the
3169 saved register as an rtx rather than a register number and use
3170 its mode for the MEM slot.
3171 (aarch64_save_callee_saves): Remove the mode argument and instead
3172 use aarch64_reg_save_mode to get the mode of each save slot.
3173 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
3174 offsets. Allow GP offsets to be saved at a VL-based offset from
3175 the stack, handling this case using the frame pointer if available
3176 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
3177 big-endian SVE functions; use normal moves for other SVE saves.
3178 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
3179 returns true. Add explicit CFA notes when not storing via the
3180 stack pointer. Do not try to pair SVE saves.
3181 (aarch64_restore_callee_saves): Cope with poly_int64 register
3182 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
3183 use normal moves for other SVE restores. Only add CFA restore notes
3184 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
3185 SVE restores.
3186 (aarch64_get_separate_components): Always keep the first SVE save
3187 in the prologue if we need to use it as a stack probe. Don't allow
3188 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
3189 Likewise the spare predicate register that they need. Update the
3190 offset calculation to account for the SVE save area. Use the
3191 appropriate range check for SVE LDR and STR instructions.
3192 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
3193 (aarch64_process_components): Likewise. Update the offset
3194 calculation to account for the SVE save area. Only mark the
3195 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
3196 Do not try to pair SVE saves.
3197 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
3198 reg_offsets. When handling the final allocation, expect the
3199 first SVE register save to be part of the initial allocation
3200 and for it to act as a probe at SP. Account for the SVE callee
3201 save area in the dump information.
3202 (aarch64_expand_prologue): Update the frame diagram. Fold the
3203 SVE callee allocation into the initial allocation if stack clash
3204 protection is enabled. Use new variables to track the offset
3205 of the frame chain (and hard frame pointer) from the current
3206 stack pointer, and likewise the offset of the bottom of the
3207 register save area. Update calls to aarch64_save_callee_saves
3208 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
3209 saving the FP&SIMD registers. Save the predicate registers.
3210 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
3211 into account when setting the stack pointer from the frame pointer,
3212 and when deciding whether we can inherit the initial adjustment
3213 amount from the prologue. Restore the predicate registers after
3214 the vector registers, then apply sve_callee_adjust, then restore
3215 the general registers.
3216 (aarch64_secondary_reload): Don't use secondary SVE reloads
3217 for VNx16BImode.
3218 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
3219 (aarch64_short_vector_p): Return false for SVE types.
3220 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
3221 at the start of the function. Return false for SVE types.
3222 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
3223 functions too.
3224 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
3225 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
3226 to big-endian targets for bytewise moves.
3227 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
3228
3229 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3230 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3231 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3232
3233 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
3234 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
3235 aarch64-sve-builtins-base.o to extra_objs. Add
3236 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
3237 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
3238 (aarch64-sve-builtins-shapes.o): Likewise.
3239 (aarch64-sve-builtins-base.o): New rules.
3240 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
3241 (aarch64_resolve_overloaded_builtin): Likewise.
3242 (aarch64_check_builtin_call): Likewise.
3243 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
3244 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
3245 pragma.
3246 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
3247 (aarch64_svprfop): New enum.
3248 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
3249 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
3250 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
3251 (aarch64_output_sve_cnt_pat_immediate): Likewise.
3252 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
3253 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
3254 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
3255 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
3256 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
3257 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
3258 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
3259 (aarch64_sve::mangle_builtin_type): Likewise.
3260 (aarch64_sve::resolve_overloaded_builtin): Likewise.
3261 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
3262 (aarch64_sve::expand_builtin): Likewise.
3263 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
3264 (aarch64_sve_int_mode): Likewise.
3265 (aarch64_ptrue_all_mode): New function.
3266 (aarch64_convert_sve_data_to_pred): Make public.
3267 (svprfop_token): New function.
3268 (aarch64_output_sve_prefetch): Likewise.
3269 (aarch64_fold_sve_cnt_pat): Likewise.
3270 (aarch64_output_sve_cnt_pat_immediate): Likewise.
3271 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
3272 instead of gen_while_ult.
3273 (aarch64_replace_reg_mode): Make public.
3274 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
3275 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
3276 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
3277 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
3278 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
3279 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
3280 (aarch64_sve_ptrue_svpattern_p): Likewise.
3281 (aarch64_sve_pred_valid_immediate): Check
3282 aarch64_sve_ptrue_svpattern_p.
3283 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
3284 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
3285 functions.
3286 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
3287 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
3288 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
3289 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
3290 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
3291 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
3292 New unspecs.
3293 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
3294 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
3295 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
3296 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
3297 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
3298 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
3299 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
3300 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
3301 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
3302 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
3303 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
3304 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
3305 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
3306 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
3307 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
3308 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
3309 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
3310 (Vesize): Handle partial vector modes.
3311 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
3312 mode attributes.
3313 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
3314 iterators.
3315 (s, paired_extend, inc_dec): New code attributes.
3316 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
3317 (SVE_INT_UNARY): Add UNSPEC_RBIT.
3318 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
3319 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
3320 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
3321 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
3322 UNSPEC_COND_FMULX.
3323 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
3324 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
3325 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
3326 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
3327 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
3328 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
3329 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
3330 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
3331 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
3332 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
3333 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
3334 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
3335 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
3336 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
3337 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
3338 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
3339 UNSPEC_COND_FSCALE.
3340 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
3341 (binqops_op, binqops_op_rev, last_op): New int attributes.
3342 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
3343 (fn, ab): New int attributes.
3344 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
3345 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
3346 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
3347 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
3348 UNSPEC_RBIT.
3349 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
3350 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
3351 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
3352 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
3353 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
3354 UNSPEC_COND_FMULX.
3355 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
3356 (brk_reg_con, brk_reg_opno): New int attributes.
3357 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
3358 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
3359 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
3360 UNSPEC_COND_FMIN.
3361 (max_elem_bits): New int attribute.
3362 (min_elem_bits): Handle UNSPEC_RBIT.
3363 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
3364 TRUNCATE as well as SUBREG.
3365 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
3366 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
3367 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
3368 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
3369 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
3370 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
3371 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
3372 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
3373 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
3374 (aarch64_gather_scale_operand_h): New predicates.
3375 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
3376 (vgd, vgh, vgw, vsQ, vsS): New constraints.
3377 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
3378 (*aarch64_sve_reinterpret<mode>): Allow any source register
3379 instead of requiring an exact match.
3380 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
3381 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
3382 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
3383 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
3384 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
3385 (aarch64_update_ffrt): New patterns.
3386 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
3387 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3388 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3389 (@aarch64_ld<fn>f1<mode>): New patterns.
3390 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
3391 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3392 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3393 (@aarch64_ldnt1<mode>): New patterns.
3394 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
3395 the scalar part of the address.
3396 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
3397 scalar part of the addresse and add an alternative for handling
3398 nonzero offsets.
3399 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
3400 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
3401 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3402 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3403 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
3404 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
3405 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
3406 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
3407 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3408 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3409 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
3410 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
3411 (@aarch64_sve_prefetch<mode>): New patterns.
3412 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
3413 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
3414 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
3415 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
3416 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
3417 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
3418 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
3419 (@aarch64_stnt1<mode>): New patterns.
3420 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
3421 the scalar part of the address.
3422 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
3423 the scalar part of the addresse and add an alternative for handling
3424 nonzero offsets.
3425 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
3426 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
3427 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
3428 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
3429 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
3430 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
3431 New patterns.
3432 (vec_duplicate<mode>): Use QI as the mode of the input operand.
3433 (extract_last_<mode>): Generalize to...
3434 (@extract_<LAST:last_op>_<mode>): ...this.
3435 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
3436 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
3437 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
3438 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
3439 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
3440 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
3441 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
3442 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
3443 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
3444 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
3445 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
3446 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
3447 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
3448 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
3449 (*aarch64_adr_uxtw_unspec): Likewise.
3450 (*aarch64_adr_uxtw): Rename to...
3451 (*aarch64_adr_uxtw_and): ...this.
3452 (@aarch64_adr<mode>_shift): New expander.
3453 (*aarch64_adr_shift_sxtw): New pattern.
3454 (aarch64_<su>abd<mode>_3): Rename to...
3455 (@aarch64_pred_<su>abd<mode>): ...this.
3456 (<su>abd<mode>_3): Update accordingly.
3457 (@aarch64_cond_<su>abd<mode>): New expander.
3458 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
3459 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
3460 (*<su>mul<mode>3_highpart): Rename to...
3461 (@aarch64_pred_<optab><mode>): ...this.
3462 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
3463 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
3464 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
3465 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
3466 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
3467 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
3468 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
3469 (*v<ASHIFT:optab><mode>3): Rename to...
3470 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
3471 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
3472 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
3473 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
3474 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
3475 (@cond_asrd<mode>): New expander.
3476 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
3477 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
3478 (*sdiv_pow2<mode>3): Delete.
3479 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
3480 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
3481 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
3482 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
3483 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
3484 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
3485 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
3486 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
3487 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
3488 (*add<SVE_F:mode>3): Rename to...
3489 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
3490 for SVE_STRICT_GP.
3491 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
3492 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
3493 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
3494 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
3495 (*sub<SVE_F:mode>3): Rename to...
3496 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
3497 for SVE_STRICT_GP.
3498 (@aarch64_pred_abd<SVE_F:mode>): New expander.
3499 (*fabd<SVE_F:mode>3): Rename to...
3500 (*aarch64_pred_abd<SVE_F:mode>): ...this.
3501 (@aarch64_cond_abd<SVE_F:mode>): New expander.
3502 (*mul<SVE_F:mode>3): Rename to...
3503 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
3504 for SVE_STRICT_GP.
3505 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
3506 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
3507 to...
3508 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
3509 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
3510 (*<nlogical><PRED_ALL:mode>3): Rename to...
3511 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
3512 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
3513 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
3514 (*<logical_nn><PRED_ALL:mode>3): Rename to...
3515 (aarch64_pred_<logical_nn><mode>_z): ...this.
3516 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
3517 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
3518 (*fma<SVE_I:mode>4): Rename to...
3519 (@aarch64_pred_fma<SVE_I:mode>): ...this.
3520 (*fnma<SVE_I:mode>4): Rename to...
3521 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
3522 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
3523 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
3524 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
3525 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
3526 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
3527 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
3528 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
3529 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
3530 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
3531 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
3532 (@aarch64_sve_tmad<mode>): Likewise.
3533 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
3534 (*aarch64_sel_dup<mode>): Rename to...
3535 (@aarch64_sel_dup<mode>): ...this.
3536 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
3537 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
3538 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
3539 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
3540 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
3541 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
3542 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
3543 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
3544 (*fcm<cmp_op><mode>): Rename to...
3545 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
3546 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
3547 (*fcmuo<mode>): Rename to...
3548 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
3549 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
3550 (@aarch64_pred_fac<cmp_op><mode>): New expander.
3551 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
3552 (fold_extract_last_<mode>): Generalize to...
3553 (@fold_extract_<last_op>_<mode>): ...this.
3554 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
3555 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
3556 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
3557 DImode result explicit.
3558 (reduc_plus_scal_<mode>): Update accordingly.
3559 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
3560 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
3561 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
3562 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
3563 (*aarch64_sve_tbl<mode>): Rename to...
3564 (@aarch64_sve_tbl<mode>): ...this.
3565 (@aarch64_sve_compact<mode>): New pattern.
3566 (*aarch64_sve_dup_lane<mode>): Rename to...
3567 (@aarch64_sve_dup_lane<mode>): ...this.
3568 (@aarch64_sve_dupq_lane<mode>): New pattern.
3569 (@aarch64_sve_splice<mode>): Likewise.
3570 (aarch64_sve_<perm_insn><mode>): Rename to...
3571 (@aarch64_sve_<perm_insn><mode>): ...this.
3572 (*aarch64_sve_ext<mode>): Rename to...
3573 (@aarch64_sve_ext<mode>): ...this.
3574 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
3575 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
3576 to...
3577 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
3578 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
3579 Rename to...
3580 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
3581 ...this.
3582 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
3583 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
3584 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
3585 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
3586 to...
3587 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
3588 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
3589 a "@" marker.
3590 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
3591 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
3592 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
3593 pattern.
3594 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
3595 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
3596 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
3597 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
3598 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
3599 "@" marker.
3600 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
3601 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
3602 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
3603 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
3604 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
3605 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
3606 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
3607 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
3608 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
3609 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
3610 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
3611 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
3612 (aarch64_sve_cnt_pat): Likewise.
3613 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
3614 (*aarch64_sve_incsi_pat): Likewise.
3615 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
3616 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
3617 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
3618 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
3619 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
3620 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
3621 (*aarch64_sve_decsi_pat): Likewise.
3622 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
3623 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
3624 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
3625 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
3626 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
3627 (@aarch64_pred_cntp<mode>): Likewise.
3628 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
3629 New expander.
3630 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
3631 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
3632 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3633 New expander.
3634 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3635 New pattern.
3636 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
3637 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
3638 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
3639 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
3640 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
3641 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
3642 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
3643 New expander.
3644 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
3645 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
3646 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3647 New expander.
3648 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3649 New pattern.
3650 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
3651 expander.
3652 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
3653 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
3654 expander.
3655 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
3656 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
3657 expander.
3658 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
3659 * config/aarch64/arm_sve.h: New file.
3660 * config/aarch64/aarch64-sve-builtins.h: Likewise.
3661 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
3662 * config/aarch64/aarch64-sve-builtins.def: Likewise.
3663 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
3664 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
3665 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
3666 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
3667 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
3668 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
3669
3670 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3671
3672 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
3673 New pattern.
3674 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
3675 SVE modes.
3676
3677 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3678
3679 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
3680 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
3681 FFRT_REGNUM + 1.
3682 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
3683 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
3684 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
3685 (aarch64_hard_regno_nregs): Handle the new register classes.
3686 (aarch64_hard_regno_mode_ok): Likewise.
3687 (aarch64_regno_regclass): Likewise.
3688 (aarch64_class_max_nregs): Likewise.
3689 (aarch64_register_move_cost): Likewise.
3690 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
3691 as general register_operands.
3692
3693 2019-10-29 Martin Liska <mliska@suse.cz>
3694
3695 * ggc-common.c: One can't subtract unsigned types
3696 in compare function.
3697
3698 2019-10-29 Martin Liska <mliska@suse.cz>
3699
3700 * cgraphunit.c (symbol_table::compile): Pass
3701 title as dump_memory_report argument.
3702 * toplev.c (dump_memory_report): New argument.
3703 (finalize): Pass new argument.
3704 * toplev.h (dump_memory_report): Add argument.
3705
3706 2019-10-29 Martin Liska <mliska@suse.cz>
3707
3708 * ggc-common.c: Move Leak to the first column.
3709
3710 2019-10-29 Martin Liska <mliska@suse.cz>
3711
3712 * cgraphunit.c (symbol_table::compile): Remove argument
3713 for dump_memory_report.
3714 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
3715 (compare_final): Remove in order to make report
3716 better readable.
3717 * ggc.h (dump_ggc_loc_statistics): Remove argument.
3718 * mem-stats.h (mem_alloc_description::get_list):
3719 Do not pass cmp.
3720 (mem_alloc_description::dump): Likewise here.
3721 * toplev.c (dump_memory_report): Remove final
3722 argument.
3723 (finalize): Likewise.
3724 * toplev.h (dump_memory_report): Remove argument.
3725
3726 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3727
3728 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
3729 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
3730 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
3731 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
3732 accept "const".
3733
3734 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3735
3736 * coretypes.h (string_int_pair): New typedef.
3737 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
3738 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
3739 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
3740
3741 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3742
3743 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
3744 (simulate_builtin_function_decl): Declare.
3745 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
3746 (LANG_HOOKS_INITIALIZER): Include it.
3747 * langhooks.c (add_builtin_function_common): Rename to...
3748 (build_builtin_function): ...this. Add a location parameter and use
3749 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
3750 the decl instead.
3751 (add_builtin_function): Update accordingly, passing the returned
3752 decl to the lang hook.
3753 (add_builtin_function_ext_scope): Likewise
3754 (simulate_builtin_function_decl): New function.
3755
3756 2019-10-29 Jakub Jelinek <jakub@redhat.com>
3757
3758 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
3759 example, use actual names of supported offload targets.
3760
3761 PR target/92258
3762 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
3763
3764 2019-10-28 Martin Sebor <msebor@redhat.com>
3765
3766 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
3767 (handle_store): Pass argument to get_addr_stridx.
3768
3769 2019-10-28 Martin Sebor <msebor@redhat.com>
3770
3771 PR tree-optimization/92226
3772 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
3773 the offset is in the open range outlined by SI's length.
3774
3775 2019-10-28 Martin Sebor <msebor@redhat.com>
3776
3777 PR c/66970
3778 * doc/cpp.texi (__has_builtin): Document.
3779 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
3780
3781 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
3782
3783 PR target/82981
3784 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
3785 doubleword and low doubleword result of multiplication on
3786 MIPS64R6.
3787
3788 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
3789 pure qualifier to the built-in.
3790 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
3791 built-ins.
3792 (struct mips_builtin_description): Add is_pure flag.
3793 (mips_init_builtins): Mark built-in as pure if the flag in the
3794 corresponding mips_builtin_description struct is set.
3795
3796 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
3797 alternative which covers the floating-point input value. Also
3798 forbid the split of insert.d pattern for floating-point values.
3799
3800 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
3801
3802 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
3803 * config/riscv/riscv-sr.c: New file.
3804 * config/riscv/riscv.c (riscv_reorg): New function.
3805 (TARGET_MACHINE_DEPENDENT_REORG): Define.
3806 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
3807 (riscv_remove_unneeded_save_restore_calls): Declare.
3808 * config/riscv/t-riscv (riscv-sr.o): New build rule.
3809
3810 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3811
3812 PR tree-optimization/92163
3813 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
3814 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
3815 before calling bitmap_set_bit.
3816 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
3817 delete_dead_or_redundant_assignment.
3818 (dse_dom_walker::dse_optimize_stmt): Likewise.
3819 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
3820
3821 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3822
3823 PR middle-end/91272
3824 * tree-vect-stmts.c (vectorizable_condition): Support
3825 EXTRACT_LAST_REDUCTION with fully-masked loops.
3826
3827 2019-10-28 Richard Biener <rguenther@suse.de>
3828
3829 PR tree-optimization/92252
3830 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
3831 STMT_VINFO_REDUC_IDX when swapping operands.
3832
3833 2019-10-28 Richard Biener <rguenther@suse.de>
3834
3835 PR tree-optimization/92241
3836 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
3837 we failed to update the reduction index do not use the pattern
3838 stmts for the reduction chain.
3839 (vectorizable_reduction): When the reduction chain is corrupt,
3840 fail.
3841 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
3842 fail to update the reduction chain.
3843
3844 2019-10-28 Richard Biener <rguenther@suse.de>
3845
3846 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
3847 STMT_VINFO_REDUC_IDX from the actual stmt.
3848 (vect_transform_reduction): Likewise.
3849 (vectorizable_reduction): Compute the reduction chain length,
3850 do not recompute the reduction operand index. Remove no longer
3851 necessary restriction for condition reduction chains.
3852
3853 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
3854
3855 PR target/92225
3856 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
3857 condition for V2DImode.
3858
3859 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
3860
3861 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
3862 Remove %k operand modifier.
3863 (*vec_extractv2df_1_sse): Remove %q operand modifier.
3864
3865 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
3866
3867 PR rtl-optimization/92007
3868 * cfgcleanup.c (thread_jump): Add an assertion that we don't
3869 call it after reload if hot/cold partitioning has been done.
3870 (class pass_postreload_jump): Rename to
3871 pass_jump_after_combine.
3872 (make_pass_postreload_jump): Rename to
3873 make_pass_jump_after_combine.
3874 * passes.def(pass_postreload_jump): Move before reload, rename
3875 to pass_jump_after_combine.
3876 * tree-pass.h (make_pass_postreload_jump): Rename to
3877 make_pass_jump_after_combine.
3878
3879 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
3880
3881 PR ipa/92242
3882 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
3883 for missing EDGE_REF
3884 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
3885
3886 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
3887
3888 PR tree-optimization/88760
3889 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
3890 Enable -funroll-loops for -O2 and above.
3891 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
3892 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
3893 do not turn on web and rngreg implicitly, if the unroller is not
3894 explicitly enabled.
3895
3896 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
3897
3898 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
3899 jump functions.
3900
3901 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
3902
3903 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
3904 * cgraph.h (cgraph_node::rtl_info): Likewise.
3905
3906 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
3907
3908 * ipa-cp.c (propagate_constants_across_call): If args are not available
3909 just drop everything to varying.
3910 (find_aggregate_values_for_callers_subset): Watch for missing
3911 edge summary.
3912 (find_more_scalar_values_for_callers_subs): Likewise.
3913 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
3914 update_jump_functions_after_inlining, propagate_controlled_uses):
3915 Watch for missing summaries.
3916 (ipa_propagate_indirect_call_infos): Remove summary after propagation
3917 is finished.
3918 (ipa_write_node_info): Watch for missing summaries.
3919 (ipa_read_edge_info): Create new ref.
3920 (ipa_edge_args_sum_t): Add remove.
3921 (IPA_EDGE_REF_GET_CREATE): New macro.
3922 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
3923 edge summary.
3924 (remap_edge_change_prob): Likewise.
3925
3926 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
3927
3928 * ipa-inline-transform.c (inline_call): update function summaries
3929 after expanidng thunk.
3930
3931 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
3932
3933 * ipa-icf.c (sem_function::merge): Update function summaries.
3934 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
3935
3936 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
3937
3938 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
3939 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
3940 operand already has scalar mode.
3941 (iptr): Remove SF/DF.
3942
3943 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
3944
3945 PR target/91289
3946 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
3947 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
3948 this.
3949
3950 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
3951
3952 * config/i386/sse.md
3953 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
3954 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
3955 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
3956 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
3957 <sse>_vmmaskcmp<mode>3):
3958 Change predicates from vector_operand to nonimmediate_operand,
3959 constraints xBm to xm, since scalar operations don't need
3960 memory address alignment.
3961 (avx512f_vmcmp<mode>3<round_saeonly_name>,
3962 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
3963 round_saeonly_nimm_predicate with
3964 round_saeonly_nimm_scalar_predicate.
3965 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
3966 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
3967 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
3968 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
3969 avx512f_vmfmadd_<mode>_mask3<round_name>,
3970 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
3971 *avx512f_vmfmsub_<mode>_mask<round_name>,
3972 avx512f_vmfmsub_<mode>_mask3<round_name>,
3973 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
3974 *avx512f_vmfnmadd_<mode>_mask<round_name>,
3975 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
3976 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
3977 *avx512f_vmfnmsub_<mode>_mask<round_name>,
3978 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
3979 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
3980 cvtusi2<ssescalarmodesuffix>32<round_name>,
3981 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
3982 round_nimm_predicate with round_nimm_scalr_predicate.
3983 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
3984 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
3985 avx512er_vmrcp28<mode><round_saeonly_name>,
3986 avx512er_vmrsqrt28<mode><round_saeonly_name>,
3987 ): Replace round_saeonly_nimm_predicate with
3988 round_saeonly_nimm_scalar_predicate.
3989 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
3990 vector_operand with nonimmediate_operand.
3991 * config/i386/subst.md (round_scalar_nimm_predicate,
3992 round_saeonly_scalar_nimm_predicate): Replace
3993 vector_operand with nonimmediate_operand.
3994
3995 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
3996
3997 PR target/89071
3998 * config/i386/i386.md (*rcpsf2_sse): Add
3999 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
4000 (*rsqrtsf2_sse): Ditto.
4001 (*sqrt<mode>2_sse): Ditto.
4002 (sse4_1_round<mode>2): separate constraint vm, add
4003 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
4004 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
4005 by pass rpad.
4006 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
4007 Ditto.
4008 (*sse_vmrsqrtv4sf2): Ditto.
4009 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
4010 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
4011 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
4012 <iptr> pointer size modifier since vround support memory operand.
4013
4014 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
4015
4016 PR target/85969
4017 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
4018 static function.
4019
4020 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
4021 Tobias Burnus <tobias@codesourcery.com>
4022
4023 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
4024 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
4025 common block decls.
4026
4027 2019-10-25 Richard Biener <rguenther@suse.de>
4028
4029 PR tree-optimization/92222
4030 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
4031 (_slp_oprnd_info::second_pattern): Likewise.
4032 (_slp_oprnd_info::any_pattern): New.
4033 (vect_create_oprnd_info): Adjust.
4034 (vect_get_and_check_slp_defs): Compute whether any stmt is
4035 in a pattern.
4036 (vect_build_slp_tree_2): Avoid building up a node from scalars
4037 if any of the operand defs, not just the first, is in a pattern.
4038
4039 2019-10-25 Richard Biener <rguenther@suse.de>
4040
4041 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
4042 swapping if we actually have to modify the IL on a shared stmt.
4043 (vect_build_slp_tree_2): Never fail swapping on shared stmts
4044 because we no longer modify the IL.
4045
4046 2019-10-25 Martin Liska <mliska@suse.cz>
4047
4048 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
4049
4050 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
4051
4052 * tree-vect-loop.c (vectorizable_reduction): Restrict the
4053 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
4054 handled by vect_transform_reduction. Allow fully-masked loops
4055 to be used with reduction chains.
4056 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
4057 operations in fully-masked loops.
4058 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
4059 operations in fully-masked loops.
4060
4061 2019-10-25 Richard Biener <rguenther@suse.de>
4062
4063 * tree-vect-loop.c (vectorizable_reduction): Verify
4064 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
4065 correctly.
4066 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
4067 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
4068 stmts.
4069
4070 2019-10-24 Jakub Jelinek <jakub@redhat.com>
4071
4072 * gimplify.h (omp_construct_selector_matches): Declare.
4073 * gimplify.c (struct gimplify_omp_ctx): Add code member.
4074 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
4075 called function if needed for flag_openmp.
4076 (gimplify_scan_omp_clauses): Set ctx->code.
4077 (omp_construct_selector_matches): New function.
4078 * omp-general.h (omp_constructor_traits_to_codes,
4079 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
4080 * omp-general.c (omp_constructor_traits_to_codes,
4081 omp_context_selector_matches, omp_resolve_declare_variant): New
4082 functions.
4083
4084 * config/arc/arc.c (hwloop_optimize): Add missing space in string
4085 literal.
4086 * config/rx/rx.c (rx_print_operand): Likewise.
4087 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4088 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
4089 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
4090 Likewise.
4091 * genemit.c (emit_c_code): Likewise.
4092 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
4093
4094 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4095
4096 * symbols-summary.h (fast_function_summary<T *, V>::release,
4097 fast_call_summary<T *, V>::release): Free m_vector.
4098
4099 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4100
4101 * cgraphunit.c (symbol_table::process_new_functions): Call
4102 ipa_free_size_summary.
4103 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
4104 (devirtualization_time_bonus): Update.
4105 (ipcp_propagate_stage): Update.
4106 * ipa-fnsummary.c (ipa_size_summaries): New.
4107 (ipa_fn_summary_alloc): Alloc size summary.
4108 (dump_ipa_call_summary): Update.
4109 (ipa_dump_fn_summary): Update.
4110 (analyze_function_body): Update.
4111 (compute_fn_summary): Likewise.
4112 (ipa_get_stack_frame_offset): New function.
4113 (inline_update_callee_summaries): Do not update frame offsets.
4114 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
4115 remove call and function summary.
4116 (ipa_update_overall_fn_summary): Update.
4117 (inline_read_section): Update.
4118 (ipa_fn_summary_write): Update.
4119 (ipa_free_fn_summary): Do not remove summaries.
4120 (ipa_free_size_summary): New.
4121 (release summary pass): Also run at WPA.
4122 * ipa-fnsummary.h (ipa_size_summary): Declare.
4123 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
4124 estimated_self_stack_size.
4125 (ipa_size_summary_t): New type.
4126 (ipa_size_summaries): Declare.
4127 (ipa_free_size_summary): Declare.
4128 (ipa_get_stack_frame_offset): Declare.
4129 * ipa-icf.c (sem_function::merge): Update.
4130 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
4131 (estimate_growth): Update.
4132 (growth_likely_positive): Update.
4133 (clone_inlined_nodes): Update.
4134 (inline_call): Update.
4135 * ipa-inline.c (caller_growth_limits): Update.
4136 (edge_badness): Update.
4137 (recursive_inlining): Update.
4138 (inline_small_functions): Update.
4139 (inline_to_all_callers_1): Update.
4140 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
4141
4142 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
4143
4144 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
4145 (uavg<mode>3_ceil): ... This.
4146 (altivec_vavgs<VI_char>): Rename to...
4147 (avg<mode>3_ceil): ... This.
4148 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
4149 VAVGUW, VAVGSW): Adjust.
4150
4151 2019-10-24 Nathan Sidwell <nathan@acm.org>
4152
4153 * dumpfile.c (dump_begin): Reorder decls to use RAII.
4154
4155 2019-10-24 Martin Liska <mliska@suse.cz>
4156
4157 * symbol-summary.h (gt_pch_nx): Mark all functions
4158 with gcc_unreachable as we do not expect to be called.
4159
4160 2019-10-24 Richard Biener <rguenther@suse.de>
4161
4162 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
4163 chains try harder with operand swapping and instead of
4164 putting a shifted chain into the reduction operands put
4165 a repetition of the final reduction op there as if we'd
4166 reassociate the expression.
4167
4168 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4169
4170 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
4171 statics_not_read and statics_not_written to statics_read and
4172 statics_written respectively.
4173 (no_module_statics): New static var.
4174 (ipa_reference_get_not_read_global): Rename to ...
4175 (ipa_reference_get_read_global): ... this.
4176 (ipa_reference_get_not_written_global): Rename to ...
4177 (ipa_reference_get_written_global): ... this.
4178 (dump_static_vars_set_to_file): Dump no_module_statics.
4179 (copy_static_var_set): Add for propagation parameter.
4180 (ipa_init): Initialize no_module_statics.
4181 (ipa_ref_opt_summary_t::duplicate): Update.
4182 (ipa_ref_opt_summary_t::remove): Update.
4183 (propagate): Update.
4184 (write_node_summary_p): Look correctly for bitmap differences.
4185 (ipa_reference_write_optimization_summary): Update.
4186 (ipa_reference_read_optimization_summary): Update.
4187 * ipa-reference.h
4188 (ipa_reference_get_not_read_global): Rename to ...
4189 (ipa_reference_get_read_global): ... this.
4190 (ipa_reference_get_not_written_global): Rename to ...
4191 (ipa_reference_get_written_global): ... this.
4192 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
4193 (call_may_clobber_ref_p_1): Update.
4194
4195 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4196
4197 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
4198 and add comment.
4199 (msp430_hard_regno_nregs_with_padding): Remove.
4200
4201 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4202
4203 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
4204 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
4205 shift amount is between 1 and 4.
4206 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
4207 is between 1 and 4.
4208
4209 2019-10-24 Richard Biener <rguenther@suse.de>
4210
4211 PR tree-optimization/92205
4212 * tree-vect-loop.c (vectorizable_reduction): Restrict
4213 search for alternate vectype_in to lane-reducing patterns
4214 we support.
4215
4216 2019-10-24 Richard Biener <rguenther@suse.de>
4217
4218 PR tree-optimization/92203
4219 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
4220 Skip eliminating conversion stmts inserted by insertion.
4221
4222 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
4223
4224 * config/s390/s390.c (s390_get_thread_pointer): Use
4225 gen_get_thread_pointer.
4226 (s390_expand_split_stack_prologue): Likewise.
4227 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
4228 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
4229 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
4230 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
4231 parameterized name.
4232
4233 2019-10-24 Richard Biener <rguenther@suse.de>
4234
4235 * tree-vect-slp.c (vect_analyze_slp): When reduction group
4236 SLP discovery fails try to handle the reduction as part
4237 of SLP reduction discovery.
4238
4239 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
4240
4241 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
4242 declaration.
4243 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
4244 attribute if it exists, rather than the insn size. If we use the
4245 insn size, adjust the size to remove the extra size that prefixed
4246 instructions take.
4247 (rs6000_adjust_insn_length): New function.
4248 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
4249 update the instruction sized if prefixed instructions are used.
4250 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
4251 (non_prefixed_length attribute): Delete.
4252 (num_insns attribute): New insn attribute to return the number of
4253 instructions.
4254 (max_prefixed_insns attribute): New insn attribute to return the
4255 maximum number of prefixed instructions in an insn.
4256 (length attribute): Do not adjust for prefix instructions here,
4257 punt to ADJUST_INSN_LENGTH.
4258 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
4259 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
4260 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
4261 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
4262 max_prefixed_insns and num_insns.
4263
4264 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
4265 (movtd_64bit_nodm): Reformat.
4266 (mov<mode>_32bit): Reformat.
4267 (mov<mode>_softfloat): Reformat.
4268 (FMOVE128_GPR splitter): Reformat.
4269 (DIFD splitter): Reformat.
4270 (TI2 splitter): Reformat.
4271 * config/rs6000/predicates.md (lwa_operand): If the bottom two
4272 bits of the offset for the memory address are non-zero, use PLWA
4273 if prefixed instructions are available.
4274
4275 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4276
4277 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
4278
4279 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4280
4281 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
4282 previous patch.
4283
4284 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4285
4286 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
4287 (cmp_symbol_files): New.
4288 (lto_output): Copy sections in file order.
4289 * lto-streamer.h (lto_file_decl_data): Add field order.
4290
4291 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4292
4293 * ipa-reference.h (ipa_reference_var_uid): Move offline.
4294 * ipa-reference.c (reference_vars_map_t): new type.
4295 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
4296 (ipa_reference_var_uid): Implement.
4297 (varpool_node_hooks): New static var.
4298 (varpool_removal_hook): New function.
4299 (is_improper): Do not check bitmap for id==-1
4300 (get_static_name): Update.
4301 (ipa_init): Initialize new datastructures.
4302 (analyze_function): Do not recompute ids.
4303 (propagate): Free reference_vars_to_consider.
4304 (stream_out_bitmap): Update.
4305 (ipa_reference_read_optimization_summary): Update.
4306
4307 2019-10-23 qing zhao <qing.zhao@oracle.com>
4308
4309 PR gcov-profile/91971
4310 * coverage.c (coverage_init): Mangle the full path of filename when
4311 filename is a absolute path.
4312
4313 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4314
4315 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
4316 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
4317 (msp430_has_hwmult): New.
4318 (msp430_output_labelref):
4319 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
4320 * config/msp430/msp430.md (mulhisi3): Likewise.
4321 (umulhisi3): Likewise.
4322 (mulsidi3): Likewise.
4323 (umulsidi3): Likewise.
4324
4325 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4326
4327 PR ipa/92074
4328 * params.def (inline-heuristics-hint-percent): Set to 600.
4329
4330 2019-10-23 Richard Biener <rguenther@suse.de>
4331
4332 PR tree-optimization/65930
4333 * tree-vect-loop.c (check_reduction_path): Allow conversions
4334 that only change the sign.
4335 (vectorizable_reduction): Relax latch def stmts we handle further.
4336
4337 2019-10-23 Jakub Jelinek <jakub@redhat.com>
4338
4339 PR debug/90231
4340 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
4341 (remove_unused_ivs): Use it instead of get_computation_at. When
4342 choosing best candidate, only consider candidates where
4343 get_debug_computation_at actually returns non-NULL.
4344
4345 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
4346
4347 PR tree-optimization/92131
4348 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
4349 range would be symbolic, drop to varying for any explicit overflow
4350 in the constant part or if neither range is a singleton.
4351
4352 2019-10-23 Martin Liska <mliska@suse.cz>
4353
4354 PR middle-end/81669
4355 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
4356 Initialize m_data.
4357
4358 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
4359
4360 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
4361 int_mode_for_mode rather than mode_for_int_vector for scalars.
4362
4363 2019-10-23 Richard Biener <rguenther@suse.de>
4364
4365 PR tree-optimization/92179
4366 * tree-vect-stmts.c (vectorizable_shift): For shift args
4367 that are all the same remove type restriction in the SLP case.
4368 Adjust SLP code to handle converting of the shift arg to
4369 only apply in case the modes are different.
4370
4371 2019-10-23 Martin Liska <mliska@suse.cz>
4372
4373 PR ipa/91969
4374 * ipa-inline.c (recursive_inlining): Do not print
4375 when curr->count is not initialized.
4376
4377 2019-10-23 Richard Biener <rguenther@suse.de>
4378
4379 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
4380 op from scalars in case there's a constant operand in its
4381 definition.
4382
4383 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
4384
4385 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
4386 against out of range max skip or log values.
4387
4388 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
4389
4390 * cgraph.c (dump_graphviz): Change name to dump_name
4391
4392 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
4393
4394 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
4395 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
4396 subtraction from a carry operation.
4397
4398 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
4399
4400 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
4401
4402 2019-10-22 Richard Biener <rguenther@suse.de>
4403
4404 PR tree-optimization/92173
4405 * tree-vect-loop.c (vectorizable_reduction): If
4406 vect_transform_reduction cannot handle code-generation try without
4407 the single-def-use-cycle optimization. Pass optab_vector to
4408 optab_for_tree_code to get vector shifts as that's what we'd
4409 generate.
4410
4411 2019-10-22 Michael Matz <matz@suse.de>
4412
4413 PR middle-end/90796
4414 * gimple-loop-jam.c (any_access_function_variant_p): New function.
4415 (adjust_unroll_factor): Use it to constrain safety, new parameter.
4416 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
4417
4418 2019-10-22 Richard Biener <rguenther@suse.de>
4419
4420 PR tree-optimization/92173
4421 * tree-vect-loop.c (vectorizable_reduction): If
4422 vect_transform_reduction cannot handle code-generation try without
4423 the single-def-use-cycle optimization. Pass optab_vector to
4424 optab_for_tree_code to get vector shifts as that's what we'd
4425 generate.
4426
4427 2019-10-22 Martin Liska <mliska@suse.cz>
4428
4429 * diagnostic-format-json.cc (json_from_expanded_location):
4430 Use json::integer_number.
4431 * gcov.c (output_intermediate_json_line): Use new
4432 json::integer_number.
4433 (output_json_intermediate_file): Likewise.
4434 * json.cc (number::print): Move to ...
4435 (float_number::print): ... this.
4436 (integer_number::print): New.
4437 (test_writing_numbers): Move to ...
4438 (test_writing_float_numbers): ... this.
4439 (test_writing_integer_numbers): New.
4440 (json_cc_tests): Register test_writing_integer_numbers.
4441 * json.h (class value): Add forward declaration
4442 for float_number and integer_number.
4443 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
4444 (class number): Move to ...
4445 (class float_number): ... this.
4446 (class integer_number): New.
4447 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
4448 Use json::integer_number.
4449 (optrecord_json_writer::location_to_json): Likewise.
4450 (optrecord_json_writer::profile_count_to_json): Likewise.
4451 (optrecord_json_writer::pass_to_json): Likewise.
4452
4453 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
4454
4455 * tree-vect-slp.c (vect_slp_bb_region): Check whether
4456 autodetected_vector_size rather than vector_size is zero.
4457 * tree-vect-loop.c (vect_analyze_loop): Likewise.
4458 Set autodetected_vector_size immediately after calling
4459 vect_analyze_loop_2. Check for a fatal error before advancing
4460 next_size.
4461
4462 2019-10-21 Jason Merrill <jason@redhat.com>
4463
4464 * lock-and-run.sh: Check for process existence rather than timeout.
4465
4466 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4467
4468 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
4469 widening multiplication.
4470
4471 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
4472
4473 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
4474 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
4475 type attribute.
4476 (subsi3_carryin_shift): Separate into register and constant controlled
4477 alternatives. Use shift_amount_operand for operand 4. Set shift
4478 attribute and simplify type attribute.
4479 (subsi3_carryin_shift_alt): Likewise.
4480 (rsbsi3_carryin_shift): Likewise.
4481 (rsbsi3_carryin_shift_alt): Likewise.
4482 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
4483 and register controlled shifts into distinct alternatives.
4484 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
4485 (andsi_not_shiftsi_si_scc): Likewise.
4486 (arm_cmpsi_negshiftsi_si): Likewise.
4487 (not_shiftsi): Remove redundant M constraint from alternative 1.
4488 (not_shiftsi_compare0): Likewise.
4489 (arm_cmpsi_insn): Remove redundant alternative 2.
4490 (cmpsi_shift_swp): Likewise.
4491 (sub_shiftsi): Likewise.
4492 (sub_shiftsi_compare0_scratch): Likewise.
4493 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
4494 (thumb2_cmpsi_neg_shiftsi): Likewise.
4495
4496 2019-10-21 Richard Biener <rguenther@suse.de>
4497
4498 PR tree-optimization/92162
4499 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
4500 STMT_VINFO_REDUC_IDX in reduc_info.
4501 * tree-vect-stmts.c (vectorizable_condition): Likewise.
4502
4503 2019-10-21 Richard Biener <rguenther@suse.de>
4504
4505 * tree-vectorizer.h (_slp_tree::ops): New member.
4506 (SLP_TREE_SCALAR_OPS): New.
4507 (vect_get_slp_defs): Adjust prototype.
4508 * tree-vect-slp.c (vect_free_slp_tree): Release
4509 SLP_TREE_SCALAR_OPS.
4510 (vect_create_new_slp_node): Initialize it. New overload for
4511 initializing by an operands array.
4512 (_slp_oprnd_info::ops): New member.
4513 (vect_create_oprnd_info): Initialize it.
4514 (vect_free_oprnd_info): Release it.
4515 (vect_get_and_check_slp_defs): Populate the operands array.
4516 Do not swap operands in the IL when not necessary.
4517 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
4518 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
4519 swap operands in the operands array. Do not swap operands in
4520 the IL.
4521 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
4522 (vect_gather_slp_loads): Fix.
4523 (vect_detect_hybrid_slp_stmts): Likewise.
4524 (vect_slp_analyze_node_operations_1): Search for a internal
4525 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
4526 (vect_slp_analyze_node_operations): Skip ops-only stmts for
4527 the def-type push/pop dance.
4528 (vect_get_constant_vectors): Compute number_of_vectors here.
4529 Use SLP_TREE_SCALAR_OPS and simplify greatly.
4530 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
4531 (vect_get_slp_defs): Simplify greatly.
4532 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
4533 (vect_transform_reduction): Likewise.
4534 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
4535 (vectorizable_call): Likewise.
4536 (vectorizable_operation): Likewise.
4537 (vectorizable_load): Likewise.
4538 (vectorizable_condition): Likewise.
4539 (vectorizable_comparison): Likewise.
4540
4541 2019-10-21 Richard Biener <rguenther@suse.de>
4542
4543 PR tree-optimization/92161
4544 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
4545 for reductions.
4546
4547 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4548
4549 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
4550 (aarch64_rndr): New define_insn.
4551 (aarch64_rndrrs): Likewise.
4552 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
4553 (TARGET_RNG): Likewise.
4554 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
4555 argument.
4556 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
4557 Add fourth argument in prototype.
4558 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
4559 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
4560 (aarch64_init_rng_builtins): Define.
4561 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
4562 (aarch64_expand_rng_builtin): Define.
4563 (aarch64_general_expand_builtin): Use IGNORE argument, handle
4564 RNG builtins.
4565 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
4566 __ARM_FEATURE_RNG when TARGET_RNG.
4567 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
4568
4569 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
4570
4571 * tree-vect-stmts (ensure_base_align): Only change alignment if new
4572 alignment is more restrictive.
4573
4574 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4575
4576 * tree-vectorizer.h (vec_info::vector_size): New member variable.
4577 (vect_update_max_nunits): Update comment.
4578 (current_vector_size): Delete.
4579 * tree-vect-stmts.c (current_vector_size): Likewise.
4580 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
4581 of current_vector_size.
4582 (get_mask_type_for_scalar_type): Likewise.
4583 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
4584 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
4585 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
4586 (vect_double_mask_nunits, vect_transform_loop): Likewise.
4587 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
4588 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
4589
4590 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4591
4592 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
4593 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
4594 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
4595 accordingly.
4596
4597 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4598
4599 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
4600 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
4601 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
4602 call accordingly.
4603 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
4604
4605 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4606
4607 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
4608 a loop_vec_info.
4609 (vect_set_loop_condition_masked): Update call accordingly.
4610
4611 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4612
4613 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
4614 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
4615 (simple_integer_narrowing): Update call accordingly.
4616 (vectorizable_conversion): Likewise.
4617
4618 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4619
4620 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
4621 (vectorizable_call): Update call accordingly.
4622
4623 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4624
4625 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
4626 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
4627 (duplicate_and_interleave): Update call accordingly.
4628 * tree-vect-loop.c (vectorizable_reduction): Likewise.
4629
4630 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4631
4632 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
4633 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
4634 (vect_get_constant_vectors): Update call accordingly.
4635 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
4636
4637 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4638
4639 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
4640 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
4641 (vect_prologue_cost_for_slp_op): Update call accordingly.
4642 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
4643 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
4644 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
4645 (get_mask_type_for_scalar_type): Likewise.
4646 (vect_get_vector_types_for_stmt): Likewise.
4647 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4648 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
4649 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
4650 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
4651 (vect_split_statement, vect_convert_input): Likewise.
4652 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
4653 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
4654 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
4655 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
4656 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
4657 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
4658 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
4659 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
4660 (vect_recog_mask_conversion_pattern): Likewise.
4661 (vect_add_conversion_to_pattern): Likewise.
4662 (vect_recog_gather_scatter_pattern): Likewise.
4663 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
4664 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
4665
4666 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4667
4668 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
4669 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
4670 (vect_check_load_store_mask): Update call accordingly.
4671 (vect_get_mask_type_for_stmt): Likewise.
4672 * tree-vect-patterns.c (check_bool_pattern): Likewise.
4673 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
4674 (vect_convert_mask_for_vectype): Likewise.
4675
4676 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4677
4678 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
4679 a vec_info.
4680 (vect_recog_dot_prod_pattern): Update call accordingly.
4681 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
4682 (vect_recog_widen_sum_pattern): Likewise.
4683
4684 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4685
4686 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
4687 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
4688 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
4689 accordingly.
4690
4691 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4692
4693 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
4694 get_vectype_for_scalar_type_and_size instead of
4695 get_vectype_for_scalar_type.
4696
4697 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
4698
4699 * common.opt (-fcommon): Fix description.
4700
4701 2019-10-20 Jakub Jelinek <jakub@redhat.com>
4702
4703 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
4704 * config/i386/i386.c (ix86_pre_reload_split): New function.
4705 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
4706 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
4707 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
4708 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
4709 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
4710 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
4711 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
4712 *<shift_insn><dwi>3_doubleword_mask,
4713 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
4714 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
4715 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
4716 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
4717 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
4718 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
4719 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
4720 *avx2_<code>v8qiv8si2<mask_name>_2,
4721 *sse4_1_<code>v4qiv4si2<mask_name>_2,
4722 *sse4_1_<code>v4hiv4si2<mask_name>_2,
4723 *avx512f_<code>v8qiv8di2<mask_name>_2,
4724 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
4725 *sse4_1_<code>v2hiv2di2<mask_name>_2,
4726 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
4727 sse4_2_pcmpistr): Likewise.
4728
4729 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
4730
4731 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
4732 now defaults to https.
4733
4734 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
4735
4736 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
4737 skip non-zero array accesses.
4738
4739 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
4740
4741 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
4742 and return a boolean success value. Move the allocation and
4743 initialization of the bb_vec_info to...
4744 (vect_slp_bb_region): ...here. Update call accordingly.
4745 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
4746 than in vect_slp_analyze_bb_1.
4747
4748 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
4749
4750 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
4751 when processing the given datarefs for the first time and
4752 check_datarefs subsequently.
4753 (vect_slp_bb_region): New function, split out of...
4754 (vect_slp_bb): ...here. Don't recompute the region bounds and
4755 dataref sets when retrying with a different vector size.
4756
4757 2019-10-19 Jakub Jelinek <jakub@redhat.com>
4758 Uroš Bizjak <ubizjak@gmail.com>
4759
4760 PR target/92140
4761 * config/i386/predicates.md (int_nonimmediate_operand): New special
4762 predicate.
4763 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
4764 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
4765 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
4766 define_insn_and_split patterns.
4767
4768 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
4769
4770 * config/rs6000/rs6000.md: Delete out--of-date comment about
4771 special-casing integer loads.
4772
4773 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
4774
4775 * escaped_string.h (escaped_string): New header.
4776 * tree.c (escaped_string): Remove escaped_string class.
4777
4778 2019-10-18 Martin Sebor <msebor@redhat.com>
4779
4780 PR tree-optimization/92157
4781 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
4782 compute_string_length to return a negative result.
4783
4784 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4785
4786 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
4787 (negvsi3, negvdi3): Delete.
4788 (negdi2_compare): Delete.
4789
4790 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4791
4792 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
4793 operations.
4794 (subdi3_compare1): Delete pattern.
4795 (subvsi3_borrow): New insn pattern.
4796 (subvsi3_borrow_imm): Likewise.
4797
4798 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4799
4800 * config/arm/arm.md (subv<mode>4): Delete.
4801 (subvdi4): New expander pattern.
4802 (subvsi4): Likewise. Handle some immediate values.
4803 (subvsi3_intmin): New insn pattern.
4804 (subvsi3): Likewise.
4805 (subvsi3_imm1): Likewise.
4806 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
4807 idioms.
4808
4809 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4810
4811 * config/arm/arm.md (usubvdi4): Allow registers or integers for
4812 incoming operands. Early split the calculation into SImode
4813 operations.
4814 (usubvsi3_borrow): New insn pattern.
4815 (usubvsi3_borrow_imm): Likewise.
4816
4817 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4818
4819 * config/arm/arm.md (usubv<mode>4): Delete expansion.
4820 (usubvsi4): New pattern. Allow some immediate values for inputs.
4821 (usubvdi4): New pattern.
4822
4823 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4824
4825 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
4826 or second operand of the PLUS inside a DImode equality test to be
4827 sign-extend when selecting CC_Vmode.
4828 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
4829 instructions.
4830 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
4831 expand patterns.
4832 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
4833 (addsi3_cin_vout_0): Likewise.
4834 (adddi3_compareV): Delete.
4835
4836 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4837
4838 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
4839 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
4840 to transform this back into the summation version when that leads
4841 to smaller code.
4842
4843 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4844
4845 * config/arm/arm.md (addv<mode>4): Delete.
4846 (addvsi4): New pattern. Handle immediate values that the architecture
4847 supports.
4848 (addvdi4): New pattern.
4849 (addsi3_compareV): Rename to ...
4850 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
4851 and use COMPARE rather than NE.
4852 (addsi3_compareV_imm): New pattern.
4853 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
4854 a signed-overflow check.
4855
4856 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4857
4858 * config/arm/arm-modes.def (CC_ADC): New CC mode.
4859 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
4860 CC_ADCmode.
4861 (maybe_get_arm_condition_code): Handle CC_ADCmode.
4862 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
4863 with overflow.
4864 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
4865 expand patterns.
4866 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
4867 (addsi3_cin_cout_imm_insn): Likewise.
4868 (adddi3_compareC): Delete insn.
4869 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
4870
4871 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4872
4873 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
4874 * (uaddv<mode>4): Delete expansion pattern.
4875 (uaddvsi4): New pattern.
4876 (uaddvdi4): Likewise.
4877 (addsi3_compareC): Delete pattern, change callers to use
4878 addsi3_compare_op1.
4879 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
4880 reduce the number of alternatives and re-work type attribute handling.
4881 (addsi3_compare_op2): Clean up constraints to reduce the number of
4882 alternatives and re-work type attribute handling.
4883 (compare_addsi2_op0): Likewise.
4884 (compare_addsi2_op1): Likewise.
4885
4886 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4887
4888 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
4889 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
4890 for DImode operands.
4891 (arm_gen_dicompare_reg): Remove unreachable expansion code.
4892 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
4893 CC_NCVmode.
4894 * config/arm/arm.md (arm_cmpdi_insn): Delete.
4895 (arm_cmpdi_unsigned): Delete.
4896
4897 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4898
4899 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
4900 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
4901 unchanged only if that will be cheaper.
4902 (arm_select_cc_mode): Recognize a swapped comparison that will
4903 be regenerated using RSBS or RSCS. Relax restriction on selecting
4904 CC_RSBmode.
4905 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
4906 a constant.
4907 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
4908 is CC_RSBmode.
4909 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
4910 as CCmode.
4911 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
4912 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
4913
4914 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4915
4916 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
4917 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
4918 need these modes.
4919 (arm_gen_dicompare_reg): New code to early expand the sub-operations
4920 of EQ, NE, LT, GE, LTU and GEU.
4921 * config/arm/iterators.md (CC_EXTEND): New code attribute.
4922 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
4923 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
4924 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
4925 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
4926
4927 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4928
4929 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
4930 operand 2.
4931 (cstoredi4): Similarly, but for operand 3.
4932 * config/arm/arm.c (arm_canoncialize_comparison): Allow
4933 canonicalization of unsigned compares with a constant on Arm.
4934 Prefer using const+1 and adjusting the comparison over swapping the
4935 operands whenever the original constant was not valid.
4936 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
4937 register here.
4938 (arm_validize_comparison): Do not force invalid DImode operands to
4939 registers here.
4940
4941 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4942
4943 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
4944 return CC_Zmode if comparing against a constant where one word is
4945 zero.
4946 (arm_gen_compare_reg): Split DImode handling to ...
4947 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
4948 against simple constants.
4949 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
4950
4951 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4952
4953 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
4954 (rsbsi3_carryin_shift_alt): Likewise.
4955
4956 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4957
4958 * config/arm/arm.md (negscc_borrow): New pattern.
4959 (mov_negscc): Don't split if the insn would match negscc_borrow.
4960 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
4961 (thumb2_mov_negscc_strict_it): Likewise.
4962
4963 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4964
4965 * config/arm/arm.c (arm_insn_cost): New function.
4966 (TARGET_INSN_COST): Override default definition.
4967
4968 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4969
4970 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
4971 borrow operations.
4972
4973 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4974
4975 * config/arm/arm.c (strip_carry_operation): New function.
4976 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
4977 for SImode.
4978
4979 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4980
4981 * config/arm/predicates.md (arm_carry_operation): New special
4982 predicate.
4983 * config/arm/iterators.md (LTUGEU): Delete iterator.
4984 (cnb): Delete code attribute.
4985 (optab): Delete ltu and geu elements.
4986 * config/arm/arm.md (addsi3_carryin): Renamed from
4987 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
4988 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
4989 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
4990 (addsi3_carryin_clobercc): Similarly.
4991 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
4992 Thumb2 state.
4993
4994 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4995
4996 * config/arm/arm.md (arm_subdi3): Delete insn.
4997 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
4998
4999 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5000
5001 * config/arm/arm-modes.def (CC_RSB): New CC mode.
5002 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
5003 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
5004 return CC_RSBmode.
5005 (maybe_get_arm_condition_code): Handle CC_RSBmode.
5006 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
5007 expand.
5008 (subdi3): Rewrite to early-expand the sub-operations.
5009 (rsb_im_compare): New pattern.
5010 (negdi2): Delete.
5011 (negdi2_insn): Delete.
5012 (arm_negsi2): Correct type attribute to alu_imm.
5013 (negsi2_0compare): New insn pattern.
5014 (negsi2_carryin): New insn pattern.
5015
5016 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5017
5018 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
5019 operand 2.
5020
5021 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5022
5023 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
5024 to match canonical form.
5025
5026 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5027
5028 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
5029 (extend<mode>di2): Likewise.
5030
5031 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5032
5033 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
5034 * config/arm/arm.c (arm_decompose_di_binop): New function.
5035 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
5036 If not generating Thumb-1 code, decompose the operation into 32-bit
5037 pieces.
5038 * add0si_carryin_<optab>: New pattern.
5039
5040 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5041
5042 * arm.md (adddi3): Only accept register operands.
5043 (arm_adddi3): Convert to simple insn with no split. Do not accept
5044 constants.
5045 (adddi_sesidi_di): Delete patern.
5046 (adddi_zesidi_di): Likewise.
5047 (uaddv<mode>4): Use LTU as condition for branch.
5048 (adddi3_compareV): Convert to simple insn with no split.
5049 (addsi3_compareV_upper): Delete pattern.
5050 (adddi3_compareC): Convert to simple insn with no split. Correct
5051 flags setting expression.
5052 (addsi3_compareC_upper): Delete pattern.
5053 (addsi3_compareC): Correct flags setting expression.
5054 (subdi3_compare1): Convert to simple insn with no split.
5055 (subsi3_carryin_compare): Delete pattern.
5056 (arm_subdi3): Convert to simple insn with no split.
5057 (subdi_zesidi): Delete pattern.
5058 (subdi_di_sesidi): Delete pattern.
5059 (subdi_zesidi_di): Delete pattern.
5060 (subdi_sesidi_di): Delete pattern.
5061 (subdi_zesidi_zesidi): Delete pattern.
5062 (negvdi3): Use s_register_operand.
5063 (negdi2_compare): Convert to simple insn with no split.
5064 (negdi2_insn): Likewise.
5065 (negsi2_carryin_compare): Delete pattern.
5066 (negdi_zero_extendsidi): Delete pattern.
5067 (arm_cmpdi_insn): Convert to simple insn with no split.
5068 (negdi2): Don't call gen_negdi2_neon.
5069 * config/arm/neon.md (adddi3_neon): Delete pattern.
5070 (subdi3_neon): Delete pattern.
5071 (negdi2_neon): Delete pattern.
5072 (splits for negdi2_neon): Delete splits.
5073
5074 2019-10-18 Jakub Jelinek <jakub@redhat.com>
5075
5076 PR middle-end/92153
5077 * ggc-page.c (release_pages): Read g->alloc_size before free rather
5078 than after it.
5079
5080 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
5081
5082 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
5083 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
5084 new multilib variants and new mappings.
5085
5086 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
5087
5088 PR target/86040
5089 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
5090
5091 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5092 Richard Sandiford <richard.sandiford@arm.com>
5093
5094 PR target/86753
5095 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
5096 and define hashmap traits for it.
5097 (loop_vec_info::scalar_cond_masked_set): New member.
5098 (vect_record_loop_mask): Adjust prototype.
5099 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
5100 Implement method.
5101 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
5102 vect_record_loop_mask.
5103 (vectorizable_live_operation): Likewise.
5104 (vect_record_loop_mask): New param scalar_mask. Add entry
5105 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
5106 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
5107 Pass it as last arg to vect_record_loop_mask.
5108 (vectorizable_call): Pass scalar_mask as last arg to
5109 vect_record_loop_mask.
5110 (vectorizable_store): Likewise.
5111 (vectorizable_load): Likewise.
5112 (vectorizable_condition): Check if another part of vectorized code
5113 applies loop_mask to condition or to it's inverse, and if yes,
5114 apply loop_mask to result of vector comparison.
5115
5116 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
5117
5118 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
5119
5120 2019-10-18 Jakub Jelinek <jakub@redhat.com>
5121
5122 PR tree-optimization/92056
5123 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
5124 before calling compute_builtin_object_size.
5125
5126 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
5127
5128 PR target/65342
5129 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
5130 (movdi_low_st): Delete.
5131 * config/rs6000/rs6000.c
5132 (darwin_rs6000_legitimate_lo_sum_const_p): New.
5133 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
5134 * config/rs6000/rs6000.md (movsi_low): Delete.
5135
5136 2019-10-17 Jason Merrill <jason@redhat.com>
5137
5138 * gimplify.h (get_initialized_tmp_var): Add default argument to
5139 post_p.
5140 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
5141 NULL post_p argument.
5142 * targhooks (std_gimplify_va_arg_expr): Likewise.
5143
5144 2019-10-17 Richard Biener <rguenther@suse.de>
5145
5146 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
5147 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
5148 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
5149 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
5150 * tree-vect-loop.c (vect_is_simple_reduction): Set
5151 STMT_VINFO_REDUC_CODE.
5152 (vectorizable_reduction): Remove dead and redundant code, use
5153 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
5154
5155 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
5156
5157 Fix breakage introduced by r276985.
5158
5159 * config/avr/avr.c (avr_option_override): Remove set of
5160 PARAM_ALLOW_STORE_DATA_RACES.
5161 * common/config/avr/avr-common.c (avr_option_optimization_table)
5162 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
5163
5164 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
5165
5166 * config/i386/i386.h (processor_costs): Add clear_ratio.
5167 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
5168 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
5169 of 6 and move_ratio in all cost models.
5170
5171 2019-10-17 Richard Biener <rguenther@suse.de>
5172
5173 * tree-vect-loop.c (check_reduction_path): Compute reduction
5174 operation here.
5175 (vect_is_simple_reduction): Remove special-case of single-stmt
5176 reduction path detection.
5177
5178 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
5179
5180 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
5181
5182 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
5183
5184 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
5185 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
5186 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
5187 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
5188 New combine patterns.
5189 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
5190 above.
5191 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
5192
5193 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
5194
5195 * tree-vrp.c (value_range_base::dump): Display +INF for both
5196 pointers and integers when appropriate.
5197
5198 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5199
5200 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
5201 when to use versioning threshold.
5202
5203 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5204
5205 * tree-vect-loop.c (determine_peel_for_niter): New function contained
5206 outlined code from ...
5207 (vect_analyze_loop_2): ... here.
5208
5209 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5210
5211 * tree-vect-loop.c (vect_transform_loop): Move code from here...
5212 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
5213 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
5214
5215 2019-10-17 Richard Biener <rguenther@suse.de>
5216
5217 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
5218 (vect_is_simple_reduction): Move all validity checks ...
5219 (vectorizable_reduction): ... here. Compute whether we
5220 need a fold-left reduction here.
5221 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
5222 both overloads, check needs_fold_left_reduction_p directly.
5223 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
5224
5225 2019-10-17 Richard Biener <rguenther@suse.de>
5226
5227 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
5228 TARGET_MEM_REF creation.
5229
5230 2019-10-17 Richard Biener <rguenther@suse.de>
5231
5232 PR tree-optimization/92129
5233 * tree-vect-loop.c (vectorizable_reduction): Also fail
5234 on GIMPLE_SINGLE_RHS.
5235
5236 2019-10-17 Jakub Jelinek <jakub@redhat.com>
5237
5238 PR tree-optimization/92056
5239 * tree-object-size.c (cond_expr_object_size): Return early if then_
5240 processing resulted in unknown size.
5241
5242 PR tree-optimization/92115
5243 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
5244 temporary if it could trap.
5245
5246 2019-10-17 Richard Biener <rguenther@suse.de>
5247
5248 PR debug/91887
5249 * dwarf2out.c (gen_formal_parameter_die): Also try to match
5250 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
5251
5252 2019-10-16 Jakub Jelinek <jakub@redhat.com>
5253
5254 * tree-ssa-strlen.c (maybe_invalidate): Use
5255 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
5256
5257 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
5258 Jim Wilson <jimw@sifive.com>
5259
5260 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
5261 regs to SIBCALL_REGS.
5262 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
5263 passing regs to SIBCALL_REGS.
5264
5265 2019-10-16 Martin Sebor <msebor@redhat.com>
5266
5267 PR tree-optimization/83821
5268 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
5269 the length of a string when available.
5270 (handle_builtin_memset) Add argument.
5271 (handle_store, strlen_check_and_optimize_call): Same.
5272 (check_and_optimize_stmt): Same. Pass it to callees.
5273
5274 2019-10-16 Martin Sebor <msebor@redhat.com>
5275
5276 PR tree-optimization/91996
5277 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
5278 information.
5279 (compare_nonzero_chars): Add an overload.
5280 (count_nonzero_bytes): Add an argument. Call overload above.
5281 Handle non-constant lengths in some range.
5282 (handle_store): Add an argument.
5283 (check_and_optimize_stmt): Pass an argument to handle_store.
5284
5285 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
5286
5287 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
5288
5289 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5290
5291 * config/mips/mips.c (mips_expand_builtin_insn): Force the
5292 operands which correspond to the same input-output register to
5293 have the same pseudo assigned to them.
5294
5295 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
5296
5297 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
5298
5299 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
5300
5301 * config/aarch64/aarch64.c (aarch64_classify_symbol):
5302 Apply reasonable limit to symbol offsets.
5303
5304 2019-10-16 Richard Biener <rguenther@suse.de>
5305
5306 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
5307 (vect_is_simple_reduction): Delay checking to
5308 vectorizable_reduction and relax the checking.
5309 (vectorizable_reduction): Check we have a simple use. Check
5310 for bogus condition reductions.
5311 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
5312 are looking at the last stmt in a pattern sequence when
5313 filling in backedge PHI values.
5314
5315 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
5316 Jiufu Guo <guojiufu@linux.ibm.com>
5317
5318 PR target/70010
5319 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
5320 the callee explicitly disables some isa_flags the caller is using.
5321
5322 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5323
5324 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
5325
5326 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5327
5328 * genmodes.c (mode_data::order): New field.
5329 (blank_mode): Update accordingly.
5330 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
5331 (make_vector_modes): Likewise.
5332 (VECTOR_MODES): Update use accordingly.
5333 (cmp_modes): Sort by the new order field ahead of sorting by size.
5334 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
5335 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
5336 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
5337 (aarch64_classify_vector_mode): Handle the new partial modes.
5338 (aarch64_vl_bytes): New function.
5339 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
5340 when counting the number of registers in an SVE mode.
5341 (aarch64_class_max_nregs): Likewise.
5342 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
5343 in registers yet.
5344 (aarch64_classify_address): Treat partial vectors analogously
5345 to full vectors.
5346 (aarch64_print_address_internal): Consolidate the printing of
5347 MUL VL addresses, using aarch64_vl_bytes as the number of
5348 bytes represented by "VL".
5349 (aarch64_vector_mode_supported_p): Reject partial vector modes.
5350
5351 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5352
5353 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
5354 rather than known_lt when choosing frame layouts.
5355
5356 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5357
5358 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
5359 that all the adjustments add up to the full frame size.
5360 Use crtl->outgoing_args_size directly as the final adjustment
5361 where appropriate.
5362
5363 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5364
5365 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
5366 "frame" reference instead of always referring directly to
5367 "cfun->machine->frame".
5368
5369 2019-10-16 Richard Biener <rguenther@suse.de>
5370
5371 PR tree-optimization/92119
5372 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
5373 against missing bswap lhs.
5374
5375 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5376
5377 PR middle-end/92033
5378 * poly-int.h (constant_lower_bound_with_limit): New function.
5379 (constant_upper_bound_with_limit): Likewise.
5380 * doc/poly-int.texi: Document them.
5381 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
5382 into the worst-case INTEGER_CST bounds.
5383
5384 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
5385
5386 PR ipa/91088
5387 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
5388 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
5389 * ipa-predicat.h (struct expr_eval_op): New struct.
5390 (expr_eval_ops): New typedef.
5391 (struct condition): Add type and param_ops fields, remove size field.
5392 (add_condition): Replace size parameter with type parameter, add
5393 param_ops parameter.
5394 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
5395 (predicate::add_clause): Add comparisons on type and param_ops.
5396 (dump_condition): Add debug dump for param_ops.
5397 (remap_after_inlining): Adjust call arguments to add_condition.
5398 (add_condition): Replace size parameter with type parameter, add
5399 param_ops parameter. Unshare constant value used in conditions.
5400 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
5401 parameter expressions using param_ops.
5402 (decompose_param_expr): New function.
5403 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
5404 to replace call to unmodified_parm_or_parm_agg_item.
5405 (set_switch_stmt_execution_predicate): Likewise.
5406 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
5407 with type.
5408 (inline_read_section): Read param_ops from summary stream.
5409 (ipa_fn_summary_write): Write param_ops to summary stream.
5410
5411 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
5412
5413 PR rtl-optimization/92107
5414 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
5415 expression written.
5416
5417 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
5418
5419 * config/darwin.c: Update description of fix and continue.
5420
5421 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
5422
5423 * config/darwin.c (darwin_binds_local_p): Update to call
5424 default_binds_local_p_3 () directly. amend comments.
5425
5426 2019-10-15 Richard Biener <rguenther@suse.de>
5427
5428 * lto-streamer-out.c (lto_variably_modified_type_p): New.
5429 (tree_is_indexable): Use it.
5430 * tree-streamer-out.c (pack_ts_type_common_value_fields):
5431 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
5432 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
5433
5434 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5435
5436 * config/msp430/msp430.md (zero_extendqipsi2): New.
5437 (zero_extendqisi2): Optimize case where src register and base dst
5438 register are the same.
5439 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
5440 (zero_extendpsisi2): Optimize r->m case.
5441 Add unnamed insn patterns to catch insns combine searches for when
5442 optimizing pointer manipulation.
5443
5444 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5445
5446 * config/msp430/msp430.md: Group zero_extend* insns together.
5447
5448 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5449
5450 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
5451 constraint.
5452 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
5453 POST_INC.
5454 (msp430_subreg): Likewise.
5455 (msp430_split_addsi): Likewise.
5456 (msp430_print_operand_addr): Likewise.
5457 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
5458 (USE_STORE_POST_INCREMENT): Define.
5459 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
5460 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
5461 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
5462 (msp430_general_dst_operand): New.
5463 (msp430_general_dst_nonv_operand): New.
5464 (msp430_nonsubreg_operand): Remove.
5465 (msp430_nonsubreg_dst_operand): New.
5466 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
5467 of defunct msp430_nonsubreg_operand.
5468 (msp430_nonsubregnonpostinc_or_imm_operand): New.
5469
5470 2019-10-15 Richard Biener <rguenther@suse.de>
5471
5472 PR tree-optimization/91929
5473 * tree-ssa-pre.c (pre_expr_d::loc): New member.
5474 (get_or_alloc_expr_for_name): Initialize it.
5475 (get_or_alloc_expr_for_constant): Likewise.
5476 (phi_translate_1): Copy it.
5477 (create_expression_by_pieces): Use the original location
5478 of the expression for the inserted stmt.
5479 (compute_avail): Record the location of the stmt for the
5480 expressions created.
5481
5482 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
5483
5484 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
5485 before using tree_to_uhwi.
5486
5487 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
5488
5489 * config/s390/s390.md: Run %a0:DI splitters only after reload.
5490
5491 2019-10-15 Richard Biener <rguenther@suse.de>
5492
5493 PR tree-optimization/92094
5494 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
5495 do not adjust the reduction definition def type.
5496 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
5497 defines the latch argument of the PHI.
5498
5499 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
5500
5501 PR target/92035
5502 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
5503 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
5504 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
5505 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
5506 _mm_maskz_roundscale_round_sd): New intrinsics.
5507 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
5508 __builtin_ia32_rndscales?_mask_round builtins instead of
5509 __builtin_ia32_rndscales?_round.
5510 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
5511 __builtin_ia32_rndscalesd_round): Remove.
5512 (__builtin_ia32_rndscaless_mask_round,
5513 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
5514 * config/i386/sse.md
5515 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
5516 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
5517 ... this, adjust and add subst atrributes to make it maskable.
5518
5519 2019-10-15 Richard Biener <rguenther@suse.de>
5520
5521 PR middle-end/92046
5522 * common.opt (fallow-store-data-races): New.
5523 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
5524 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
5525 * doc/invoke.texi (fallow-store-data-races): Document.
5526 (--param allow-store-data-races): Remove docs.
5527 * opts.c (default_options_table): Enable -fallow-store-data-races
5528 at -Ofast.
5529 (default_options_optimization): Do not enable --param
5530 allow-store-data-races at -Ofast.
5531 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
5532 instead of PARAM_ALLOW_STORE_DATA_RACES.
5533 * tree-ssa-loop-im.c (execute_sm): Likewise.
5534
5535 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5536
5537 PR tree-optimization/92085
5538 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
5539 instead of calling it unconditionally after
5540 delete_dead_or_redundant_assignment and fix indentation.
5541
5542 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5543
5544 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
5545 TARGET_VFP_DOUBLE.
5546 (*fmsub<SDF:mode>4): Likewise.
5547 *fnmsub<SDF:mode>4): Likewise.
5548 (*fnmadd<SDF:mode>4): Likewise.
5549
5550 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
5551
5552 * doc/tree-ssa.texi: Update renamed macro name.
5553
5554 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5555
5556 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
5557 vector constants.
5558
5559 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
5560
5561 * config/darwin.c: Use unsigned ints for the picbase label
5562 counters, initialise the vars explicitly.
5563 (update_pic_label_number_if_needed): Move a variable declaration
5564 to where it's needed.
5565 (machopic_output_function_base_name): Use a more strict checking
5566 assert, and and unsigned int for the picbase label counter.
5567 (machopic_get_function_picbase): Likewise.
5568
5569 2019-10-14 Richard Biener <rguenther@suse.de>
5570
5571 PR middle-end/92046
5572 * dse.c (scan_insn): Use param max_active_local_stores.
5573 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
5574 based on optimization level.
5575 * loop-invariant.c (move_loop_invariants): Adjust
5576 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
5577 * opts.c (default_options_optimization): Do not adjust
5578 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
5579 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
5580
5581 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
5582
5583 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
5584
5585 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
5586
5587 * config/arm/arm.c (arm_option_override): Don't override sched
5588 pressure algorithm.
5589
5590 2019-10-14 Richard Biener <rguenther@suse.de>
5591
5592 PR tree-optimization/92069
5593 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
5594 cycles do not set vect_nested_cycle on the latch definition.
5595
5596 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
5597
5598 * function-abi.h (expr_callee_abi): Declare.
5599 * function-abi.cc (expr_callee_abi): New function.
5600
5601 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
5602
5603 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
5604 into [1,MAX].
5605 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
5606 non-zero being represented as [1,MAX].
5607
5608 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
5609
5610 * tree-sra.c (dump_access): Add missing braces.
5611
5612 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
5613
5614 * config/darwin.c (machopic_indirection_name): Rework the
5615 function to emit linker-visible symbols only for indirections
5616 in the data section. Clean up the code and update comments.
5617
5618 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
5619
5620 * config/darwin.c (machopic_indirect_data_reference): Remove
5621 redundant code.
5622
5623 2019-10-13 Nathan Sidwell <nathan@acm.org>
5624
5625 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
5626
5627 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5628
5629 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
5630 c99_runtime.
5631
5632 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
5633
5634 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
5635 so non-virutal are before virutals.
5636 (output_function): Avoid body modifications.
5637
5638 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
5639
5640 * config/pa/pa.c (pa_output_call): Load descriptor address to register
5641 %r22. Load function address before global pointer.
5642 (pa_attr_length_indirect_call): Adjust length of inline versions of
5643 $$dyncall.
5644 (pa_output_indirect_call): Remove fast inline version of $$dyncall
5645 before normal cases. Update inline $$dyncall sequences to preserve
5646 function descriptor address in register %r22.
5647 (TRAMPOLINE_CODE_SIZE): Adjust.
5648 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
5649 register %r22 contains trampoline address.
5650 (pa_trampoline_init): Adjust offsets.
5651 (pa_trampoline_adjust_address): Likewise.
5652 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
5653
5654 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
5655
5656 PR target/67183
5657 * config/darwin.c (machopic_indirection): New field to flag
5658 non-lazy-symbol-pointers in the data section.
5659 (machopic_indirection_name): Compute if an indirection should
5660 appear in the data section.
5661 (machopic_output_data_section_indirection): New callback split
5662 from machopic_output_indirection.
5663 (machopic_output_stub_indirection): Likewise.
5664 (machopic_output_indirection): Retain the code for non-lazy
5665 symbol pointers in their regular section.
5666 (machopic_finish): Use the new callbacks to order the indirection
5667 output.
5668
5669 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
5670
5671 * config/darwin-protos.h (machopic_finish): Delete.
5672 * config/darwin.c (machopic_finish): Make static.
5673
5674 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
5675
5676 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
5677 sections when building kernel extension code.
5678
5679 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
5680
5681 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
5682 later standard."
5683
5684 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
5685
5686 * config/pa/pa.c (pa_option_override): Remove trailing comma
5687 from warning.
5688
5689 2019-10-12 Jakub Jelinek <jakub@redhat.com>
5690
5691 PR middle-end/92063
5692 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
5693 <case VEC_COND_EXPR>: Return false with *handled = false.
5694 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
5695 recursing on the first operand.
5696 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
5697 instead of tree_could_trap_p.
5698 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
5699
5700 2019-10-11 Jim Wilson <jimw@sifive.com>
5701
5702 PR rtl-optimization/91860
5703 * combine.c (subst): If new_rtx is a constant, also check for
5704 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
5705
5706 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
5707
5708 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
5709 INTVAL when calling store_bit_field.
5710
5711 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
5712
5713 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
5714 size.
5715
5716 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
5717
5718 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
5719 vectorizable_live_operation.
5720 (vectorizable_live_operation): Adjust parameters.
5721 * tree-vect-stmts.c (vect_init_vector,
5722 vect_gen_widened_results_half): Fix typo in function comment.
5723 (can_vectorize_live_stmts): Adjust function comment.
5724 Adjust parameters. Adjust call to vectorizable_live_operation.
5725 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
5726 (vect_transform_stmt): Adjust function comment. Adjust call to
5727 can_vectorize_live_stmts.
5728 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
5729
5730 2019-10-11 Richard Biener <rguenther@suse.de>
5731
5732 PR tree-optimization/90883
5733 PR tree-optimization/91091
5734 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
5735 alias-sets both for recording VN table entries and continuing
5736 walking after translating through copies. Handle same-sized
5737 reads from SSA names by returning the plain SSA name.
5738 (eliminate_dom_walker::eliminate_stmt): Properly handle
5739 non-size precision stores in redundant store elimination.
5740
5741 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
5742
5743 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
5744 (ggc_collect): Dump later to not interfere with release_page dump.
5745 (ggc_trim): New function.
5746 * ggc-none.c (ggc_trim): New.
5747 * ggc.h (ggc_trim): Declare.
5748
5749 2019-10-11 Richard Biener <rguenther@suse.de>
5750
5751 PR tree-optimization/92066
5752 PR tree-optimization/92046
5753 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5754 Fix bogus cost model check.
5755
5756 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
5757
5758 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
5759 (LANG_HOOKS_DECLS): Add it.
5760 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
5761 update comment for omp_is_optional_argument.
5762 * omp-general.c (omp_is_allocatable_or_ptr): New.
5763 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
5764 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
5765 Fortran's optional arguments and allocatable/pointer scalars
5766 with use_device_addr.
5767
5768 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
5769
5770 PR target/77918
5771 * config/s390/2827.md: Add new opcodes.
5772 * config/s390/2964.md: Likewise.
5773 * config/s390/3906.md: Likewise.
5774 * config/s390/8561.md: Likewise.
5775 * config/s390/s390-builtins.def (s390_vfchesb): Use
5776 the new vec_cmpgev4sf_quiet_nocc.
5777 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
5778 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
5779 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
5780 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
5781 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
5782 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
5783 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
5784 * config/s390/s390-modes.def (CCSFPS): New mode.
5785 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
5786 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
5787 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
5788 (s390_expand_vec_compare): Use non-signaling patterns where
5789 necessary.
5790 (s390_reverse_condition): Support CCSFPS.
5791 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
5792 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
5793 (asm_fcmp_op): Likewise.
5794 (*smaxv2df3_vx): Use pattern for quiet comparison.
5795 (*sminv2df3_vx): Likewise.
5796 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
5797 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
5798 (vec_cmpgt<mode>_quiet_nocc): Likewise.
5799 (vec_cmplt<mode>_quiet_nocc): New expander.
5800 (vec_cmpge<mode>_quiet_nocc): New pattern.
5801 (vec_cmple<mode>_quiet_nocc): New expander.
5802 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
5803 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
5804 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
5805 (*vec_cmpge<mode>_signaling_nocc): Likewise.
5806 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
5807 (vec_cmpungt<mode>): New expander.
5808 (vec_cmpunge<mode>): Likewise.
5809 (vec_cmpuneq<mode>): Use quiet patterns.
5810 (vec_cmpltgt<mode>): Allow only on z14+.
5811 (vec_cmpordered<mode>): Use quiet patterns.
5812 (vec_cmpunordered<mode>): Likewise.
5813 (VEC_CMP_EXPAND): Add ungt and unge.
5814
5815 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
5816
5817 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
5818 parameter.
5819 * lto-streamer-out.c: Include tree-dfa.h.
5820 (output_cfg): Do not use cfun.
5821 (lto_prepare_function_for_streaming): New.
5822 (output_function): Do not push cfun; do not initialize loop optimizer.
5823 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
5824 * passes.c (ipa_write_summaries): Use it.
5825 (ipa_write_optimization_summaries): Do not modify bodies.
5826 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
5827 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
5828 * tree-ssa-dse.c (pass_dse::execute): Update use of
5829 renumber_gimple_stmt_uids.
5830 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
5831
5832 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
5833
5834 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
5835 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
5836
5837 2019-10-10 Joseph Myers <joseph@codesourcery.com>
5838
5839 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
5840 macros.
5841 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
5842 Also define DFP macros for these conditions.
5843 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
5844 DEC128_SUBNORMAL_MIN): Do not define.
5845 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
5846 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
5847
5848 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
5849 Sandra Loosemore <sandra@codesourcery.com>
5850
5851 PR middle-end/26241
5852 * doc/lto.texi (IPA): Reference to the IPA passes.
5853 * doc/passes.texi (Pass manager): Add node IPA passes and
5854 description for each IPA pass.
5855
5856 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
5857
5858 * ipa-reference.c: Do not include splay-tree.h
5859 (reference_vars_to_consider): Turn to hash map.
5860 (get_static_name, ipa_init, analyze_function, propagate,
5861 stream_out_bitmap, ipa_reference_write_optimization_summary,
5862 ipa_reference_write_optimization_summary): Update.
5863
5864 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
5865
5866 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
5867
5868 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
5869
5870 * config/darwin.c: Lookup Objective C metadata and force indirection
5871 for IVAR refs.
5872
5873 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
5874
5875 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
5876 addresses.
5877 (mem_operand_gpr): Add check for prefixed addresses.
5878 (mem_operand_ds_form): Add check for prefixed addresses.
5879 (rs6000_legitimate_offset_address_p): If we support prefixed
5880 addresses, check for a 34-bit offset instead of 16-bit.
5881 (rs6000_legitimate_address_p): Add check for prefixed addresses.
5882 Do not allow load/store with update if the address is prefixed.
5883 (rs6000_mode_dependent_address): If we support prefixed
5884 addresses, check for a 34-bit offset instead of 16-bit.
5885
5886 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
5887
5888 PR target/77918
5889 * config/s390/vector.md (vcond_comparison_operator): New
5890 predicate.
5891 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
5892
5893 2019-10-10 David Malcolm <dmalcolm@redhat.com>
5894
5895 PR 87488
5896 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
5897 -D.
5898 * configure.ac (--with-documentation-root-url): New option.
5899 * configure: Regenerate.
5900 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
5901 option URL, add it as a new string field of the diagnostic option.
5902 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
5903 (print_option_information): If get_option_url is non-NULL, call
5904 it, and if the result is non-NULL, potentially emit an escape
5905 sequence to markup the option text with the resulting URL.
5906 * diagnostic.h (diagnostic_context::get_option_url): New callback.
5907 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
5908 example of JSON output.
5909 * opts-diagnostic.h (get_option_url): New decl.
5910 * opts.c (get_option_url): New function.
5911 * toplev.c (general_init): Initialize the get_option_url callback.
5912
5913 2019-10-10 David Malcolm <dmalcolm@redhat.com>
5914
5915 PR 87488
5916 * common.opt (fdiagnostics-urls=): New option.
5917 (diagnostic-url.h): Add SourceInclude.
5918 (diagnostic_url_rule): New enum.
5919 * diagnostic-color.c: Include "diagnostic-url.h".
5920 (diagnostic_urls_enabled_p): New function.
5921 * diagnostic-url.h: New file.
5922 * diagnostic.c: Include "diagnostic-url.h".
5923 (diagnostic_urls_init): New function.
5924 * diagnostic.h (diagnostic_urls_init): New decl.
5925 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
5926 -fdiagnostics-urls to the list.
5927 (-fdiagnostics-urls): New option.
5928 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
5929 (driver::global_initializations): Call diagnostic_urls_init.
5930 * opts-global.c (init_options_once): Likewise.
5931 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
5932 * pretty-print.c (pretty_printer::pretty_printer): Initialize
5933 show_urls.
5934 (pp_begin_url): New function.
5935 (pp_end_url): New function.
5936 (selftest::test_urls): New selftest.
5937 (selftest::pretty_print_c_tests): Call it.
5938 * pretty-print.h (pretty_printer::show_urls): New field.
5939 (pp_begin_url): New decl.
5940 (pp_end_url): New decl.
5941
5942 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
5943
5944 PR target/92022
5945 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
5946
5947 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
5948
5949 PR target/88630
5950 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
5951 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
5952 also for TARGET_FPU_SH4_300.
5953 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
5954 TARGET_SH4_300.
5955 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
5956 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
5957 (*negsf2_i): Split into ...
5958 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
5959 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
5960 (**abssf2_i): Split into ...
5961 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
5962 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
5963 (*negdf2_i): Split into ...
5964 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
5965 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
5966 (**abssf2_i): Split into ...
5967 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
5968
5969 2019-10-10 Richard Biener <rguenther@suse.de>
5970
5971 PR middle-end/92046
5972 * opts.c (finish_options): Do not influence global --params
5973 from options that are adjustable per function.
5974 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5975 Apply --param adjustment based on active cost-model.
5976 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
5977 further store-sinking when vectorization or if-conversion
5978 are not enabled.
5979
5980 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
5981
5982 PR middle-end/92037
5983 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
5984 rather than ggc_alloc_cleared to alloc symbol table.
5985 * toplev.c (general_init): Likewise.
5986 * cgraph.h (symbol_table): Explicitly construct every field.
5987
5988 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
5989
5990 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
5991 (PF_Z15): ... this.
5992 * config.gcc: Add z15 as option for --with-arch and --with-tune
5993 configure switches.
5994 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
5995 error reporting for unsupported builtins.
5996 * config/s390/s390-opts.h (enum processor_type): Rename
5997 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
5998 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
5999 * config/s390/driver-native.c (s390_host_detect_local_cpu):
6000 Likewise.
6001 * config/s390/s390-builtins.def: Likewise.
6002 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
6003 (s390_expand_builtin): Add missing check for unsupported builtins.
6004 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
6005 (s390_rtx_costs): Likewise.
6006 (s390_get_sched_attrmask): Rename arch13 to z15.
6007 (s390_get_unit_mask): Likewise.
6008 (s390_is_fpd): Likewise.
6009 (s390_is_fxd): Likewise.
6010 * config/s390/s390.h (enum processor_flags): Likewise.
6011 * config/s390/s390.md: Likewise.
6012 * config/s390/vector.md: Likewise.
6013 * config/s390/vx-builtins.md: Likewise.
6014 * config/s390/s390.opt: Add z15 to processor_type value.
6015
6016 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
6017
6018 PR target/91035
6019 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
6020 prototype.
6021 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
6022 ("split_stack_data", "split_stack_call")
6023 ("split_stack_call_<mode>", "split_stack_cond_call")
6024 ("split_stack_cond_call_<mode>"): Remove.
6025 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
6026 insn definition.
6027 * config/s390/s390.c (s390_output_split_stack_data): New function.
6028 (s390_expand_split_stack_prologue): Use the merged expander.
6029
6030 2019-10-09 Martin Sebor <msebor@redhat.com>
6031
6032 PR tree-optimization/90879
6033 * builtins.c (check_access): Avoid using maxbound when null.
6034 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
6035 * doc/invoke.texi (-Wstring-compare): Document new warning option.
6036 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
6037 conditional.
6038 (get_range_strlen): Overwrite initial maxbound when non-null.
6039 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
6040 changes.
6041 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
6042 (used_only_for_zero_equality): New function.
6043 (handle_builtin_memcmp): Call it.
6044 (determine_min_objsize): Return an integer instead of tree.
6045 (get_len_or_size, strxcmp_eqz_result): New functions.
6046 (maybe_warn_pointless_strcmp): New function.
6047 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
6048 between a longer string and a smaller array.
6049 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
6050
6051 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
6052
6053 * config/darwin.c (darwin_override_options): Make the check for
6054 Objective-C ABI version more specific for 64bit code.
6055
6056 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
6057
6058 * config/darwin.c (machopic_indirect_data_reference): Set flag to
6059 indicate that the new symbol is an indirection.
6060 (machopic_indirect_call_target): Likewise.
6061 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
6062 (MACHO_SYMBOL_INDIRECTION_P): New.
6063 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
6064
6065 2019-10-08 Jason Merrill <jason@redhat.com>
6066
6067 * doc/invoke.texi: Document -fconcepts-ts.
6068
6069 2019-10-09 Richard Biener <rguenther@suse.de>
6070
6071 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
6072 allow stmts other than GIMPLE_ASSIGN in nested cycles.
6073
6074 2019-10-08 Richard Biener <rguenther@suse.de>
6075
6076 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
6077 (_stmt_vec_info::force_single_cycle): Likewise.
6078 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
6079 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
6080 * tree-vect-loop.c (vectorizable_reduction): Set
6081 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
6082 (vect_transform_reduction): Use them to remove redundant code.
6083 (vect_transform_cycle_phi): Likewise.
6084
6085 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
6086
6087 PR tree-optimization/90836
6088 * match.pd (popcount): New pattern.
6089
6090 2019-10-08 Martin Sebor <msebor@redhat.com>
6091
6092 PR middle-end/92026
6093 PR middle-end/92014
6094 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
6095 again once nbytes has been set. Set the access size when not yet set.
6096
6097 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
6098
6099 * config/darwin.c (machopic_select_section): Remove dead code for
6100 old Objective-C section selection method, replace with unreachable.
6101
6102 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
6103
6104 * config/darwin.c (machopic_indirect_data_reference): Check for
6105 required indirections before making direct access to defined
6106 values.
6107 (machopic_output_indirection): Place the indirected pointes for
6108 required indirections into the non-lazy symbol pointers section.
6109 (darwin_encode_section_info):
6110 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
6111 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
6112
6113 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
6114
6115 PR target/91994
6116 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
6117 instead of ALL_SSE_REG to check if function call preserves some
6118 256-bit SSE registers.
6119
6120 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6121
6122 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
6123 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
6124 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
6125
6126 2019-10-08 Richard Biener <rguenther@suse.de>
6127
6128 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
6129 (_stmt_vec_info::is_reduc_info): Add.
6130 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
6131 (vectorizable_condition): Remove.
6132 (vectorizable_shift): Likewise.
6133 (vectorizable_reduction): Adjust.
6134 (info_for_reduction): New.
6135 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
6136 (vect_analyze_scalar_cycles_1): ... here.
6137 (vect_analyze_loop_operations): Adjust.
6138 (needs_fold_left_reduction_p): Simplify for single caller.
6139 (vect_is_simple_reduction): Likewise. Remove stmt restriction
6140 for nested cycles not part of double reductions.
6141 (vect_model_reduction_cost): Pass in the reduction type.
6142 (info_for_reduction): New function.
6143 (vect_create_epilog_for_reduction): Use it, access reduction
6144 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
6145 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
6146 (vectorize_fold_left_reduction): Remove pointless assert.
6147 (vectorizable_reduction): Analyze the full reduction when
6148 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
6149 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
6150 stmt code-generation to vectorizable_* in most cases. Verify
6151 code-generation only for cases handled by
6152 vect_transform_reductuon.
6153 (vect_transform_reduction): Use info_for_reduction to get at
6154 reduction meta. Simplify.
6155 (vect_transform_cycle_phi): Likewise.
6156 (vectorizable_live_operation): Likewise.
6157 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
6158 at the PHI node for STMT_VINFO_REDUC_TYPE.
6159 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
6160 longer necessary code.
6161 * tree-vect-stmts.c (vectorizable_shift): Make static again.
6162 (vectorizable_condition): Likewise. Get at reduction related
6163 info via info_for_reduction.
6164 (vect_analyze_stmt): Adjust.
6165 (vect_transform_stmt): Likewise.
6166 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
6167 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
6168
6169 2019-10-08 Joseph Myers <joseph@codesourcery.com>
6170
6171 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
6172 -fno-fp-int-builtin-inexact default for C2X.
6173
6174 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6175 Richard Biener <rguenther@suse.de>
6176
6177 PR tree-optimization/91532
6178 * tree-if-conv.c: Include tree-ssa-dse.h.
6179 (ifcvt_local_dce): Change param from bb to loop,
6180 and call dse_classify_store.
6181 (tree_if_conversion): Pass loop instead of loop->header as arg
6182 to ifcvt_local_dce.
6183 * tree-ssa-dse.c: Include tree-ssa-dse.h.
6184 (delete_dead_or_redundant_assignment): Remove static qualifier from
6185 declaration, and add prototype in tree-ssa-dse.h.
6186 (dse_store_status): Move to tree-ssa-dse.h.
6187 (dse_classify_store): Remove static qualifier and add new tree param
6188 stop_at_vuse, and add prototype in tree-ssa-dse.h.
6189 * tree-ssa-dse.h: New header.
6190
6191 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
6192
6193 * config/darwin.c (machopic_output_indirection): Don't put
6194 hidden symbol indirections into the .data section, use the
6195 non-lazy symbol pointers section as normal.
6196 (darwin_encode_section_info): Record if a symbol is hidden.
6197 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
6198 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
6199
6200 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
6201
6202 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
6203 predicates instead of accessing bits directly.
6204 (machopic_indirect_call_target): Likewise.
6205 (machopic_output_indirection): Likewise.
6206 (darwin_encode_section_info): Improve description. Use renamed
6207 symbol flags. Use predicate macros for variables and functions.
6208 * config/darwin.h:
6209 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
6210 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
6211 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
6212 (MACHO_SYMBOL_VARIABLE_P): New.
6213 (MACHO_SYMBOL_DEFINED_P):New.
6214 (MACHO_SYMBOL_STATIC_P): New.
6215 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
6216 (SYMBOL_FLAG_SUBT_DEP): New.
6217 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
6218
6219 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6220
6221 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
6222 (msp430_expand_epilogue): Likewise.
6223 * config/msp430/predicates.md: Likewise.
6224 * config/msp430/msp430.md: Likewise.
6225 Replace blocks of 8 spaces with tabs.
6226
6227 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6228
6229 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
6230 * config/msp430/msp430.c (msp430_split_addsi): New.
6231 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
6232 a block of C code for splitting addsi.
6233
6234 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
6235
6236 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
6237 ix86_expand_rounddf_32): Reorder functions.
6238 * config/i386/i386-protos.h: Update.
6239
6240 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6241
6242 * config.in: Regenerate.
6243 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
6244 Add new "Yx" constraint.
6245 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
6246 function.
6247 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
6248 prototype.
6249 * config/msp430/msp430.c (msp430_option_override): Allow the lower
6250 code/data region to be selected in the small memory model.
6251 (msp430_section_attr): Don't warn if the "section" and "lower"
6252 attributes are used together.
6253 (msp430_handle_generic_attribute): Likewise.
6254 (msp430_var_in_low_mem): New function.
6255 (TARGET_ENCODE_SECTION_INFO): Define.
6256 (msp430_encode_section_info): New function.
6257 (gen_prefix): Return early in the small memory model.
6258 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
6259 ".lower" prefix if -m{code,data}-region=lower have been passed.
6260 (msp430_output_aligned_decl_common): Emit common symbols when
6261 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
6262 set.
6263 (TARGET_ASM_FILE_END): Define.
6264 (msp430_file_end): New function.
6265 (msp430_do_not_relax_short_jumps): Allow relaxation when
6266 function will be in the lower region.
6267 (msp430_op_not_in_high_mem): New function.
6268 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
6269 the 'X' operand selector.
6270 Clarify comment for 'x' operand selector.
6271 * config/msp430/msp430.h (LINK_SPEC): Propagate
6272 -m{code,data}-region to the linker via spec function
6273 msp430_propagate_region_opt.
6274 (msp430_propagate_region_opt): New prototype.
6275 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
6276 (SYMBOL_FLAG_LOW_MEM): Define.
6277 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
6278 selector.
6279 (zero_extendqihi2): Fix operand number used by "%X" selector.
6280 (zero_extendqisi2): Likewise.
6281 (zero_extendhisi2): Likewise.
6282 (movqi): Use "Yx" constraint in place of "%X" operand selector.
6283 (movhi): Likewise.
6284 (addqi3): Likewise.
6285 (addhi3): Likewise.
6286 (addsi3): Likewise.
6287 (addhi3_cy): Likewise.
6288 (addchi4_cy): Likewise.
6289 (subqi3): Likewise.
6290 (subhi3): Likewise.
6291 (subsi3): Likewise.
6292 (bic<mode>3): Likewise.
6293 (and<mode>3): Likewise.
6294 (ior<mode>3): Likewise.
6295 (xor<mode>3): Likewise.
6296 (slli_1): Add missing "%X" operand selector.
6297 (slll_1): Likewise.
6298 (slll_2): Likewise.
6299 (srai_1): Likewise.
6300 (sral_1): Likewise.
6301 (sral_2): Likewise.
6302 (srli_1): Likewise.
6303 (srll_1): Likewise.
6304 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
6305 selector.
6306 (cbranchhi4_real): Likewise.
6307 (cbranchqi4_reversed): Likewise.
6308 (cbranchhi4_reversed): Likewise.
6309 (*bitbranch<mode>4): Likewise.
6310 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
6311 * config/msp430/msp430.opt (mcode-region=): Set default to
6312 MSP430_REGION_LOWER. Improve docstring.
6313 (mdata-region=): Likewise.
6314 (muse-lower-region-prefix): New option.
6315 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
6316 mdata-region=none multilib.
6317 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
6318 mdata-region=none multilib.
6319 MULTILIB_EXCEPTIONS: Remove.
6320 MULTILIB_REQUIRED: Define.
6321 * configure: Regenerate.
6322 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
6323 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
6324 * doc/extend.texi: Clarify comment for {upper,lower,either}
6325 function attributes.
6326 Add separate description for "lower" variable attribute.
6327
6328 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
6329
6330 PR target/77918
6331 * optabs-tree.c (vcond_icode_p): New function.
6332 (vcond_eq_icode_p): Likewise.
6333 (expand_vec_cond_expr_p): Use vcond_icode_p and
6334 vcond_eq_icode_p.
6335 * optabs.c (can_vcond_compare_p): New function.
6336 * optabs.h (can_vcond_compare_p): Likewise.
6337
6338 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
6339
6340 PR target/77918
6341 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
6342 caller passes a non-trapping condition.
6343 (is_gimple_condexpr): Allow trapping conditions.
6344 (is_gimple_condexpr_1): New helper function.
6345 (is_gimple_condexpr_for_cond): New function, acts like old
6346 is_gimple_condexpr.
6347 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
6348 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
6349 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
6350 * gimplify.c (gimplify_cond_expr): Use
6351 is_gimple_condexpr_for_cond.
6352 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
6353 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
6354 VEC_COND_EXPR.
6355 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
6356 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
6357 is_gimple_condexpr_for_cond, remove pointless tmp check
6358 (forward_propagate_into_cond): Remove pointless tmp check.
6359
6360 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
6361
6362 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
6363 match that of other gsi_next_* functions. Adjust the comment.
6364 (gsi_start_nonvirtual_phis): New function.
6365 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
6366 gsi_next_nonvirtual_phi accordingly. (No functional change.)
6367
6368 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
6369
6370 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
6371 setjmp situation here. Fix a verb's ending: "the exact variables or
6372 elements for which there are warnings depends" -> "... depend".
6373
6374 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
6375
6376 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
6377
6378 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
6379
6380 * ipa-prop.c (ipa_vr::nonzero_p): New.
6381 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
6382 non-zero range.
6383 * ipa-prop.h (class ipa_vr): Add nonzero_p.
6384 * tree-vrp.c (range_has_numeric_bounds_p): New.
6385 (range_int_cst_p): Use range_has_numeric_bounds_p.
6386 (get_range_op_handler): New.
6387 (supported_types_p): New.
6388 (defined_ranges_p): New.
6389 (drop_undefines_to_varying): New.
6390 (range_fold_binary_symbolics_p): New.
6391 (range_fold_unary_symbolics_p): New.
6392 (range_fold_unary_expr): Extract out into above functions.
6393 (range_fold_binary_expr): Same.
6394 (value_range_base::normalize_addresses): New.
6395 (value_range_base::normalize_symbolics): Normalize addresses.
6396 * tree-vrp.h (class value_range_base): Add normalize_addresses.
6397
6398 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
6399
6400 * tree-vrp.c (value_range_base::singleton_p): Use
6401 value_range_base::num_pairs instead of vrp_val_is* to check
6402 if a range has one sub-range.
6403
6404 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
6405
6406 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
6407 DEF is not a true earlyclobber but is tied to a specific input
6408 operand, and so is effectively earlyclobber wrt inputs that have
6409 different values.
6410 (make_early_clobber_and_input_conflicts): Pass this case to the above.
6411
6412 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
6413
6414 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
6415 (pod_mode): Mark operators likewise.
6416 (scalar_int_mode): Mark non-default constructors and
6417 operators with CONSTEXPR.
6418 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
6419 (fixed_size_mode): Likewise.
6420
6421 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
6422
6423 PR target/91994
6424 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
6425 and wrap the unspec_volatile in a parallel.
6426 (*avx_vzeroupper): New define_insn. Use a match_parallel around
6427 the unspec_volatile.
6428 * config/i386/predicates.md (vzeroupper_pattern): Expect the
6429 unspec_volatile to be wrapped in a parallel.
6430 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
6431 (ix86_add_reg_usage_to_vzerouppers): New functions.
6432 (rest_of_handle_insert_vzeroupper): Use them to add register
6433 usage information to the vzeroupper instructions.
6434
6435 2019-10-07 Richard Biener <rguenther@suse.de>
6436
6437 PR tree-optimization/91975
6438 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
6439 handle invariants.
6440
6441 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
6442
6443 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
6444 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
6445
6446 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
6447
6448 * config/darwin.c (darwin_override_options): Adjust objective-c
6449 ABI version error messages to avoid punctuation and contracted
6450 negations.
6451
6452 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
6453
6454 * ipa-inline.c: Fix type; compute size rather than self_size
6455 for size of caller function.
6456
6457 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
6458
6459 PR target/59888
6460 * config/darwin.c (darwin_rodata_section): Add relocation flag,
6461 choose const_data section for constants with relocations.
6462 (machopic_select_section): Pass relocation flag to
6463 darwin_rodata_section ().
6464
6465 2019-10-05 Jakub Jelinek <jakub@redhat.com>
6466
6467 PR tree-optimization/91734
6468 * generic-match-head.c: Include fold-const-call.h.
6469 * match.pd (sqrt(x) cmp c): Check the boundary value and
6470 in case inexact computation of c*c affects comparison of the boundary,
6471 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
6472 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
6473 for -frounding-math. For c2, try the next smaller or larger floating
6474 point constant depending on comparison code and if it has the same
6475 sqrt as c2, use it instead of c2.
6476
6477 2019-10-04 Martin Sebor <msebor@redhat.com>
6478
6479 PR middle-end/91977
6480 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
6481 MEM_REF right operand. Avoid failing for MEM_REF assignments from
6482 uninitialized objects.
6483
6484 2019-10-04 Martin Sebor <msebor@redhat.com>
6485
6486 * builtins.c (compute_objsize): Add an argument.
6487 * tree-object-size.c (addr_object_size): Same.
6488 (compute_builtin_object_size): Same.
6489 * tree-object-size.h (compute_builtin_object): Same.
6490
6491 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
6492
6493 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
6494
6495 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
6496
6497 * match.pd (sinh (x) / cosh (x)): New simplification rule.
6498
6499 2019-10-04 Martin Jambor <mjambor@suse.cz>
6500
6501 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
6502 fntype when switching to calling memcpy instead of memset.
6503
6504 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6505
6506 * hash-table.h (hash_table::empty_slow): Don't assign
6507 size_t values to int variables.
6508
6509 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6510
6511 * expr.c (convert_mode_scalar): Remove shadowing local var.
6512 (emit_block_move): Rename local vars.
6513 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
6514 (emit_push_insn): Rename local vars.
6515 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
6516 shadowing local vars.
6517 (store_constructor): Remove shadowing local vars. Rename local var.
6518 (store_field, expand_cond_expr_using_cmove,
6519 expand_expr_real_2): Remove shadowing local vars.
6520 (expand_expr_real_1,
6521 do_store_flag): Remove shadowing local vars. Rename local vars.
6522
6523 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6524
6525 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
6526
6527 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6528
6529 * genmatch.c (commutate): Rename local var.
6530 (lower_cond): Reuse local var.
6531 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
6532 dt_operand::gen, dt_operand::gen_gimple_expr,
6533 dt_simplify::gen): Add a param. Rename generated vars.
6534 (decision_tree::insert_operand,
6535 (capture_info::walk_match, capture_info::walk_result,
6536 capture_info::walk_c_expr): Rename local vars.
6537 (expr::gen_transform): Rename generated vars.
6538 Use snprintf. Rename local vars.
6539 (capture::gen_transform, dt_operand::get_name,
6540 dt_operand::gen_opname): Rename generated vars.
6541 (write_predicate): Adjust call to gen_kids.
6542 (parser::get_internal_capture_id): Rename generated vars.
6543 (parser::parse_expr): Rename local vars.
6544 (parser::parse_if): Remove local var.
6545 (parser::parse_pattern, add_operator): Rename local vars.
6546
6547 2019-10-04 Joseph Myers <joseph@codesourcery.com>
6548
6549 * builtins.def (DEF_C2X_BUILTIN): New macro.
6550 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
6551 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
6552 (strndup): Use DEF_C2X_BUILTIN.
6553 * coretypes.h (enum function_class): Add function_c2x_misc.
6554
6555 2019-10-04 Maya Rashish <coypu@sdf.org>
6556
6557 * ira-color.c (update_costs_from_allocno): Call
6558 ira_init_register_move_cost_if_necessary.
6559
6560 2019-10-04 Jeff Law <law@redhat.com>
6561
6562 * config/h8300/h8300.md (cpymemsi): Disable.
6563 (movmd, movmd_internal_<mode>, movstr, movsd):
6564 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
6565 (movmd splitter, movsd splitter): Likewise.
6566
6567 * range-op.cc (range_tests): Avoid two tests when ints and
6568 shorts are the same size.
6569
6570 2019-10-04 Richard Biener <rguenther@suse.de>
6571
6572 PR lto/91968
6573 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
6574 BLOCK_VARS.
6575
6576 2019-10-04 Richard Biener <rguenther@suse.de>
6577
6578 PR tree-optimization/91982
6579 * tree-vect-loop.c (vectorizable_live_operation): Also guard
6580 against EXTRACT_LAST_REDUCTION.
6581 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
6582
6583 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
6584
6585 * range-op.o (value_range_from_overflowed_bounds): Rename from
6586 adjust_overflow_bound.
6587 (value_range_with_overflow): Rename from
6588 create_range_with_overflow.
6589 (create_possibly_reversed_range): Adjusted for above renames.
6590 (operator_*::wi_fold): Same.
6591 (cross_product_operator::wi_cross_productor): Same.
6592
6593 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6594
6595 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
6596 -Wshadow=compatible-local): Fix description.
6597 Add an example where -Wshadow=compatible-local does not
6598 warn.
6599
6600 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
6601
6602 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
6603
6604 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
6605 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
6606
6607 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
6608
6609 * expr.c (emit_block_move_hints): Slightly cleaner fix to
6610 can_move_by_pieces issue.
6611
6612 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
6613
6614 PR target/87243
6615 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
6616 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
6617 is available and the user has not set one on the command line.
6618
6619 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
6620
6621 PR target/91769
6622 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
6623 instead of REGNO equality check on addr.reg.
6624
6625 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
6626
6627 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
6628 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
6629 * doc/invoke.texi (inline-heuristics-hint-percent,
6630 inline-heuristics-hint-percent-O2): Document.
6631 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
6632 hint attribute.
6633 (can_inline_edge_by_limits_p): Use it.
6634
6635 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
6636
6637 * config/arm/arm.c (arm_print_value): Use real_to_decimal
6638 to print CONST_DOUBLEs.
6639
6640 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
6641
6642 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
6643 * ipa-prop.c (ipcp_free_transformation_sum): New function.
6644 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
6645
6646 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
6647
6648 * Makefile.in (OBJS): Add range.o and range-op.o.
6649 Remove wide-int-range.o.
6650 * function-tests.c (test_ranges): New.
6651 (function_tests_c_tests): Call test_ranges.
6652 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
6653 range_fold_unary_expr instead of extract_range_from_unary_expr.
6654 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
6655 * range-op.cc: New file.
6656 * range-op.h: New file.
6657 * range.cc: New file.
6658 * range.h: New file.
6659 * selftest.h (range_tests): New prototype.
6660 * ssa.h: Include range.h.
6661 * tree-vrp.c (value_range_base::value_range_base): New
6662 constructors.
6663 (value_range_base::singleton_p): Do not call
6664 ranges_from_anti_range until sure we will need to.
6665 (value_range_base::type): Rename gcc_assert to
6666 gcc_checking_assert.
6667 (vrp_val_is_max): New argument.
6668 (vrp_val_is_min): Same.
6669 (wide_int_range_set_zero_nonzero_bits): Move from
6670 wide-int-range.cc.
6671 (extract_range_into_wide_ints): Remove.
6672 (extract_range_from_multiplicative_op): Remove.
6673 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
6674 from extract_range_from_binary_expr.
6675 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
6676 from extract_range_from_binary_expr.
6677 (extract_range_from_binary_expr): Remove.
6678 (normalize_for_range_ops): New.
6679 (range_fold_binary_expr): New.
6680 (range_fold_unary_expr): New.
6681 (value_range_base::num_pairs): New.
6682 (value_range_base::lower_bound): New.
6683 (value_range_base::upper_bound): New.
6684 (value_range_base::upper_bound): New.
6685 (value_range_base::contains_p): New.
6686 (value_range_base::invert): New.
6687 (value_range_base::union_): New.
6688 (value_range_base::intersect): New.
6689 (range_compatible_p): New.
6690 (value_range_base::operator==): New.
6691 (determine_value_range_1): Call range_fold_*expr instead of
6692 extract_range_from_*expr.
6693 * tree-vrp.h (class value_range_base): Add new constructors.
6694 Add methods for union_, intersect, operator==, contains_p,
6695 num_pairs, lower_bound, upper_bound, invert.
6696 (vrp_val_is_min): Add handle_pointers argument.
6697 (vrp_val_is_max): Same.
6698 (extract_range_from_unary_expr): Remove.
6699 (extract_range_from_binary_expr): Remove.
6700 (range_fold_unary_expr): New.
6701 (range_fold_binary_expr): New.
6702 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
6703 range_fold_binary_expr instead of extract_range_from_binary_expr.
6704 (vr_values::extract_range_basic): Same.
6705 (vr_values::extract_range_from_unary_expr): Call
6706 range_fold_unary_expr instead of extract_range_from_unary_expr.
6707 * wide-int-range.cc: Remove.
6708 * wide-int-range.h: Remove.
6709
6710 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
6711
6712 * config/rs6000/rs6000.c (mem_operand_gpr): Use
6713 SIGNED_16BIT_OFFSET_EXTRA_P macro.
6714 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
6715 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
6716 macro.
6717
6718 2019-10-02 Joseph Myers <joseph@codesourcery.com>
6719
6720 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
6721 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
6722 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
6723 * glimits.h: Likewise.
6724
6725 2019-10-03 Jakub Jelinek <jakub@redhat.com>
6726
6727 PR rtl-optimization/91976
6728 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
6729 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
6730 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
6731
6732 2019-10-02 Martin Sebor <msebor@redhat.com>
6733
6734 PR tree-optimization/80936
6735 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
6736
6737 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
6738
6739 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
6740 instead of reg_class_contents[ALL_REGS].
6741
6742 2019-09-30 Jason Merrill <jason@redhat.com>
6743
6744 Add some hash_map_safe_* functions like vec_safe_*.
6745 * hash-map.h (default_hash_map_size): New variable.
6746 (create_ggc): Use it as default argument.
6747 (hash_map_maybe_create, hash_map_safe_get)
6748 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
6749
6750 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
6751
6752 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
6753 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
6754 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
6755 (can_inline_edge_by_limits_p): Use it.
6756 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
6757 (want_inline_small_function_p): Use O2 bounds.
6758 (edge_badness): LIkewise.
6759 * opts.c (default_options): Add OPT_finline_functions.
6760 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
6761 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
6762 New parameters.
6763 * doc/invoke.texi (-finline-functions): Update documentation.
6764 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
6765 inline-min-speedup-O2): Document.
6766 (early-inlining-insns-O2): Simplify docs.
6767
6768 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
6769
6770 PR rtl-optimization/87047
6771 * ifcvt.c (average_cost): New static function. Use it...
6772 (noce_process_if_block): ... here.
6773
6774 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
6775
6776 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
6777 * config/rs6000/rs6000-string.c (expand_block_move): Add
6778 might_overlap parm.
6779 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
6780 (cpymemsi): Add might_overlap parm to expand_block_move() call.
6781
6782 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
6783
6784 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
6785 (expand_builtin_memcpy): Use might_overlap parm.
6786 (expand_builtin_mempcpy_args): Use might_overlap parm.
6787 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
6788 (expand_builtin_memory_copy_args): Add might_overlap parm.
6789 * expr.c (emit_block_move_via_cpymem): Rename to
6790 emit_block_move_via_pattern, add might_overlap parm, use cpymem
6791 or movmem optab as appropriate.
6792 (emit_block_move_hints): Add might_overlap parm, do the right
6793 thing for might_overlap==true.
6794 * expr.h (emit_block_move_hints): Update prototype.
6795
6796 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
6797
6798 * tree-eh.h (unsplit_eh_edges): Declare.
6799 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
6800 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
6801 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
6802 (struct store_immediate_info): Add lp_nr field.
6803 (store_immediate_info::store_immediate_info): Add NR2 parameter and
6804 initialize lp_nr with it.
6805 (struct merged_store_group): Add lp_nr and only_constants fields.
6806 (merged_store_group::merged_store_group): Initialize them.
6807 (merged_store_group::can_be_merged_into): Deal with them.
6808 (pass_store_merging): Rename terminate_and_release_chain into
6809 terminate_and_process_chain.
6810 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
6811 renaming and remove useless assertions.
6812 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
6813 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
6814 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
6815 instead of always recomputing it and compare lp_nr.
6816 (imm_store_chain_info::output_merged_store): If the group is in an
6817 active EH region, register new stores if they can throw. Moreover,
6818 if the insertion has created new basic blocks, adjust the PHI nodes
6819 of the post landing pad.
6820 (imm_store_chain_info::output_merged_stores): If the original stores
6821 are in an active EH region, deregister them.
6822 (lhs_valid_for_store_merging_p): Prettify.
6823 (adjust_bit_pos): New function extracted from...
6824 (mem_valid_for_store_merging): ...here. Use it for the base address
6825 and also for the offset if it is the addition of a constant.
6826 (lp_nr_for_store): New function.
6827 (pass_store_merging::process_store): Change return type to bool.
6828 Call lp_nr_for_store to initialize the store info. Propagate the
6829 return status of various called functions to the return value.
6830 (store_valid_for_store_merging_p): New predicate.
6831 (enum basic_block_status): New enumeration.
6832 (get_status_for_store_merging): New function.
6833 (pass_store_merging::execute): If the function can throw and catch
6834 non-call exceptions, unsplit the EH edges on entry and clean up the
6835 CFG on exit if something changed. Call get_status_for_store_merging
6836 for every basic block and keep the chains open across basic blocks
6837 when possible. Terminate and process open chains at the end, if any.
6838
6839 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
6840
6841 * reginfo.c (globalize_reg): Fix shadowed variable in
6842 function_abis walk.
6843
6844 2019-10-02 Martin Jambor <mjambor@suse.cz>
6845
6846 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
6847 do not compute some stuff when set.
6848 (cgraph_node::create_edge): Likewise.
6849 (cgraph_node::create_indirect_edge): Renamed last parameter to
6850 coning_p and flipped its meaning, don't even calculate
6851 inline_failed when set.
6852 * cgraph.h (cgraph_node::create_edge): Add new parameter.
6853 (symbol_table::::create_edge): Likewise.
6854 (cgraph_node::create_indirect_edge): Rename last parameter, flip
6855 the default value.
6856 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
6857 call graph edge creating functions.
6858
6859 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
6860
6861 PR c++/91222
6862 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
6863 namespace types.
6864
6865 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
6866
6867 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
6868
6869 2019-10-02 Richard Biener <rguenther@suse.de>
6870
6871 * tree-vectorizer.h (vect_transform_reduction): Declare.
6872 * tree-vect-stmts.c (vect_transform_stmt): Use it.
6873 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
6874 stmt transform to ...
6875 (vect_transform_reduction): ... this.
6876
6877 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
6878
6879 * omp-low.c (lower_omp_target): Dereference optional argument
6880 to work with the right pointer.
6881
6882 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
6883
6884 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
6885 false.
6886 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
6887 * langhooks.h (omp_is_optional_argument): New hook.
6888 * omp-general.c (omp_is_optional_argument): New.
6889 * omp-general.h (omp_is_optional_argument): New declaration.
6890 * omp-low.c (lower_omp_target): Create temporary for received value
6891 and take the address for new_var if the original variable was a
6892 DECL_BY_REFERENCE. Use size of referenced object when a
6893 pass-by-reference optional argument used as argument to firstprivate.
6894
6895 2019-10-02 Jakub Jelinek <jakub@redhat.com>
6896
6897 PR tree-optimization/91940
6898 * tree-vect-patterns.c: Include tree-vector-builder.h and
6899 vec-perm-indices.h.
6900 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
6901 unpromoting the argument back to uint16_t, or by converting into a
6902 rotate, or into shifts plus ior.
6903
6904 2019-10-02 Richard Biener <rguenther@suse.de>
6905
6906 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
6907 New.
6908 (vect_transform_cycle_phi): Declare.
6909 * tree-vect-stmts.c (vect_transform_stmt): Call
6910 vect_transform_cycle_phi.
6911 * tree-vect-loop.c (vectorizable_reduction): Split out
6912 PHI transformation stage to ...
6913 (vect_transform_cycle_phi): ... here.
6914
6915 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
6916
6917 PR middle-end/91957
6918 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
6919 eliminable registers.
6920 (make_hard_regno_live): Likewise, and don't make them live.
6921
6922 2019-10-01 David Malcolm <dmalcolm@redhat.com>
6923
6924 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
6925 Call pp_emit_prefix.
6926 (layout::print_source_line): Likewise.
6927 (layout::start_annotation_line): Likewise.
6928 (diagnostic_show_locus): Remove call to temporarily clear the
6929 prefix.
6930 (selftest::test_one_liner_fixit_remove): Add test coverage for the
6931 interaction of pp_set_prefix with rulers and fix-it hints.
6932 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
6933 prefix when calling diagnostic_show_locus, rather than destroying
6934 it afterwards.
6935 (print_parseable_fixits): Temporarily clear prefix.
6936 * pretty-print.c (pp_format): Save and restore line_length, rather
6937 than assuming it is zero.
6938 (pp_output_formatted_text): Remove assertion that line_length is
6939 zero.
6940
6941 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
6942
6943 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
6944 Rename to ...
6945 (nonoverlapping_refs_since_match_p): ... this; handle also
6946 ARRAY_REFs.
6947 (alias_stats): Update stats.
6948 (dump_alias_stats): Likewise.
6949 (cheap_array_ref_low_bound): New function.
6950 (aliasing_matching_component_refs_p): Add partial_overlap
6951 argument;
6952 pass it to nonoverlapping_refs_since_match_p.
6953 (aliasing_component_refs_walk): Update call of
6954 aliasing_matching_component_refs_p
6955 (nonoverlapping_array_refs_p): New function.
6956 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
6957 indirect_refs_may_alias_p): Update calls of
6958 nonoverlapping_refs_since_match_p.
6959
6960 2019-10-01 Maya Rashish <coypu@sdf.org>
6961
6962 PR target/85401
6963 * ira-color.c (allocno_copy_cost_saving): Call
6964 ira_init_register_move_cost_if_necessary.
6965
6966 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
6967
6968 * Makefile.in (gnat_install_lib): New variable.
6969 * configure.ac: Substitute it.
6970 * configure: Regenerate.
6971
6972 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
6973
6974 PR lto/91222
6975 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
6976 is matched with non-C++ type
6977
6978 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6979
6980 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
6981 after local CSE.
6982
6983 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
6984
6985 * doc/invoke.texi (early-inlining-insns-O2): Document.
6986 (early-inlining-insns): Update.
6987 * params.def (early-inlining-insns-O2): New bound.
6988 (early-inlining-insns): Update docs.
6989 * ipa-inline.c (want_early_inline_function_p): Use new bound.
6990
6991 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
6992
6993 PR target/88562
6994 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
6995 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
6996 a memory access insn.
6997
6998 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
6999
7000 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
7001 vpmsumd.
7002
7003 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
7004
7005 PR target/77918
7006 * config/s390/s390.c (s390_expand_vec_compare): Use
7007 gen_vec_cmpordered and gen_vec_cmpunordered.
7008 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
7009 vec_unordered): Delete.
7010 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
7011 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
7012 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
7013 (vec_cmp<code>): Generic dispatcher.
7014
7015 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
7016
7017 PR target/77918
7018 * config/s390/vector.md (V_HW): Add V1TI in order to make
7019 vcond$a$b generate vcondv1tiv1tf.
7020
7021 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7022
7023 PR rtl-optimization/91948
7024 * ira-build.c (ira_create_allocno): Initialize
7025 ALLOCNO_CROSSED_CALLS_ABIS.
7026 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
7027 than regno to ira_need_caller_save_p.
7028
7029 2019-10-01 Alexandre Oliva <oliva@adacore.com>
7030
7031 * config/i386/i386-options.c
7032 (ix86_recompute_optlev_based_flags): New, moved out of...
7033 (ix86_option_override_internal): ... this. Call it.
7034 (ix86_override_options_after_change): Call it here too.
7035
7036 PR debug/91507
7037 * dwarf2out.c (override_type_for_decl_p): New.
7038 (gen_variable_die): Use it.
7039
7040 2019-10-01 Richard Biener <rguenther@suse.de>
7041
7042 * tree-vect-loop.c (vectorizable_reduction): Move variables
7043 to where they are used.
7044
7045 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7046
7047 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
7048 (build_def_use): Use PC instead of CC0 in a comment.
7049
7050 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7051
7052 * rtl.def (CLOBBER_HIGH): Delete.
7053 * doc/rtl.texi (clobber_high): Remove documentation.
7054 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
7055 (reg_is_clobbered_by_clobber_high): Delete.
7056 (gen_hard_reg_clobber_high): Likewise.
7057 * alias.c (record_set): Remove CLOBBER_HIGH handling.
7058 * cfgexpand.c (expand_gimple_stmt): Likewise.
7059 * combine-stack-adj.c (single_set_for_csa): Likewise.
7060 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
7061 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
7062 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
7063 * cse.c (invalidate_reg): Remove clobber_high parameter.
7064 (invalidate): Update call accordingly.
7065 (canonicalize_insn): Remove CLOBBER_HIGH handling.
7066 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
7067 (count_reg_usage, insn_live_p): Likewise.
7068 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
7069 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
7070 (cselib_invalidate_rtx_note_stores): Update call accordingly.
7071 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
7072 (cselib_invalidate_regno, cselib_process_insn): Likewise.
7073 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
7074 (mark_nonreg_stores_2): Likewise.
7075 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
7076 (df_get_call_refs): Likewise.
7077 * dwarf2out.c (mem_loc_descriptor): Likewise.
7078 * emit-rtl.c (verify_rtx_sharing): Likewise.
7079 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
7080 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
7081 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
7082 * genemit.c (gen_exp, gen_insn): Likewise.
7083 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
7084 * haifa-sched.c (haifa_classify_rtx): Likewise.
7085 * ira-build.c (create_insn_allocnos): Likewise.
7086 * ira-costs.c (scan_one_insn): Likewise.
7087 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
7088 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
7089 * jump.c (mark_jump_label_1): Likewise.
7090 * lra-int.h (lra_insn_reg::clobber_high): Delete.
7091 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
7092 handling.
7093 (mark_not_eliminable): Likewise.
7094 * lra-lives.c (process_bb_lives): Likewise.
7095 * lra.c (new_insn_reg): Remove clobber_high parameter.
7096 (collect_non_operand_hard_regs): Likewise. Update call to new
7097 insn_reg. Remove CLOBBER_HIGH handling.
7098 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
7099 to collect_non_operand_hard_regs.
7100 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
7101 Update call to new_insn_reg.
7102 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
7103 * postreload.c (reload_cse_simplify, reload_combine_note_use)
7104 (move2add_note_store): Likewise.
7105 * print-rtl.c (print_pattern): Likewise.
7106 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
7107 (if_test_bypass_p): Likewise.
7108 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
7109 * reginfo.c (reg_scan_mark_refs): Likewise.
7110 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
7111 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
7112 (forget_old_reloads_1): Likewise.
7113 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
7114 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
7115 (dbr_schedule): Likewise.
7116 * resource.c (update_live_status, mark_referenced_resources)
7117 (mark_set_resources): Likewise.
7118 * rtl.c (copy_rtx): Likewise.
7119 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
7120 (note_pattern_stores): Likewise.
7121 (reg_is_clobbered_by_clobber_high): Delete.
7122 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
7123 CLOBBER_HIGH handling.
7124
7125 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7126
7127 PR target/91452
7128 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
7129 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
7130 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7131 Handle ARM_PCS_TLSDESC.
7132 (aarch64_tlsdesc_abi_id): New function.
7133 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
7134 rtx instead of a list of clobbers and clobber_highs.
7135 (tlsdesc_small_<mode>): Update accordingly.
7136
7137 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7138
7139 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
7140 extra callee_abi argument.
7141 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
7142 Insert a CALLEE_ABI unspec into the call pattern as the second
7143 element in the PARALLEL.
7144 (aarch64_simd_call_p): Delete.
7145 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
7146 the new CALLEE_ABI element of the PARALLEL.
7147 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
7148 from the function type, if given.
7149 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
7150 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
7151 when passed the function_arg_info end marker.
7152 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
7153 final argument of gen_sibcall.
7154 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
7155 (call): Make operand 2 a const_int_operand and pass it to expand_call.
7156 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
7157 pattern.
7158 (call_value): Likewise operand 3.
7159 (sibcall): Likewise operand 2. Place the unspec before rather than
7160 after the return.
7161 (sibcall_value): Likewise operand 3.
7162 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
7163 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
7164 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
7165 constraint strings.
7166 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
7167
7168 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7169
7170 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
7171 choose_hard_reg_mode.
7172 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7173
7174 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7175
7176 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
7177 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
7178 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
7179
7180 2019-09-30 David Malcolm <dmalcolm@redhat.com>
7181
7182 * diagnostic-show-locus.c (line_label::line_label): Initialize
7183 m_has_vbar.
7184 (line_label::comparator): Reverse the sort order by m_state_idx,
7185 so that when the list is walked backwards the labels appear in
7186 order of insertion into the rich_location.
7187 (line_label::m_has_vbar): New field.
7188 (layout::print_any_labels): When dealing with multiple labels at
7189 the same line and column, only print vertical bars for the one
7190 with the highest label_line.
7191 (selftest::test_one_liner_labels): Update test for multiple labels
7192 to expect the labels to be in the order of insertion into the
7193 rich_location. Add a test for many such labels, where the column
7194 numbers are out-of-order relative to the insertion order.
7195
7196 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7197
7198 * config/i386/i386.h (ix86_frame::expensive_p): New field.
7199 (ix86_frame::expensive_count): Likewise.
7200 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
7201 of use_fast_prologue_epilogue robust against incidental changes
7202 in function size.
7203
7204 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
7205
7206 PR target/77918
7207 * config/s390/vector.md (vec_unordered<mode>): Call
7208 gen_vec_ordered<mode>.
7209
7210 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
7211
7212 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
7213 New pattern for ASRD.
7214 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
7215 * internal-fn.def (IFN_DIV_POW2): New internal function.
7216 * optabs.def (sdiv_pow2_optab): New optab.
7217 * tree-vect-patterns.c (vect_recog_divmod_pattern):
7218 Modify pattern to support new operation.
7219 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
7220 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
7221 Document new target selector.
7222
7223 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7224
7225 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
7226 to test whether we're compiling a vector PCS function and to test
7227 whether the function needs to save a particular register.
7228 Remove the vector PCS handling of df_set_regs_ever_live.
7229 (aarch64_components_for_bb): Use crtl->abi to test whether
7230 the function needs to save a particular register.
7231 (aarch64_process_components): Use crtl->abi to test whether
7232 we're compiling a vector PCS function.
7233 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
7234 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
7235
7236 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7237
7238 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
7239 Delete.
7240 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
7241 whether the block calls a function that clobbers more registers
7242 than the current function is allowed to.
7243 (aarch64_use_simple_return_insn_p): Delete.
7244 * config/aarch64/aarch64.md (simple_return): Remove condition.
7245
7246 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7247
7248 * function-abi.h (function_abi_aggregator): New class.
7249 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
7250 function.
7251 * ira.c (update_equiv_regs_prescan): New function. Call
7252 set_paradoxical_subreg here rather than...
7253 (update_equiv_regs): ...here.
7254 (ira): Call update_equiv_regs_prescan.
7255
7256 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7257
7258 * hard-reg-set.h (regs_invalidated_by_call): Only define if
7259 IN_TARGET_CODE.
7260 (call_used_or_fixed_regs): Likewise.
7261 (call_used_or_fixed_reg_p): Likewise.
7262 * reginfo.c (regs_invalidated_by_call): New macro.
7263
7264 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7265
7266 * shrink-wrap.c: Include function-abi.h.
7267 (requires_stack_frame_p): Use crtl->abi to test whether the
7268 current function can use a register without saving it first.
7269
7270 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7271
7272 * sel-sched-ir.h (_def::crosses_call): Replace with...
7273 (_def::crossed_call_abis): ..this new field.
7274 (def_list_add): Take a mask of ABIs instead of a crosses_call
7275 boolean.
7276 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
7277 of _def accordingly.
7278 * sel-sched.c: Include function-abi.h.
7279 (hard_regs_data::regs_for_call_clobbered): Delete.
7280 (reg_rename::crosses_call): Replace with...
7281 (reg_rename::crossed_call_abis): ...this new field.
7282 (fur_static_params::crosses_call): Replace with...
7283 (fur_static_params::crossed_call_abis): ...this new field.
7284 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
7285 (init_hard_regs_data): Use crtl->abi to test which registers the
7286 current function would need to save before it uses them.
7287 (mark_unavailable_hard_regs): Update handling of call-clobbered
7288 registers, using call_clobbers_in_region to find out which registers
7289 might be call-clobbered (but without taking -fipa-ra into account
7290 for now). Remove separate handling of partially call-clobbered
7291 registers.
7292 (verify_target_availability): Use crossed_call_abis instead of
7293 crosses_call.
7294 (get_spec_check_type_for_insn, find_used_regs): Likewise.
7295 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
7296
7297 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7298
7299 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
7300 function to test whether a register is fully or partly clobbered.
7301
7302 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7303
7304 * rtlanal.c: Include function-abi.h.
7305 (reg_set_p): Use insn_callee_abi to get the ABI of the called
7306 function and clobbers_reg_p to test whether the register
7307 is call-clobbered.
7308 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
7309 to get the ABI of the called function and full_reg_clobbers to
7310 get the set of fully call-clobbered registers. Warn about the
7311 pitfalls of using this mode.
7312
7313 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7314
7315 * reload.c: Include function-abi.h.
7316 (find_equiv_reg): Use clobbers_reg_p to test whether either
7317 of the equivalent registers is clobbered by a call.
7318 * reload1.c: Include function-abi.h.
7319 (reg_reloaded_call_part_clobbered): Delete.
7320 (reload): Use crtl->abi to test which registers would need
7321 saving in the prologue before use.
7322 (find_reg): Likewise.
7323 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
7324 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
7325 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
7326
7327 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7328
7329 * regrename.h (du_head::call_clobber_mask): New field.
7330 (du_head::need_caller_save_reg): Replace with...
7331 (du_head::call_abis): ...this new field.
7332 * regrename.c: Include function-abi.h.
7333 (call_clobbered_in_chain_p): New function.
7334 (check_new_reg_p): Use crtl->abi when deciding whether a register
7335 is free for use after RA. Use call_clobbered_in_chain_p to test
7336 whether a candidate register would be clobbered by a call.
7337 (find_rename_reg): Don't add call-clobber conflicts here.
7338 (rename_chains): Check call_abis instead of need_caller_save_reg.
7339 (merge_chains): Update for changes to du_head.
7340 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
7341 target. Record the ABI identifier in call_abis and the set of
7342 fully or partially clobbered registers in call_clobber_mask.
7343 Add fully-clobbered registers to hard_conflicts here rather
7344 than in find_rename_reg.
7345 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
7346 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
7347 * config/aarch64/falkor-tag-collision-avoidance.c: Include
7348 function-abi.h.
7349 * config/c6x/c6x.c: Likewise.
7350
7351 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7352
7353 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
7354 mode of the register when deciding whether it is no longer
7355 available after a call.
7356
7357 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7358
7359 * recog.c: Include function-abi.h.
7360 (peep2_find_free_register): Use crtl->abi when deciding whether
7361 a register is free for use after RA.
7362
7363 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7364
7365 * postreload-gcse.c: Include regs.h and function-abi.h.
7366 (record_opr_changes): Use insn_callee_abi to get the ABI of the
7367 call insn target. Conservatively assume that partially-clobbered
7368 registers are altered.
7369
7370 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7371
7372 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
7373 when deciding whether a register is free for use after RA.
7374 (reload_combine): Remove unnecessary use of fixed_reg_set.
7375 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
7376 call insn target. Use reg_mode when testing whether a register
7377 is no longer available.
7378
7379 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7380
7381 * target.def (return_call_with_max_clobbers): Delete.
7382 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
7383 * doc/tm.texi: Regenerate.
7384 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
7385 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
7386 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
7387 (lra_reg::call_insn): Delete.
7388 * lra.c: Include function-abi.h.
7389 (initialize_lra_reg_info_element): Don't initialize the fields above.
7390 (lra): Use crtl->abi to test whether the current function needs to
7391 save a register in the prologue. Remove special pre-inheritance
7392 lra_create_live_ranges pass for flag_ipa_ra.
7393 * lra-assigns.c: Include function-abi.h
7394 (find_hard_regno_for_1): Use crtl->abi to test whether the current
7395 function needs to save a register in the prologue.
7396 (lra_assign): Assert that registers aren't allocated to a
7397 conflicting register, rather than checking only for overlaps
7398 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
7399 and for registers that are not live across a call.
7400 * lra-constraints.c (last_call_for_abi): New variable.
7401 (full_and_partial_call_clobbers): Likewise.
7402 (setup_next_usage_insn): Remove the register from
7403 full_and_partial_call_clobbers.
7404 (need_for_call_save_p): Use call_clobbered_in_region_p to test
7405 whether the register needs a caller save.
7406 (need_for_split_p): Use full_and_partial_reg_clobbers instead
7407 of call_used_or_fixed_regs.
7408 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
7409 full_and_partial_call_clobbers.
7410 * lra-lives.c (check_pseudos_live_through_calls): Replace
7411 last_call_used_reg_set and call_insn arguments with an abi argument.
7412 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
7413 as the set of conflicting registers.
7414 (calls_have_same_clobbers_p): Delete.
7415 (process_bb_lives): Track the ABI of the last call instead of an
7416 insn/HARD_REG_SET pair. Update calls to
7417 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
7418 the set of registers that could be clobbered by an EH edge.
7419 Include partially-clobbered as well as fully-clobbered registers.
7420 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
7421 * lra-remat.c: Include function-abi.h.
7422 (call_used_regs_arr_len, call_used_regs_arr): Delete.
7423 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
7424 registers and bitmap_view to combine them into dead_regs.
7425 (call_used_input_regno_present_p): Take a function_abi argument
7426 and use it to test whether a register is call-clobbered.
7427 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
7428 call insn target. Update tje call to call_used_input_regno_present_p.
7429 (do_remat): Likewise.
7430 (lra_remat): Remove the initialization of call_used_regs_arr_len
7431 and call_used_regs_arr.
7432
7433 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7434
7435 * loop-iv.c: Include regs.h and function-abi.h.
7436 (simplify_using_initial_values): Use insn_callee_abi to get the
7437 ABI of the call insn target. Conservatively assume that
7438 partially-clobbered registers are altered.
7439
7440 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7441
7442 * function-abi.h (call_clobbers_in_region): Declare.
7443 (call_clobbered_in_region_p): New function.
7444 * function-abi.cc (call_clobbers_in_region): Likewise.
7445 * ira-int.h: Include function-abi.h.
7446 (ira_allocno::crossed_calls_abis): New field.
7447 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
7448 (ira_need_caller_save_regs): New function.
7449 (ira_need_caller_save_p): Likewise.
7450 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
7451 of call_used_or_fixed_regs.
7452 (do_reload): Use crtl->abi to test whether the current function
7453 needs to save a register in the prologue. Count registers that
7454 need to be saved rather than registers that don't.
7455 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
7456 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7457 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
7458 (propagate_some_info_from_allocno): Likewise.
7459 (copy_info_to_removed_store_destinations): Likewise.
7460 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
7461 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
7462 (ira_build): Use ira_need_caller_save_regs instead of
7463 call_used_or_fixed_regs.
7464 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
7465 whether the current function would need to save a register
7466 before using it.
7467 (calculate_spill_cost): Likewise.
7468 (allocno_reload_assign): Use ira_need_caller_save_regs and
7469 ira_need_caller_save_p instead of call_used_or_fixed_regs.
7470 * ira-conflicts.c (ira_build_conflicts): Use
7471 ira_need_caller_save_regs rather than call_used_or_fixed_regs
7472 as the set of call-clobbered registers. Remove the
7473 call_used_or_fixed_regs mask from the calculation of
7474 temp_hard_reg_set and mask its use instead. Remove special
7475 handling of partially-clobbered registers.
7476 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
7477 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
7478 calculate the set of conflicting registers for calls that
7479 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
7480 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
7481 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7482 Use eh_edge_abi to calculate the set of registers that could
7483 be clobbered by an EH edge. Include partially-clobbered as
7484 well as fully-clobbered registers.
7485
7486 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7487
7488 * haifa-sched.c: Include function-abi.h.
7489 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
7490 the function would need to save a register before using it.
7491
7492 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7493
7494 * gcse.c: Include function-abi.h.
7495 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
7496 the call insn target. Invalidate partially call-clobbered
7497 registers as well as fully call-clobbered ones.
7498
7499 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7500
7501 * function.c (aggregate_value_p): Work out which ABI the
7502 function is using before testing which registers are at least
7503 partly preserved by a call.
7504
7505 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7506
7507 * early-remat.c: Include regs.h and function-abi.h.
7508 (early_remat::maybe_add_candidate): Don't check for call-clobbered
7509 registers here.
7510 (early_remat::restrict_remat_for_unavail_regs): New function.
7511 (early_remat::restrict_remat_for_call): Likewise.
7512 (early_remat::process_block): Before calling emit_remat_insns
7513 for a previous call in the block, invalidate any candidates
7514 that would clobber call-preserved registers.
7515 (early_remat::emit_remat_insns_for_block): Likewise for the
7516 final call in a block. Do the same thing for live-in registers
7517 when calling emit_remat_insns at the head of a block.
7518
7519 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7520
7521 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
7522 whether the current function needs to save at least part of a
7523 register before using it.
7524 (df_get_exit_block_use_set): Likewise for epilogue restores.
7525
7526 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7527
7528 * df-problems.c: Include regs.h and function-abi.h.
7529 (df_rd_problem_data): Rename sparse_invalidated_by_call to
7530 sparse_invalidated_by_eh and dense_invalidated_by_call to
7531 dense_invalidated_by_eh.
7532 (df_print_bb_index): Update accordingly.
7533 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
7534 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
7535 that are clobbered by an EH edge. Clobber partially-clobbered
7536 registers as well as fully-clobbered ones.
7537 (df_md_confluence_n): Likewise.
7538 (df_rd_local_compute): Likewise. Update for changes to
7539 df_rd_problem_data.
7540 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
7541 of registers that are clobbered by an EH edge. Includde partially-
7542 clobbered registers as well as fully-clobbered ones.
7543
7544 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7545
7546 * cselib.c (cselib_process_insn): If we know what mode a
7547 register was set in, check whether it is clobbered in that
7548 mode by a call. Only fall back to reg_raw_mode if that fails.
7549
7550 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7551
7552 * cse.c: Include regs.h and function-abi.h.
7553 (invalidate_for_call): Take the call insn as an argument.
7554 Use insn_callee_abi to get the ABI of the call and invalidate
7555 partially clobbered registers as well as fully clobbered ones.
7556 (cse_insn): Update call accordingly.
7557
7558 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7559
7560 * combine.c: Include function-abi.h.
7561 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
7562 of the target of call insns. Invalidate partially-clobbered
7563 registers as well as fully-clobbered ones.
7564
7565 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7566
7567 * cfgloopanal.c: Include regs.h and function-abi.h.
7568 (init_set_costs): Use default_function_abi to test whether
7569 a general register is call-clobbered.
7570
7571 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7572
7573 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
7574 instead of the call-clobbered sets.
7575
7576 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7577
7578 * caller-save.c (setup_save_areas): Remove redundant |s of
7579 fixed_reg_set.
7580 (save_call_clobbered_regs): Likewise. Use the call ABI rather
7581 than call_used_or_fixed_regs to decide whether a REG_RETURNED
7582 value is useful.
7583
7584 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7585
7586 * rtl.h (predefined_function_abi): Declare.
7587 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
7588 instead of a boolean call_save flag.
7589 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
7590 accordingly.
7591 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7592 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7593 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
7594 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7595 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7596 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
7597 * reginfo.c (init_reg_modes_target): Likewise.
7598 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
7599 instead of a boolean call_save flag.
7600 * targhooks.c: Include function-abi.h.
7601 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
7602 using eh_edge_abi to choose the mode.
7603
7604 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7605
7606 * target.def (hard_regno_call_part_clobbered): Take an ABI
7607 identifier instead of an rtx_insn.
7608 * doc/tm.texi: Regenerate.
7609 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
7610 (hook_bool_uint_uint_mode_false): New function.
7611 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
7612 (hook_bool_uint_uint_mode_false): New function.
7613 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7614 Take an ABI identifier instead of an rtx_insn.
7615 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
7616 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
7617 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
7618 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
7619 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
7620 Likewise.
7621 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
7622 * cselib.c: Include function-abi.h.
7623 (cselib_process_insn): Update call to
7624 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
7625 to get the appropriate ABI identifier.
7626 * function-abi.cc (predefined_function_abi::initialize): Update call
7627 to targetm.hard_regno_call_part_clobbered.
7628 * ira-conflicts.c (ira_build_conflicts): Likewise.
7629 * ira-costs.c (ira_tune_allocno_costs): Likewise.
7630 * lra-constraints.c: Include function-abi.h.
7631 (need_for_call_save_p): Update call to
7632 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
7633 to get the appropriate ABI identifier.
7634 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
7635 * regcprop.c (copyprop_hardreg_forward_1): Update call
7636 to targetm.hard_regno_call_part_clobbered.
7637 * reginfo.c (choose_hard_reg_mode): Likewise.
7638 * regrename.c (check_new_reg_p): Likewise.
7639 * reload.c (find_equiv_reg): Likewise.
7640 * reload1.c (emit_reload_insns): Likewise.
7641 * sched-deps.c: Include function-abi.h.
7642 (deps_analyze_insn): Update call to
7643 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
7644 to get the appropriate ABI identifier.
7645 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
7646 call to targetm.hard_regno_call_part_clobbered.
7647 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
7648
7649 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7650
7651 * config/i386/i386.c: Include function-abi.h.
7652 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
7653 if they preserve some 256-bit or 512-bit SSE registers.
7654
7655 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7656
7657 * target.def (insn_callee_abi): New hook.
7658 (remove_extra_call_preserved_regs): Delete.
7659 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
7660 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
7661 * doc/tm.texi: Regenerate.
7662 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
7663 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
7664 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
7665 insn argument.
7666 (aarch64_remove_extra_call_preserved_regs): Delete.
7667 (aarch64_insn_callee_abi): New function.
7668 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
7669 (TARGET_INSN_CALLEE_ABI): New macro.
7670 * rtl.h (get_call_fndecl): Declare.
7671 (cgraph_rtl_info): Fix formatting. Tweak comment for
7672 function_used_regs. Remove function_used_regs_valid.
7673 * rtlanal.c (get_call_fndecl): Moved from final.c
7674 * function-abi.h (insn_callee_abi): Declare.
7675 (target_function_abi_info): Mention insn_callee_abi.
7676 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
7677 way to get_call_reg_set_usage did.
7678 (insn_callee_abi): New function.
7679 * regs.h (get_call_reg_set_usage): Delete.
7680 * final.c: Include function-abi.h.
7681 (collect_fn_hard_reg_usage): Add fixed and stack registers to
7682 function_used_regs before the main loop rather than afterwards.
7683 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
7684 if function_used_regs ends up not being useful.
7685 (get_call_fndecl): Move to rtlanal.c
7686 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
7687 * caller-save.c: Include function-abi.h.
7688 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
7689 instead of get_call_reg_set_usage.
7690 * cfgcleanup.c: Include function-abi.h.
7691 (old_insns_match_p): Use insn_callee_abi instead of
7692 get_call_reg_set_usage.
7693 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
7694 a tree.
7695 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
7696 function_used_regs.
7697 * df-scan.c: Include function-abi.h.
7698 (df_get_call_refs): Use insn_callee_abi instead of
7699 get_call_reg_set_usage.
7700 * ira-lives.c: Include function-abi.h.
7701 (process_bb_node_lives): Use insn_callee_abi instead of
7702 get_call_reg_set_usage.
7703 * lra-lives.c: Include function-abi.h.
7704 (process_bb_lives): Use insn_callee_abi instead of
7705 get_call_reg_set_usage.
7706 * postreload.c: Include function-abi.h.
7707 (reload_combine): Use insn_callee_abi instead of
7708 get_call_reg_set_usage.
7709 * regcprop.c: Include function-abi.h.
7710 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
7711 get_call_reg_set_usage.
7712 * resource.c: Include function-abi.h.
7713 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
7714 instead of get_call_reg_set_usage.
7715 * var-tracking.c: Include function-abi.h.
7716 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
7717 get_call_reg_set_usage.
7718
7719 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7720
7721 * target.def (fntype_abi): New target hook.
7722 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
7723 * doc/tm.texi: Regenerate.
7724 * target.h (predefined_function_abi): Declare.
7725 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
7726 if defined.
7727 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
7728 * config/aarch64/aarch64.c: Include function-abi.h.
7729 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
7730 (TARGET_FNTYPE_ABI): Define.
7731
7732 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7733
7734 * Makefile.in (OBJS): Add function-abi.o.
7735 (GTFILES): Add function-abi.h.
7736 * function-abi.cc: New file.
7737 * function-abi.h: Likewise.
7738 * emit-rtl.h (rtl_data::abi): New field.
7739 * function.c: Include function-abi.h.
7740 (prepare_function_start): Initialize crtl->abi.
7741 * read-rtl-function.c: Include regs.h and function-abi.h.
7742 (read_rtl_function_body): Initialize crtl->abi.
7743 (read_rtl_function_body_from_file_range): Likewise.
7744 * reginfo.c: Include function-abi.h.
7745 (init_reg_sets_1): Initialize default_function_abi.
7746 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
7747 when making a register global.
7748 * target-globals.h (this_target_function_abi_info): Declare.
7749 (target_globals::function_abi_info): New field.
7750 (restore_target_globals): Copy it.
7751 * target-globals.c: Include function-abi.h.
7752 (default_target_globals): Initialize the function_abi_info field.
7753 (target_globals): Allocate it.
7754 (save_target_globals): Free it.
7755
7756 2019-09-30 Nick Clifton <nickc@redhat.com>
7757
7758 PR target/85978
7759 * config/frv/frv.c (frv_register_move_cost): Add break statements
7760 to avoid falling through to the wrong cases. Tidy code.
7761
7762 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7763
7764 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7765 For multi-registers modes, test how big each register part is.
7766
7767 2019-09-30 Nick Clifton <nickc@redhat.com>
7768
7769 PR target/59205
7770 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
7771 (TARGET_ASM_SELECT_SECTION): Remove definition.
7772 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
7773
7774 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
7775
7776 * emit-rtl.c (init_raw_REG): New function.
7777 (gen_raw_REG): Use init_raw_REG.
7778 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
7779 macros.
7780 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
7781 * rtl.h (rtx_init): New function.
7782 (rtx_alloca): New function.
7783 (init_raw_REG): New function.
7784 (alloca_raw_REG): New macro.
7785
7786 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
7787
7788 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
7789 (pcrel_local_address): Replace pcrel_address predicate, use the
7790 new function address_to_insn_form.
7791 (pcrel_external_address): Replace with new implementation using
7792 address_to_insn_form..
7793 (prefixed_mem_operand): Delete predicate which is now unused.
7794 (pcrel_external_mem_operand): Delete predicate which is now
7795 unused.
7796 * config/rs6000/rs6000-protos.h (enum insn_form): New
7797 enumeration.
7798 (enum non_prefixed_form): New enumeration.
7799 (address_to_insn_form): New declaration.
7800 (prefixed_load_p): New declaration.
7801 (prefixed_store_p): New declaration.
7802 (prefixed_paddi_p): New declaration.
7803 (rs6000_asm_output_opcode): New declaration.
7804 (rs6000_final_prescan_insn): Move declaration and update calling
7805 signature.
7806 (address_is_prefixed): New helper inline function.
7807 * config/rs6000/rs6000.c(print_operand_address): Check for either
7808 PC-relative local symbols or PC-relative external symbols.
7809 (rs6000_emit_move): Support loading PC-relative addresses.
7810 (mode_supports_prefixed_address_p): Delete, no longer used.
7811 (rs6000_prefixed_address_mode_p): Delete, no longer used.
7812 (address_to_insn_form): New function to decode an address format.
7813 (reg_to_non_prefixed): New function to identify what the
7814 non-prefixed memory instruction format is for a register.
7815 (prefixed_load_p): New function to identify prefixed loads.
7816 (prefixed_store_p): New function to identify prefixed stores.
7817 (prefixed_paddi_p): New function to identify prefixed load
7818 immediates.
7819 (next_insn_prefixed_p): New static state variable.
7820 (rs6000_final_prescan_insn): New function to determine if an insn
7821 uses a prefixed instruction.
7822 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
7823 prefixed instruction.
7824 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
7825 (ASM_OUTPUT_OPCODE): New target hook.
7826 * config/rs6000/rs6000.md (prefixed): New insn attribute for
7827 prefixed instructions.
7828 (prefixed_length): New insn attribute for the size of prefixed
7829 instructions.
7830 (non_prefixed_length): New insn attribute for the size of
7831 non-prefixed instructions.
7832 (pcrel_local_addr): New insn to load up a local PC-relative
7833 address.
7834 (pcrel_extern_addr): New insn to load up an external PC-relative
7835 address.
7836 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
7837 GPR and loading a 128-bit floating point type to a GPR.
7838
7839 2019-09-30 Richard Biener <rguenther@suse.de>
7840
7841 * gimple.c (gimple_get_lhs): For PHIs return the result.
7842 * tree-vectorizer.h (vectorizable_live_operation): Also get the
7843 SLP instance as argument.
7844 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
7845 double-reduction PHIs with vectorizable_lc_phi.
7846 (vect_analyze_loop_operations): Adjust.
7847 (vect_create_epilog_for_reduction): Remove all code not dealing
7848 with reduction LC PHI or epilogue generation.
7849 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
7850 for live stmts of reductions.
7851 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
7852 do not handle defs that are not vect_internal_def.
7853 (can_vectorize_live_stmts): Adjust.
7854 (vect_analyze_stmt): When the vectorized stmt defined a value
7855 used on backedges adjust the backedge uses of vectorized PHIs.
7856
7857 2019-09-30 Martin Jambor <mjambor@suse.cz>
7858
7859 PR ipa/91853
7860 * tree-inline.c (force_value_to_type): New function.
7861 (setup_one_parameter): Use force_value_to_type to convert type.
7862 * tree-inline.c (force_value_to_type): Declare.
7863 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
7864 with register type mismatches.
7865
7866 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
7867
7868 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
7869 32-bit PowerPC.
7870 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
7871 * config/rs6000/t-freebsd64: Make use of the above define and build
7872 the 32-bit libraries with secure-plt.
7873
7874 2019-09-30 Jakub Jelinek <jakub@redhat.com>
7875
7876 PR target/91931
7877 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
7878 gen_int_mode instead of GEN_INT.
7879
7880 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
7881
7882 * config/darwin.c (gen_macho_low): Amend to include the mode
7883 argument.
7884 (machopic_indirect_data_reference): Amend gen_macho_low call
7885 to include mode argument
7886 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
7887 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
7888 the macho_high expander and two define_insn entries.
7889
7890 2019-09-29 Jakub Jelinek <jakub@redhat.com>
7891
7892 PR bootstrap/90543
7893 * optc-save-gen.awk: Fix up printing string option differences.
7894
7895 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
7896
7897 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
7898 vec_perm cost to 1 for non-Power7 VSX architectures.
7899
7900 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
7901
7902 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
7903 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
7904 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
7905
7906 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
7907
7908 * config/darwin.c (gen_macho_high): Amend to include the mode
7909 argument.
7910 (machopic_indirect_data_reference): Amend gen_macho_high call
7911 to include mode argument.
7912 (machopic_legitimize_pic_address): Likewise.
7913 * config/rs6000/rs6000.c (rs6000_legitimize_address):
7914 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
7915 the macho_high expander and two define_insn entries.
7916
7917 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
7918
7919 PR target/86805
7920 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
7921
7922 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
7923
7924 PR target/80672
7925 * config/sh/sh.c (parse_validate_atomic_model_option): Use
7926 std::string::compare instead of std::string::find.
7927
7928 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
7929
7930 * configure: Regenerate.
7931
7932 2019-09-27 Jakub Jelinek <jakub@redhat.com>
7933
7934 PR middle-end/91920
7935 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
7936 variables as shared.
7937
7938 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
7939
7940 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
7941 replaces the expander and two define_insn entries.
7942 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
7943 call.
7944 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
7945
7946 2019-09-27 David Malcolm <dmalcolm@redhat.com>
7947
7948 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
7949 (fibonacci_heap::nodes): Likewise.
7950 (fibonacci_heap::min_key): Likewise.
7951 (fibonacci_heap::min): Likewise.
7952
7953 2019-09-27 David Malcolm <dmalcolm@redhat.com>
7954
7955 * cgraph.c (cgraph_node::get_fun): Make const.
7956 * cgraph.h (cgraph_node::get_fun): Likewise.
7957
7958 2019-09-27 Jakub Jelinek <jakub@redhat.com>
7959
7960 PR target/91919
7961 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
7962 of SImode MULT.
7963
7964 2019-09-27 Richard Biener <rguenther@suse.de>
7965
7966 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
7967 (STMT_VINFO_REDUC_FN): Likewise.
7968 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
7969 STMT_VINFO_REDUC_FN.
7970 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
7971 for condition reductions.
7972 (vect_create_epilog_for_reduction): Compute all required state
7973 from the stmt to be vectorized.
7974 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
7975 invocation and remove then dead code. For single def-use chains
7976 record only a single vector stmt.
7977
7978 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
7979
7980 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
7981 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
7982 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
7983 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
7984 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
7985 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
7986 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
7987 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
7988 (aarch64_general_builtin_rsqrt): Declare.
7989 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
7990 New function.
7991 (aarch64_mangle_builtin_type): Rename to...
7992 (aarch64_general_mangle_builtin_type): ...this.
7993 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
7994 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
7995 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
7996 aarch64_general_add_builtin instead of add_builtin_function.
7997 (aarch64_init_builtins): Rename to...
7998 (aarch64_general_init_builtins): ...this. Use
7999 aarch64_general_add_builtin instead of add_builtin_function.
8000 (aarch64_builtin_decl): Rename to...
8001 (aarch64_general_builtin_decl): ...this and remove the unused
8002 arguments.
8003 (aarch64_expand_builtin): Rename to...
8004 (aarch64_general_expand_builtin): ...this and remove the unused
8005 arguments.
8006 (aarch64_builtin_rsqrt): Rename to...
8007 (aarch64_general_builtin_rsqrt): ...this.
8008 (aarch64_fold_builtin): Rename to...
8009 (aarch64_general_fold_builtin): ...this. Take the function subcode
8010 and return type as arguments. Remove the "ignored" argument.
8011 (aarch64_gimple_fold_builtin): Rename to...
8012 (aarch64_general_gimple_fold_builtin): ...this. Take the function
8013 subcode and gcall as arguments, and return the new function call.
8014 * config/aarch64/aarch64.c (aarch64_init_builtins)
8015 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
8016 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
8017 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
8018 instead of aarch64_builtin_rsqrt.
8019 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
8020 instead of aarch64_mangle_builtin_type.
8021
8022 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8023
8024 * target.def (check_builtin_call): New target hook.
8025 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
8026 * doc/tm.texi: Regenerate.
8027
8028 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8029
8030 PR tree-optimization/91909
8031 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
8032 reduc_index parameter. When handling COND_REDUCTION, make sure
8033 that the reduction phi operand is in the correct arm of the
8034 VEC_COND_EXPR.
8035 (vectorizable_reduction): Pass reduc_index to the above.
8036
8037 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
8038
8039 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
8040 New combine pattern.
8041
8042 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
8043
8044 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
8045 loop instruction into new basic block before the loop when basic
8046 block that precedes the loop is empty.
8047
8048 2019-09-26 Jakub Jelinek <jakub@redhat.com>
8049
8050 * function.c (gimplify_parameters): Use build_clobber function.
8051 * tree-ssa.c (execute_update_addresses_taken): Likewise.
8052 * tree-inline.c (expand_call_inline): Likewise.
8053 * tree-sra.c (clobber_subtree): Likewise.
8054 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
8055 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
8056 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
8057 lower_omp_target): Likewise.
8058 * omp-expand.c (expand_omp_for_generic): Likewise.
8059 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
8060
8061 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
8062
8063 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
8064 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
8065 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
8066 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
8067 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
8068 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
8069 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
8070 LD_ELEMREV_V16QI): Use the PURE attribute.
8071
8072 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
8073
8074 * config/rs6000/darwin.md: Replace the expanders for
8075 load_macho_picbase and reload_macho_picbase with use of '@'
8076 and <mode> in their respective define_insns.
8077 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
8078 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
8079 Pmode to gen_load_macho_picbase.
8080 * config/rs6000/rs6000.md: Likewise.
8081
8082 2019-09-25 Richard Biener <rguenther@suse.de>
8083
8084 PR tree-optimization/91896
8085 * tree-vect-loop.c (vectorizable_reduction): The single
8086 def-use cycle optimization cannot apply when there's more
8087 than one pattern stmt involved.
8088
8089 2019-09-26 Richard Biener <rguenther@suse.de>
8090
8091 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
8092 loop-closed PHIs that are vect_internal_def.
8093 (vect_create_epilog_for_reduction): Exit early for nested cycles.
8094 Simplify.
8095 (vectorizable_lc_phi): New.
8096 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
8097 (vect_transform_stmt): Likewise.
8098 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
8099 (vectorizable_lc_phi): Declare.
8100
8101 2019-09-26 Richard Biener <rguenther@suse.de>
8102
8103 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
8104 vectorizable_reduction for vect_double_reduction_def.
8105 (vect_transform_loop): Likewise.
8106 (vect_create_epilog_for_reduction): Move double-reduction
8107 PHI creation and preheader argument setting of PHIs ...
8108 (vectorizable_reduction): ... here. Also process
8109 vect_double_reduction_def PHIs, creating the vectorized
8110 PHI nodes, remembering the scalar adjustment computed for
8111 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
8112 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
8113 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
8114 Initialize STMT_VINFO_REDUC_CODE.
8115 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
8116 (_stmt_vec_info::reduc_code): Likewise.
8117 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
8118 (STMT_VINFO_REDUC_CODE): Likewise.
8119
8120 2019-09-26 Matt Turner <mattst88@gmail.com>
8121
8122 PR driver/69471
8123 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
8124 (mtune=): Add Negative(mtune=).
8125 (mcpu=): Add Negative(mcpu=).
8126 * config/arm/arm.opt: Likewise.
8127
8128 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8129
8130 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
8131 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
8132 Define.
8133 * config/arm/arm_acle.h: Define builtins for the above.
8134 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
8135 (simd32_op): Handle the above.
8136 * config/arm/unspecs.md: Define unspecs for the above.
8137
8138 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8139
8140 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
8141 (arm_<sup>xtb16): Likewise.
8142 (arm_usada8): Likewise.
8143 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
8144 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
8145 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
8146 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
8147 __sxtb16, __uxtab16, __uxtb16): Define.
8148 * config/arm/arm_acle_builtins.def: Define builtins for the above.
8149 * config/arm/unspecs.md: Define unspecs for the above.
8150 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
8151 (USXTB16): Likewise.
8152 (simd32_op): New int_attribute.
8153 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
8154 * doc/sourcebuild.exp (arm_simd32_ok): Document.
8155
8156 2019-09-26 Martin Jambor <mjambor@suse.cz>
8157
8158 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
8159 internal_error.
8160
8161 2019-09-26 Martin Jambor <mjambor@suse.cz>
8162
8163 * ipa-sra.c (process_scan_results): Fix continue condition.
8164
8165 2019-09-26 Martin Liska <mliska@suse.cz>
8166
8167 PR tree-optimization/91885
8168 * tree-vectorizer.c (try_vectorize_loop_1): Add
8169 TODO_update_ssa_only_virtuals similarly to what slp pass does.
8170
8171 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
8172
8173 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
8174 aarch64_plus_immediate rather than aarch64_uimm12_shift
8175 to test for valid PLUS immediates.
8176
8177 2019-09-25 Martin Jambor <mjambor@suse.cz>
8178
8179 * tree-sra.c (no_accesses_p): Remove.
8180 (no_accesses_representant): Likewise.
8181
8182 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8183
8184 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
8185 consistenly.
8186 (vaba_s16): Likewise.
8187 (vaba_s32): Likewise.
8188 (vaba_u8): Likewise.
8189 (vaba_u16): Likewise.
8190 (vaba_u32): Likewise.
8191 (vabal_high_s8): Likewise.
8192 (vabal_high_s16): Likewise.
8193 (vabal_high_s32): Likewise.
8194 (vabal_high_u8): Likewise.
8195 (vabal_high_u16): Likewise.
8196 (vabal_high_u32): Likewise.
8197 (vabal_s8): Likewise.
8198 (vabal_s16): Likewise.
8199 (vabal_s32): Likewise.
8200 (vabal_u8): Likewise.
8201 (vabal_u16): Likewise.
8202 (vabal_u32): Likewise.
8203 (vabaq_s8): Likewise.
8204 (vabaq_s16): Likewise.
8205 (vabaq_s32): Likewise.
8206 (vabaq_u8): Likewise.
8207 (vabaq_u16): Likewise.
8208 (vabaq_u32): Likewise.
8209 (vabd_s8): Likewise.
8210 (vabd_s16): Likewise.
8211 (vabd_s32): Likewise.
8212 (vabd_u8): Likewise.
8213 (vabd_u16): Likewise.
8214 (vabd_u32): Likewise.
8215 (vabdl_high_s8): Likewise.
8216 (vabdl_high_s16): Likewise.
8217 (vabdl_high_s32): Likewise.
8218 (vabdl_high_u8): Likewise.
8219 (vabdl_high_u16): Likewise.
8220 (vabdl_high_u32): Likewise.
8221 (vabdl_s8): Likewise.
8222 (vabdl_s16): Likewise.
8223 (vabdl_s32): Likewise.
8224 (vabdl_u8): Likewise.
8225 (vabdl_u16): Likewise.
8226 (vabdl_u32): Likewise.
8227 (vabdq_s8): Likewise.
8228 (vabdq_s16): Likewise.
8229 (vabdq_s32): Likewise.
8230 (vabdq_u8): Likewise.
8231 (vabdq_u16): Likewise.
8232 (vabdq_u32): Likewise.
8233 (vaddlv_s8): Likewise.
8234 (vaddlv_s16): Likewise.
8235 (vaddlv_u8): Likewise.
8236 (vaddlv_u16): Likewise.
8237 (vaddlvq_s8): Likewise.
8238 (vaddlvq_s16): Likewise.
8239 (vaddlvq_s32): Likewise.
8240 (vaddlvq_u8): Likewise.
8241 (vaddlvq_u16): Likewise.
8242 (vaddlvq_u32): Likewise.
8243 (vcvtx_f32_f64): Likewise.
8244 (vcvtx_high_f32_f64): Likewise.
8245 (vcvtxd_f32_f64): Likewise.
8246 (vmla_n_f32): Likewise.
8247 (vmla_n_s16): Likewise.
8248 (vmla_n_s32): Likewise.
8249 (vmla_n_u16): Likewise.
8250 (vmla_n_u32): Likewise.
8251 (vmla_s8): Likewise.
8252 (vmla_s16): Likewise.
8253 (vmla_s32): Likewise.
8254 (vmla_u8): Likewise.
8255 (vmla_u16): Likewise.
8256 (vmla_u32): Likewise.
8257 (vmlal_high_n_s16): Likewise.
8258 (vmlal_high_n_s32): Likewise.
8259 (vmlal_high_n_u16): Likewise.
8260 (vmlal_high_n_u32): Likewise.
8261 (vmlal_high_s8): Likewise.
8262 (vmlal_high_s16): Likewise.
8263 (vmlal_high_s32): Likewise.
8264 (vmlal_high_u8): Likewise.
8265 (vmlal_high_u16): Likewise.
8266 (vmlal_high_u32): Likewise.
8267 (vmlal_n_s16): Likewise.
8268 (vmlal_n_s32): Likewise.
8269 (vmlal_n_u16): Likewise.
8270 (vmlal_n_u32): Likewise.
8271 (vmlal_s8): Likewise.
8272 (vmlal_s16): Likewise.
8273 (vmlal_s32): Likewise.
8274 (vmlal_u8): Likewise.
8275 (vmlal_u16): Likewise.
8276 (vmlal_u32): Likewise.
8277 (vmlaq_n_f32): Likewise.
8278 (vmlaq_n_s16): Likewise.
8279 (vmlaq_n_s32): Likewise.
8280 (vmlaq_n_u16): Likewise.
8281 (vmlaq_n_u32): Likewise.
8282 (vmlaq_s8): Likewise.
8283 (vmlaq_s16): Likewise.
8284 (vmlaq_s32): Likewise.
8285 (vmlaq_u8): Likewise.
8286 (vmlaq_u16): Likewise.
8287 (vmlaq_u32): Likewise.
8288 (vmls_n_f32): Likewise.
8289 (vmls_n_s16): Likewise.
8290 (vmls_n_s32): Likewise.
8291 (vmls_n_u16): Likewise.
8292 (vmls_n_u32): Likewise.
8293 (vmls_s8): Likewise.
8294 (vmls_s16): Likewise.
8295 (vmls_s32): Likewise.
8296 (vmls_u8): Likewise.
8297 (vmls_u16): Likewise.
8298 (vmls_u32): Likewise.
8299 (vmlsl_high_n_s16): Likewise.
8300 (vmlsl_high_n_s32): Likewise.
8301 (vmlsl_high_n_u16): Likewise.
8302 (vmlsl_high_n_u32): Likewise.
8303 (vmlsl_high_s8): Likewise.
8304 (vmlsl_high_s16): Likewise.
8305 (vmlsl_high_s32): Likewise.
8306 (vmlsl_high_u8): Likewise.
8307 (vmlsl_high_u16): Likewise.
8308 (vmlsl_high_u32): Likewise.
8309 (vmlsl_n_s16): Likewise.
8310 (vmlsl_n_s32): Likewise.
8311 (vmlsl_n_u16): Likewise.
8312 (vmlsl_n_u32): Likewise.
8313 (vmlsl_s8): Likewise.
8314 (vmlsl_s16): Likewise.
8315 (vmlsl_s32): Likewise.
8316 (vmlsl_u8): Likewise.
8317 (vmlsl_u16): Likewise.
8318 (vmlsl_u32): Likewise.
8319 (vmlsq_n_f32): Likewise.
8320 (vmlsq_n_s16): Likewise.
8321 (vmlsq_n_s32): Likewise.
8322 (vmlsq_n_u16): Likewise.
8323 (vmlsq_n_u32): Likewise.
8324 (vmlsq_s8): Likewise.
8325 (vmlsq_s16): Likewise.
8326 (vmlsq_s32): Likewise.
8327 (vmlsq_u8): Likewise.
8328 (vmlsq_u16): Likewise.
8329 (vmlsq_u32): Likewise.
8330 (vmovl_high_s8): Likewise.
8331 (vmovl_high_s16): Likewise.
8332 (vmovl_high_s32): Likewise.
8333 (vmovl_high_u8): Likewise.
8334 (vmovl_high_u16): Likewise.
8335 (vmovl_high_u32): Likewise.
8336 (vmovl_s8): Likewise.
8337 (vmovl_s16): Likewise.
8338 (vmovl_s32): Likewise.
8339 (vmovl_u8): Likewise.
8340 (vmovl_u16): Likewise.
8341 (vmovl_u32): Likewise.
8342 (vmovn_high_s16): Likewise.
8343 (vmovn_high_s32): Likewise.
8344 (vmovn_high_s64): Likewise.
8345 (vmovn_high_u16): Likewise.
8346 (vmovn_high_u32): Likewise.
8347 (vmovn_high_u64): Likewise.
8348 (vmovn_s16): Likewise.
8349 (vmovn_s32): Likewise.
8350 (vmovn_s64): Likewise.
8351 (vmovn_u16): Likewise.
8352 (vmovn_u32): Likewise.
8353 (vmovn_u64): Likewise.
8354 (vmull_high_n_s16): Likewise.
8355 (vmull_high_n_s32): Likewise.
8356 (vmull_high_n_u16): Likewise.
8357 (vmull_high_n_u32): Likewise.
8358 (vmull_high_p8): Likewise.
8359 (vmull_high_s8): Likewise.
8360 (vmull_high_s16): Likewise.
8361 (vmull_high_s32): Likewise.
8362 (vmull_high_u8): Likewise.
8363 (vmull_high_u16): Likewise.
8364 (vmull_high_u32): Likewise.
8365 (vmull_n_s16): Likewise.
8366 (vmull_n_s32): Likewise.
8367 (vmull_n_u16): Likewise.
8368 (vmull_n_u32): Likewise.
8369 (vmull_p8): Likewise.
8370 (vmull_s8): Likewise.
8371 (vmull_s16): Likewise.
8372 (vmull_s32): Likewise.
8373 (vmull_u8): Likewise.
8374 (vmull_u16): Likewise.
8375 (vmull_u32): Likewise.
8376 (vpadal_s8): Likewise.
8377 (vpadal_s16): Likewise.
8378 (vpadal_s32): Likewise.
8379 (vpadal_u8): Likewise.
8380 (vpadal_u16): Likewise.
8381 (vpadal_u32): Likewise.
8382 (vpadalq_s8): Likewise.
8383 (vpadalq_s16): Likewise.
8384 (vpadalq_s32): Likewise.
8385 (vpadalq_u8): Likewise.
8386 (vpadalq_u16): Likewise.
8387 (vpadalq_u32): Likewise.
8388 (vpaddl_s8): Likewise.
8389 (vpaddl_s16): Likewise.
8390 (vpaddl_s32): Likewise.
8391 (vpaddl_u8): Likewise.
8392 (vpaddl_u16): Likewise.
8393 (vpaddl_u32): Likewise.
8394 (vpaddlq_s8): Likewise.
8395 (vpaddlq_s16): Likewise.
8396 (vpaddlq_s32): Likewise.
8397 (vpaddlq_u8): Likewise.
8398 (vpaddlq_u16): Likewise.
8399 (vpaddlq_u32): Likewise.
8400 (vpaddq_s8): Likewise.
8401 (vpaddq_s16): Likewise.
8402 (vpaddq_s32): Likewise.
8403 (vpaddq_s64): Likewise.
8404 (vpaddq_u8): Likewise.
8405 (vpaddq_u16): Likewise.
8406 (vpaddq_u32): Likewise.
8407 (vpaddq_u64): Likewise.
8408 (vqdmulh_n_s16): Likewise.
8409 (vqdmulh_n_s32): Likewise.
8410 (vqdmulhq_n_s16): Likewise.
8411 (vqdmulhq_n_s32): Likewise.
8412 (vqmovn_high_s16): Likewise.
8413 (vqmovn_high_s32): Likewise.
8414 (vqmovn_high_s64): Likewise.
8415 (vqmovn_high_u16): Likewise.
8416 (vqmovn_high_u32): Likewise.
8417 (vqmovn_high_u64): Likewise.
8418 (vqmovun_high_s16): Likewise.
8419 (vqmovun_high_s32): Likewise.
8420 (vqmovun_high_s64): Likewise.
8421 (vqrdmulh_n_s16): Likewise.
8422 (vqrdmulh_n_s32): Likewise.
8423 (vqrdmulhq_n_s16): Likewise.
8424 (vqrdmulhq_n_s32): Likewise.
8425 (vrsqrte_u32): Likewise.
8426 (vrsqrteq_u32): Likewise.
8427 (vtst_p8): Likewise.
8428 (vtst_p16): Likewise.
8429 (vtst_p64): Likewise.
8430 (vtstq_p8): Likewise.
8431 (vtstq_p16): Likewise.
8432 (vtstq_p64): Likewise.
8433 (vaddlv_s32): Likewise.
8434 (vaddlv_u32): Likewise.
8435 (vqtbl1_p8): Likewise.
8436 (vqtbl1_s8): Likewise.
8437 (vqtbl1_u8): Likewise.
8438 (vqtbl1q_p8): Likewise.
8439 (vqtbl1q_s8): Likewise.
8440 (vqtbl1q_u8): Likewise.
8441 (vqtbx1_s8): Likewise.
8442 (vqtbx1_u8): Likewise.
8443 (vqtbx1_p8): Likewise.
8444 (vqtbx1q_s8): Likewise.
8445 (vqtbx1q_u8): Likewise.
8446 (vqtbx1q_p8): Likewise.
8447 (vtbl1_s8): Likewise.
8448 (vtbl1_u8): Likewise.
8449 (vtbl1_p8): Likewise.
8450 (vtbl2_s8): Likewise.
8451 (vtbl2_u8): Likewise.
8452 (vtbl2_p8): Likewise.
8453 (vtbl3_s8): Likewise.
8454 (vtbl3_u8): Likewise.
8455 (vtbl3_p8): Likewise.
8456 (vtbl4_s8): Likewise.
8457 (vtbl4_u8): Likewise.
8458 (vtbl4_p8): Likewise.
8459 (vtbx2_s8): Likewise.
8460 (vtbx2_u8): Likewise.
8461 (vtbx2_p8): Likewise.
8462 (vld1_f32): Likewise.
8463 (vld1_f64): Likewise.
8464 (vld1_p8): Likewise.
8465 (vld1_p16): Likewise.
8466 (vld1_p64): Likewise.
8467 (vld1_s8): Likewise.
8468 (vld1_s16): Likewise.
8469 (vld1_s32): Likewise.
8470 (vld1_s64): Likewise.
8471 (vld1_u8): Likewise.
8472 (vld1_u16): Likewise.
8473 (vld1_u32): Likewise.
8474 (vld1_u64): Likewise.
8475 (vld1q_f32): Likewise.
8476 (vld1q_f64): Likewise.
8477 (vld1q_p8): Likewise.
8478 (vld1q_p16): Likewise.
8479 (vld1q_p64): Likewise.
8480 (vld1q_s8): Likewise.
8481 (vld1q_s16): Likewise.
8482 (vld1q_s32): Likewise.
8483 (vld1q_s64): Likewise.
8484 (vld1q_u8): Likewise.
8485 (vld1q_u16): Likewise.
8486 (vld1q_u32): Likewise.
8487 (vld1q_u64): Likewise.
8488 (vpmax_s8): Likewise.
8489 (vpmax_s16): Likewise.
8490 (vpmax_s32): Likewise.
8491 (vpmax_u8): Likewise.
8492 (vpmax_u16): Likewise.
8493 (vpmax_u32): Likewise.
8494 (vpmaxq_s8): Likewise.
8495 (vpmaxq_s16): Likewise.
8496 (vpmaxq_s32): Likewise.
8497 (vpmaxq_u8): Likewise.
8498 (vpmaxq_u16): Likewise.
8499 (vpmaxq_u32): Likewise.
8500 (vpmax_f32): Likewise.
8501 (vpmaxq_f32): Likewise.
8502 (vpmaxq_f64): Likewise.
8503 (vpmaxqd_f64): Likewise.
8504 (vpmaxs_f32): Likewise.
8505 (vpmaxnm_f32): Likewise.
8506 (vpmaxnmq_f32): Likewise.
8507 (vpmaxnmq_f64): Likewise.
8508 (vpmaxnmqd_f64): Likewise.
8509 (vpmaxnms_f32): Likewise.
8510 (vpmin_s8): Likewise.
8511 (vpmin_s16): Likewise.
8512 (vpmin_s32): Likewise.
8513 (vpmin_u8): Likewise.
8514 (vpmin_u16): Likewise.
8515 (vpmin_u32): Likewise.
8516 (vpminq_s8): Likewise.
8517 (vpminq_s16): Likewise.
8518 (vpminq_s32): Likewise.
8519 (vpminq_u8): Likewise.
8520 (vpminq_u16): Likewise.
8521 (vpminq_u32): Likewise.
8522 (vpmin_f32): Likewise.
8523 (vpminq_f32): Likewise.
8524 (vpminq_f64): Likewise.
8525 (vpminqd_f64): Likewise.
8526 (vpmins_f32): Likewise.
8527 (vpminnm_f32): Likewise.
8528 (vpminnmq_f32): Likewise.
8529 (vpminnmq_f64): Likewise.
8530 (vpminnmqd_f64): Likewise.
8531 (vpminnms_f32): Likewise.
8532 (vmla_f32): Likewise.
8533 (vmlaq_f32): Likewise.
8534 (vmlaq_f64): Likewise.
8535 (vmls_f32): Likewise.
8536 (vmlsq_f32): Likewise.
8537 (vmlsq_f64): Likewise.
8538 (vqtbl2_s8): Likewise.
8539 (vqtbl2_u8): Likewise.
8540 (vqtbl2_p8): Likewise.
8541 (vqtbl2q_s8): Likewise.
8542 (vqtbl2q_u8): Likewise.
8543 (vqtbl2q_p8): Likewise.
8544 (vqtbl3_s8): Likewise.
8545 (vqtbl3_u8): Likewise.
8546 (vqtbl3_p8): Likewise.
8547 (vqtbl3q_s8): Likewise.
8548 (vqtbl3q_u8): Likewise.
8549 (vqtbl3q_p8): Likewise.
8550 (vqtbl4_s8): Likewise.
8551 (vqtbl4_u8): Likewise.
8552 (vqtbl4_p8): Likewise.
8553 (vqtbl4q_s8): Likewise.
8554 (vqtbl4q_u8): Likewise.
8555 (vqtbl4q_p8): Likewise.
8556 (vqtbx2_s8): Likewise.
8557 (vqtbx2_u8): Likewise.
8558 (vqtbx2_p8): Likewise.
8559 (vqtbx2q_s8): Likewise.
8560 (vqtbx2q_u8): Likewise.
8561 (vqtbx2q_p8): Likewise.
8562 (vqtbx3_s8): Likewise.
8563 (vqtbx3_u8): Likewise.
8564 (vqtbx3_p8): Likewise.
8565 (vqtbx3q_s8): Likewise.
8566 (vqtbx3q_u8): Likewise.
8567 (vqtbx3q_p8): Likewise.
8568 (vqtbx4_s8): Likewise.
8569 (vqtbx4_u8): Likewise.
8570 (vqtbx4_p8): Likewise.
8571 (vqtbx4q_s8): Likewise.
8572 (vqtbx4q_u8): Likewise.
8573 (vqtbx4q_p8): Likewise.
8574 (vrev16_p8): Likewise.
8575 (vrev16_s8): Likewise.
8576 (vrev16_u8): Likewise.
8577 (vrev16q_p8): Likewise.
8578 (vrev16q_s8): Likewise.
8579 (vrev16q_u8): Likewise.
8580 (vrev32_p8): Likewise.
8581 (vrev32_p16): Likewise.
8582 (vrev32_s8): Likewise.
8583 (vrev32_s16): Likewise.
8584 (vrev32_u8): Likewise.
8585 (vrev32_u16): Likewise.
8586 (vrev32q_p8): Likewise.
8587 (vrev32q_p16): Likewise.
8588 (vrev32q_s8): Likewise.
8589 (vrev32q_s16): Likewise.
8590 (vrev32q_u8): Likewise.
8591 (vrev32q_u16): Likewise.
8592 (vrev64_f32): Likewise.
8593 (vrev64_p8): Likewise.
8594 (vrev64_p16): Likewise.
8595 (vrev64_s8): Likewise.
8596 (vrev64_s16): Likewise.
8597 (vrev64_s32): Likewise.
8598 (vrev64_u8): Likewise.
8599 (vrev64_u16): Likewise.
8600 (vrev64_u32): Likewise.
8601 (vrev64q_f32): Likewise.
8602 (vrev64q_p8): Likewise.
8603 (vrev64q_p16): Likewise.
8604 (vrev64q_s8): Likewise.
8605 (vrev64q_s16): Likewise.
8606 (vrev64q_s32): Likewise.
8607 (vrev64q_u8): Likewise.
8608 (vrev64q_u16): Likewise.
8609 (vrev64q_u32): Likewise.
8610 (vsha1cq_u32): Likewise.
8611 (vsha1mq_u32): Likewise.
8612 (vsha1pq_u32): Likewise.
8613 (vsha1h_u32): Likewise.
8614 (vsha1su0q_u32): Likewise.
8615 (vsha1su1q_u32): Likewise.
8616 (vsha256hq_u32): Likewise.
8617 (vsha256h2q_u32): Likewise.
8618 (vsha256su0q_u32): Likewise.
8619 (vsha256su1q_u32): Likewise.
8620 (vmull_p64): Likewise.
8621 (vmull_high_p64): Likewise.
8622 (vsqrt_f32): Likewise.
8623 (vsqrtq_f32): Likewise.
8624 (vsqrt_f64): Likewise.
8625 (vsqrtq_f64): Likewise.
8626 (vst1_f32): Likewise.
8627 (vst1_f64): Likewise.
8628 (vst1_p8): Likewise.
8629 (vst1_p16): Likewise.
8630 (vst1_p64): Likewise.
8631 (vst1_s8): Likewise.
8632 (vst1_s16): Likewise.
8633 (vst1_s32): Likewise.
8634 (vst1_s64): Likewise.
8635 (vst1_u8): Likewise.
8636 (vst1_u16): Likewise.
8637 (vst1_u32): Likewise.
8638 (vst1_u64): Likewise.
8639 (vst1q_f32): Likewise.
8640 (vst1q_f64): Likewise.
8641 (vst1q_p8): Likewise.
8642 (vst1q_p16): Likewise.
8643 (vst1q_p64): Likewise.
8644 (vst1q_s8): Likewise.
8645 (vst1q_s16): Likewise.
8646 (vst1q_s32): Likewise.
8647 (vst1q_s64): Likewise.
8648 (vst1q_u8): Likewise.
8649 (vst1q_u16): Likewise.
8650 (vst1q_u32): Likewise.
8651 (vst1q_u64): Likewise.
8652 (vst1_s64_x2): Likewise.
8653 (vst1_u64_x2): Likewise.
8654 (vst1_f64_x2): Likewise.
8655 (vst1_s8_x2): Likewise.
8656 (vst1_p8_x2): Likewise.
8657 (vst1_s16_x2): Likewise.
8658 (vst1_p16_x2): Likewise.
8659 (vst1_s32_x2): Likewise.
8660 (vst1_u8_x2): Likewise.
8661 (vst1_u16_x2): Likewise.
8662 (vst1_u32_x2): Likewise.
8663 (vst1_f16_x2): Likewise.
8664 (vst1_f32_x2): Likewise.
8665 (vst1_p64_x2): Likewise.
8666 (vst1q_s8_x2): Likewise.
8667 (vst1q_p8_x2): Likewise.
8668 (vst1q_s16_x2): Likewise.
8669 (vst1q_p16_x2): Likewise.
8670 (vst1q_s32_x2): Likewise.
8671 (vst1q_s64_x2): Likewise.
8672 (vst1q_u8_x2): Likewise.
8673 (vst1q_u16_x2): Likewise.
8674 (vst1q_u32_x2): Likewise.
8675 (vst1q_u64_x2): Likewise.
8676 (vst1q_f16_x2): Likewise.
8677 (vst1q_f32_x2): Likewise.
8678 (vst1q_f64_x2): Likewise.
8679 (vst1q_p64_x2): Likewise.
8680 (vst1_s64_x3): Likewise.
8681 (vst1_u64_x3): Likewise.
8682 (vst1_f64_x3): Likewise.
8683 (vst1_s8_x3): Likewise.
8684 (vst1_p8_x3): Likewise.
8685 (vst1_s16_x3): Likewise.
8686 (vst1_p16_x3): Likewise.
8687 (vst1_s32_x3): Likewise.
8688 (vst1_u8_x3): Likewise.
8689 (vst1_u16_x3): Likewise.
8690 (vst1_u32_x3): Likewise.
8691 (vst1_f16_x3): Likewise.
8692 (vst1_f32_x3): Likewise.
8693 (vst1_p64_x3): Likewise.
8694 (vst1q_s8_x3): Likewise.
8695 (vst1q_p8_x3): Likewise.
8696 (vst1q_s16_x3): Likewise.
8697 (vst1q_p16_x3): Likewise.
8698 (vst1q_s32_x3): Likewise.
8699 (vst1q_s64_x3): Likewise.
8700 (vst1q_u8_x3): Likewise.
8701 (vst1q_u16_x3): Likewise.
8702 (vst1q_u32_x3): Likewise.
8703 (vst1q_u64_x3): Likewise.
8704 (vst1q_f16_x3): Likewise.
8705 (vst1q_f32_x3): Likewise.
8706 (vst1q_f64_x3): Likewise.
8707 (vst1q_p64_x3): Likewise.
8708 (vst2_s64): Likewise.
8709 (vst2_u64): Likewise.
8710 (vst2_f64): Likewise.
8711 (vst2_s8): Likewise.
8712 (vst2_p8): Likewise.
8713 (vst2_s16): Likewise.
8714 (vst2_p16): Likewise.
8715 (vst2_s32): Likewise.
8716 (vst2_u8): Likewise.
8717 (vst2_u16): Likewise.
8718 (vst2_u32): Likewise.
8719 (vst2_f16): Likewise.
8720 (vst2_f32): Likewise.
8721 (vst2_p64): Likewise.
8722 (vst2q_s8): Likewise.
8723 (vst2q_p8): Likewise.
8724 (vst2q_s16): Likewise.
8725 (vst2q_p16): Likewise.
8726 (vst2q_s32): Likewise.
8727 (vst2q_s64): Likewise.
8728 (vst2q_u8): Likewise.
8729 (vst2q_u16): Likewise.
8730 (vst2q_u32): Likewise.
8731 (vst2q_u64): Likewise.
8732 (vst2q_f16): Likewise.
8733 (vst2q_f32): Likewise.
8734 (vst2q_f64): Likewise.
8735 (vst2q_p64): Likewise.
8736 (vst3_s64): Likewise.
8737 (vst3_u64): Likewise.
8738 (vst3_f64): Likewise.
8739 (vst3_s8): Likewise.
8740 (vst3_p8): Likewise.
8741 (vst3_s16): Likewise.
8742 (vst3_p16): Likewise.
8743 (vst3_s32): Likewise.
8744 (vst3_u8): Likewise.
8745 (vst3_u16): Likewise.
8746 (vst3_u32): Likewise.
8747 (vst3_f16): Likewise.
8748 (vst3_f32): Likewise.
8749 (vst3_p64): Likewise.
8750 (vst3q_s8): Likewise.
8751 (vst3q_p8): Likewise.
8752 (vst3q_s16): Likewise.
8753 (vst3q_p16): Likewise.
8754 (vst3q_s32): Likewise.
8755 (vst3q_s64): Likewise.
8756 (vst3q_u8): Likewise.
8757 (vst3q_u16): Likewise.
8758 (vst3q_u32): Likewise.
8759 (vst3q_u64): Likewise.
8760 (vst3q_f16): Likewise.
8761 (vst3q_f32): Likewise.
8762 (vst3q_f64): Likewise.
8763 (vst3q_p64): Likewise.
8764 (vst4_s64): Likewise.
8765 (vst4_u64): Likewise.
8766 (vst4_f64): Likewise.
8767 (vst4_s8): Likewise.
8768 (vst4_p8): Likewise.
8769 (vst4_s16): Likewise.
8770 (vst4_p16): Likewise.
8771 (vst4_s32): Likewise.
8772 (vst4_u8): Likewise.
8773 (vst4_u16): Likewise.
8774 (vst4_u32): Likewise.
8775 (vst4_f16): Likewise.
8776 (vst4_f32): Likewise.
8777 (vst4_p64): Likewise.
8778 (vst4q_s8): Likewise.
8779 (vst4q_p8): Likewise.
8780 (vst4q_s16): Likewise.
8781 (vst4q_p16): Likewise.
8782 (vst4q_s32): Likewise.
8783 (vst4q_s64): Likewise.
8784 (vst4q_u8): Likewise.
8785 (vst4q_u16): Likewise.
8786 (vst4q_u32): Likewise.
8787 (vst4q_u64): Likewise.
8788 (vst4q_f16): Likewise.
8789 (vst4q_f32): Likewise.
8790 (vst4q_f64): Likewise.
8791 (vst4q_p64): Likewise.
8792 (vtbx4_s8): Likewise.
8793 (vtbx4_u8): Likewise.
8794 (vtbx4_p8): Likewise.
8795 (vtrn_f32): Likewise.
8796 (vtrn_p8): Likewise.
8797 (vtrn_p16): Likewise.
8798 (vtrn_s8): Likewise.
8799 (vtrn_s16): Likewise.
8800 (vtrn_s32): Likewise.
8801 (vtrn_u8): Likewise.
8802 (vtrn_u16): Likewise.
8803 (vtrn_u32): Likewise.
8804 (vtrnq_f32): Likewise.
8805 (vtrnq_p8): Likewise.
8806 (vtrnq_p16): Likewise.
8807 (vtrnq_s8): Likewise.
8808 (vtrnq_s16): Likewise.
8809 (vtrnq_s32): Likewise.
8810 (vtrnq_u8): Likewise.
8811 (vtrnq_u16): Likewise.
8812 (vtrnq_u32): Likewise.
8813 (vrsqrte_f16): Likewise.
8814 (vrsqrteq_f16): Likewise.
8815 (vsqrt_f16): Likewise.
8816 (vsqrtq_f16): Likewise.
8817 (vabd_f16): Likewise.
8818 (vabdq_f16): Likewise.
8819 (vpadd_f16): Likewise.
8820 (vpaddq_f16): Likewise.
8821 (vpmax_f16): Likewise.
8822 (vpmaxq_f16): Likewise.
8823 (vpmaxnm_f16): Likewise.
8824 (vpmaxnmq_f16): Likewise.
8825 (vpmin_f16): Likewise.
8826 (vpminq_f16): Likewise.
8827 (vpminnm_f16): Likewise.
8828 (vpminnmq_f16): Likewise.
8829 (vrsqrts_f16): Likewise.
8830 (vrsqrtsq_f16): Likewise.
8831
8832 2019-09-25 Richard Biener <rguenther@suse.de>
8833
8834 PR tree-optimization/91896
8835 * tree-vect-loop.c (vectorizable_reduction): The single
8836 def-use cycle optimization cannot apply when there's more
8837 than one pattern stmt involved.
8838
8839 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
8840
8841 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
8842 the 'P' mode iterator, replacing the (removed) SI and DI variants.
8843 (reload_macho_picbase_<mode>): Likewise.
8844
8845 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
8846
8847 * config/rs6000/rs6000.md: Move darwin.md include until
8848 after the definition of the mode iterators.
8849
8850 2019-09-23 Martin Sebor <msebor@redhat.com>
8851
8852 PR tree-optimization/91570
8853 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
8854 non-constant minlen, maxlen and maxbound.
8855
8856 2019-09-24 Richard Biener <rguenther@suse.de>
8857
8858 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
8859 Rename to...
8860 (_stmt_vec_info::cond_reduc_code): ... this.
8861 (_stmt_vec_info::induc_cond_initial_val): Add.
8862 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
8863 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
8864 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
8865 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
8866 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
8867 the reduction code.
8868 (vect_create_epilog_for_reduction): Drop special
8869 induction condition reduction params, pass in reduction code
8870 and simplify.
8871 (vectorizable_reduction): Perform condition reduction kind
8872 selection only at analysis time. Adjust passing on state.
8873
8874 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8875
8876 * config/aarch64/aarch64.md (mov<mode>): Don't call
8877 aarch64_split_dimode_const_store on volatile MEM.
8878
8879 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
8880
8881 * config/aarch64/aarch64-option-extensions.def (fp16fml):
8882 Update hwcap string for fp16fml.
8883
8884 2019-09-24 Jakub Jelinek <jakub@redhat.com>
8885
8886 PR middle-end/91866
8887 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
8888 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
8889
8890 2019-09-24 Martin Liska <mliska@suse.cz>
8891
8892 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
8893 instead of if-elseif-elseif-...
8894 * gimple-expr.c (extract_ops_from_tree): Likewise.
8895 * gimple.c (get_gimple_rhs_num_ops): Likewise.
8896 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
8897
8898 2019-09-24 Martin Jambor <mjambor@suse.cz>
8899
8900 PR ipa/91831
8901 * ipa-param-manipulation.c (carry_over_param): Make a method of
8902 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
8903 in case of a context mismatch.
8904 (ipa_param_body_adjustments::common_initialization): Adjust call to
8905 carry_over_param.
8906 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
8907 private method carry_over_param.
8908
8909 2019-09-24 Martin Jambor <mjambor@suse.cz>
8910
8911 PR ipa/91832
8912 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
8913
8914 2019-09-24 Richard Biener <rguenther@suse.de>
8915
8916 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
8917 base.
8918
8919 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8920
8921 * config/arm/t-arm (arm-builtins.o): Add dependency on
8922 arm_acle_builtins.def.
8923
8924 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
8925
8926 PR target/91823
8927 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
8928 canonical CONST_INTs. Use gen_rtvec.
8929
8930 2019-09-23 Richard Biener <rguenther@suse.de>
8931
8932 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
8933 avoid adjusting by + 0 or * 1.
8934 (vect_create_epilog_for_reduction): Get reduction code only
8935 when necessary. Deal with adjustment_def only when necessary.
8936
8937 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
8938
8939 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
8940 memmodel index.
8941
8942 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8943
8944 PR ipa/91835
8945 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
8946 "ipa-sra".
8947
8948 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
8949
8950 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
8951 code. Merge code blocks with common conditionals. Use declared
8952 macro instead of a magic number for PIC level.
8953
8954 2019-09-21 Martin Sebor <msebor@redhat.com>
8955
8956 PR middle-end/91830
8957 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
8958 Simplify computation of the offset of the referenced subobject.
8959
8960 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
8961
8962 * config/darwin.c (machopic_legitimize_pic_address): Check
8963 for lra not reload.
8964
8965 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
8966
8967 * ira-conflicts.c (can_use_same_reg_p): New function.
8968 (process_reg_shuffles): Take an insn parameter. Ignore cases
8969 in which input operand op_num could seemingly never be allocated
8970 to the same register as the destination.
8971 (add_insn_allocno_copies): Update call to process_reg_shuffles.
8972
8973 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
8974
8975 * simplify-rtx.c (neg_const_int): Replace with...
8976 (neg_poly_int_rtx): ...this new function.
8977 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
8978 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
8979 (simplify_plus_minus): Likewise for constant terms here.
8980
8981 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
8982
8983 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
8984 HOST_WIDE_PRINT_UNSIGNED.
8985
8986 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
8987
8988 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
8989 character.
8990
8991 2019-09-20 Maya Rashish <coypu@sdf.org>
8992
8993 PR target/86811
8994 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
8995 Define to speculation_safe_value_not_needed.
8996
8997 2019-09-20 Richard Biener <rguenther@suse.de>
8998 Uros Bizjak <ubizjak@gmail.com>
8999
9000 PR target/91814
9001 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
9002 previous change.
9003 (general_scalar_chain::convert_op): Force not suitable memory
9004 operands to a register.
9005
9006 2019-09-20 Richard Biener <rguenther@suse.de>
9007
9008 PR tree-optimization/91821
9009 * tree-vect-loop.c (check_reduction_path): Check we can compute
9010 reduc_idx.
9011 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
9012 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
9013 operands in canonical order.
9014 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9015 STMT_VINFO_REDUC_IDX.
9016 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
9017 (STMT_VINFO_REDUC_IDX): Likewise.
9018
9019 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
9020
9021 PR target/91269
9022 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9023
9024 2019-09-20 Richard Biener <rguenther@suse.de>
9025
9026 PR tree-optimization/91822
9027 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
9028 parameter.
9029 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
9030 for reduc_index in nested cycles, adjust vectorizable_condition
9031 calls.
9032 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
9033 parameter.
9034 (vect_analyze_stmt): Adjust.
9035 (vect_transform_stmt): Likewise.
9036
9037 2019-09-20 Richard Biener <rguenther@suse.de>
9038
9039 PR target/91767
9040 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
9041 Ensure there's a sequence point between allocating the new register
9042 and passing a reference to a reg via regno_reg_rtx.
9043
9044 2019-09-20 Martin Jambor <mjambor@suse.cz>
9045
9046 * coretypes.h (cgraph_edge): Declare.
9047 * ipa-param-manipulation.c: Rewrite.
9048 * ipa-param-manipulation.h: Likewise.
9049 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
9050 (OBJS): Added ipa-sra.o.
9051 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
9052 and ref_p, added fields param_adjustments and performed_splits.
9053 (struct cgraph_clone_info): Remove ags_to_skip and
9054 combined_args_to_skip, new field param_adjustments.
9055 (cgraph_node::create_clone): Changed parameters to use
9056 ipa_param_adjustments.
9057 (cgraph_node::create_virtual_clone): Likewise.
9058 (cgraph_node::create_virtual_clone_with_body): Likewise.
9059 (tree_function_versioning): Likewise.
9060 (cgraph_build_function_type_skip_args): Removed.
9061 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
9062 using ipa_param_adjustments.
9063 (clone_of_p): Likewise.
9064 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
9065 (build_function_decl_skip_args): Likewise.
9066 (duplicate_thunk_for_node): Adjust parameters using
9067 ipa_param_body_adjustments, copy param_adjustments instead of
9068 args_to_skip.
9069 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
9070 (cgraph_node::create_virtual_clone): Likewise.
9071 (cgraph_node::create_version_clone_with_body): Likewise.
9072 (cgraph_materialize_clone): Likewise.
9073 (symbol_table::materialize_all_clones): Likewise.
9074 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
9075 ipa_replace_map check.
9076 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
9077 (initialize_node_lattices): Make aware that some parameters might have
9078 already been removed.
9079 (want_remove_some_param_p): New function.
9080 (create_specialized_node): Convert to using ipa_param_adjustments and
9081 deal with possibly pre-existing adjustments.
9082 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
9083 (output_node_opt_summary): Do not stream removed fields. Stream
9084 parameter adjustments instead of argumetns to skip.
9085 (input_node_opt_summary): Likewise.
9086 (input_node_opt_summary): Likewise.
9087 * lto-section-in.c (lto_section_name): Added ipa-sra section.
9088 * lto-streamer.h (lto_section_type): Likewise.
9089 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
9090 param_body_adjs.
9091 (copy_decl_to_var): Declare.
9092 * tree-inline.c (update_clone_info): Do not remap old_tree.
9093 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
9094 statements, walk all extra generated statements and remap their
9095 operands.
9096 (redirect_all_calls): Add killed SSA names to a hash set.
9097 (remap_ssa_name): Do not remap killed SSA names.
9098 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
9099 half of functionality moved to ipa_param_body_adjustments.
9100 (copy_decl_to_var): Make exported.
9101 (copy_body): Destroy killed_new_ssa_names hash set.
9102 (expand_call_inline): Remap performed splits.
9103 (update_clone_info): Likewise.
9104 (tree_function_versioning): Simplify tree_map processing. Updated to
9105 accept ipa_param_adjustments and use ipa_param_body_adjustments.
9106 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
9107 for the new interface.
9108 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
9109 (simd_clone_compute_base_data_type): Likewise.
9110 (simd_clone_init_simd_arrays): Adjust for the new interface.
9111 (simd_clone_adjust_argument_types): Likewise.
9112 (struct modify_stmt_info): Likewise.
9113 (ipa_simd_modify_stmt_ops): Likewise.
9114 (ipa_simd_modify_function_body): Likewise.
9115 (simd_clone_adjust): Likewise.
9116 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
9117 (type_internals_preclude_sra_p): Make public.
9118 * tree-sra.h: New file.
9119 * ipa-inline-transform.c (save_inline_function_body): Update to
9120 refelct new tree_function_versioning signature.
9121 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
9122 ipa_param_adjustments to get current parameter indices.
9123 (ipcp_modif_dom_walker::before_dom_children): Likewise.
9124 (ipcp_update_bits): Likewise.
9125 (ipcp_update_vr): Likewise.
9126 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
9127 * ipa-sra.c: New file.
9128 * multiple_target.c (create_target_clone): Update to reflet new type
9129 of create_version_clone_with_body.
9130 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
9131 tree_function_versioning.
9132 (modify_function): Update to reflect new type of
9133 tree_function_versioning.
9134 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
9135 * passes.def: Remove old IPA-SRA and add new one.
9136 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
9137 (make_pass_ipa_sra): Declare.
9138 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
9139 ipa_sra_retvalues.
9140 * doc/invoke.texi (ipa-sra-max-replacements): New.
9141
9142 2019-09-19 Martin Sebor <msebor@redhat.com>
9143
9144 PR middle-end/91631
9145 * builtins.c (component_size): Correct trailing array computation,
9146 rename to component_ref_size and move...
9147 (compute_objsize): Adjust.
9148 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
9149 (builtin_access::strict): Do not consider memmove.
9150 (builtin_access::write_off): New function.
9151 (builtin_memref::builtin_memref): Initialize refsize.
9152 (builtin_memref::set_base_and_offset): Adjust refoff and compute
9153 refsize.
9154 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
9155 Handle refsize.
9156 (builtin_access::builtin_access): Initialize dstoff to destination
9157 refeence offset here instead of in maybe_diag_overlap. Adjust
9158 referencess even to unrelated objects. Adjust sizrange of bounded
9159 string functions to reflect bound. For strcat, adjust destination
9160 sizrange by that of source.
9161 (builtin_access::strcat_overlap): Adjust offsets and sizes
9162 to reflect the increase in destination sizrange above.
9163 (builtin_access::overlap): Do not set dstoff here but instead
9164 in builtin_access::builtin_access.
9165 (check_bounds_or_overlap): Use builtin_access::write_off.
9166 (maybe_diag_access_bounds): Add argument. Add informational notes.
9167 (dump_builtin_memref, dump_builtin_access): New functions.
9168 * tree.c (component_ref_size): ...to here.
9169 * tree.h (component_ref_size): Declare.
9170 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
9171 nul in the size of the source string.
9172
9173 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
9174
9175 PR c/67224
9176 * doc/cpp.texi: Document support for extended characters in
9177 identifiers.
9178 * doc/cppopts.texi: Likewise.
9179
9180 2019-09-19 Richard Biener <rguenther@suse.de>
9181
9182 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
9183 (check_reduction_path): New overload having the path as result.
9184 (vect_is_simple_reduction): From the detected reduction
9185 path build a SLP reduction chain if possible.
9186
9187 2019-09-19 Richard Biener <rguenther@suse.de>
9188
9189 PR target/91814
9190 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
9191 Force operand to a register if it isn't nonimmediate_operand.
9192
9193 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
9194
9195 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
9196 * config/arm/iterators.md (optab): Add and, ior, xor entries.
9197 (logical_op): Remove code attribute.
9198 (logical_OP): Likewise.
9199
9200 2019-09-19 Martin Liska <mliska@suse.cz>
9201
9202 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
9203 Use proper casting.
9204
9205 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
9206
9207 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
9208 registers with %R.
9209
9210 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
9211 for NE comparison of TImode values.
9212 (aarch64_emit_load_exclusive): Add support for TImode.
9213 (aarch64_emit_store_exclusive): Likewise.
9214 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
9215 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
9216 Change iterator from ALLI to ALLI_TI.
9217 (@atomic_compare_and_swap<JUST_TI>): New.
9218 (@atomic_compare_and_swap<JUST_TI>_lse): New.
9219 (aarch64_load_exclusive_pair): New.
9220 (aarch64_store_exclusive_pair): New.
9221 * config/aarch64/iterators.md (JUST_TI): New.
9222
9223 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
9224 strong_zero_p for aarch64_track_speculation; unify some code paths;
9225 use aarch64_gen_compare_reg instead of open-coding.
9226
9227 * config/aarch64/aarch64.opt (-moutline-atomics): New.
9228 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
9229 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
9230 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
9231 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
9232 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
9233 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
9234 (atomic_<atomic_op><ALLI>): Likewise.
9235 (atomic_fetch_<atomic_op><ALLI>): Likewise.
9236 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
9237 * doc/invoke.texi: Document -moutline-atomics.
9238
9239 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
9240
9241 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
9242 trivial predicate for condition branch.
9243 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
9244 for switch case.
9245 (compute_bb_predicates): Update predicate based on post-dominating
9246 relationship.
9247 (analyze_function_body): Calculate post-dominating information.
9248
9249 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
9250
9251 * tree-vectorizer.h (vectorizable_condition): Take an int
9252 reduction index instead of a boolean flag.
9253 * tree-vect-stmts.c (vectorizable_condition): Likewise.
9254 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
9255 reductions if the reduction accumulator is the "then" rather
9256 than the "else" value.
9257 (vect_analyze_stmt): Update call accordingly.
9258 (vect_transform_stmt): Likewise.
9259 * tree-vect-loop.c (vectorizable_reduction): Likewise,
9260 asserting that the index is > 0.
9261
9262 2019-09-19 Martin Liska <mliska@suse.cz>
9263
9264 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
9265 (sort_congruence_classes_by_decl_uid): Likewise.
9266 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
9267 easier sorting.
9268 (sem_item_optimizer::merge_classes): Likewise.
9269
9270 2019-09-19 Richard Biener <rguenther@suse.de>
9271
9272 PR tree-optimization/91812
9273 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
9274 volatile loads.
9275
9276 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
9277
9278 * defaults.h (TARGET_UNIT): New macro.
9279 (target_unit): New type.
9280 * rtl.h (native_encode_rtx, native_decode_rtx)
9281 (native_decode_vector_rtx, subreg_size_lsb): Declare.
9282 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
9283 * rtlanal.c (subreg_lsb_1): Delete.
9284 (subreg_size_lsb): New function.
9285 * simplify-rtx.c: Include rtx-vector-builder.h
9286 (simplify_immed_subreg): Delete.
9287 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
9288 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
9289 functions.
9290 (simplify_subreg): Use them.
9291 (test_vector_subregs_modes, test_vector_subregs_repeating)
9292 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
9293 (test_vector_subregs): New functions.
9294 (test_vector_ops): Call test_vector_subregs for integer vector
9295 modes with at least 2 elements.
9296
9297 2019-09-19 Richard Biener <rguenther@suse.de>
9298
9299 * tree-parloops.c (parloops_is_slp_reduction): Do not set
9300 LOOP_VINFO_OPERANDS_SWAPPED.
9301 (parloops_is_simple_reduction): Likewise.
9302 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
9303 initialize operands_swapped.
9304 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
9305 (vect_is_slp_reduction): Do not swap operands.
9306 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
9307 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
9308
9309 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
9310
9311 PR target/87007
9312 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
9313 Add avx_partial_xmm_update.
9314
9315 2019-09-18 Jim Wilson <jimw@sifive.com>
9316
9317 PR target/91683
9318 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
9319 (riscv_move_integer): Likewise.
9320 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
9321 riscv_move_integer arg.
9322 (riscv_legitimize_move): Likewise.
9323 (riscv_force_temporary): New parameter in_splitter. Don't call
9324 force_reg if true.
9325 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
9326 arg.
9327 (riscv_add_offset): Likewise.
9328 (riscv_split_symbol): New parameter in_splitter. Pass to
9329 riscv_force_temporary.
9330 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
9331 arg.
9332 (riscv_move_integer): New parameter in_splitter. New local
9333 can_create_psuedo. Don't call riscv_split_integer or force_reg when
9334 in_splitter TRUE.
9335 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
9336 riscv_split_symbol, and riscv_force_temporary args.
9337 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
9338 riscv_move_integer arg.
9339 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
9340
9341 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
9342
9343 PR target/90878
9344 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
9345 hard register store cost to 6.
9346
9347 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
9348
9349 PR target/91446
9350 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
9351 pseudo register store cost from 3 to 6 to make it the same as
9352 QImode and HImode.
9353
9354 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9355
9356 PR target/91738
9357 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
9358 (one_cmpldi2): Likewise.
9359 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
9360 of the constant parts is simple.
9361 * config/arm/iterators.md (LOGICAL): Add new code iterator.
9362 (logical_op): Add new code attribute.
9363 (logical_OP): Likewise.
9364 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
9365 (arm_iordi_operand): Add predicate.
9366 (arm_xordi_operand): Add predicate.
9367
9368 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9369
9370 * config/arm/arm.md (maddsidi4): Remove expander.
9371 (mulsidi3adddi): Remove pattern.
9372 (mulsidi3adddi_v6): Likewise.
9373 (mulsidi3_nov6): Likewise.
9374 (mulsidi3_v6): Likewise.
9375 (umulsidi3): Remove expander.
9376 (umulsidi3_nov6): Remove pattern.
9377 (umulsidi3_v6): Likewise.
9378 (umulsidi3adddi): Likewise.
9379 (umulsidi3adddi_v6): Likewise.
9380 (<Us>mulsidi3): Add combined expander.
9381 (<Us>maddsidi4): Likewise.
9382 (<US>mull): Add combined umull and smull pattern.
9383 (<US>mlal): Likewise.
9384 * config/arm/iterators.md (Us): Add new iterator.
9385
9386 2019-09-18 Richard Biener <rguenther@suse.de>
9387
9388 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
9389 swapping.
9390 (vectorize_fold_left_reduction): Remove assert.
9391 (vectorizable_reduction): Also expect COND_EXPR non-reduction
9392 operand in position 2. Remove assert.
9393
9394 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9395
9396 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
9397 (smulsi3_highpart_nov6): Remove pattern.
9398 (smulsi3_highpart_v6): Likewise.
9399 (umulsi3_highpart): Likewise.
9400 (umulsi3_highpart_nov6): Likewise.
9401 (umulsi3_highpart_v6): Likewise.
9402 (<US>mull_high): Add new combined multiply pattern.
9403
9404 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9405
9406 * config/arm/arm.md (arm_mulsi3): Remove pattern.
9407 (arm_mulsi3_v6): Likewise.
9408 (mulsi3addsi_v6): Likewise.
9409 (mulsi3subsi): Likewise.
9410 (mul): Add new multiply pattern.
9411 (mla): Likewise.
9412 (mls): Likewise.
9413
9414 2019-09-18 Richard Biener <rguenther@suse.de>
9415
9416 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
9417 (parloops_valid_reduction_input_p): Copy from
9418 valid_reduction_input_p.
9419 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
9420 (parloops_needs_fold_left_reduction_p): Copy from
9421 needs_fold_left_reduction_p.
9422 (parloops_is_simple_reduction): Copy from
9423 vect_is_simple_reduction.
9424 (parloops_force_simple_reduction): Copy from
9425 vect_force_simple_reduction.
9426 (gather_scalar_reductions): Adjust.
9427 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
9428 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
9429
9430 2019-09-18 Richard Biener <rguenther@suse.de>
9431
9432 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
9433 * tree-vect-loop.c (get_initial_def_for_reduction): Make
9434 static.
9435 (vect_create_epilog_for_reduction): Remove dead code.
9436
9437 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9438
9439 * varasm.c (assemble_real): Generate canonical const_ints.
9440
9441 2019-09-18 Richard Biener <rguenther@suse.de>
9442
9443 PR lto/91763
9444 * lto-streamer-in.c (input_eh_regions): Move EH init to
9445 lto_materialize_function.
9446 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
9447 Likewise.
9448
9449 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9450
9451 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
9452 are INTEGER_CSTs.
9453
9454 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9455
9456 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
9457 of checking specifically for INTEGER_CST.
9458
9459 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9460
9461 * stor-layout.c (compute_record_mode): Operate on poly_uint64
9462 sizes instead of uhwi sizes.
9463
9464 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9465
9466 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
9467 (add_const_value_attribute): Handle CONST_POLY_INT.
9468
9469 2019-09-18 Martin Liska <mliska@suse.cz>
9470
9471 * dbgcnt.def (store_merging): New counter.
9472 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
9473 Use it in store merging.
9474
9475 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9476
9477 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
9478 function.
9479 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
9480 * config/arm/arm.c (arm_sched_variable_issue): New function.
9481 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
9482
9483 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9484
9485 * config/arm/types.md (no_reservation): New reservation.
9486 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
9487 no_insn here.
9488 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
9489 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
9490 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
9491 * config/arm/arm1020e.md (1020alu_op): Likewise.
9492 * config/arm/arm1026ejs.md (alu_op): Likewise.
9493 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9494 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9495 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9496 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
9497 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9498 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9499 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
9500 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
9501 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9502 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9503 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9504 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
9505 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
9506 * config/arm/fa526.md (526_alu_op): Likewise.
9507 * config/arm/fa606te.md (606te_alu_op): Likewise.
9508 * config/arm/fa626te.md (626te_alu_op): Likewise.
9509 * config/arm/fa726te.md (726te_alu_op): Likewise.
9510 * config/arm/xgene1.md (xgene1_nop): Likewise.
9511
9512 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9513
9514 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
9515 "no_insn" to "branch".
9516
9517 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9518
9519 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
9520
9521 2019-09-17 Richard Biener <rguenther@suse.de>
9522
9523 PR debug/91772
9524 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
9525 was missing generate locations only once.
9526
9527 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
9528
9529 PR ipa/91089
9530 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
9531 option.
9532 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
9533 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
9534 for switch default case using range analysis information.
9535
9536 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
9537
9538 PR target/91749
9539 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
9540 mode attributed is supported by FDPIC.
9541
9542 2019-09-17 Richard Biener <rguenther@suse.de>
9543
9544 PR tree-optimization/91790
9545 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
9546 use the correct DR for setting up realignment.
9547
9548 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
9549
9550 PR target/91719
9551 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
9552 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
9553 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
9554 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
9555
9556 2019-09-16 Jason Merrill <jason@redhat.com>
9557
9558 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
9559
9560 2019-09-16 Martin Liska <mliska@suse.cz>
9561
9562 * gimple-fold.c (or_comparisons_1): Remove rules moved
9563 to ...
9564 * match.pd: ... here.
9565
9566 2019-09-16 Martin Liska <mliska@suse.cz>
9567
9568 * gimple-fold.c (or_comparisons_1): Remove rules
9569 moved to ...
9570 * match.pd: ... here.
9571
9572 2019-09-16 Martin Liska <mliska@suse.cz>
9573
9574 * genmatch.c (dt_node::append_simplify): Do not print
9575 warning when we have duplicate patterns belonging
9576 to a same simplify rule.
9577 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
9578 (maybe_fold_comparisons_from_match_pd): Handle
9579 tcc_comparison as a results.
9580 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
9581
9582 2019-09-16 Li Jia He <helijia@linux.ibm.com>
9583 Qi Feng <ffengqi@linux.ibm.com>
9584
9585 PR middle-end/88784
9586 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
9587 (x > y && x == XXX_MIN): Optimize into 'false'.
9588 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
9589 (x < y && x != XXX_MAX): Optimize into 'x < y'.
9590 (x < y && x == XXX_MAX): Optimize into 'false'.
9591 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
9592 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
9593 (x <= y || x != XXX_MIN): Optimize into 'true'.
9594 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
9595 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
9596 (x >= y || x != XXX_MAX): Optimize into 'true'.
9597 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
9598
9599 2019-09-16 Li Jia He <helijia@linux.ibm.com>
9600 Martin Liska <mliska@suse.cz>
9601
9602 * gimple-fold.c (and_comparisons_1): Add type as first
9603 argument.
9604 (and_var_with_comparison): Likewise.
9605 (and_var_with_comparison_1): Likewise.
9606 (or_comparisons_1): Likewise.
9607 (or_var_with_comparison): Likewise.
9608 (or_var_with_comparison_1): Likewise.
9609 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
9610 (maybe_fold_or_comparisons): Likewise.
9611 (maybe_fold_comparisons_from_match_pd): New.
9612 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
9613 (maybe_fold_or_comparisons): Likewise.
9614 * gimple.c (gimple_size): Make it public and add num_ops argument.
9615 (gimple_init): New function.
9616 (gimple_alloc): Call gimple_init.
9617 * gimple.h (gimple_size): New.
9618 (gimple_init): Likewise.
9619 * tree-if-conv.c (fold_or_predicates): Pass type.
9620 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
9621 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
9622 (optimize_vec_cond_expr): Likewise.
9623 (ovce_extract_ops): Return type of conditional expression.
9624 * tree-ssanames.c (init_ssa_name_imm_use): New.
9625 (make_ssa_name_fn): Use init_ssa_name_imm_use.
9626 * tree-ssanames.h (init_ssa_name_imm_use): New.
9627
9628 2019-09-16 Richard Biener <rguenther@suse.de>
9629
9630 PR tree-optimization/91756
9631 PR tree-optimization/87132
9632 * tree-ssa-alias.h (enum translate_flags): New.
9633 (get_continuation_for_phi): Use it instead of simple bool flag.
9634 (walk_non_aliased_vuses): Likewise.
9635 * tree-ssa-alias.c (maybe_skip_until): Adjust.
9636 (get_continuation_for_phi): When looking across backedges only
9637 disallow valueization.
9638 (walk_non_aliased_vuses): Adjust.
9639 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
9640 if requested.
9641
9642 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
9643
9644 PR middle-end/80791
9645 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
9646 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
9647 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
9648 * target.def (have_count_reg_decr_p): New hook.
9649 (doloop_cost_for_generic): Likewise.
9650 (doloop_cost_for_address): Likewise.
9651 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
9652 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
9653 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
9654 * doc/tm.texi: Regenerate.
9655 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
9656 addend.
9657 (record_group): Init doloop_p.
9658 (add_candidate_1): Add optional argument doloop, change the handlings
9659 accordingly.
9660 (add_candidate): Likewise.
9661 (generic_predict_doloop_p): Update attribute.
9662 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
9663 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
9664 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
9665 MIN_EXPR.
9666 (get_computation_cost): Update for doloop IV cand extra cost.
9667 (determine_group_iv_cost_cond): Update for doloop IV cand.
9668 (determine_iv_cost): Likewise.
9669 (ivopts_estimate_reg_pressure): Likewise.
9670 (may_eliminate_iv): Update handlings for doloop IV cand.
9671 (add_iv_candidate_for_doloop): New function.
9672 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
9673 (iv_ca_set_no_cp): Update for doloop IV cand.
9674 (iv_ca_set_cp): Likewise.
9675 (iv_ca_dump): Dump register cost.
9676 (find_doloop_use): New function.
9677 (analyze_and_mark_doloop_use): Likewise.
9678 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
9679
9680 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
9681
9682 PR middle-end/91708
9683 * cse.c (cse_insn): Do not replace anything with a
9684 MEM.
9685
9686 2019-09-13 Ian Lance Taylor <iant@golang.org>
9687
9688 * doc/invoke.texi (Optimize Options): Fix typo.
9689
9690 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
9691
9692 PR tree-optimization/89386
9693 * config/i386/sse.md (smulhrs<mode>3): New expander.
9694 (smulhrsv4hi3): Ditto.
9695
9696 2019-09-12 Richard Biener <rguenther@suse.de>
9697
9698 PR tree-optimization/91750
9699 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
9700 in the type of the evolution.
9701
9702 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
9703
9704 PR tree-optimization/89386
9705 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
9706 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
9707 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
9708 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
9709 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
9710 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
9711 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
9712 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
9713 (su, r): Handle the unspecs above.
9714 (bt): New int attribute.
9715 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
9716 * internal-fn.c (first_commutative_argument): Commutativity info for
9717 above.
9718 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
9719 (umulhrs_optab): New optabs.
9720 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
9721 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
9722 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
9723 function.
9724 (vect_vect_recog_func_ptrs): Add it.
9725
9726 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
9727
9728 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
9729 code.
9730
9731 2019-09-11 Nathan Sidwell <nathan@acm.org>
9732
9733 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
9734 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
9735
9736 2019-09-11 Richard Biener <rguenther@suse.de>
9737
9738 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
9739 * lto-wrapper.c (merge_and_complain): Pick up -g.
9740 (append_compiler_options): Likewise.
9741 (run_gcc): Re-instantiate handling -g0 at link-time.
9742 * doc/invoke.texi (flto): Document debug info generation.
9743
9744 2019-09-11 Richard Biener <rguenther@suse.de>
9745
9746 PR tree-optimization/90387
9747 * vr-values.c (vr_values::extract_range_basic): After inlining
9748 simplify non-constant __builtin_constant_p to false.
9749
9750 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
9751
9752 PR rtl-optimization/89795
9753 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
9754 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
9755
9756 2019-09-11 Jakub Jelinek <jakub@redhat.com>
9757
9758 PR tree-optimization/91723
9759 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
9760 instead of pointer equality when checking if argument vectypes are
9761 the same.
9762
9763 PR middle-end/91725
9764 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
9765 of get_nonzero_bits, only call it for integral types.
9766
9767 2019-09-11 Richard Biener <rguenther@suse.de>
9768
9769 Revert
9770 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
9771
9772 * match.pd: Add flag_unsafe_math_optimizations check
9773 before deciding on the widest type in a binary math operation.
9774
9775 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9776
9777 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
9778 and CALL_REALLY_USED_REGISTERS must be defined, and that
9779 CALL_REALLY_USED_REGISTERS is preferred.
9780 * doc/tm.texi: Regenerate.
9781 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
9782 (call_really_used_regs): Likewise.
9783 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
9784 CALL_REALLY_USED_REGISTERS are defined.
9785 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
9786 initial value if defined.
9787 (initial_call_really_used_regs): Delete.
9788 (saved_call_really_used_regs): Likewise.
9789 (CALL_REALLY_USED_REGNO_P): Likewise.
9790 (init_reg_sets): Remove handling of call_really_used_regs.
9791 (save_register_info, restore_register_info, globalize_reg): Likewise.
9792 (init_reg_sets_1): Likewise. Use call_used_regs instead of
9793 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
9794 outside operand_reg_set.
9795 (fix_register): Don't change call_used_regs if
9796 CALL_REALLY_USED_REGISTERS is defined.
9797 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
9798 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
9799 instead of call_really_used_regs.
9800 (csky_conditional_register_usage): Remove the old handling of
9801 call_used_regs and change the handling of call_really_used_regs
9802 to use call_used_regs instead.
9803 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
9804 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
9805 making a register fixed.
9806 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
9807 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
9808 instead of call_really_used_regs.
9809 (m32r_conditional_register_usage): Don't set call_used_regs when
9810 making a register fixed.
9811 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
9812 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
9813 instead of call_really_used_regs.
9814 (mips_interrupt_extra_call_saved_reg_p): Likewise.
9815 (mips_cfun_call_saved_reg_p): Likewise.
9816 (mips_swap_registers): Remove the old handling of call_used_regs
9817 and change the handling of call_really_used_regs to use call_used_regs
9818 instead.
9819 (mips_conditional_register_usage): Likewise.
9820 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
9821 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
9822 instead of call_really_used_regs.
9823 (mn10300_get_live_callee_saved_regs): Likewise.
9824 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
9825 (mn10300_conditional_register_usage): Don't set call_used_regs when
9826 making a register fixed.
9827 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
9828 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
9829 Remove the old handling of call_used_regs and change the handling
9830 of call_really_used_regs to use call_used_regs instead.
9831 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
9832 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
9833 instead of call_really_used_regs.
9834 (s390_register_info_gprtofpr, s390_register_info): Likewise.
9835 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
9836 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
9837 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
9838 (s390_conditional_register_usage): Remove the old handling of
9839 call_used_regs and change the handling of call_really_used_regs
9840 to use call_used_regs instead.
9841 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
9842 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
9843 (sh_fix_range, reg_unused_after): Likewise.
9844 (sh_conditional_register_usage): Remove the old handling of
9845 call_used_regs and change the handling of call_really_used_regs
9846 to use call_used_regs instead.
9847 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
9848 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
9849 call_used_regs when making a register fixed.
9850 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
9851 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
9852 call_used_regs when making a register fixed.
9853 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
9854 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
9855 set call_used_regs when making a register fixed.
9856 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
9857 * config/visium/visium.c (visium_conditional_register_usage): Remove
9858 the old handling of call_used_regs and change the handling of
9859 call_really_used_regs to use call_used_regs instead.
9860
9861 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9862
9863 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
9864 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
9865 * reginfo.c (call_used_regs): New macro.
9866
9867 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9868
9869 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
9870 fixed_regs test.
9871 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
9872 (bpf_expand_epilogue): Likewise.
9873 * config/c6x/c6x.c (c6x_save_reg): Likewise.
9874 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
9875 (ft32_expand_epilogue): Likewise.
9876 * config/i386/i386.c (ix86_save_reg): Likewise.
9877 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
9878 (moxie_expand_epilogue): Likewise.
9879 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
9880 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
9881 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
9882
9883 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9884
9885 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
9886 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
9887 instead of testing call_used_regs directly.
9888 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
9889 (aarch64_components_for_bb): Likewise.
9890 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
9891 * config/arc/arc.c (arc_must_save_register): Likewise.
9892 (arc_epilogue_uses): Likewise.
9893 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
9894 (legitimize_pic_address, callee_saved_reg_p): Likewise.
9895 (arm_compute_save_reg0_reg12_mask): Likewise.
9896 (arm_compute_save_core_reg_mask): Likewise.
9897 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
9898 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
9899 (cmse_nonsecure_entry_clear_before_return): Likewise.
9900 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
9901 (arm_expand_epilogue): Likewise.
9902 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
9903 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
9904 (_reg_unused_after): Likewise.
9905 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
9906 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
9907 (add_to_reg, hwloop_optimize): Likewise.
9908 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
9909 (bpf_expand_epilogue): Likewise.
9910 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
9911 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
9912 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
9913 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
9914 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
9915 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
9916 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
9917 * config/frv/frv.c (frv_stack_info): Likewise.
9918 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
9919 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
9920 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
9921 (move_callee_saved_registers): Likewise.
9922 * config/h8300/h8300.c (byte_reg): Likewise.
9923 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
9924 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
9925 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
9926 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
9927 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
9928 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
9929 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
9930 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
9931 * config/m32c/m32c.c (need_to_save): Likewise.
9932 * config/m68k/m68k.c (m68k_save_reg): Likewise.
9933 * config/mcore/mcore.c (calc_live_regs): Likewise.
9934 * config/microblaze/microblaze.c (microblaze_must_save_register):
9935 Likewise.
9936 * config/mmix/mmix.c (mmix_local_regno): Likewise.
9937 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
9938 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
9939 (mmix_expand_epilogue): Likewise.
9940 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
9941 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
9942 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
9943 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
9944 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
9945 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
9946 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
9947 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
9948 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
9949 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
9950 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
9951 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
9952 * config/rl78/rl78.c (need_to_save): Likewise.
9953 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
9954 (rs6000_stack_info, generate_set_vrsave): Likewise.
9955 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
9956 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
9957 * config/rx/rx.c (rx_get_stack_layout): Likewise.
9958 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
9959 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
9960 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
9961 (save_local_or_in_reg_p): Likewise.
9962 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
9963 (xstormy16_epilogue_uses): Likewise.
9964 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
9965 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
9966 * config/v850/v850.c (compute_register_save_size): Likewise.
9967 * config/vax/vax.c (vax_expand_prologue): Likewise.
9968 * config/visium/visium.c (visium_save_reg_p): Likewise.
9969 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
9970 * cselib.c (cselib_process_insn): Likewise.
9971 * df-scan.c (df_get_entry_block_def_set): Likewise.
9972 * function.c (aggregate_value_p): Likewise.
9973 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
9974 * ira-lives.c (process_bb_node_lives): Likewise.
9975 * ira.c (do_reload): Likewise.
9976 * lra-lives.c (process_bb_lives): Likewise.
9977 * lra-remat.c (lra_remat): Likewise.
9978 * lra.c (lra): Likewise.
9979 * postreload.c (reload_combine_recognize_pattern): Likewise.
9980 (reload_cse_move2add): Likewise.
9981 * recog.c (peep2_find_free_register): Likewise.
9982 * regrename.c (check_new_reg_p): Likewise.
9983 * reload.c (find_equiv_reg): Likewise.
9984 * reload1.c (reload, find_reg): Likewise.
9985 * sel-sched.c (init_hard_regs_data): Likewise.
9986
9987 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9988
9989 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
9990 regs_invalidated_by_call & ~fixed_reg_set instead of
9991 call_used_or_fixed_regs & ~fixed_reg_set.
9992 * config/sh/sh.c (output_stack_adjust): Likewise.
9993
9994 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9995
9996 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
9997 (call_used_reg_set): Delete.
9998 (call_used_or_fixed_regs): New macro.
9999 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
10000 of call_used_reg_set.
10001 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
10002 instead of call_used_regs.
10003 (save_call_clobbered_regs): Likewise.
10004 * cfgcleanup.c (old_insns_match_p): Likewise.
10005 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
10006 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
10007 Likewise.
10008 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10009 * config/sh/sh.c (output_stack_adjust): Likewise.
10010 * final.c (collect_fn_hard_reg_usage): Likewise.
10011 * ira-build.c (ira_build): Likewise.
10012 * ira-color.c (calculate_saved_nregs): Likewise.
10013 (allocno_reload_assign, calculate_spill_cost): Likewise.
10014 * ira-conflicts.c (ira_build_conflicts): Likewise.
10015 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10016 * ira-lives.c (process_bb_node_lives): Likewise.
10017 * ira.c (setup_reg_renumber): Likewise.
10018 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
10019 * lra-constraints.c (need_for_call_save_p): Likewise.
10020 (need_for_split_p, inherit_in_ebb): Likewise.
10021 * lra-lives.c (process_bb_lives): Likewise.
10022 * lra-remat.c (call_used_input_regno_present_p): Likewise.
10023 * postreload.c (reload_combine): Likewise.
10024 * regrename.c (find_rename_reg): Likewise.
10025 * reload1.c (reload_as_needed): Likewise.
10026 * rtlanal.c (find_all_hard_reg_sets): Likewise.
10027 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10028 * shrink-wrap.c (requires_stack_frame_p): Likewise.
10029
10030 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10031
10032 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
10033 (no_caller_save_reg_set): Delete.
10034 * caller-save.c (init_caller_save): Don't initialize it.
10035 * ira-conflicts.c (ira_build_conflicts): Calculate
10036 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
10037
10038 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10039
10040 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
10041 (target_hard_regs::x_savable_regs): New field.
10042 (call_fixed_reg_set): Delete.
10043 (savable_regs): New macro,
10044 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
10045 (init_reg_sets_1): Likewise. Initialize savable_regs.
10046 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
10047 for all registers. Set savable_regs instead of call_fixed_reg_set.
10048 (setup_save_areas, save_call_clobbered_regs): Replace uses of
10049 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
10050 * config/sh/sh.c (output_stack_adjust): Likewise.
10051
10052 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10053
10054 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
10055 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
10056 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
10057
10058 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10059
10060 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
10061 * rtlanal.c (get_call_rtx_from): Likewise.
10062 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
10063 than the pattern to get_call_rtx_from.
10064 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
10065 an rtx_insn * instead of an rtx.
10066 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
10067
10068 2019-09-10 Martin Liska <mliska@suse.cz>
10069
10070 * common.opt: Use newly added WarnRemoved.
10071 * config/aarch64/aarch64.opt: Likewise.
10072 * config/arm/arm.opt: Likewise.
10073 * config/i386/i386.opt: Likewise.
10074 * config/ia64/ia64.opt: Likewise.
10075 * config/rs6000/rs6000.opt: Likewise.
10076 * doc/options.texi: Document WarnRemoved properly.
10077 * dwarf2out.c (gen_producer_string): Handle renamed
10078 OPT_SPECIAL_warn_removed.
10079 * lto-opts.c (lto_write_options): Likewise.
10080 * lto-wrapper.c (merge_and_complain): Likewise.
10081 * opts-common.c (decode_cmdline_option): Likewise.
10082 (prune_options): Likewise.
10083 (read_cmdline_option): Likewise.
10084 (control_warning_option): Likewise.
10085 * opts.c (print_filtered_help): Likewise.
10086 * optc-gen.awk: Parse for WarnRemoved and make usage
10087 of Deprecated an error.
10088 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
10089
10090 2019-09-10 Arnaud Charlet <charlet@adacore.com>
10091
10092 * doc/install.texi: Fix syntax for html generation.
10093
10094 2019-09-10 Jakub Jelinek <jakub@redhat.com>
10095
10096 PR middle-end/91680
10097 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
10098 the shift type to type.
10099
10100 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10101
10102 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
10103 FDPIC mode.
10104 (stack_protect_combined_test_insn): Likewise.
10105
10106 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10107 Mickaël Guêné <mickael.guene@st.com>
10108
10109 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
10110 * config/arm/arm.md (FDPIC_REGNUM): New constant.
10111 (load_tp_soft_fdpic): New pattern.
10112 (load_tp_soft): Disable in FDPIC mode.
10113
10114 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10115 Mickaël Guêné <mickael.guene@st.com>
10116
10117 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
10118 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
10119 (arm_call_tls_get_addr): Add FDPIC support.
10120 (legitimize_tls_address): Likewise.
10121 (arm_emit_tls_decoration): Likewise.
10122
10123 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10124 Mickaël Guêné <mickael.guene@st.com>
10125
10126 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
10127 support.
10128 (arm_trampoline_init): Likewise.
10129 (arm_trampoline_adjust_address): Likewise.
10130 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
10131
10132 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10133 Mickaël Guêné <mickael.guene@st.com>
10134
10135 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
10136 (legitimize_pic_address): Enforce binding rules on function
10137 pointers in FDPIC mode.
10138 (arm_assemble_integer): Likewise.
10139
10140 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10141 Mickaël Guêné <mickael.guene@st.com>
10142
10143 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
10144 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
10145 FDPIC.
10146
10147 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10148 Mickaël Guêné <mickael.guene@st.com>
10149
10150 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
10151 field.
10152
10153 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10154 Mickaël Guêné <mickael.guene@st.com>
10155
10156 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
10157 in FDPIC mode.
10158 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
10159 new function.
10160 * config/arm/arm.c (arm_option_override): Define pic register to
10161 FDPIC_REGNUM.
10162 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
10163 have no decl or go through PLT.
10164 (calculate_pic_address_constant): New function.
10165 (legitimize_pic_address): Call calculate_pic_address_constant.
10166 (arm_load_pic_register): Handle TARGET_FDPIC.
10167 (arm_is_segment_info_known): New function.
10168 (arm_pic_static_addr): Add support for FDPIC.
10169 (arm_load_function_descriptor): New function.
10170 (arm_emit_call_insn): Add support for FDPIC.
10171 (arm_assemble_integer): Add support for FDPIC.
10172 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
10173 Define. (FDPIC_REGNUM): New define.
10174 * config/arm/arm.md (call): Add support for FDPIC.
10175 (call_value): Likewise.
10176 (restore_pic_register_after_call): New pattern.
10177 (untyped_call): Disable if FDPIC.
10178 (untyped_return): Likewise.
10179 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
10180
10181 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10182 Mickaël Guêné <mickael.guene@st.com>
10183
10184 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
10185 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
10186 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
10187 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
10188 (CC1_SPEC): Use FDPIC_CC1_SPEC.
10189 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
10190 * config/arm/uclinuxfdpiceabi.h: New file.
10191
10192 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10193
10194 * config.gcc: Handle *-*-uclinuxfdpiceabi.
10195
10196 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10197 Mickaël Guêné <mickael.guene@st.com>
10198
10199 * config/arm/arm.opt: Add -mfdpic option.
10200 * doc/invoke.texi: Add documentation for -mfdpic.
10201
10202 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10203
10204 * expmed.c (extract_bit_field): Update function comment
10205 regarding alt_rtl.
10206 * expr.c (expand_expr_real): Update function comment
10207 regarding alt_rtl.
10208 (expand_misaligned_mem_ref): New helper function.
10209 (expand_expr_real_2): Use expand_misaligned_mem_ref.
10210 Remove duplicate assignment to "base" at case MEM_REF.
10211 Remove a shadowed variable "unsignedp" at case VCE.
10212
10213 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10214
10215 * regset.h (regs_invalidated_by_call_regset): Delete.
10216 (fixed_reg_set_regset): Likewise.
10217 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
10218 (fixed_reg_set_regset, persistent_obstack): Likewise.
10219 (init_reg_sets_1, globalize_reg): Update accordingly.
10220 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
10221 instead of a bitmap.
10222 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
10223 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
10224 instead of regs_invalidated_by_call_regset.
10225 (df_lr_confluence_n, df_md_confluence_n): Likewise.
10226 * df-scan.c (df_scan_start_dump): Likewise.
10227 * dse.c (copy_fixed_regs): Likewise.
10228 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
10229
10230 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10231
10232 * array-traits.h: New file.
10233 * coretypes.h (array_traits, bitmap_view): New types.
10234 * bitmap.h: Include "array-traits.h"
10235 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
10236 (base_bitmap_view, bitmap_view): New classes.
10237 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
10238 * hard-reg-set.h: Include array-traits.h.
10239 (array_traits<HARD_REG_SET>): New struct.
10240 * regset.h (IOR_REG_SET_HRS): New macro.
10241 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
10242 rather than iterating over each hard register.
10243 * sched-deps.c (sched_analyze_insn): Likewise.
10244 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
10245
10246 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10247
10248 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
10249 instead of a HARD_REG_SET *.
10250 * ira-build.c (ior_hard_reg_conflicts): Likewise.
10251 (ira_build): Update call accordingly.
10252 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
10253
10254 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10255
10256 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
10257 (HARD_REG_SET::operator!=): Likewise.
10258 (hard_reg_set_equal_p): Delete.
10259 * cfgcleanup.c (old_insns_match_p): Use == instead of
10260 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
10261 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
10262 (add_allocno_hard_regs_to_forest): Likewise.
10263 (setup_allocno_available_regs_num): Likewise.
10264 * ira.c (setup_pressure_classes): Likewise.
10265 (setup_allocno_and_important_classes): Likewise.
10266 (setup_reg_class_relations): Likewise.
10267 * lra-lives.c (process_bb_lives): Likewise.
10268 * reg-stack.c (change_stack, convert_regs_1): Likewise.
10269
10270 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10271
10272 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
10273 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
10274 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
10275 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
10276 Likewise.
10277 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
10278 * ira.c (setup_reg_renumber): Likewise.
10279 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10280 * regrename.c (regrename_find_superclass): Likewise.
10281 * reload1.c (find_reg): Likewise.
10282
10283 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10284
10285 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
10286 * caller-save.c (setup_save_areas): Use "&~" instead of
10287 AND_COMPL_HARD_REG_SET.
10288 (save_call_clobbered_regs): Likewise.
10289 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
10290 Likewise.
10291 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10292 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10293 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
10294 * config/mips/mips.c (mips_class_max_nregs): Likewise.
10295 (mips_conditional_register_usage): Likewise.
10296 * config/sh/sh.c (output_stack_adjust): Likewise.
10297 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
10298 (setup_profitable_hard_regs): Likewise.
10299 (get_conflict_and_start_profitable_regs): Likewise.
10300 * ira-conflicts.c (print_allocno_conflicts): Likewise.
10301 (ira_build_conflicts): Likewise.
10302 * ira-costs.c (restrict_cost_classes): Likewise.
10303 (setup_regno_cost_classes_by_aclass): Likewise.
10304 * ira-lives.c (process_bb_node_lives): Likewise.
10305 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
10306 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
10307 (setup_allocno_and_important_classes, setup_class_translate_array)
10308 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
10309 Likewise.
10310 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10311 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
10312 (process_alt_operands, inherit_in_ebb): Likewise.
10313 * lra-eliminations.c (update_reg_eliminate): Likewise.
10314 * lra-lives.c (process_bb_lives): Likewise.
10315 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
10316 * resource.c (find_dead_or_set_registers): Likewise.
10317 (mark_target_live_regs): Likewise.
10318 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
10319 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10320 (implicit_clobber_conflict_p): Likewise.
10321 * shrink-wrap.c (requires_stack_frame_p): Likewise.
10322 (try_shrink_wrapping): Likewise.
10323
10324 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10325
10326 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
10327 (HARD_REG_SET::operator|=): Likewise.
10328 (IOR_HARD_REG_SET): Delete.
10329 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
10330 IOR_HARD_REG_SET.
10331 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
10332 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
10333 * final.c (collect_fn_hard_reg_usage): Likewise.
10334 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
10335 * ira-build.c (merge_hard_reg_conflicts): Likewise.
10336 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
10337 (propagate_some_info_from_allocno): Likewise.
10338 (copy_info_to_removed_store_destinations): Likewise.
10339 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
10340 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
10341 (fast_allocation): Likewise.
10342 * ira-conflicts.c (ira_build_conflicts): Likewise.
10343 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
10344 (process_bb_node_lives): Likewise.
10345 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
10346 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10347 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
10348 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
10349 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
10350 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
10351 (process_bb_lives): Likewise.
10352 * lra-spills.c (assign_spill_hard_regs): Likewise.
10353 * postreload.c (reload_combine): Likewise.
10354 * reginfo.c (init_reg_sets_1): Likewise.
10355 * regrename.c (merge_overlapping_regs, find_rename_reg)
10356 (merge_chains): Likewise.
10357 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
10358 (find_reload_regs, finish_spills, choose_reload_regs_init)
10359 (emit_reload_insns): Likewise.
10360 * reorg.c (redundant_insn): Likewise.
10361 * resource.c (find_dead_or_set_registers, mark_set_resources)
10362 (mark_target_live_regs): Likewise.
10363 * rtlanal.c (find_all_hard_reg_sets): Likewise.
10364 * sched-deps.c (sched_analyze_insn): Likewise.
10365 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10366 (find_best_reg_for_expr): Likewise.
10367 * shrink-wrap.c (try_shrink_wrapping): Likewise.
10368
10369 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10370
10371 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
10372 (HARD_REG_SET::operator&): Likewise.
10373 (AND_HARD_REG_SET): Delete.
10374 * caller-save.c (setup_save_areas): Use "&" instead of
10375 AND_HARD_REG_SET.
10376 (save_call_clobbered_regs): Likewise.
10377 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10378 * config/m32c/m32c.c (reduce_class): Likewise.
10379 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
10380 * final.c (get_call_reg_set_usage): Likewise.
10381 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
10382 (setup_left_conflict_sizes_p): Likewise.
10383 * ira-conflicts.c (print_allocno_conflicts): Likewise.
10384 (ira_build_conflicts): Likewise.
10385 * ira-costs.c (restrict_cost_classes): Likewise.
10386 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
10387 (setup_reg_class_relations): Likewise.
10388 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
10389 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
10390 * resource.c (find_dead_or_set_registers): Likewise.
10391 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10392
10393 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10394
10395 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
10396 (COMPL_HARD_REG_SET): Delete.
10397 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
10398 of COMPL_HARD_REG_SET.
10399 (try_rename_operands): Likewise.
10400 * config/sh/sh.c (push_regs): Likewise.
10401 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10402 * lra-constraints.c (contains_reg_p): Likewise.
10403 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
10404
10405 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10406
10407 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
10408 * caller-save.c (save_call_clobbered_regs): Use assignment instead
10409 of COPY_HARD_REG_SET.
10410 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
10411 (epiphany_conditional_register_usage): Likewise.
10412 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10413 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10414 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10415 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
10416 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
10417 * config/mips/mips.c (mips_class_max_nregs): Likewise.
10418 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
10419 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
10420 * config/sh/sh.c (output_stack_adjust): Likewise.
10421 * final.c (collect_fn_hard_reg_usage): Likewise.
10422 (get_call_reg_set_usage): Likewise.
10423 * ira-build.c (ira_create_object, remove_low_level_allocnos)
10424 (ira_flattening): Likewise.
10425 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
10426 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
10427 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
10428 (ira_reassign_pseudos): Likewise.
10429 * ira-conflicts.c (print_allocno_conflicts): Likewise.
10430 (ira_build_conflicts): Likewise.
10431 * ira-costs.c (restrict_cost_classes): Likewise.
10432 (setup_regno_cost_classes_by_aclass): Likewise.
10433 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
10434 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
10435 (setup_stack_reg_pressure_class, setup_pressure_classes)
10436 (setup_allocno_and_important_classes, setup_class_translate_array)
10437 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
10438 (ira_setup_eliminable_regset): Likewise.
10439 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10440 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
10441 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
10442 (process_alt_operands, inherit_in_ebb): Likewise.
10443 * lra-lives.c (process_bb_lives): Likewise.
10444 * lra-spills.c (assign_spill_hard_regs): Likewise.
10445 * lra.c (lra): Likewise.
10446 * mode-switching.c (new_seginfo): Likewise.
10447 * postreload.c (reload_combine): Likewise.
10448 * reg-stack.c (straighten_stack): Likewise.
10449 * reginfo.c (save_register_info, restore_register_info): Likewise.
10450 (init_reg_sets_1, record_subregs_of_mode): Likewise
10451 * regrename.c (create_new_chain, rename_chains): Likewise.
10452 * reload1.c (order_regs_for_reload, find_reg): Likewise.
10453 (find_reload_regs): Likewise.
10454 * resource.c (find_dead_or_set_registers): Likewise.
10455 (mark_target_live_regs): Likewise.
10456 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10457
10458 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10459
10460 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
10461 (note_pattern_stores): Declare.
10462 (note_stores): Take an rtx_insn *.
10463 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
10464 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
10465 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
10466 (note_stores): Take an rtx_insn * as argument and process
10467 CALL_INSN_FUNCTION_USAGE. Rename old function to...
10468 (note_pattern_stores): ...this.
10469 (find_first_parameter_load): Pass the insn rather than
10470 its pattern to note_stores.
10471 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
10472 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
10473 (insert_one_insn): Likewise.
10474 * combine.c (combine_instructions): Likewise.
10475 (likely_spilled_retval_p): Likewise.
10476 (try_combine): Use note_pattern_stores instead of note_stores.
10477 (record_dead_and_set_regs): Pass the insn rather than its pattern
10478 to note_stores.
10479 (reg_dead_at_p): Likewise.
10480 * config/bfin/bfin.c (workaround_speculation): Likewise.
10481 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
10482 rather than an rtx.
10483 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
10484 instead of note_stores.
10485 (frv_optimize_membar_local): Pass the insn rather than its pattern
10486 to note_stores.
10487 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10488 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
10489 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
10490 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
10491 (mips_reorg_process_insns): Likewise.
10492 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
10493 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
10494 rather than rtxes.
10495 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
10496 its pattern to note_stores.
10497 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
10498 of note_stores.
10499 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
10500 the insn to note_stores.
10501 (prescan_insns_for_dce): Update call accordingly.
10502 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
10503 to note_stores.
10504 * df-problems.c (can_move_insns_across): Likewise.
10505 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
10506 * function.c (assign_parm_setup_reg): Likewise.
10507 * gcse-common.c (record_last_mem_set_info_common): Likewise.
10508 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
10509 (single_set_gcse): Likewise.
10510 * ira.c (validate_equiv_mem): Likewise.
10511 (update_equiv_regs): Use note_pattern_stores rather than note_stores
10512 for no_equiv.
10513 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
10514 pattern to note_stores.
10515 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
10516 * loop-iv.c (simplify_using_initial_values): Likewise.
10517 * mode-switching.c (optimize_mode_switching): Likewise.
10518 * optabs.c (emit_libcall_block_1): Likewise.
10519 (expand_atomic_compare_and_swap): Likewise.
10520 * postreload-gcse.c (load_killed_in_block_p): Likewise.
10521 (record_opr_changes): Likewise. Remove explicit handling of
10522 CALL_INSN_FUNCTION_USAGE.
10523 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
10524 * regcprop.c (kill_clobbered_values): Likewise.
10525 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
10526 to note_stores.
10527 * regrename.c (build_def_use): Likewise.
10528 * reload1.c (reload): Use note_pattern_stores instead of note_stores
10529 for mark_not_eliminable.
10530 (reload_as_needed): Pass the insn rather than its pattern
10531 to note_stores.
10532 (emit_output_reload_insns): Likewise.
10533 * resource.c (mark_target_live_regs): Likewise.
10534 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
10535 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
10536 instead of note_stores.
10537 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
10538 its pattern to note_stores.
10539 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
10540 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
10541
10542 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10543
10544 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
10545 than a #define. Use a structure rather than an array as the
10546 fallback definition. Remove special cases for low array sizes.
10547 (const_hard_reg_set): New typedef.
10548 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
10549 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
10550 (hard_reg_set_empty_p): Likewise.
10551 (SET_HARD_REG_BIT): Use a function rather than a macro to
10552 handle the case in which HARD_REG_SET is a structure.
10553 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
10554 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
10555 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
10556 (IOR_COMPL_HARD_REG_SET): Likewise.
10557 (hard_reg_set_iterator::pset): Constify the pointer target.
10558 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
10559 of a "const HARD_REG_SET". Update the handling of non-integer
10560 HARD_REG_SETs.
10561 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
10562 * reload.h: Likewise.
10563 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
10564 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
10565 of a "const HARD_REG_SET".
10566 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
10567 (range_in_hard_reg_set_p): Likewise.
10568 * ira-costs.c (restrict_cost_classes): Likewise.
10569 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
10570 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10571 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
10572 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
10573 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
10574 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
10575 take an unsigned int and open-code the HARD_REG_SET operations.
10576
10577 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10578
10579 * Makefile.in (OBJS): Remove bt-load.o.
10580 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
10581 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
10582 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
10583 document that the option no longer does anything.
10584 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
10585 * target.def (branch_target_register_class): Delete.
10586 (branch_target_register_callee_saved): Likewise.
10587 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
10588 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
10589 * doc/tm.texi: Regenerate.
10590 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
10591 (make_pass_branch_target_load_optimize2): Likewise.
10592 * passes.def (pass_branch_target_load_optimize1): Likewise.
10593 (pass_branch_target_load_optimize2): Likewise.
10594 * targhooks.h (default_branch_target_register_class): Likewise.
10595 * targhooks.c (default_branch_target_register_class): Likewise.
10596 * opt-suggestions.c (test_completion_valid_options): Remove
10597 -fbtr-bb-exclusive from the list of test options.
10598 * bt-load.c: Remove.
10599
10600 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
10601
10602 * match.pd: Add flag_unsafe_math_optimizations check
10603 before deciding on the widest type in a binary math operation.
10604
10605 2019-09-09 Martin Liska <mliska@suse.cz>
10606
10607 * config/i386/i386.opt: Update comment of removed
10608 options that are preserved only for backward
10609 compatibility.
10610
10611 2019-09-09 Jakub Jelinek <jakub@redhat.com>
10612
10613 PR target/87853
10614 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
10615 instead of __v16qs.
10616
10617 PR target/91704
10618 * config/i386/avxintrin.h (__v32qs): New typedef.
10619 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
10620 instead of __v32qi.
10621
10622 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10623
10624 * doc/invoke.texi (Option Summary): Cover eBPF.
10625 (eBPF Options): New section.
10626 * doc/extend.texi (BPF Built-in Functions): Likewise.
10627 (BPF Kernel Helpers): Likewise.
10628
10629 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10630
10631 * config.gcc: Support for bpf-*-* targets.
10632 * common/config/bpf/bpf-common.c: New file.
10633 * config/bpf/t-bpf: Likewise.
10634 * config/bpf/predicates.md: Likewise.
10635 * config/bpf/constraints.md: Likewise.
10636 * config/bpf/bpf.opt: Likewise.
10637 * config/bpf/bpf.md: Likewise.
10638 * config/bpf/bpf.h: Likewise.
10639 * config/bpf/bpf.c: Likewise.
10640 * config/bpf/bpf-protos.h: Likewise.
10641 * config/bpf/bpf-opts.h: Likewise.
10642 * config/bpf/bpf-helpers.h: Likewise.
10643 * config/bpf/bpf-helpers.def: Likewise.
10644
10645 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10646
10647 * doc/sourcebuild.texi (Effective-Target Keywords): Document
10648 indirect_calls.
10649
10650 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10651
10652 * opt-functions.awk (integer_range_info): Make sure values are in
10653 numeric context before operating with them.
10654
10655 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
10656
10657 * genemit.c (gen_split): Print the filename and line number where the
10658 splitter (or peephole2) was defined, to the dump file.
10659
10660 2019-09-07 Jakub Jelinek <jakub@redhat.com>
10661
10662 PR tree-optimization/91665
10663 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
10664 incompatible with the type of PHI result.
10665
10666 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
10667
10668 PR target/91684
10669 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
10670 gen_unaligned_storedi for 4-byte aligned addresses.
10671
10672 2019-09-06 Jim Wilson <jimw@sifive.com>
10673
10674 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
10675 change.
10676
10677 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
10678
10679 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
10680
10681 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
10682
10683 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
10684 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
10685
10686 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
10687
10688 PR target/91654
10689 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
10690 cost of SSE->integer and integer->SSE moves from 2 to 6.
10691 (core_cost): Ditto.
10692
10693 2019-09-06 Jakub Jelinek <jakub@redhat.com>
10694
10695 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
10696 before testing TYPE_TRANSPARENT_AGGR.
10697 * calls.c (initialize_argument_information, load_register_parameters):
10698 Likewise.
10699
10700 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
10701
10702 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
10703 high regs.
10704 (cmp_ior): Likewise.
10705
10706 2019-09-06 Martin Liska <mliska@suse.cz>
10707
10708 * doc/match-and-simplify.texi: Separate tuples with ;.
10709
10710 2019-09-06 Martin Liska <mliska@suse.cz>
10711
10712 PR c++/91125
10713 * Makefile.in: Remove tlink.o.
10714 * collect2.c (do_link): New function isolated
10715 from do_tlink.
10716 (main): Use.
10717 * collect2.h (do_tlink): Remove declaration of do_tlink.
10718 * doc/extend.texi: Remove documentation of -frepo.
10719 * doc/invoke.texi: Likewise.
10720 * doc/sourcebuild.texi: Remove cleanup-repo-files.
10721 * tlink.c: Remove.
10722
10723 2019-09-05 Jakub Jelinek <jakub@redhat.com>
10724 Jim Wilson <jimw@sifive.com>
10725
10726 PR target/91635
10727 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
10728 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
10729 paradoxical_subreg_p (operands[0]).
10730 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
10731 use as intermediate value.
10732
10733 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
10734
10735 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
10736 (sync_compare_and_swap<mode>_insn): Likewise.
10737
10738 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
10739
10740 PR middle-end/91615
10741 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
10742 without movmisalign optab.
10743
10744 2019-09-05 Jakub Jelinek <jakub@redhat.com>
10745
10746 PR middle-end/91001
10747 PR middle-end/91105
10748 PR middle-end/91106
10749 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
10750 types, use type of their first field instead of type of
10751 args[i].tree_value.
10752
10753 2019-09-05 Richard Biener <rguenther@suse.de>
10754
10755 PR rtl-optimization/91656
10756 * postreload-gcse.c (record_last_mem_set_info): Revert addition
10757 of early out.
10758
10759 2019-09-05 Richard Biener <rguenther@suse.de>
10760
10761 PR middle-end/90501
10762 * tree-inline.c (declare_return_variable): Mark the return
10763 slot as addressable after building an address of it.
10764
10765 2019-09-05 Arnaud Charlet <charlet@adacore.com>
10766
10767 * doc/install.texi: Update and clarify requirements to build GNAT.
10768
10769 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
10770
10771 PR middle-end/91577
10772 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
10773 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
10774 call to be in memory.
10775 (pass_expand::execute): Call discover_nonconstant_array_refs before
10776 setting currently_expanding_to_rtl.
10777
10778 2019-09-04 Caroline Tice <cmtice@google.com>
10779
10780 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
10781 specified together.
10782
10783 2019-09-04 Marek Polacek <polacek@redhat.com>
10784
10785 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
10786
10787 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
10788
10789 PR target/32413
10790 * config/i386/i386.c (inline_secondary_memory_needed): Return true
10791 for QI and HImode moves between SSE and general registers.
10792
10793 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10794
10795 PR c/78736
10796 * doc/invoke.texi: Document -Wenum-conversion.
10797
10798 2019-09-04 Richard Biener <rguenther@suse.de>
10799
10800 PR rtl-optimization/36262
10801 * postreload-gcse.c: Include intl.h and gcse.h.
10802 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
10803 to avoid linear list walk.
10804 (record_last_mem_set_info): Gate off if not computing transparentness.
10805 (get_bb_avail_insn): If transparentness isn't computed give up
10806 early.
10807 (gcse_after_reload_main): Skip compute_transp and extended PRE
10808 if gcse_or_cprop_is_too_expensive says so.
10809
10810 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10811
10812 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
10813 noinit section.
10814 (msp430_select_section): Handle decls with the "noinit" attribute with
10815 default_elf_select_section.
10816 Handle SECCAT_RODATA_MERGE_* section types with
10817 default_elf_select_section.
10818 Add comments about handling of unsupported section types.
10819 (msp430_section_type_flags): Remove handling of the noinit section.
10820
10821 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10822
10823 * config/msp430/msp430.c (msp430_attr): Remove warnings about
10824 conflicting msp430-specific attributes.
10825 (msp430_section_attr): Likewise.
10826 Add warnings about conflicts with generic "noinit" and "section"
10827 attributes.
10828 Fix grammar in -mlarge error message.
10829 (msp430_data_attr): Rename to msp430_persist_attr.
10830 Add warnings about conflicts with generic "noinit" and "section"
10831 attributes.
10832 Add warning for when variable is not initialized.
10833 Chain conditionals which prevent the attribute being added.
10834 (ATTR_EXCL): New helper.
10835 (attr_reent_exclusions): New exclusion table.
10836 (attr_naked_exclusions): Likewise.
10837 (attr_crit_exclusions): Likewise.
10838 (attr_lower_exclusions): Likewise.
10839 (attr_upper_exclusions): Likewise.
10840 (attr_either_exclusions): Likewise.
10841 (attr_persist_exclusions): Likewise.
10842 (msp430_attribute_table): Update with exclusion rules.
10843 (msp430_output_aligned_decl_common): Don't output common symbol if decl
10844 has a section.
10845
10846 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10847
10848 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
10849 (msp430_handle_generic_attribute): New function.
10850 * doc/tm.texi: Regenerate.
10851 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
10852 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
10853 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
10854 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
10855
10856 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
10857
10858 PR tree-optimization/91504
10859 * match.pd: Add ((~a & b) ^a) --> (a | b).
10860
10861 2019-09-03 Jakub Jelinek <jakub@redhat.com>
10862
10863 PR target/91604
10864 * config/i386/i386-expand.c (split_double_mode): If there is more than
10865 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
10866 already split matching MEM operand instead of calling adjust_address
10867 again.
10868
10869 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
10870
10871 * config.gcc: Obsolete spu target. Remove references to spu.
10872 * configure.ac: Remove references to spu.
10873 * configure: Regenerate.
10874 * config/spu/: Remove directory.
10875 * common/config/spu/: Remove directory.
10876
10877 * doc/extend.texi: Remove references to spu.
10878 * doc/invoke.texi: Likewise.
10879 * doc/md.texi: Likewise.
10880 * doc/sourcebuild.texi: Likewise.
10881
10882 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10883
10884 PR middle-end/91603
10885 PR middle-end/91612
10886 PR middle-end/91613
10887 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
10888 and SSA_NAME referring to CONSTANT_P correctly.
10889
10890 2019-09-03 Richard Biener <rguenther@suse.de>
10891
10892 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
10893 (vn_nary_op_insert): Likewise.
10894 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
10895 (vn_nary_op_lookup): Likewise.
10896 (vn_nary_op_insert): Likewise.
10897
10898 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
10899
10900 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
10901 (*op0, 1) instead of XEXP (*op1, 0).
10902
10903 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10904
10905 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
10906 (aarch64_fjcvtzs): New define_insn.
10907 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
10908 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
10909 Add AARCH64_JSCVT.
10910 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
10911 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
10912 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
10913 __ARM_FEATURE_JCVT where appropriate.
10914 * config/aarch64/arm_acle.h (__jcvt): Define.
10915
10916 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10917
10918 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
10919 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
10920 (aarch64_<frintnzs_op><mode>): New define_insn.
10921 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
10922 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
10923 __ARM_FEATURE_FRINT when appropriate.
10924 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
10925 frint32x, frint64z, frint64x.
10926 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
10927 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
10928 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
10929 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
10930 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
10931 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
10932 * config/aarch64/iterators.md (VSFDF): Define.
10933 (FRINTNZX): Likewise.
10934 (frintnzs_op): Likewise.
10935
10936 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
10937
10938 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
10939 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
10940 Cortex-A34.
10941 * config/aarch64/aarch64-tune.md: Regenerated.
10942 * doc/invoke.texi: Document the new processors.
10943
10944 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10945
10946 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
10947 string.
10948 (ssbs): Likewise.
10949 (sve2): Likewise.
10950 (sve2-sm4): Likewise.
10951 (sveaes): Likewise.
10952 (svesha3): Likewise.
10953 (svebitperm): Likewise.
10954
10955 2019-09-03 Jakub Jelinek <jakub@redhat.com>
10956 Richard Biener <rguenther@suse.de>
10957
10958 PR tree-optimization/91597
10959 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
10960 BIT_AND_EXPR optimization for pointers, even if both operand
10961 ranges don't include NULL, the result can be NULL.
10962
10963 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10964
10965 PR middle-end/91605
10966 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
10967 (non_mem_decl_p): ...this.
10968 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
10969 (expand_assignment): Call mem_ref_referes_to_non_mem_p
10970 unconditionally as before.
10971
10972 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
10973
10974 PR target/91323
10975 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
10976 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
10977 * tree.def (LTGT_EXPR): Likewise.
10978 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
10979
10980 2019-09-02 Jakub Jelinek <jakub@redhat.com>
10981
10982 PR go/91617
10983 * fold-const.c (range_check_type): For enumeral and boolean
10984 type, pass 1 to type_for_size langhook instead of
10985 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
10986 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
10987 (build_range_check): Don't call unsigned_type_for for pointer types.
10988 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
10989 range_check_type result.
10990
10991 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
10992
10993 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
10994 (replace_ref): Do not replace a chain of only two candidates which are
10995 valid memory references.
10996
10997 2019-09-02 Martin Liska <mliska@suse.cz>
10998
10999 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
11000 Bail out when we'll end up with the same number of clusters as
11001 at the beginning.
11002 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
11003 (jump_table_cluster::can_be_handled): Remove the guard
11004 as it's already handled in ::is_enabled. Allocate output
11005 after early bail out.
11006
11007 2019-09-02 Martin Liska <mliska@suse.cz>
11008
11009 PR gcov-profile/91601
11010 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
11011 (path_contains_zero_or_negative_cycle_arc): ... this and handle
11012 also negative edges.
11013 (circuit): Handle also negative edges as they can happen
11014 in some situations.
11015
11016 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
11017
11018 PR target/91472
11019 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
11020 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
11021 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
11022
11023 2019-09-01 Jakub Jelinek <jakub@redhat.com>
11024
11025 PR middle-end/91623
11026 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
11027 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
11028 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
11029 zero vector.
11030
11031 PR lto/91572
11032 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
11033 GIMPLE_ASM TREE_LIST operands.
11034
11035 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
11036
11037 * doc/generic.texi (Unary and Binary Expressions): Mark up
11038 an instance of TYPE_MIN.
11039
11040 2019-08-31 Stafford Horne <shorne@gmail.com>
11041
11042 * config/or1k/constraints.md (t): New constraint.
11043 * config/or1k/or1k.h (GOT_REGS): New register class.
11044 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
11045
11046 2019-08-30 Jim Wilson <jimw@sifive.com>
11047
11048 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
11049 and -fpic and -mplt then disable -msave-restore and warn.
11050
11051 2019-08-30 Martin Sebor <msebor@redhat.com>
11052
11053 PR middle-end/91599
11054 * tree-ssa-strlen.c (handle_store): Use a fallback location if
11055 the statement doesn't have one.
11056 * gimple-pretty-print.c (percent_G_format): Same.
11057
11058 PR middle-end/91584
11059 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
11060 before using them to validate MEM_REF offset.
11061
11062 2019-08-30 Marek Polacek <polacek@redhat.com>
11063
11064 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
11065
11066 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
11067
11068 * config/arm/arm.md (unaligned_loaddi,
11069 unaligned_storedi): New unspec insn patterns.
11070 * config/arm/neon.md (unaligned_storev8qi): Likewise.
11071 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
11072 and unaligned_storedi for 4-byte aligned memory.
11073 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
11074 4-byte aligned memory.
11075
11076 2019-08-30 Martin Jambor <mjambor@suse.cz>
11077
11078 tree-optimization/91579
11079 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
11080 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
11081 appropriate.
11082 (arg_needs_copy_p): Removed.
11083 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
11084 arg_needs_copy_p.
11085 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
11086
11087 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
11088
11089 * config/i386/i386-features.c
11090 (general_scalar_chain::compute_convert_gain):
11091 Correct cost for double-word shifts.
11092 (general_scalar_to_vector_candidate_p): Reject count operands
11093 greater or equal to mode bitsize.
11094
11095 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
11096
11097 * config/i386/i386.c (inline_secondary_memory_needed): Return true
11098 for moves between SSE and non-general registers and between
11099 mask and non-general registers.
11100 (ix86_register_move_cost): Remove stalled comment.
11101
11102 2019-08-29 Richard Biener <rguenther@suse.de>
11103
11104 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
11105 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
11106
11107 2019-08-29 Richard Biener <rguenther@suse.de>
11108
11109 PR bootstrap/91580
11110 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
11111 Do not emit scalar copies for debug-insns, instead replace
11112 their uses with the reg copy used in the chain or reset them
11113 if there is a reaching definition outside of the chain as well.
11114
11115 2019-08-29 Jakub Jelinek <jakub@redhat.com>
11116
11117 PR target/91560
11118 * config/i386/i386-expand.c (expand_vec_perm_movs,
11119 expand_vec_perm_blend, expand_vec_perm_vpermil,
11120 expand_vec_perm_pshufb, expand_vec_perm_1,
11121 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
11122 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
11123 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
11124 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
11125 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
11126 comments - replace ix86_expand_vec_perm_builtin_1 with
11127 ix86_expand_vec_perm_const_1.
11128 (expand_vec_perm2_vperm2f128_vblend): New function.
11129 (ix86_expand_vec_perm_const_1): New forward declaration. Call
11130 expand_vec_perm2_vperm2f128_vblend as last resort.
11131 (canonicalize_perm): Formatting fix.
11132
11133 PR tree-optimization/91351
11134 * tree-cfg.c (generate_range_test): Use range_check_type instead of
11135 unsigned_type_for.
11136 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
11137 range_check_type returns NULL.
11138 * tree-switch-conversion.c (switch_conversion::build_one_array):
11139 Use range_check_type instead of unsigned_type_for, don't perform
11140 linear opt if it returns NULL.
11141 (bit_test_cluster::find_bit_tests): Formatting fix.
11142 (bit_test_cluster::emit): Use range_check_type instead of
11143 unsigned_type_for.
11144 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
11145 returns NULL.
11146
11147 2019-08-29 Richard Biener <rguenther@suse.de>
11148
11149 PR tree-optimization/91568
11150 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
11151 (vect_update_max_nunits): Add overload for poly_uint64.
11152 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
11153 (vect_build_slp_tree): Record max_nunits into the subtree
11154 and merge it upwards.
11155 (vect_print_slp_tree): Print max_nunits.
11156
11157 2019-08-28 Marek Polacek <polacek@redhat.com>
11158
11159 Implement P1152R4: Deprecating some uses of volatile.
11160 PR c++/91361
11161 * doc/invoke.texi: Document -Wvolatile.
11162
11163 2019-08-28 Marek Polacek <polacek@redhat.com>
11164
11165 PR c++/91360 - Implement C++20 P1143R2: constinit.
11166 * doc/invoke.texi: Document -Wc++20-compat.
11167
11168 2019-08-28 Martin Sebor <msebor@redhat.com>
11169
11170 PR tree-optimization/91457
11171 * builtins.c (component_size): New function.
11172 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
11173 * builtins.h (compute_objsize): Add argument.
11174 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
11175 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
11176 (vrp_prop::check_mem_ref): Same.
11177 (vrp_prop::search_for_addr_array): Set no-warning bit.
11178 (check_array_bounds): Same.
11179
11180 2019-08-28 Martin Sebor <msebor@redhat.com>
11181
11182 PR driver/80545
11183 * opts-common.c (option_enabled): Correct checking for language
11184 options.
11185
11186 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
11187
11188 * config/i386/i386.c (ix86_register_move_cost): Do not
11189 limit the cost of moves to/from XMM register to minimum 8.
11190
11191 2019-08-28 Martin Jambor <mjambor@suse.cz>
11192
11193 PR ipa/91468
11194 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
11195 checking assert a normal assert to test it really is redundant.
11196 * ipa-prop.c (compute_complex_assign_jump_func): Removed
11197 redundant test.
11198 (update_jump_functions_after_inlining): Removed combining unary
11199 arithmetic operations with an ancestor jump function.
11200 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
11201 instead of t.
11202
11203 2019-08-28 Richard Biener <rguenther@suse.de>
11204
11205 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
11206 add the MD problem.
11207
11208 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
11209 Richard Biener <rguenther@suse.de>
11210
11211 * expr.c (expand_assignment): Handle misaligned DECLs.
11212 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
11213 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
11214 too.
11215 (assign_parm_setup_stack): Allocate properly aligned stack slots.
11216 * varasm.c (build_constant_desc): Align constants of misaligned types.
11217 * config/arm/predicates.md (aligned_operand): New predicate.
11218 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
11219 aligned_operand to check restrictions on memory addresses.
11220 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
11221 * config/arm/vec-common.md (mov<VALL>): Likewise.
11222
11223 2019-08-28 Jakub Jelinek <jakub@redhat.com>
11224
11225 PR libgomp/91530
11226 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
11227 V_128 iterator instead of VI_128.
11228
11229 2019-08-28 Martin Liska <mliska@suse.cz>
11230
11231 PR tree-optimization/90970
11232 * builtins.c (check_access): Remove assignment to maxread
11233 as it hasn't been used since when it was introduced in r255755.
11234
11235 2019-08-27 Martin Sebor <msebor@redhat.com>
11236
11237 PR tree-optimization/91567
11238 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
11239 of unknown strings.
11240 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
11241 to PTRDIFF_MAX - 2.
11242
11243 2019-08-27 Jeff Law <law@redhat.com>
11244
11245 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
11246 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
11247
11248 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
11249
11250 PR target/91528
11251 * config/i386/i386-features.c (convert_scalars_to_vector):
11252 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
11253 crtl->stack_realign_processed. Update crtl->drap_reg by calling
11254 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
11255 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
11256
11257 2019-08-27 Richard Biener <rguenther@suse.de>
11258
11259 * config/i386/i386-features.h
11260 (general_scalar_chain::~general_scalar_chain): Add.
11261 (general_scalar_chain::insns_conv): New bitmap.
11262 (general_scalar_chain::n_sse_to_integer): New.
11263 (general_scalar_chain::n_integer_to_sse): Likewise.
11264 (general_scalar_chain::make_vector_copies): Adjust signature.
11265 * config/i386/i386-features.c
11266 (general_scalar_chain::general_scalar_chain): Outline,
11267 initialize new members.
11268 (general_scalar_chain::~general_scalar_chain): New.
11269 (general_scalar_chain::mark_dual_mode_def): Record insns
11270 we need to insert conversions at and count them.
11271 (general_scalar_chain::compute_convert_gain): Account
11272 for conversion instructions at chain boundary.
11273 (general_scalar_chain::make_vector_copies): Generate a single
11274 copy for a def by a specific insn.
11275 (general_scalar_chain::convert_registers): First populate
11276 defs_map, then make copies at out-of chain insns.
11277
11278 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
11279
11280 * config/arm/arm.md (stack_protect_set_insn): Add security-related
11281 comment.
11282 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
11283
11284 2019-08-27 Martin Liska <mliska@suse.cz>
11285
11286 * cgraph.c (cgraph_node::remove): Remove dead assignment before
11287 loop.
11288 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
11289 Enclose in anonymous namespace.
11290 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
11291 hard_register initialization in braces.
11292 * tree-vrp.h (value_range_base::supports_type_p): Return false
11293 for function with boolean return type.
11294
11295 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
11296
11297 * config/i386/i386.c (emit_i387_cw_initialization)
11298 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
11299
11300 2019-08-26 Martin Sebor <msebor@redhat.com>
11301
11302 PR c++/83431
11303 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
11304 (sprintf_dom_walker): Remove class.
11305 (get_int_range): Make argument const.
11306 (directive::fmtfunc, directive::set_precision): Same.
11307 (format_none): Same.
11308 (build_intmax_type_nodes): Same.
11309 (adjust_range_for_overflow): Same.
11310 (format_floating): Same.
11311 (format_character): Same.
11312 (format_string): Same.
11313 (format_plain): Same.
11314 (get_int_range): Cast away constness.
11315 (format_integer): Same.
11316 (get_string_length): Call get_range_strlen_dynamic. Handle
11317 null lendata.maxbound.
11318 (should_warn_p): Adjust argument scope qualifier.
11319 (maybe_warn): Same.
11320 (format_directive): Same.
11321 (parse_directive): Same.
11322 (is_call_safe): Same.
11323 (try_substitute_return_value): Same.
11324 (sprintf_dom_walker::handle_printf_call): Rename...
11325 (handle_printf_call): ...to this. Initialize target to host charmap
11326 here instead of in pass_sprintf_length::execute.
11327 (struct call_info): Make global.
11328 (sprintf_dom_walker::compute_format_length): Make global.
11329 (sprintf_dom_walker::handle_gimple_call): Same.
11330 * passes.def (pass_sprintf_length): Replace with pass_strlen.
11331 * print-rtl.c (print_pattern): Reduce the number of spaces to
11332 avoid -Wformat-truncation.
11333 * tree-pass.h (make_pass_warn_printf): New function.
11334 * tree-ssa-strlen.c (strlen_optimize): New variable.
11335 (get_string_length): Add comments.
11336 (get_range_strlen_dynamic): New function.
11337 (check_and_optimize_call): New function.
11338 (handle_integral_assign): New function.
11339 (strlen_check_and_optimize_stmt): Factor code out into
11340 strlen_check_and_optimize_call and handle_integral_assign.
11341 (strlen_dom_walker::evrp): New member.
11342 (strlen_dom_walker::before_dom_children): Use evrp member.
11343 (strlen_dom_walker::after_dom_children): Use evrp member.
11344 (printf_strlen_execute): New function.
11345 (pass_strlen::gate): Update to handle printf calls.
11346 (dump_strlen_info): New function.
11347 (pass_data_warn_printf): New variable.
11348 (pass_warn_printf): New class.
11349 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
11350 (handle_printf_call): Same.
11351 * tree-vrp.c (value_range_base::type): Adjust assertion.
11352 * vr-values.c (vr_values::update_value_range): Use type of the first
11353 argument rather than the second.
11354
11355 2019-08-26 Richard Biener <rguenther@suse.de>
11356
11357 * config/i386/i386-features.c (general_remove_non_convertible_regs):
11358 Remove.
11359 (convert_scalars_to_vector): Do not call it.
11360
11361 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
11362 Uros Bizjak <ubizjak@gmail.com>
11363
11364 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
11365 CASE_MATHFN_FLOATN for roundeven.
11366 * config/i386/i386.c (ix86_i387_mode_needed): Add case
11367 I387_ROUNDEVEN.
11368 (ix86_mode_needed): Likewise.
11369 (ix86_mode_after): Likewise.
11370 (ix86_mode_entry): Likewise.
11371 (ix86_mode_exit): Likewise.
11372 (ix86_emit_mode_set): Likewise.
11373 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
11374 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
11375 (ix86_entity): Add I387_ROUNDEVEN.
11376 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
11377 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
11378 (define_int_iterator): Likewise.
11379 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
11380 (define_constant): Define ROUND_ROUNDEVEN mode.
11381 (define_attr): Add roundeven mode for i387_cw.
11382 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
11383 * internal-fn.def (ROUNDEVEN): New builtin function.
11384 * optabs.def (roundeven_optab): New optab.
11385
11386 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
11387
11388 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
11389 for ROUNDEVEN.
11390 * builtins.def: Added function definitions for roundeven function
11391 variants.
11392 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
11393 function call. Adjust condition for floor, ceil, trunc and round.
11394 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
11395 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
11396 (integer_valued_real_call_p): Added case for roundeven function.
11397 * real.c (is_even): New function. Returns true if real number is even,
11398 otherwise returns false.
11399 (is_halfway_below): New function. Returns true if real number is
11400 halfway between two integers, else return false.
11401 (real_roundeven): New function. Round real number to nearest integer,
11402 rounding halfway cases towards even.
11403 * real.h (real_value): Added descriptive comments. Added function
11404 declaration for roundeven function.
11405 * doc/extend.texi (Other Builtins): List roundeven variants among
11406 functions which can be handled as builtins.
11407
11408 2019-08-26 Richard Biener <rguenther@suse.de>
11409
11410 PR target/91522
11411 PR target/91527
11412 * config/i386/i386-features.h (general_scalar_chain::defs_map):
11413 New member.
11414 (general_scalar_chain::replace_with_subreg): Remove.
11415 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
11416 (general_scalar_chain::convert_reg): Adjust signature.
11417 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
11418 iterate over all defs of a reg.
11419 (general_scalar_chain::replace_with_subreg): Remove.
11420 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
11421 (general_scalar_chain::make_vector_copies): Populate defs_map,
11422 place copy only after defs that are used as vectors in the chain.
11423 (general_scalar_chain::convert_reg): Emit a copy for a specific
11424 def in a specific instruction.
11425 (general_scalar_chain::convert_op): All reg uses are converted here.
11426 (general_scalar_chain::convert_insn): Emit copies for scalar
11427 uses of defs here. Replace uses with the copies we created.
11428 Replace and convert the def. Adjust REG_DEAD notes, remove
11429 REG_EQUIV/EQUAL notes.
11430 (general_scalar_chain::convert_registers): Only handle copies
11431 into the chain here.
11432
11433 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
11434
11435 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
11436
11437 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
11438
11439 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
11440 Add nop_convert case.
11441 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
11442 Fold all statements if requested.
11443 * tree-ssa-propagate.h (class substitute_and_fold_engine):
11444 Allow to fold all statements.
11445 * tree-vrp.c (class vrp_folder):
11446 Let substitute_and_fold_engine fold all statements.
11447
11448 2019-08-26 Richard Biener <rguenther@suse.de>
11449
11450 PR tree-optimization/91526
11451 * passes.def: Note that after late FRE we do TODO_update_address_taken.
11452 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
11453 TODO_update_address_taken.
11454
11455 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
11456
11457 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
11458 __STDC_HOSTED__.
11459
11460 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
11461
11462 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
11463 machine mode for unspec_volatile operand.
11464
11465 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
11466
11467 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
11468 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
11469 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
11470 (prefer_neon_for_64bits): Remove.
11471 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
11472 (tune_params): Remove PREF_NEON_64_FALSE uses.
11473 (arm_option_override): Remove prefer_neon selection code.
11474 (arm_print_tune_info): Remove prefer_neon_for_64bits.
11475 * config/arm/arm-protos.h (tune_params): Remove
11476 prefer_neon_for_64bits.
11477 (prefer_neon_for_64bits): Remove.
11478
11479 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
11480
11481 PR pch/61250
11482 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
11483 and issue any diagnostics needed before collecting the pre-PCH
11484 state.
11485
11486 2019-08-23 Jakub Jelinek <jakub@redhat.com>
11487
11488 PR middle-end/91283
11489 * common.opt (fexcess-precision=): Add Optimization flag. Use
11490 flag_excess_precision variable instead of
11491 flag_excess_precision_cmdline.
11492 * flags.h (class target_flag_state): Remove x_flag_excess_precision
11493 member.
11494 (flag_excess_precision): Don't define.
11495 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
11496 flag_excess_precision_cmdline. Remove comment.
11497 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
11498 and x_flag_excess_precision instead of
11499 frontend_set_flag_excess_precision_cmdline and
11500 x_flag_excess_precision_cmdline.
11501 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
11502 x_flag_excess_precision_cmdline.
11503 * toplev.c (init_excess_precision): Remove.
11504 (lang_dependent_init_target): Don't call it.
11505
11506 2019-08-23 Martin Liska <mliska@suse.cz>
11507
11508 * lto-wrapper.c (run_gcc): When setting jobserver
11509 set also parallel to 1. This was done so before r273908.
11510
11511 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
11512
11513 * config/arm/arm-cpus.in (cortex-m35p): New entry.
11514 (cortex-a76ae): Likewise.
11515 (cortex-a77): Likewise
11516 * config/arm/arm-tables.opt: Regenerate.
11517 * config/arm/arm-tune.md: Likewise.
11518 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
11519 cortex-a77 CPU options.
11520
11521 2019-08-23 Martin Liska <mliska@suse.cz>
11522
11523 * profile.c (instrument_values): Do not set
11524 0 as last argument.
11525 * tree-profile.c (gimple_gen_interval_profiler): Remove
11526 last argument.
11527 (gimple_gen_pow2_profiler): Likewise.
11528 (gimple_gen_topn_values_profiler): Likewise.
11529 (gimple_gen_ic_profiler): Likewise.
11530 (gimple_gen_time_profiler): Likewise.
11531 (gimple_gen_average_profiler): Likewise.
11532 (gimple_gen_ior_profiler): Likewise.
11533 * value-prof.c (dump_histogram_value): Use default
11534 in switch statement instead of HIST_TYPE_MAX.
11535 (stream_in_histogram_value): Likewise.
11536 (gimple_duplicate_stmt_histograms): Do not
11537 use NULL for implicitly set arguments.
11538 (gimple_divmod_values_to_profile): Do not use
11539 reserve+quick_push.
11540 (gimple_indirect_call_to_profile): Likewise.
11541 (gimple_find_values_to_profile): Use implicit
11542 function call arguments.
11543 * value-prof.h (gimple_alloc_histogram_value):
11544 Set default values.
11545 (gimple_gen_interval_profiler): Remove last argument.
11546 (gimple_gen_pow2_profiler): Likewise.
11547 (gimple_gen_topn_values_profiler): Likewise.
11548 (gimple_gen_ic_profiler): Likewise.
11549 (gimple_gen_time_profiler): Likewise.
11550 (gimple_gen_average_profiler): Likewise.
11551 (gimple_gen_ior_profiler): Likewise.
11552
11553 2019-08-22 Martin Sebor <msebor@redhat.com>
11554
11555 PR middle-end/91490
11556 * builtins.c (c_strlen): Rename argument and introduce new local.
11557 Set no-warning bit on original argument.
11558 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
11559 Fold empty and zero constructors into empty strings.
11560 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
11561 for missing initializers.
11562 * tree.c (build_string_literal): Handle optional argument.
11563 * tree.h (build_string_literal): Add defaulted argument.
11564 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
11565 no-warning bit on original expression.
11566
11567 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
11568
11569 PR target/91481
11570 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
11571 and UNSPEC_DARN_RAW.
11572 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
11573 UNSPECV_DARN_RAW.
11574 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
11575 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
11576 (darn): Use an unspec_volatile, and UNSPECV_DARN.
11577
11578 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
11579
11580 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
11581 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
11582 * config/rs6000/rs6000.md (unspec): ... here.
11583 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
11584 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
11585 cmpeqb, *cmpeqb_internal): Delete, move to...
11586 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
11587 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
11588 cmpeqb, *cmpeqb_internal): ... here.
11589
11590 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11591
11592 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
11593 intrinsics if __ARM_FP.
11594 Use __ARM_FEATURE_CRC32 ifdef guard.
11595
11596 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
11597
11598 * config/arm/arm.md (neon_for_64bits): Remove.
11599 (avoid_neon_for_64bits): Remove.
11600 (arm_adddi3): Always split early.
11601 (arm_subdi3): Always split early.
11602 (negdi2): Remove Neon expansion.
11603 (split zero_extend): Split before reload.
11604 (split sign_extend): Split before reload.
11605
11606 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
11607
11608 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
11609 (qhs_extenddi_cstr): Likewise.
11610 * config/arm/arm.md (ashldi3): Always expand early.
11611 (ashlsi3): Likewise.
11612 (ashrsi3): Likewise.
11613 (zero_extend<mode>di2): Remove Neon variants.
11614 (extend<mode>di2): Likewise.
11615 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
11616 (signed_shift_di3_neon): Likewise.
11617 (unsigned_shift_di3_neon): Likewise.
11618 (ashrdi3_neon_imm_noclobber): Likewise.
11619 (lshrdi3_neon_imm_noclobber): Likewise.
11620 (<shift>di3_neon): Likewise.
11621 (split extend): Remove DI extend split patterns.
11622
11623 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
11624
11625 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
11626 (split not): Add DImode not splitter.
11627 (anddi3): Remove pattern.
11628 (anddi3_insn): Likewise.
11629 (anddi_zesidi_di): Likewise.
11630 (anddi_sesdi_di): Likewise.
11631 (anddi_notdi_di): Likewise.
11632 (anddi_notzesidi_di): Likewise.
11633 (anddi_notsesidi_di): Likewise.
11634 (iordi3): Likewise.
11635 (iordi3_insn): Likewise.
11636 (iordi_zesidi_di): Likewise.
11637 (iordi_sesidi_di): Likewise.
11638 (xordi3): Likewise.
11639 (xordi3_insn): Likewise.
11640 (xordi_sesidi_di): Likewise.
11641 (xordi_zesidi_di): Likewise.
11642 (one_cmpldi2): Likewise.
11643 (one_cmpldi2_insn): Likewise.
11644 * config/arm/constraints.md: Remove De, Df, Dg constraints.
11645 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
11646 alternative.
11647 (iwmmxt_xordi3): Likewise.
11648 (iwmmxt_anddi3): Likewise.
11649 * config/arm/neon.md (orndi3_neon): Remove pattern.
11650 (anddi_notdi_di): Likewise.
11651 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
11652 (arm_iordi_operand_neon): Likewise.
11653 (arm_xordi_operand_neon): Likewise.
11654 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
11655 (iordi_notzesidi_di): Likewise.
11656 (iordi_notdi_zesidi): Likewise.
11657 (iordi_notsesidi_di): Likewise.
11658
11659 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
11660
11661 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
11662 insn.
11663 (iorsi3_compare0_scratch): Likewise.
11664
11665 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
11666
11667 * config/aarch64/aarch64-simd-builtins.def:
11668 (ld1x4): New.
11669 (st1x4): Likewise.
11670 * config/aarch64/aarch64-simd.md:
11671 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
11672 (aarch64_st1x4<VALLDIF:mode>): Likewise.
11673 (aarch64_ld1_x4_<mode>): Likewise.
11674 (aarch64_st1_x4_<mode>): Likewise.
11675 * config/aarch64/arm_neon.h:
11676 (vld1_s8_x4): New function.
11677 (vld1q_s8_x4): Likewise.
11678 (vld1_s16_x4): Likewise.
11679 (vld1q_s16_x4): Likewise.
11680 (vld1_s32_x4): Likewise.
11681 (vld1q_s32_x4): Likewise.
11682 (vld1_u8_x4): Likewise.
11683 (vld1q_u8_x4): Likewise.
11684 (vld1_u16_x4): Likewise.
11685 (vld1q_u16_x4): Likewise.
11686 (vld1_u32_x4): Likewise.
11687 (vld1q_u32_x4): Likewise.
11688 (vld1_f16_x4): Likewise.
11689 (vld1q_f16_x4): Likewise.
11690 (vld1_f32_x4): Likewise.
11691 (vld1q_f32_x4): Likewise.
11692 (vld1_p8_x4): Likewise.
11693 (vld1q_p8_x4): Likewise.
11694 (vld1_p16_x4): Likewise.
11695 (vld1q_p16_x4): Likewise.
11696 (vld1_s64_x4): Likewise.
11697 (vld1_u64_x4): Likewise.
11698 (vld1_p64_x4): Likewise.
11699 (vld1q_s64_x4): Likewise.
11700 (vld1q_u64_x4): Likewise.
11701 (vld1q_p64_x4): Likewise.
11702 (vld1_f64_x4): Likewise.
11703 (vld1q_f64_x4): Likewise.
11704 (vst1_s8_x4): Likewise.
11705 (vst1q_s8_x4): Likewise.
11706 (vst1_s16_x4): Likewise.
11707 (vst1q_s16_x4): Likewise.
11708 (vst1_s32_x4): Likewise.
11709 (vst1q_s32_x4): Likewise.
11710 (vst1_u8_x4): Likewise.
11711 (vst1q_u8_x4): Likewise.
11712 (vst1_u16_x4): Likewise.
11713 (vst1q_u16_x4): Likewise.
11714 (vst1_u32_x4): Likewise.
11715 (vst1q_u32_x4): Likewise.
11716 (vst1_f16_x4): Likewise.
11717 (vst1q_f16_x4): Likewise.
11718 (vst1_f32_x4): Likewise.
11719 (vst1q_f32_x4): Likewise.
11720 (vst1_p8_x4): Likewise.
11721 (vst1q_p8_x4): Likewise.
11722 (vst1_p16_x4): Likewise.
11723 (vst1q_p16_x4): Likewise.
11724 (vst1_s64_x4): Likewise.
11725 (vst1_u64_x4): Likewise.
11726 (vst1_p64_x4): Likewise.
11727 (vst1q_s64_x4): Likewise.
11728 (vst1q_u64_x4): Likewise.
11729 (vst1q_p64_x4): Likewise.
11730 (vst1_f64_x4): Likewise.
11731 (vst1q_f64_x4): Likewise.
11732
11733 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11734
11735 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
11736
11737 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11738 Richard Sandiford <richard.sandiford@arm.com>
11739
11740 PR target/88839
11741 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
11742 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
11743
11744 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11745
11746 PR target/90724
11747 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
11748 in reg if it fails aarch64_plus_operand predicate.
11749
11750 2019-08-21 Richard Biener <rguenther@suse.de>
11751
11752 PR tree-optimization/91482
11753 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
11754 BUILT_IN_ASSUME_ALIGNED calls.
11755
11756 2019-08-21 Richard Biener <rguenther@suse.de>
11757
11758 PR target/91498
11759 PR target/91503
11760 * config/i386/i386-features.c
11761 (general_scalar_chain::make_vector_copies): Copy stack temporary
11762 rtx when using it multiple times.
11763 (general_scalar_chain::convert_reg): Likewise.
11764
11765 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
11766
11767 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
11768
11769 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
11770
11771 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
11772 catch more redundant zero initialization cases.
11773 (dse_dom_walker::dse_optimize_stmt): Likewise.
11774
11775 2019-08-20 Richard Biener <rguenther@suse.de>
11776
11777 PR lto/91307
11778 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
11779 by collect2 when targetm.have_ctors_dtors which avoids dragging
11780 in temporary filenames from LTO input objects.
11781
11782 2019-08-20 Richard Biener <rguenther@suse.de>
11783
11784 PR tree-optimization/37242
11785 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
11786 to (T)a + (T)b if we know that a + b does not overflow.
11787
11788 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
11789
11790 PR rtl-optimization/91347
11791 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
11792 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
11793
11794 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11795
11796 * calls.h (function_arg_info): Add a pass_by_reference field,
11797 defaulting to false.
11798 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
11799 when applying pass-by-reference semantics.
11800 (initialize_argument_information): Likewise.
11801 (emit_library_call_value_1): Likewise.
11802 * function.c (assign_parm_data_one): Remove passed_pointer field.
11803 (assign_parm_find_data_types): Don't set it.
11804 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
11805 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
11806 arg.pass_by_reference instead of passed_pointer.
11807
11808 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11809
11810 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
11811 into a single function_arg_info, updating its fields when we
11812 apply pass-by-reference and promotion semantics. Use the
11813 function_arg_info to track the mode rather than keeping it in
11814 a separate local variable.
11815 (initialize_argument_information): Likewise. Base the final
11816 arg_to_skip on this new function_arg_info rather than creating
11817 a new one from scratch.
11818
11819 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11820
11821 * function.c (assign_parm_data_one): Replace passed_type,
11822 promoted_mode and named_arg with a function_arg_info field.
11823 (assign_parm_find_data_types): Remove local variables and
11824 assign directly to "data". Make data->passed_mode shadow
11825 data->arg.mode until promotion, then assign the promoted
11826 mode to data->arg.mode.
11827 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
11828 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
11829 (assign_parm_remove_parallels, assign_parm_setup_block_p)
11830 (assign_parm_setup_block, assign_parm_setup_reg)
11831 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
11832 arg.mode instead of promoted_mode, arg.type instead of passed_type
11833 and arg.named instead of named_arg. Use data->arg for
11834 function_arg_info structures that had the field values passed_type,
11835 promoted_mode and named_arg. Base other function_arg_infos on
11836 data->arg, changing the necessary properties.
11837
11838 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11839
11840 * calls.h (apply_pass_by_reference_rules): Declare.
11841 * calls.c (apply_pass_by_reference_rules): New function.
11842 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
11843 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
11844 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
11845 * function.c (assign_parm_find_data_types): Likewise.
11846 * var-tracking.c (prepare_call_arguments): Likewise.
11847
11848 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11849
11850 * target.def (must_pass_in_stack): Take a function_arg_info instead
11851 of a mode and a type.
11852 * doc/tm.texi: Regenerate.
11853 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
11854 instead of a mode and a type.
11855 (must_pass_in_stack_var_size_or_pad): Likewise.
11856 * calls.c (must_pass_in_stack_var_size): Likewise.
11857 (must_pass_in_stack_var_size_or_pad): Likewise.
11858 (initialize_argument_information): Update call to
11859 targetm.calls.must_pass_in_stack.
11860 (must_pass_va_arg_on_stack): Likewise.
11861 * function.c (assign_parm_find_entry_rtl): Likewise.
11862 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
11863 * config/alpha/alpha.c (alpha_function_arg): Likewise.
11864 (alpha_function_arg_advance): Likewise.
11865 * config/cr16/cr16.c (cr16_function_arg): Likewise.
11866 (cr16_function_arg_advance): Likewise.
11867 * config/cris/cris.c (cris_pass_by_reference): Likewise.
11868 (cris_arg_partial_bytes): Likewise.
11869 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
11870 * config/lm32/lm32.c (lm32_function_arg): Likewise.
11871 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
11872 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
11873 * config/mips/mips.c (mips_pass_by_reference): Likewise.
11874 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
11875 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
11876 * config/sh/sh.c (sh_pass_by_reference): Likewise.
11877 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
11878 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
11879 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
11880 instead of a mode and a type.
11881 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
11882 (fr30_num_arg_regs): Likewise.
11883 (fr30_setup_incoming_varargs): Update calls accordingly.
11884 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
11885 (fr30_function_arg_advance): Likewise.
11886 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
11887 instead of a mode and a type.
11888 * config/gcn/gcn.c (num_arg_regs): Likewise.
11889 (gcn_function_arg, gcn_function_arg_advance): Update calls to
11890 num_arg_regs and targetm.calls.must_pass_in_stack.
11891 (gcn_arg_partial_bytes): Likewise.
11892 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
11893 function_arg_info instead of a mode and a type.
11894 (classify_argument): Update call accordingly.
11895 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
11896 function_arg_info instead of a mode and a type.
11897 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
11898 Likewise.
11899 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
11900 (rs6000_parm_needs_stack): Update call accordingly.
11901 (setup_incoming_varargs): Likewise.
11902
11903 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11904
11905 * target.def (callee_copies): Take a function_arg_info instead
11906 of a mode, type and named flag.
11907 * doc/tm.texi: Regenerate.
11908 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
11909 instead of a mode, type and named flag.
11910 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
11911 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11912 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
11913 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
11914 instead of a mode, type and named flag.
11915 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
11916 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11917 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
11918 * calls.h (reference_callee_copied): Take a function_arg_info
11919 instead of a mode, type and named flag.
11920 * calls.c (reference_callee_copied): Likewise.
11921 (initialize_argument_information): Update call accordingly.
11922 (emit_library_call_value_1): Likewise.
11923 * function.c (gimplify_parameters): Likewise.
11924 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
11925 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
11926 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
11927 * config/c6x/c6x.c (c6x_callee_copies): Delete.
11928 (TARGET_CALLEE_COPIES): Define to
11929 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
11930 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
11931 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
11932 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
11933 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
11934 instead of a mode, type and named flag.
11935 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
11936 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
11937 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
11938 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
11939 * config/msp430/msp430.c (msp430_callee_copies): Delete.
11940 (TARGET_CALLEE_COPIES): Define to
11941 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
11942 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
11943 instead of a mode, type and named flag.
11944 * config/sh/sh.c (sh_callee_copies): Likewise.
11945 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
11946 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
11947 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
11948
11949 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11950
11951 * target.def (function_arg_advance): Take a function_arg_info instead
11952 of a mode, type and named flag.
11953 * doc/tm.texi: Regenerate.
11954 * targhooks.h (default_function_arg_advance): Take a function_arg_info
11955 instead of a mode, type and named flag.
11956 * targhooks.c (default_function_arg_advance): Likewise.
11957 * calls.c (initialize_argument_information): Update call to
11958 targetm.calls.function_arg_advance.
11959 (emit_library_call_value_1): Likewise.
11960 * dse.c (get_call_args): Likewise.
11961 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11962 * function.c (assign_parms, gimplify_parameters): Likewise.
11963 * var-tracking.c (prepare_call_arguments): Likewise.
11964 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
11965 function_arg_info instead of a mode, type and named flag.
11966 (aarch64_setup_incoming_varargs): Update call accordingly.
11967 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
11968 function_arg_info instead of a mode, type and named flag.
11969 (alpha_setup_incoming_varargs): Update call accordingly.
11970 * config/arc/arc.c (arc_function_arg_advance): Take a
11971 function_arg_info instead of a mode, type and named flag.
11972 (arc_setup_incoming_varargs): Update call accordingly.
11973 * config/arm/arm.c (arm_function_arg_advance): Take a
11974 function_arg_info instead of a mode, type and named flag.
11975 (cmse_func_args_or_return_in_stack): Update call accordingly.
11976 (arm_function_ok_for_sibcall): Likewise.
11977 (cmse_nonsecure_call_clear_caller_saved): Likewise.
11978 * config/avr/avr.c (avr_function_arg_advance): Take a
11979 function_arg_info instead of a mode, type and named flag.
11980 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
11981 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
11982 (c6x_call_saved_register_used): Update call accordingly.
11983 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
11984 function_arg_info instead of a mode, type and named flag.
11985 * config/cris/cris.c (cris_function_arg_advance): Likewise.
11986 * config/csky/csky.c (csky_function_arg_advance): Likewise.
11987 (csky_setup_incoming_varargs): Update call accordingly.
11988 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
11989 function_arg_info instead of a mode, type and named flag.
11990 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
11991 * config/frv/frv.c (frv_function_arg_advance): Likewise.
11992 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
11993 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
11994 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
11995 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
11996 (ix86_setup_incoming_varargs): Update call accordingly.
11997 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
11998 function_arg_info instead of a mode, type and named flag.
11999 (ia64_setup_incoming_varargs): Update call accordingly.
12000 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
12001 function_arg_info instead of a mode, type and named flag.
12002 (iq2000_expand_prologue): Update call accordingly.
12003 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
12004 function_arg_info instead of a mode, type and named flag.
12005 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
12006 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
12007 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
12008 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
12009 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
12010 Likewise.
12011 (microblaze_expand_prologue): Update call accordingly.
12012 * config/mips/mips.c (mips_function_arg_advance): Take a
12013 function_arg_info instead of a mode, type and named flag.
12014 (mips_setup_incoming_varargs): Update call accordingly.
12015 (mips_output_args_xfer): Likewise.
12016 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
12017 function_arg_info instead of a mode, type and named flag.
12018 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
12019 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
12020 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
12021 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
12022 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
12023 (nios2_setup_incoming_varargs): Update call accordingly.
12024 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
12025 function_arg_info instead of a mode, type and named flag.
12026 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
12027 * config/pa/pa.c (pa_function_arg_advance): Likewise.
12028 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
12029 * config/pru/pru.c (pru_function_arg_advance): Likewise.
12030 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
12031 (riscv_setup_incoming_varargs): Update call accordingly.
12032 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
12033 function_arg_info instead of a mode, type and named flag.
12034 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
12035 Likewise.
12036 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
12037 (rs6000_parm_needs_stack): Update call accordingly.
12038 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
12039 instead of a mode, type and named flag.
12040 * config/s390/s390.c (s390_function_arg_advance): Likewise.
12041 (s390_call_saved_register_used): Update call accordingly.
12042 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
12043 instead of a mode, type and named flag.
12044 (sh_output_mi_thunk): Update call accordingly.
12045 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
12046 function_arg_info instead of a mode, type and named flag.
12047 * config/spu/spu.c (spu_function_arg_advance): Likewise.
12048 (spu_setup_incoming_varargs): Update call accordingly.
12049 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
12050 function_arg_info instead of a mode, type and named flag.
12051 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
12052 (tilegx_setup_incoming_varargs): Update call accordingly.
12053 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
12054 function_arg_info instead of a mode, type and named flag.
12055 (tilegx_setup_incoming_varargs): Update call accordingly.
12056 * config/v850/v850.c (v850_function_arg_advance): Take a
12057 function_arg_info instead of a mode, type and named flag.
12058 * config/vax/vax.c (vax_function_arg_advance): Likewise.
12059 * config/visium/visium.c (visium_function_arg_advance): Likewise.
12060 (visium_setup_incoming_varargs): Update call accordingly.
12061 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
12062 function_arg_info instead of a mode, type and named flag.
12063
12064 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12065
12066 * target.def (function_arg, function_incoming_arg): Take a
12067 function_arg_info instead of a mode, tree and named flag.
12068 * doc/tm.texi: Regenerate.
12069 * targhooks.h (default_function_arg): Take a function_arg_info
12070 instead of a mode, tree and named flag.
12071 (default_function_incoming_arg): Likewise.
12072 * targhooks.c (default_function_arg): Likewise.
12073 (default_function_incoming_arg): Likewise.
12074 * calls.h (function_arg_info::end_marker_p): New function.
12075 (function_arg_info::end_marker): Likewise.
12076 * calls.c (prepare_call_address, initialize_argument_information)
12077 (expand_call, emit_library_call_value_1): Update calls to
12078 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
12079 * dse.c: Include calls.h.
12080 (get_call_args): Update call to targetm.calls.function_arg.
12081 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12082 * var-tracking.c (prepare_call_arguments): Likewise.
12083 * function.c (assign_parm_find_entry_rtl): Update call to
12084 targetm.calls.function_incoming_arg.
12085 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
12086 function_arg_info instead of a mode, tree and named flag.
12087 * config/alpha/alpha.c (alpha_function_arg): Likewise.
12088 * config/arc/arc.c (arc_function_arg): Likewise.
12089 * config/arm/arm.c (arm_function_arg): Likewise.
12090 (cmse_func_args_or_return_in_stack): Update call accordingly.
12091 (arm_function_ok_for_sibcall): Likewise.
12092 (cmse_nonsecure_call_clear_caller_saved): Likewise.
12093 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
12094 instead of a mode, tree and named flag.
12095 * config/bfin/bfin.c (bfin_function_arg): Likewise.
12096 * config/c6x/c6x.c (c6x_function_arg): Likewise.
12097 (c6x_call_saved_register_used): Update call accordingly.
12098 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
12099 instead of a mode, tree and named flag.
12100 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
12101 (cris_function_arg_1): Likewise.
12102 * config/csky/csky.c (csky_function_arg): Likewise.
12103 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
12104 * config/fr30/fr30.c (fr30_function_arg): Likewise.
12105 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
12106 (frv_function_arg_1): Likewise.
12107 * config/ft32/ft32.c (ft32_function_arg): Likewise.
12108 * config/gcn/gcn.c (gcn_function_arg): Likewise.
12109 * config/h8300/h8300.c (h8300_function_arg): Likewise.
12110 * config/i386/i386.c (ix86_function_arg): Likewise.
12111 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
12112 (ia64_function_arg_1): Likewise.
12113 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
12114 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
12115 accordingly.
12116 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
12117 instead of a mode, tree and named flag.
12118 * config/m32c/m32c.c (m32c_function_arg): Likewise.
12119 * config/m32r/m32r.c (m32r_function_arg): Likewise.
12120 * config/m68k/m68k.c (m68k_function_arg): Likewise.
12121 * config/mcore/mcore.c (mcore_function_arg): Likewise.
12122 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
12123 (microblaze_expand_prologue): Update call accordingly.
12124 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
12125 instead of a mode, tree and named flag.
12126 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
12127 (mmix_function_arg_1): Likewise.
12128 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
12129 * config/moxie/moxie.c (moxie_function_arg): Likewise.
12130 * config/msp430/msp430.c (msp430_function_arg): Likewise.
12131 * config/nds32/nds32.c (nds32_function_arg): Likewise.
12132 * config/nios2/nios2.c (nios2_function_arg): Likewise.
12133 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
12134 (nvptx_function_incoming_arg): Likewise.
12135 * config/or1k/or1k.c (or1k_function_arg): Likewise.
12136 * config/pa/pa.c (pa_function_arg): Likewise.
12137 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
12138 * config/pru/pru.c (pru_function_arg): Likewise.
12139 * config/riscv/riscv.c (riscv_function_arg): Likewise.
12140 * config/rl78/rl78.c (rl78_function_arg): Likewise.
12141 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
12142 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
12143 (rs6000_parm_needs_stack): Update call accordingly.
12144 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
12145 instead of a mode, tree and named flag.
12146 * config/s390/s390.c (s390_function_arg): Likewise.
12147 (s390_call_saved_register_used): Update call accordingly.
12148 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
12149 instead of a mode, tree and named flag.
12150 (sh_output_mi_thunk): Update call accordingly.
12151 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
12152 (sparc_function_incoming_arg): Take a function_arg_info instead of
12153 a mode, tree and named flag.
12154 * config/spu/spu.c (spu_function_arg): Likewise.
12155 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
12156 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
12157 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
12158 * config/v850/v850.c (v850_function_arg): Likewise.
12159 * config/vax/vax.c (vax_function_arg): Likewise.
12160 * config/visium/visium.c (visium_function_arg): Likewise.
12161 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
12162 (xtensa_function_incoming_arg): Likewise.
12163
12164 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12165
12166 * target.def (setup_incoming_varargs): Take a function_arg_info
12167 instead of a mode and tree.
12168 * doc/tm.texi: Regenerate.
12169 * targhooks.h (default_setup_incoming_varargs): Take a
12170 function_arg_info instead of a mode and tree.
12171 * targhooks.c (default_setup_incoming_varargs): Likewise.
12172 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
12173 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
12174 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
12175 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
12176 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
12177 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
12178 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
12179 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
12180 Likewise.
12181 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
12182 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
12183 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
12184 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
12185 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
12186 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
12187 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
12188 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
12189 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
12190 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
12191 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
12192 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
12193 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
12194 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
12195 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
12196 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
12197 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
12198 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
12199 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
12200 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
12201 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
12202 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
12203 * function.c (assign_parms_setup_varargs): Update call to
12204 targetm.calls.setup_incoming_varargs.
12205
12206 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12207
12208 * target.def (pass_by_reference): Take a function_arg_info instead
12209 of a mode, type and named flag.
12210 * doc/tm.texi: Regenerate.
12211 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
12212 accordingly.
12213 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
12214 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
12215 function_arg_info instead of a mode, type and named flag.
12216 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
12217 * calls.h (pass_by_reference): Take a function_arg_info instead of a
12218 mode, type and named flag.
12219 * calls.c (pass_by_reference): Likewise.
12220 (pass_va_arg_by_reference): Update call accordingly.
12221 (initialize_argument_information): Likewise.
12222 (emit_library_call_value_1): Likewise.
12223 * function.c (assign_parm_find_data_types): Likewise.
12224 * var-tracking.c (prepare_call_arguments): Likewise.
12225 * stor-layout.c: Include calls.h.
12226 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
12227 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
12228 function_arg_info instead of a mode, type and named flag.
12229 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
12230 * config/arc/arc.c (arc_pass_by_reference): Likewise.
12231 * config/arm/arm.c (arm_pass_by_reference): Likewise.
12232 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
12233 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
12234 (c6x_call_saved_register_used): Update call to pass_by_reference.
12235 * config/cris/cris.c (cris_pass_by_reference): Take a
12236 function_arg_info instead of a mode, type and named flag.
12237 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
12238 function_arg_info instead of a mode, type and named flag.
12239 (epiphany_arg_partial_bytes): Update call accordingly.
12240 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
12241 function_arg_info instead of a mode, type and named flag.
12242 (ft32_arg_partial_bytes): Update call accordingly.
12243 * config/i386/i386.c (ix86_pass_by_reference): Take a
12244 function_arg_info instead of a mode, type and named flag.
12245 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
12246 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
12247 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
12248 (m32r_return_in_memory): Update call accordingly.
12249 * config/mips/mips.c (mips_pass_by_reference): Take a
12250 function_arg_info instead of a mode, type and named flag.
12251 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
12252 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
12253 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
12254 (moxie_arg_partial_bytes): Update call accordingly.
12255 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
12256 function_arg_info instead of a mode, type and named flag.
12257 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
12258 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
12259 * config/pa/pa.c (pa_pass_by_reference): Likewise.
12260 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
12261 (riscv_return_in_memory): Update call accordingly.
12262 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
12263 function_arg_info instead of a mode, type and named flag.
12264 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
12265 (rs6000_parm_needs_stack): Update call to pass_by_reference.
12266 * config/s390/s390.c (s390_pass_by_reference): Take a
12267 function_arg_info instead of a mode, type and named flag.
12268 (s390_call_saved_register_used): Update call accordingly.
12269 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
12270 instead of a mode, type and named flag.
12271 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
12272 * config/spu/spu.c (spu_pass_by_reference): Likewise.
12273 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
12274 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
12275 * config/v850/v850.c (v850_pass_by_reference): Likewise.
12276 * config/visium/visium.c (visium_pass_by_reference): Likewise.
12277
12278 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12279
12280 * target.def (arg_partial_bytes): Take a function_arg_info instead
12281 of a mode, type and named flag.
12282 * doc/tm.texi: Regenerate.
12283 * target.h (function_arg_info): Declare.
12284 * calls.h (function_arg_info): New class.
12285 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
12286 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
12287 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
12288 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
12289 * calls.c (initialize_argument_information): Update call to
12290 targetm.calls.partial_bytes.
12291 (emit_library_call_value_1): Likewise.
12292 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12293 * function.c (assign_parm_find_entry_rtl): Likewise.
12294 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
12295 function_arg_info instead of a mode, type and named flag.
12296 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
12297 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
12298 (cmse_func_args_or_return_in_stack): Update accordingly.
12299 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
12300 function_arg_info instead of a mode, type and named flag.
12301 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
12302 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
12303 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
12304 * config/fr30/fr30.c: Include calls.h.
12305 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
12306 type and named flag.
12307 * config/frv/frv.c: Include calls.h.
12308 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
12309 type and named flag.
12310 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
12311 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
12312 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
12313 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
12314 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
12315 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
12316 * config/microblaze/microblaze.c (function_arg_partial_bytes):
12317 Likewise.
12318 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
12319 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
12320 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
12321 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
12322 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
12323 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
12324 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
12325 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
12326 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
12327 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
12328 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
12329 (rs6000_parm_needs_stack): Update call accordingly.
12330 * config/sh/sh.c (sh_arg_partial_bytes): Take a
12331 function_arg_info instead of a mode, type and named flag.
12332 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
12333 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
12334
12335 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12336
12337 * calls.h (must_pass_va_arg_in_stack): Declare.
12338 * calls.c (must_pass_va_arg_in_stack): New function.
12339 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
12340 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
12341 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
12342 Likewise.
12343 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
12344
12345 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12346
12347 * calls.h (pass_va_arg_by_reference): Declare.
12348 * calls.c (pass_va_arg_by_reference): New function.
12349 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
12350 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
12351 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
12352 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
12353 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
12354 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
12355 (mips_gimplify_va_arg_expr): Likewise.
12356 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
12357 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
12358 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
12359 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
12360 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
12361 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
12362 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
12363 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
12364 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
12365 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
12366 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
12367
12368 2019-08-20 Richard Biener <rguenther@suse.de>
12369
12370 PR target/91498
12371 * config/i386/i386-features.c (general_scalar_chain::convert_op):
12372 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
12373 (convert_scalars_to_vector): Add timode_p parameter and use it
12374 to guard TImode-only operation.
12375 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
12376 (pass_stv::execute): Pass down timode_p.
12377
12378 2019-08-20 Lili Cui <lili.cui@intel.com>
12379
12380 * common/config/i386/i386-common.c
12381 (processor_names): Add tigerlake and cooperlake.
12382 (processor_alias_table): Add tigerlake and cooperlake.
12383 * config.gcc: Add -march=tigerlake and cooperlake.
12384 * config/i386/driver-i386.c
12385 (host_detect_local_cpu): Detect tigerlake and cooperlake.
12386 Add "has_avx" to classify processor.
12387 * config/i386/i386-builtins.c (processor_model) :
12388 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
12389 (arch_names_table): Add tigerlake and cooperlake.
12390 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
12391 and PROCESSOR_COOPERLAKE.
12392 * config/i386/i386-c.c
12393 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
12394 * config/i386/i386-options.c
12395 (m_TIGERLAKE): Define.
12396 (m_COOPERLAKE): Ditto.
12397 (m_CORE_AVX512): Ditto.
12398 (processor_cost_table): Add cascadelake.
12399 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
12400 * config/i386/i386.h
12401 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
12402 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
12403 (PTA_MOVDIRI): Ditto.
12404 (PTA_MOVDIR64B): Ditto.
12405 (PTA_COOPERLAKE): Ditto.
12406 (PTA_TIGERLAKE): Ditto.
12407 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
12408 * doc/extend.texi: Add tigerlake and cooperlake.
12409 * doc/invoke.texi: Add tigerlake and cooperlake.
12410
12411 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
12412
12413 * doc/install.texi (Specific, alpha): Remove note to use
12414 binutils 2.11.2 or later.
12415
12416 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12417
12418 PR middle-end/89544
12419 * function.c (assign_parm_find_stack_rtl): Use larger alignment
12420 when possible.
12421
12422 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
12423
12424 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
12425 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
12426 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
12427 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
12428 * config/aarch64/constraints.md (Dt): New constraint
12429 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
12430
12431 2019-08-19 Richard Biener <rguenther@suse.de>
12432
12433 PR tree-optimization/91403
12434 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
12435 cases we can handle with tail-recursion...
12436 (follow_ssa_edge_expr): ... here. Do so.
12437
12438 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
12439
12440 PR target/91441
12441 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
12442 implemented for -fsanitize=kernel-address, and merge check logic
12443 with -fsanitize=address.
12444
12445 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
12446
12447 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
12448 for cpu and machine. Factor 64/32b builtins.
12449
12450 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
12451
12452 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
12453 gone, point to sourceforge.net.
12454
12455 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
12456
12457 * doc/ux.texi (User Experience Guidelines): Update reference.
12458
12459 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
12460
12461 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
12462 not LGPL".
12463
12464 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
12465
12466 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
12467 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
12468
12469 2019-08-16 Martin Sebor <msebor@redhat.com>
12470
12471 * tree.def (TYPE_SIZE): Clarify.
12472 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
12473
12474 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
12475
12476 PR tree-optimization/91109
12477 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
12478 * lra.c (lra): Use lra_need_for_scratch_reg_p.
12479 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
12480
12481 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
12482
12483 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
12484 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
12485 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
12486 (uavg<mode>3_ceil): New expander.
12487 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
12488 mode iterator when creating CONST1_RTX.
12489 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
12490 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
12491 mode iterator for const1_operand predicate.
12492
12493 2019-08-16 Richard Biener <rguenther@suse.de>
12494
12495 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
12496 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
12497 follow_ssa_edge.
12498 (follow_ssa_edge_in_condition_phi_branch): Likewise.
12499 (analyze_evolution_in_loop): Likewise.
12500 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
12501 (follow_ssa_edge_expr): ... here. Refactor code.
12502
12503 2019-08-16 Richard Biener <rguenther@suse.de>
12504
12505 PR target/91469
12506 * config/i386/i386-features.c
12507 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
12508
12509 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12510
12511 PR other/91255
12512 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
12513 only if subst_name matches curr_attr string.
12514
12515 2019-08-16 Richard Biener <rguenther@suse.de>
12516
12517 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
12518 stmt at gsi_p, instead replace it with a NOP removed later.
12519 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
12520 that became dead because of that.
12521
12522 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
12523
12524 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
12525 for which we can't represent a range.
12526 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
12527 set_varying.
12528 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
12529 Set VR_UNDEFINED if type is not supported.
12530 * tree-ssanames.c (get_range_info): Pass type to set_varying.
12531 * tree-vrp.c (value_range_base::check): Assert that a varying has
12532 min/max set.
12533 (value_range_base::equal_p): Early bail for undefines.
12534 (value_range_base::set_varying): Accept a type.
12535 (value_range::set_varying): Same.
12536 (value_range_base::type): VARYING can have a type, while UNDEFINE
12537 is typeless.
12538 (value_range_base::dump): Print type for VARYING nodes.
12539 (value_range_base::set): Add type to VARYING.
12540 (extract_range_from_multiplicative_op): Pass type to set_varying.
12541 (extract_range_from_binary_expr): Same.
12542 (value_range_base::intersect_helper): Same.
12543 (value_range_base::union_helper): Same.
12544 (value_range_base::normalize_symbolics): Same.
12545 (determine_value_range_1): Same.
12546 * tree-vrp.h (class value_range_base): Add type to set_varying.
12547 Add prototype for dump(void).
12548 Add prototype for supports_type_p.
12549 (class value_range): Add type to set_varying.
12550 Add prototype for dump(void).
12551 * vr-values.c (set_value_range_to_truthvalue): Pass type to
12552 set_varying.
12553 (vr_values::get_lattice_entry): Set varying even if propagation
12554 finished.
12555 Pass type to set_varying.
12556 (vr_values::get_value_range): Remove vr_const_varying.
12557 Reallocate the lattice if needed.
12558 (vr_values::update_value_range): Pass type to set_varying.
12559 (vr_values::extract_range_for_var_from_comparison_expr): Same.
12560 (vr_values::extract_range_from_binary_expr): Same.
12561 (vr_values::extract_range_from_unary_expr): Same.
12562 (vr_values::extract_range_from_cond_expr): Same.
12563 (vr_values::check_for_binary_op_overflow): Same.
12564 (vr_values::extract_range_basic): Same.
12565 (vr_values::extract_range_from_assignment): Same.
12566 (vr_values::vr_values): Increase size of num_vr_values.
12567 (vr_values::extract_range_from_phi_node): Pass type to
12568 set_varying.
12569
12570 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
12571
12572 PR target/90878
12573 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
12574 for costs of hard register moves.
12575 (ix86_register_move_cost): Likewise.
12576 * config/i386/i386.h (processor_costs): Move costs of hard
12577 register moves to hard_register. Add int_load, int_store,
12578 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
12579 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
12580 for costs of RTL expressions.
12581 * config/i386/x86-tune-costs.h: Move costs of hard register
12582 moves to hard_register. Duplicate int_load, int_store,
12583 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
12584 sse_load, sse_store for costs of RTL expressions.
12585
12586 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12587
12588 * target.def (setup_incoming_vararg_bounds): Remove.
12589 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
12590 * doc/tm.texi: Regenerate.
12591 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
12592 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
12593 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
12594 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
12595
12596 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12597
12598 MSP430: Fix lines over 80 characters long in
12599 config/msp430/*.{c,h} files
12600
12601 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
12602 specifier in string.
12603 (msp430_select_hwmult_lib): Split line more than 80 characters long.
12604 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
12605 redundant old comment.
12606 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
12607 Split line more than 80 characters long.
12608 * config/msp430/msp430.c (msp430_option_override): Likewise.
12609 (msp430_return_in_memory): Likewise.
12610 (msp430_gimplify_va_arg_expr): Likewise.
12611 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
12612 (msp430_legitimate_constant): Likewise.
12613 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
12614 (msp430_attr): Likewise.
12615 (msp430_data_attr): Likewise.
12616 (msp430_start_function): Likewise.
12617 (gen_prefix): Likewise.
12618 (msp430_init_sections): Likewise.
12619 (msp430_select_section): Likewise.
12620 (msp430_function_section): Likewise.
12621 (msp430_unique_section): Likewise.
12622 (msp430_output_aligned_decl_common): Likewise.
12623 (msp430_do_not_relax_short_jumps): Likewise.
12624 (msp430_init_builtins): Likewise.
12625 (msp430_expand_delay_cycles): Likewise.
12626 (msp430_expand_prologue): Likewise.
12627 (msp430_expand_epilogue): Likewise.
12628 (msp430_expand_helper): Likewise.
12629 (msp430_split_movsi): Likewise.
12630 (msp430_print_operand): Likewise.
12631 (msp430_return_addr_rtx): Likewise.
12632 (msp430x_extendhisi): Likewise.
12633 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
12634 (ASM_SPEC): Likewise.
12635 Remove very obvious comments.
12636 (LIB_SPEC): Split line more than 80 characters long.
12637 (EH_RETURN_HANDLER_RTX): Likewise.
12638 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12639
12640 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12641
12642 MSP430: Fix whitespace errors and incorrect indentation in
12643 config/msp430/*.{c,h} files
12644
12645 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
12646 (msp430_select_hwmult_lib): Likewise.
12647 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
12648 (msp430_extract_mcu_data): Likewise.
12649 (struct t_msp430_mcu_data): Likewise.
12650 * config/msp430/msp430.c (struct machine_function): Remove whitespace
12651 before left square bracket.
12652 (msp430_option_override): Fix indentation.
12653 (msp430_hard_regno_nregs_with_padding): Likewise.
12654 (msp430_initial_elimination_offset): Likewise.
12655 (msp430_special_register_convention_p): Remove whitespace before left
12656 square bracket and after exclamation mark.
12657 (msp430_evaluate_arg): Likewise.
12658 (msp430_callee_copies): Fix indentation.
12659 (msp430_gimplify_va_arg_expr): Likewise.
12660 (msp430_function_arg_advance): Remove whitespace before left square
12661 bracket.
12662 (reg_ok_for_addr): Likewise.
12663 (msp430_preserve_reg_p): Likewise.
12664 (msp430_compute_frame_info): Likewise.
12665 (msp430_asm_output_addr_const_extra): Add space between function name
12666 and open parenthesis.
12667 (has_section_name): Fix indentation.
12668 (msp430_attr): Remove trailing whitespace.
12669 (msp430_section_attr): Likewise.
12670 (msp430_data_attr): Likewise.
12671 (struct msp430_attribute_table): Fix comment and whitespace.
12672 (msp430_start_function): Remove whitespace before left square bracket.
12673 Add space between function name and open parenthesis.
12674 (msp430_select_section): Remove trailing whitespace.
12675 (msp430_section_type_flags): Remove trailing whitespace.
12676 (msp430_unique_section): Remove space before closing parenthesis.
12677 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
12678 (msp430_builtins): Remove whitespace before left square bracket.
12679 (msp430_init_builtins): Fix indentation.
12680 (msp430_expand_prologue): Remove whitespace before left square bracket.
12681 Remove space before closing parenthesis.
12682 (msp430_expand_epilogue): Remove whitespace before left square bracket.
12683 (msp430_split_movsi): Remove space before closing parenthesis.
12684 (helper_function_name_mappings): Fix indentation.
12685 (msp430_use_f5_series_hwmult): Fix whitespace.
12686 (use_32bit_hwmult): Likewise.
12687 (msp430_no_hwmult): Likewise.
12688 (msp430_output_labelref): Remove whitespace before left square bracket.
12689 (msp430_print_operand_raw): Likewise.
12690 (msp430_print_operand_addr): Likewise.
12691 (msp430_print_operand): Add two spaces after '.' in comment.
12692 Fix trailing whitespace.
12693 (msp430x_extendhisi): Fix indentation.
12694 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
12695 tab.
12696 (PC_REGNUM): Likewise.
12697 (STACK_POINTER_REGNUM): Likewise.
12698 (CC_REGNUM): Likewise.
12699
12700 2019-08-15 Richard Biener <rguenther@suse.de>
12701
12702 PR target/91454
12703 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
12704 helper.
12705 (general_scalar_chain::make_vector_copies): Use it.
12706
12707 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
12708
12709 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
12710
12711 2019-08-15 Martin Liska <mliska@suse.cz>
12712
12713 * tree-ssa-dce.c (propagate_necessity): We can't reach now
12714 operators with no arguments.
12715 (eliminate_unnecessary_stmts): Likewise here.
12716
12717 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
12718
12719 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
12720 <case COMPARE>: Revert 2019-08-14 change.
12721 (convertible_comparison_p): Revert 2019-08-14 change. Return false
12722 for (TARGET_64BIT || mode != DImode).
12723
12724 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
12725
12726 * tree-vrp.c (value_range_base::set): Merge in code from
12727 value_range_base::set_and_canonicalize.
12728 Enforce canonicalization at set time.
12729 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
12730 (value_range_base::set_undefined): Inline call to set().
12731 (value_range_base::set_varying): Same.
12732 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
12733 (vrp_val_max): New argument handle_pointers.
12734 (vrp_val_min): Same.
12735 (ranges_from_anti_range): Same.
12736 (extract_range_into_wide_ints): Use tree argument instead of sign
12737 and precision.
12738 (extract_range_from_multiplicative_op): Take in tree type instead
12739 of precision and sign. Adapt function for canonicalized ranges.
12740 (extract_range_from_binary_expr): Pass type to
12741 extract_range_from_multiplicative_op.
12742 Adapt for canonicalized ranges.
12743 (extract_range_from_unary_expr): Same.
12744 (value_range_base::intersect_helper): Adjust for canonicalized
12745 ranges.
12746 (value_range_base::union_helper): Same.
12747 (value_range_base::normalize_symbolics): New.
12748 * tree-vrp.h (class value_range_base): Remove
12749 set_and_canonicalize.
12750 New prototype for normalize_symbolics.
12751 (class value_range): Remove set_and_canonicalize.
12752 (vrp_val_min): Adjust prototype.
12753 (vrp_val_max): Same.
12754 * vr-values.c
12755 (vr_values::extract_range_for_var_from_comparison_expr): Call set
12756 instead of set_and_canonicalize.
12757
12758 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12759
12760 PR middle-end/91444
12761 * tree-vect-stmts.c (vectorizable_call): Check that the function
12762 is a BUILT_IN_MD function before passing it to
12763 targetm.vectorize.builtin_md_vectorized_function.
12764
12765 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12766
12767 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
12768 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
12769 (aarch64_select_early_remat_modes): Use it.
12770
12771 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12772
12773 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
12774 16 for SVE predicates even if they are fixed-length.
12775
12776 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12777
12778 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
12779 operand order match the MOV /Z alias.
12780
12781 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12782
12783 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
12784 the vector pattern as an aarch64_svpattern argument. Update the
12785 overloaded caller accordingly.
12786 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
12787 (aarch64_output_sve_vector_inc_dec): Likewise.
12788
12789 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12790
12791 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
12792 multiplication case, try to compute VG * (lowest set bit) directly
12793 rather than always basing the multiplication on VG. Use
12794 expand_mult for the multiplication if we can.
12795
12796 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12797
12798 * config/aarch64/aarch64-protos.h
12799 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
12800 (aarch64_sve_inc_dec_immediate_p): Rename to...
12801 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
12802 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
12803 (aarch64_output_sve_scalar_inc_dec): Declare.
12804 (aarch64_output_sve_inc_dec_immediate): Rename to...
12805 (aarch64_output_sve_vector_inc_dec): ...this.
12806 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
12807 (aarch64_output_sve_scalar_inc_dec): New functions.
12808 (aarch64_output_sve_addvl_addpl): Remove the base and offset
12809 arguments. Only handle true ADDVL and ADDPL instructions;
12810 don't emit an INC or DEC.
12811 (aarch64_sve_inc_dec_immediate_p): Rename to...
12812 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
12813 (aarch64_output_sve_inc_dec_immediate): Rename to...
12814 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
12815 aarch64_sve_vector_inc_dec_immediate_p.
12816 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
12817 (aarch64_sve_plus_immediate): New predicates.
12818 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
12819 rather than aarch64_sve_addvl_addpl_immediate.
12820 (aarch64_sve_inc_dec_immediate): Rename to...
12821 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
12822 aarch64_sve_vector_inc_dec_immediate_p.
12823 (aarch64_sve_add_operand): Update accordingly.
12824 * config/aarch64/constraints.md (Uai): New constraint.
12825 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
12826 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
12827 operand into a register if it satisfies aarch64_sve_plus_immediate.
12828 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
12829 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
12830 * config/aarch64/aarch64-sve.md (add<mode>3): Call
12831 aarch64_output_sve_vector_inc_dec instead of
12832 aarch64_output_sve_inc_dec_immediate.
12833
12834 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12835
12836 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
12837 (UNSPEC_REVW): New constants.
12838 (elem_bits): New mode attribute.
12839 (SVE_INT_UNARY): New int iterator.
12840 (optab): Handle UNSPEC_REV[BHW].
12841 (sve_int_op): New int attribute.
12842 (min_elem_bits): Handle VNx16QI and the predicate modes.
12843 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
12844 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
12845 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
12846 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
12847 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
12848 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
12849 unspecs based on the total width of the reversed data.
12850 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
12851 reinterpret followed by a subreg on big-endian targets.
12852
12853 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12854 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12855
12856 * config/aarch64/aarch64-sve.md
12857 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
12858 alternatives in which one of the inputs is in the same register
12859 as the output.
12860
12861 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12862
12863 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
12864 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
12865
12866 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12867
12868 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
12869 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
12870
12871 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12872 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12873
12874 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
12875 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
12876 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
12877
12878 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12879 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12880
12881 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
12882 Add an alternative that uses reversed shifts.
12883
12884 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12885
12886 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
12887 struct.
12888
12889 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12890
12891 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
12892 a commutativity marker.
12893
12894 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12895 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12896
12897 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
12898 (aarch64_prepare_sve_cond_int_fma): Declare.
12899 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
12900 (aarch64_prepare_sve_int_fma): New functions.
12901 (aarch64_prepare_sve_cond_int_fma): Likewise.
12902 * config/aarch64/aarch64-sve.md
12903 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
12904 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
12905 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
12906 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
12907 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
12908 (*madd<mode>): Rename to...
12909 (*fma<mode>4): ...this.
12910 (*msub<mode>): Rename to...
12911 (*fnma<mode>4): ...this.
12912
12913 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12914 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12915
12916 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
12917 Print 2.0 naturally.
12918 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
12919 * config/aarch64/predicates.md
12920 (aarch64_sve_float_negated_arith_immediate): New predicate,
12921 renamed from aarch64_sve_float_arith_with_sub_immediate.
12922 (aarch64_sve_float_arith_with_sub_immediate): Test for both
12923 positive and negative constants.
12924 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
12925 or an aarch64_sve_float_arith_with_sub_immediate.
12926 * config/aarch64/constraints.md (vsN): Use
12927 aarch64_sve_float_negated_arith_immediate.
12928 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
12929 iterator.
12930 (sve_pred_fp_rhs2_immediate): New int attribute.
12931 * config/aarch64/aarch64-sve.md
12932 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
12933 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
12934 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
12935 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
12936 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
12937 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
12938
12939 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12940 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12941
12942 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
12943 (*aarch64_cond_abd<SVE_F:mode>_3)
12944 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
12945
12946 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12947 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12948
12949 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
12950 (*aarch64_cond_<su>abd<mode>_any): New patterns.
12951
12952 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12953 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12954
12955 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
12956 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
12957 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
12958 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
12959 optabs.
12960 * optabs.h (create_convert_operand_from): Expand comment.
12961 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
12962 when mapping scalar rtxes to vector operands.
12963 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
12964 ashiftrt and lshiftrt.
12965 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
12966 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
12967 (*cond_<optab><mode>_any_const): New patterns.
12968
12969 2019-08-15 Martin Liska <mliska@suse.cz>
12970
12971 PR ipa/91438
12972 * cgraph.c (cgraph_node::remove): When setting
12973 n->origin = NULL for all nested functions, reset
12974 also next_nested.
12975
12976 2019-08-15 Martin Liska <mliska@suse.cz>
12977
12978 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
12979 and next_nested.
12980
12981 2019-08-15 Martin Liska <mliska@suse.cz>
12982
12983 PR ipa/91404
12984 * passes.c (order): Remove.
12985 (uid_hash_t): Likewise).
12986 (remove_cgraph_node_from_order): Remove from set
12987 of pointers (cgraph_node *).
12988 (insert_cgraph_node_to_order): New.
12989 (duplicate_cgraph_node_to_order): New.
12990 (do_per_function_toporder): Register all 3 cgraph hooks.
12991 Skip removed_nodes now as we know about all of them.
12992
12993 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
12994
12995 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
12996 <case E_V8QImode>: Use vector_set path for
12997 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
12998 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
12999 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13000
13001 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13002
13003 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
13004
13005 2019-08-14 Martin Sebor <msebor@redhat.com>
13006
13007 PR tree-optimization/91294
13008 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
13009 source length as exact.
13010
13011 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
13012
13013 * doc/extend.texi: Add "noinit" attribute documentation.
13014 * doc/sourcebuild.texi: Add noinit effective target documentation.
13015 * varasm.c (default_section_type_flags): Add support for "noinit"
13016 section.
13017 (default_elf_select_section): Add support for "noinit" attribute.
13018 * config/msp430/msp430.c (msp430_attribute_table): Remove
13019 "noinit" entry.
13020
13021 2019-08-14 Richard Biener <rguenther@suse.de>
13022 Uroš Bizjak <ubizjak@gmail.com>
13023
13024 PR target/91154
13025 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
13026 mode arguments.
13027 (scalar_chain::smode): New member.
13028 (scalar_chain::vmode): Likewise.
13029 (dimode_scalar_chain): Rename to...
13030 (general_scalar_chain): ... this.
13031 (general_scalar_chain::general_scalar_chain): Take mode arguments.
13032 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
13033 base with TImode and V1TImode.
13034 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
13035 (general_scalar_chain::vector_const_cost): Adjust for SImode
13036 chains.
13037 (general_scalar_chain::compute_convert_gain): Likewise. Add
13038 {S,U}{MIN,MAX} support.
13039 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
13040 (general_scalar_chain::make_vector_copies): Likewise. Handle
13041 non-DImode chains appropriately.
13042 (general_scalar_chain::convert_reg): Likewise.
13043 (general_scalar_chain::convert_op): Likewise.
13044 (general_scalar_chain::convert_insn): Likewise. Add
13045 fatal_insn_not_found if the result is not recognized.
13046 (convertible_comparison_p): Pass in the scalar mode and use that.
13047 (general_scalar_to_vector_candidate_p): Likewise. Rename from
13048 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
13049 (scalar_to_vector_candidate_p): Remove by inlining into single
13050 caller.
13051 (general_remove_non_convertible_regs): Rename from
13052 dimode_remove_non_convertible_regs.
13053 (remove_non_convertible_regs): Remove by inlining into single caller.
13054 (convert_scalars_to_vector): Handle SImode and DImode chains
13055 in addition to TImode chains.
13056 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
13057 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
13058 (*<maxmin>di3_doubleword): Likewise.
13059
13060 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13061 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13062
13063 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
13064 (*cond_bic<mode>_any): New patterns.
13065
13066 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13067
13068 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
13069 take the equivalent mask, as well as a bit count.
13070 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
13071 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
13072 (aarch64_sve_pred_and_operand): New predicates.
13073 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
13074 code attribute.
13075 * config/aarch64/aarch64-sve.md
13076 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
13077 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
13078
13079 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13080
13081 * config/aarch64/aarch64-sve.md
13082 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
13083 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
13084 New patterns.
13085
13086 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13087 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13088
13089 * config/aarch64/aarch64-sve.md
13090 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
13091 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
13092
13093 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13094 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13095
13096 * config/aarch64/aarch64-sve.md
13097 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
13098 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
13099
13100 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13101
13102 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
13103 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
13104 New pattern.
13105
13106 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13107 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13108
13109 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
13110
13111 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13112 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13113
13114 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
13115 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
13116 (aarch64_print_operand): Add support for %I.
13117 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
13118 Bitcast floating-point constants to the corresponding integer constant.
13119 (aarch64_float_const_representable_p): Handle vectors as well
13120 as scalars.
13121 (aarch64_expand_sve_vcond): Make sure that the operands are valid
13122 for the new vcond_mask_<mode><vpred> expander.
13123 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
13124 test aarch64_float_const_representable_p.
13125 (aarch64_sve_reg_or_dup_imm): New predicate.
13126 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
13127 gen_vcond_mask_<mode><vpred> instead of
13128 gen_aarch64_sve_dup<mode>_const.
13129 (vcond_mask_<mode><vpred>): Turn into a define_expand that
13130 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
13131 for operands 1 and 2 respectively. Force operand 2 into a
13132 register if operand 1 is a register. Fold old define_insn...
13133 (aarch64_sve_dup<mode>_const): ...and this define_insn...
13134 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
13135 floating-point constants that can be moved as integers. Add
13136 alternatives for MOV /M and FMOV /M.
13137 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
13138 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
13139 1 and 2 respectively.
13140 * config/aarch64/constraints.md (Ufc): Handle vectors as well
13141 as scalars.
13142 (vss): New constraint.
13143
13144 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13145
13146 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
13147 (aarch64_sve_float_maxmin_operand): New predicates.
13148 * config/aarch64/constraints.md (vsB): New constraint.
13149 (vsM): Fix typo.
13150 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
13151 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
13152 UNSPEC_COND_FMINNM.
13153 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
13154 Use aarch64_sve_float_maxmin_operand for operand 2.
13155 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
13156 Add alternatives for the constant forms.
13157
13158 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13159
13160 * config/aarch64/constraints.md (vsb): New constraint.
13161 (vsm): Generalize description.
13162 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
13163 iterator.
13164 (sve_imm_con): Handle smax, smin, umax and umin.
13165 (sve_imm_prefix): New code attribute.
13166 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
13167 (aarch64_sve_vsb_operand): New predicates.
13168 (aarch64_sve_mul_immediate): Rename to...
13169 (aarch64_sve_vsm_immediate): ...this.
13170 (aarch64_sve_mul_operand): Rename to...
13171 (aarch64_sve_vsm_operand): ...this.
13172 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
13173 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
13174 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
13175 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
13176 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
13177 add movprfx support for the immediate alternatives.
13178 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
13179 of the above.
13180 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
13181 for operand 3.
13182
13183 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13184
13185 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
13186 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
13187 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
13188
13189 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13190
13191 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
13192 (optab, sve_int_op): Handle them.
13193 * config/aarch64/aarch64-sve.md: Expand comment.
13194
13195 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13196
13197 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
13198 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
13199 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
13200
13201 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13202
13203 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
13204 (aarch64_expand_sve_const_pred_trn): New functions.
13205 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
13206 use the above functions when the parameter is true.
13207 (aarch64_expand_sve_const_pred): Update call accordingly.
13208 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
13209 Rename to...
13210 (@aarch64_sve_<perm_insn><mode>): ...this.
13211
13212 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13213
13214 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
13215 Declare.
13216 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
13217 (aarch64_sve_emit_int_cmp): New functions.
13218 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
13219 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
13220 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
13221 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
13222 (UNSPEC_PRED_Z): New unspec.
13223 (set_clobber_cc_nzc): Delete.
13224 * config/aarch64/aarch64-sve.md: Add a block comment about
13225 UNSPEC_PRED_Z.
13226 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
13227 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
13228 the old pattern with that name. Use UNSPEC_PRED_Z instead of
13229 UNSPEC_MERGE_PTRUE.
13230 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
13231 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
13232 check for compatible predicates.
13233 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
13234 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
13235 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
13236 comparisons above.
13237
13238 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13239
13240 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
13241 * config/aarch64/aarch64-sve.md: Add a section describing it.
13242 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
13243 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
13244 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
13245 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
13246 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
13247 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
13248 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
13249 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
13250 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
13251 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
13252 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
13253 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
13254 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
13255 (aarch64_evpc_rev_local): Update accordingly.
13256
13257 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13258
13259 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
13260 iterators.
13261 (SVE_BHSI, SVE_SDI): Tweak comment.
13262 (SVE_HSDI): Likewise. Fix definition.
13263 (SVE_SDF): New mode iterator.
13264 (elem_bits): New mode attribute.
13265 (SVE_COND_FCVT): New int iterator.
13266 * config/aarch64/aarch64-sve.md
13267 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
13268 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
13269 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
13270 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
13271 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
13272 ...these new patterns.
13273 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
13274 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
13275 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
13276 Merge into...
13277 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
13278 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
13279 ...these new patterns.
13280 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
13281 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
13282 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
13283 ...this new pattern.
13284 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
13285 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
13286 ...this new pattern.
13287 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
13288
13289 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13290
13291 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
13292 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
13293 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
13294 unspecs.
13295 (optab, su): Handle them.
13296 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
13297 * config/aarch64/aarch64-sve.md
13298 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
13299 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
13300 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
13301 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
13302 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
13303 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
13304 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
13305 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
13306 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
13307 FIXUORS.
13308 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
13309 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
13310 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
13311 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
13312 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
13313 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
13314 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
13315 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
13316 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
13317 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
13318 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
13319 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
13320 of UNSPEC_FLOAT_CONVERT.
13321 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
13322 aarch64_sve_extend<mode><Vwide>2.
13323
13324 2019-08-14 Richard Biener <rguenther@suse.de>
13325
13326 PR target/91154
13327 * config/i386/i386-features.c
13328 (dimode_scalar_chain::compute_convert_gain): Compute and dump
13329 individual instruction gain. Fix reg-reg copy GRP cost. Use
13330 ix86_cost->sse_op for vector instruction costs.
13331
13332 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13333
13334 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
13335 (cmp_op): Handle it.
13336 (SVE_COND_FP_CMP): Rename to...
13337 (SVE_COND_FP_CMP_I0): ...this.
13338 (SVE_FP_CMP): Remove.
13339 * config/aarch64/aarch64-sve.md
13340 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
13341 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
13342 using unspecs to represent the comparison.
13343 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
13344 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
13345 accordingly.
13346 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
13347 (aarch64_unspec_cond_code): Move after integer code. Handle
13348 UNORDERED.
13349 (aarch64_emit_sve_predicated_cond): Replace with...
13350 (aarch64_emit_sve_fp_cond): ...this new function.
13351 (aarch64_emit_sve_or_conds): Replace with...
13352 (aarch64_emit_sve_or_fp_conds): ...this new function.
13353 (aarch64_emit_sve_inverted_cond): Replace with...
13354 (aarch64_emit_sve_invert_fp_cond): ...this new function.
13355 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
13356
13357 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13358
13359 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
13360 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
13361 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
13362 SVE_HSD instead of SVE_SD.
13363
13364 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13365 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13366
13367 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
13368 iterator.
13369 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
13370 attributes.
13371 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
13372 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
13373 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
13374 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
13375 (*div<SVE_F:mode>3): Generalize to...
13376 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
13377
13378 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13379 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13380
13381 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
13382 constants.
13383 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
13384 predicate.
13385 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
13386 Declare.
13387 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
13388 function.
13389 * config/aarch64/aarch64-sve.md: Add a block comment about the
13390 handling of predicated FP operations.
13391 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
13392 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
13393 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
13394 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
13395 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
13396 operand.
13397 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
13398 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
13399 operand.
13400 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
13401 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
13402 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
13403 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
13404 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
13405 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
13406 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
13407 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
13408 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
13409 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
13410 strictness operands. Use aarch64_sve_pred_dominates_p to check
13411 whether the predicate on the conditional operation is suitable
13412 for merging. Split patterns into the canonical equal-predicate form.
13413 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
13414 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
13415
13416 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13417 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13418
13419 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
13420 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
13421 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
13422 rtx codes.
13423 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
13424 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
13425 unspecs.
13426
13427 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13428 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13429
13430 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
13431 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
13432 actually has, rather than relying on REG_EQUAL notes.
13433 Make the insn operand order match the SVE operand order.
13434 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
13435 the SVE operand order.
13436
13437 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13438
13439 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
13440 (aarch64_emit_set_immediate): Likewise.
13441 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
13442 (aarch64_pfalse_reg): Likewise.
13443 (aarch64_convert_sve_data_to_pred): New function.
13444 (aarch64_sve_move_pred_via_while): Take an optional target register
13445 and the required register mode.
13446 (aarch64_expand_sve_const_pred_1): New function.
13447 (aarch64_expand_sve_const_pred): Likewise.
13448 (aarch64_expand_mov_immediate): Build an all-true predicate
13449 if the significant bits of the immediate are all true. Use
13450 aarch64_expand_sve_const_pred for all compile-time predicate constants.
13451 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
13452 before register allocation.
13453 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
13454 a VNx16BI PTRUE when splitting the memory alternative.
13455 (vec_duplicate<mode>): Update accordingly.
13456 (*pred_cmp<cmp_op><mode>): Rename to...
13457 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
13458
13459 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13460
13461 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
13462 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
13463 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
13464 (UNSPEC_PTEST): New unspec.
13465 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
13466 * config/aarch64/iterators.md (data_bytes): New mode attribute.
13467 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
13468 * config/aarch64/aarch64-sve.md: Add a new section describing the
13469 handling of UNSPEC_PTEST.
13470 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
13471 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
13472 (ptest_ptrue<mode>): Replace with...
13473 (aarch64_ptest<mode>): ...this new pattern.
13474 (cbranch<mode>4): Update after above changes.
13475 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
13476 UNSPEC_PTEST_PTRUE.
13477 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
13478 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
13479 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
13480
13481 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
13482
13483 PR lto/91287
13484 * builtins.c (builtin_with_linkage_p): New function.
13485 * builtins.h (builtin_with_linkage_p): New function.
13486 * symtab.c (write_symbol): Remove redundant assert.
13487 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
13488 Remove FIXME and use builtin_with_linkage_p.
13489
13490 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13491
13492 PR middle-end/91421
13493 * tree-core.h (function_decl::function_code): Change type to
13494 unsigned int.
13495 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
13496 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
13497 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
13498 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
13499 is BUILT_IN_NORMAL.
13500 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
13501 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
13502 (fndecl_built_in_p): Change the type of the "name" argument to
13503 unsigned int.
13504 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
13505 after check for DECL_BUILT_IN_CLASS.
13506 * cgraphclones.c (build_function_decl_skip_args): Use
13507 set_decl_built_in_function.
13508 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
13509 * ipa-split.c (split_function): Likewise.
13510 * langhooks.c (add_builtin_function_common): Likewise.
13511 * omp-simd-clone.c (simd_clone_create): Likewise.
13512 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
13513 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
13514 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
13515 DECL_FUNCTION_CODE.
13516 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
13517 instead of DECL_FUNCTION_CODE.
13518 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
13519 instead of DECL_FUNCTION_CODE.
13520 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
13521 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
13522 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
13523 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
13524 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
13525 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
13526 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
13527 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
13528 (alpha_gimple_fold_builtin): Likewise.
13529 * config/arc/arc.c (arc_expand_builtin): Likewise.
13530 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
13531 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
13532 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
13533 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
13534 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
13535 * config/frv/frv.c (frv_expand_builtin): Likewise.
13536 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
13537 (gcn_expand_builtin): Likewise.
13538 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
13539 (fold_builtin_cpu): Likewise.
13540 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
13541 * config/i386/i386.c (ix86_fold_builtin): Likewise.
13542 (ix86_gimple_fold_builtin): Likewise.
13543 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
13544 (ia64_expand_builtin): Likewise.
13545 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
13546 * config/mips/mips.c (mips_expand_builtin): Likewise.
13547 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
13548 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
13549 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
13550 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
13551 * config/pa/pa.c (pa_expand_builtin): Likewise.
13552 * config/pru/pru.c (pru_expand_builtin): Likewise.
13553 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
13554 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13555 Likewise.
13556 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
13557 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
13558 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
13559 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
13560 (rs6000_builtin_reciprocal): Likewise.
13561 * config/rx/rx.c (rx_expand_builtin): Likewise.
13562 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
13563 * config/s390/s390.c (s390_expand_builtin): Likewise.
13564 * config/sh/sh.c (sh_expand_builtin): Likewise.
13565 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
13566 (sparc_fold_builtin): Likewise.
13567 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
13568 * config/spu/spu.c (spu_expand_builtin): Likewise.
13569 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
13570 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
13571 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
13572 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
13573 (xtensa_expand_builtin): Likewise.
13574
13575 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13576
13577 PR middle-end/91421
13578 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
13579 before the DECL_FUNCTION_CODE.
13580 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
13581 to check for a BUILT_IN_ALLOCA call.
13582 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
13583 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
13584 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
13585 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
13586 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
13587 for BUILT_IN_NORMAL functions.
13588 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
13589 test for BUILT_IN_TM_ABORT.
13590 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
13591 to check for a BUILT_IN_STACK_RESTORE call.
13592 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
13593 * tree-ssa-threadedge.c
13594 (record_temporary_equivalences_from_stmts_at_dest): Check for a
13595 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
13596 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
13597 test for a BUILT_IN_NORMAL call instead of a negative test for
13598 an internal function call.
13599
13600 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13601
13602 * tree.h (build_vector_a_then_b): Declare.
13603 * tree.c (build_vector_a_then_b): New function.
13604 * fold-const-call.c (fold_while_ult): Likewise.
13605 (fold_const_call): Use it to handle IFN_WHILE_ULT.
13606 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
13607 (aarch64_svpattern): New enum.
13608 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
13609 constants through aarch64_expand_mov_immediate.
13610 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
13611 than general_operand as the predicate for operand 1.
13612 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
13613 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
13614 insn_type.
13615 (simd_immediate_info::simd_immediate_info): New overload that
13616 takes a scalar_int_mode and an svpattern.
13617 (simd_immediate_info::u): Add a "pattern" field.
13618 (svpattern_token): New function.
13619 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
13620 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
13621 (aarch64_sve_move_pred_via_while): New functions.
13622 (aarch64_expand_mov_immediate): Try using
13623 aarch64_sve_move_pred_via_while for predicates that contain N ones
13624 followed by M zeros but that do not correspond to a VLnnn pattern.
13625 (aarch64_sve_pred_valid_immediate): New function.
13626 (aarch64_simd_valid_immediate): Use it instead of dealing directly
13627 with PTRUE and PFALSE.
13628 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
13629 forms.
13630
13631 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
13632
13633 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
13634 flag.
13635 (darwin_override_options): Likewise.
13636 * config/darwin.h: Likewise.
13637 * config/darwin.opt: Likewise.
13638 * config/i386/i386.c (output_pic_addr_const): Likewise.
13639 * config/rs6000/darwin.h: Likewise.
13640 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
13641 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
13642 ... this TARGET_MACHO_SYMBOL_STUBS.
13643 (FUNCTION_PROFILER):Likewise.
13644 * config/i386/i386.h: Likewise.
13645
13646 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
13647
13648 * config/i386/i386-expand.c (ix86_expand_vector_extract)
13649 <case E_V2SImode>: Use vec_extr path for
13650 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13651 <case E_V8QImode>: Ditto.
13652 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
13653 Use SWI48 mode iterator. Use %k to output operand 0.
13654 (*mmx_pextrw): New insn pattern.
13655 (*mmx_pextrb): Ditto.
13656 (*mmx_pextrb_zext): Ditto.
13657
13658 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
13659
13660 * target.def (libc_has_function, libc_has_fast_function): Improve
13661 documentation strings.
13662 * doc/tm.texi: Regenerate.
13663
13664 2019-08-13 Caroline Tice <cmtice@google.com>
13665
13666 PR other/91396
13667 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
13668 vtv_end.o or vtv_end_preinit.o files if !static.
13669
13670 2019-08-13 Olivier Hainque <hainque@adacore.com>
13671
13672 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
13673
13674 2019-08-13 Olivier Hainque <hainque@adacore.com>
13675
13676 * rtlanal.c (tablejump_casesi_pattern): New function, to
13677 determine if a tablejump insn is a casesi dispatcher. Extracted
13678 from patch_jump_insn.
13679 * rtl.h (tablejump_casesi_pattern): Declare.
13680 * cfgrtl.c (patch_jump_insn): Use it.
13681 * dwarf2cfi.c (create_trace_edges): Use it.
13682
13683 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
13684
13685 PR target/81800
13686 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
13687 operand is larger than a long int.
13688
13689 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13690
13691 * machmode.h (opt_mode::else_mode): New function.
13692 (opt_mode::else_blk): Use it.
13693 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
13694 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
13695 (aarch64_gen_stepped_int_parallel): Likewise.
13696 (aarch64_stepped_int_parallel_p): Likewise.
13697 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
13698 argument.
13699 * config/aarch64/aarch64.c
13700 (aarch64_expand_sve_widened_duplicate): Delete.
13701 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
13702 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
13703 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
13704 argument. Use early returns in the !CONST_INT_P handling.
13705 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
13706 than handling some inline.
13707 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
13708 from...
13709 (aarch64_simd_container_mode): ...here.
13710 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
13711 (aarch64_sve_ld1rq_operand_p): New functions.
13712 * config/aarch64/predicates.md (descending_int_parallel)
13713 (aarch64_sve_ld1rq_operand): New predicates.
13714 * config/aarch64/constraints.md (UtQ): New constraint.
13715 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
13716 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
13717 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
13718 (@aarch64_sve_reinterpret<mode>): New expander.
13719 (*aarch64_sve_reinterpret<mode>): New pattern.
13720 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
13721 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
13722 (*sve_ld1rq<Vesize>): Replace with...
13723 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
13724
13725 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
13726
13727 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
13728 16:12.
13729
13730 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13731
13732 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
13733 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
13734 (msp430_check_path_for_devices): New.
13735 (parse_devices_csv_1): New.
13736 (parse_devices_csv): New.
13737 (msp430_extract_mcu_data): Try to find devices.csv and search for the
13738 MCU data in devices.csv before using the hard-coded data.
13739 Warn if devices.csv isn't found and the MCU wasn't found in the
13740 hard-coded data either.
13741 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
13742 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
13743 Search for devices.csv on -I and -L paths.
13744 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
13745 msp430_set_driver_var.
13746 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
13747 -mdevices-csv-loc=.
13748 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
13749 searched for devices.csv.
13750 (mwarn-devices-csv): Document option.
13751
13752 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13753
13754 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
13755 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
13756 Use a single Dn alternative instead of separate Dz and Dm
13757 alternatives. Use aarch64_output_sve_move_immediate.
13758 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
13759 function.
13760 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
13761 for predicates too.
13762 (aarch64_output_sve_mov_immediate): Handle predicate modes.
13763 (aarch64_output_ptrue): Delete.
13764
13765 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13766
13767 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
13768 INDEX.
13769 (simd_immediate_info::value, simd_immediate_info::step)
13770 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
13771 with...
13772 (simd_immediate_info::u): ...this new union.
13773 (simd_immediate_info::simd_immediate_info): Update accordingly.
13774 (aarch64_output_simd_mov_immediate): Likewise.
13775 (aarch64_output_sve_mov_immediate): Likewise.
13776
13777 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13778
13779 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
13780 extra_gcc_objs.
13781 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
13782 (msp430_select_cpu): New spec function.
13783 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
13784 MCU data.
13785 * config/msp430/msp430-devices.c: New file.
13786 * config/msp430/msp430-devices.h: New file.
13787 * config/msp430/msp430.c: Remove msp430_mcu_data.
13788 (msp430_option_override): Use msp430_extract_mcu_data to extract
13789 MCU data.
13790 (msp430_use_f5_series_hwmult): Likewise.
13791 (use_32bit_hwmult): Likewise.
13792 (msp430_no_hwmult): Likewise.
13793 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
13794 assembler.
13795 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
13796 and -mcpu option.
13797 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
13798 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
13799 Remove hard-coded MCU multilib data.
13800
13801 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13802
13803 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
13804 based on the mode instead of testing properties of it.
13805
13806 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13807
13808 * doc/md.texi: Document the x and y constraints for AArch64.
13809 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
13810 (FP_LO8_REGS): New reg_class.
13811 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
13812 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
13813 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
13814 * config/aarch64/predicates.md (aarch64_simd_register): Use
13815 FP_REGNUM_P instead of checking the classes manually.
13816 * config/aarch64/constraints.md (y): New constraint.
13817
13818 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13819
13820 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
13821 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
13822 * config/aarch64/aarch64-simd.md
13823 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
13824 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
13825 from the asm template.
13826 * config/aarch64/aarch64-sve.md
13827 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
13828 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
13829 from the asm template.
13830 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
13831 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
13832 from the asm template.
13833 * config/aarch64/aarch64-simd-builtins.def: Update comment.
13834
13835 2019-08-13 Martin Liska <mliska@suse.cz>
13836
13837 * value-prof.c (gimple_ic_transform): Add new line.
13838 Print details with MSG_NOTE.
13839
13840 2019-08-13 Martin Liska <mliska@suse.cz>
13841
13842 * doc/invoke.texi: Document automatic detection of jobserver.
13843 * lto-wrapper.c (run_gcc): Detect jobserver always.
13844
13845 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
13846
13847 * config/i386/i386-expand.c (ix86_expand_vector_set)
13848 <case E_V2SImode>: Use vec_merge path for
13849 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13850 <case E_V8QImode>: Ditto.
13851 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
13852 (*mmx_pinsrb): Ditto.
13853
13854 2019-08-12 Jakub Jelinek <jakub@redhat.com>
13855
13856 PR target/83250
13857 PR target/91340
13858 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
13859 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
13860 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
13861 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
13862 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
13863
13864 2019-08-12 Richard Biener <rguenther@suse.de>
13865
13866 PR lto/91375
13867 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
13868 flag_devirtualize.
13869
13870 2019-08-12 Richard Biener <rguenther@suse.de>
13871
13872 PR driver/91130
13873 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
13874 lang_mask option, always use CL_DRIVER.
13875 (get_options_from_collect_gcc_options): Adjust.
13876 (find_and_merge_options): Likewise.
13877 (run_gcc): Likewise.
13878
13879 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13880
13881 * ipa-predicate.c (add_condition): Restore inverted test.
13882
13883 2019-08-10 Jakub Jelinek <jakub@redhat.com>
13884
13885 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
13886 (enum omp_clause_device_type_kind): New enum.
13887 (struct tree_omp_clause): Add subcode.device_type_kind.
13888 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
13889 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
13890 for device_type clause.
13891 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
13892 * tree-pretty-print.c (dump_omp_clause): Likewise.
13893
13894 PR target/91408
13895 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
13896 vector_operand.
13897
13898 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
13899
13900 * reload1.c (finish_spills): Do not check ira_conflicts_p when
13901 handling spilled pseudos.
13902
13903 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
13904
13905 PR target/91386
13906 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
13907 to preserve the contents of the original insns.
13908
13909 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
13910
13911 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
13912 (addsi3_compare_op2): Likewise.
13913
13914 2019-08-09 Martin Liska <mliska@suse.cz>
13915
13916 * alias.c (alias_ptr_types_compatible_p): Strengten
13917 type comparison in LTO mode.
13918
13919 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
13920
13921 PR middle-end/90313
13922 * tree-tailcall.c (find_tail_calls): Reject calls that might
13923 read from an escaped RESULT_DECL.
13924
13925 2019-08-09 Martin Liska <mliska@suse.cz>
13926
13927 * doc/invoke.texi: Document the option value.
13928 * lto-wrapper.c (run_gcc): Set auto_parallel
13929 only with -flto=auto.
13930
13931 2019-08-09 Martin Liska <mliska@suse.cz>
13932
13933 * opts.c (common_handle_option): Error for an invalid argument
13934 to -flto=.
13935
13936 2019-08-09 Martin Liska <mliska@suse.cz>
13937
13938 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
13939 use dump_printf to report optimization.
13940 (sem_variable::merge): Likwise.
13941 (sem_item_optimizer::merge_classes): Use dump_printf to report
13942 ICF hits.
13943
13944 2019-08-09 Martin Liska <mliska@suse.cz>
13945
13946 * value-prof.c (gimple_divmod_fixed_value_transform):
13947 Use dump_printf_loc.
13948 (gimple_mod_pow2_value_transform): Likewise.
13949 (gimple_mod_subtract_transform): Likewise.
13950 (init_node_map): Likewise.
13951 (gimple_ic_transform): Likewise.
13952 (gimple_stringops_transform): Likewise.
13953
13954 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
13955
13956 * doc/extend.texi: Add const qualifier to ld intrinsics.
13957
13958 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
13959
13960 * config/rs6000/dfp.md (D64_D128): Rename to ...
13961 (DDTD): ... this, throughout.
13962 (dfp_suffix): Rename to ...
13963 (q): ... this, throughout.
13964
13965 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
13966
13967 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
13968 (dfp_suffix): Ditto.
13969 (adddd3, addtd3): Merge to ...
13970 (add<mode>3 for D64_D128): ... this.
13971 (subdd3, subtd3): Merge to ...
13972 (sub<mode>3 for D64_D128): ... this.
13973 (muldd3, multd3): Merge to ...
13974 (mul<mode>3 for D64_D128): ... this.
13975 (divdd3, divtd3): Merge to ...
13976 (div<mode>3 for D64_D128): ... this.
13977 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
13978 (*cmp<mode>_internal1 for D64_D128): ... this.
13979 (ftruncdd2, ftrunctd2): Merge to ...
13980 (ftrunc<mode>2 for D64_D128): ... this.
13981 (fixdddi2, fixtddi2): Merge to ...
13982 (fix<mode>di2 for D64_D128): ... this.
13983
13984 2019-08-08 Jim Wilson <jimw@sifive.com>
13985
13986 PR target/91229
13987 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
13988 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
13989 Pass into recursive call.
13990 (riscv_flatten_aggregate_argument): New arg. Pass to
13991 riscv_flatten_aggregate_field.
13992 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
13993 riscv_flatten_aggregate_argument twice, with false and true as last
13994 arg. Process result twice. Compare results and warn if different.
13995 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
13996
13997 2019-08-08 Martin Liska <mliska@suse.cz>
13998
13999 PR bootstrap/91352
14000 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
14001 * lto-wrapper.c (jobserver_active_p): Likewise.
14002
14003 2019-08-08 Martin Liska <mliska@suse.cz>
14004
14005 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
14006 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
14007 (create_version_clone_with_body): Likewise.
14008
14009 2019-08-08 Jakub Jelinek <jakub@redhat.com>
14010
14011 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
14012 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
14013 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
14014 GOVD_EXPLICIT flags.
14015 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
14016 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
14017 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
14018 call install_var_field with mask 11 instead of 3.
14019 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
14020 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
14021
14022 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14023
14024 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
14025 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
14026
14027 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14028
14029 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
14030 MOVPRFX alternatives. Make the GPR alternatives more expensive
14031 than the FPR ones.
14032
14033 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14034
14035 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
14036 Disparage the GPR alternative relative to the FPR one.
14037 Fix handling of 8-bit and 16-bit FPR values.
14038
14039 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14040
14041 * config/aarch64/iterators.md (BITWISEV): Delete.
14042 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
14043 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
14044 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
14045 UNSPEC_FMINNMV, UNSPEC_FMINV.
14046 (bit_reduc_op): Delete.
14047 (sve_int_op): New int attribute.
14048 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
14049 UNSPEC_FMINNMV, UNSPEC_FMINV.
14050 * config/aarch64/aarch64-sve.md
14051 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
14052 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
14053 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
14054 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
14055 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
14056 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
14057 new patterns.
14058 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
14059 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
14060 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
14061 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
14062 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
14063 new patterns.
14064
14065 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14066
14067 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
14068 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
14069 (fms<mode>4, *fms<mode>4): Replace with...
14070 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
14071 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
14072 Use unspecs instead of rtx codes.
14073 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
14074 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
14075
14076 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14077
14078 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
14079 int iterator.
14080 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
14081 * config/aarch64/aarch64-sve.md
14082 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
14083 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
14084 use a single unspec for the rhs.
14085 (*<su><maxmin><mode>3): Delete.
14086 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
14087
14088 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14089
14090 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
14091 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
14092 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
14093 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
14094 (optab, sve_fp_op): Handle them.
14095 (SVE_FP_UNARY): Delete.
14096 (optab): Remove sqrt entry.
14097 (sve_fp_op): Remove neg, abs and sqrt entries.
14098 (SVE_COND_FP_UNARY): New int iterator.
14099 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
14100 (*<frint_pattern><mode>2): Delete.
14101 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
14102 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
14103 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
14104 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
14105
14106 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14107
14108 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
14109
14110 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14111
14112 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
14113 (UNSPEC_COND_FADD): ...this.
14114 (UNSPEC_COND_SUB): Rename to...
14115 (UNSPEC_COND_FSUB): ...this.
14116 (UNSPEC_COND_MUL): Rename to...
14117 (UNSPEC_COND_FMUL): ...this.
14118 (UNSPEC_COND_DIV): Rename to...
14119 (UNSPEC_COND_FDIV): ...this.
14120 (UNSPEC_COND_MAX): Rename to...
14121 (UNSPEC_COND_FMAXNM): ...this.
14122 (UNSPEC_COND_MIN): Rename to...
14123 (UNSPEC_COND_FMINNM): ...this.
14124 (UNSPEC_COND_LT): Rename to...
14125 (UNSPEC_COND_FCMLT): ...this.
14126 (UNSPEC_COND_LE): Rename to...
14127 (UNSPEC_COND_FCMLE): ...this.
14128 (UNSPEC_COND_EQ): Rename to...
14129 (UNSPEC_COND_FCMEQ): ...this.
14130 (UNSPEC_COND_NE): Rename to...
14131 (UNSPEC_COND_FCMNE): ...this.
14132 (UNSPEC_COND_GE): Rename to...
14133 (UNSPEC_COND_FCMGE): ...this.
14134 (UNSPEC_COND_GT): Rename to...
14135 (UNSPEC_COND_FCMGT): ...this.
14136 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
14137 (sve_fp_op_rev): Update accordingly.
14138 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
14139
14140 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14141
14142 * config/aarch64/aarch64-sve.md: Reorganize contents and add
14143 banner comments.
14144 * config/aarch64/check-sve-md.awk: New file.
14145 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
14146 (insn-conditions.md): Depend on it.
14147
14148 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
14149
14150 PR target/91385
14151 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
14152 (*negsi2_cmpz_zext): Ditto.
14153
14154 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14155
14156 * config/aarch64/iterators.md (commutative): Remove.
14157
14158 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
14159
14160 PR driver/91130
14161 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
14162 processing COLLECT_GCC_OPTIONS.
14163 (run_gcc): Likewise.
14164
14165 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14166
14167 PR tree-optimization/91109
14168 * lra-remat.c (update_scratch_ops): Remove assignment of the
14169 hard register.
14170
14171 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14172
14173 * data-streamer.h (streamer_write_poly_uint64): Declare.
14174 (streamer_read_poly_uint64): Likewise.
14175 * data-streamer-in.c (streamer_read_poly_uint64): New function.
14176 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
14177 * ipa-predicate.h (condition::size): Turn into a poly_int64.
14178 (add_condition): Take a poly_int64 size.
14179 * ipa-predicate.c (add_condition): Likewise.
14180 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
14181 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
14182 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
14183 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
14184 condition::size as a poly_int64.
14185 (unmodified_parm_1): Take a poly_int64 size pointer.
14186 (unmodified_parm): Likewise.
14187 (unmodified_parm_or_parm_agg_item): Likewise.
14188 (set_cond_stmt_execution_predicate): Update accordingly.
14189 (set_switch_stmt_execution_predicate): Likewise.
14190 (will_be_nonconstant_expr_predicate): Likewise.
14191 (will_be_nonconstant_predicate): Likewise.
14192 (inline_read_section): Stream condition::size as a poly_int.
14193 (ipa_fn_summary_write): Likewise.
14194
14195 2019-08-07 Martin Liska <mliska@suse.cz>
14196
14197 * fold-const.c (twoval_comparison_p): Replace int
14198 with bool as a return type.
14199 (simple_operand_p): Likewise.
14200 (operand_equal_p): Replace int with bool as a return type.
14201 * fold-const.h (operand_equal_p): Likewise.
14202
14203 2019-08-07 Jakub Jelinek <jakub@redhat.com>
14204
14205 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
14206 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
14207 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
14208 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
14209 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
14210 * tree-pretty-print.c (dump_omp_clause): Likewise.
14211 * tree-nested.c (convert_nonlocal_omp_clauses,
14212 convert_local_omp_clauses): Likewise.
14213 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
14214 Likewise.
14215 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
14216 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
14217 clause with array or reference to array types, no matter what type
14218 except for reference it has.
14219
14220 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
14221
14222 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
14223
14224 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
14225
14226 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
14227 (arch_canonicalize): Support rv32g and rv64g and fix error
14228 handling.
14229
14230 2019-08-06 Martin Liska <mliska@suse.cz>
14231
14232 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
14233 and DECL_IS_OPERATOR_DELETE_P.
14234
14235 2019-08-06 Jakub Jelinek <jakub@redhat.com>
14236
14237 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
14238 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
14239 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
14240 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
14241 (gimplify_omp_for): Don't do C++ random access iterator clause
14242 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
14243 don't predetermine the artificial iterator in case of C++ random
14244 access iterators as lastprivate, but private. For OMP_LOOP, force
14245 bind expr around simd body and force for_pre_body before the
14246 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
14247 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
14248 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
14249 diff var of C++ random access iterators. Handle
14250 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
14251 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
14252 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
14253 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
14254 * omp-low.c (lower_rec_input_clauses): For
14255 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
14256 variables instead of default constructing them.
14257 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
14258 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
14259 is_taskloop_ctx check from the assert to the guarding condition.
14260
14261 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
14262
14263 * config/riscv/multilib-generator: (canonical_order): New.
14264 (arch_canonicalize): Dito.
14265 Apply arch_canonicalize for alts.
14266
14267 2019-08-05 Martin Sebor <msebor@redhat.com>
14268
14269 * doc/extend.texi (Common Variable Attributes): Document alias
14270 attribute.
14271
14272 2019-08-05 Marek Polacek <polacek@redhat.com>
14273
14274 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
14275 * doc/invoke.texi: Document -Wcomma-subscript.
14276
14277 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14278
14279 * tree-core.h (tree_function_decl): Make function_code an
14280 independent field. Group the remaining bitfields into bytes
14281 and move decl_type so that it contines to be at a byte boundary.
14282 Leave 12 bits for future expansion.
14283
14284 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14285
14286 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
14287 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
14288 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
14289 IFN_MASK_STORE.
14290
14291 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14292
14293 * gimple.h (gimple_move_vops): Declare.
14294 * gimple.c (gimple_move_vops): New function
14295 * gimple-fold.c (replace_call_with_call_and_fold)
14296 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
14297 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
14298 (gimple_fold_call): Use it.
14299 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
14300 * tree-call-cdce.c (use_internal_fn): Likewise.
14301 * tree-if-conv.c (predicate_load_or_store): Likewise.
14302 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
14303 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
14304 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
14305 (update_call_from_tree): Likewise.
14306 * tree-vect-stmts.c (vectorizable_load): Likewise.
14307 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
14308
14309 2019-08-05 Martin Liska <mliska@suse.cz>
14310
14311 PR c++/91334
14312 * tree-ssa-dce.c (propagate_necessity): Handle new operators
14313 with not arguments.
14314 (eliminate_unnecessary_stmts): Likewise.
14315
14316 2019-08-05 Richard Biener <rguenther@suse.de>
14317
14318 PR middle-end/91169
14319 * fold-const.c (get_array_ctor_element_at_index): Create
14320 offset_ints according to the sign of the index type and treat
14321 that as signed if it is obviously so.
14322
14323 2019-08-05 Jakub Jelinek <jakub@redhat.com>
14324
14325 PR target/91341
14326 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
14327 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
14328 _mm256_storeu2_m128i): New function.
14329
14330 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
14331
14332 * config/riscv/riscv.c (riscv_promote_function_mode): New.
14333 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
14334
14335 2019-08-05 Alan Modra <amodra@gmail.com>
14336
14337 PR target/91349
14338 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
14339 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
14340
14341 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
14342
14343 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
14344 bug that was fixed in Tcl 8.6.1.
14345
14346 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
14347
14348 * config/rs6000/future.md: New file.
14349 * config/rs6000/rs6000.md: Include future.md.
14350 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
14351
14352 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14353
14354 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
14355 check to use targetm.slow_unaligned_access instead.
14356
14357 * function.c (assign_param_data_one): Remove unused data members.
14358
14359 2019-08-02 Steve Ellcey <sellcey@marvell.com>
14360
14361 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
14362 build_distinct_type_copy.
14363 (simd_clone_adjust_argument_types): Ditto.
14364 (simd_clone_adjust): Call build_distinct_type_copy here.
14365 (expand_simd_clones): Ditto.
14366
14367 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
14368
14369 PR target/91201
14370 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
14371
14372 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
14373
14374 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
14375 from 'const void *'.
14376 (sort_locs_in_loop_postorder_cmp): Likewise.
14377
14378 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
14379
14380 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
14381 (hot-bb-count-ws-permille): Likewise.
14382 (hot-bb-frequency-fraction): Likewise.
14383 (unlikely-bb-count-fraction): Likewise.
14384 * params.def (hot-bb-count-fraction): Rework description.
14385 (hot-bb-count-ws-permille): Likewise.
14386 (hot-bb-frequency-fraction): Likewise.
14387 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
14388 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
14389
14390 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
14391
14392 PR target/91323
14393 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
14394 Return false.
14395
14396 2019-08-02 Richard Biener <rguenther@suse.de>
14397
14398 * vec.h (vec::sort): Add gcc_qsort_r support.
14399 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
14400 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
14401 to gcc_qsort_r style callback.
14402 (sort_locs_in_loop_postorder_cmp): Likewise.
14403 (analyze_memory_references): Use gcc_sort_r interfaces.
14404 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
14405
14406 2019-08-02 Martin Liska <mliska@suse.cz>
14407
14408 PR lto/91313
14409 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
14410 to detect working job server.
14411 (driver::detect_jobserver): Test whether jobserver
14412 is active from GCC driver. That will prevent situation where
14413 GCC is invoked from a LD plugin and the linker already uses
14414 file descriptors suggested by make. That leads to a wrong
14415 detection.
14416 * gcc.h (driver): Add detect_jobserver.
14417 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
14418 not scanning for --jobserver-auth prefix.
14419
14420 2019-08-02 Jakub Jelinek <jakub@redhat.com>
14421
14422 PR tree-optimization/91201
14423 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
14424 V16QImode extraction without sse4.1 try to use V4SImode lowpart
14425 extraction.
14426
14427 2019-08-01 Martin Sebor <msebor@redhat.com>
14428
14429 PR c++/90947
14430 * tree.c (type_initializer_zero_p): Define.
14431 * tree.h (type_initializer_zero_p): New function.
14432
14433 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
14434
14435 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
14436
14437 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
14438
14439 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
14440 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
14441 * predict.c (maybe_hot_count_p): Likewise.
14442 (maybe_hot_bb_p): Tweak comment.
14443 (maybe_hot_edge_p): Likewise.
14444 (probably_never_executed): Likewise. Minor tweak.
14445 (probably_never_executed_bb_p): Likewise.
14446 (unlikely_executed_edge_p): Likewise.
14447 (probably_never_executed_edge_p): Likewise.
14448 (optimize_function_for_size_p): Likewise.
14449 (optimize_function_for_speed_p): Likewise.
14450 (function_optimization_type): Likewise.
14451 (optimize_bb_for_size_p): Likewise.
14452 (optimize_bb_for_speed_p): Likewise.
14453 (bb_optimization_type): Likewise.
14454 (optimize_edge_for_size_p): Likewise.
14455 (optimize_edge_for_speed_p): Likewise.
14456 (optimize_insn_for_size_p): Likewise.
14457 (optimize_insn_for_speed_p): Likewise.
14458 (optimize_loop_for_size_p): Likewise.
14459 (optimize_loop_for_speed_p): Likewise.
14460 (optimize_loop_nest_for_speed_p): Likewise.
14461 (optimize_loop_nest_for_size_p): Likewise.
14462 (predictable_edge_p): Likewise.
14463 (handle_missing_profiles): Minor tweak.
14464
14465 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
14466
14467 * config/rs6000/predicates.md (pcrel_external_address): Update
14468 comment.
14469
14470 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
14471
14472 PR target/85693
14473 * config/i386/mmx.md (usadv8qi): New expander.
14474
14475 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
14476
14477 PR c++/90590
14478 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
14479 with reserved names that are in a system header.
14480
14481 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
14482
14483 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
14484 (*vec_extractv2si_0_zext_sse4): New insn pattern.
14485 (*vec_extractv2si_0_zext): Ditto.
14486 (*vec_extractv2si_1): Add (rm,x) alternative.
14487 (*vec_extractv2si_1_zext): New insn pattern.
14488 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
14489 insn constraint.
14490
14491 2019-08-01 Richard Biener <rguenther@suse.de>
14492
14493 * domwalk.c (bb_postorder): Remove static variable.
14494 (cmp_bb_postorder): Adjust.
14495 (sort_bbs_postorder): Adjust and use gcc_sort_r.
14496 (dom_walker::walk): Adjust.
14497
14498 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
14499
14500 * sort.cc (sort_r_ctx): New struct.
14501 (reorder23): Make templated on context type.
14502 (reorder45): Ditto.
14503 (cmp1): Ditto. Adjust signature.
14504 (netsort): Ditto.
14505 (mergesort): Ditto.
14506 [CHECKING_P] (cmp2to3): New static function. Use it...
14507 (gcc_qsort) [CHECKING_P]: ...here.
14508 (gcc_sort_r): New function.
14509 * system.h (sort_r_cmp_fn): New function typedef.
14510 (qsort_chk): Adjust signature.
14511 (gcc_sort_r): Declare.
14512 * vec.c (qsort_chk_error): Adjust.
14513 (qsort_chk): Adjust.
14514
14515 2019-08-01 Richard Biener <rguenther@suse.de>
14516
14517 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
14518 (compute_antic): Localize it here.
14519
14520 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
14521
14522 * common/config/riscv/riscv-common.c: Check -march string ends
14523 with null.
14524
14525 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
14526
14527 * ipa-devirt.c (type_warning_cmp): Make static.
14528 (decl_warning_cmp): Ditto.
14529
14530 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
14531
14532 PR target/91050
14533 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
14534 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
14535 use of deleted rs6000_dejagnu_cpu_index variable.
14536 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
14537 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
14538 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
14539 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
14540 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
14541 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
14542
14543 2019-07-31 Richard Biener <rguenther@suse.de>
14544
14545 PR tree-optimization/91280
14546 * tree-ssa-structalias.c (get_constraint_for_component_ref):
14547 Decompose MEM_REF manually for offset handling.
14548
14549 2019-07-31 Richard Biener <rguenther@suse.de>
14550
14551 PR tree-optimization/91293
14552 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
14553 of reduction stmts.
14554
14555 2019-07-31 Matt Thomas <matt@3am-software.com>
14556 Nick Hudson <nick@nthcliff.demon.co.uk>
14557 Matthew Green <mrg@eterna.com.au>
14558 Maya Rashish <coypu@sdf.org>
14559
14560 * config.gcc (hppa*-*-netbsd*): New target.
14561 * config/pa/pa-netbsd.h: New file.
14562 * config/pa/pa32-netbsd.h: New file.
14563
14564 2019-07-31 Jakub Jelinek <jakub@redhat.com>
14565
14566 PR tree-optimization/91201
14567 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
14568
14569 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
14570
14571 * config/gcn/gcn-valu.md
14572 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
14573 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
14574 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
14575 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
14576 struct ilist. Add nops for delayeduse insns.
14577 * config/gcn/gcn.md (delayeduse): New attribute.
14578 (*movbi): Remove s_waitcnt from stores.
14579 (*mov<mode>_insn): Likewise.
14580 (*movti_insn): Likewise. Add delayeduse attribute.
14581 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
14582 (atomic_store<mode>): Remove or adjust s_waitcnt.
14583
14584 2019-07-31 Richard Biener <rguenther@suse.de>
14585
14586 * vr-values.h (vr_values::swap_vr_value): New.
14587 (vr_values::free_value_range): likewise.
14588 * vr-values.c (vr_values::swap_vr_value): Implement.
14589 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
14590 Do not return a range or take a var.
14591 (evrp_range_analyzer::stack): Change back to recording a non-const
14592 value_range *.
14593 * gimple-ssa-evrp-analyze.c
14594 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
14595 value-range.
14596 (evrp_range_analyzer::pop_to_marker): Adjust.
14597 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
14598 (evrp_range_analyzer::pop_value_range): Likewise. Free the
14599 no longer needed value-range.
14600
14601 2019-07-31 Martin Liska <mliska@suse.cz>
14602
14603 * tree-ssa-dce.c (propagate_necessity): Delete operator can
14604 have size and (or) alignment as 2nd and later arguments.
14605 Mark all of them as necessary.
14606
14607 2019-07-31 Richard Biener <rguenther@suse.de>
14608
14609 PR tree-optimization/91178
14610 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
14611 Use tail-recursion.
14612
14613 2019-07-31 Jakub Jelinek <jakub@redhat.com>
14614
14615 PR tree-optimization/91201
14616 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
14617 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
14618 TARGET_AVX512F.
14619 (reduc_plus_scal_<mode>): Improve formatting by introducing
14620 a temporary.
14621
14622 2019-07-31 Sudakshina Das <sudi.das@arm.com>
14623
14624 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
14625 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
14626 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
14627 (aarch64_init_tme_builtins): New.
14628 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
14629 (aarch64_expand_builtin_tme): New.
14630 (aarch64_expand_builtin): Handle TME builtins.
14631 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14632 __ARM_FEATURE_TME when enabled.
14633 * config/aarch64/aarch64-option-extensions.def: Add "tme".
14634 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
14635 (TARGET_TME): New.
14636 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
14637 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
14638 UNSPECV_TCANCEL.
14639 (tstart, ttest, tcommit, tcancel): New instructions.
14640 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
14641 (__tcancel, __ttest): New.
14642 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
14643 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
14644 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
14645 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
14646 * config/arm/types.md: Add new tme type attr.
14647 * doc/invoke.texi: Document "tme".
14648
14649 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
14650
14651 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
14652 warn_unused_result attribute.
14653 (cmse_check_address_range): Add warn_unused_result attribute.
14654
14655 2019-07-31 Richard Biener <rguenther@suse.de>
14656
14657 PR tree-optimization/91257
14658 * tree-vrp.c (union_ranges): Unify equality and less tests
14659 by using compare_values. Re-order cheap tests first.
14660
14661 2019-07-31 Jakub Jelinek <jakub@redhat.com>
14662
14663 PR middle-end/91301
14664 * gimplify.c (gimplify_omp_for): If for class iterator on
14665 distribute parallel for there is no data sharing clause
14666 on inner_for_stmt, look for private clause on combined
14667 parallel too and if found, move it to inner_for_stmt.
14668
14669 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
14670
14671 * lra-int.h (lra_operand_data): Remove early_clobber field.
14672 (lra_insn_reg): Likewise.
14673 * lra.c (debug_operand_data): Update accordingly.
14674 (setup_operand_alternative): Likewise.
14675 (new_insn_reg): Likewise. Remove early_clobber parameter.
14676 (collect_non_operand_hard_regs): Update call accordingly.
14677 Don't assign to lra_insn_reg::early_clobber.
14678 (add_regs_to_insn_regno_info): Remove early_clobber parameter
14679 and update calls to new_insn_reg.
14680 (lra_update_insn_regno_info): Update calls accordingly.
14681 * lra-constraints.c (update_and_check_small_class_inputs): Take the
14682 alternative number as a parameter and test whether the operand
14683 is earlyclobbered in that particular alternative.
14684 (process_alt_operands): Update call accordingly. Use per-alternative
14685 checks for earyclobber here too.
14686 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
14687 against zero for IRA_UNKNOWN_ALT.
14688
14689 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
14690
14691 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
14692
14693 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
14694
14695 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
14696 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
14697
14698 2019-07-30 Martin Liska <mliska@suse.cz>
14699
14700 PR ipa/89330
14701 * cgraph.c (cgraph_edge::make_direct): Use
14702 edge->indirect_unknown_callee as edge->resolve_speculation can
14703 deallocate edge which is this pointer.
14704
14705 2019-07-30 Richard Biener <rguenther@suse.de>
14706
14707 PR tree-optimization/91257
14708 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
14709
14710 2019-07-30 Martin Liska <mliska@suse.cz>
14711
14712 * doc/invoke.texi: Document new behavior.
14713 * lto-wrapper.c (cpuset_popcount): New function
14714 is a copy of libgomp/config/linux/proc.c.
14715 (init_num_threads): Likewise.
14716 (run_gcc): Automatically detect core count for -flto.
14717 (jobserver_active_p): New function.
14718
14719 2019-07-30 Richard Biener <rguenther@suse.de>
14720
14721 PR tree-optimization/91257
14722 * bitmap.h (bitmap_ior_into_and_free): Declare.
14723 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
14724 whether to add the unliked element to the freelist.
14725 (bitmap_list_insert_element_after): Add defaulted param for
14726 an already allocated element.
14727 (bitmap_ior_into_and_free): New function.
14728 * tree-ssa-structalias.c (condense_visit): Reduce the
14729 ponts-to and edge bitmaps of the SCC members in a
14730 logarithmic fashion rather than all to one.
14731
14732 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
14733
14734 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
14735 parameter. When nonnull, make sure that the addition or subtraction
14736 has the same condition.
14737 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
14738 for CFN_COND_MUL too.
14739
14740 2019-07-30 Richard Biener <rguenther@suse.de>
14741
14742 PR tree-optimization/91291
14743 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
14744 constant values.
14745
14746 2019-07-30 Jakub Jelinek <jakub@redhat.com>
14747
14748 PR middle-end/91216
14749 * omp-low.c (global_nonaddressable_vars): New variable.
14750 (use_pointer_for_field): For global decls, if they are non-addressable,
14751 remember it in the global_nonaddressable_vars bitmap, if they are
14752 addressable and in the global_nonaddressable_vars bitmap, ignore their
14753 TREE_ADDRESSABLE bit.
14754 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
14755 vars in global_nonaddressable_vars bitmap.
14756 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
14757
14758 PR target/91150
14759 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
14760 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
14761 comparison to unsigned HOST_WIDE_INT before shifting it left.
14762
14763 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
14764
14765 * config/i386/i386.md (movstrict<mode>): Use register_operand
14766 predicate for operand 0. Add expander condition. Assert that
14767 operand 0 is a SUBREG RTX.
14768 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
14769 Update operand constraints and insn condition.
14770 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
14771 (zero_extendqihi2_and): Do not call gen_movstrictqi.
14772 (*setcc_qi_slp): Use register_operand predicate for operand 0.
14773 Update operand 0 constraints.
14774 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
14775
14776 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14777
14778 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
14779 when -m{code,data}-region are used without -mlarge.
14780 * config/msp430/msp430.c (msp430_option_override): Error when a
14781 non-default code or data region is used without -mlarge.
14782 (msp430_section_attr): Emit a warning and do not add upper/lower/either
14783 attributes when they are used without -mlarge.
14784
14785 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14786
14787 PR target/70320
14788 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
14789
14790 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14791
14792 PR middle-end/91242
14793 * wide-int.h (generic_wide_int::sext_elt): New function.
14794 * inchash.h (hash::add_wide_int): Use it instead of elt.
14795
14796 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14797
14798 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
14799 CODE_FOR_arm_##.
14800 * config/arm/arm.md (<crc_variant>): Rename to...
14801 (arm_<crc_variant>): ... This.
14802 (<cdp>): Rename to...
14803 (arm_<cdp>): ... This.
14804 (<ldc>): Rename to...
14805 (arm_<ldc>): ... This.
14806 (<stc>): Rename to...
14807 (arm_<stc>): ... This.
14808 (<mcr>): Rename to...
14809 (arm_<mcr>): ... This.
14810 (<mrc>): Rename to...
14811 (arm_<mrc>): ... This.
14812 (<mcrr>): Rename to...
14813 (arm_<mcrr>): ... This.
14814 (<mrrc>): Rename to...
14815 (arm_<mrrc>): ... This.
14816
14817 2019-07-29 Richard Biener <rguenther@suse.de>
14818
14819 PR tree-optimization/91257
14820 * tree-ssa-sccvn.h (struct vn_avail): New.
14821 (struct vn_ssa_aux): Add avail member.
14822 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
14823 member, add m_avail_freelist one.
14824 (rpo_elim::~rpo_elim): Remove.
14825 (rpo_elim::eliminate_avail): Adjust to new avail tracking
14826 data structure.
14827 (rpo_elim::eliminate_push_avail): Likewise.
14828 (do_unwind): Likewise.
14829 (do_rpo_vn): Likewise.
14830
14831 2019-07-29 Richard Biener <rguenther@suse.de>
14832
14833 PR tree-optimization/91257
14834 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
14835 most cases, instead call compare_values which handles the
14836 symbolic ranges we handle specially.
14837 (compare_values_warnv): Do not call operand_less_p but open-code
14838 the effective fold calls. Avoid converting so much.
14839
14840 2019-07-29 Martin Liska <mliska@suse.cz>
14841
14842 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
14843 remove LHS of operator new call. It's handled latter.
14844
14845 2019-07-29 Richard Biener <rguenther@suse.de>
14846
14847 PR tree-optimization/91267
14848 * vr-values.c (vr_values::update_value_range): Add early return
14849 for effectively VARYING lattice entry.
14850
14851 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14852
14853 PR debug/86638
14854 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
14855 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
14856 necessary if keep_all_vdefs_p is true.
14857 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
14858 that keep_all_vdefs_p is false.
14859 (mark_all_reaching_defs_necessary): Likewise.
14860 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
14861
14862 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14863
14864 * common.opt (Og): Change the initial value of flag_dse to 0.
14865 * opts.c (default_options_table): Move OPT_ftree_dse from
14866 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
14867 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
14868 entry before the OPT_ftree_sra entry.
14869 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
14870 of flags disabled by Og.
14871
14872 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14873
14874 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
14875 variables for -Og.
14876
14877 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14878
14879 * doc/sourcebuild.texi (check-function-bodies): Document.
14880
14881 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14882
14883 * simplify-rtx.c (simplify_const_unary_operation): Fold a
14884 VEC_DUPLICATE of a fixed-length vector even if the result
14885 is variable-length. Likewise fold a duplicate of a
14886 variable-length vector if the variable-length vector is
14887 itself a duplicate of a fixed-length sequence.
14888 (test_vector_ops_duplicate): Test more cases.
14889
14890 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14891
14892 * vector-builder.h (vector_builder): Add a shape template parameter.
14893 (vector_builder::new_unary_operation): New function, generalizing
14894 the old tree_vector_builder function.
14895 (vector_builder::new_binary_operation): Likewise.
14896 (vector_builder::binary_encoded_nelts): Likewise.
14897 * int-vector-builder.h (int_vector_builder): Update template
14898 parameters to vector_builder.
14899 (int_vector_builder::shape_nelts): New function.
14900 * rtx-vector-builder.h (rtx_vector_builder): Update template
14901 parameters to vector_builder.
14902 (rtx_vector_builder::shape_nelts): New function.
14903 (rtx_vector_builder::nelts_of): Likewise.
14904 (rtx_vector_builder::npatterns_of): Likewise.
14905 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
14906 * tree-vector-builder.h (tree_vector_builder): Update template
14907 parameters to vector_builder.
14908 (tree_vector_builder::shape_nelts): New function.
14909 (tree_vector_builder::nelts_of): Likewise.
14910 (tree_vector_builder::npatterns_of): Likewise.
14911 (tree_vector_builder::nelts_per_pattern_of): Likewise.
14912 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
14913 (tree_vector_builder::new_binary_operation): Delete.
14914 (tree_vector_builder::binary_encoded_nelts): Likewise.
14915 * simplify-rtx.c: Include rtx-vector-builder.h.
14916 (distributes_over_addition_p): New function.
14917 (simplify_const_unary_operation)
14918 (simplify_const_binary_operation): Generalize handling of vector
14919 constants to include variable-length vectors.
14920 (test_vector_ops_series): Add more tests.
14921
14922 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
14923
14924 PR lto/91222
14925 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
14926 than INDENTIFIER_POINTER.
14927
14928 2019-07-28 Martin Liska <mliska@suse.cz>
14929
14930 PR ipa/89330
14931 * cgraph.c (symbol_table::create_edge): Always allocate
14932 a cgraph_edge.
14933 (symbol_table::free_edge): Store summary_id to
14934 edge_released_summary_ids if != -1;
14935 * cgraph.h (NEXT_FREE_NODE): Remove.
14936 (SET_NEXT_FREE_NODE): Likewise.
14937 (NEXT_FREE_EDGE): Likewise.
14938 (symbol_table::release_symbol): Store summary_id to
14939 cgraph_released_summary_ids if != -1;
14940 (symbol_table::allocate_cgraph_symbol): Always allocate
14941 a cgraph_node.
14942
14943 2019-07-28 Alan Modra <amodra@gmail.com>
14944
14945 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
14946 gen_sibcall.
14947
14948 2019-07-28 Alan Modra <amodra@gmail.com>
14949
14950 PR target/91135
14951 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
14952 define.
14953 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
14954 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
14955 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
14956
14957 2019-07-28 Alan Modra <amodra@gmail.com>
14958
14959 PR target/91050
14960 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
14961 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
14962 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
14963 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
14964 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
14965 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
14966 in asm_default spec.
14967 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
14968 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
14969
14970 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
14971
14972 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
14973
14974 2019-07-26 Tamar Christina <tamar.christina@arm.com>
14975
14976 PR target/89517
14977 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
14978 * config/aarch64/aarch64-option-extensions.def: Add new comments
14979 and restore easier to read options.
14980
14981 2019-07-26 Tamar Christina <tamar.christina@arm.com>
14982
14983 * convert.c (convert_to_real_1): Move part of conversion code...
14984 * match.pd: ...To here.
14985
14986 2019-07-26 Martin Jambor <mjambor@suse.cz>
14987
14988 PR ipa/89330
14989 * ipa-inline-transform.c (check_speculations_1): New function.
14990 (push_all_edges_in_set_to_vec): Likewise.
14991 (check_speculations): Use check_speculations_1, new parameter
14992 new_edges.
14993 (inline_call): Pass new_edges to check_speculations.
14994 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
14995 NULL.
14996 (speculation_useful_p): Early return true if edge is inlined, remove
14997 later checks for inline_failed.
14998
14999 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
15000
15001 PR rtl-optimization/91223
15002 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
15003 matching with INOUT operand.
15004
15005 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
15006
15007 * stmt.c (expand_case): Try to narrow the index type if it's larger
15008 than a word. Tidy up.
15009
15010 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
15011
15012 * cif-code.def (NEVER_CALL): New code.
15013 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
15014 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
15015
15016 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
15017
15018 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
15019 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
15020
15021 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15022
15023 * ipa-devirt.c (add_type_duplicate): Fix return value.
15024
15025 2019-07-25 Richard Biener <rguenther@suse.de>
15026
15027 * tree-vrp.c (extract_range_from_multiplicative_op): Add
15028 type parameter and use it instead of guessing expression
15029 type from the first operand.
15030 (extract_range_from_binary_expr): Pass expr_type down.
15031
15032 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15033
15034 * config/arm/arm.md (SATrev): Change to code attribute.
15035 (*satsi_<SAT:code>): Adjust for the above.
15036 (*satsi_<SAT:code>_shift): Likewise.
15037
15038 2019-07-25 Richard Biener <rguenther@suse.de>
15039
15040 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
15041 Make value_range * temporary const.
15042 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
15043 Likewise.
15044 (evrp_range_analyzer::record_ranges_from_): Likewise.
15045 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
15046 deal with having recorded a const one.
15047 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
15048 Return a const value_range *.
15049 (evrp_range_analyzer::pop_value_range): Likewise.
15050 (evrp_range_analyzer::stack): Record const value_range *s.
15051 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
15052 Adjust.
15053 * gimple-ssa-sprintf.c (get_int_range): Likewise.
15054 (format_integer): Likewise.
15055 (sprintf_dom_walker::handle_gimple_call): Likewise.
15056 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
15057 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
15058 (vrp_prop::get_value_range): Adjust.
15059 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
15060 modifying the lattice in-place.
15061 (vrp_prop::visit_stmt): Likewise.
15062 * vr-values.c (vr_values::get_lattice_entry): New private method.
15063 (vr_values::get_value_range): Wrap it and return a const
15064 value_range *.
15065 (vr_values::set_def_to_varying): New.
15066 (vr_values::set_defs_to_varying): Use it.
15067 (vr_values::update_value_range): Likewise.
15068 (vr_values::vrp_stmt_computes_nonzero): Adjust.
15069 (values::op_with_constant_singleton_va): Likewise.
15070 (vr_values::extract_range_for_var_from_co): Likewise.
15071 (vr_values::extract_range_from_ssa_name): Likewise.
15072 (vr_values::extract_range_from_cond_expr): Likewise.
15073 (vr_values::extract_range_basic): Likewise.
15074 (compare_ranges): Take const value_range *, adjust.
15075 (compare_range_with_value): Likewise.
15076 (vrp_valueize): Adjust.
15077 (vrp_valueize_1): Likewise.
15078 (vr_values::get_vr_for_comparison): Return a const value_range *.
15079 (vr_values::compare_name_with_value): Adjust.
15080 (vr_values::compare_names): Likewise.
15081 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
15082 Likewise.
15083 (vr_values::vrp_evaluate_conditional): Likewise.
15084 (find_case_label_ranges): Take a const value_range *.
15085 (vr_values::vrp_visit_switch_stmt): Adjust.
15086 (vr_values::extract_range_from_phi_node): Likewise.
15087 (vr_values::simplify_div_or_mod_using_ran): Likewise.
15088 (vr_values::simplify_abs_using_ranges): Likewise.
15089 (test_for_singularity): Take a const value_range *.
15090 (range_fits_type_p): Likewise.
15091 (vr_values::simplify_cond_using_ranges_1): Adjust.
15092 (vr_values::simplify_cond_using_ranges_2): Likewise.
15093 (vr_values::simplify_switch_using_ranges): Likewise.
15094 (vr_values::simplify_float_conversion_usi): Likewise.
15095 (vr_values::two_valued_val_range_p): Likewise.
15096 * vr-values.h (vr_values::get_value_range): Return a const
15097 value_range *.
15098 (vr_values::set_def_to_varying): New.
15099 (vr_values::get_lattice_entry): New private method.
15100 (vr_values::get_vr_for_comparison): Return a const value_range *.
15101
15102 2019-07-25 Martin Liska <mliska@suse.cz>
15103 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
15104
15105 PR c++/23383
15106 * common.opt: Add -fallocation-dce
15107 * gimple.c (gimple_call_operator_delete_p): New.
15108 * gimple.h (gimple_call_operator_delete_p): Likewise.
15109 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
15110 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
15111 DECL_IS_OPERATOR_DELETE_P.
15112 (mark_all_reaching_defs_necessary_1): Likewise.
15113 (propagate_necessity): Likewise.
15114 (eliminate_unnecessary_stmts): Handle
15115 gimple_call_operator_delete_p.
15116 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
15117 Add packing of OPERATOR_DELETE.
15118 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
15119 Similarly here.
15120 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
15121 (DECL_SET_IS_OPERATOR_DELETE): New.
15122 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
15123
15124 2019-07-25 Martin Liska <mliska@suse.cz>
15125
15126 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
15127 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
15128 * coverage.c (coverage_begin_function): Likewise.
15129 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
15130 * gimple.c (gimple_call_nonnull_result_p): Likewise.
15131 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
15132 (sem_item::hash_referenced_symbol_properties): Likewise.
15133 * lto-streamer-out.c (hash_tree): Likewise.
15134 * predict.c (expr_expected_value_1): Likewise.
15135 * tree-inline.c (expand_call_inline): Likewise.
15136 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
15137 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
15138 * tree-core.h (enum function_decl_type): New enum.
15139 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
15140 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
15141 (set_function_decl_type): Likewise.
15142 (DECL_IS_OPERATOR_NEW_P): New.
15143 (DECL_SET_IS_OPERATOR_NEW): Likewise.
15144 (DECL_LAMBDA_FUNCTION): Likewise.
15145 (DECL_LAMBDA_FUNCTION_P): Likewise.
15146 (DECL_IS_OPERATOR_NEW): Remove.
15147 (DECL_SET_LAMBDA_FUNCTION): Likewise.
15148
15149 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
15150
15151 * ipa-profile.c (get_most_common_single_value): Use
15152 get_nth_most_common_value.
15153 * profile.c (sort_hist_value): New function.
15154 (compute_value_histograms): Call sort_hist_value to sort the
15155 values after loading from disk.
15156 * value-prof.c (get_most_common_single_value): Rename to ...
15157 get_nth_most_common_value. Add input params n, return
15158 the n_th value and count.
15159 (gimple_divmod_fixed_value_transform): Use
15160 get_nth_most_common_value.
15161 (gimple_ic_transform): Likewise.
15162 (gimple_stringops_transform): Likewise.
15163 * value-prof.h (get_most_common_single_value): Add input params
15164 n, default to 0.
15165
15166 2019-07-25 Richard Biener <rguenther@suse.de>
15167
15168 PR tree-optimization/91236
15169 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
15170 size of CONSTRUCTOR write. Fix buffer size we pass to
15171 native_encode_expr.
15172
15173 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15174
15175 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
15176 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
15177 r273773.
15178
15179 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15180
15181 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
15182 explicitly disabled with --disable-initfini-array.
15183
15184 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15185
15186 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
15187 if-exists.
15188
15189 2019-07-24 Martin Sebor <msebor@redhat.com>
15190
15191 PR tree-optimization/91183
15192 PR tree-optimization/86688
15193 * builtins.c (compute_objsize): Handle MEM_REF.
15194 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
15195 (get_min_string_length): Remove.
15196 (count_nonzero_bytes): New function.
15197 (handle_char_store): Rename...
15198 (handle_store): to this. Handle multibyte stores via integer types.
15199 (strlen_check_and_optimize_stmt): Adjust conditional and the called
15200 function name.
15201
15202 2019-07-24 Martin Sebor <msebor@redhat.com>
15203
15204 PR driver/80545
15205 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
15206 (diagnostic_report_diagnostic): Same.
15207 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
15208 (diagnostic_context::lang_mask): New data member.
15209 * ipa-pure-const.c (suggest_attribute): Use
15210 lang_hooks.option_lang_mask ().
15211 * opts-common.c (option_enabled): Handle new argument.
15212 (get_option_state): Pass an additional argument.
15213 * opts.c (print_filtered_help): Print supported languages for
15214 unsupported options. Adjust printing of current state.
15215 * opts.h (option_enabled): Add argument.
15216 * toplev.c (print_switch_values): Use lang_mask.
15217 (general_init): Set global_dc->lang_mask.
15218
15219 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
15220
15221 PR bootstrap/87030
15222 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
15223
15224 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
15225
15226 * cgraphunit.c (symbol_table::compile): Start and stop
15227 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
15228 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
15229
15230 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
15231
15232 * gimplify.c (flag_instrument_functions_exclude_p): Include
15233 namespace/class information in the printable name.
15234 * opts.c (add_comma_separated_to_vector): Add NUL terminator
15235 to tokens entered into the vector.
15236
15237 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
15238
15239 * tree-nested.c (build_simple_mem_ref_notrap): New function.
15240 (get_static_chain): Call it instead of build_simple_mem_ref.
15241 (get_frame_field): Likewise.
15242 (get_nonlocal_debug_decl): Likewise.
15243 (convert_nonlocal_reference_op): Likewise.
15244
15245 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
15246
15247 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
15248 declaration.
15249 (arc_compute_frame_size): Millicode is disabled when compiling
15250 ISR.
15251 (arc_return_address_register): Likewise.
15252 (arc_compute_function_type): Likewise.
15253 (arc_compute_frame_size): Likewise.
15254 (secondary_reload_info): Likewise.
15255 (arc_get_unalign): Likewise.
15256 (arc_can_use_return_insn): Declare.
15257 * config/arc/arc.c (AUX_LP_START): Define
15258 (AUX_LP_END): Likewise.
15259 (arc_frame_info): Update gmask member to 64-bit datum.
15260 (GMASK_LEN): Update.
15261 (arc_compute_function_type): Make it static, move it forward.
15262 (arc_must_save_register): Update, consider the extra regs.
15263 (arc_compute_millicode_save_restore_regs): Update to use the 64
15264 bit gmask.
15265 (arc_compute_frame_size): Likewise.
15266 (arc_enter_leave_p): Likewise.
15267 (arc_save_callee_saves): Likewise.
15268 (arc_restore_callee_saves): Likewise.
15269 (arc_save_callee_enter): Likewise.
15270 (arc_restore_callee_leave): Likewise.
15271 (arc_save_callee_milli): Likewise.
15272 (arc_restore_callee_milli): Likewise.
15273 (arc_expand_prologue): Add new interrupt handling.
15274 (arc_return_address_register): Make it static, move it forward.
15275 (arc_expand_epilogue): Add new interrupt handling.
15276 (arc_get_unalign): Delete.
15277 (arc_epilogue_uses): Make sure we do not remove the extra
15278 saved/restored registers when interrupt.
15279 (arc_can_use_return_insn): New function.
15280 (push_reg): Likewise.
15281 (pop_reg): Likewise.
15282 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
15283 procedures.
15284 (arc_restore_callee_saves): Likewise, but restoring.
15285 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
15286 (R33_REG): Likewise.
15287 (R34_REG): Likewise.
15288 (R35_REG): Likewise.
15289 (R36_REG): Likewise.
15290 (R37_REG): Likewise.
15291 (R38_REG): Likewise.
15292 (R39_REG): Likewise.
15293 (R45_REG): Likewise.
15294 (R46_REG): Likewise.
15295 (R47_REG): Likewise.
15296 (R48_REG): Likewise.
15297 (R49_REG): Likewise.
15298 (R50_REG): Likewise.
15299 (R51_REG): Likewise.
15300 (R52_REG): Likewise.
15301 (R53_REG): Likewise.
15302 (R54_REG): Likewise.
15303 (R55_REG): Likewise.
15304 (R56_REG): Likewise.
15305 (R58_REG): Likewise.
15306 (type): Add rtie attribute.
15307 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
15308 (movsi_insn): Accept moves to lp_count.
15309 (rtie): Update pattern.
15310 (simple_return): Simplify it, don't use this pattern as a return
15311 from an interrupt.
15312 (arc600_rtie): New pattern.
15313 (p_return_i): Clean up.
15314 (return): Likewise.
15315 * config/arc/builtins.def (rtie): Only available for non ARC6xx
15316 family CPUs.
15317 * config/arc/predicates.md (move_src_operand): Consider lp_count
15318 as a register.
15319
15320 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
15321
15322 * config/s390/predicates.md (addv_const_operand): New predicate.
15323 * config/s390/s390-modes.def (CCO): New condition code mode.
15324 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
15325 (s390_branch_condition_mask): Likewise.
15326 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
15327 ("mulv<mode>4"): New expanders.
15328 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
15329 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
15330 pattern definitions.
15331
15332 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15333
15334 PR middle-end/91166
15335 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
15336 (define_predicates): Add entry for uniform_vector_p.
15337 (vec_same_elem_p): New match pattern.
15338
15339 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
15340
15341 PR bootstrap/87030
15342 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
15343 * config/i386/darwin32-biarch.h .. to here.
15344 * config/i386/darwin64-biarch.h: Adjust comments.
15345 * config/rs6000/darwin32-biarch.h: Likewise.
15346 * config/rs6000/darwin64-biarch.h: Likewise.
15347 * config.gcc: Missed commit from r273746
15348 (*-*-darwin*): Don't include CPU t-darwin here.
15349 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
15350 an error message if i686-darwin configuration is attempted for
15351 Darwin >= 18.
15352
15353 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
15354
15355 PR bootstrap/87030
15356 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
15357 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
15358 an error message if i686-darwin configuration is attempted for
15359 Darwin >= 18.
15360 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
15361 (powerpc-*-darwin*): Use biarch files where needed.
15362 (powerpc64-*-darwin*): Likewise.
15363 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
15364 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
15365 arch case.
15366 * config/i386/darwin32-biarch.h: New.
15367 * config/i386/darwin64.h: Rename.
15368 * config/i386/darwin64-biarch.h: To this.
15369 * config/i386/t-darwin: Rename.
15370 * config/i386/t-darwin32-biarch: To this.
15371 * config/i386/t-darwin64: Rename.
15372 * config/i386/t-darwin64-biarch: To this.
15373 * config/rs6000/darwin32-biarch.h: New.
15374 * config/rs6000/darwin64.h: Rename.
15375 * config/rs6000/darwin64-biarch.h: To this.
15376 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
15377 arch case.
15378 * config/rs6000/t-darwin8: Rename.
15379 * config/rs6000/t-darwin32-biarch: To this.
15380 * config/rs6000/t-darwin64 Rename.
15381 * config/rs6000/t-darwin64-biarch: To this.
15382
15383 2019-07-23 Martin Sebor <msebor@redhat.com>
15384
15385 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
15386
15387 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
15388
15389 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
15390 (rh): New alias for it.
15391
15392 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
15393
15394 * gdbhooks.py: Pass replace=True to
15395 gdb.printing.register_pretty_printer.
15396
15397 2019-07-23 Richard Biener <rguenther@suse.de>
15398
15399 PR debug/91231
15400 * lto-streamer-in.c (input_function): Drop inline-entry markers
15401 that ended up with an unknown location block.
15402
15403 2019-07-23 Richard Biener <rguenther@suse.de>
15404
15405 PR tree-optimization/83518
15406 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
15407 init from a constant even when partial defs are already recorded.
15408
15409 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15410
15411 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
15412 * config/i386/znver1.md: Enable patterns for znver2 and add store
15413 variants which use extra AGU unit.
15414
15415 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15416
15417 * config/i386/i386-options.c (ix86_option_override_internal): Default
15418 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
15419 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
15420 for ZNVER2.
15421
15422 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15423
15424 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
15425 (znver2_costs): Update 256 bit SSE costs and multiplication.
15426
15427 2019-07-23 Jan Beulich <jbeulich@suse.com>
15428
15429 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
15430 Require only AVX512F.
15431 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
15432 alternative expanding to vpternlog.
15433
15434 2019-07-23 Martin Liska <mliska@suse.cz>
15435
15436 * dwarf2out.c (gen_producer_string): Canonize -flto=N
15437 to -flto in dwarf producer string.
15438
15439 2019-07-23 Richard Biener <rguenther@suse.de>
15440
15441 * tree-cfg.c (label_for_bb): Remove global var.
15442 (main_block_label): Take label_for_bb as argument.
15443 (cleanup_dead_labels_eh): Likewise, adjust.
15444 (cleanup_dead_labels): Adjust.
15445
15446 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
15447
15448 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
15449 Configurations): Add documentation for __builtin_mtfsf.
15450
15451 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
15452
15453 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
15454 * config/riscv/riscv.c (riscv_constant_alignment): Use
15455 riscv_align_data_type.
15456 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
15457 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
15458 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
15459 * config/riscv/riscv.opt (malign-data): New.
15460 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
15461
15462 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
15463
15464 * cgraph.c (dump_graphviz): New function.
15465 * cgraph.h (dump_graphviz): New function.
15466 * symtab.c (dump_graphviz): New function.
15467
15468 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
15469
15470 * config/aarch64/aarch64-simd.md
15471 (*aarch64_simd_sra<mode>): New.
15472 * config/aarch64/iterators.md
15473 (SHIFTRT): New iterator.
15474 (sra_op): New attribute.
15475
15476 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15477
15478 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
15479 callee-saved regs R4->R10 in an interrupt function that calls another
15480 function.
15481
15482 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
15483
15484 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
15485 (_mm_blendv_epi8): New.
15486
15487 2019-07-22 Richard Biener <rguenther@suse.de>
15488
15489 PR tree-optimization/91221
15490 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
15491 restrict partial-def handling of empty constructors and
15492 memset to refs with known offset.
15493
15494 2019-07-22 Jan Beulich <jbeulich@suse.com>
15495
15496 * config/i386/sse.md (ternlogsuffix): New.
15497 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
15498 AVX512F is in use.
15499 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
15500
15501 2019-07-22 Martin Liska <mliska@suse.cz>
15502
15503 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
15504 comment.
15505 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
15506
15507 2019-07-22 Martin Liska <mliska@suse.cz>
15508
15509 * lto-section-in.c (lto_get_section_data):
15510 Use new function get_compression.
15511 * lto-streamer-out.c (produce_lto_section): Use
15512 set_compression to encode compression algorithm.
15513 * lto-streamer.h (struct lto_section): Do not
15514 use bitfields in the format.
15515
15516 2019-07-22 Martin Liska <mliska@suse.cz>
15517
15518 PR driver/91172
15519 * opts-common.c (decode_cmdline_option): Decode
15520 argument of -Werror and check it for a wrong language.
15521 * opts-global.c (complain_wrong_lang): Remove such case.
15522
15523 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
15524
15525 * config/arc/arc.c (prepare_move_operands): Always use an
15526 intermediate register when storing a TLS symbols.
15527
15528 2019-07-22 Stafford Horne <shorne@gmail.com>
15529
15530 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
15531 force_reg.
15532
15533 2019-07-22 Stafford Horne <shorne@gmail.com>
15534
15535 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
15536 and munordered-float validations.
15537 * config/or1k/constraints.md (d): New register constraint.
15538 * config/or1k/predicates.md (fp_comparison_operator): New.
15539 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
15540 operands.
15541 (or1k_expand_compare): Normalize unordered comparisons.
15542 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
15543 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
15544 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
15545 * config/or1k/or1k.md (type): Add fpu.
15546 (fpu): New instruction reservation.
15547 (F, f, fr, fi, FI, FOP, fop): New.
15548 (<fop><F:mode>3): New ALU instruction definition.
15549 (float<fi><F:mode>2): New conversion instruction definition.
15550 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
15551 (fpcmpcc): New code iterator.
15552 (*sf_fp_insn): New instruction definition.
15553 (cstore<F:mode>4): New expand definition.
15554 (cbranch<F:mode>4): New expand definition.
15555 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
15556 munordered-float): New options.
15557 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
15558 munordered-float.
15559
15560 2019-07-22 Stafford Horne <shorne@gmail.com>
15561
15562 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
15563 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
15564 documenation to be more clear.
15565 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
15566 more clear.
15567 * config/or1k/or1k.opt (mrori): New option.
15568 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
15569 msfimm, mshftimm): Rewrite documentation to be more clear.
15570 * config/or1k/or1k.md (insn_support): Add ror and rori.
15571 (enabled): Add conditions for ror and rori.
15572 (rotrsi3): Replace condition for shftimm with ror and rori.
15573
15574 2019-07-22 Stafford Horne <shorne@gmail.com>
15575
15576 PR target/90363
15577 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
15578 (extend<mode>si2): Update predicate.
15579 * config/or1k/predicates.md (volatile_mem_operand): New.
15580 (reg_or_mem_operand): New.
15581
15582 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
15583
15584 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
15585 * config/rs6000/rs6000-call.c: ... to here.
15586
15587 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15588
15589 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
15590 memory.
15591
15592 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15593
15594 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
15595
15596 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15597
15598 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
15599
15600 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15601
15602 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
15603 (any_memory_operand): New predicate.
15604 (reg_or_mem_operand): Use it.
15605
15606 2019-07-20 Jakub Jelinek <jakub@redhat.com>
15607
15608 PR target/91204
15609 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
15610
15611 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
15612
15613 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
15614 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
15615
15616 2019-07-20 Jakub Jelinek <jakub@redhat.com>
15617
15618 * tree.def (OMP_LOOP): New tree code.
15619 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
15620 (enum omp_clause_bind_kind): New enum.
15621 (struct tree_omp_clause): Add subcode.bind_kind.
15622 * tree.h (OMP_LOOP_CHECK): Rename to ...
15623 (OMP_LOOPING_CHECK): ... this.
15624 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
15625 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
15626 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
15627 (OMP_CLAUSE_BIND_KIND): Define.
15628 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
15629 bind clause entries.
15630 (walk_tree_1): Handle OMP_CLAUSE_BIND.
15631 * tree-pretty-print.c (dump_omp_clause): Likewise.
15632 (dump_generic_node): Handle OMP_LOOP.
15633 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
15634 (in_omp_construct): New variable.
15635 (is_gimple_stmt): Handle OMP_LOOP.
15636 (gimplify_scan_omp_clauses): For lastprivate don't set
15637 check_non_private if code == OMP_LOOP. For reduction clause
15638 on OMP_LOOP combined with parallel or teams propagate as shared
15639 on the combined construct. Handle OMP_CLAUSE_BIND.
15640 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
15641 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
15642 for constructs from a loop construct to gimplify_scan_omp_clauses.
15643 Don't predetermine iterator linear on OMP_SIMD from loop construct.
15644 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
15645 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
15646 to match the implicit ORT_TARGET construct around whole body.
15647 Temporarily clear in_omp_construct when processing body.
15648 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
15649 etc. temporarily set in_omp_construct when processing body.
15650 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
15651 * omp-low.c (struct omp_context): Add loop_p.
15652 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
15653 in that the original var might be private.
15654 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
15655 (check_omp_nesting_restrictions): Adjust nesting restrictions for
15656 addition of loop construct.
15657 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
15658
15659 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
15660 lastprivate non-addressable iterator of a collapse(1) simd.
15661
15662 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
15663
15664 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
15665 as in rs6000.c.
15666
15667 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
15668
15669 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
15670 refer to default conditions. Warn for the 'y' spec which is ignored
15671 by current linkers.
15672
15673 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
15674
15675 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
15676 cpu_supports_info, builtin_hash_struct, builtin_hasher,
15677 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
15678 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
15679 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
15680 init_cumulative_args, rs6000_promote_function_mode,
15681 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
15682 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
15683 rs6000_function_arg_boundary, rs6000_parm_offset,
15684 rs6000_parm_start, rs6000_arg_size,
15685 rs6000_darwin64_record_arg_advance_flush,
15686 rs6000_darwin64_record_arg_advance_recurse,
15687 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
15688 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
15689 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
15690 rs6000_mixed_function_arg, rs6000_psave_function_arg,
15691 rs6000_finish_function_arg, rs6000_function_arg,
15692 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
15693 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
15694 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
15695 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
15696 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
15697 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
15698 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
15699 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
15700 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
15701 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
15702 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
15703 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
15704 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
15705 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
15706 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
15707 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
15708 get_element_number, altivec_expand_vec_set_builtin,
15709 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
15710 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
15711 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
15712 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
15713 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
15714 rs6000_expand_builtin, rs6000_vector_type,
15715 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
15716 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
15717 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
15718 to rs6000-call.c.
15719 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
15720 cpu_supports_info, builtin_hash_struct, builtin_hasher,
15721 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
15722 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
15723 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
15724 init_cumulative_args, rs6000_promote_function_mode,
15725 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
15726 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
15727 rs6000_function_arg_boundary, rs6000_parm_offset,
15728 rs6000_parm_start, rs6000_arg_size,
15729 rs6000_darwin64_record_arg_advance_flush,
15730 rs6000_darwin64_record_arg_advance_recurse,
15731 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
15732 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
15733 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
15734 rs6000_mixed_function_arg, rs6000_psave_function_arg,
15735 rs6000_finish_function_arg, rs6000_function_arg,
15736 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
15737 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
15738 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
15739 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
15740 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
15741 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
15742 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
15743 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
15744 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
15745 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
15746 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
15747 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
15748 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
15749 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
15750 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
15751 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
15752 get_element_number, altivec_expand_vec_set_builtin,
15753 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
15754 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
15755 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
15756 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
15757 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
15758 rs6000_expand_builtin, rs6000_vector_type,
15759 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
15760 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
15761 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
15762 to here from rs6000.c.
15763 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
15764 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
15765 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
15766 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
15767 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
15768 rs6000_return_in_memory, rs6000_return_in_msb,
15769 rs6000_pass_by_reference, setup_incoming_varargs,
15770 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
15771 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
15772 rs6000_function_arg_padding, rs6000_function_arg,
15773 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
15774 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
15775 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
15776 rs6000_passes_long_double, rs6000_passes_vector,
15777 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
15778 altivec_builtin_mask_for_load) Add declarations.
15779 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
15780 * config/config.gcc: Add new source file rs6000-call.c to garbage
15781 collector and extra_objs.
15782
15783 2019-07-19 Jeff Law <law@redhat.com>
15784
15785 PR tree-optimization/86061
15786 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
15787 strncpy. Drop some trivial dead code.
15788 (maybe_trim_memstar_call): Handle strncpy.
15789
15790 2019-07-19 Richard Biener <rguenther@suse.de>
15791
15792 PR tree-optimization/91211
15793 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
15794 memset encoding size.
15795
15796 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
15797
15798 PR target/91204
15799 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
15800
15801 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
15802
15803 PR ipa/91194
15804 * ipa-inline.c (recursive_inlining): Fix limits check.
15805
15806 2019-07-19 Richard Biener <rguenther@suse.de>
15807
15808 PR tree-optimization/91200
15809 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
15810 no PHI nodes in middle-bb.
15811
15812 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
15813
15814 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
15815 to +sve-bitperm.
15816 * config/aarch64/aarch64-option-extensions.def: Likewise.
15817
15818 2019-07-19 Jakub Jelinek <jakub@redhat.com>
15819
15820 PR middle-end/91190
15821 * function.c (insert_temp_slot_address): Store into the hash table
15822 a copy of address to avoid RTL sharing issues.
15823
15824 2019-07-19 Richard Biener <rguenther@suse.de>
15825
15826 PR tree-optimization/91207
15827 Revert
15828 2019-07-17 Richard Biener <rguenther@suse.de>
15829
15830 PR tree-optimization/91178
15831 * tree-vect-stmts.c (get_group_load_store_type): For SLP
15832 loads with a gap larger than the vector size always use
15833 VMAT_STRIDED_SLP.
15834 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
15835 avoid loading vectors that are only contained in the gap
15836 and thus are not needed.
15837
15838 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
15839
15840 * config/i386/i386.md (*addqi_2_slp): Remove.
15841 (*<code>qi_2_slp): Ditto.
15842
15843 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
15844
15845 * config/rs6000/predicates.md (prefixed_mem_operand): Call
15846 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
15847 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
15848 Rename function from rs6000_prefixed_address.
15849 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
15850 TARGET_HAS_TOC.
15851 (TARGET_TOC): Likewise.
15852 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
15853 rs6000.h.
15854 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
15855 TARGET_HAS_TOC.
15856 (TARGET_TOC): Likewise.
15857 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
15858 rs6000.h.
15859 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
15860 TARGET_HAS_TOC.
15861 (TARGET_TOC): Likewise.
15862 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
15863 check to require -mcmodel=medium for pc-relative addressing.
15864 (create_TOC_reference): Add assertion for TARGET_TOC.
15865 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
15866 TARGET_NO_TOC.
15867 (rs6000_emit_move): Likewise.
15868 (TOC_alias_set): Rename TOC alias set static variable from 'set'
15869 to 'TOC_alias_set'.
15870 (get_TOC_alias_set): Likewise.
15871 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
15872 TARGET_NO_TOC.
15873 (rs6000_can_eliminate): Likewise.
15874 (rs6000_prefixed_address_mode_p): Rename function from
15875 rs6000_prefixed_address.
15876 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
15877 TARGET_HAS_TOC and not pc-relative.
15878 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
15879 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
15880 TARGET_HAS_TOC.
15881 (TARGET_TOC): Likewise.
15882 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
15883 rs6000.h.
15884
15885 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
15886
15887 PR target/91188
15888 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
15889 for operand 0. Do not use (match_dup) to match operand 1 with
15890 operand 0. Add check in insn constraint that either input operand
15891 matches operand 0. Use SWI12 mode iterator to also handle
15892 HImode operands.
15893 (*and<mode>_1_slp): Ditto.
15894 (*<code>qi_1_slp): Ditto.
15895 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
15896 Do not use (match_dup) to match operand 1 with operand 0. Add
15897 check in insn constraint that operand 1 matches operand 0.
15898 Use SWI12 mode iterator to also handle HImode operands.
15899 (*ashl<mode>3_1_slp): Ditto.
15900 (*<shift_insn><mode>3_1_slp): Ditto.
15901 (*<rotate_insn><mode>3_1_slp): Ditto.
15902
15903 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
15904
15905 * config/arm/arm-builtins.c
15906 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
15907 (arm_expand_unop_builtin): Likewise.
15908 * config/arm/crypto.md
15909 (crypto_sha1h): Convert from define_insn to define_expand.
15910 (crypto_<crypto_pattern>): Likewise.
15911 (crypto_sha1h_lb): New define_insn.
15912 (crypto_<crypto_pattern>_lb): Likewise.
15913
15914 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
15915
15916 PR target/90317
15917 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
15918 (vsha1cq_u32): Likewise.
15919 (vsha1pq_u32): Likewise.
15920 (vsha1mq_u32): Likewise.
15921 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
15922 vec select.
15923 (crypto_sha1c): Correct vec select.
15924 (crypto_sha1m): Likewise.
15925 (crypto_sha1p): Likewise.
15926
15927 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
15928
15929 * config/arm/predicates.md (arm_borrow_operation): New predicate.
15930 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
15931 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
15932 (subdi_zesidi_zesidi): Likewise.
15933 (negdi2_compare, negdi2_insn): Likewise.
15934 (negdi_extensidi): Likewise.
15935 (negdi_zero_extendsidi): Likewise.
15936 (arm_cmpdi_insn): Likewise.
15937 (subsi3_carryin): Use arm_borrow_operation.
15938 (subsi3_carryin_const): Likewise.
15939 (subsi3_carryin_const0): Likewise.
15940 (subsi3_carryin_compare): Likewise.
15941 (subsi3_carryin_compare_const): Likewise.
15942 (subsi3_carryin_compare_const0): Likewise.
15943 (subsi3_carryin_shift): Likewise.
15944 (rsbsi3_carryin_shift): Likewise.
15945 (negsi2_carryin_compare): Likewise.
15946
15947 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
15948
15949 PR tree-optimization/91137
15950 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
15951 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
15952 Init, use and fini the above new field.
15953 (determine_base_object_1): New function.
15954 (determine_base_object): Reimplement using walk_tree.
15955
15956 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
15957
15958 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
15959 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
15960 CLEANUP_FORCE_FAST_DCE is set.
15961 * ifcvt.c (rest_of_handle_if_conversion): Pass
15962 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
15963 if-conversion succeeded.
15964
15965 2019-07-18 Richard Biener <rguenther@suse.de>
15966
15967 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
15968 branches to make code less indented.
15969
15970 2019-07-17 Alexandre Oliva <oliva@adacore.com>
15971
15972 PR middle-end/81824
15973 * attribs.c (decls_mismatched_attributes): Simplify the logic
15974 that avoids duplicates and false positives.
15975
15976 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
15977
15978 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
15979 data into data section when generating PIC code.
15980 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
15981 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
15982 generating code for SOM targets earlier than HP-UX 11. Otherwise,
15983 return 2 for SOM and 0 for other targets.
15984
15985 2019-07-17 Jeff Law <law@redhat.com>
15986
15987 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
15988 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
15989 avoid unexpected switch statement fallthru.
15990
15991 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
15992
15993 * config/i386/i386.md (*add<dwi>3_doubleword):
15994 Remove redundant constraints.
15995 (*add<mode>_1): Ditto.
15996 (*addhi_1): Ditto.
15997 (*addqi_1): Ditto.
15998 (*addqi_1_slp): Ditto.
15999 (*add<mode>_2): Ditto.
16000 (*addv<mode>4): Ditto.
16001 (*sub<dwi>3_doubleword): Ditto.
16002 (*sub<mode>_1): Ditto.
16003 (*subqi_1_slp): Ditto.
16004 (*sub<mode>_2): Ditto.
16005 (*subv<mode>4): Ditto.
16006 (*sub<mode>_3): Ditto.
16007 (@add<mode>3_carry): Ditto.
16008 (@sub<mode>3_carry): Ditto.
16009 (*add<mode>3_cc_overflow_1): Ditto.
16010 (*add<mode>3_zext_cc_overflow_2): Ditto.
16011 (*anddi_1): Ditto.
16012 (*and<mode>_1): Ditto.
16013 (*andqi_1): Ditto.
16014 (*andqi_1_slp): Ditto.
16015 (*anddi_2): Ditto.
16016 (*andqi_2_maybe_si): Ditto.
16017 (*and<mode>_2): Ditto.
16018 (*andqi_2_slp): Ditto.
16019 (*<code><mode>_1): Ditto.
16020 (*<code>qi_1): Ditto.
16021 (*<code>qi_1_slp): Ditto.
16022 (*<code><mode>_2): Ditto.
16023 (*<code>qi_2_slp): Ditto.
16024
16025 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
16026
16027 * alias.c (record_component_aliases): Do not simplify pointed-to
16028 types of ODR types.
16029
16030 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
16031
16032 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
16033 partial reg stall on alternative 2.
16034
16035 2019-07-17 Richard Biener <rguenther@suse.de>
16036
16037 PR tree-optimization/91178
16038 * tree-ssa.c (release_defs_bitset): Iterate from higher to
16039 lower SSA names to avoid quadratic behavior in the common case.
16040 * tree-data-ref.c (split_constant_offset): Add limit argument
16041 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
16042 (split_constant_offset_1): Add limit argument and use it to
16043 limit SSA def walking. Optimize the common plus/minus case.
16044
16045 2019-07-17 Richard Biener <rguenther@suse.de>
16046
16047 PR tree-optimization/91178
16048 * tree-vect-stmts.c (get_group_load_store_type): For SLP
16049 loads with a gap larger than the vector size always use
16050 VMAT_STRIDED_SLP.
16051 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
16052 avoid loading vectors that are only contained in the gap
16053 and thus are not needed.
16054
16055 2019-07-17 Richard Biener <rguenther@suse.de>
16056
16057 PR tree-optimization/91180
16058 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
16059 computation for memset partial defs.
16060
16061 2019-07-17 Jakub Jelinek <jakub@redhat.com>
16062
16063 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
16064 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
16065 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
16066 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
16067 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
16068 * omp-grid.c (grid_process_grid_body,
16069 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
16070 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
16071 == GF_OMP_FOR_KIND_SIMD.
16072 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
16073 check_omp_nesting_restrictions, scan_omp_1_stmt,
16074 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
16075 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
16076 omp_find_scan): Likewise.
16077 * omp-expand.c (expand_omp_for): Likewise.
16078 * omp-general.c (omp_extract_for_data): Likewise.
16079
16080 PR tree-optimization/91157
16081 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
16082 a vector boolean with scalar mode.
16083 (expand_vector_condition): Handle first operand being a vector boolean
16084 with scalar mode.
16085 (expand_vector_operations_1): For comparisons, don't bail out early
16086 if the return type is vector boolean with scalar mode, but comparison
16087 operand type is not.
16088
16089 2019-07-17 Richard Biener <rguenther@suse.de>
16090
16091 PR tree-optimization/91181
16092 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
16093 IFN_LOADs as calls.
16094
16095 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
16096
16097 * config/i386/i386.md (*testdi_1): Match CCZmode for
16098 constants that might have the SImode sign bit set.
16099 (*testqi_1_maybe_si): Remove "!" constraint modifier.
16100 Use correct constraints for pentium pairing.
16101 (*test<mode>_1): Ditto.
16102
16103 2019-07-16 Jeff Law <law@redhat.com>
16104
16105 PR rtl-optimization/91173
16106 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
16107 SSA_NAME with a constant value, fold its value into the offset
16108 and clear the base before calling gen_addr_rtx.
16109
16110 2019-07-16 Jakub Jelinek <jakub@redhat.com>
16111
16112 PR rtl-optimization/91164
16113 * dse.c (rest_of_handle_dse): If dead edges have been purged,
16114 invalidate dominance info.
16115
16116 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16117
16118 * read-md.h (md_reader::record_potential_iterator_use): Add a
16119 file_location parameter.
16120 * read-rtl.c (attribute_use::loc): New field.
16121 (map_attr_string): Take a file_location parameter. Report cases
16122 in which attributes map to multiple distinct values.
16123 (apply_attribute_uses): Update call accordingly.
16124 (md_reader::handle_overloaded_name): Likewise.
16125 (md_reader::apply_iterator_to_string): Likewise. Skip empty
16126 nonnull strings.
16127 (record_attribute_use): Take a file_location parameter.
16128 Initialize attribute_use::loc.
16129 (md_reader::record_potential_iterator_use): Take a file_location
16130 parameter. Update call to record_attribute_use.
16131 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
16132 (rtx_reader::read_rtx_code): Likewise.
16133 (rtx_reader::read_rtx_operand): Likewise. Record a location
16134 for implicitly-expanded empty strings.
16135
16136 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16137
16138 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
16139 Use file_location instead of separate fields.
16140 (md_reader::set_md_ptr_loc): Take a file_location instead of a
16141 separate filename and line number.
16142 * read-md.c (ptr_loc): As above.
16143 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
16144 (md_reader::fprint_md_ptr_loc): Likewise.
16145 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
16146 instead of a separate filename and line number.
16147 (md_reader::read_string): Update call accordingly.
16148
16149 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16150
16151 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
16152 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
16153 leaving the choice between SFDF and P implicit.
16154 (*mov<mode>_update2): Likewise.
16155 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
16156 rather than leaving the choice betweem IBM128 and GPR implicit.
16157 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
16158 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
16159 QHSI implicit.
16160 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
16161 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
16162 * config/rs6000/vsx.md
16163 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
16164 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
16165 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
16166 and VSX_EXTRACT_I implicit.
16167
16168 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16169
16170 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
16171 Explicitly use <MOVEP1:MODE> for the mode attribute.
16172
16173 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
16174
16175 PR bootstrap/91176
16176 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
16177
16178 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
16179
16180 PR target/91050
16181 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
16182 .machine directive.
16183
16184 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
16185
16186 * config/i386/i386.md (@test<mode>_ccno_1):
16187 Rename from test<mode>_ccno_1.
16188 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
16189 (*testqi_1_maybe_si): Remove modrm attribute.
16190 (*test<mode>_1): Ditto.
16191 * config/i386/i386-expand.c (ix86_split_idivmod): Use
16192 gen_test_ccno_1 and gen_extend_insn.
16193
16194 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
16195
16196 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
16197 to 0.
16198
16199 2019-07-15 Richard Biener <rguenther@suse.de>
16200
16201 PR middle-end/91162
16202 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
16203 node make sure to replace all uses with something valid.
16204
16205 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
16206
16207 PR tree-optimization/88497
16208 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
16209 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
16210 function undistribute_bitref_for_vector.
16211 (undistribute_bitref_for_vector): New function.
16212 (cleanup_vinfo_map): Likewise.
16213 (sort_by_mach_mode): Likewise.
16214
16215 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
16216
16217 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
16218 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
16219 and testdi_ccno_1 using SWI48 mode attribute.
16220 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
16221 x86_64_szext_general_operand.
16222 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
16223 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
16224 instead of genera_operand mode attribute.
16225
16226 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
16227
16228 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
16229 fopen and fclose to their respective types.
16230 (DotFn.invoke): Ditto.
16231
16232 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
16233
16234 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
16235 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
16236 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
16237 (array_index_predicate): Remove.
16238 (analyze_function_body): Account cost for variable ofsetted array
16239 indexing.
16240 (estimate_node_size_and_time): Do not compute array index hint.
16241 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
16242 (inline_read_section): Do not read array index hint.
16243 (ipa_fn_summary_write): Do not write array index hint.
16244 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
16245 * ipa-cp.c (hint_time_bonus): Remove.
16246 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
16247 (ipa_fnsummary): Remove array_index.
16248 * ipa-inline.c (want_inline_small_function_p): Do not use
16249 array_index.
16250 (edge_badness): Likewise.
16251 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
16252
16253 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
16254
16255 PR target/91148
16256 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
16257 superfluous "builtin function" phrasing.
16258
16259 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
16260
16261 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
16262 Break out from ...
16263 (aliasing_component_refs_walk): Break out from ...
16264 (aliasing_component_refs_p): ... here.
16265
16266 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
16267
16268 PR target/91148
16269 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
16270 "builtin function" phrasing.
16271
16272 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16273
16274 PR target/90723
16275 * recog.h (temporary_volatile_ok): New class.
16276 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
16277 volatile_ok temporarily to true using temporary_volatile_ok.
16278 * expr.c (emit_block_move_via_cpymem): Likewise.
16279 * optabs.c (maybe_legitimize_operand): Likewise.
16280
16281 2019-07-13 Jakub Jelinek <jakub@redhat.com>
16282
16283 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
16284 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
16285 uses inside of order(concurrent) constructs.
16286 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
16287 OMP_CLAUSE_ORDER is seen.
16288 * omp-low.c (struct omp_context): Add order_concurrent member.
16289 (scan_sharing_clauses): Set ctx->order_concurrent if
16290 OMP_CLAUSE_ORDER is seen.
16291 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
16292 of simd order(concurrent). Diagnose constructs not allowed inside of
16293 for order(concurrent).
16294 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
16295 complaining about static double setjmp (double); or class static
16296 methods or non-global namespace setjmps.
16297 (omp_runtime_api_call): New function.
16298 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
16299 order(concurrent) loops.
16300
16301 2019-07-12 Martin Sebor <msebor@redhat.com>
16302
16303 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
16304 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
16305 * tree-vrp.c (vrp_prop::check_mem_ref): Use
16306 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
16307
16308 2019-07-12 Jan Hubicka <jh@suse.cz>
16309
16310 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
16311 (indirect_refs_may_alias_p): ... here.
16312 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
16313 mem refs in the access paths.
16314
16315 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
16316
16317 PR tree-optimization/89430
16318 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
16319 store elimination for local variable without address escape.
16320
16321 2019-07-12 Jeff Law <law@redhat.com>
16322
16323 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
16324 for the ".far" section.
16325
16326 2019-07-12 Richard Biener <rguenther@suse.de>
16327
16328 PR tree-optimization/91145
16329 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
16330 chain check.
16331
16332 2019-07-12 Alexandre Oliva <oliva@adacore.com>
16333
16334 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
16335 rather than this_state as the lowering context for the ELSE
16336 seq in a GIMPLE_EH_ELSE.
16337
16338 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
16339
16340 * vector-builder.h (vector_builder::elt): Allow already-supplied
16341 elements to be read back before building is complete.
16342
16343 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
16344
16345 PR rtl-optimization/91136
16346 * df-core.c (ACCESSING REFS): Fix typos in comment.
16347 * resource.c (mark_target_live_reg): Add artificial defs that occur at
16348 the beginning of the block to the initial set of live registers.
16349
16350 2019-07-12 Richard Biener <rguenther@suse.de>
16351
16352 * fold-const.h (get_array_ctor_element_at_index): Adjust.
16353 * fold-const.c (get_array_ctor_element_at_index): Add
16354 ctor_idx output parameter informing the caller where in
16355 the constructor the element was (not) found. Add early exit
16356 for when the ctor is sorted.
16357 * gimple-fold.c (fold_array_ctor_reference): Support constant
16358 folding across multiple array elements.
16359
16360 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
16361
16362 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
16363 doesn't have location, set the current location to the function's end.
16364
16365 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
16366
16367 * config/aarch64/aarch64.md (*compare_condjump<mode>)
16368 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
16369 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
16370 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
16371 * config/aarch64/aarch64-simd.md
16372 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
16373 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
16374 * config/aarch64/aarch64-sve.md
16375 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
16376 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
16377
16378 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
16379
16380 * doc/md.texi: Document that @ patterns can have different
16381 numbers of operands.
16382 * genemit.c (handle_overloaded_gen): Handle this case.
16383 * genopinit.c (handle_overloaded_gen): Likewise.
16384 * gensupport.c (replace_operands_with_dups): Iterate over
16385 the new rtx's format rather than the old one's.
16386
16387 2019-07-12 Jakub Jelinek <jakub@redhat.com>
16388
16389 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
16390 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
16391 order clause entries.
16392 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
16393 * tree-pretty-print.c (dump_omp_clause): Likewise.
16394 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
16395 Likewise.
16396 * omp-low.c (scan_sharing_clauses): Likewise.
16397 * tree-nested.c (convert_nonlocal_omp_clauses,
16398 convert_local_omp_clauses): Likewise.
16399
16400 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
16401
16402 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
16403 fallthrough target of current basic block isn't the placed
16404 right next.
16405
16406 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
16407
16408 PR target/90980
16409 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
16410 (_mm512_storeu_epi64): Likewise.
16411 (_mm512_loadu_epi32): Likewise.
16412 (_mm512_storeu_epi32): Likewise.
16413 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
16414 (_mm_storeu_epi64): Likewise.
16415 (_mm256_storeu_epi32): Likewise.
16416 (_mm_storeu_epi32): Likewise.
16417
16418 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
16419
16420 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
16421
16422 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
16423
16424 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
16425 Handle Modula-2.
16426
16427 2019-07-11 Jakub Jelinek <jakub@redhat.com>
16428
16429 PR target/91124
16430 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
16431 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
16432 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
16433 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
16434 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
16435 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
16436 define_insns.
16437 (ufix_truncv2dfv2si2<mask_name>): Change into ...
16438 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
16439 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
16440 define_insns.
16441 (sse2_cvttpd2dq<mask_name>): Change into ...
16442 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
16443 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
16444 (*sse2_cvtpd2dq<mask_name>): Change into ...
16445 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
16446 Add "C" constraint to const0_operand.
16447 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
16448 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
16449 changes.
16450
16451 PR target/91124
16452 * config/i386/i386-builtin-types.def
16453 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
16454 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
16455 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
16456 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
16457 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
16458 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
16459 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
16460 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
16461 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
16462 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
16463 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
16464 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
16465 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
16466 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
16467 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
16468 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
16469 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
16470 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
16471 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
16472 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
16473 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
16474 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
16475 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
16476 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
16477 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
16478 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
16479 __builtin_ia32_vpdpbusd_v4si_maskz,
16480 __builtin_ia32_vpdpbusds_v16si_mask,
16481 __builtin_ia32_vpdpbusds_v16si_maskz,
16482 __builtin_ia32_vpdpbusds_v8si_mask,
16483 __builtin_ia32_vpdpbusds_v8si_maskz,
16484 __builtin_ia32_vpdpbusds_v4si_mask,
16485 __builtin_ia32_vpdpbusds_v4si_maskz,
16486 __builtin_ia32_vpdpwssd_v16si_mask,
16487 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
16488 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
16489 __builtin_ia32_vpdpwssd_v4si_maskz,
16490 __builtin_ia32_vpdpwssds_v16si_mask,
16491 __builtin_ia32_vpdpwssds_v16si_maskz,
16492 __builtin_ia32_vpdpwssds_v8si_mask,
16493 __builtin_ia32_vpdpwssds_v8si_maskz,
16494 __builtin_ia32_vpdpwssds_v4si_mask,
16495 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
16496 suffixed types rather than *_INT.
16497 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
16498 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
16499 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
16500 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
16501 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
16502 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
16503
16504 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
16505
16506 * tree-vrp.c (intersect_ranges): If we know the intersection is
16507 empty, there is no need to conservatively add anything else to
16508 the set.
16509
16510 2019-07-11 Richard Biener <rguenther@suse.de>
16511
16512 PR middle-end/91131
16513 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
16514 when the object is volatile and we have not cleared it even though
16515 there are no nonzero elements.
16516
16517 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
16518
16519 * config/rs6000/predicates.md (cint34_operand): Update
16520 SIGNED_34BIT_OFFSET_P call.
16521 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
16522 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
16523 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
16524 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
16525 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
16526 argument.
16527 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
16528 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
16529 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
16530 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
16531 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
16532
16533 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
16534
16535 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
16536 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
16537 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
16538 (DEF_MIN_OSX_VERSION): New.
16539
16540 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
16541
16542 * fold-const.c (fold_relational_const): Fix folding of
16543 vector-to-scalar NE_EXPRs.
16544 (test_vector_folding): Add more tests.
16545
16546 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
16547
16548 PR target/91060
16549 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
16550 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
16551 (vec_setv2di_internal): Reexpress as...
16552 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
16553 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
16554 rather than gen_neon_vset_lane<mode>.
16555
16556 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
16557
16558 PR target/91102
16559 * lra-constraints.c (process_alt_operands): Don't match user
16560 defined regs only if they are early clobbers.
16561
16562 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
16563
16564 * wide-int.h (wi::lshift): Reject negative values for the fast path.
16565
16566 2019-07-10 Richard Biener <rguenther@suse.de>
16567
16568 PR tree-optimization/91126
16569 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
16570 native encoding offset for BYTES_BIG_ENDIAN.
16571 (vn_reference_lookup_3): Likewise.
16572
16573 2019-07-10 Richard Biener <rguenther@suse.de>
16574
16575 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
16576 LHS whenever possible.
16577
16578 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
16579
16580 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
16581 from ...; work also on duplicated types.
16582 (nonoverlapping_component_refs_since_match): ... here
16583 (ncr_type_uid): Break out from ...
16584 (ncr_compar): ... here; look for TYPE_UID of canonical type if
16585 available.
16586 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
16587 the types and nonoverlapping_component_refs_p_1 to disambiguate.
16588
16589 2019-07-09 Martin Sebor <msebor@redhat.com>
16590
16591 PR tree-optimization/90989
16592 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
16593 optimization to just single character stores.
16594
16595 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
16596
16597 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
16598 Swap operands only once.
16599
16600 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
16601
16602 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
16603 for both call instructions.
16604
16605 2019-07-09 John Darrington <john@darrington.wattle.id.au>
16606
16607 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
16608 rather than GET_MODE_BITSIZE to better handle partial integer modes.
16609
16610 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
16611
16612 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
16613 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
16614 function from rs6000-logue.c back to rs6000.c.
16615 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
16616
16617 2019-07-09 Martin Sebor <msebor@redhat.com>
16618
16619 PR c++/61339
16620 * auto-profile.c: Change class-key of PODs to struct and others
16621 to class.
16622 * basic-block.h: Same.
16623 * bitmap.c (bitmap_alloc): Same.
16624 * bitmap.h: Same.
16625 * builtins.c (expand_builtin_prefetch): Same.
16626 (expand_builtin_interclass_mathfn): Same.
16627 (expand_builtin_strlen): Same.
16628 (expand_builtin_mempcpy_args): Same.
16629 (expand_cmpstr): Same.
16630 (expand_builtin___clear_cache): Same.
16631 (expand_ifn_atomic_bit_test_and): Same.
16632 (expand_builtin_thread_pointer): Same.
16633 (expand_builtin_set_thread_pointer): Same.
16634 * caller-save.c (setup_save_areas): Same.
16635 (replace_reg_with_saved_mem): Same.
16636 (insert_restore): Same.
16637 (insert_save): Same.
16638 (add_used_regs): Same.
16639 * cfg.c (get_bb_copy): Same.
16640 (set_loop_copy): Same.
16641 * cfg.h: Same.
16642 * cfganal.h: Same.
16643 * cfgexpand.c (alloc_stack_frame_space): Same.
16644 (add_stack_var): Same.
16645 (add_stack_var_conflict): Same.
16646 (add_scope_conflicts_1): Same.
16647 (update_alias_info_with_stack_vars): Same.
16648 (expand_used_vars): Same.
16649 * cfghooks.c (redirect_edge_and_branch_force): Same.
16650 (delete_basic_block): Same.
16651 (split_edge): Same.
16652 (make_forwarder_block): Same.
16653 (force_nonfallthru): Same.
16654 (duplicate_block): Same.
16655 (lv_flush_pending_stmts): Same.
16656 * cfghooks.h: Same.
16657 * cfgloop.c (flow_loops_cfg_dump): Same.
16658 (flow_loop_nested_p): Same.
16659 (superloop_at_depth): Same.
16660 (get_loop_latch_edges): Same.
16661 (flow_loop_dump): Same.
16662 (flow_loops_dump): Same.
16663 (flow_loops_free): Same.
16664 (flow_loop_nodes_find): Same.
16665 (establish_preds): Same.
16666 (flow_loop_tree_node_add): Same.
16667 (flow_loop_tree_node_remove): Same.
16668 (flow_loops_find): Same.
16669 (find_subloop_latch_edge_by_profile): Same.
16670 (find_subloop_latch_edge_by_ivs): Same.
16671 (mfb_redirect_edges_in_set): Same.
16672 (form_subloop): Same.
16673 (merge_latch_edges): Same.
16674 (disambiguate_multiple_latches): Same.
16675 (disambiguate_loops_with_multiple_latches): Same.
16676 (flow_bb_inside_loop_p): Same.
16677 (glb_enum_p): Same.
16678 (get_loop_body_with_size): Same.
16679 (get_loop_body): Same.
16680 (fill_sons_in_loop): Same.
16681 (get_loop_body_in_dom_order): Same.
16682 (get_loop_body_in_custom_order): Same.
16683 (release_recorded_exits): Same.
16684 (get_loop_exit_edges): Same.
16685 (num_loop_branches): Same.
16686 (remove_bb_from_loops): Same.
16687 (find_common_loop): Same.
16688 (delete_loop): Same.
16689 (cancel_loop): Same.
16690 (verify_loop_structure): Same.
16691 (loop_preheader_edge): Same.
16692 (loop_exit_edge_p): Same.
16693 (single_exit): Same.
16694 (loop_exits_to_bb_p): Same.
16695 (loop_exits_from_bb_p): Same.
16696 (get_loop_location): Same.
16697 (record_niter_bound): Same.
16698 (get_estimated_loop_iterations_int): Same.
16699 (max_stmt_executions_int): Same.
16700 (likely_max_stmt_executions_int): Same.
16701 (get_estimated_loop_iterations): Same.
16702 (get_max_loop_iterations): Same.
16703 (get_max_loop_iterations_int): Same.
16704 (get_likely_max_loop_iterations): Same.
16705 * cfgloop.h (simple_loop_desc): Same.
16706 (get_loop): Same.
16707 (loop_depth): Same.
16708 (loop_outer): Same.
16709 (loop_iterator::next): Same.
16710 (loop_outermost): Same.
16711 * cfgloopanal.c (mark_irreducible_loops): Same.
16712 (num_loop_insns): Same.
16713 (average_num_loop_insns): Same.
16714 (expected_loop_iterations_unbounded): Same.
16715 (expected_loop_iterations): Same.
16716 (mark_loop_exit_edges): Same.
16717 (single_likely_exit): Same.
16718 * cfgloopmanip.c (fix_bb_placement): Same.
16719 (fix_bb_placements): Same.
16720 (remove_path): Same.
16721 (place_new_loop): Same.
16722 (add_loop): Same.
16723 (scale_loop_frequencies): Same.
16724 (scale_loop_profile): Same.
16725 (create_empty_if_region_on_edge): Same.
16726 (create_empty_loop_on_edge): Same.
16727 (loopify): Same.
16728 (unloop): Same.
16729 (fix_loop_placements): Same.
16730 (copy_loop_info): Same.
16731 (duplicate_loop): Same.
16732 (duplicate_subloops): Same.
16733 (loop_redirect_edge): Same.
16734 (can_duplicate_loop_p): Same.
16735 (duplicate_loop_to_header_edge): Same.
16736 (mfb_keep_just): Same.
16737 (has_preds_from_loop): Same.
16738 (create_preheader): Same.
16739 (create_preheaders): Same.
16740 (lv_adjust_loop_entry_edge): Same.
16741 (loop_version): Same.
16742 * cfgloopmanip.h: Same.
16743 * cgraph.h: Same.
16744 * cgraphbuild.c: Same.
16745 * combine.c (make_extraction): Same.
16746 * config/i386/i386-features.c: Same.
16747 * config/i386/i386-features.h: Same.
16748 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
16749 (ix86_emit_outlined_ms2sysv_restore): Same.
16750 (ix86_noce_conversion_profitable_p): Same.
16751 (ix86_init_cost): Same.
16752 (ix86_simd_clone_usable): Same.
16753 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
16754 Wstruct-not-pod.
16755 * coretypes.h: Same.
16756 * data-streamer-in.c (string_for_index): Change class-key of PODs
16757 to struct and others to class.
16758 (streamer_read_indexed_string): Same.
16759 (streamer_read_string): Same.
16760 (bp_unpack_indexed_string): Same.
16761 (bp_unpack_string): Same.
16762 (streamer_read_uhwi): Same.
16763 (streamer_read_hwi): Same.
16764 (streamer_read_gcov_count): Same.
16765 (streamer_read_wide_int): Same.
16766 * data-streamer.h (streamer_write_bitpack): Same.
16767 (bp_unpack_value): Same.
16768 (streamer_write_char_stream): Same.
16769 (streamer_write_hwi_in_range): Same.
16770 (streamer_write_record_start): Same.
16771 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
16772 (add_cross_iteration_register_deps): Same.
16773 (build_intra_loop_deps): Same.
16774 * df-core.c (df_analyze): Same.
16775 (loop_post_order_compute): Same.
16776 (loop_inverted_post_order_compute): Same.
16777 * df-problems.c (df_rd_alloc): Same.
16778 (df_rd_simulate_one_insn): Same.
16779 (df_rd_local_compute): Same.
16780 (df_rd_init_solution): Same.
16781 (df_rd_confluence_n): Same.
16782 (df_rd_transfer_function): Same.
16783 (df_rd_free): Same.
16784 (df_rd_dump_defs_set): Same.
16785 (df_rd_top_dump): Same.
16786 (df_lr_alloc): Same.
16787 (df_lr_reset): Same.
16788 (df_lr_local_compute): Same.
16789 (df_lr_init): Same.
16790 (df_lr_confluence_n): Same.
16791 (df_lr_free): Same.
16792 (df_lr_top_dump): Same.
16793 (df_lr_verify_transfer_functions): Same.
16794 (df_live_alloc): Same.
16795 (df_live_reset): Same.
16796 (df_live_init): Same.
16797 (df_live_confluence_n): Same.
16798 (df_live_finalize): Same.
16799 (df_live_free): Same.
16800 (df_live_top_dump): Same.
16801 (df_live_verify_transfer_functions): Same.
16802 (df_mir_alloc): Same.
16803 (df_mir_reset): Same.
16804 (df_mir_init): Same.
16805 (df_mir_confluence_n): Same.
16806 (df_mir_free): Same.
16807 (df_mir_top_dump): Same.
16808 (df_word_lr_alloc): Same.
16809 (df_word_lr_reset): Same.
16810 (df_word_lr_init): Same.
16811 (df_word_lr_confluence_n): Same.
16812 (df_word_lr_free): Same.
16813 (df_word_lr_top_dump): Same.
16814 (df_md_alloc): Same.
16815 (df_md_simulate_one_insn): Same.
16816 (df_md_reset): Same.
16817 (df_md_init): Same.
16818 (df_md_free): Same.
16819 (df_md_top_dump): Same.
16820 * df-scan.c (df_insn_delete): Same.
16821 (df_insn_rescan): Same.
16822 (df_notes_rescan): Same.
16823 (df_sort_and_compress_mws): Same.
16824 (df_install_mws): Same.
16825 (df_refs_add_to_chains): Same.
16826 (df_ref_create_structure): Same.
16827 (df_ref_record): Same.
16828 (df_def_record_1): Same.
16829 (df_find_hard_reg_defs): Same.
16830 (df_uses_record): Same.
16831 (df_get_conditional_uses): Same.
16832 (df_get_call_refs): Same.
16833 (df_recompute_luids): Same.
16834 (df_get_entry_block_def_set): Same.
16835 (df_entry_block_defs_collect): Same.
16836 (df_get_exit_block_use_set): Same.
16837 (df_exit_block_uses_collect): Same.
16838 (df_mws_verify): Same.
16839 (df_bb_verify): Same.
16840 * df.h (df_scan_get_bb_info): Same.
16841 * doc/tm.texi: Same.
16842 * dse.c (record_store): Same.
16843 * dumpfile.h: Same.
16844 * emit-rtl.c (const_fixed_hasher::equal): Same.
16845 (set_mem_attributes_minus_bitpos): Same.
16846 (change_address): Same.
16847 (adjust_address_1): Same.
16848 (offset_address): Same.
16849 * emit-rtl.h: Same.
16850 * except.c (dw2_build_landing_pads): Same.
16851 (sjlj_emit_dispatch_table): Same.
16852 * explow.c (allocate_dynamic_stack_space): Same.
16853 (emit_stack_probe): Same.
16854 (probe_stack_range): Same.
16855 * expmed.c (store_bit_field_using_insv): Same.
16856 (store_bit_field_1): Same.
16857 (store_integral_bit_field): Same.
16858 (extract_bit_field_using_extv): Same.
16859 (extract_bit_field_1): Same.
16860 (emit_cstore): Same.
16861 * expr.c (emit_block_move_via_cpymem): Same.
16862 (expand_cmpstrn_or_cmpmem): Same.
16863 (set_storage_via_setmem): Same.
16864 (emit_single_push_insn_1): Same.
16865 (expand_assignment): Same.
16866 (store_constructor): Same.
16867 (expand_expr_real_2): Same.
16868 (expand_expr_real_1): Same.
16869 (try_casesi): Same.
16870 * flags.h: Same.
16871 * function.c (try_fit_stack_local): Same.
16872 (assign_stack_local_1): Same.
16873 (assign_stack_local): Same.
16874 (cut_slot_from_list): Same.
16875 (insert_slot_to_list): Same.
16876 (max_slot_level): Same.
16877 (move_slot_to_level): Same.
16878 (temp_address_hasher::equal): Same.
16879 (remove_unused_temp_slot_addresses): Same.
16880 (assign_temp): Same.
16881 (combine_temp_slots): Same.
16882 (update_temp_slot_address): Same.
16883 (preserve_temp_slots): Same.
16884 * function.h: Same.
16885 * fwprop.c: Same.
16886 * gcc-rich-location.h: Same.
16887 * gcov.c: Same.
16888 * genattrtab.c (check_attr_test): Same.
16889 (check_attr_value): Same.
16890 (convert_set_attr_alternative): Same.
16891 (convert_set_attr): Same.
16892 (check_defs): Same.
16893 (copy_boolean): Same.
16894 (get_attr_value): Same.
16895 (expand_delays): Same.
16896 (make_length_attrs): Same.
16897 (min_fn): Same.
16898 (make_alternative_compare): Same.
16899 (simplify_test_exp): Same.
16900 (tests_attr_p): Same.
16901 (get_attr_order): Same.
16902 (clear_struct_flag): Same.
16903 (gen_attr): Same.
16904 (compares_alternatives_p): Same.
16905 (gen_insn): Same.
16906 (gen_delay): Same.
16907 (find_attrs_to_cache): Same.
16908 (write_test_expr): Same.
16909 (walk_attr_value): Same.
16910 (write_attr_get): Same.
16911 (eliminate_known_true): Same.
16912 (write_insn_cases): Same.
16913 (write_attr_case): Same.
16914 (write_attr_valueq): Same.
16915 (write_attr_value): Same.
16916 (write_dummy_eligible_delay): Same.
16917 (next_comma_elt): Same.
16918 (find_attr): Same.
16919 (make_internal_attr): Same.
16920 (copy_rtx_unchanging): Same.
16921 (gen_insn_reserv): Same.
16922 (check_tune_attr): Same.
16923 (make_automaton_attrs): Same.
16924 (handle_arg): Same.
16925 * genextract.c (gen_insn): Same.
16926 (VEC_char_to_string): Same.
16927 * genmatch.c (print_operand): Same.
16928 (lower): Same.
16929 (parser::parse_operation): Same.
16930 (parser::parse_capture): Same.
16931 (parser::parse_c_expr): Same.
16932 (parser::parse_simplify): Same.
16933 (main): Same.
16934 * genoutput.c (output_operand_data): Same.
16935 (output_get_insn_name): Same.
16936 (compare_operands): Same.
16937 (place_operands): Same.
16938 (process_template): Same.
16939 (validate_insn_alternatives): Same.
16940 (validate_insn_operands): Same.
16941 (gen_expand): Same.
16942 (note_constraint): Same.
16943 * genpreds.c (write_one_predicate_function): Same.
16944 (add_constraint): Same.
16945 (process_define_register_constraint): Same.
16946 (write_lookup_constraint_1): Same.
16947 (write_lookup_constraint_array): Same.
16948 (write_insn_constraint_len): Same.
16949 (write_reg_class_for_constraint_1): Same.
16950 (write_constraint_satisfied_p_array): Same.
16951 * genrecog.c (optimize_subroutine_group): Same.
16952 * gensupport.c (process_define_predicate): Same.
16953 (queue_pattern): Same.
16954 (remove_from_queue): Same.
16955 (process_rtx): Same.
16956 (is_predicable): Same.
16957 (change_subst_attribute): Same.
16958 (subst_pattern_match): Same.
16959 (alter_constraints): Same.
16960 (alter_attrs_for_insn): Same.
16961 (shift_output_template): Same.
16962 (alter_output_for_subst_insn): Same.
16963 (process_one_cond_exec): Same.
16964 (subst_dup): Same.
16965 (process_define_cond_exec): Same.
16966 (mnemonic_htab_callback): Same.
16967 (gen_mnemonic_attr): Same.
16968 (read_md_rtx): Same.
16969 * ggc-page.c: Same.
16970 * gimple-loop-interchange.cc (dump_reduction): Same.
16971 (dump_induction): Same.
16972 (loop_cand::~loop_cand): Same.
16973 (free_data_refs_with_aux): Same.
16974 (tree_loop_interchange::interchange_loops): Same.
16975 (tree_loop_interchange::map_inductions_to_loop): Same.
16976 (tree_loop_interchange::move_code_to_inner_loop): Same.
16977 (compute_access_stride): Same.
16978 (compute_access_strides): Same.
16979 (proper_loop_form_for_interchange): Same.
16980 (tree_loop_interchange_compute_ddrs): Same.
16981 (prune_datarefs_not_in_loop): Same.
16982 (prepare_data_references): Same.
16983 (pass_linterchange::execute): Same.
16984 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
16985 (unroll_jam_possible_p): Same.
16986 (fuse_loops): Same.
16987 (adjust_unroll_factor): Same.
16988 (tree_loop_unroll_and_jam): Same.
16989 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
16990 (loop_versioning::expensive_stmt_p): Same.
16991 (loop_versioning::version_for_unity): Same.
16992 (loop_versioning::dump_inner_likelihood): Same.
16993 (loop_versioning::find_per_loop_multiplication): Same.
16994 (loop_versioning::analyze_term_using_scevs): Same.
16995 (loop_versioning::record_address_fragment): Same.
16996 (loop_versioning::analyze_expr): Same.
16997 (loop_versioning::analyze_blocks): Same.
16998 (loop_versioning::prune_conditions): Same.
16999 (loop_versioning::merge_loop_info): Same.
17000 (loop_versioning::add_loop_to_queue): Same.
17001 (loop_versioning::decide_whether_loop_is_versionable): Same.
17002 (loop_versioning::make_versioning_decisions): Same.
17003 (loop_versioning::implement_versioning_decisions): Same.
17004 * gimple-ssa-evrp-analyze.c
17005 (evrp_range_analyzer::record_ranges_from_phis): Same.
17006 * gimple-ssa-store-merging.c (split_store::split_store): Same.
17007 (count_multiple_uses): Same.
17008 (split_group): Same.
17009 (imm_store_chain_info::output_merged_store): Same.
17010 (pass_store_merging::process_store): Same.
17011 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
17012 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
17013 (is_max): Same.
17014 (alloca_call_type): Same.
17015 (pass_walloca::execute): Same.
17016 * gimple-streamer-in.c (input_phi): Same.
17017 (input_gimple_stmt): Same.
17018 * gimple-streamer.h: Same.
17019 * godump.c (go_force_record_alignment): Same.
17020 (go_format_type): Same.
17021 (go_output_type): Same.
17022 (go_output_fndecl): Same.
17023 (go_output_typedef): Same.
17024 (keyword_hash_init): Same.
17025 (find_dummy_types): Same.
17026 * graph.c (draw_cfg_nodes_no_loops): Same.
17027 (draw_cfg_nodes_for_loop): Same.
17028 * hard-reg-set.h (hard_reg_set_iter_next): Same.
17029 * hsa-brig.c: Same.
17030 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
17031 * hsa-dump.c (dump_hsa_cfun): Same.
17032 * hsa-gen.c (gen_function_def_parameters): Same.
17033 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
17034 * input.c (dump_line_table_statistics): Same.
17035 (test_lexer): Same.
17036 * input.h: Same.
17037 * internal-fn.c (get_multi_vector_move): Same.
17038 (expand_load_lanes_optab_fn): Same.
17039 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
17040 (expand_GOMP_SIMT_EXIT): Same.
17041 (expand_GOMP_SIMT_LAST_LANE): Same.
17042 (expand_GOMP_SIMT_ORDERED_PRED): Same.
17043 (expand_GOMP_SIMT_VOTE_ANY): Same.
17044 (expand_GOMP_SIMT_XCHG_BFLY): Same.
17045 (expand_GOMP_SIMT_XCHG_IDX): Same.
17046 (expand_addsub_overflow): Same.
17047 (expand_neg_overflow): Same.
17048 (expand_mul_overflow): Same.
17049 (expand_call_mem_ref): Same.
17050 (expand_mask_load_optab_fn): Same.
17051 (expand_scatter_store_optab_fn): Same.
17052 (expand_gather_load_optab_fn): Same.
17053 * ipa-cp.c (ipa_get_parm_lattices): Same.
17054 (print_all_lattices): Same.
17055 (ignore_edge_p): Same.
17056 (build_toporder_info): Same.
17057 (free_toporder_info): Same.
17058 (push_node_to_stack): Same.
17059 (ipcp_lattice<valtype>::set_contains_variable): Same.
17060 (set_agg_lats_to_bottom): Same.
17061 (ipcp_bits_lattice::meet_with): Same.
17062 (set_single_call_flag): Same.
17063 (initialize_node_lattices): Same.
17064 (ipa_get_jf_ancestor_result): Same.
17065 (ipcp_verify_propagated_values): Same.
17066 (propagate_scalar_across_jump_function): Same.
17067 (propagate_context_across_jump_function): Same.
17068 (propagate_bits_across_jump_function): Same.
17069 (ipa_vr_operation_and_type_effects): Same.
17070 (propagate_vr_across_jump_function): Same.
17071 (set_check_aggs_by_ref): Same.
17072 (set_chain_of_aglats_contains_variable): Same.
17073 (merge_aggregate_lattices): Same.
17074 (agg_pass_through_permissible_p): Same.
17075 (propagate_aggs_across_jump_function): Same.
17076 (call_passes_through_thunk_p): Same.
17077 (propagate_constants_across_call): Same.
17078 (devirtualization_time_bonus): Same.
17079 (good_cloning_opportunity_p): Same.
17080 (context_independent_aggregate_values): Same.
17081 (gather_context_independent_values): Same.
17082 (perform_estimation_of_a_value): Same.
17083 (estimate_local_effects): Same.
17084 (value_topo_info<valtype>::add_val): Same.
17085 (add_all_node_vals_to_toposort): Same.
17086 (value_topo_info<valtype>::propagate_effects): Same.
17087 (ipcp_propagate_stage): Same.
17088 (ipcp_discover_new_direct_edges): Same.
17089 (same_node_or_its_all_contexts_clone_p): Same.
17090 (cgraph_edge_brings_value_p): Same.
17091 (gather_edges_for_value): Same.
17092 (create_specialized_node): Same.
17093 (find_more_scalar_values_for_callers_subset): Same.
17094 (find_more_contexts_for_caller_subset): Same.
17095 (copy_plats_to_inter): Same.
17096 (intersect_aggregates_with_edge): Same.
17097 (find_aggregate_values_for_callers_subset): Same.
17098 (cgraph_edge_brings_all_agg_vals_for_node): Same.
17099 (decide_about_value): Same.
17100 (decide_whether_version_node): Same.
17101 (spread_undeadness): Same.
17102 (identify_dead_nodes): Same.
17103 (ipcp_store_vr_results): Same.
17104 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
17105 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
17106 (redirect_to_unreachable): Same.
17107 (edge_set_predicate): Same.
17108 (evaluate_conditions_for_known_args): Same.
17109 (evaluate_properties_for_edge): Same.
17110 (ipa_fn_summary_t::duplicate): Same.
17111 (ipa_call_summary_t::duplicate): Same.
17112 (dump_ipa_call_summary): Same.
17113 (ipa_dump_fn_summary): Same.
17114 (eliminated_by_inlining_prob): Same.
17115 (set_cond_stmt_execution_predicate): Same.
17116 (set_switch_stmt_execution_predicate): Same.
17117 (compute_bb_predicates): Same.
17118 (will_be_nonconstant_expr_predicate): Same.
17119 (phi_result_unknown_predicate): Same.
17120 (analyze_function_body): Same.
17121 (compute_fn_summary): Same.
17122 (estimate_edge_devirt_benefit): Same.
17123 (estimate_edge_size_and_time): Same.
17124 (estimate_calls_size_and_time): Same.
17125 (estimate_node_size_and_time): Same.
17126 (remap_edge_change_prob): Same.
17127 (remap_edge_summaries): Same.
17128 (ipa_merge_fn_summary_after_inlining): Same.
17129 (ipa_fn_summary_generate): Same.
17130 (inline_read_section): Same.
17131 (ipa_fn_summary_read): Same.
17132 (ipa_fn_summary_write): Same.
17133 * ipa-fnsummary.h: Same.
17134 * ipa-hsa.c (ipa_hsa_read_section): Same.
17135 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
17136 * ipa-icf.c (sem_function::param_used_p): Same.
17137 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
17138 * ipa-inline.c (edge_badness): Same.
17139 (inline_small_functions): Same.
17140 * ipa-polymorphic-call.c
17141 (ipa_polymorphic_call_context::stream_out): Same.
17142 * ipa-predicate.c (predicate::remap_after_duplication): Same.
17143 (predicate::remap_after_inlining): Same.
17144 (predicate::stream_out): Same.
17145 * ipa-predicate.h: Same.
17146 * ipa-profile.c (ipa_profile_read_summary): Same.
17147 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
17148 (count_formal_params): Same.
17149 (ipa_dump_param): Same.
17150 (ipa_alloc_node_params): Same.
17151 (ipa_print_node_jump_functions_for_edge): Same.
17152 (ipa_print_node_jump_functions): Same.
17153 (ipa_load_from_parm_agg): Same.
17154 (get_ancestor_addr_info): Same.
17155 (ipa_compute_jump_functions_for_edge): Same.
17156 (ipa_analyze_virtual_call_uses): Same.
17157 (ipa_analyze_stmt_uses): Same.
17158 (ipa_analyze_params_uses_in_bb): Same.
17159 (update_jump_functions_after_inlining): Same.
17160 (try_decrement_rdesc_refcount): Same.
17161 (ipa_impossible_devirt_target): Same.
17162 (update_indirect_edges_after_inlining): Same.
17163 (combine_controlled_uses_counters): Same.
17164 (ipa_edge_args_sum_t::duplicate): Same.
17165 (ipa_write_jump_function): Same.
17166 (ipa_write_indirect_edge_info): Same.
17167 (ipa_write_node_info): Same.
17168 (ipa_read_edge_info): Same.
17169 (ipa_prop_read_section): Same.
17170 (read_replacements_section): Same.
17171 * ipa-prop.h (ipa_get_param_count): Same.
17172 (ipa_get_param): Same.
17173 (ipa_get_type): Same.
17174 (ipa_get_param_move_cost): Same.
17175 (ipa_set_param_used): Same.
17176 (ipa_get_controlled_uses): Same.
17177 (ipa_set_controlled_uses): Same.
17178 (ipa_get_cs_argument_count): Same.
17179 * ipa-pure-const.c (analyze_function): Same.
17180 (pure_const_read_summary): Same.
17181 * ipa-ref.h: Same.
17182 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
17183 * ipa-split.c (test_nonssa_use): Same.
17184 (dump_split_point): Same.
17185 (dominated_by_forbidden): Same.
17186 (split_part_set_ssa_name_p): Same.
17187 (find_split_points): Same.
17188 * ira-build.c (finish_loop_tree_nodes): Same.
17189 (low_pressure_loop_node_p): Same.
17190 * ira-color.c (ira_reuse_stack_slot): Same.
17191 * ira-int.h: Same.
17192 * ira.c (setup_reg_equiv): Same.
17193 (print_insn_chain): Same.
17194 (ira): Same.
17195 * loop-doloop.c (doloop_condition_get): Same.
17196 (add_test): Same.
17197 (record_reg_sets): Same.
17198 (doloop_optimize): Same.
17199 * loop-init.c (loop_optimizer_init): Same.
17200 (fix_loop_structure): Same.
17201 * loop-invariant.c (merge_identical_invariants): Same.
17202 (compute_always_reached): Same.
17203 (find_exits): Same.
17204 (may_assign_reg_p): Same.
17205 (find_invariants_bb): Same.
17206 (find_invariants_body): Same.
17207 (replace_uses): Same.
17208 (can_move_invariant_reg): Same.
17209 (free_inv_motion_data): Same.
17210 (move_single_loop_invariants): Same.
17211 (change_pressure): Same.
17212 (mark_ref_regs): Same.
17213 (calculate_loop_reg_pressure): Same.
17214 * loop-iv.c (biv_entry_hasher::equal): Same.
17215 (iv_extend_to_rtx_code): Same.
17216 (check_iv_ref_table_size): Same.
17217 (clear_iv_info): Same.
17218 (latch_dominating_def): Same.
17219 (iv_get_reaching_def): Same.
17220 (iv_constant): Same.
17221 (iv_subreg): Same.
17222 (iv_extend): Same.
17223 (iv_neg): Same.
17224 (iv_add): Same.
17225 (iv_mult): Same.
17226 (get_biv_step): Same.
17227 (record_iv): Same.
17228 (analyzed_for_bivness_p): Same.
17229 (record_biv): Same.
17230 (iv_analyze_biv): Same.
17231 (iv_analyze_expr): Same.
17232 (iv_analyze_def): Same.
17233 (iv_analyze_op): Same.
17234 (iv_analyze): Same.
17235 (iv_analyze_result): Same.
17236 (biv_p): Same.
17237 (eliminate_implied_conditions): Same.
17238 (simplify_using_initial_values): Same.
17239 (shorten_into_mode): Same.
17240 (canonicalize_iv_subregs): Same.
17241 (determine_max_iter): Same.
17242 (check_simple_exit): Same.
17243 (find_simple_exit): Same.
17244 (get_simple_loop_desc): Same.
17245 * loop-unroll.c (report_unroll): Same.
17246 (decide_unrolling): Same.
17247 (unroll_loops): Same.
17248 (loop_exit_at_end_p): Same.
17249 (decide_unroll_constant_iterations): Same.
17250 (unroll_loop_constant_iterations): Same.
17251 (compare_and_jump_seq): Same.
17252 (unroll_loop_runtime_iterations): Same.
17253 (decide_unroll_stupid): Same.
17254 (unroll_loop_stupid): Same.
17255 (referenced_in_one_insn_in_loop_p): Same.
17256 (reset_debug_uses_in_loop): Same.
17257 (analyze_iv_to_split_insn): Same.
17258 * lra-eliminations.c (lra_debug_elim_table): Same.
17259 (setup_can_eliminate): Same.
17260 (form_sum): Same.
17261 (lra_get_elimination_hard_regno): Same.
17262 (lra_eliminate_regs_1): Same.
17263 (eliminate_regs_in_insn): Same.
17264 (update_reg_eliminate): Same.
17265 (init_elimination): Same.
17266 (lra_eliminate): Same.
17267 * lra-int.h: Same.
17268 * lra-lives.c (initiate_live_solver): Same.
17269 * lra-remat.c (create_remat_bb_data): Same.
17270 * lra-spills.c (lra_spill): Same.
17271 * lra.c (lra_set_insn_recog_data): Same.
17272 (lra_set_used_insn_alternative_by_uid): Same.
17273 (init_reg_info): Same.
17274 (expand_reg_info): Same.
17275 * lto-cgraph.c (output_symtab): Same.
17276 (read_identifier): Same.
17277 (get_alias_symbol): Same.
17278 (input_node): Same.
17279 (input_varpool_node): Same.
17280 (input_ref): Same.
17281 (input_edge): Same.
17282 (input_cgraph_1): Same.
17283 (input_refs): Same.
17284 (input_symtab): Same.
17285 (input_offload_tables): Same.
17286 (output_cgraph_opt_summary): Same.
17287 (input_edge_opt_summary): Same.
17288 (input_cgraph_opt_section): Same.
17289 * lto-section-in.c (lto_free_raw_section_data): Same.
17290 (lto_create_simple_input_block): Same.
17291 (lto_free_function_in_decl_state_for_node): Same.
17292 * lto-streamer-in.c (lto_tag_check_set): Same.
17293 (lto_location_cache::revert_location_cache): Same.
17294 (lto_location_cache::input_location): Same.
17295 (lto_input_location): Same.
17296 (stream_input_location_now): Same.
17297 (lto_input_tree_ref): Same.
17298 (lto_input_eh_catch_list): Same.
17299 (input_eh_region): Same.
17300 (lto_init_eh): Same.
17301 (make_new_block): Same.
17302 (input_cfg): Same.
17303 (fixup_call_stmt_edges): Same.
17304 (input_struct_function_base): Same.
17305 (input_function): Same.
17306 (lto_read_body_or_constructor): Same.
17307 (lto_read_tree_1): Same.
17308 (lto_read_tree): Same.
17309 (lto_input_scc): Same.
17310 (lto_input_tree_1): Same.
17311 (lto_input_toplevel_asms): Same.
17312 (lto_input_mode_table): Same.
17313 (lto_reader_init): Same.
17314 (lto_data_in_create): Same.
17315 * lto-streamer-out.c (output_cfg): Same.
17316 * lto-streamer.h: Same.
17317 * modulo-sched.c (duplicate_insns_of_cycles): Same.
17318 (generate_prolog_epilog): Same.
17319 (mark_loop_unsched): Same.
17320 (dump_insn_location): Same.
17321 (loop_canon_p): Same.
17322 (sms_schedule): Same.
17323 * omp-expand.c (expand_omp_for_ordered_loops): Same.
17324 (expand_omp_for_generic): Same.
17325 (expand_omp_for_static_nochunk): Same.
17326 (expand_omp_for_static_chunk): Same.
17327 (expand_omp_simd): Same.
17328 (expand_omp_taskloop_for_inner): Same.
17329 (expand_oacc_for): Same.
17330 (expand_omp_atomic_pipeline): Same.
17331 (mark_loops_in_oacc_kernels_region): Same.
17332 * omp-offload.c (oacc_xform_loop): Same.
17333 * omp-simd-clone.c (simd_clone_adjust): Same.
17334 * optabs-query.c (get_traditional_extraction_insn): Same.
17335 * optabs.c (expand_vector_broadcast): Same.
17336 (expand_binop_directly): Same.
17337 (expand_twoval_unop): Same.
17338 (expand_twoval_binop): Same.
17339 (expand_unop_direct): Same.
17340 (emit_indirect_jump): Same.
17341 (emit_conditional_move): Same.
17342 (emit_conditional_neg_or_complement): Same.
17343 (emit_conditional_add): Same.
17344 (vector_compare_rtx): Same.
17345 (expand_vec_perm_1): Same.
17346 (expand_vec_perm_const): Same.
17347 (expand_vec_cond_expr): Same.
17348 (expand_vec_series_expr): Same.
17349 (maybe_emit_atomic_exchange): Same.
17350 (maybe_emit_sync_lock_test_and_set): Same.
17351 (expand_atomic_compare_and_swap): Same.
17352 (expand_atomic_load): Same.
17353 (expand_atomic_store): Same.
17354 (maybe_emit_op): Same.
17355 (valid_multiword_target_p): Same.
17356 (create_integer_operand): Same.
17357 (maybe_legitimize_operand_same_code): Same.
17358 (maybe_legitimize_operand): Same.
17359 (create_convert_operand_from_type): Same.
17360 (can_reuse_operands_p): Same.
17361 (maybe_legitimize_operands): Same.
17362 (maybe_gen_insn): Same.
17363 (maybe_expand_insn): Same.
17364 (maybe_expand_jump_insn): Same.
17365 (expand_insn): Same.
17366 * optabs.h (create_expand_operand): Same.
17367 (create_fixed_operand): Same.
17368 (create_output_operand): Same.
17369 (create_input_operand): Same.
17370 (create_convert_operand_to): Same.
17371 (create_convert_operand_from): Same.
17372 * optinfo.h: Same.
17373 * poly-int.h: Same.
17374 * predict.c (optimize_insn_for_speed_p): Same.
17375 (optimize_loop_for_size_p): Same.
17376 (optimize_loop_for_speed_p): Same.
17377 (optimize_loop_nest_for_speed_p): Same.
17378 (get_base_value): Same.
17379 (predicted_by_loop_heuristics_p): Same.
17380 (predict_extra_loop_exits): Same.
17381 (predict_loops): Same.
17382 (predict_paths_for_bb): Same.
17383 (predict_paths_leading_to): Same.
17384 (propagate_freq): Same.
17385 (pass_profile::execute): Same.
17386 * predict.h: Same.
17387 * profile-count.c (profile_count::differs_from_p): Same.
17388 (profile_probability::differs_lot_from_p): Same.
17389 * profile-count.h: Same.
17390 * profile.c (branch_prob): Same.
17391 * regrename.c (free_chain_data): Same.
17392 (mark_conflict): Same.
17393 (create_new_chain): Same.
17394 (merge_overlapping_regs): Same.
17395 (init_rename_info): Same.
17396 (merge_chains): Same.
17397 (regrename_analyze): Same.
17398 (regrename_do_replace): Same.
17399 (scan_rtx_reg): Same.
17400 (record_out_operands): Same.
17401 (build_def_use): Same.
17402 * regrename.h: Same.
17403 * reload.h: Same.
17404 * reload1.c (init_reload): Same.
17405 (maybe_fix_stack_asms): Same.
17406 (copy_reloads): Same.
17407 (count_pseudo): Same.
17408 (count_spilled_pseudo): Same.
17409 (find_reg): Same.
17410 (find_reload_regs): Same.
17411 (select_reload_regs): Same.
17412 (spill_hard_reg): Same.
17413 (fixup_eh_region_note): Same.
17414 (set_reload_reg): Same.
17415 (allocate_reload_reg): Same.
17416 (compute_reload_subreg_offset): Same.
17417 (reload_adjust_reg_for_icode): Same.
17418 (emit_input_reload_insns): Same.
17419 (emit_output_reload_insns): Same.
17420 (do_input_reload): Same.
17421 (inherit_piecemeal_p): Same.
17422 * rtl.h: Same.
17423 * sanopt.c (maybe_get_dominating_check): Same.
17424 (maybe_optimize_ubsan_ptr_ifn): Same.
17425 (can_remove_asan_check): Same.
17426 (maybe_optimize_asan_check_ifn): Same.
17427 (sanopt_optimize_walker): Same.
17428 * sched-deps.c (add_dependence_list): Same.
17429 (chain_to_prev_insn): Same.
17430 (add_insn_mem_dependence): Same.
17431 (create_insn_reg_set): Same.
17432 (maybe_extend_reg_info_p): Same.
17433 (sched_analyze_reg): Same.
17434 (sched_analyze_1): Same.
17435 (get_implicit_reg_pending_clobbers): Same.
17436 (chain_to_prev_insn_p): Same.
17437 (deps_analyze_insn): Same.
17438 (deps_start_bb): Same.
17439 (sched_free_deps): Same.
17440 (init_deps): Same.
17441 (init_deps_reg_last): Same.
17442 (free_deps): Same.
17443 * sched-ebb.c: Same.
17444 * sched-int.h: Same.
17445 * sched-rgn.c (add_branch_dependences): Same.
17446 (concat_insn_mem_list): Same.
17447 (deps_join): Same.
17448 (sched_rgn_compute_dependencies): Same.
17449 * sel-sched-ir.c (reset_target_context): Same.
17450 (copy_deps_context): Same.
17451 (init_id_from_df): Same.
17452 (has_dependence_p): Same.
17453 (change_loops_latches): Same.
17454 (bb_top_order_comparator): Same.
17455 (make_region_from_loop_preheader): Same.
17456 (sel_init_pipelining): Same.
17457 (get_loop_nest_for_rgn): Same.
17458 (make_regions_from_the_rest): Same.
17459 (sel_is_loop_preheader_p): Same.
17460 * sel-sched-ir.h (inner_loop_header_p): Same.
17461 (get_all_loop_exits): Same.
17462 * selftest.h: Same.
17463 * sese.c (sese_build_liveouts): Same.
17464 (sese_insert_phis_for_liveouts): Same.
17465 * sese.h (defined_in_sese_p): Same.
17466 * sreal.c (sreal::stream_out): Same.
17467 * sreal.h: Same.
17468 * streamer-hooks.h: Same.
17469 * target-globals.c (save_target_globals): Same.
17470 * target-globals.h: Same.
17471 * target.def: Same.
17472 * target.h: Same.
17473 * targhooks.c (default_has_ifunc_p): Same.
17474 (default_empty_mask_is_expensive): Same.
17475 (default_init_cost): Same.
17476 * targhooks.h: Same.
17477 * toplev.c: Same.
17478 * tree-affine.c (aff_combination_mult): Same.
17479 (aff_combination_expand): Same.
17480 (aff_combination_constant_multiple_p): Same.
17481 * tree-affine.h: Same.
17482 * tree-cfg.c (build_gimple_cfg): Same.
17483 (replace_loop_annotate_in_block): Same.
17484 (replace_uses_by): Same.
17485 (remove_bb): Same.
17486 (dump_cfg_stats): Same.
17487 (gimple_duplicate_sese_region): Same.
17488 (gimple_duplicate_sese_tail): Same.
17489 (move_block_to_fn): Same.
17490 (replace_block_vars_by_duplicates): Same.
17491 (move_sese_region_to_fn): Same.
17492 (print_loops_bb): Same.
17493 (print_loop): Same.
17494 (print_loops): Same.
17495 (debug): Same.
17496 (debug_loops): Same.
17497 * tree-cfg.h: Same.
17498 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
17499 (chrec_fold_multiply_poly_poly): Same.
17500 (chrec_evaluate): Same.
17501 (chrec_component_in_loop_num): Same.
17502 (reset_evolution_in_loop): Same.
17503 (is_multivariate_chrec): Same.
17504 (chrec_contains_symbols): Same.
17505 (nb_vars_in_chrec): Same.
17506 (chrec_convert_1): Same.
17507 (chrec_convert_aggressive): Same.
17508 * tree-chrec.h: Same.
17509 * tree-core.h: Same.
17510 * tree-data-ref.c (dump_data_dependence_relation): Same.
17511 (canonicalize_base_object_address): Same.
17512 (data_ref_compare_tree): Same.
17513 (prune_runtime_alias_test_list): Same.
17514 (get_segment_min_max): Same.
17515 (create_intersect_range_checks): Same.
17516 (conflict_fn_no_dependence): Same.
17517 (object_address_invariant_in_loop_p): Same.
17518 (analyze_ziv_subscript): Same.
17519 (analyze_siv_subscript_cst_affine): Same.
17520 (analyze_miv_subscript): Same.
17521 (analyze_overlapping_iterations): Same.
17522 (build_classic_dist_vector_1): Same.
17523 (add_other_self_distances): Same.
17524 (same_access_functions): Same.
17525 (build_classic_dir_vector): Same.
17526 (subscript_dependence_tester_1): Same.
17527 (subscript_dependence_tester): Same.
17528 (access_functions_are_affine_or_constant_p): Same.
17529 (get_references_in_stmt): Same.
17530 (loop_nest_has_data_refs): Same.
17531 (graphite_find_data_references_in_stmt): Same.
17532 (find_data_references_in_bb): Same.
17533 (get_base_for_alignment): Same.
17534 (find_loop_nest_1): Same.
17535 (find_loop_nest): Same.
17536 * tree-data-ref.h (dr_alignment): Same.
17537 (ddr_dependence_level): Same.
17538 * tree-if-conv.c (fold_build_cond_expr): Same.
17539 (add_to_predicate_list): Same.
17540 (add_to_dst_predicate_list): Same.
17541 (phi_convertible_by_degenerating_args): Same.
17542 (idx_within_array_bound): Same.
17543 (all_preds_critical_p): Same.
17544 (pred_blocks_visited_p): Same.
17545 (predicate_bbs): Same.
17546 (build_region): Same.
17547 (if_convertible_loop_p_1): Same.
17548 (is_cond_scalar_reduction): Same.
17549 (predicate_scalar_phi): Same.
17550 (remove_conditions_and_labels): Same.
17551 (combine_blocks): Same.
17552 (version_loop_for_if_conversion): Same.
17553 (versionable_outer_loop_p): Same.
17554 (ifcvt_local_dce): Same.
17555 (tree_if_conversion): Same.
17556 (pass_if_conversion::gate): Same.
17557 * tree-if-conv.h: Same.
17558 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
17559 * tree-loop-distribution.c (bb_top_order_cmp): Same.
17560 (free_rdg): Same.
17561 (stmt_has_scalar_dependences_outside_loop): Same.
17562 (copy_loop_before): Same.
17563 (create_bb_after_loop): Same.
17564 (const_with_all_bytes_same): Same.
17565 (generate_memset_builtin): Same.
17566 (generate_memcpy_builtin): Same.
17567 (destroy_loop): Same.
17568 (build_rdg_partition_for_vertex): Same.
17569 (compute_access_range): Same.
17570 (data_ref_segment_size): Same.
17571 (latch_dominated_by_data_ref): Same.
17572 (compute_alias_check_pairs): Same.
17573 (fuse_memset_builtins): Same.
17574 (finalize_partitions): Same.
17575 (find_seed_stmts_for_distribution): Same.
17576 (prepare_perfect_loop_nest): Same.
17577 * tree-parloops.c (lambda_transform_legal_p): Same.
17578 (loop_parallel_p): Same.
17579 (reduc_stmt_res): Same.
17580 (add_field_for_name): Same.
17581 (create_call_for_reduction_1): Same.
17582 (replace_uses_in_bb_by): Same.
17583 (transform_to_exit_first_loop_alt): Same.
17584 (try_transform_to_exit_first_loop_alt): Same.
17585 (transform_to_exit_first_loop): Same.
17586 (num_phis): Same.
17587 (gen_parallel_loop): Same.
17588 (gather_scalar_reductions): Same.
17589 (get_omp_data_i_param): Same.
17590 (try_create_reduction_list): Same.
17591 (oacc_entry_exit_single_gang): Same.
17592 (parallelize_loops): Same.
17593 * tree-pass.h: Same.
17594 * tree-predcom.c (determine_offset): Same.
17595 (last_always_executed_block): Same.
17596 (split_data_refs_to_components): Same.
17597 (suitable_component_p): Same.
17598 (valid_initializer_p): Same.
17599 (find_looparound_phi): Same.
17600 (insert_looparound_copy): Same.
17601 (add_looparound_copies): Same.
17602 (determine_roots_comp): Same.
17603 (predcom_tmp_var): Same.
17604 (initialize_root_vars): Same.
17605 (initialize_root_vars_store_elim_1): Same.
17606 (initialize_root_vars_store_elim_2): Same.
17607 (finalize_eliminated_stores): Same.
17608 (initialize_root_vars_lm): Same.
17609 (remove_stmt): Same.
17610 (determine_unroll_factor): Same.
17611 (execute_pred_commoning_cbck): Same.
17612 (base_names_in_chain_on): Same.
17613 (combine_chains): Same.
17614 (pcom_stmt_dominates_stmt_p): Same.
17615 (try_combine_chains): Same.
17616 (prepare_initializers_chain_store_elim): Same.
17617 (prepare_initializers_chain): Same.
17618 (prepare_initializers): Same.
17619 (prepare_finalizers_chain): Same.
17620 (prepare_finalizers): Same.
17621 (insert_init_seqs): Same.
17622 * tree-scalar-evolution.c (loop_phi_node_p): Same.
17623 (compute_overall_effect_of_inner_loop): Same.
17624 (add_to_evolution_1): Same.
17625 (add_to_evolution): Same.
17626 (follow_ssa_edge_binary): Same.
17627 (follow_ssa_edge_expr): Same.
17628 (backedge_phi_arg_p): Same.
17629 (follow_ssa_edge_in_condition_phi_branch): Same.
17630 (follow_ssa_edge_in_condition_phi): Same.
17631 (follow_ssa_edge_inner_loop_phi): Same.
17632 (follow_ssa_edge): Same.
17633 (analyze_evolution_in_loop): Same.
17634 (analyze_initial_condition): Same.
17635 (interpret_loop_phi): Same.
17636 (interpret_condition_phi): Same.
17637 (interpret_rhs_expr): Same.
17638 (interpret_expr): Same.
17639 (interpret_gimple_assign): Same.
17640 (analyze_scalar_evolution_1): Same.
17641 (analyze_scalar_evolution): Same.
17642 (analyze_scalar_evolution_for_address_of): Same.
17643 (get_instantiated_value_entry): Same.
17644 (loop_closed_phi_def): Same.
17645 (instantiate_scev_name): Same.
17646 (instantiate_scev_poly): Same.
17647 (instantiate_scev_binary): Same.
17648 (instantiate_scev_convert): Same.
17649 (instantiate_scev_not): Same.
17650 (instantiate_scev_r): Same.
17651 (instantiate_scev): Same.
17652 (resolve_mixers): Same.
17653 (initialize_scalar_evolutions_analyzer): Same.
17654 (scev_reset_htab): Same.
17655 (scev_reset): Same.
17656 (derive_simple_iv_with_niters): Same.
17657 (simple_iv_with_niters): Same.
17658 (expression_expensive_p): Same.
17659 (final_value_replacement_loop): Same.
17660 * tree-scalar-evolution.h (block_before_loop): Same.
17661 * tree-ssa-address.h: Same.
17662 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
17663 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
17664 (record_edge_info): Same.
17665 * tree-ssa-live.c (var_map_base_fini): Same.
17666 (remove_unused_locals): Same.
17667 * tree-ssa-live.h: Same.
17668 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
17669 (pass_ch_vect::execute): Same.
17670 (pass_ch::process_loop_p): Same.
17671 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
17672 (movement_possibility): Same.
17673 (outermost_invariant_loop): Same.
17674 (stmt_cost): Same.
17675 (determine_max_movement): Same.
17676 (invariantness_dom_walker::before_dom_children): Same.
17677 (move_computations): Same.
17678 (may_move_till): Same.
17679 (force_move_till_op): Same.
17680 (force_move_till): Same.
17681 (memref_free): Same.
17682 (record_mem_ref_loc): Same.
17683 (set_ref_stored_in_loop): Same.
17684 (mark_ref_stored): Same.
17685 (sort_bbs_in_loop_postorder_cmp): Same.
17686 (sort_locs_in_loop_postorder_cmp): Same.
17687 (analyze_memory_references): Same.
17688 (mem_refs_may_alias_p): Same.
17689 (find_ref_loc_in_loop_cmp): Same.
17690 (rewrite_mem_ref_loc::operator): Same.
17691 (first_mem_ref_loc_1::operator): Same.
17692 (sm_set_flag_if_changed::operator): Same.
17693 (execute_sm_if_changed_flag_set): Same.
17694 (execute_sm): Same.
17695 (hoist_memory_references): Same.
17696 (ref_always_accessed::operator): Same.
17697 (refs_independent_p): Same.
17698 (record_dep_loop): Same.
17699 (ref_indep_loop_p_1): Same.
17700 (ref_indep_loop_p): Same.
17701 (can_sm_ref_p): Same.
17702 (find_refs_for_sm): Same.
17703 (loop_suitable_for_sm): Same.
17704 (store_motion_loop): Same.
17705 (store_motion): Same.
17706 (fill_always_executed_in): Same.
17707 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
17708 (estimated_unrolled_size): Same.
17709 (loop_edge_to_cancel): Same.
17710 (remove_exits_and_undefined_stmts): Same.
17711 (remove_redundant_iv_tests): Same.
17712 (unloop_loops): Same.
17713 (estimated_peeled_sequence_size): Same.
17714 (try_peel_loop): Same.
17715 (canonicalize_loop_induction_variables): Same.
17716 (canonicalize_induction_variables): Same.
17717 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
17718 (name_info): Same.
17719 (stmt_after_inc_pos): Same.
17720 (contains_abnormal_ssa_name_p): Same.
17721 (niter_for_exit): Same.
17722 (find_bivs): Same.
17723 (mark_bivs): Same.
17724 (find_givs_in_bb): Same.
17725 (find_induction_variables): Same.
17726 (find_interesting_uses_cond): Same.
17727 (outermost_invariant_loop_for_expr): Same.
17728 (idx_find_step): Same.
17729 (add_candidate_1): Same.
17730 (add_iv_candidate_derived_from_uses): Same.
17731 (alloc_use_cost_map): Same.
17732 (prepare_decl_rtl): Same.
17733 (generic_predict_doloop_p): Same.
17734 (computation_cost): Same.
17735 (determine_common_wider_type): Same.
17736 (get_computation_aff_1): Same.
17737 (get_use_type): Same.
17738 (determine_group_iv_cost_address): Same.
17739 (iv_period): Same.
17740 (difference_cannot_overflow_p): Same.
17741 (may_eliminate_iv): Same.
17742 (determine_set_costs): Same.
17743 (cheaper_cost_pair): Same.
17744 (compare_cost_pair): Same.
17745 (iv_ca_cand_for_group): Same.
17746 (iv_ca_recount_cost): Same.
17747 (iv_ca_set_remove_invs): Same.
17748 (iv_ca_set_no_cp): Same.
17749 (iv_ca_set_add_invs): Same.
17750 (iv_ca_set_cp): Same.
17751 (iv_ca_add_group): Same.
17752 (iv_ca_cost): Same.
17753 (iv_ca_compare_deps): Same.
17754 (iv_ca_delta_reverse): Same.
17755 (iv_ca_delta_commit): Same.
17756 (iv_ca_cand_used_p): Same.
17757 (iv_ca_delta_free): Same.
17758 (iv_ca_new): Same.
17759 (iv_ca_free): Same.
17760 (iv_ca_dump): Same.
17761 (iv_ca_extend): Same.
17762 (iv_ca_narrow): Same.
17763 (iv_ca_prune): Same.
17764 (cheaper_cost_with_cand): Same.
17765 (iv_ca_replace): Same.
17766 (try_add_cand_for): Same.
17767 (get_initial_solution): Same.
17768 (try_improve_iv_set): Same.
17769 (find_optimal_iv_set_1): Same.
17770 (create_new_iv): Same.
17771 (rewrite_use_compare): Same.
17772 (remove_unused_ivs): Same.
17773 (determine_scaling_factor): Same.
17774 * tree-ssa-loop-ivopts.h: Same.
17775 * tree-ssa-loop-manip.c (create_iv): Same.
17776 (compute_live_loop_exits): Same.
17777 (add_exit_phi): Same.
17778 (add_exit_phis): Same.
17779 (find_uses_to_rename_use): Same.
17780 (find_uses_to_rename_def): Same.
17781 (find_uses_to_rename_in_loop): Same.
17782 (rewrite_into_loop_closed_ssa): Same.
17783 (check_loop_closed_ssa_bb): Same.
17784 (split_loop_exit_edge): Same.
17785 (ip_end_pos): Same.
17786 (ip_normal_pos): Same.
17787 (copy_phi_node_args): Same.
17788 (gimple_duplicate_loop_to_header_edge): Same.
17789 (can_unroll_loop_p): Same.
17790 (determine_exit_conditions): Same.
17791 (scale_dominated_blocks_in_loop): Same.
17792 (niter_for_unrolled_loop): Same.
17793 (tree_transform_and_unroll_loop): Same.
17794 (rewrite_all_phi_nodes_with_iv): Same.
17795 * tree-ssa-loop-manip.h: Same.
17796 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
17797 (number_of_iterations_ne): Same.
17798 (assert_no_overflow_lt): Same.
17799 (assert_loop_rolls_lt): Same.
17800 (number_of_iterations_lt): Same.
17801 (adjust_cond_for_loop_until_wrap): Same.
17802 (tree_simplify_using_condition): Same.
17803 (simplify_using_initial_conditions): Same.
17804 (simplify_using_outer_evolutions): Same.
17805 (loop_only_exit_p): Same.
17806 (ssa_defined_by_minus_one_stmt_p): Same.
17807 (number_of_iterations_popcount): Same.
17808 (number_of_iterations_exit): Same.
17809 (find_loop_niter): Same.
17810 (finite_loop_p): Same.
17811 (chain_of_csts_start): Same.
17812 (get_val_for): Same.
17813 (loop_niter_by_eval): Same.
17814 (derive_constant_upper_bound_ops): Same.
17815 (do_warn_aggressive_loop_optimizations): Same.
17816 (record_estimate): Same.
17817 (get_cst_init_from_scev): Same.
17818 (record_nonwrapping_iv): Same.
17819 (idx_infer_loop_bounds): Same.
17820 (infer_loop_bounds_from_ref): Same.
17821 (infer_loop_bounds_from_array): Same.
17822 (infer_loop_bounds_from_pointer_arith): Same.
17823 (infer_loop_bounds_from_signedness): Same.
17824 (bound_index): Same.
17825 (discover_iteration_bound_by_body_walk): Same.
17826 (maybe_lower_iteration_bound): Same.
17827 (estimate_numbers_of_iterations): Same.
17828 (estimated_loop_iterations): Same.
17829 (estimated_loop_iterations_int): Same.
17830 (max_loop_iterations): Same.
17831 (max_loop_iterations_int): Same.
17832 (likely_max_loop_iterations): Same.
17833 (likely_max_loop_iterations_int): Same.
17834 (estimated_stmt_executions_int): Same.
17835 (max_stmt_executions): Same.
17836 (likely_max_stmt_executions): Same.
17837 (estimated_stmt_executions): Same.
17838 (stmt_dominates_stmt_p): Same.
17839 (nowrap_type_p): Same.
17840 (loop_exits_before_overflow): Same.
17841 (scev_var_range_cant_overflow): Same.
17842 (scev_probably_wraps_p): Same.
17843 (free_numbers_of_iterations_estimates): Same.
17844 * tree-ssa-loop-niter.h: Same.
17845 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
17846 (idx_analyze_ref): Same.
17847 (analyze_ref): Same.
17848 (gather_memory_references_ref): Same.
17849 (mark_nontemporal_store): Same.
17850 (emit_mfence_after_loop): Same.
17851 (may_use_storent_in_loop_p): Same.
17852 (mark_nontemporal_stores): Same.
17853 (should_unroll_loop_p): Same.
17854 (volume_of_dist_vector): Same.
17855 (add_subscript_strides): Same.
17856 (self_reuse_distance): Same.
17857 (insn_to_prefetch_ratio_too_small_p): Same.
17858 * tree-ssa-loop-split.c (split_at_bb_p): Same.
17859 (patch_loop_exit): Same.
17860 (find_or_create_guard_phi): Same.
17861 (easy_exit_values): Same.
17862 (connect_loop_phis): Same.
17863 (connect_loops): Same.
17864 (compute_new_first_bound): Same.
17865 (split_loop): Same.
17866 (tree_ssa_split_loops): Same.
17867 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
17868 (is_maybe_undefined): Same.
17869 (tree_may_unswitch_on): Same.
17870 (simplify_using_entry_checks): Same.
17871 (tree_unswitch_single_loop): Same.
17872 (tree_unswitch_loop): Same.
17873 (tree_unswitch_outer_loop): Same.
17874 (empty_bb_without_guard_p): Same.
17875 (used_outside_loop_p): Same.
17876 (get_vop_from_header): Same.
17877 (hoist_guard): Same.
17878 * tree-ssa-loop.c (gate_oacc_kernels): Same.
17879 (get_lsm_tmp_name): Same.
17880 * tree-ssa-loop.h: Same.
17881 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
17882 (build_and_add_sum): Same.
17883 (no_side_effect_bb): Same.
17884 (get_ops): Same.
17885 (linearize_expr): Same.
17886 (should_break_up_subtract): Same.
17887 (linearize_expr_tree): Same.
17888 * tree-ssa-scopedtables.c: Same.
17889 * tree-ssa-scopedtables.h: Same.
17890 * tree-ssa-structalias.c (condense_visit): Same.
17891 (label_visit): Same.
17892 (dump_pred_graph): Same.
17893 (perform_var_substitution): Same.
17894 (move_complex_constraints): Same.
17895 (remove_preds_and_fake_succs): Same.
17896 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
17897 (determine_bb_domination_status): Same.
17898 (duplicate_thread_path): Same.
17899 (thread_through_all_blocks): Same.
17900 * tree-ssa-threadupdate.h: Same.
17901 * tree-streamer-in.c (streamer_read_string_cst): Same.
17902 (input_identifier): Same.
17903 (unpack_ts_type_common_value_fields): Same.
17904 (unpack_ts_block_value_fields): Same.
17905 (unpack_ts_translation_unit_decl_value_fields): Same.
17906 (unpack_ts_omp_clause_value_fields): Same.
17907 (streamer_read_tree_bitfields): Same.
17908 (streamer_alloc_tree): Same.
17909 (lto_input_ts_common_tree_pointers): Same.
17910 (lto_input_ts_vector_tree_pointers): Same.
17911 (lto_input_ts_poly_tree_pointers): Same.
17912 (lto_input_ts_complex_tree_pointers): Same.
17913 (lto_input_ts_decl_minimal_tree_pointers): Same.
17914 (lto_input_ts_decl_common_tree_pointers): Same.
17915 (lto_input_ts_decl_non_common_tree_pointers): Same.
17916 (lto_input_ts_decl_with_vis_tree_pointers): Same.
17917 (lto_input_ts_field_decl_tree_pointers): Same.
17918 (lto_input_ts_function_decl_tree_pointers): Same.
17919 (lto_input_ts_type_common_tree_pointers): Same.
17920 (lto_input_ts_type_non_common_tree_pointers): Same.
17921 (lto_input_ts_list_tree_pointers): Same.
17922 (lto_input_ts_vec_tree_pointers): Same.
17923 (lto_input_ts_exp_tree_pointers): Same.
17924 (lto_input_ts_block_tree_pointers): Same.
17925 (lto_input_ts_binfo_tree_pointers): Same.
17926 (lto_input_ts_constructor_tree_pointers): Same.
17927 (lto_input_ts_omp_clause_tree_pointers): Same.
17928 (streamer_read_tree_body): Same.
17929 * tree-streamer.h: Same.
17930 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
17931 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
17932 (vect_analyze_possibly_independent_ddr): Same.
17933 (vect_analyze_data_ref_dependence): Same.
17934 (vect_compute_data_ref_alignment): Same.
17935 (vect_enhance_data_refs_alignment): Same.
17936 (vect_analyze_data_ref_access): Same.
17937 (vect_check_gather_scatter): Same.
17938 (vect_find_stmt_data_reference): Same.
17939 (vect_create_addr_base_for_vector_ref): Same.
17940 (vect_setup_realignment): Same.
17941 (vect_supportable_dr_alignment): Same.
17942 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
17943 (adjust_phi_and_debug_stmts): Same.
17944 (vect_set_loop_mask): Same.
17945 (add_preheader_seq): Same.
17946 (vect_maybe_permute_loop_masks): Same.
17947 (vect_set_loop_masks_directly): Same.
17948 (vect_set_loop_condition_masked): Same.
17949 (vect_set_loop_condition_unmasked): Same.
17950 (slpeel_duplicate_current_defs_from_edges): Same.
17951 (slpeel_add_loop_guard): Same.
17952 (slpeel_can_duplicate_loop_p): Same.
17953 (create_lcssa_for_virtual_phi): Same.
17954 (iv_phi_p): Same.
17955 (vect_update_ivs_after_vectorizer): Same.
17956 (vect_gen_vector_loop_niters_mult_vf): Same.
17957 (slpeel_update_phi_nodes_for_loops): Same.
17958 (slpeel_update_phi_nodes_for_guard1): Same.
17959 (find_guard_arg): Same.
17960 (slpeel_update_phi_nodes_for_guard2): Same.
17961 (slpeel_update_phi_nodes_for_lcssa): Same.
17962 (vect_do_peeling): Same.
17963 (vect_create_cond_for_alias_checks): Same.
17964 (vect_loop_versioning): Same.
17965 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
17966 (vect_inner_phi_in_double_reduction_p): Same.
17967 (vect_analyze_scalar_cycles_1): Same.
17968 (vect_fixup_scalar_cycles_with_patterns): Same.
17969 (vect_get_loop_niters): Same.
17970 (bb_in_loop_p): Same.
17971 (vect_get_max_nscalars_per_iter): Same.
17972 (vect_verify_full_masking): Same.
17973 (vect_compute_single_scalar_iteration_cost): Same.
17974 (vect_analyze_loop_form_1): Same.
17975 (vect_analyze_loop_form): Same.
17976 (vect_active_double_reduction_p): Same.
17977 (vect_analyze_loop_operations): Same.
17978 (neutral_op_for_slp_reduction): Same.
17979 (vect_is_simple_reduction): Same.
17980 (vect_model_reduction_cost): Same.
17981 (get_initial_def_for_reduction): Same.
17982 (get_initial_defs_for_reduction): Same.
17983 (vect_create_epilog_for_reduction): Same.
17984 (vectorize_fold_left_reduction): Same.
17985 (vectorizable_reduction): Same.
17986 (vectorizable_induction): Same.
17987 (vectorizable_live_operation): Same.
17988 (loop_niters_no_overflow): Same.
17989 (vect_get_loop_mask): Same.
17990 (vect_transform_loop_stmt): Same.
17991 (vect_transform_loop): Same.
17992 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
17993 (vect_determine_precisions): Same.
17994 (vect_pattern_recog_1): Same.
17995 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
17996 * tree-vect-stmts.c (stmt_vectype): Same.
17997 (process_use): Same.
17998 (vect_init_vector_1): Same.
17999 (vect_truncate_gather_scatter_offset): Same.
18000 (get_group_load_store_type): Same.
18001 (vect_build_gather_load_calls): Same.
18002 (vect_get_strided_load_store_ops): Same.
18003 (vectorizable_simd_clone_call): Same.
18004 (vectorizable_store): Same.
18005 (permute_vec_elements): Same.
18006 (vectorizable_load): Same.
18007 (vect_transform_stmt): Same.
18008 (supportable_widening_operation): Same.
18009 * tree-vectorizer.c (vec_info::replace_stmt): Same.
18010 (vec_info::free_stmt_vec_info): Same.
18011 (vect_free_loop_info_assumptions): Same.
18012 (vect_loop_vectorized_call): Same.
18013 (set_uid_loop_bbs): Same.
18014 (vectorize_loops): Same.
18015 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
18016 * tree.c (add_tree_to_fld_list): Same.
18017 (fld_type_variant_equal_p): Same.
18018 (fld_decl_context): Same.
18019 (fld_incomplete_type_of): Same.
18020 (free_lang_data_in_binfo): Same.
18021 (need_assembler_name_p): Same.
18022 (find_decls_types_r): Same.
18023 (get_eh_types_for_runtime): Same.
18024 (find_decls_types_in_eh_region): Same.
18025 (find_decls_types_in_node): Same.
18026 (assign_assembler_name_if_needed): Same.
18027 * value-prof.c (stream_out_histogram_value): Same.
18028 * value-prof.h: Same.
18029 * var-tracking.c (use_narrower_mode): Same.
18030 (prepare_call_arguments): Same.
18031 (vt_expand_loc_callback): Same.
18032 (resolve_expansions_pending_recursion): Same.
18033 (vt_expand_loc): Same.
18034 * varasm.c (const_hash_1): Same.
18035 (compare_constant): Same.
18036 (tree_output_constant_def): Same.
18037 (simplify_subtraction): Same.
18038 (get_pool_constant): Same.
18039 (output_constant_pool_2): Same.
18040 (output_constant_pool_1): Same.
18041 (mark_constants_in_pattern): Same.
18042 (mark_constant_pool): Same.
18043 (get_section_anchor): Same.
18044 * vr-values.c (compare_range_with_value): Same.
18045 (vr_values::extract_range_from_phi_node): Same.
18046 * vr-values.h: Same.
18047 * web.c (unionfind_union): Same.
18048 * wide-int.h: Same.
18049
18050 2019-07-09 Martin Sebor <msebor@redhat.com>
18051
18052 PR c++/61339
18053 * align.h: Change class-key from class to struct and vice versa
18054 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
18055 * alloc-pool.h: Same.
18056 * asan.c (shadow_mem_size): Same.
18057 * auto-profile.c: Same.
18058 * basic-block.h: Same.
18059 * bitmap.h: Same.
18060 * cfgexpand.c (set_rtl): Same.
18061 (expand_one_stack_var_at): Same.
18062 * cfghooks.h: Same.
18063 * cfgloop.h: Same.
18064 * cgraph.h: Same.
18065 * config/i386/i386.h: Same.
18066 * df-problems.c (df_print_bb_index): Same.
18067 * df-scan.c: Same.
18068 * df.h (df_single_use): Same.
18069 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
18070 (layout::annotation_line_showed_range_p): Same.
18071 (get_printed_columns): Same.
18072 (correction::ensure_terminated): Same.
18073 (line_corrections::~line_corrections): Same.
18074 * dojump.h: Same.
18075 * dse.c: Same.
18076 * dump-context.h: Same.
18077 * dumpfile.h: Same.
18078 * dwarf2out.c: Same.
18079 * edit-context.c: Same.
18080 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
18081 * flags.h: Same.
18082 * function.c (assign_stack_local): Same.
18083 * function.h: Same.
18084 * gcc.c: Same.
18085 * gcov.c (block_info::block_info): Same.
18086 * genattrtab.c: Same.
18087 * genextract.c: Same.
18088 * genmatch.c (comparison_code_p): Same.
18089 (id_base::id_base): Same.
18090 (decision_tree::print): Same.
18091 * genoutput.c: Same.
18092 * genpreds.c (write_one_predicate_function): Same.
18093 * genrecog.c (validate_pattern): Same.
18094 (find_operand_positions): Same.
18095 (optimize_subroutine_group): Same.
18096 (merge_pattern_transition::merge_pattern_transition): Same.
18097 (merge_pattern_info::merge_pattern_info): Same.
18098 (merge_state_result::merge_state_result): Same.
18099 (merge_into_state): Same.
18100 * gensupport.c: Same.
18101 * gensupport.h: Same.
18102 * ggc-common.c (init_ggc_heuristics): Same.
18103 * ggc-tests.c (test_union): Same.
18104 * gimple-loop-interchange.cc (dump_induction): Same.
18105 * gimple-loop-versioning.cc: Same.
18106 * gimple-match.h (gimple_match_cond::any_else): Same.
18107 * gimple-ssa-backprop.c: Same.
18108 * gimple-ssa-sprintf.c: Same.
18109 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
18110 Same.
18111 (store_immediate_info::store_immediate_info): Same.
18112 (merged_store_group::apply_stores): Same.
18113 (get_location_for_stmts): Same.
18114 * gimple-ssa-strength-reduction.c: Same.
18115 * gimple-ssa-warn-alloca.c: Same.
18116 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
18117 * godump.c (go_type_decl): Same.
18118 * hash-map-tests.c (test_map_of_strings_to_int): Same.
18119 * hash-map.h: Same.
18120 * hash-set-tests.c (test_set_of_strings): Same.
18121 * hsa-brig.c: Same.
18122 * hsa-common.h: Same.
18123 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
18124 * input.c (assert_loceq): Same.
18125 * input.h: Same.
18126 * ipa-cp.c: Same.
18127 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
18128 * ipa-fnsummary.h: Same.
18129 * ipa-inline.h: Same.
18130 * ipa-prop.h: Same.
18131 * ipa-split.c (visit_bb): Same.
18132 * ira-int.h (minmax_set_iter_next): Same.
18133 * loop-invariant.c: Same.
18134 * loop-iv.c: Same.
18135 * lra-eliminations.c: Same.
18136 * lra-int.h: Same.
18137 * lra-lives.c (mark_regno_dead): Same.
18138 * lra-remat.c: Same.
18139 * lra-spills.c: Same.
18140 * lto-streamer.h: Same.
18141 * mem-stats.h: Same.
18142 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
18143 * omp-low.c (omp_clause_aligned_alignment): Same.
18144 * optabs-query.h (get_vcond_eq_icode): Same.
18145 * optabs.h: Same.
18146 * opts.c (wrap_help): Same.
18147 * poly-int.h: Same.
18148 * predict.c (predict_paths_leading_to_edge): Same.
18149 * pretty-print.h: Same.
18150 * profile-count.h: Same.
18151 * read-md.h: Same.
18152 * read-rtl-function.c: Same.
18153 * ree.c: Same.
18154 * reginfo.c: Same.
18155 * regrename.c: Same.
18156 * regrename.h: Same.
18157 * reload.h: Same.
18158 * rtl-iter.h: Same.
18159 * rtl.h (costs_add_n_insns): Same.
18160 * sanopt.c: Same.
18161 * sched-int.h: Same.
18162 * sel-sched-ir.h: Same.
18163 * selftest.h: Same.
18164 * sese.h (vec_find): Same.
18165 * stmt.c: Same.
18166 * target-globals.h: Same.
18167 * tree-affine.c (aff_combination_find_elt): Same.
18168 * tree-affine.h: Same.
18169 * tree-data-ref.h: Same.
18170 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
18171 * tree-predcom.c: Same.
18172 * tree-scalar-evolution.c (find_var_scev_info): Same.
18173 * tree-ssa-alias.h: Same.
18174 * tree-ssa-ccp.c: Same.
18175 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
18176 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
18177 (rewrite_mem_refs): Same.
18178 (execute_sm_if_changed): Same.
18179 (hoist_memory_references): Same.
18180 * tree-ssa-loop-ivopts.c (operator<=): Same.
18181 * tree-ssa-loop.h: Same.
18182 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
18183 * tree-ssa-structalias.c: Same.
18184 * tree-switch-conversion.h (cluster::cluster): Same.
18185 (simple_cluster::simple_cluster): Same.
18186 * tree-vect-patterns.c (type_conversion_p): Same.
18187 * tree-vectorizer.c (dump_stmt_cost): Same.
18188 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
18189 * tree.c (protected_set_expr_location): Same.
18190 * tree.h (desired_pro_or_demotion_p): Same.
18191 (fndecl_built_in_p): Same.
18192 * unique-ptr-tests.cc: Same.
18193 * var-tracking.c (delete_variable_part): Same.
18194 * varasm.c (assemble_real): Same.
18195 (tree_output_constant_def): Same.
18196 * vec.c: Same.
18197 * wide-int-bitmask.h: Same.
18198 * wide-int.h (decompose): Same.
18199
18200 2019-07-09 Richard Biener <rguenther@suse.de>
18201
18202 PR tree-optimization/91114
18203 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
18204 find a vector type isn't fatal.
18205
18206 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
18207
18208 * config/aarch64/aarch64-simd.md
18209 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
18210 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
18211 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
18212 (*aarch64_crypto_aese_fused,
18213 *aarch64_crypto_aesd_fused): Update to new definition.
18214 * config/aarch64/aarch64.c
18215 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
18216
18217 2019-07-09 Richard Biener <rguenther@suse.de>
18218
18219 * gimple-match.h (gimple_match_op::resimplify): New.
18220 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
18221 gimple_resimplify4, gimple_resimplify5): Remove.
18222 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
18223 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
18224 Make static.
18225 (gimple_match_op::resimplify): New.
18226 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
18227 according to availability. Use gimple_match_op::resimplify.
18228
18229 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
18230
18231 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
18232
18233 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
18234
18235 * config/arm/crypto.md:
18236 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
18237 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
18238 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
18239 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
18240 * config/arm/arm.c
18241 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
18242 * config/arm/aarch-common-protos.h
18243 (aarch_crypto_can_dual_issue): Remove.
18244 * config/arm/aarch-common.c
18245 (aarch_crypto_can_dual_issue): Likewise.
18246 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
18247 * config/arm/cortex-a53.md: Likewise.
18248 * config/arm/cortex-a57.md: Likewise.
18249 * config/arm/iterators.md:
18250 (CRYPTO_BINARY): Redefine.
18251 (CRYPTO_UNARY): Removed.
18252 (CRYPTO_AES, CRYPTO_AESMC): New.
18253
18254 2019-07-09 Richard Biener <rguenther@suse.de>
18255
18256 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
18257 (vn_reference_lookup_3): If the main ref has no access path recorded
18258 but orig_ref has use it to do access-path based disambiguation.
18259 (vn_reference_lookup_pieces): Adjust.
18260 (vn_reference_lookup): Pass down original ref if we valueized.
18261
18262 2019-07-09 Martin Liska <mliska@suse.cz>
18263
18264 * doc/extend.texi: Document influence on loop
18265 optimizers.
18266
18267 2019-07-09 Martin Liska <mliska@suse.cz>
18268
18269 * lto-compress.c (lto_normalized_zstd_level): Do not use
18270 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
18271 of libzstd. One can use 0 as a default compression level.
18272
18273 2019-07-09 Martin Liska <mliska@suse.cz>
18274
18275 * doc/invoke.texi: Add link from -fprofile-dir option.
18276 Use better wording for 'gcno filename'.
18277
18278 2019-07-08 Martin Sebor <msebor@redhat.com>
18279
18280 PR middle-end/71924
18281 PR middle-end/90549
18282 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
18283 comment.
18284 (args_loc_t): New type.
18285 (args_loc_t, locmap_t): same.
18286 (diag_returned_locals): New function.
18287 (is_addr_local): Same.
18288 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
18289 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
18290 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
18291
18292 2019-07-08 Jakub Jelinek <jakub@redhat.com>
18293
18294 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
18295 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
18296 and casts in offset when different, both through gimple stmts
18297 and through trees. Rewritten using loops to minimize code duplication
18298 for each operand.
18299
18300 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
18301
18302 * emit-rtl.c (set_insn_locations): New function moved from...
18303 * function.c (set_insn_locations): ...here.
18304 * ira-emit.c (emit_moves): Propagate location of the first instruction
18305 to the inserted move instructions.
18306 * reg-stack.c (compensate_edge): Set the location if the sequence is
18307 inserted on the edge.
18308 * rtl.h (set_insn_locations): Declare.
18309
18310 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
18311
18312 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
18313 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
18314 .machine string.
18315
18316 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
18317
18318 PR rtl-optimization/88233
18319 * common.opt (fsplit-wide-types-early): New option.
18320 * common/config/rs6000/rs6000-common.c
18321 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
18322 OPT_LEVELS_ALL.
18323 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
18324 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
18325 flag_split_wide_types_early.
18326 (pass_data_lower_subreg3): New.
18327 (pass_lower_subreg3): New.
18328 (make_pass_lower_subreg3): New.
18329 * passes.def (pass_lower_subreg2): Move after the loop passes.
18330 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
18331 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
18332 the pass pipeline; its previous place is taken by ...
18333 (make_pass_lower_subreg3): ... this.
18334
18335 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
18336
18337 * config/s390/s390.c (s390_shift_truncation_mask): Define.
18338 (TARGET_SHIFT_TRUNCATION_MASK): Define.
18339
18340 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
18341
18342 * config/s390/constraints.md: Add new jsc constraint.
18343 * config/s390/predicates.md: New predicates.
18344 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
18345 * config/s390/s390.c (s390_valid_shift_count): New function.
18346 (print_shift_count_operand): Use s390_valid_shift_count.
18347 (print_operand): Likewise.
18348 * config/s390/s390.md: Use new predicate.
18349 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
18350 * config/s390/vector.md: Use new predicate.
18351
18352 2019-07-08 Andrew Waterman <andrew@sifive.com>
18353 Jim Wilson <jimw@sifive.com>
18354
18355 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
18356 bitsize instead of BITS_PER_WORD.
18357
18358 2019-07-08 Martin Liska <mliska@suse.cz>
18359
18360 * collect2.c (defined): Revert to before r254460.
18361 (scan_prog_file): Revert to before r254460.
18362
18363 2019-07-08 Richard Biener <rguenther@suse.de>
18364
18365 PR tree-optimization/83518
18366 * tree-ssa-sccvn.c: Include splay-tree.h.
18367 (struct pd_range, struct pd_data): New.
18368 (struct vn_walk_cb_data): Add data to track partial definitions.
18369 (vn_walk_cb_data::~vn_walk_cb_data): New.
18370 (vn_walk_cb_data::push_partial_def): New.
18371 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
18372 (vn_reference_lookup_2): When partial defs are registered give up.
18373 (vn_reference_lookup_3): Track partial defs for memset and
18374 constructor zeroing and for defs from constants.
18375
18376 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
18377
18378 * doc/install.texi (bootstrap-Og): Document.
18379
18380 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
18381
18382 * config/riscv/pic.md (*local_pic_load_s<mode>)
18383 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
18384 referenced by <mode>, giving...
18385 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
18386 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
18387 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
18388 use <X:MODE> for the mode attribute.
18389
18390 2019-07-07 Jeff Law <law@redhat.com>
18391
18392 PR tree-optimization/91090
18393 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
18394 in handling of ranges to simplify switch statements.
18395
18396 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
18397
18398 * config/darwin.c (darwin_override_options): Make a final check on PIC
18399 options.
18400
18401 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
18402
18403 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
18404 on for kernel code.
18405
18406 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
18407
18408 PR target/91068
18409 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
18410 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
18411 instead of matching them to "l" output operands.
18412
18413 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
18414
18415 * config/mips/mips.c (mips_split_move): Zero-initialize addr
18416 and check whether addr.reg is nonnull before using it.
18417
18418 2019-07-06 Jakub Jelinek <jakub@redhat.com>
18419
18420 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
18421 ctx->for_simd_scan_phase simd copy the outer var to the privatized
18422 variable(s). For conditional lastprivate look through outer
18423 GIMPLE_OMP_SCAN context.
18424 (lower_omp_1): For conditional lastprivate look through outer
18425 GIMPLE_OMP_SCAN context.
18426
18427 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
18428 member to combined_into_simd_safelen1.
18429 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
18430 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
18431 clauses if ctx->combined_into_simd_safelen1 put statements after the
18432 predicate conditionalized block rather than into it.
18433
18434 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18435
18436 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
18437 operand 1.
18438 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
18439 Make the choice of <mode> explicit, giving...
18440 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
18441
18442 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18443
18444 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
18445 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
18446 of .md attributes.
18447 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
18448 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
18449 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
18450 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
18451 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
18452 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
18453 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
18454 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
18455 (*avx512f_scatterdi<mode>): Likewise.
18456 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
18457
18458 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18459
18460 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
18461 specify the mode iterator referenced by <mode>, giving...
18462 (*push1_h8300hs_<QHI:mode>): ...this.
18463
18464 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18465
18466 * config/gcn/gcn-valu.md
18467 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
18468 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
18469 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
18470 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
18471 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
18472 but using the _exec comparison patterns.
18473 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
18474 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
18475 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
18476 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
18477 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
18478 but using the _exec comparison patterns.
18479
18480 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18481
18482 * config/arm/sync.md
18483 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
18484 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
18485 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
18486 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
18487 <SIDI:cas_cmp_str>.
18488
18489 2019-07-06 Jakub Jelinek <jakub@redhat.com>
18490
18491 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
18492 (maybe_lookup_ctx): Add forward declaration.
18493 (omp_find_scan): Likewise. Walk into body of simd if composited
18494 with worksharing loop.
18495 (scan_omp_simd_scan): New function.
18496 (scan_omp_1_stmt): Call it.
18497 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
18498 ctx->for_simd_scan_phase.
18499 (lower_rec_input_clauses): Do much less work for inscan reductions
18500 in ctx->for_simd_scan_phase is_simd regions.
18501 (lower_omp_scan): Set is_simd also on simd constructs composited
18502 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
18503 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
18504 emit their body after in simd constructs composited with worksharing
18505 loop.
18506 (lower_omp_for_scan): Handle worksharing loop composited with simd.
18507
18508 * omp-low.c (omp_find_scan): Make static.
18509 (lower_omp_for_scan): Fix order of merge arguments in input phase of
18510 the second loop, var2 represents the first partial sum and so needs
18511 to go before rprivb[ivar].
18512
18513 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
18514
18515 * config/rs6000/rs6000-logue.c: Remove unused code.
18516
18517 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
18518
18519 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
18520
18521 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
18522
18523 PR target/90712
18524 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
18525 check with a frame laid out check.
18526
18527 2019-07-05 Richard Biener <rguenther@suse.de>
18528
18529 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
18530 when comparing against a store with possibly the same value.
18531
18532 2019-07-05 Richard Biener <rguenther@suse.de>
18533
18534 PR tree-optimization/91091
18535 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
18536 (walk_non_aliased_vuses): Likewise.
18537 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
18538 (get_continuation_for_phi): New tbaa_p parameter and pass
18539 it down.
18540 (walk_non_aliased_vuses): Likewise.
18541 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
18542 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
18543 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
18544 Likewise.
18545 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
18546 (adjust_offsets_for_equal_base_address): New function.
18547 (vn_reference_lookup_3): Use it to catch more base equivalences.
18548 Handle and pass down tbaa_p flag.
18549 (vn_reference_lookup_pieces): Adjust.
18550 (vn_reference_lookup): Remove alias-set altering, instead pass
18551 down false as tbaa_p.
18552
18553 2019-07-05 Richard Biener <rguenther@suse.de>
18554
18555 PR tree-optimization/91091
18556 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
18557 accesses can happen with -fno-strict-aliasing.
18558
18559 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
18560
18561 * tree-ssa-alias.c (alias_stats): Add
18562 nonoverlapping_component_refs_since_match_p_must_overlap.
18563 (dump_alias_stats): Print it.
18564 (nonoverlapping_component_refs_since_match_p): Add early exit.
18565 (nonoverlapping_component_refs_p): Do not account early exit.
18566
18567 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
18568
18569 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
18570 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
18571 (emit_eh_dispatch): Delete.
18572 (lower_catch): Emit the eh_dispatch manually and set the location of
18573 the first catch statement onto it.
18574 (lower_eh_filter): Emit the eh_dispatch manually and set location.
18575 (lower_eh_dispatch): Propagate location.
18576 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
18577 (eliminate_build): Likewise.
18578
18579 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
18580
18581 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
18582 phi nodes if possible.
18583 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
18584 location info on the newly created statement.
18585 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
18586 newly created increment if needed.
18587
18588 2019-07-04 Jakub Jelinek <jakub@redhat.com>
18589
18590 PR middle-end/78884
18591 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
18592 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
18593 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
18594 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
18595 ctx->add_safelen1 is set.
18596
18597 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
18598 GOMP_loop_start at the start of second worksharing loop in a scan.
18599 For nowait, don't emit GOMP_loop_end_nowait at the end of first
18600 worksharing loop in a scan even if there are conditional lastprivates,
18601 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
18602
18603 2019-07-04 Jan Hubicka <jh@suse.cz>
18604
18605 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
18606 Fix check for match in the ref walk.
18607
18608 2019-07-04 Martin Liska <mliska@suse.cz>
18609
18610 * tree-ssa-loop-niter.c
18611 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
18612 (estimate_numbers_of_iterations):
18613 Support __builtin_expect_with_probability for analysis
18614 of # of loop iterations.
18615
18616 2019-07-04 Alexandre Oliva <oliva@adacore.com>
18617
18618 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
18619 * except.c: Likewise.
18620 * expr.c (expand_expr_real_1): Reject it.
18621 * gimplify.c (gimplify_expr): Gimplify it, within
18622 TRY_FINALLY_EXPR.
18623 * tree-dump.c (dequeue_and_dump): Dump it.
18624 * tree-pretty-print.c (dump_generic_node): Likewise.
18625 * tree.c (block_may_fallthru): Handle it.
18626 * tree.def (EH_ELSE_EXPR): Introduce it.
18627 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
18628 with GIMPLE_EH_ELSE as try/finally/else.
18629
18630 2019-07-04 Richard Biener <rguenther@suse.de>
18631
18632 PR ipa/91062
18633 * tree-pass.h (execute_all_ipa_transforms): Add a flag
18634 parameter whether to disable GC collection.
18635 * passes.c (execute_one_ipa_transform_pass): Likewise, and
18636 honor it.
18637 (execute_all_ipa_transforms): Likewise and pass it down.
18638 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
18639 collection from applying IPA transforms.
18640 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
18641 from applying IPA transforms.
18642
18643 2019-07-04 Richard Biener <rguenther@suse.de>
18644
18645 PR tree-optimization/90911
18646 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
18647 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
18648 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18649 scalar_loop_scaling.
18650 (vect_transform_loop): Scale scalar loop profile if needed.
18651 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
18652 the loop copy from if-conversion adjust edge probabilities
18653 and scale the vectorized loop body profile, queue the scalar
18654 profile for updating after peeling.
18655
18656 2019-07-04 Jan Hubicka <jh@suse.cz>
18657
18658 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
18659 parameters; return early for must-alias.
18660 (indirect_ref_may_alias_decl_p): Likewise; when establishing
18661 outer types match, try nonoverlapping_component_refs
18662 if must-alias is not obvious.
18663 (indirect_refs_may_alias_p): Likewise.
18664 (refs_may_alias_p_2): Likewise.
18665
18666 2019-07-04 Richard Biener <rguenther@suse.de>
18667
18668 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
18669 argument.
18670 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
18671 globals into...
18672 (struct vn_walk_cb_data): New callback data struct.
18673 (vn_reference_lookup_2): Adjust.
18674 (vn_reference_lookup_3): Likewise.
18675 (vn_reference_lookup_pieces): Likewise.
18676 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
18677 (visit_reference_op_load): Adjust.
18678
18679 2019-07-04 Jakub Jelinek <jakub@redhat.com>
18680
18681 PR tree-optimization/91063
18682 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
18683 stmt from stmts sequence before calling vect_init_vector_1.
18684 Formatting fix.
18685
18686 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18687
18688 PR target/88833
18689 * fwprop.c (reg_single_def_p): New function.
18690 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
18691 (forward_propagate_into): New parameter reg_prop_only
18692 with default value false.
18693 Propagate def's src into loop only if SET_SRC and SET_DEST
18694 of def_set have single definitions.
18695 Likewise if reg_prop_only is set to true.
18696 (fwprop): New param fwprop_addr_p.
18697 Integrate fwprop_addr into fwprop.
18698 (fwprop_addr): Remove.
18699 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
18700 to true.
18701 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
18702 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
18703 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
18704
18705 2019-07-04 Jakub Jelinek <jakub@redhat.com>
18706
18707 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
18708 in worksharing loop scans.
18709
18710 PR tree-optimization/91074
18711 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
18712 temporary.
18713
18714 PR rtl-optimization/90756
18715 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
18716 for VECTOR_TYPE_P.
18717
18718 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
18719
18720 * config/aarch64/aarch64.md: Remove redundant constraints from
18721 define_expand but keep some patterns untouched if they are
18722 specially selected by TARGET_SECONDARY_RELOAD hook.
18723 * config/aarch64/aarch64-sve.md: Likewise.
18724 * config/aarch64/atomics.md: Remove redundant constraints from
18725 define_expand.
18726 * config/aarch64/aarch64-simd.md: Likewise.
18727
18728 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
18729
18730 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
18731 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
18732 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
18733 clauses.
18734 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
18735 DARWIN_NOPIE_SPEC.
18736
18737 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
18738
18739 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
18740 (STARTFILE_SPEC): Split crt3 into a separate spec.
18741 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
18742 (DARWIN_CRT2_SPEC): New.
18743 (DARWIN_CRT3_SPEC): New.
18744 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
18745 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
18746 (DARWIN_CRT3_SPEC): New.
18747
18748 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
18749
18750 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
18751 Change the RTL attribute "length" from "4" to "*" to allow the
18752 length attribute to be adjusted automatically for prefixed load,
18753 store, and add immediate instructions.
18754 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
18755 Likewise.
18756 (extendsi<mode>2, EXTSI iterator): Likewise.
18757 (movsi_internal1): Likewise.
18758 (movsi_from_sf): Likewise.
18759 (movdi_from_sf_zero_ext): Likewise.
18760 (mov<mode>_internal): Likewise.
18761 (movcc_internal1, QHI iterator): Likewise.
18762 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
18763 (movsf_from_si): Likewise.
18764 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
18765 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
18766 (mov<mode>, FMOVE128 iterator): Likewise.
18767 (movdi_internal64): Likewise.
18768 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
18769 Likewise.
18770 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
18771 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
18772 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
18773 (vsx_splat_v4sf): Likewise.
18774
18775 2019-07-03 Mark Wielaard <mark@klomp.org>
18776
18777 PR debug/90981
18778 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
18779 DW_AT_addr_base if there is actually a .debug_addr section with
18780 addresses.
18781 (output_addr_table): Add DWARF5 table header generation here after
18782 checking there are actually any addresses from...
18783 (dwarf2out_finish): ...here.
18784
18785 2019-07-03 Richard Biener <rguenther@suse.de>
18786
18787 PR middle-end/91069
18788 * match.pd (vec_perm -> bit_insert): Fix element read from
18789 first vector.
18790
18791 2019-07-03 Martin Liska <mliska@suse.cz>
18792
18793 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
18794 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
18795 condition.
18796 * generic-match-head.c: Include dbgcnt.h.
18797 * gimple-match-head.c: Likewise.
18798
18799 2019-07-03 Martin Liska <mliska@suse.cz>
18800
18801 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
18802 (GCOV_COUNTER_V_TOPN): New.
18803 (GCOV_COUNTER_V_INDIR): Use _topn.
18804 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
18805 (GCOV_TOPN_VALUES): New.
18806 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
18807 (GCOV_TOPN_VALUES_COUNTERS): New.
18808 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
18809 * tree-profile.c:
18810 (gimple_init_gcov_profiler): Rename variables from one_value
18811 to topn_values.
18812 (gimple_gen_one_value_profiler): Remove.
18813 (gimple_gen_topn_values_profiler): New function.
18814 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
18815 names instead of SINGLE_VALUE.
18816 (stream_out_histogram_value): Likewise.
18817 (stream_in_histogram_value): Likewise.
18818 (get_most_common_single_value): Likewise.
18819 (gimple_divmod_fixed_value_transform): Likewise.
18820 (gimple_stringops_transform): Likewise.
18821 (gimple_divmod_values_to_profile): Likewise.
18822 (gimple_stringops_values_to_profile): Likewise.
18823 (gimple_find_values_to_profile): Likewise.
18824 * value-prof.h (enum hist_type): Rename to TOPN.
18825 (gimple_gen_one_value_profiler): Remove.
18826 (gimple_gen_topn_values_profiler): New.
18827
18828 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
18829
18830 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
18831 if it has the DW_AT_data_member_location attribute.
18832
18833 2019-07-03 Richard Biener <rguenther@suse.de>
18834
18835 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
18836 dumping.
18837
18838 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
18839
18840 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
18841 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
18842 (tlsdesc_small_sve_<mode>): Likewise.
18843
18844 2019-07-03 Martin Liska <mliska@suse.cz>
18845
18846 * Makefile.in: Define ZSTD_LIB.
18847 * common.opt: Adjust compression level
18848 to support also zstd levels.
18849 * config.in: Regenerate.
18850 * configure: Likewise.
18851 * configure.ac: Add --with-zstd and --with-zstd-include options
18852 and detect ZSTD.
18853 * doc/install.texi: Mention zstd dependency.
18854 * gcc.c: Print supported LTO compression algorithms.
18855 * lto-compress.c (lto_normalized_zstd_level): Likewise.
18856 (lto_compression_zstd): Likewise.
18857 (lto_uncompression_zstd): Likewise.
18858 (lto_end_compression): Dispatch in between zlib and zstd.
18859 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
18860 (lto_uncompression_zlib): Make it static.
18861 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
18862 * lto-section-in.c (lto_get_section_data): Pass info
18863 about used compression.
18864 * lto-streamer-out.c: By default use zstd when possible.
18865 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
18866 (TV_IPA_LTO_COMPRESS): Likewise for compression.
18867
18868 2019-07-03 Martin Liska <mliska@suse.cz>
18869
18870 * lto-section-in.c (lto_get_section_data): Add "lto" section.
18871 * lto-section-out.c (lto_destroy_simple_output_block): Never
18872 compress LTO_section_lto section.
18873 * lto-streamer-out.c (produce_asm): Do not set major_version
18874 and minor_version.
18875 (lto_output_toplevel_asms): Likewise.
18876 (produce_lto_section): New function.
18877 (lto_output): Call produce_lto_section.
18878 (lto_write_mode_table): Do not set major_version and
18879 minor_version.
18880 (produce_asm_for_decls): Likewise.
18881 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
18882 type.
18883 (struct lto_header): Remove.
18884 (struct lto_section): New struct.
18885 (struct lto_simple_header): Do not inherit from lto_header.
18886 (struct lto_file_decl_data): Add lto_section_header field.
18887
18888 2019-07-03 Martin Liska <mliska@suse.cz>
18889
18890 * lra-eliminations.c (eliminate_regs_in_insn): Remove
18891 dead assignemts.
18892 * reg-stack.c (check_asm_stack_operands): Likewise.
18893 * tree-ssa-structalias.c (create_function_info_for): Likewise.
18894 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
18895 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
18896 force_expand_binop.
18897
18898 2019-07-03 Martin Liska <mliska@suse.cz>
18899
18900 PR tree-optimization/90892
18901 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
18902 in string constants.
18903
18904 2019-07-03 Martin Liska <mliska@suse.cz>
18905
18906 PR middle-end/90899
18907 * multiple_target.c (create_dispatcher_calls): Add to comdat
18908 group only if set for ifunc.
18909
18910 2019-07-03 Martin Liska <mliska@suse.cz>
18911
18912 PR target/88056
18913 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
18914 Define local_object_name in outer scope in order to handle
18915 use-after-scope issue.
18916
18917 2019-07-03 Martin Liska <mliska@suse.cz>
18918
18919 * common.opt: Add fprofile-note.
18920 * coverage.c (coverage_init): Append the option
18921 to bbg_file_name.
18922 * doc/invoke.texi: Document -fprofile-note.
18923
18924 2019-07-03 Jakub Jelinek <jakub@redhat.com>
18925
18926 PR tree-optimization/91033
18927 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
18928 vect_analyze_data_refs): Add bool * arguments.
18929 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
18930 if failure is due to scatter/gather, set *fatal to false if non-NULL.
18931 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
18932 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
18933 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
18934 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
18935 vect_analyze_data_refs caller.
18936
18937 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
18938 clause.
18939 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
18940 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
18941 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
18942 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18943 OMP_CLAUSE__SCANTEMP_ entry.
18944 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
18945 * tree-pretty-print.c (dump_omp_clause): Likewise.
18946 * tree-nested.c (convert_nonlocal_omp_clauses,
18947 convert_local_omp_clauses): Likewise.
18948 * omp-general.h (struct omp_for_data): Add have_scantemp and
18949 have_nonctrl_scantemp members.
18950 * omp-general.c (omp_extract_for_data): Initialize them.
18951 * omp-low.c (struct omp_context): Add scan_exclusive member.
18952 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
18953 result again with GF_OMP_FOR_KIND_MASK. Initialize also
18954 ctx->scan_exclusive.
18955 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
18956 of !ctx->scan_inclusive.
18957 (lower_rec_input_clauses): Simplify gimplification of dtors using
18958 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
18959 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
18960 loops. Don't add barrier for reduction_omp_orig_ref if
18961 ctx->scan_??xclusive.
18962 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
18963 (lower_omp_scan): Use ctx->scan_exclusive instead
18964 of !ctx->scan_inclusive. Handle worksharing loops with inscan
18965 reductions. Use new_vard != new_var instead of repeated
18966 omp_is_reference calls.
18967 (omp_find_scan, lower_omp_for_scan): New functions.
18968 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
18969 inscan reductions.
18970 * omp-expand.c (expand_omp_scantemp_alloc): New function.
18971 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
18972 and fd->have_scantemp.
18973
18974 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
18975 on worksharing loop propagate it as shared clause to containing
18976 combined parallel.
18977
18978 * omp-expand.c (expand_omp_for_static_nochunk,
18979 expand_omp_for_static_chunk): For nowait worksharing loop with
18980 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
18981 at the end.
18982
18983 2019-07-02 qing zhao <qing.zhao@oracle.com>
18984
18985 PR preprocessor/90581
18986 * doc/cppopts.texi: Add document for -fmax-include-depth.
18987 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
18988
18989 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
18990
18991 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
18992 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
18993 (mmx_packssdw): Ditto.
18994 (mmx_punpckhbw): Ditto.
18995 (mmx_punpcklbw): Ditto.
18996 (mmx_punpckhwd): Ditto.
18997 (mmx_punpcklwd): Ditto.
18998 (mmx_punpckhdq): Ditto.
18999 (mmx_punpckldq): Ditto.
19000 (*vec_dupv4hi): Ditto.
19001 (*vec_dupv2si): Ditto.
19002 (mmx_pmovmskb): Ditto.
19003 * config/i386/sse.md (sse_cvtpi2ps): Use
19004 TARGET_SSE2 && SSE_REG_P in split condition.
19005 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
19006 TARGET_SSSE3 && SSE_REGNO_P in split condition.
19007 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
19008 (ssse3_pshufbv8qi3): Ditto.
19009 (ssse3_palignrdi): Ditto.
19010
19011 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
19012
19013 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
19014 with inlined save and restore.
19015
19016 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
19017
19018 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
19019 to be inserted on single successor edge of the entry block. Then call
19020 commit_edge_insertions instead of inserting the instructions manually.
19021 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
19022 RTL expansion and rebuild jump labels chain.
19023
19024 2019-07-02 Richard Biener <rguenther@suse.de>
19025
19026 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
19027 TI_CHREC_KNOWN.
19028 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
19029 Define here.
19030 * tree.c (build_common_tree_nodes): Initialize them.
19031 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
19032 Make declarations comments.
19033 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
19034 chrec_known): Remove definitions.
19035 (initialize_scalar_evolutions_analyzer): Remove.
19036 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
19037 * tree-streamer.c (preload_common_nodes): Do not preload
19038 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
19039
19040 2019-07-02 Jan Hubicka <jh@suse.cz>
19041
19042 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
19043 sanity check.
19044
19045 2019-07-02 Jan Hubicka <jh@suse.cz>
19046
19047 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
19048 to ..
19049 (nonoverlapping_component_refs_since_match_p): ... this one;
19050 handle also non-decl bases; return -1 if search gave up.
19051 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
19052 nonoverlapping_component_refs_of_decl_p_no_alias to
19053 nonoverlapping_component_refs_since_match_p_may_alias,
19054 nonoverlapping_component_refs_since_match_p_no_alias.
19055 (dump_alias_stats): Update dumping.
19056 (aliasing_matching_component_refs_p): Break out from ...;
19057 dispatch to nonoverlapping_component_refs_for_decl_p
19058 and nonoverlapping_component_refs_since_match_p.
19059 (aliasing_component_refs_p): ... here; call
19060 nonoverlapping_component_refs_p in scenarios where we can not
19061 precisely determine base match.
19062 (decl_refs_may_alias_p): Use
19063 nonoverlapping_component_refs_since_match_p.
19064 (indirect_ref_may_alias_decl_p): Do not call
19065 nonoverlapping_component_refs_p.
19066 (indirect_refs_may_alias_p): Likewise.
19067
19068 2019-07-02 Jan Hubicka <jh@suse.cz>
19069
19070 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
19071 to clobber of return value.
19072
19073 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19074
19075 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
19076 for is_neon_type instructions that have not already been categorized.
19077
19078 2019-07-02 Richard Biener <rguenther@suse.de>
19079
19080 PR tree-optimization/58483
19081 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
19082 for MEM_REF base hashing.
19083 (equal_mem_array_ref_p): Likewise for base comparison.
19084
19085 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19086
19087 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
19088 parameterized name.
19089 (signbit<mode>2): Use that name. Simplify.
19090
19091 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
19092
19093 PR middle-end/66726
19094 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
19095 Tune heuristic from PR71016 to allow MIN / MAX.
19096
19097 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19098
19099 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
19100 parameterized name.
19101 (abs<mode>2): Use that name. Simplify.
19102
19103 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19104
19105 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
19106 parameterized name.
19107 (neg<mode>2): Use that name. Simplify.
19108
19109 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19110
19111 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
19112 name.
19113 (abs<mode>2): Use that name. Simplify.
19114
19115 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19116
19117 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
19118 name.
19119 (neg<mode>2): Use that name. Simplify.
19120
19121 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
19122
19123 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
19124 ("enabled" attribute): Handle sse_noavx isa attribute.
19125 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
19126 Use TARGET_SSE && SSE_REGNO_P in split condition.
19127 (*vec_dupv2sf): Ditto.
19128
19129 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19130
19131 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
19132 name.
19133 (floatsi<mode>2): Use that name. Simplify.
19134
19135 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19136
19137 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
19138 parameterized name.
19139 (extenddf<mode>2_vsx): Make this a parameterized name.
19140 (extenddf<mode>2): Use those names. Simplify.
19141
19142 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19143
19144 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
19145 name.
19146 (eh_return): Use that name. Simplify.
19147
19148 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19149
19150 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
19151 (doloop_end): Use that name. Simplify.
19152
19153 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19154
19155 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
19156 parameterized name.
19157 (indirect_jump): Use that name. Simplify.
19158
19159 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19160
19161 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
19162 parameterized name.
19163 (abs<mode>2): Use that name. Simplify.
19164
19165 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19166
19167 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
19168 parameterized name.
19169 (fix_trunc<mode>si2): Use that name. Simplify.
19170
19171 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19172
19173 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
19174 (allocate_stack): Use that name. Simplify.
19175
19176 2019-07-01 Martin Sebor <msebor@redhat.com>
19177
19178 PR middle-end/90923
19179 * hash-map.h (hash_map::put): On insertion invoke element ctor.
19180 (hash_map::get_or_insert): Same. Reformat comment.
19181 * hash-set.h (hash_set::add): On insertion invoke element ctor.
19182 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
19183 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
19184 * hash-table.h (hash_table::operator=): Prevent copy assignment.
19185 (hash_table::hash_table (const hash_table&)): Use copy ctor
19186 instead of assignment to copy elements.
19187
19188 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
19189 John David Anglin <danglin@gcc.gnu.org>
19190
19191 PR target/90963
19192 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
19193 using saved frame pointer.
19194
19195 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
19196
19197 PR middle-end/64242
19198 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
19199 Add frame clobber and schedule blockage.
19200
19201 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
19202
19203 * doc/invoke.texi (Link Options): Further editorial changes to
19204 -flinker-output docs.
19205
19206 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19207
19208 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
19209 Load both operands of a PLUS into registers separately.
19210
19211 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
19212
19213 * config/s390/vector.md: Fix shift count operand printing.
19214
19215 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19216
19217 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
19218
19219 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19220
19221 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
19222 Use recog_data to test for an output operand.
19223
19224 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19225
19226 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
19227 exclude any others that are disparaged or that are bound to need
19228 a reload or spill.
19229 (ira_get_dup_out_num): Expand comment.
19230
19231 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19232
19233 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
19234 constraint string for each operand/alternative combo. Only handle
19235 '%' at the start of constraint strings, and look for it outside
19236 the main loop.
19237
19238 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19239
19240 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
19241 alternative_mask instead of HARD_REG_SET to represent a
19242 bitmask of alternatives.
19243 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
19244 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
19245
19246 2019-07-01 Martin Liska <mliska@suse.cz>
19247
19248 * edit-context.c (test_applying_fixits_unreadable_file): Do not
19249 use () for a constructor call.
19250 (test_applying_fixits_line_out_of_range): Likewise.
19251 * ggc-page.c (alloc_page): Use (void *) for %p printf format
19252 argument.
19253 (free_page): Likewise.
19254
19255 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
19256
19257 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
19258 parameter names to match usage (no functional change).
19259 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
19260
19261 2019-07-01 Richard Biener <rguenther@suse.de>
19262
19263 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
19264 pass parameter.
19265 (pass_fre::execute): Honor it.
19266 * passes.def: Adjust pass_fre invocations to allow iterating,
19267 add non-iterating pass_fre before late threading/dom.
19268
19269 2019-07-01 Richard Biener <rguenther@suse.de>
19270
19271 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
19272 TARGET_MEM_REF handling to also handle address-taken ones.
19273
19274 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
19275
19276 * doc/sourcebuild.texi (Effective-Target Keywords, Other
19277 hardware attributes): Document avx512vp2intersect.
19278
19279 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19280
19281 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
19282 (abs<mode>2): New expander.
19283 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
19284 Use CODE_FOR_ssse3_absv8qi2.
19285 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
19286 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
19287
19288 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19289
19290 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
19291 to sse, sse_noavx and avx. Update all uses.
19292
19293 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19294
19295 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
19296 (*mmx_<plusminus_insn><mode>3): Ditto.
19297 (*mmx_mulv4hi3"): Ditto.
19298 (*mmx_smulv4hi3_highpart): Ditto.
19299 (*mmx_umulv4hi3_highpart): Ditto.
19300 (*mmx_pmaddwd): Ditto.
19301 (*sse2_umulv1siv1di3): Ditto.
19302 (*mmx_<code>v4hi3): Ditto.
19303 (*mmx_<code>v8qi3): Ditto.
19304 (mmx_ashr<mode>3): Ditto.
19305 ("mmx_<shift_insn><mode>3): Ditto.
19306 (*mmx_eq<mode>3): Ditto.
19307 (mmx_gt<mode>3): Ditto.
19308 (mmx_andnot<mode>3): Ditto.
19309 (*mmx_<code><mode>3): Ditto.
19310 (*mmx_pinsrw): Ditto.
19311 (*mmx_pextrw): Ditto.
19312 (mmx_pshufw_1): Ditto.
19313 (*mmx_uavgv8qi3): Ditto.
19314 (*mmx_uavgv4hi3): Ditto.
19315 ("mmx_psadbw): Ditto.
19316 * config/i386/sse.md (sse_cvtps2pi): Ditto.
19317 (sse_cvttps2pi): Ditto.
19318 (ssse3_pmaddubsw): Ditto.
19319 (*ssse3_pmulhrswv4hi3): Ditto.
19320 (ssse3_psign<mode>3): Ditto.
19321
19322 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
19323
19324 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
19325 adjustment for bit-fields to all aggregate types.
19326
19327 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
19328
19329 * config/rs6000/predicates.md (pcrel_address): Use
19330 SYMBOL_REF_LOCAL_P to determine if a label is local.
19331 (pcrel_external_address): New predicate.
19332 (non_prefixed_mem_operand): Delete, predicate not used.
19333 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
19334 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
19335 addressing.
19336 (SYMBOL_REF_PCREL_P): Likewise.
19337
19338 PR target/91009
19339 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
19340 alternative.
19341 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
19342 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
19343 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
19344
19345 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
19346
19347 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
19348 override on extra_headers.
19349
19350 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
19351
19352 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
19353 * config/darwin-driver.c (darwin_default_min_version): Remove newline
19354 from warning.
19355 (darwin_driver_init): Likewise.
19356
19357 2019-06-28 Jan Beulich <jbeulich@suse.com>
19358
19359 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
19360 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
19361 Eliminate redundant alternative.
19362
19363 2019-06-28 Jan Beulich <jbeulich@suse.com>
19364
19365 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
19366 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
19367 Use vector_operand.
19368
19369 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
19370
19371 * config/arc/arc.c (arc_rtx_costs): All short instructions are
19372 having a lower cost regardless of the speed option.
19373
19374 2019-06-28 Jan Beulich <jbeulich@suse.com>
19375
19376 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
19377 vector_operand plus, on both alternatives, "Bm" constraint.
19378
19379 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
19380
19381 * config/arm/arm.md: Remove redundant constraints from
19382 define_expand but leave reload_inm and reload_outm patterns
19383 untouched since they need special constraints to work.
19384 * config/arm/arm-fixed.md: Remove redundant constraints from
19385 define_expand.
19386 * config/arm/iwmmxt.md: Likewise.
19387 * config/arm/neon.md: Likewise.
19388 * config/arm/sync.md: Likewise.
19389 * config/arm/thumb1.md: Likewise.
19390 * config/arm/vec-common.md: Likewise.
19391
19392 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
19393
19394 * doc/install.texi: Document --disable-tm-clone-registry.
19395
19396 2019-06-27 Jakub Jelinek <jakub@redhat.com>
19397
19398 PR c++/91024
19399 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
19400 statements.
19401
19402 PR tree-optimization/91010
19403 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
19404 return true. Otherwise, don't call operand_equal_p if offset1 or
19405 offset2 is NULL and just return false.
19406
19407 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
19408
19409 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
19410 user-specified float mode choice for kernel mode code.
19411
19412 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
19413
19414 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
19415 spec.
19416
19417 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
19418
19419 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
19420 use longcall for 64b code.
19421
19422 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
19423
19424 * builtins.c (get_memory_rtx): Fix comment.
19425 * optabs.def (movmem_optab): Change to cpymem_optab.
19426 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
19427 (emit_block_move_hints): Change movmem to cpymem.
19428 * defaults.h: Change movmem to cpymem.
19429 * targhooks.c (get_move_ratio): Change movmem to cpymem.
19430 (default_use_by_pieces_infrastructure_p): Ditto.
19431 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
19432 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
19433 to cpymem.
19434 * config/aarch64/aarch64.h: Change movmem to cpymem.
19435 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
19436 * config/alpha/alpha.h: Change movmem to cpymem in comment.
19437 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
19438 movmem to cpymem.
19439 * config/arc/arc-protos.h: Change movmem to cpymem.
19440 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
19441 * config/arc/arc.h: Change movmem to cpymem in comment.
19442 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
19443 * config/arm/arm-protos.h: Change movmem to cpymem in names.
19444 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
19445 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
19446 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
19447 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
19448 * config/avr/avr-protos.h: Change movmem to cpymem.
19449 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
19450 avr_out_movmem): Change movmem to cpymem.
19451 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
19452 Change movmem to cpymem.
19453 * config/bfin/bfin-protos.h: Change movmem to cpymem.
19454 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
19455 Change movmem to cpymem.
19456 * config/bfin/bfin.h: Change movmem to cpymem in comment.
19457 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
19458 * config/c6x/c6x-protos.h: Change movmem to cpymem.
19459 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
19460 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
19461 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
19462 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
19463 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
19464 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
19465 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
19466 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
19467 expand_small_cpymem_or_setmem,
19468 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
19469 expand_set_or_cpymem_constant_prologue,
19470 ix86_expand_set_or_cpymem): Change movmem to cpymem.
19471 * config/i386/i386-protos.h: Change movmem to cpymem.
19472 * config/i386/i386.h: Change movmem to cpymem in comment.
19473 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
19474 (setmem<mode>): Change expansion function name.
19475 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
19476 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
19477 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
19478 * config/m32c/m32c-protos.h: Change movmem to cpymem.
19479 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
19480 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
19481 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
19482 to cpymem.
19483 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
19484 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
19485 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
19486 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
19487 Change movmem to cpymem.
19488 * config/mips/mips.h: Change movmem to cpymem.
19489 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
19490 * config/nds32/nds32-memory-manipulation.c
19491 (nds32_expand_movmemsi_loop_unknown_size,
19492 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
19493 nds32_expand_movmemsi_unroll,
19494 nds32_expand_movmemsi): Change movmem to cpymem.
19495 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
19496 * config/nds32/nds32-protos.h: Change movmem to cpymem.
19497 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
19498 (pa_adjust_insn_length): Change call to compute_movmem_length.
19499 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
19500 movmemdi, movmemdi_prereload,
19501 movmemdi_postreload): Change movmem to cpymem.
19502 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
19503 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
19504 * config/riscv/riscv.c: Change movmem to cpymem in comment.
19505 * config/riscv/riscv.h: Change movmem to cpymem.
19506 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
19507 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
19508 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
19509 movmem to cpymem.
19510 * config/s390/s390-protos.h: Change movmem to cpymem.
19511 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
19512 s390_expand_insv): Change movmem to cpymem.
19513 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
19514 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
19515 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
19516 * config/sparc/sparc.h: Change movmem to cpymem in comment.
19517 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
19518 for nonexistent function.
19519 * config/vax/vax.h: Change movmem to cpymem in comment.
19520 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
19521 * config/visium/visium.h: Change movmem to cpymem in comment.
19522 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
19523 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
19524 * doc/md.texi: Change movmem to cpymem and update description to match.
19525 * doc/rtl.texi: Change movmem to cpymem.
19526 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
19527 * doc/tm.texi: Regenerate.
19528
19529 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
19530
19531 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
19532 -fvariable-expansion-in-unroller by default.
19533 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
19534 default for Power.
19535
19536 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
19537
19538 Revert
19539 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
19540 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
19541
19542 * config.gcc(rs6000-*-*): Define target_gtfiles.
19543
19544 2019-06-27 Jan Hubicka <jh@suse.cz>
19545
19546 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
19547 (add_type_duplicate): When odr hash is not allocated, to nothing.
19548 (odr_based_tbaa_p): New function.
19549 (set_type_canonical_for_odr_type): New function.
19550 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
19551 set_type_canonical_for_odr_type): New.
19552 * tree.c (gimple_canonical_types_compatible_p): ODR types with
19553 ODR based TBAA are not equivalent to non-ODR types.
19554
19555 2019-06-27 Martin Liska <mliska@suse.cz>
19556
19557 PR tree-optimization/90974
19558 PR rtl-optimization/90975
19559 PR rtl-optimization/90976
19560 PR target/91016
19561 PR tree-optimization/91017
19562 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
19563 unused tmp.
19564 * lra.c (lra_set_insn_recog_data): Remove a leftover from
19565 initial commit of IRA.
19566 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
19567 of op0 and op1.
19568 * tree-vect-loop.c (vect_create_epilog_for_reduction):
19569 Remove unused mode1.
19570 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
19571 to new_stmt_info.
19572
19573 2019-06-27 Jakub Jelinek <jakub@redhat.com>
19574
19575 PR target/90991
19576 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
19577 instead of register_operand for operands[1], add m to its constraints
19578 if operands[2] uses "C" constraint. Ensure in condition that if
19579 operands[2] is not 0, then operands[1] is not a MEM. For last two
19580 alternatives, use unaligned loads instead of aligned if operands[1] is
19581 misaligned_operand.
19582
19583 2019-06-27 Martin Liska <mliska@suse.cz>
19584
19585 * asan.c (asan_emit_allocas_unpoison): Remove obviously
19586 dead assignments.
19587 * bt-load.c (move_btr_def): Likewise.
19588 * builtins.c (expand_builtin_apply_args_1): Likewise.
19589 (expand_builtin_apply): Likewise.
19590 * cfgexpand.c (expand_asm_stmt): Likewise.
19591 (construct_init_block): Likewise.
19592 * cfghooks.c (verify_flow_info): Likewise.
19593 * cfgloopmanip.c (remove_path): Likewise.
19594 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
19595 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
19596 * combine.c (simplify_if_then_else): Likewise.
19597 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
19598 (choose_basereg): Likewise.
19599 (ix86_expand_prologue): Likewise.
19600 (ix86_preferred_output_reload_class): Likewise.
19601 * cselib.c (cselib_record_sets): Likewise.
19602 * df-scan.c (df_scan_alloc): Likewise.
19603 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
19604 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
19605 * emit-rtl.c (try_split): Likewise.
19606 * graphite-scop-detection.c (assign_parameter_index_in_region):
19607 Likewise.
19608 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
19609 * ira-color.c (setup_profitable_hard_regs): Likewise.
19610 * ira.c (rtx_moveable_p): Likewise.
19611 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
19612 * read-rtl.c (read_subst_mapping): Likewise.
19613 * regrename.c (scan_rtx): Likewise.
19614 * reorg.c (fill_slots_from_thread): Likewise.
19615 * tree-inline.c (tree_function_versioning): Likewise.
19616 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
19617 * tree-ssa-sink.c (statement_sink_location): Likewise.
19618 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
19619 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
19620 (vect_create_epilog_for_reduction): Likewise.
19621 * tree.c (build_nonstandard_integer_type): Likewise.
19622
19623 2019-06-27 Richard Biener <rguenther@suse.de>
19624
19625 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
19626
19627 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
19628
19629 PR tree-optimization/89772
19630 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
19631 out-of-bound accesses checking.
19632
19633 2019-06-27 Martin Liska <mliska@suse.cz>
19634
19635 PR tree-optimization/91014
19636 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
19637 when LHS is NULL_TREE.
19638
19639 2019-06-27 Martin Liska <mliska@suse.cz>
19640
19641 * symbol-summary.h (traverse): Pass
19642 argument a to the call of callback.
19643 (gt_ggc_mx): Mark arguments as unused.
19644 (gt_pch_nx): Likewise.
19645
19646 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
19647
19648 PR target/62147
19649 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
19650 finiteness.
19651
19652 2019-06-26 Jeff Law <law@redhat.com>
19653
19654 PR tree-optimization/90883
19655 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
19656 (delete_dead_or_redundant_assignment): Likewise.
19657
19658 PR tree-optimization/90883
19659 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
19660 * tree-ssa-dse.c: Update various comments to distinguish between
19661 dead and redundant stores.
19662 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
19663 (dse_optimize_redundant_stores): New function.
19664 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
19665 Distinguish between dead and redundant calls in dump output. All
19666 callers updated.
19667 (delete_dead_or_redundant_assignment): Similarly for assignments.
19668 (dse_optimize_stmt): Handle _CHK variants. For statements which
19669 store 0 into multiple memory locations, try to prove a subsequent
19670 store is redundant.
19671
19672 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
19673
19674 PR target/89021
19675 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
19676 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
19677
19678 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
19679
19680 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
19681 (branch_islands): New extern.
19682 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
19683 * config/rs6000/rs6000.c: .. here.
19684
19685 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
19686
19687 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
19688 (powerpc*-*-*) ... to here.
19689
19690 2019-06-26 Jeff Law <law@redhat.com>
19691
19692 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
19693 memcpy, memmove and memset builtins.
19694 (maybe_trim_memstar_call): Likewise.
19695
19696 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
19697
19698 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
19699
19700 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
19701
19702 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
19703
19704 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
19705
19706 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
19707 declaration.
19708 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
19709 "static".
19710 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
19711 declaration.
19712
19713 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
19714
19715 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
19716
19717 2019-06-26 Richard Biener <rguenther@suse.de>
19718
19719 PR ipa/90982
19720 * tree-inline.c (remap_ssa_name): Copy SSA range info.
19721
19722 2019-06-26 Richard Biener <rguenther@suse.de>
19723
19724 * lto-streamer.h (lto_bitmap_alloc): Remove.
19725 (lto_bitmap_free): Likewise.
19726 * lto-streamer.c (lto_bitmap_alloc): Remove.
19727 (lto_bitmap_free): Likewise.
19728 (lto_obstack): Likewise.
19729 (lto_obstack_initialized): Likewise.
19730 * lto-streamer-out.c (lto_output): Use own obstack for local
19731 bitmap, free it consistently.
19732
19733 2019-06-26 Jakub Jelinek <jakub@redhat.com>
19734
19735 PR target/90991
19736 * config/i386/sse.md
19737 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
19738 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
19739 insns if operands[2] is misaligned_operand.
19740
19741 2019-06-26 Li Jia He <helijia@linux.ibm.com>
19742
19743 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
19744 TARGET_POWERPC64.
19745 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
19746 to GPR.
19747
19748 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
19749
19750 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
19751
19752 2019-06-26 Martin Liska <mliska@suse.cz>
19753
19754 PR tree-optimization/90973
19755 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
19756 epilogue_cost_vec instead of prologue_cost_vec for
19757 a epilogue cost.
19758
19759 2019-06-26 Martin Liska <mliska@suse.cz>
19760
19761 * bb-reorder.c (connect_better_edge_p): Add missing else
19762 statement in the middle of if-else statements.
19763
19764 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
19765 H.J. Lu <hongjiu.lu@intel.com>
19766 Olga Makhotina <olga.makhotina@intel.com>
19767
19768 * common/config/i386/i386-common.c
19769 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
19770 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
19771 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
19772 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
19773 (ix86_handle_option): Handle -mavx512vp2intersect.
19774 * config/i386/avx512vp2intersectintrin.h: New.
19775 * config/i386/avx512vp2intersectvlintrin.h: New.
19776 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
19777 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
19778 AVX512VP2INTERSECT.
19779 * config/i386/i386-builtin-types.def: Add new types.
19780 * config/i386/i386-builtin.def: Add new builtins.
19781 * config/i386/i386-builtins.c: (enum processor_features): Add
19782 F_AVX512VP2INTERSECT.
19783 (static const _isa_names_table isa_names_table): Ditto.
19784 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19785 __AVX512VP2INTERSECT__.
19786 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
19787 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
19788 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
19789 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
19790 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
19791 * config/i386/i386-options.c (ix86_target_string): Add
19792 -mavx512vp2intersect.
19793 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
19794 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
19795 P2HImode and P2QImode.
19796 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
19797 number for P2QImode and P2HImode.
19798 (ix86_regmode_natural_size): New function.
19799 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
19800 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
19801 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
19802 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
19803 * config/i386/i386.opt: Add -mavx512vp2intersect.
19804 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
19805 avx512vp2intersectvlintrin.h.
19806 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
19807 (define_mode_iterator VI48_AVX512VP2VL): New.
19808 (avx512vp2intersect_2intersect<mode>,
19809 avx512vp2intersect_2intersectv16si): New define_insn patterns.
19810 * config.gcc: Add avx512vp2intersectvlintrin.h and
19811 avx512vp2intersectintrin.h to extra_headers.
19812 * doc/invoke.texi: Document -mavx512vp2intersect.
19813
19814 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
19815
19816 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
19817
19818 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
19819
19820 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
19821 savres_routine_syms, savres_routine_name, morestack_ref,
19822 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
19823 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
19824 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
19825 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
19826 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
19827 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
19828 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
19829 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
19830 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
19831 get_stack_clash_protection_probe_interval,
19832 get_stack_clash_protection_guard_size,
19833 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
19834 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
19835 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
19836 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
19837 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
19838 gen_frame_mem_offset, rs6000_savres_routine_name,
19839 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
19840 ptr_regno_for_savres, rs6000_emit_savres_rtx,
19841 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
19842 rs6000_global_entry_point_prologue_needed_p,
19843 rs6000_get_separate_components, rs6000_components_for_bb,
19844 rs6000_disqualify_components, rs6000_emit_prologue_components,
19845 rs6000_emit_epilogue_components, rs6000_set_handled_components,
19846 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
19847 rs6000_output_savres_externs, rs6000_output_function_prologue,
19848 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
19849 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
19850 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
19851 rs6000_output_function_epilogue, gen_add3_const,
19852 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
19853 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
19854 to rs6000-logue.c.
19855 (machine_function): Moved to rs6000.h.
19856 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
19857 rs6000-internal.h.
19858 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
19859 savres_routine_syms, savres_routine_name, morestack_ref,
19860 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
19861 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
19862 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
19863 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
19864 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
19865 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
19866 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
19867 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
19868 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
19869 get_stack_clash_protection_probe_interval,
19870 get_stack_clash_protection_guard_size,
19871 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
19872 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
19873 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
19874 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
19875 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
19876 gen_frame_mem_offset, rs6000_savres_routine_name,
19877 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
19878 ptr_regno_for_savres, rs6000_emit_savres_rtx,
19879 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
19880 rs6000_global_entry_point_prologue_needed_p,
19881 rs6000_get_separate_components, rs6000_components_for_bb,
19882 rs6000_disqualify_components, rs6000_emit_prologue_components,
19883 rs6000_emit_epilogue_components, rs6000_set_handled_components,
19884 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
19885 rs6000_output_savres_externs, rs6000_output_function_prologue,
19886 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
19887 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
19888 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
19889 rs6000_output_function_epilogue, gen_add3_const,
19890 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
19891 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
19892 to here from rs6000.c.
19893 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
19894 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
19895 quad_address_offset_p) Moved to here from rs6000.c.
19896 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
19897 * config/config.gcc: Add new source file rs6000-logue.c to garbage
19898 collector.
19899
19900 2019-06-25 Martin Liska <mliska@suse.cz>
19901
19902 * hash-table.c (hashtab_chk_error): Move here from ...
19903 * hash-table.h (hashtab_chk_error): ... here.
19904
19905 2019-06-25 Martin Liska <mliska@suse.cz>
19906
19907 PR tree-optimization/90978
19908 * df-scan.c (df_update_entry_block_defs): Remove dead else
19909 branch.
19910 (df_update_exit_block_uses): Likewise.
19911
19912 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
19913 Andrew Stubbs <ams@codesourcery.com>
19914
19915 * config.gcc (thread_file): Set to gcn for AMD GCN.
19916 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
19917 (TARGET_EMUTLS_VAR_INIT): New hook.
19918
19919 2019-06-25 Martin Jambor <mjambor@suse.cz>
19920
19921 PR ipa/90939
19922 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
19923
19924 2019-06-25 Richard Biener <rguenther@suse.de>
19925
19926 PR tree-optimization/90930
19927 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
19928 into parallel form in the last pass instance.
19929
19930 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
19931
19932 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
19933 (arc_legitimize_pic_address): Simplify and cleanup the function.
19934 (SYMBOLIC_CONST): Remove.
19935 (prepare_pic_move): Likewise.
19936 (prepare_move_operands): Handle complex mov cases here.
19937 (arc_legitimize_address_0): Remove call to
19938 arc_legitimize_pic_address.
19939 (arc_legitimize_address): Remove call to
19940 arc_legitimize_tls_address.
19941 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
19942 (movhi_insn): Likewise.
19943
19944 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19945
19946 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
19947 PTRDIFF_TYPE.
19948 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
19949 format of "__intN" types for UINTMAX_TYPE.
19950 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
19951 format of "__intN" types for SIZETYPE.
19952 * tree.c (build_common_tree_nodes): Accept "__intN__"
19953 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
19954 * doc/invoke.texi: Document that __intN__ disables pedantic
19955 warnings.
19956
19957 2019-06-25 Jan Hubicka <jh@suse.cz>
19958
19959 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
19960 base2_alias_set is non-zero before doing TBAA based disambiguation.
19961
19962 2019-06-25 Martin Liska <mliska@suse.cz>
19963
19964 PR tree-optimization/90973
19965 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
19966 of prologue and epilogue.
19967
19968 2019-06-24 Jan Hubicka <jh@suse.cz>
19969
19970 * ipa-utils.h (type_with_linkage_p): Verify that type is
19971 CXX_ODR_P.
19972 (odr_type_p): Remove extra return.
19973 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
19974 hash STRING_FLAG only for arrays and integers.
19975 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
19976 Update analogously.
19977 * tree-streamer-out.c (pack_ts_type_common_value_fields):
19978 Likewise.
19979 * print-tree.c (print_node): Print cxx-odr-p
19980 and string-flag.
19981 * tree.c (need_assembler_name_p): Also check that type
19982 is CXX_ODR_TYPE_P
19983 (verify_type_variant): Update verification of SRING_FLAG;
19984 also check CXX_ODR_P.
19985 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
19986 (TYPE_STRING_FLAG): Use it.
19987 (TYPE_CXX_ODR_P): New macro.
19988 * dwarf2out.c (gen_array_type_die): First check that type
19989 is an array and then test string flag.
19990
19991 2019-06-24 Richard Biener <rguenther@suse.de>
19992
19993 PR tree-optimization/90972
19994 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
19995 in common code, dealing with STRING_CST properly.
19996
19997 2019-06-24 Richard Biener <rguenther@suse.de>
19998
19999 PR tree-optimization/90930
20000 PR tree-optimization/90316
20001 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
20002 decrement of limit.
20003
20004 2019-06-24 Martin Sebor <msebor@redhat.com>
20005
20006 * tree-pretty-print.h: Remove unnecessary punctuation characters
20007 from a diagnostic.
20008 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
20009
20010 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
20011
20012 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
20013 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
20014 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
20015
20016 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
20017
20018 * config/rs6000/darwin.h: Handle GCC target pragma.
20019
20020 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
20021
20022 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
20023
20024 2019-06-22 Jeff Law <law@redhat.com>
20025
20026 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20027
20028 2019-06-22 Jan Hubicka <jh@suse.cz>
20029
20030 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
20031 give up on bitfields; continue searching for different refs
20032 appearing later.
20033
20034 2019-06-21 Jakub Jelinek <jakub@redhat.com>
20035
20036 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
20037 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
20038 containing the offset as possible simd lane access. Look through
20039 widening conversion. Move the
20040 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
20041
20042 2019-06-21 Richard Biener <rguenther@suse.de>
20043
20044 PR tree-optimization/90930
20045 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
20046 flag on new stmts to avoid re-processing them.
20047
20048 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
20049
20050 PR c++/90875 - added -Wswitch-outside-range option
20051 * doc/invoke.texi (Wswitch-outside-range): Document.
20052
20053 2019-06-21 Jeff Law <law@redhat.com>
20054
20055 PR tree-optimization/90949
20056 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
20057 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
20058
20059 2019-06-21 Richard Biener <rguenther@suse.de>
20060
20061 PR debug/90914
20062 * dwarf2out.c (prune_unused_types_walk): Always consider
20063 function-local extern declarations as used.
20064
20065 2019-06-21 Richard Biener <rguenther@suse.de>
20066
20067 PR tree-optimization/90913
20068 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
20069 the scalar variant of if-conversion versioning.
20070
20071 2019-06-21 Jakub Jelinek <jakub@redhat.com>
20072
20073 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
20074 create another "omp scan inscan exclusive" array if
20075 !ctx->scan_inclusive.
20076 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
20077 (lower_omp_scan): Likewise.
20078 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
20079 2-bit bitfield for simd_lane_access_p member.
20080 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
20081 aux == (void *)-4 as simd lane access.
20082 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
20083 comment with permutations to show the canonical permutation order.
20084 (vectorizable_scan_store): Handle exclusive scan.
20085 (vectorizable_store): Call vectorizable_scan_store even for
20086 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
20087
20088 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
20089 "omp simd array" arrays with one byte elements.
20090
20091 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
20092
20093 * config/alpha/alpha.md (@unaligned_store<mode>):
20094 Rename from unaligned_store<mode>.
20095 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
20096 * config/alpha/sync.md (@load_locked_<mode>): Rename
20097 from load_locked_<mode>.
20098 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
20099 (@atomic_compare_and_swap<mode>_1): Rename
20100 from atomic_compare_and_swap<mode>_1.
20101 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
20102 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
20103 Use gen_reload_in_aligned and gen_unaligned_store.
20104 (emit_load_locked): Remove.
20105 (emit_store_conditional): Ditto.
20106 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
20107 (alpha_split_compare_and_swap): Ditto.
20108 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
20109 (alpha_split_compare_and_swap_12): Use gen_load_locked
20110 and gen_store_conditional.
20111 (alpha_split_atomic_exchange): Ditto.
20112 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
20113 (alpha_split_atomic_exchange_12): Use gen_load_locked
20114 and gen_store_conditional.
20115
20116 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
20117
20118 * config/aarch64/aarch64-errata.h: New file.
20119 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
20120 (CA53_ERR_843419_SPEC): Delete.
20121 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
20122 * config/aarch64/aarch64-linux.h: Likewise.
20123 * config/aarch64/aarch64-netbsd.h: Likewise.
20124 * config/aarch64/aarch64-freebsd.h: Likewise.
20125
20126 2019-06-20 Marek Polacek <polacek@redhat.com>
20127
20128 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
20129
20130 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
20131
20132 * config/rs6000/rs6000.md (isa attribute): Add support for
20133 for a future processor.
20134
20135 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
20136
20137 PR target/54855
20138 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
20139 standard scalar operation pattern for V2DF.
20140 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
20141 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
20142 (*ieee_<ieee_maxmin><mode>3): Likewise.
20143 (vec_setv2df_0): Likewise.
20144
20145 2019-06-20 Jan Hubicka <jh@suse.cz>
20146
20147 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
20148 parameter; it has no use in gimple memory model.
20149 (indirect_ref_may_alias_decl_p): Update.
20150
20151 2019-06-20 Martin Liska <mliska@suse.cz>
20152
20153 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
20154 to 10.
20155
20156 2019-06-20 Jakub Jelinek <jakub@redhat.com>
20157
20158 * tree-vect-stmts.c (enum scan_store_kind): New type.
20159 (scan_store_can_perm_p): Change last argument from int * to
20160 vec<enum scan_store_kind> *, record precisely which permutations
20161 need whole vector left shift or that plus VEC_COND_EXPR.
20162 (vectorizable_scan_store): Adjust caller, use whole vector left shift
20163 and additional VEC_COND_EXPR only for those iterations that need it.
20164
20165 2019-06-20 Alexandre Oliva <oliva@adacore.com>
20166
20167 * config.gcc: Fix ARM --with-fpu checking and error message.
20168
20169 2019-06-19 Marek Polacek <polacek@redhat.com>
20170
20171 PR c++/60364 - noreturn after first decl not diagnosed.
20172 * attribs.c (get_attribute_namespace): No longer static.
20173 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
20174 attributes.
20175 (attr_noreturn_exclusions): Make it extern.
20176 * attribs.h (get_attribute_namespace): Declare.
20177 * tree-inline.c (function_attribute_inlinable_p): Use
20178 get_attribute_name.
20179
20180 2019-06-19 Martin Sebor <msebor@redhat.com>
20181
20182 PR tree-optimization/90626
20183 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
20184
20185 PR tree-optimization/90626
20186 * tree-ssa-strlen.c (strxcmp_unequal): New function.
20187 (handle_builtin_string_cmp): Call it.
20188
20189 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
20190
20191 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
20192 and DARWIN_NOPIE_SPEC.
20193 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
20194 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
20195 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
20196 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
20197 (DARWIN_EXPORT_DYNAMIC): Delete.
20198 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
20199 and pie options processing to darwin.h.
20200 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
20201
20202 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
20203
20204 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
20205 in computing the number of options to be moved.
20206
20207 2019-06-19 Maya Rashish <coypu@sdf.org>
20208
20209 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
20210 (CLEAR_INSN_CACHE) Use it.
20211
20212 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
20213
20214 * config/i386/i386.md (cmpstrnsi): Remove dead code.
20215
20216 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
20217
20218 PR middle-end/84521
20219 * builtins.c (expand_builtin_setjmp_setup): Save
20220 hard_frame_pointer_rtx.
20221 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
20222 restore fp.
20223 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
20224 non-local goto.
20225 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
20226 elimination code.
20227 (remove_reg_equal_offset_note): Remove unused function.
20228 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
20229 code.
20230 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20231 (arc_builtin_setjmp_frame_value): Remove function.
20232 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20233 (avr_builtin_setjmp_frame_value): Remove function.
20234 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20235 (ix86_builtin_setjmp_frame_value): Remove function.
20236 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
20237 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20238 (sparc_builtin_setjmp_frame_value): Remove function.
20239 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20240 (vax_builtin_setjmp_frame_value): Remove function.
20241 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
20242 pointer if has_nonlocal_label.
20243
20244 2019-06-19 Jakub Jelinek <jakub@redhat.com>
20245
20246 * doc/md.texi: Document vec_shl_<mode> pattern.
20247 * optabs.def (vec_shl_optab): New optab.
20248 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
20249 argument, if == vec_shl_optab, check for left whole vector shift
20250 pattern rather than right shift.
20251 (expand_vec_perm_const): Add vec_shl_optab support.
20252 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
20253 in the comment.
20254 * tree-vect-generic.c (lower_vec_perm): Support permutations which
20255 can be handled by vec_shl_optab.
20256 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
20257 (check_scan_store): Use it.
20258 (vectorizable_scan_store): If target can't do normal permutations,
20259 try to use whole vector left shifts and if needed a VEC_COND_EXPR
20260 after it.
20261 * config/i386/sse.md (vec_shl_<mode>): New expander.
20262
20263 * omp-low.c (lower_rec_input_clauses): Handle references properly
20264 in inscan clauses.
20265 (lower_omp_scan): Likewise.
20266
20267 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20268
20269 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
20270 mem_mode is BLKmode.
20271
20272 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
20273
20274 PR target/90922
20275 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
20276 pointer adjustment for the case of no callee-saved registers and
20277 stack frame bigger than 128 bytes.
20278
20279 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
20280
20281 PR middle-end/90862
20282 * omp-low.c (check_omp_nesting_restrictions): Handle
20283 GF_OMP_TARGET_KIND_OACC_DECLARE.
20284
20285 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
20286
20287 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
20288 (@add<mode>3_carry): Rename from add<mode>3_carry.
20289 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
20290 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
20291 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
20292 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
20293 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
20294 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
20295 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
20296 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
20297 (cmpstrnsi): Use gen_cmp_1.
20298 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
20299 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
20300 (@umonitor_<mode>): Rename from umonitor_<mode>.
20301 * config/i386/i386-expand.c (ix86_expand_copysign):
20302 Use gen_copysign3_const and gen_copysign3_var.
20303 (ix86_expand_xorsign): Use gen_xorsign3_1.
20304 (ix86_expand_branch): Use gen_sub3_carry_ccc,
20305 gen_sub3_carry_ccgz and gen_cmp1.
20306 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
20307 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
20308 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
20309 (ix86_split_lshr): Ditto.
20310 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
20311
20312 2019-06-18 Jason Merrill <jason@redhat.com>
20313
20314 * tree.c (build_constructor): Add MEM_STAT_DECL.
20315
20316 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20317
20318 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
20319 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
20320 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
20321 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
20322 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
20323 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
20324 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
20325 Use CC_NZC instead of CC.
20326 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
20327 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
20328 (aarch64_print_operand): Handle E_CC_NZCmode.
20329 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
20330 of gen_set_clobber_cc.
20331
20332 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20333
20334 * config/aarch64/aarch64-sve.md: Tabify file.
20335
20336 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20337
20338 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
20339 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
20340 * config/aarch64/aarch64-sve.md: Use it.
20341
20342 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20343
20344 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
20345 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
20346 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
20347 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
20348 (aarch64_expand_sve_vec_cmp_int): Use it.
20349 (aarch64_expand_sve_vec_cmp_float): Likewise.
20350 * config/aarch64/aarch64-sve.md: Likewise throughout.
20351
20352 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20353 Kugan Vivekanandarajah <kuganv@linaro.org>
20354
20355 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
20356 (*cond_<optab><mode>_z): Fold into...
20357 (*cond_<optab><mode>_any): ...here. Also handle cases in which
20358 operand 4 can be tied to operand 0 (either inherently or via RA).
20359
20360 2019-06-18 Richard Biener <rguenther@suse.de>
20361
20362 PR debug/90900
20363 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
20364 as if optimized away.
20365
20366 2019-06-18 Tom de Vries <tdevries@suse.de>
20367
20368 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
20369 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
20370 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
20371 Rename to ...
20372 (define_insn "@set_softstack_<mode>"): ... this.
20373 (define_insn "omp_simt_enter_<mode>"): Rename to ...
20374 (define_insn "@omp_simt_enter_<mode>"): ... this.
20375 (define_insn "omp_simt_exit_<mode>"): Rename to ...
20376 (define_insn "@omp_simt_exit_<mode>"): ... this.
20377
20378 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20379
20380 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
20381 vf parameter. Restore the previous iv step of nscalars_step,
20382 but give it iv_type rather than compare_type. Tweak code order
20383 to match the comments.
20384 (vect_set_loop_condition_masked): Update accordingly.
20385 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
20386 for iv_precision. Tweak comment formatting.
20387
20388 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
20389
20390 * config/darwin.c: Strip trailing whitespace.
20391
20392 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
20393
20394 * config/darwin.c (darwin_emit_unwind_label): New default to false.
20395 (darwin_override_options): Set darwin_emit_unwind_label as needed.
20396
20397 2019-06-18 Martin Jambor <mjambor@suse.cz>
20398
20399 PR ipa/90889
20400 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
20401 caller does not have flag_ipa_cp set.
20402
20403 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20404
20405 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
20406 from "*fold_left_plus_<mode>", updated operands order.
20407 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
20408 * internal-fn.c (mask_fold_left_direct): New define.
20409 (expand_mask_fold_left_optab_fn): Likewise.
20410 (direct_mask_fold_left_optab_supported_p): Likewise.
20411 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
20412 * optabs.def (mask_fold_left_plus_optab): New optab.
20413 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
20414 masked internal_fn for a reduction ifn.
20415 (vectorize_fold_left_reduction): Add support for masking reductions.
20416
20417 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
20418
20419 PR middle-end/80791
20420 * target.def (predict_doloop_p): New hook.
20421 * targhooks.h (default_predict_doloop_p): New declaration.
20422 * targhooks.c (default_predict_doloop_p): New function.
20423 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
20424 * doc/tm.texi: Regenerate.
20425 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
20426 (TARGET_PREDICT_DOLOOP_P): New macro.
20427 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
20428
20429 2019-06-17 Jakub Jelinek <jakub@redhat.com>
20430
20431 * omp-low.c (struct omp_context): Add scan_inclusive field.
20432 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
20433 if inclusive scan.
20434 (struct omplow_simd_context): Add lastlane member.
20435 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
20436 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
20437 1 or 2 argument.
20438 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
20439 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
20440 (lower_omp_scan): New function.
20441 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
20442 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
20443 check 3rd argument if present rather than 2nd.
20444 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
20445 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
20446 2-bit bitfield.
20447 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
20448 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
20449 than 2nd.
20450 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
20451 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
20452 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
20453 init.
20454 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
20455 IFN_GOMP_SIMD_LANE argument.
20456 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
20457 encoded ->aux value.
20458 * tree-vect-stmts.c: Include attribs.h.
20459 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
20460 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
20461 functions.
20462 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
20463 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
20464
20465 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
20466
20467 PR target/62055
20468 * config/i386/i386.md (*nabstf2_1): New insn pattern.
20469 (*nabs<mode>2_1): Ditto.
20470 (nabs sse-reg splitter): New splitter.
20471 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
20472
20473 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
20474
20475 PR bootstrap/90873.
20476 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
20477 TMR index check.
20478
20479 2019-06-17 Tom de Vries <tdevries@suse.de>
20480
20481 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
20482 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
20483 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
20484 ...
20485 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
20486 match_operand 0.
20487 (define_insn "omp_simt_enter_insn"): Rename to ...
20488 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
20489 match_operand 0, 1 and 2, as well as the unspec_volatile result.
20490 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
20491 gen_omp_simt_enter_si.
20492 (define_expand "omp_simt_exit"): New.
20493 (define_insn "omp_simt_exit"): Rename to ...
20494 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
20495 match_operand 0.
20496
20497 2019-06-17 Matthew Green <mrg@eterna.com.au>
20498 Maya Rashish <coypu@sdf.org>
20499
20500 * config.gcc (aarch64*-*-netbsd*): New target.
20501 * config/aarch64/aarch64-netbsd.h: New file.
20502 * config/aarch64/t-aarch64-netbsd: Likewise.
20503
20504 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
20505
20506 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
20507 the access path from base to first VIEW_CONVERT_EXPR or
20508 BIT_FIELD_REF.
20509
20510 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
20511
20512 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
20513 access path on BIT_FIELD_REFs.
20514
20515 2019-06-17 Martin Liska <mliska@suse.cz>
20516
20517 PR ipa/90874
20518 * ipa-utils.h (odr_type_p): Remove dead code.
20519
20520 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20521
20522 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
20523 alternative Solaris 11.4 format.
20524 * configure: Regenerate.
20525
20526 2019-06-17 Tom de Vries <tdevries@suse.de>
20527
20528 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
20529 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
20530 match_operand 0.
20531 (define_insn "call_value_insn"): Rename to ...
20532 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
20533 match_operand 0.
20534 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
20535 DI.
20536
20537 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
20538
20539 PR middle-end/64242
20540 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
20541 frame clobbers and schedule block.
20542 (builtin_longjmp): Likewise.
20543
20544 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20545
20546 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
20547 describe how to perform MSPABI compliant 64-bit shift.
20548 * config/msp430/msp430.md (ashldi3): New define_expand.
20549 (ashrdi3): New define_expand.
20550 (lshrdi3): New define_expand.
20551
20552 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20553
20554 * doc/sourcebuild.texi: Document new effective target keyword
20555 longlong64.
20556
20557 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
20558
20559 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
20560 indirect_refs_may_alias_p): Revert accidental commits.
20561
20562 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
20563 at the end of structures.
20564
20565 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
20566
20567 * config/darwin.c (machopic_indirect_call_target): Use renamed
20568 darwin_picsymbol_stubs to decide on output.
20569 (darwin_override_options): Handle darwin_picsymbol_stubs.
20570 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
20571 (LD64_VERSION): Revise default.
20572 * config/darwin.opt: (mpic-symbol-stubs): New option.
20573 (darwin_picsymbol_stubs): New variable.
20574 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
20575 rename to TARGET_MACHO_PICSYM_STUBS.
20576 * config/i386/i386.c (output_pic_addr_const): Likewise.
20577 * config/i386/i386.h Likewise.
20578 * config/rs6000/darwin.h: Likewise.
20579 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
20580 darwin_picsymbol_stubs.
20581
20582 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
20583
20584 * config/darwin.opt (prebind, noprebind, seglinkedit,
20585 noseglinkedit): Add RejectNegative.
20586
20587 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
20588
20589 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
20590 in my previous patch.
20591
20592 2019-06-16 Tom de Vries <tdevries@suse.de>
20593
20594 PR tree-optimization/89376
20595 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
20596
20597 2019-06-15 Maya Rashish <coypu@sdf.org>
20598
20599 * doc/invoke.texi (Spec Files): Update location of the
20600 Fortran spec file.
20601
20602 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
20603
20604 * doc/extend.texi (Common Function Attributes): Clarify
20605 no_sanitize. Fix grammar.
20606
20607 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
20608
20609 * tree-ssa-alias.c (alias_stats): Add
20610 nonoverlapping_component_refs_p_may_alias,
20611 nonoverlapping_component_refs_p_no_alias,
20612 nonoverlapping_component_refs_of_decl_p_may_alias,
20613 nonoverlapping_component_refs_of_decl_p_no_alias.
20614 (dump_alias_stats): Dump them.
20615 (nonoverlapping_component_refs_of_decl_p): Add stats.
20616 (nonoverlapping_component_refs_p): Add stats; do not stop on first
20617 ARRAY_REF.
20618
20619 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
20620
20621 * config/i386/i386.md (and<mode>3): Generate zero-extends for
20622 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
20623 only.
20624 (*anddi3_doubleword): Split before reload. Merge with
20625 anddi->zext pre-reload splitter.
20626 (*andndi3_doubleword): Split before reload.
20627 (*<code>di3_doubleword): Ditto.
20628 (*one_cmpldi2_doubleword): Ditto.
20629
20630 2019-06-15 Jakub Jelinek <jakub@redhat.com>
20631
20632 PR middle-end/90779
20633 * gimplify.c: Include omp-offload.h and context.h.
20634 (gimplify_bind_expr): Add "omp declare target" attributes
20635 to static block scope variables inside of target region or target
20636 functions.
20637
20638 2019-06-15 Tom de Vries <tdevries@suse.de>
20639
20640 PR tree-optimization/90009
20641 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
20642 Return NULL if bb contains IFN_UNIQUE.
20643
20644 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
20645
20646 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
20647 (un): New define_mode_attr.
20648 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
20649 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
20650 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
20651 merge into ...
20652 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
20653
20654 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
20655
20656 * config/darwin.opt: Add RejectNegative where needed, reorder
20657 and add minimal functional descriptions.
20658
20659 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
20660
20661 PR rtl-optimization/90765
20662 * calls.c (update_stack_alignment_for_call): New function.
20663 (expand_call): Call update_stack_alignment_for_call when
20664 outgoing parameter is passed in the stack.
20665 (emit_library_call_value_1): Likewise.
20666 * function.c (locate_and_pad_parm): Don't update
20667 stack_alignment_needed and preferred_stack_boundary.
20668
20669 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
20670
20671 PR target/90877
20672 * config/i386/i386-features.c
20673 (dimode_scalar_chain::compute_convert_gain): Replace
20674 mmxsse_to_integer with sse_to_integer.
20675 * config/i386/i386.c (ix86_register_move_cost): Verify that
20676 moves between MMX and non-MMX units require secondary memory.
20677 Correct costs of moves between SSE and integer units.
20678 * config/i386/i386.h (processor_costs): Rename cost of moving
20679 SSE register to integer to sse_to_integer. Rename cost of
20680
20681 2019-06-14 Matt Thomas <matt@3am-software.com>
20682 Matthew Green <mrg@eterna.com.au>
20683 Nick Hudson <skrll@netbsd.org>
20684 Maya Rashish <coypu@sdf.org>
20685 Richard Earnshaw <rearnsha@arm.com>
20686
20687 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
20688 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
20689 * config/arm/netbsd-eabi.h: New file.
20690 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
20691 redefining.
20692 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
20693 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
20694 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
20695 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
20696
20697 2019-06-14 Richard Biener <rguenther@suse.de>
20698
20699 * tree-loop-distribution.c (classify_partition): Return
20700 whether a reduction appeared in all partitions and do not
20701 stop builtin detection because of this.
20702 (distribute_loop): Sort a non-builtin partition last if
20703 there's a reduction in all partitions and make sure the
20704 partition prevailing as last is not a builtin.
20705
20706 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
20707
20708 PR ipa/90401
20709 * ipa-prop.c (add_to_agg_contents_list): New function.
20710 (clobber_by_agg_contents_list_p): Likewise.
20711 (extract_mem_content): Likewise.
20712 (get_place_in_agg_contents_list): Delete.
20713 (determine_known_aggregate_parts): Renamed from
20714 determine_locally_known_aggregate_parts. New parameter
20715 aa_walk_budget_p.
20716
20717 2019-06-13 Martin Sebor <msebor@redhat.com>
20718
20719 PR tree-optimization/90662
20720 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
20721 to the same type.
20722
20723 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
20724
20725 PR bootstrap/90873
20726 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
20727 dbase is not TARGET_MEM_REF.
20728
20729 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
20730
20731 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
20732 Update all uses.
20733 (and<mode>3): Use gen_extend_insn instead of indirect functions.
20734 Do not generate DImode extends for 32bit targets.
20735 (and->zext post-reload splitter): Use gen_extend_insn
20736 instead of indirect functions.
20737 (anddi->zext pre-reload splitter): New.
20738 (*zext<mode>_doubleword_and): Remove.
20739 (*zext<mode>_doubleword): Ditto.
20740 (*zextsi_doubleword): Dittto.
20741
20742 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
20743
20744 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
20745 Use gen_sub3_insn instead of indirect function.
20746 (ix86_expand_ashl_const): Use gen_add2_insn instead of
20747 indirect function.
20748 (ix86_adjust_counter): Ditto.
20749
20750 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
20751 Lijia He <helijia@linux.ibm.com>
20752
20753 PR tree-optimization/77820
20754 * tree-ssa-threadedge.c
20755 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
20756 function.
20757 (thread_across_edge): Add call to
20758 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
20759
20760 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
20761
20762 * config/darwin-driver.c (validate_macosx_version_min): New.
20763 (darwin_default_min_version): Cleanup and validate supplied version.
20764 (darwin_driver_init): Likewise and push cleaned version into opts.
20765
20766 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
20767
20768 PR tree-optimization/90869
20769 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
20770 converts in MEM_REF referencing decl rather than view converts
20771 from decl type to MEM_REF type.
20772
20773 2019-06-13 Richard Biener <rguenther@suse.de>
20774
20775 PR tree-optimization/90856
20776 * tree-sra.c (build_ref_for_model): Only use
20777 build_reconstructed_reference when address-spaces are the same.
20778
20779 2019-06-13 Jakub Jelinek <jakub@redhat.com>
20780
20781 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
20782 wrap ei variable name in the declaration in ()s.
20783 (nvptx_single): Actually use mode_label variable. Formatting fix.
20784
20785 2019-06-13 Richard Biener <rguenther@suse.de>
20786
20787 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
20788 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
20789 also return the condition stmt.
20790 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
20791 loop we can version and version that, reusing the loop version
20792 created by if-conversion instead of versioning again.
20793
20794 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
20795
20796 * gimple-loop-versioning.cc (prune_loop_conditions): Use
20797 may_contain_p.
20798 * tree-vrp (value_range_base::may_contain_p): Call into
20799 value_inside_range.
20800 (value_inside_range): Make private inside value_range_base class.
20801 Take min/max from *this.
20802 (range_includes_p): Remove.
20803 * tree-vrp.h (value_range_base): Add value_inside_range.
20804 (range_includes_p): Remove.
20805 (range_includes_zero_p): Call may_contain_p.
20806 * vr-values.c (compare_range_with_value): Same.
20807
20808 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
20809
20810 * doc/extend.texi (ARC Function Attributes): Update info.
20811
20812 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
20813
20814 PR tree-optimization/89713
20815 * doc/invoke.texi (-ffinite-loops): Document new option.
20816 * common.opt (-ffinite-loops): New option.
20817 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
20818 IFN_GOACC_LOOP calls as necessary.
20819 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
20820 is finite.
20821 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
20822 IFN_GOACC_LOOP call is not used.
20823 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
20824
20825 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20826
20827 PR target/88838
20828 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
20829 compare_type is not with Pmode size, we will create an IV with
20830 Pmode size with truncated use (i.e. converted to the correct type).
20831 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
20832 (vect_iv_limit_for_full_masking): New. Factored out of
20833 vect_set_loop_condition_masked.
20834 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
20835 (vect_iv_limit_for_full_masking): Declare.
20836
20837 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20838
20839 PR target/88834
20840 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
20841 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
20842 (get_alias_ptr_type_for_ptr_address): Likewise.
20843 (add_iv_candidate_for_use): Add scaled index candidate if useful.
20844 * tree-ssa-address.c (preferred_mem_scale_factor): New.
20845 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
20846 allow_reg_index_p.
20847
20848 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20849
20850 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
20851
20852 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
20853
20854 * common/config/pru/pru-common.c: New file.
20855 * config.gcc: Add PRU target.
20856 * config/pru/alu-zext.md: New file.
20857 * config/pru/constraints.md: New file.
20858 * config/pru/predicates.md: New file.
20859 * config/pru/pru-opts.h: New file.
20860 * config/pru/pru-passes.c: New file.
20861 * config/pru/pru-pragma.c: New file.
20862 * config/pru/pru-protos.h: New file.
20863 * config/pru/pru.c: New file.
20864 * config/pru/pru.h: New file.
20865 * config/pru/pru.md: New file.
20866 * config/pru/pru.opt: New file.
20867 * config/pru/t-pru: New file.
20868 * doc/extend.texi: Document PRU pragmas.
20869 * doc/invoke.texi: Document PRU-specific options.
20870 * doc/md.texi: Document PRU asm constraints.
20871
20872 2019-06-12 Martin Sebor <msebor@redhat.com>
20873
20874 PR middle-end/90676
20875 * tree-pretty-print.c (dump_mem_ref): New function. Include
20876 MEM_REF type in output when different size than operand.
20877 (dump_generic_node): Move code to dump_mem_ref and call it.
20878
20879 2019-06-12 Martin Sebor <msebor@redhat.com>
20880
20881 PR tree-optimization/90662
20882 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
20883 to arrays.
20884
20885 2019-06-12 Tom de Vries <tdevries@suse.de>
20886
20887 PR tree-optimization/90009
20888 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
20889
20890 2019-06-12 Martin Liska <mliska@suse.cz>
20891
20892 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
20893 the created map.
20894 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
20895 * mem-stats.h (mem_alloc_description::mem_alloc_description):
20896 Do not sanitize created maps.
20897
20898 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
20899
20900 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
20901 value_range::singleton_p.
20902 * tree-vrp.c (value_range_constant_singleton): Remove.
20903 * tree-vrp.h (value_range_constant_singleton): Remove.
20904 * vr-values.c (vr_values::singleton): Use
20905 value_range::singleton_p.
20906
20907 2019-06-12 Jakub Jelinek <jakub@redhat.com>
20908
20909 PR target/90811
20910 * cfgexpand.c (align_local_variable): Add really_expand argument,
20911 don't SET_DECL_ALIGN if it is false.
20912 (add_stack_var): Add really_expand argument, pass it through to
20913 align_local_variable.
20914 (expand_one_stack_var_1): Pass true as really_expand to
20915 align_local_variable.
20916 (expand_one_ssa_partition): Pass true as really_expand to
20917 add_stack_var.
20918 (expand_one_var): Pass really_expand through to add_stack_var.
20919
20920 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
20921
20922 * config/arm/iterators.md (VABAL): New int iterator.
20923 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
20924 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
20925 UNSPEC_VABAL_U values.
20926
20927 2019-06-12 Martin Liska <mliska@suse.cz>
20928
20929 * value-prof.c (stream_out_histogram_value): Only first value
20930 can't be negative.
20931
20932 2019-06-12 Jakub Jelinek <jakub@redhat.com>
20933
20934 PR c/90760
20935 * symtab.c (symtab_node::set_section): Allow being called on aliases
20936 as long as they aren't analyzed yet.
20937
20938 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
20939
20940 * config/mips/mips.c (mips_final_postscan_insn): Modify call
20941 to `mips_set_text_contents_type' to indicate whether a
20942 non-debug insn follows.
20943
20944 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
20945
20946 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
20947 enabling -mpcrel by default.
20948 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
20949 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
20950 that the test against -mcpu=future is done first. Then test if
20951 -mprefixed-addr is on for -mpcrel.
20952 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
20953
20954 2019-06-11 Jakub Jelinek <jakub@redhat.com>
20955
20956 PR target/90811
20957 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
20958 instead of and.u%d.
20959
20960 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
20961
20962 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
20963
20964 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
20965
20966 PR c++/90449 - add -Winaccessible-base option.
20967 * doc/invoke.texi (Winaccessible-base): Document.
20968
20969 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
20970
20971 PR tree-optimization/62041
20972 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
20973
20974 2019-06-11 Jason Merrill <jason@redhat.com>
20975
20976 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
20977 * tree.c (get_tree_code_name): Likewise.
20978 * print-tree.c (print_node): Only briefly print a node with an
20979 invalid code.
20980
20981 2019-06-11 Jakub Jelinek <jakub@redhat.com>
20982
20983 PR bootstrap/90819
20984 * trans-mem.c (tm_memopt_compute_available): Add assertion
20985 that blocks is not empty. Formatting fix.
20986
20987 2019-06-11 Martin Liska <mliska@suse.cz>
20988
20989 PR c++/87847
20990 * hash-table.h: Extend create_gcc, add one parameter
20991 that is passed into hash_table::hash_table.
20992
20993 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
20994
20995 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
20996 New prototype.
20997 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
20998 Emit clobber also for non-sse operations.
20999 (ix86_split_fp_absneg_operator): New function.
21000 * config/i386/i386.md (SSEMODEF): New mode iterator.
21001 (ssevecmodef): New mode attribute.
21002 (<code>tf2): Use absneg code iterator.
21003 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
21004 Add three-operand AVX alternatives.
21005 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
21006 Use absneg code iterator and X87MODEF mode iterator.
21007 (absneg fp_reg non-sse splitter): Call absneg code iterator
21008 and X87MODEF mode iterator.
21009 (absneg general_reg non-sse splitter): Use absneg code iterator
21010 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
21011 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
21012 code iterator. Add three-operand AVX alternative.
21013 (absneg sse_reg splitter): Use absneg code iterator
21014 and SSEMODEF mode iterator. Handle AVX operands.
21015 (absneg fp_reg splitter): Use absneg code iterator
21016 and MODEF mode iterator.
21017 (absneg general_reg splitter): Merge splitters using MODEF mode
21018 iterator. Use absneg code iterator. Call
21019 ix86_split_fp_absneg_operator.
21020 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
21021 Do not enable for non-sse modes before reload.
21022 (CSGNMODE): Remove.
21023 (CSGNVMODE): Ditto.
21024 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
21025 ssevecmodef mode attribute instaed of CSGNVMODE.
21026 (copysign<mode>3_const): Ditto.
21027 (copysign<mode>3_var): Ditto.
21028 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
21029 Use absneg code iterator. Simplify code using std::swap.
21030 * config/i386/predicates.md (absneg_operator): Remove.
21031
21032 2019-06-10 Martin Sebor <msebor@redhat.com>
21033
21034 * gimple-fold.c (get_range_strlen): Update comment that didn't
21035 make it into r267503 or related commits.
21036
21037 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
21038
21039 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
21040 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
21041
21042 2019-06-10 Jakub Jelinek <jakub@redhat.com>
21043
21044 * tree.def (OMP_SCAN): New tree code.
21045 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
21046 OMP_CLAUSE_EXCLUSIVE.
21047 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
21048 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
21049 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
21050 OMP_CLAUSE_{IN,EX}CLUSIVE.
21051 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
21052 * tree-nested.c (convert_nonlocal_reference_stmt,
21053 convert_local_reference_stmt, convert_gimple_call): Handle
21054 GIMPLE_OMP_SCAN.
21055 * tree-pretty-print.c (dump_omp_clause): Handle
21056 OMP_CLAUSE_{IN,EX}CLUSIVE.
21057 (dump_generic_node): Handle OMP_SCAN.
21058 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
21059 * gimple.h (gomp_scan): New type.
21060 (is_a_helper <gomp_scan *>::test,
21061 is_a_helper <const gomp_scan *>::test): New templates.
21062 (gimple_build_omp_scan): Declare.
21063 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
21064 gimple_omp_scan_set_clauses): New inline functions.
21065 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
21066 * gimple.c (gimple_build_omp_scan): New function.
21067 (gimple_copy): Handle GIMPLE_OMP_SCAN.
21068 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
21069 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
21070 GIMPLE_OMP_TASKGROUP.
21071 (dump_gimple_omp_scan): New function.
21072 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
21073 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
21074 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
21075 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
21076 (is_gimple_stmt): Handle OMP_SCAN.
21077 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
21078 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
21079 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
21080 mentioned in nested #pragma omp scan. Handle
21081 OMP_CLAUSE_{IN,EX}CLUSIVE.
21082 (gimplify_expr): Handle OMP_SCAN.
21083 * omp-low.c (check_omp_nesting_restrictions): For parent context,
21084 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
21085 simd constructs.
21086 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
21087 GIMPLE_OMP_SCAN.
21088
21089 2019-06-10 Martin Liska <mliska@suse.cz>
21090
21091 * ipa-cp.c (ignore_edge_p): New function.
21092 (build_toporder_info): Use it.
21093 * ipa-inline.c (ignore_edge_p): New function.
21094 (inline_small_functions): Use it.
21095 * ipa-pure-const.c (ignore_edge_for_nothrow):
21096 Verify opt_for_fn for caller and callee.
21097 (ignore_edge_for_pure_const): Likewise.
21098 * ipa-reference.c (ignore_edge_p): Extend to check
21099 for opt_for_fn.
21100 * ipa-utils.c (searchc): Refactor.
21101 * ipa-utils.h: Fix coding style.
21102
21103 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
21104
21105 * config/arc/arc.c (arc_rtx_costs): Update costs.
21106
21107 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
21108
21109 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
21110 (arc_split_ior): Likewise.
21111 (arc_check_mov_const): Likewise.
21112 (arc_split_mov_const): Likewise.
21113 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
21114 (arc_rtx_costs): Replace check Crr with Cax constraint.
21115 (prepare_move_operands): Cleanup, remove unused code.
21116 (arc_split_ior): New function.
21117 (arc_check_ior_const): Likewise.
21118 (arc_split_mov_const): Likewise.
21119 (arc_check_mov_const): Likewise.
21120 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
21121 in define_insn_and_split pattern.
21122 (iorsi3): Likewise.
21123 (mulsi3_v2): Add new matching variant.
21124 (andsi3_i): Cleanup pattern.
21125 (rotrsi3_cnt1): Update pattern.
21126 (rotrsi3_cnt8): New pattern.
21127 (ashlsi2_cnt8): Likewise.
21128 (ashlsi2_cnt16): Likewise.
21129 * config/arc/constraints.md (C0p): Update constraint.
21130 (Crr): Remove it.
21131 (C0x): New pattern.
21132 (Cax): New pattern.
21133
21134 2019-06-10 Martin Liska <mliska@suse.cz>
21135
21136 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
21137 Update coding style.
21138 (sem_item_optimizer::dump_cong_classes):
21139 Print how many items are in a non-singular class. Improve
21140 coding style.
21141
21142 2019-06-10 Martin Liska <mliska@suse.cz>
21143
21144 * value-prof.c (dump_histogram_value): Change dump format.
21145 (gimple_mod_subtract_transform): Remove legacy comment.
21146
21147 2019-06-10 Martin Liska <mliska@suse.cz>
21148
21149 * value-prof.c (dump_histogram_value): Print histogram values
21150 only if present.
21151
21152 2019-06-10 Martin Liska <mliska@suse.cz>
21153
21154 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
21155 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
21156 * ipa-profile.c (ipa_profile_generate_summary):
21157 Use get_most_common_single_value.
21158 * tree-profile.c (gimple_init_gcov_profiler):
21159 Instrument with __gcov_one_value_profiler_v2
21160 and __gcov_indirect_call_profiler_v4.
21161 * value-prof.c (dump_histogram_value):
21162 Print all values for HIST_TYPE_SINGLE_VALUE.
21163 (stream_out_histogram_value): Update assert for
21164 N values.
21165 (stream_in_histogram_value): Set number of
21166 counters for HIST_TYPE_SINGLE_VALUE.
21167 (get_most_common_single_value): New.
21168 (gimple_divmod_fixed_value_transform):
21169 Use get_most_common_single_value.
21170 (gimple_ic_transform): Likewise.
21171 (gimple_stringops_transform): Likewise.
21172 (gimple_find_values_to_profile): Set number
21173 of counters for HIST_TYPE_SINGLE_VALUE.
21174 * value-prof.h (get_most_common_single_value): New.
21175
21176 2019-06-10 Martin Liska <mliska@suse.cz>
21177
21178 * hash-map.h: Pass default value to hash_table ctor.
21179 * hash-table.h: Add default value to call of a ctor.
21180
21181 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
21182
21183 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
21184 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
21185
21186 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
21187
21188 PR target/90751
21189 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
21190 Call pa_output_function_label.
21191 (TARGET_ASM_FUNCTION_PROLOGUE): define.
21192 * config/pa/pa-protos.h (pa_output_function_label): Declare.
21193 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
21194 to declaration.
21195 (pa_linux_output_function_prologue): Declare.
21196 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
21197 (pa_output_function_label): New.
21198 (pa_output_function_prologue): Revise to use pa_output_function_label.
21199 (pa_linux_output_function_prologue): New.
21200 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
21201
21202 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
21203
21204 * tree-vrp.h (value_range_base::intersect): New.
21205 (value_range::intersect_helper): Move from here...
21206 (value_range_base::intersect_helper): ...to here.
21207 * tree-vrp.c (value_range::intersect_helper): Rename to...
21208 (value_range_base::intersect_helper): ...this, and rewrite to
21209 return a value instead of modifying THIS in place.
21210 Also, move equivalence handling...
21211 (value_range::intersect): ...here, while calling intersect_helper.
21212 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
21213 calling intersect.
21214 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
21215 Same.
21216 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
21217
21218 2019-06-07 Jakub Jelinek <jakub@redhat.com>
21219
21220 * Makefile.in (genprogerr): Add condmd.
21221 (genprog): Remove it here.
21222
21223 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
21224
21225 * doc/invoke.texi (AMD GCN Options): Add gfx906.
21226
21227 2019-06-07 Richard Biener <rguenther@suse.de>
21228
21229 PR debug/90574
21230 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
21231 that appear after user labels.
21232
21233 2019-06-07 Martin Liska <mliska@suse.cz>
21234
21235 * cselib.c (cselib_init): Disable hash table
21236 sanitization.
21237 * hash-set.h: Pass new default argument to m_table.
21238 * hash-table.c: Add global variable with hash table
21239 sanitization limit.
21240 * hash-table.h (Allocator>::hash_table): Add new argument
21241 to ctor.
21242 (hashtab_chk_error): New.
21243 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
21244 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
21245 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
21246
21247 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
21248
21249 * common.opt (flto-odr-type-merging): Ignore.
21250 * invoke.texi (-flto-odr-type-merging): Remove.
21251 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
21252 (can_be_vtable_hashed_p): Remove.
21253 (hash_odr_vtable): Remove.
21254 (odr_vtable_hasher::hash): Remove.
21255 (types_same_for_odr): Remove.
21256 (types_odr_comparable): Remove.
21257 (odr_vtable_hasher::equal): Remove.
21258 (odr_vtable_hash_type, odr_vtable_hash): Remove.
21259 (add_type_duplicate): Do not synchronize vtable and name hashtables.
21260 (get_odr_type): Do not use vtable hash.
21261 (dump_odr_type): Remove commented out code.
21262 (build_type_inheritance_graph): Do not allocate vtable hash.
21263 (rebuild_type_inheritance_graph): Do not delete vtable hash.
21264 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
21265 (odr_type_p): Likewise.
21266 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
21267 test.
21268
21269 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
21270
21271 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
21272 immediately after same_types_for_tbaa_p returns -1 and continue
21273 looking for possible exact match; if matching types are arrays
21274 watch for partial overlaps.
21275 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
21276 (indirect_refs_may_alias_p): Do type based disambiguation first;
21277 update comment.
21278
21279 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
21280
21281 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
21282
21283 2019-06-07 Martin Liska <mliska@suse.cz>
21284
21285 * doc/invoke.texi: Remove param.
21286 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
21287 Remove.
21288 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
21289 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
21290 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
21291 * profile.c (instrument_values): Remove
21292 HIST_TYPE_INDIR_CALL_TOPN.
21293 * tree-profile.c (init_ic_make_global_vars):
21294 Always build __gcov_indirect_call only.
21295 (gimple_init_gcov_profiler): Remove usage
21296 of PARAM_INDIR_CALL_TOPN_PROFILE.
21297 (gimple_gen_ic_profiler): Likewise.
21298 * value-prof.c (dump_histogram_value): Likewise.
21299 (stream_in_histogram_value): Likewise.
21300 (gimple_indirect_call_to_profile): Likewise.
21301 (gimple_find_values_to_profile): Likewise.
21302 * value-prof.h (enum hist_type): Likewise.
21303
21304 2019-06-07 Martin Liska <mliska@suse.cz>
21305
21306 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
21307 function.
21308
21309 2019-06-07 Martin Liska <mliska@suse.cz>
21310
21311 PR tree-optimization/78902
21312 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
21313 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
21314 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
21315 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
21316 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
21317 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
21318 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
21319 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
21320 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
21321 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
21322 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
21323 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
21324 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
21325 New.
21326 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
21327 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
21328 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
21329 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
21330 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
21331 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
21332 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
21333 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
21334 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
21335 warn_unused_result attribute.
21336 (BUILT_IN_STRDUP): Likewise.
21337 (BUILT_IN_STRNDUP): Likewise.
21338 (BUILT_IN_ALLOCA): Likewise.
21339 (BUILT_IN_CALLOC): Likewise.
21340 (BUILT_IN_MALLOC): Likewise.
21341 (BUILT_IN_REALLOC): Likewise.
21342
21343 2019-06-06 Jim Wilson <jimw@sifive.com>
21344
21345 PR target/89955
21346 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
21347 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
21348 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
21349
21350 2019-06-06 Martin Sebor <msebor@redhat.com>
21351
21352 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
21353 (handle_builtin_malloc): Remove trailing spaces.
21354 (handle_builtin_memset): Same.
21355 (handle_builtin_memcmp): Same.
21356 (compute_string_length): Same.
21357 (determine_min_objsize): Same.
21358 (handle_builtin_string_cmp): Same.
21359 (handle_char_store): Same. Break up excessively long line.
21360
21361 2019-06-06 Martin Jambor <mjambor@suse.cz>
21362
21363 * tree-sra.c (build_reconstructed_reference): Drop the alignment
21364 check.
21365
21366 2019-06-06 Martin Jambor <mjambor@suse.cz>
21367
21368 * tree-sra.c (struct access): New field grp_same_access_path.
21369 (dump_access): Dump it.
21370 (build_reconstructed_reference): New function.
21371 (build_ref_for_model): Use it if possible.
21372 (path_comparable_for_same_access): New function.
21373 (same_access_path_p): Likewise.
21374 (sort_and_splice_var_accesses): Set the new flag.
21375 (analyze_access_subtree): Likewise.
21376 (propagate_subaccesses_across_link): Propagate zero value of the new
21377 flag down the access tree.
21378
21379 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
21380
21381 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
21382 * config/gcn/gcn.opt (gpu_type): Add gfx906.
21383 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
21384 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
21385 Add gfx906.
21386
21387 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21388
21389 PR tree-optimization/90332
21390 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
21391 Handle VALS containing two vectors.
21392 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
21393 to...
21394 (@aarch64_combinez<mode>): ... This.
21395 (*aarch64_combinez_be<mode>): Rename to...
21396 (@aarch64_combinez_be<mode>): ... This.
21397 (vec_init<mode><Vhalf>): New define_expand.
21398 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
21399
21400 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21401
21402 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
21403 library functions only when not optimizing for size.
21404 (ashlsi3): Likewise.
21405 (ashrhi3): Likewise.
21406 (ashrsi3): Likewise.
21407 (lshrhi3): Likewise.
21408 (lshrsi3): Likewise.
21409
21410 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
21411
21412 PR rtl-optimization/88751
21413 * ira.c (ira): Use the number of the actually referenced registers
21414 when calculating the threshold.
21415
21416 2019-06-06 Jakub Jelinek <jakub@redhat.com>
21417
21418 * configure: Regenerate.
21419
21420 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21421
21422 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
21423 register if it is in memory, so the shift can be emulated with a rotate
21424 instruction.
21425 (ashrhi3): Likewise.
21426 (lshrhi3): Likewise.
21427
21428 2019-06-06 Martin Liska <mliska@suse.cz>
21429
21430 PR tree-optimization/87954
21431 * match.pd: Simplify mult where both arguments are 0 or 1.
21432
21433 2019-06-06 Richard Biener <rguenther@suse.de>
21434
21435 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
21436 put equivalences on UNDEFINED ranges.
21437 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
21438 Make sure to drop defs of stmts added during simplification
21439 to VARYING.
21440
21441 2019-06-06 Richard Biener <rguenther@suse.de>
21442
21443 * tree-ssa-structalias.c: Include tree-cfg.h.
21444 (make_heapvar): Do not make heap vars artificial.
21445 (find_func_aliases_for_builtin_call): Handle stack allocation
21446 functions.
21447 (find_func_aliases): Delay processing of simple enough returns
21448 in non-IPA mode.
21449 (set_uids_in_ptset): Adjust.
21450 (find_what_var_points_to): Likewise.
21451 (solve_constraints): Do not dump points-to sets here.
21452 (compute_points_to_sets): Post-process return statements,
21453 amending the escaped solution. Dump points-to sets afterwards.
21454 (ipa_pta_execute): Dump points-to sets.
21455
21456 2019-06-06 Martin Liska <mliska@suse.cz>
21457
21458 PR web/87933
21459 * doc/install.texi: Fix HTML headers and
21460 titles for 'Installing GCC' pages.
21461
21462 2019-06-06 Martin Liska <mliska@suse.cz>
21463
21464 * ipa-icf-gimple.h (dump_message_1): Remove.
21465 (dump_message): Likewise.
21466 (return_false_with_message_1): Print also file.
21467 (return_false_with_msg): Likewise.
21468 (return_with_result): Likewise.
21469 (return_with_debug): Likewise.
21470 * ipa-icf.c (sem_function::equals_private): Remove call
21471 to dump_message.
21472
21473 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
21474
21475 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
21476 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
21477 memory operand for it.
21478 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
21479
21480 2019-06-05 Martin Sebor <msebor@redhat.com>
21481
21482 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
21483 Adjust quoting and hyphenation.
21484 * convert.c (convert_to_real_1): Same.
21485 * gcc.c (driver_wrong_lang_callback): Same.
21486 (driver::handle_unrecognized_options): Same.
21487 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
21488 * opts-common.c (cmdline_handle_error): Same.
21489 (read_cmdline_option): Same.
21490 * opts-global.c (complain_wrong_lang): Same.
21491 (print_ignored_options): Same.
21492 (handle_common_deferred_options): Same.
21493 * pretty-print.h: Same.
21494 * print-rtl.c (debug_bb_n_slim): Same.
21495 * sched-rgn.c (make_pass_sched_fusion): Same.
21496 * tree-cfg.c (verify_gimple_assign_unary): Same.
21497 (verify_gimple_label): Same.
21498 * tree-ssa-operands.c (verify_ssa_operands): Same.
21499 * varasm.c (do_assemble_alias): Same.
21500 (assemble_alias): Same.
21501
21502 2019-06-05 Richard Henderson <rth@twiddle.net>
21503
21504 * config/alpha/alpha.c (direct_return): Move down after
21505 struct machine_function definition; use saved frame_size;
21506 return bool.
21507 (struct machine_function): Add sa_mask, sa_size, frame_size.
21508 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
21509 (alpha_compute_frame_layout): ... new function.
21510 (TARGET_COMPUTE_FRAME_LAYOUT): New.
21511 (alpha_initial_elimination_offset): Use saved sa_size.
21512 (alpha_vms_initial_elimination_offset): Likewise.
21513 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
21514 (alpha_expand_prologue): Use saved frame data. Merge integer
21515 and fp register save loops.
21516 (alpha_expand_epilogue): Likewise.
21517 (alpha_start_function): Use saved frame data.
21518 * config/alpha/alpha-protos.h (direct_return): Update.
21519 (alpha_sa_size): Remove.
21520
21521 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
21522
21523 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
21524 multiplication by a power-of-two value.
21525 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
21526 and turn the modulo operation into a masking operation.
21527
21528 2019-06-05 Jakub Jelinek <jakub@redhat.com>
21529
21530 PR debug/90733
21531 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
21532 with VOIDmode inner operands.
21533
21534 2019-06-05 Richard Biener <rguenther@suse.de>
21535
21536 PR middle-end/90726
21537 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
21538 turn an expression graph into a tree.
21539
21540 2019-06-05 Jakub Jelinek <jakub@redhat.com>
21541
21542 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
21543 member.
21544 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
21545 treat it like explicit monotonic schedule modifier.
21546 (expand_omp_for): Initialize has_lastprivate_conditional.
21547 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
21548 schedule modifier.
21549
21550 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
21551 references, lookup in in hash map MEM_REF operand instead of the
21552 MEM_REF itself.
21553 (lower_omp_1): When looking for lastprivate conditional assignments,
21554 handle MEM_REFs with REFERENCE_TYPE operands.
21555
21556 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
21557 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
21558 and references a VLA. Handle references to non-VLAs if is_simd
21559 all privatization clauses like reductions.
21560 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
21561 If omp_is_reference, use always omp simd arrays and set
21562 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
21563 fails, emit reference initialization.
21564
21565 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
21566
21567 PR target/89803
21568 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
21569 _mm_mask_fpclass_sd_mask): New intrinsics.
21570 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
21571 * config/i386/i386-builtin.def
21572 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
21573 New builtins.
21574 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
21575 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
21576 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
21577 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
21578 case QI_FTYPE_V2SF_INT): Ditto.
21579 * config/i386/sse.md
21580 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
21581 Extended to insnstructions with mask operands.
21582
21583 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21584
21585 * config/rs6000/constraints.md (define_register_constraint "wp"):
21586 Delete.
21587 (define_register_constraint "wq"): Delete.
21588 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21589 (rs6000_init_hard_regno_mode_ok): Adjust.
21590 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21591 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
21592 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
21593 (define_mode_attr VSa): Delete.
21594 (define_mode_attr VSisa): New.
21595 (rest of file): Adjust.
21596 * doc/md.texi (Machine Constraints): Adjust.
21597
21598 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21599
21600 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
21601 (define_attr "enabled"): Handle those new isa values.
21602
21603 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21604
21605 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
21606 (define_mode_attr VSr5): Delete.
21607 (define_mode_attr VStype_sqrt): Delete.
21608 (define_mode_iterator VSX_SPDP): Delete.
21609 (define_mode_attr VS_spdp_res): Delete.
21610 (define_mode_attr VS_spdp_insn): Delete.
21611 (define_mode_attr VS_spdp_type): Delete.
21612 (*vsx_sqrt<mode>2): Adjust.
21613 (vsx_<VS_spdp_insn>): Delete, split to...
21614 (vsx_xscvdpsp): ... this. New. And...
21615 (vsx_xvcvspdp): ... this. New. And...
21616 (vsx_xvcvdpsp): ... this. New.
21617
21618 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21619
21620 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
21621 and V2DF.
21622 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
21623 (rest of file): Adjust.
21624
21625 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21626
21627 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
21628 (vsx_extract_<mode>_var): Ditto.
21629
21630 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21631
21632 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
21633 with just "wa".
21634
21635 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21636
21637 * config/rs6000/constraints.md (define_register_constraint "ww"):
21638 Delete.
21639 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21640 (rs6000_init_hard_regno_mode_ok): Adjust.
21641 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21642 RS6000_CONSTRAINT_ww.
21643 * config/rs6000/rs6000.md: Adjust.
21644 * config/rs6000/vsx.md: Adjust.
21645 * doc/md.texi (Machine Constraints): Adjust.
21646
21647 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21648
21649 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
21650 (define_mode_attr sd): New.
21651 (define_mode_attr s): New.
21652 (define_mode_attr Ftrad): Delete.
21653 (define_mode_attr Fvsx): Delete.
21654 (define_mode_attr Fs): Delete.
21655 (rest of file): Use the new mode attributes.
21656 * config.rs6000/vsx.md: Use the new mode attributes.
21657
21658 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21659
21660 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
21661 with just "wa".
21662
21663 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21664
21665 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
21666 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
21667 used with VSX_B, VSX_D, or VSX_F, with just "wa".
21668
21669 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
21670
21671 PR target/78263
21672 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
21673 C++ with strict ANSI requirements.
21674
21675 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
21676
21677 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
21678 computations when step is 1.
21679
21680 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21681
21682 * config/rs6000/constraints.md (define_register_constraint "wf"):
21683 Delete.
21684 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21685 (rs6000_init_hard_regno_mode_ok): Adjust.
21686 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21687 RS6000_CONSTRAINT_wf.
21688 * config/rs6000/rs6000.md: Adjust.
21689 * config/rs6000/vsx.md: Adjust.
21690 * doc/md.texi (Machine Constraints): Adjust.
21691
21692 2019-06-04 Andrew Pinski <apinski@marvell.com>
21693
21694 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
21695 Fix ILP32 value.
21696
21697 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21698
21699 * config/rs6000/constraints.md (define_register_constraint "wd"):
21700 Delete.
21701 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21702 (rs6000_init_hard_regno_mode_ok): Adjust.
21703 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21704 RS6000_CONSTRAINT_wd.
21705 * config/rs6000/rs6000.md: Adjust.
21706 * config/rs6000/vsx.md: Adjust.
21707 * doc/md.texi (Machine Constraints): Adjust.
21708
21709 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21710
21711 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
21712 (rest of file): Adjust.
21713
21714 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21715
21716 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
21717 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
21718 (vsx_splat_<mode>_reg): Adjust.
21719
21720 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21721
21722 * config/rs6000/constraints.md (define_register_constraint "ws"):
21723 Delete.
21724 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21725 (rs6000_init_hard_regno_mode_ok): Adjust.
21726 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21727 RS6000_CONSTRAINT_ws.
21728 * config/rs6000/rs6000.md: Adjust.
21729 * config/rs6000/vsx.md: Adjust.
21730 * doc/md.texi (Machine Constraints): Adjust.
21731
21732 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21733
21734 * config/rs6000/constraints.md (define_register_constraint "wv"):
21735 Delete.
21736 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21737 (rs6000_init_hard_regno_mode_ok): Adjust.
21738 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21739 RS6000_CONSTRAINT_wv.
21740 * config/rs6000/rs6000.md: Adjust.
21741 * config/rs6000/vsx.md: Adjust.
21742 * doc/md.texi (Machine Constraints): Adjust.
21743
21744 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21745
21746 * config/rs6000/constraints.md (define_register_constraint "wi"):
21747 Delete.
21748 (define_register_constraint "wt"): Delete.
21749 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21750 (rs6000_init_hard_regno_mode_ok): Adjust.
21751 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21752 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
21753 * config/rs6000/rs6000.md: Adjust.
21754 * config/rs6000/vsx.md: Adjust.
21755 * doc/md.texi (Machine Constraints): Adjust.
21756
21757 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
21758
21759 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
21760 const.
21761 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
21762 default_elf_asm_output_external.
21763
21764 2019-06-04 Martin Liska <mliska@suse.cz>
21765
21766 * ipa-icf.c (INCLUDE_LIST): Remove.
21767 (sem_item_optimizer::execute): Remove call to init_wpa.
21768 * ipa-icf.h (init_wpa): Remove.
21769
21770 2019-06-04 Jakub Jelinek <jakub@redhat.com>
21771
21772 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
21773 conditional on combined for simd.
21774 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
21775 member.
21776 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
21777 constructs, don't remove lastprivate_conditional_map, but instead set
21778 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
21779 to parent construct temporaries.
21780 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
21781 like !ctx->lastprivate_conditional_map.
21782 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
21783 use up->outer context instead of up.
21784 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
21785 gimple_omp_for_combined_p.
21786 (expand_omp_for_static_nochunk): Likewise.
21787 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
21788 probably moved over into expand_omp_for_generic rather than being copied
21789 there.
21790
21791 2019-06-04 Martin Liska <mliska@suse.cz>
21792
21793 * value-prof.c (dump_histogram_value): Fix typo.
21794 (gimple_mod_subtract_transform): Likewise.
21795
21796 2019-06-04 Richard Biener <rguenther@suse.de>
21797
21798 PR middle-end/90726
21799 * tree-chrec.c (chrec_contains_symbols): Add to visited.
21800 (tree_contains_chrecs): Likewise.
21801 (chrec_contains_symbols_defined_in_loop): Move here and avoid
21802 exponential behaivor from ...
21803 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
21804 ... here.
21805 (expression_expensive_p): Avoid exponential behavior and compute
21806 expanded size, rejecting any expansion.
21807 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
21808 (idx_contains_abnormal_ssa_name_p): Likewise.
21809 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
21810 (contains_abnormal_ssa_name_p): Simplify and use
21811 walk_tree_without_duplicates.
21812
21813 2019-06-04 Richard Biener <rguenther@suse.de>
21814
21815 PR tree-optimization/90738
21816 Revert
21817 2019-06-03 Richard Biener <rguenther@suse.de>
21818
21819 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
21820 full reference tree and record in ref->ref.
21821 (vn_reference_lookup_3): Pass in original ref to
21822 ao_ref_init_from_vn_reference.
21823 (vn_reference_lookup): Likewise.
21824 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
21825 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21826 Handle non-decl bases in the original reference.
21827
21828 2019-06-04 Martin Liska <mliska@suse.cz>
21829
21830 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
21831 number of references.
21832 (sem_item_optimizer::do_congruence_step):
21833 (sem_item_optimizer::worklist_push): Dump how references
21834 a class has.
21835 (sem_item_optimizer::worklist_pop): Use heap.
21836 (sem_item_optimizer::process_cong_reduction): Likewise.
21837 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
21838
21839 2019-06-04 Martin Liska <mliska@suse.cz>
21840
21841 * ipa-icf.h (struct sem_usage_pair_hash): New.
21842 (sem_usage_pair_hash::hash): Likewise.
21843 (sem_usage_pair_hash::equal): Likewise.
21844 (struct sem_usage_hash): Likewise.
21845 * ipa-icf.c (sem_item::sem_item): Initialize
21846 referenced_by_count.
21847 (sem_item::add_reference): Register a reference
21848 in ref_map and not in target->usages.
21849 (sem_item::setup): Remove initialization of
21850 dead vectors.
21851 (sem_item::~sem_item): Remove usage of dead vectors.
21852 (sem_item::dump): Remove dump of references.
21853 (sem_item_optimizer::sem_item_optimizer): Initialize
21854 m_references.
21855 (sem_item_optimizer::read_section): Remove useless
21856 dump.
21857 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
21858 (sem_item_optimizer::build_graph): Pass m_references
21859 to ::add_reference.
21860 (sem_item_optimizer::verify_classes): Remove usage of dead
21861 vectors.
21862 (sem_item_optimizer::traverse_congruence_split): Return true
21863 when a class is split.
21864 (sem_item_optimizer::do_congruence_step_for_index): Use
21865 hash_map for look up of (sem_item *, index). That brings
21866 significant speed up.
21867 (sem_item_optimizer::do_congruence_step): Return true
21868 when a split is done.
21869 (congruence_class::is_class_used): Use referenced_by_count.
21870
21871 2019-06-04 Alan Modra <amodra@gmail.com>
21872
21873 PR target/90689
21874 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
21875 error.
21876
21877 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
21878
21879 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
21880 * config/rs6000/rs6000.c (direct_move_p): Adjust.
21881 (rs6000_secondary_reload_simple_move): Adjust.
21882 (rs6000_opt_masks): Neuter the "mfpgpr" option.
21883 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
21884 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
21885 comment.
21886 (power6x): Adjust.
21887 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
21888 (floatunssi<mode>2_lfiwzx): Adjust.
21889 (fix_trunc<mode>si2_stfiwx): Adjust.
21890 (fixuns_trunc<mode>si2_stfiwx): Adjust.
21891 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
21892 (mfpgpr): Mark as deprecated.
21893 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
21894 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
21895 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
21896
21897 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
21898
21899 * config/rs6000/constraints.md (define_register_constraint "wg"):
21900 Delete.
21901 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21902 RS6000_CONSTRAINT_wg.
21903 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21904 (rs6000_init_hard_regno_mode_ok): Adjust.
21905 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
21906 Delete "wg" alternatives.
21907 * doc/md.texi (Machine Constraints): Adjust.
21908
21909 2019-06-03 Alan Modra <amodra@gmail.com>
21910
21911 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
21912 (get_uncond_jump_length): Assert length less than INT_MAX and
21913 non-negative.
21914
21915 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
21916
21917 PR middle-end/64242
21918 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
21919 block.
21920 (expand_builtin_nonlocal_goto): Likewise.
21921
21922 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
21923
21924 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
21925 (aarch64_asm_output_external): Declare.
21926 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
21927 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
21928 (aarch64_asm_output_alias): New.
21929 (aarch64_asm_output_external): New.
21930 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
21931 (ASM_OUTPUT_EXTERNAL): Define.
21932
21933 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
21934 * tree-vrp.h (value_range_base::nonzero_p): New.
21935 (value_range_base::set_nonnull): Rename to...
21936 (value_range_base::set_nonzero): ...this.
21937 (value_range_base::set_null): Rename to...
21938 (value_range_base::set_zero): ...this.
21939 (value_range::set_nonnull): Remove.
21940 (value_range::set_null): Remove.
21941 * tree-vrp.c (range_is_null): Remove.
21942 (range_is_nonnull): Remove.
21943 (extract_range_from_binary_expr): Use value_range_base::*zero_p
21944 instead of range_is_*null.
21945 (extract_range_from_unary_expr): Same.
21946 (value_range_base::set_nonnull): Rename to...
21947 (value_range_base::set_nonzero): ...this.
21948 (value_range::set_nonnull): Remove.
21949 (value_range_base::set_null): Rename to...
21950 (value_range_base::set_zero): ...this.
21951 (value_range::set_null): Remove.
21952 (extract_range_from_binary_expr): Rename set_*null uses to
21953 set_*zero.
21954 (extract_range_from_unary_expr): Same.
21955 (union_helper): Same.
21956 * vr-values.c (get_value_range): Use set_*zero instead of
21957 set_*null.
21958 (vr_values::extract_range_from_binary_expr): Same.
21959 (vr_values::extract_range_basic): Same.
21960
21961 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
21962
21963 PR driver/90684
21964 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
21965
21966 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21967
21968 * config/aarch64/iterators.md (MAX_OPP): New code attr.
21969 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
21970 Rename to...
21971 (aarch64_<su>abd<mode>_3): ... This.
21972 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
21973
21974 2019-06-03 Richard Biener <rguenther@suse.de>
21975
21976 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
21977 full reference tree and record in ref->ref.
21978 (vn_reference_lookup_3): Pass in original ref to
21979 ao_ref_init_from_vn_reference.
21980 (vn_reference_lookup): Likewise.
21981 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
21982 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21983 Handle non-decl bases in the original reference.
21984
21985 2019-06-03 Martin Liska <mliska@suse.cz>
21986
21987 * doc/generic.texi: Remove Java Trees.
21988
21989 2019-06-03 Martin Liska <mliska@suse.cz>
21990
21991 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
21992 returns 0 when operands are equal.
21993
21994 2019-06-03 Richard Biener <rguenther@suse.de>
21995
21996 PR tree-optimization/90716
21997 * tree-loop-distribution.c (destroy_loop): Process blocks in
21998 correct order.
21999
22000 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22001
22002 PR target/88837
22003 * vector-builder.h (vector_builder::count_dups): New method.
22004 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
22005 Declare prototype.
22006 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
22007 (vec_init<mode><Vel>): New pattern.
22008 * config/aarch64/aarch64.c (emit_insr): New function.
22009 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
22010 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
22011 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
22012 (aarch64_sve_expand_vector_init): Define two overloaded functions.
22013
22014 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22015
22016 PR tree-optimization/90681
22017 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
22018 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
22019 special case for SLP, but fail on non-groupped loads.
22020
22021 2019-06-03 Martin Liska <mliska@suse.cz>
22022
22023 * cfg.c (debug): Use TDF_DETAILS for debug and
22024 print edge info only once.
22025
22026 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
22027
22028 PR fortran/90539
22029 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
22030
22031 2019-06-01 Martin Sebor <msebor@redhat.com>
22032
22033 PR middle-end/90694
22034 * tree-pretty-print.c (dump_generic_node): Add parentheses.
22035
22036 2019-05-31 Jan Hubicka <jh@suse.cz>
22037
22038 * alias.c: Include ipa-utils.h.
22039 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
22040 * ipa-devirt.c (prevailing_odr_type): New.
22041 * ipa-utils.h (previaling_odr_type): Declare.
22042
22043 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
22044 Hongtao Liu <hongtao.liu@intel.com>
22045
22046 PR target/89355
22047 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
22048 NOTE_INSN_DELETED_LABEL check.
22049
22050 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
22051 Robert Suchanek <robert.suchanek@mips.com>
22052
22053 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
22054 and 3rd operands of the fmadd/fmsub/maddv builtin.
22055
22056 2019-05-31 Jakub Jelinek <jakub@redhat.com>
22057
22058 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
22059 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
22060 on OMP_SIMD if not nested inside of worksharing loop that also has
22061 lastprivate conditional clause for the same decl.
22062 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
22063 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
22064 on simd.
22065 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
22066 on simd construct.
22067 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
22068 on simd construct.
22069 (lower_lastprivate_clauses): Likewise.
22070 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
22071 calling lower_rec_input_clauses.
22072 (lower_omp_for): Likewise.
22073 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
22074 clause on simd construct.
22075 * omp-expand.c (expand_omp_simd): Initialize cond_var if
22076 OMP_CLAUSE__CONDTEMP_ clause is present.
22077
22078 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
22079 ivar and lvar.
22080
22081 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
22082
22083 PR c/43673
22084 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
22085 TEX_D32, TEX_D64 or TEX_D128.
22086
22087 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
22088
22089 * match.pd (~(vec?cst1:cst2)): New transformation.
22090
22091 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
22092
22093 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
22094 ((size_t)(A /[ex] B) CMP C): New transformation.
22095
22096 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
22097
22098 * doc/md.texi: Document define_insn_and_rewrite.
22099 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
22100 * gensupport.c (queue_elem): Update comment.
22101 (replace_operands_with_dups): New function.
22102 (gen_rewrite_sequence): Likewise.
22103 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
22104 * read-rtl.c (apply_subst_iterator): Likewise.
22105 (add_condition_to_rtx, named_rtx_p): Likewise.
22106 (rtx_reader::read_rtx_operand): Likewise.
22107 * config/aarch64/aarch64-sve.md
22108 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
22109 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
22110 define_insn_and_rewrite.
22111 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
22112 Remove separate define_split.
22113
22114 2019-05-31 Jan Hubicka <jh@suse.cz>
22115
22116 * tree-ssa-alias.c (type_has_components_p): New function.
22117 (aliasing_component_refs_p): Use it.
22118
22119 2019-05-31 Martin Liska <mliska@suse.cz>
22120
22121 * gdbhooks.py: Add const_tree to TreePrinter.
22122
22123 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
22124
22125 PR debug/86964
22126 * common.opt (feliminate-unused-debug-symbols): Enable by default.
22127 * doc/invoke.texi (Debugging Options): Document new default of
22128 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
22129
22130 2019-05-31 Jakub Jelinek <jakub@redhat.com>
22131
22132 PR tree-optimization/90671
22133 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
22134 template_block used to be empty on the first call, don't use
22135 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
22136 seq with bb_seq and set it with set_bb_seq.
22137
22138 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
22139
22140 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
22141
22142 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22143 Michael Meissner <meissner@linux.ibm.com>
22144
22145 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
22146 (prefixed_mem_operand): Likewise.
22147 (non_prefixed_mem_operand): Likewise.
22148 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
22149 prototype.
22150 * config/rs6000/rs6000.c (print_operand_address): Handle
22151 PC-relative addresses.
22152 (mode_supports_prefixed_address_p): New function.
22153 (rs6000_prefixed_address): New function.
22154 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
22155 (SYMBOL_REF_PCREL_P): Likewise.
22156
22157 2019-05-30 Jakub Jelinek <jakub@redhat.com>
22158
22159 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
22160 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
22161 (gimplify_omp_for): If worksharing loop with lastprivate conditional
22162 is nested inside of parallel region, add _condtemp_ clause to both.
22163 * tree-nested.c (convert_nonlocal_omp_clauses,
22164 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
22165 assertion failure.
22166 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
22167 member.
22168 * omp-general.c (omp_extract_for_data): Compute it.
22169 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
22170 (lower_rec_input_clauses): Likewise.
22171 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
22172 clause is already present, just add one further one after it.
22173 (lower_lastprivate_clauses): Handle cond_ptr with array type.
22174 (lower_send_shared_vars): Clear _condtemp_ vars.
22175 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
22176 or section or taskgroup.
22177 * omp-expand.c (determine_parallel_type): Disallow combining only if
22178 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
22179 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
22180 (expand_omp_for_generic, expand_omp_for_static_nochunk,
22181 expand_omp_for_static_chunk, expand_omp_for): Use
22182 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
22183 determine if a special set of API routines are needed and if condtemp
22184 needs to be initialized, while always initialize cond_var if
22185 fd->lastprivate_conditional is non-zero.
22186
22187 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22188 Michael Meissner <meissner@linux.ibm.com>
22189
22190 * config/rs6000/constraints.md (eI): New constraint.
22191 * config/rs6000/predicates.md (cint34_operand): New predicate.
22192 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
22193 (SIGNED_34BIT_OFFSET_P): Likewise.
22194 * doc/md.texi (eI): Document constraint.
22195
22196 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
22197
22198 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
22199
22200 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22201 Michael Meissner <meissner@linux.ibm.com>
22202
22203 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
22204 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
22205 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
22206 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
22207 (OTHER_FUTURE_MASKS): Likewise.
22208 (POWERPC_MASKS): Likewise.
22209 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
22210 specified without -mprefixed-addr or -mcpu=future. Error if
22211 -mprefixed-addr is specified without -mcpu=future.
22212 (rs6000_opt_masks): Add entry for prefixed-addr.
22213 * rs6000.opt (mprefixed-addr): New option.
22214
22215 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
22216
22217 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
22218 cfun->is_thunk check.
22219
22220 2019-05-30 Jakub Jelinek <jakub@redhat.com>
22221
22222 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
22223 to length.
22224
22225 2019-05-30 Martin Liska <mliska@suse.cz>
22226
22227 * gdbinit.in: Fix 'ptc' command. Add trt
22228 that prints TREE_TYPE($).
22229
22230 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
22231 Alan Modra <amodra@gmail.com>
22232
22233 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
22234 calls here...
22235 (rs6000_indirect_call_template_1): ...and here.
22236 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
22237 plt16_ha, plt16_lo, mtctr indirect calls. Use
22238 rs6000_pltseq_enum.
22239 (rs6000_decl_ok_for_sibcall): New function.
22240 (rs6000_function_ok_for_sibcall): Refactor.
22241 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
22242 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
22243 when pcrel. Reorganize.
22244 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
22245 * rs6000.h (rs6000_pltseq_enum): New enum.
22246 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
22247 (*pltseq_tocsave): Use rs6000_pltseq_enum.
22248 (*pltseq_plt16_ha): Likewise.
22249 (*pltseq_plt16_lo): Likewise.
22250 (*pltseq_mtctr): Likewise.
22251 (*pltseq_plt_pcrel): New insn.
22252 (*call_local_aix): Handle @notoc calls.
22253 (*call_value_local_aix): Likewise.
22254 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
22255 (*call_value_nonlocal_aix): Likewise.
22256 (*call_indirect_pcrel): New insn.
22257 (*call_value_indirect_pcrel): Likewise.
22258
22259 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
22260
22261 * config/i386/sse.md (*save_multiple<mode>): Rename from
22262 save_multiple<mode>.
22263 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
22264 (*restore_multiple_and_return<mode>): Rename from
22265 restore_multiple_and_return<mode>.
22266 (*restore_multiple_leave_return<mode>): Rename from
22267 restore_multiple_leave_return<mode>.
22268
22269 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
22270
22271 * config.gcc (rx-*-linux*): New target.
22272 * config/rx/elf.opt: New file.
22273 * config/rx/linux.h: Likewise.
22274 * config/rx/t-linux: Likewise.
22275 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
22276 make it zero.
22277 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
22278 (ASM_APP_OFF): Likewise.
22279 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
22280 moved elsewhere.
22281
22282 2019-05-29 Jan Hubicka <jh@suse.cz>
22283
22284 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
22285 variants are pointer equivalent.
22286
22287 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22288
22289 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
22290 * config/aarch64/aarch64-sve2.md: New file.
22291 (<u>avg<mode>3_floor): New pattern.
22292 (<u>avg<mode>3_ceil): Likewise.
22293 (*<sur>h<addsub><mode>): Likewise.
22294 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
22295 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
22296
22297 2019-05-29 Jakub Jelinek <jakub@redhat.com>
22298
22299 PR bootstrap/90543
22300 * optc-save-gen.awk: In cl_optimization_print, use correct condition
22301 for var_opt_string printing. In cl_optimization_print_diff, print
22302 (null) instead of invoking undefined behavior if one of the
22303 var_opt_string pointers is NULL and use && instead of first || in the
22304 guarding condition. For var_target_other options, handle const char *
22305 target variables similarly to const char * optimize node variables.
22306
22307 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
22308
22309 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
22310 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
22311 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
22312 Add autib1716 and pacib1716 initialisation.
22313 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
22314 for autib1716 and pacib1716.
22315 * config/aarch64/aarch64-protos.h (aarch64_key_type,
22316 aarch64_post_cfi_startproc): Define.
22317 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
22318 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
22319 aarch64_handle_pac_ret_protection): Set default sign key to A.
22320 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
22321 aarch64_expand_prologue): Add check for b-key.
22322 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
22323 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
22324 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
22325 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
22326 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
22327 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
22328 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
22329 * config/aarch64/aarch64.md (do_return): Add check for b-key.
22330 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
22331 pauth_hint_num_a with pauth_hint_num.
22332 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
22333 pauth_hint_num_a with pauth_hint_num.
22334 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
22335 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
22336 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
22337 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
22338 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
22339 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
22340 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
22341 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
22342 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
22343 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
22344 UNSPEC_AUTIA1716 respectively.
22345 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
22346 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
22347 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
22348 * doc/invoke.texi (-mbranch-protection): Add b-key type.
22349 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
22350 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
22351
22352 2019-05-29 Jakub Jelinek <jakub@redhat.com>
22353
22354 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
22355 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
22356 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
22357 explicit clause on combined parallel into implicit shared clause.
22358 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
22359 and firstprivate if the decl has one too from combined parallel to
22360 the worksharing construct.
22361
22362 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
22363 Michael Meissner <meissner@linux.ibm.com>
22364
22365 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
22366
22367 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
22368
22369 * rtl.h (LABEL_REF_P): New #define.
22370
22371 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
22372
22373 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
22374
22375 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22376
22377 * internal-fn.c: Marked mask_load_direct as vectorizable.
22378 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
22379 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
22380 combined even if masks different with allow_slp_p param.
22381 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
22382 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
22383 dissolve SLP-only vectorizable groups when SLP has been discarded.
22384 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
22385 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
22386 masks.
22387 (vect_build_slp_tree_1): Fixed comment typo.
22388 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
22389 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
22390 loads for SLP only.
22391 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
22392 vectorizable.
22393 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
22394
22395 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22396
22397 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
22398 Remove obsolete use_thunk reference.
22399 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
22400 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
22401 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
22402 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
22403 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
22404 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
22405 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
22406 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
22407 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
22408
22409 2019-05-28 Nathan Sidwell <nathan@acm.org>
22410
22411 * tree.h (IDENTIFIER_ANON_P): New.
22412 (anon_aggrname_format, anon_aggname_p): Don't declare.
22413 (make_anon_name): Declare.
22414 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
22415 (hash_tree): Likewise.
22416 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
22417 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
22418 (anon_cnt, make_anon_name): New.
22419
22420 2019-05-28 Martin Liska <mliska@suse.cz>
22421
22422 PR other/90315
22423 * opts-global.c (decode_options): Print help for all
22424 help_option_arguments.
22425 * opts.c (print_help): Add new argument.
22426 (common_handle_option): Remember all values into
22427 help_option_arguments.
22428 * opts.h (print_help): Add new argument.
22429
22430 2019-05-28 Martin Liska <mliska@suse.cz>
22431
22432 PR ipa/90555
22433 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
22434 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
22435 (func_checker::compare_bb): Call compare_loops.
22436
22437 2019-05-27 Jakub Jelinek <jakub@redhat.com>
22438
22439 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
22440 on sections construct.
22441 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
22442 construct.
22443 (lower_omp_sections): Handle lastprivate conditional.
22444 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
22445 lastprivate_conditional_map.
22446 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
22447
22448 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
22449 critical, taskgroup and section regions when looking for a region
22450 with non-NULL lastprivate_conditional_map.
22451
22452 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
22453
22454 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
22455 (*ix86_gen_sub3): Ditto.
22456 (*ix86_gen_sub3_carry): Ditto.
22457 (*ix86_gen_one_cmpl2): Ditto.
22458 (*ix86_gen_andsp): Ditto.
22459 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
22460 (gen_and2_insn): New static function.
22461 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
22462 Use gen_add3_insn instead of ix86_gen_add3.
22463 (ix86_expand_split_stack_prologue): Use gen_add2_insn
22464 instead of ix86_gen_add3.
22465 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
22466 Use gen_sub3_insn instead of ix86_gen_sub3.
22467 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
22468 instead of ix86_gen_add3.
22469 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
22470 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
22471 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
22472 * config/i386/i386-options.c (ix86_option_override_internal):
22473 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
22474 ix86_gen_one_cmpl2 and ix86_gen_andsp.
22475
22476 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
22477
22478 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
22479 and DW_OP_GNU_const_index opcodes.
22480
22481 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
22482
22483 * config/i386/i386.h (STACK_SIZE_MODE): Define.
22484
22485 2019-05-27 Richard Biener <rguenther@suse.de>
22486
22487 PR tree-optimization/90637
22488 * tree-ssa-sink.c (statement_sink_location): Honor the
22489 computed sink location for single-uses.
22490
22491 2019-05-27 Richard Biener <rguenther@suse.de>
22492
22493 PR middle-end/90610
22494 * match.pd (vec_perm): Avoid clobbering op0 when not generating
22495 a bit-insert.
22496
22497 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
22498
22499 * config/i386/i386.md (@sub<mode>3_carry): Rename
22500 from sub<mode>3_carry.
22501 (@leave_<mode>): New expander.
22502 (*leave): Rename from leave.
22503 (*leave_rex64): Rename from leave_rex64.
22504 (@monitorx_<mode>): Rename from monitorx_<mode>.
22505 (@clzero_<mode>): Rename from clzero_<mode>.
22506 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
22507 from sse3_monitor_<mode>.
22508 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
22509 (*ix86_gen_leave): Ditto.
22510 (*ix86_gen_monitor): Ditto.
22511 (*ix86_gen_monitorx): Ditto.
22512 (*ix86_gen_clzero): Ditto.
22513 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
22514 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
22515 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
22516 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
22517 Use gen_sse3_monitor instead of ix86_gen_monitor.
22518 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
22519 instead of ix86_gen_monitorx.
22520 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
22521 instead of ix86_gen_clzero.
22522 * config/i386/i386-options.c (ix86_option_override_internal):
22523 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
22524 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
22525
22526 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
22527
22528 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
22529 Rename from tls_global_dynamic_64_<mode>.
22530 (@tls_local_dynamic_base_64_<mode>): Rename from
22531 tls_local_dynamic_base_64_<mode>.
22532 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
22533 Remove indirect function.
22534 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
22535 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
22536 instead of ix86_gen_tls_global_dynamic_64.
22537 Use gen_tls_local_dynamic_base_64 instead of
22538 ix86_gen_tls_local_dynamic_base_64.
22539 * config/i386/i386-options.c (ix86_option_override_internal):
22540 Do not initialize ix86_gen_tls_global_dynamic_64 and
22541 ix86_gen_tls_local_dynamic_base_64.
22542
22543 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
22544
22545 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
22546 Rename from pro_epilogue_adjust_stack_<mode>_add.
22547 (@pro_epilogue_adjust_stack_sub_<mode>)
22548 Rename from pro_epilogue_adjust_stack_<mode>_sub.
22549 (@allocate_stack_worker_probe_<mode>):
22550 Rename from allocate_stack_worker_probe_<mode>.
22551 (allocate_stack): Use gen_allocate_stack_worker_probe.
22552 (probe_stack): Use gen_probe_stack_1.
22553 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
22554 (@adjust_stack_and_probe_<mode>): Rename from
22555 adjust_stack_and_probe<mode>.
22556 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
22557 (stack_protect_set): Use gen_stack_protect_set_1.
22558 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
22559 (stack_protect_test): Use gen_stack_protect_test_1.
22560 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
22561 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
22562 Remove indirect function.
22563 (*ix86_gen_adjust_stack_and_probe): Ditto.
22564 (*ix86_gen_probe_stack_range): Ditto.
22565 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
22566 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
22567 (ix86_adjust_stack_and_probe_stack_clash): Use
22568 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
22569 (ix86_adjust_stack_and_probe): Ditto.
22570 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
22571 of ix86_gen_probe_stack_range.
22572 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
22573 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
22574 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
22575 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
22576 CODE_FOR_stack_protect_test_{si,di}.
22577 * config/i386/i386-options.c (ix86_option_override_internal):
22578 Do not initialize ix86_gen_allocate_stack_worker,
22579 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
22580
22581 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
22582
22583 * doc/invoke.texi (Link Options): Many editorial changes around
22584 -flinker-output.
22585
22586 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22587
22588 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
22589 pre-Solaris 11 referene and most Studio compiler details.
22590
22591 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
22592
22593 PR target/90530
22594 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
22595 DImode to SImode in floating-point registers on 64-bit target.
22596 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
22597 register_operand in xmpyu patterns.
22598
22599 2019-05-24 Jakub Jelinek <jakub@redhat.com>
22600
22601 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
22602 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
22603 OMP_CLAUSE__REDUCTEMP_.
22604 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22605 OMP_CLAUSE__CONDTEMP_.
22606 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
22607 * tree-pretty-print.c (dump_omp_clause): Likewise.
22608 * tree-nested.c (convert_nonlocal_omp_clauses,
22609 convert_local_omp_clauses): Likewise.
22610 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
22611 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
22612 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
22613 on OMP_FOR.
22614 (gimplify_omp_for): Warn and disable conditional modifier from
22615 lastprivate on loop iterators.
22616 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
22617 member.
22618 * omp-general.c (omp_extract_for_data): Initialize it.
22619 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
22620 member.
22621 (delete_omp_context): Delete it.
22622 (lower_lastprivate_conditional_clauses): New function.
22623 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
22624 handle lastprivate conditional clauses.
22625 (lower_reduction_clauses): Add CLIST argument, emit it into
22626 the critical section if any.
22627 (lower_omp_sections): Adjust lower_lastprivate_clauses and
22628 lower_reduction_clauses callers.
22629 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
22630 to lower_lastprivate_clauses.
22631 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
22632 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
22633 clist into a critical section if not emitted there already by
22634 lower_reduction_clauses.
22635 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
22636 callers.
22637 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
22638 conditional variables.
22639 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
22640 clause is present.
22641 (expand_omp_for_generic, expand_omp_for_static_nochunk,
22642 expand_omp_for_static_chunk): Handle lastprivate conditional.
22643 (expand_omp_for): Handle fd.lastprivate_conditional like
22644 fd.have_reductemp.
22645
22646 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
22647
22648 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
22649 kernel does not exit cleanly.
22650 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
22651
22652 2019-05-24 Jason Merrill <jason@redhat.com>
22653
22654 Revert:
22655 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
22656
22657 2019-05-24 Richard Biener <rguenther@suse.de>
22658
22659 PR testsuite/90607
22660 * tree-loop-distribution.c (struct partition): Add location
22661 member.
22662 (partition_alloc): Initialize all fields.
22663 (generate_memset_builtin): Use the location recorded in the
22664 partition for the generated call.
22665 (generate_memcpy_builtin): Likewise.
22666 (classify_partition): Record the location of a single store
22667 as location for the partition.
22668
22669 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
22670
22671 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
22672 for lo-part.
22673
22674 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
22675
22676 PR target/90588
22677 * common/config/aarch64/aarch64-common.c
22678 (aarch64_rewrite_selected_cpu): Change local temporary variable
22679 type from unsigned long to uint64_t.
22680 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
22681 aarch64_get_extension_string_for_isa_flags): Change declaration to
22682 match new definition by replacing unsigned long with uint64_t.
22683
22684 2019-05-24 Jakub Jelinek <jakub@redhat.com>
22685
22686 PR target/90568
22687 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
22688 gen_attr_type just once instead of 4-7 times. Formatting fixes.
22689 Handle stack_protect_test_<mode> codegen similarly to corresponding
22690 sub instruction.
22691
22692 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
22693
22694 * config/i386/darwin.h: Reject -mfentry*.
22695 * doc/sourcebuild.texi: Document mfentry target support.
22696
22697 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
22698
22699 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
22700 Rename to rs6000_global_entry_point_prologue_needed_p. Return
22701 false for PC-relative functions.
22702 (rs6000_output_function_prologue): Change called function name to
22703 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
22704 name,1" for PC-relative functions.
22705 (rs6000_elf_declare_function_name): Change called function name to
22706 rs6000_global_entry_point_prologue_needed_p.
22707
22708 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
22709
22710 PR target/90552
22711 * config/i386/i386.c (gen_rtx_cost):
22712 Use ix86_tune_cost instead of ix86_cost.
22713
22714 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
22715 Michael Meissner <meissner@linux.ibm.com>
22716 Segher Boessenkool <segher@kernel.crashing.org>
22717
22718 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
22719 OPTION_MASK_PCREL.
22720 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
22721 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
22722 (rs6000_fndecl_pcrel_p): Likewise.
22723 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
22724 error if -mpcrel is requested without -mcpu=future.
22725 (rs6000_opt_masks): Add entry for pcrel.
22726 (rs6000_fndecl_pcrel_p): New function.
22727 (rs6000_pcrel_p): Likewise.
22728 * config/rs6000/rs6000.opt (mpcrel): New option.
22729 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
22730
22731 2019-05-23 Jan Hubicka <jh@suse.cz>
22732 Martin Liska <mliska@suse.cz>
22733
22734 PR tree-optimization/90576
22735 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
22736 poly_int_tree_p.
22737 (aliasing_component_refs_p): Fix three way size compare conditional;
22738 give up earlier in case we can not decide on equivalence.
22739
22740 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
22741 Michael Meissner <meissner@linux.ibm.com>
22742 Segher Boessenkool <segher@kernel.crashing.org>
22743
22744 * config.gcc: Add future cpu.
22745 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
22746 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
22747 #define.
22748 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
22749 (RS6000_CPU): New instantiation for future cpu.
22750 * config/rs6000/rs6000-opts.h (enum processor_type): Add
22751 PROCESSOR_FUTURE.
22752 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
22753 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
22754 * config/rs6000/rs6000-tables.opt: Regenerate.
22755 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
22756 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
22757 (rs6000_machine_from_flags): Handle future cpu.
22758 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
22759 PROCESSOR_POWER9 for now.
22760 (rs6000_adjust_cost): Likewise.
22761 (rs6000_issue_rate): Likewise.
22762 (rs6000_register_move_cost): Likewise.
22763 (rs6000_opt_masks): Add entry for future.
22764 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
22765 (MASK_FUTURE): New #define.
22766 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
22767 * config/rs6000/rs6000.opt (mfuture): New target option.
22768 * doc/invoke.texi (mcpu): Add future cpu.
22769
22770 2019-05-23 Martin Liska <mliska@suse.cz>
22771
22772 PR c++/90587
22773 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
22774 operation points to a temporary (pointed via tree_to_wide_ref)
22775 that is out of scope after the &.
22776
22777 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
22778
22779 PR c++/90592
22780 * doc/extend.texi (Function Names): Add missing word.
22781
22782 2019-05-23 Richard Biener <rguenther@suse.de>
22783
22784 PR tree-optimization/88440
22785 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
22786 at -O[2s]+.
22787 * tree-loop-distribution.c (generate_memset_builtin): Fold the
22788 generated call.
22789 (generate_memcpy_builtin): Likewise.
22790 (distribute_loop): Pass in whether to only distribute patterns.
22791 (prepare_perfect_loop_nest): Also allow size optimization.
22792 (pass_loop_distribution::execute): When optimizing a loop
22793 nest for size allow pattern replacement.
22794
22795 2019-05-23 Jakub Jelinek <jakub@redhat.com>
22796
22797 PR target/90568
22798 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
22799 of xor.
22800
22801 2019-05-23 Martin Liska <mliska@suse.cz>
22802
22803 PR sanitizer/90570
22804 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
22805 expression similarly to gimplify_decl_expr.
22806
22807 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22808
22809 * cse.c (cse_dump_path): s/dump_file/f.
22810
22811 2019-05-22 David Malcolm <dmalcolm@redhat.com>
22812
22813 PR c++/90462
22814 * diagnostic-format-json.cc: Include "selftest.h".
22815 (json_from_expanded_location): Only add "file" key for non-NULL
22816 file strings.
22817 (json_from_location_range): Don't add "start" and "finish"
22818 children if they are UNKNOWN_LOCATION.
22819 (selftest::test_unknown_location): New selftest.
22820 (selftest::test_bad_endpoints): New selftest.
22821 (selftest::diagnostic_format_json_cc_tests): New function.
22822 * json.cc (json::object::get): New function.
22823 (selftest::test_object_get): New selftest.
22824 (selftest::json_cc_tests): Call it.
22825 * json.h (json::object::get): New decl.
22826 * selftest-run-tests.c (selftest::run_tests): Call
22827 selftest::diagnostic_format_json_cc_tests.
22828 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
22829 decl.
22830
22831 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
22832 Andrew Stubbs <amd@codesourcery.com>
22833
22834 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
22835 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
22836 (kernel): Rename to...
22837 (main_kernel): ... this.
22838 (load_image): Load _init_array and _fini_array kernels.
22839 (run): Add argument for kernel to run.
22840 (main): Run init_array_kernel before main_kernel, and
22841 fini_array_kernel after.
22842 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
22843 amdgpu_hsa_kernel attribute on functions.
22844 (gcn_disable_constructors): Delete.
22845 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
22846 * config/gcn/crt0.c (size_t): Define.
22847 (_init_array, _fini_array): New.
22848 (__preinit_array_start, __preinit_array_end,
22849 __init_array_start, __init_array_end,
22850 __fini_array_start, __fini_array_end): Declare weak references.
22851
22852 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
22853
22854 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
22855
22856 2019-05-22 Jason Merrill <jason@redhat.com>
22857
22858 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
22859
22860 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
22861
22862 PR target/88483
22863 * config/i386/i386-options.c (ix86_init_machine_status): Set
22864 stack_frame_required to true.
22865 * config/i386/i386.c (ix86_get_frame_size): New function.
22866 (ix86_frame_pointer_required): Replace get_frame_size with
22867 ix86_get_frame_size.
22868 (ix86_compute_frame_layout): Likewise.
22869 (ix86_find_max_used_stack_alignment): Changed to void. Set
22870 stack_frame_required.
22871 (ix86_finalize_stack_frame_flags): Always call
22872 ix86_find_max_used_stack_alignment. Replace get_frame_size with
22873 ix86_get_frame_size.
22874 * config/i386/i386.h (machine_function): Add stack_frame_required.
22875
22876 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
22877
22878 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
22879
22880 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
22881
22882 * common/config/aarch64/aarch64-common.c
22883 (struct aarch64_option_extension, struct processor_name_to_arch,
22884 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
22885 aarch64_contains_opt,
22886 aarch64_get_extension_string_for_isa_flags): Change type of
22887 variables storing flags to uint64_t.
22888 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
22889 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
22890 * config/aarch64/aarch64.c (struct processor,
22891 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
22892 aarch64_validate_march, aarch64_override_options,
22893 aarch64_option_print, aarch64_handle_attr_isa_flags,
22894 aarch64_declare_function_name, aarch64_start_file): Make flag
22895 variables uint64_t.
22896 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
22897 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
22898 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
22899 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
22900 * config/aarch64/driver-aarch64.c
22901 (struct aarch64_arch_extension, struct aarch64_core_data,
22902 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
22903 flag variables uint64_t.
22904 * doc/invoke.texi: Add documentation for new arguments.
22905
22906 2019-05-22 Richard Biener <rguenther@suse.de>
22907
22908 * alias.c (ao_ref_from_mem): Move stack-slot sharing
22909 rewrite ...
22910 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
22911
22912 2019-05-22 Martin Liska <mliska@suse.cz>
22913
22914 PR lto/90500
22915 * doc/extend.texi: Document the change.
22916
22917 2019-05-22 Richard Biener <rguenther@suse.de>
22918
22919 PR tree-optimization/90450
22920 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
22921 (mem_ref_hasher::equal): Check it.
22922 (mem_ref_alloc): Initialize it.
22923 (gather_mem_refs_stmt): Set it.
22924
22925 2019-05-22 Richard Biener <rguenther@suse.de>
22926
22927 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
22928 Add ABS_EXPR.
22929 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
22930 as ABSU_EXPR.
22931
22932 2019-05-22 Alan Modra <amodra@gmail.com>
22933
22934 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
22935 (ASM_CPU_SPEC): Conditionally add -many.
22936 * config/rs6000/rs6000.c (rs6000_machine): New static var.
22937 (rs6000_machine_from_flags, emit_asm_machine): New functions..
22938 (rs6000_file_start): ..extracted from here, and modified to
22939 test all ISA bits.
22940 (rs6000_output_function_prologue): Emit .machine as necessary.
22941
22942 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
22943
22944 PR middle-end/90553
22945 * ira-lives.c (process_bb_node_lives): Consider defs
22946 for a call insn to be die before the call, not after.
22947
22948 * function.c (assign_parm_setup_block): Raise alignment of
22949 stacked parameter only for STRICT_ALIGNMENT targets.
22950
22951 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
22952
22953 * config/rs6000/constraints.md (define_register_constraint "wz"):
22954 Delete.
22955 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22956 RS6000_CONSTRAINT_wz.
22957 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22958 (rs6000_init_hard_regno_mode_ok): Adjust.
22959 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
22960 * doc/md.texi (Machine Constraints): Adjust.
22961
22962 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
22963
22964 * config/rs6000/constraints.md (define_register_constraint "wl"):
22965 Delete.
22966 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22967 RS6000_CONSTRAINT_wl.
22968 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22969 (rs6000_init_hard_regno_mode_ok): Adjust.
22970 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
22971 * doc/md.texi (Machine Constraints): Adjust.
22972
22973 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
22974
22975 * config/rs6000/constraints.md (define_register_constraint "wm"):
22976 Delete.
22977 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22978 RS6000_CONSTRAINT_wm.
22979 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22980 (rs6000_init_hard_regno_mode_ok): Adjust.
22981 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
22982 * doc/md.texi (Machine Constraints): Adjust.
22983
22984 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
22985
22986 * config/rs6000/constraints.md (define_register_constraint "wk"):
22987 Delete.
22988 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22989 RS6000_CONSTRAINT_wk.
22990 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22991 (rs6000_init_hard_regno_mode_ok): Adjust.
22992 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
22993 * doc/md.texi (Machine Constraints): Adjust.
22994
22995 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
22996
22997 * config/rs6000/constraints.md (define_register_constraint "wj"):
22998 Delete.
22999 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23000 RS6000_CONSTRAINT_wj.
23001 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23002 (rs6000_init_hard_regno_mode_ok): Adjust.
23003 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
23004 (VS_64dm): Delete.
23005 * config/rs6000/vsx.md: Ditto.
23006 * doc/md.texi (Machine Constraints): Adjust.
23007
23008 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23009
23010 * config/rs6000/constraints.md (define_register_constraint "wh"):
23011 Delete.
23012 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23013 RS6000_CONSTRAINT_wh.
23014 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23015 (rs6000_init_hard_regno_mode_ok): Adjust.
23016 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
23017 * doc/md.texi (Machine Constraints): Adjust.
23018
23019 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23020
23021 PR target/90547
23022 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
23023 Avoid calling gen_lowpart with CONST operand.
23024
23025 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
23026
23027 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
23028 field template_last_to_copy.
23029 (ssa_create_duplicates): Set it, and use it. Attempt to
23030 preserve more debug stmts.
23031
23032 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23033
23034 * config/i386/sse.md (VF1_AVX2): New mode iterator.
23035 (signbit<mode>2): New expander
23036
23037 2019-05-21 James Clarke <jrtc27@jrtc27.com>
23038
23039 PR bootstrap/87338
23040 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
23041 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
23042
23043 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23044
23045 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
23046 %ebx and %ecx bafore calling cpuid with leaf 1 or
23047 non-constant leaf argument.
23048
23049 2019-05-21 Alan Modra <amodra@gmail.com>
23050
23051 PR target/90545
23052 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
23053 power9 direct move cost.
23054
23055 2019-05-21 Richard Biener <rguenther@suse.de>
23056
23057 PR middle-end/90510
23058 * fold-const.c (fold_read_from_vector): New function.
23059 * fold-const.h (fold_read_from_vector): Declare.
23060 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
23061 single-element insert permutations. Canonicalize selector
23062 further and fix issue with last commit.
23063
23064 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
23065
23066 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
23067 parameter with default value false to declaration.
23068 (split_edges_for_insertion): New inline function. Wrapper for
23069 split_critical_edges with for_edge_insertion_p = true.
23070 * tree-cfg.c (split_critical_edges): Don't split non-critical
23071 edges if for_edge_insertion_p is false. Fix whitespace.
23072 * tree-ssa-pre.c (pass_pre::execute): Call
23073 split_edges_for_insertion instead of split_critical_edges.
23074 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
23075 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
23076 (pass_data_sink_code): Update function name in the comment.
23077
23078 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
23079
23080 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
23081 around is_value_included_in that knows how to handle BIT_AND_EXPR.
23082 (is_pred_expr_subset_of): Use the new function. Handle more cases where
23083 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
23084 positives.
23085
23086 2019-05-21 Martin Liska <mliska@suse.cz>
23087
23088 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
23089 an extra newline.
23090 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
23091 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
23092 vec_lvsr.
23093 * config/rs6000/rs6000.c (rs6000_option_override_internal):
23094 Quote a C type.
23095 (rs6000_function_arg): Likewise.
23096 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
23097 (rs6000_expand_ternop_builtin): Use interval syntax.
23098 (get_element_number): Likewise.
23099 (altivec_expand_builtin): Likewise.
23100 (rs6000_get_function_versions_dispatcher): Quote target_clones.
23101
23102 2019-05-20 Jakub Jelinek <jakub@redhat.com>
23103
23104 PR c++/59813
23105 PR target/90418
23106 * function.h (struct function): Add calls_eh_return member.
23107 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
23108 gimplifying __builtin_eh_return call.
23109 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
23110 to cfun.
23111 (expand_call_inline): Or in src_cfun->calls_eh_return into
23112 dst_cfun->calls_eh_return.
23113 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
23114 cfun->calls_eh_return.
23115 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
23116 * lto-streamer-out.c (output_struct_function_base): Write
23117 calls_eh_return.
23118
23119 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
23120
23121 PR rtl-optimization/43147
23122 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
23123 IX86_BUILTIN_SHUFPD.
23124
23125 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
23126
23127 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
23128 (refs_may_alias_p_1): ... here; update stats.
23129 (refs_may_alias_p): Do not update stats here.
23130
23131 2019-05-20 Richard Biener <rguenther@suse.de>
23132
23133 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
23134 doesn't produce pointers.
23135 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
23136 the first operand points to.
23137
23138 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
23139
23140 * tree-ssa-alias.c (compare_sizes): New function.
23141 (sompare_type_sizes): New function
23142 (aliasing_component_refs_p): Use it.
23143 (indirect_ref_may_alias_decl_p): Likewise.
23144
23145 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23146
23147 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
23148
23149 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23150
23151 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
23152 (LIBLSAN_EARLY_SPEC): Likewise.
23153 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
23154
23155 2019-05-20 Martin Liska <mliska@suse.cz>
23156
23157 * config/i386/i386.c (ix86_libc_has_fast_function):
23158 Add ATTRIBUTE_UNUSED for the argument.
23159
23160 2019-05-20 Richard Biener <rguenther@suse.de>
23161
23162 * gimple-match-head.c: Include vec-perm-indices.h.
23163 * generic-match-head.c: Likewise.
23164 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
23165 is included.
23166 * fold-const.c (fold_vec_perm): Export.
23167 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
23168 (match.pd): ...here.
23169
23170 2019-05-20 Jakub Jelinek <jakub@redhat.com>
23171
23172 * cfgloop.h (struct loop): Add simdlen member.
23173 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
23174 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
23175 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
23176 as new argument to autovectorize_vector_sizes target hook. If
23177 loop->simdlen, pick up vector size where the vectorization factor
23178 is equal to loop->simd, and if there is none, fall back to the first
23179 successful one.
23180 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
23181 caller.
23182 * omp-low.c (omp_clause_aligned_alignment): Likewise.
23183 * omp-general.c (omp_max_vf): Likewise.
23184 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
23185 * tree-vect-slp.c (vect_slp_bb): Likewise.
23186 * target.def (autovectorize_vector_sizes): Add ALL argument and
23187 document it.
23188 * doc/tm.texi: Adjust documentation.
23189 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
23190 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
23191 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
23192 bool argument.
23193 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
23194 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
23195 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
23196 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
23197 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
23198 preferred vector size is not 512-bit or 256-bit, just put those
23199 unpreferred ones last.
23200
23201 2019-05-20 Martin Liska <mliska@suse.cz>
23202
23203 * targhooks.c (default_libc_has_fast_function): New function.
23204 * targhooks.h (default_libc_has_fast_function): Likewise.
23205
23206 2019-05-20 Martin Liska <mliska@suse.cz>
23207
23208 PR middle-end/90263
23209 * builtins.c (expand_builtin_memory_copy_args): When having a
23210 target with fast mempcpy implementation do now use memcpy.
23211 * config/i386/i386.c (ix86_libc_has_fast_function): New.
23212 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
23213 * doc/tm.texi: Likewise.
23214 * doc/tm.texi.in: Likewise.
23215 * target.def:
23216 * expr.c (emit_block_move_hints): Add 2 new arguments.
23217 * expr.h (emit_block_move_hints): Bail out when libcall
23218 to memcpy would be used.
23219
23220 2019-05-20 Martin Liska <mliska@suse.cz>
23221
23222 * profile-count.c: Add vertical spacing in order
23223 to separate functions.
23224 * profile-count.h: Likewise.
23225
23226 2019-05-20 Martin Liska <mliska@suse.cz>
23227
23228 * profile-count.h: Do not use full qualified
23229 names if possible.
23230 * profile-count.c (profile_count::to_frequency): Likewise.
23231
23232 2019-05-20 Martin Liska <mliska@suse.cz>
23233
23234 * profile-count.h (enum profile_quality): Use capital letters
23235 for enum value names. Use the adjusted names.
23236 * profile-count.c: Use the adjusted names.
23237
23238 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23239
23240 * config/rs6000/constraints.md (define_register_constraint "wH"):
23241 Delete.
23242 (define_register_constraint "wI"): Delete.
23243 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23244 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
23245 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23246 (rs6000_init_hard_regno_mode_ok): Adjust.
23247 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
23248 resp. "d", or with "wa" as appropriate, all with "p8v".
23249 * config/rs6000/vsx.md: Ditto.
23250 * doc/md.texi (Machine Constraints): Adjust.
23251
23252 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23253
23254 * config/rs6000/constraints.md (define_register_constraint "wy"):
23255 Delete.
23256 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23257 RS6000_CONSTRAINT_wy.
23258 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23259 (rs6000_init_hard_regno_mode_ok): Adjust.
23260 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
23261 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
23262 (define_mode_attr Fisa): New.
23263 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
23264 * doc/md.texi (Machine Constraints): Adjust.
23265
23266 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23267
23268 * config/rs6000/constraints.md (define_register_constraint "wu"):
23269 Delete.
23270 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23271 RS6000_CONSTRAINT_wu.
23272 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23273 (rs6000_init_hard_regno_mode_ok): Adjust.
23274 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
23275 both with "p8v".
23276 (define_mode_attr Fa): Delete.
23277 * config/rs6000/vsx.md: Ditto.
23278 * doc/md.texi (Machine Constraints): Adjust.
23279
23280 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23281
23282 * config/rs6000/constraints.md (define_register_constraint "wJ"):
23283 Delete.
23284 (define_register_constraint "wK"): Delete.
23285 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23286 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
23287 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23288 (rs6000_init_hard_regno_mode_ok): Adjust.
23289 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
23290 Replace "wK" constraint by "wH" with "p9v".
23291 * config/rs6000/vsx.md: Ditto.
23292 * doc/md.texi (Machine Constraints): Adjust.
23293
23294 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23295
23296 * config/rs6000/constraints.md (define_register_constraint "wb"):
23297 Delete.
23298 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23299 RS6000_CONSTRAINT_wb.
23300 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23301 (rs6000_init_hard_regno_mode_ok): Adjust.
23302 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
23303 * config/rs6000/vsx.md: Ditto.
23304 * doc/md.texi (Machine Constraints): Adjust.
23305
23306 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23307
23308 * config/rs6000/constraints.md (define_register_constraint "wo"):
23309 Delete.
23310 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23311 RS6000_CONSTRAINT_wo.
23312 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23313 (rs6000_init_hard_regno_mode_ok): Adjust.
23314 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
23315 * config/rs6000/altivec.md: Ditto.
23316 * doc/md.texi (Machine Constraints): Adjust.
23317
23318 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
23319
23320 * config/darwin-c.c (darwin_register_objc_includes): Do not
23321 prepend the sysroot when building gnu-runtime header search
23322 paths.
23323
23324 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
23325
23326 * config/darwin.c (darwin_file_end): Use switch_to_section ()
23327 instead of direct output of the asm.
23328
23329 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
23330
23331 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
23332 argument to be type bool (was int before).
23333 (rs6000_emit_epilogue): Simplify some code. Declare some variables
23334 at first use. Use type bool for some variables. Fix a theoretical
23335 eh_return bug for svr4.
23336
23337 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
23338
23339 * config/rs6000/rs6000.md (isa): New attribute.
23340 (enabled): New attribute.
23341
23342 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
23343
23344 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
23345 assemble_start_function and assemble_end_function.
23346
23347 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
23348
23349 PR middle-end/89433
23350 * omp-general.c (oacc_verify_routine_clauses): Change formal
23351 parameters. Add checking if already marked with an OpenACC
23352 'routine' directive. Adjust all users.
23353
23354 PR middle-end/89433
23355 * omp-general.c (oacc_build_routine_dims): Move some of its
23356 processing into...
23357 (oacc_verify_routine_clauses): ... this new function.
23358 * omp-general.h (oacc_verify_routine_clauses): New prototype.
23359
23360 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
23361
23362 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
23363 formating of picbase labels to match other ports.
23364
23365 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
23366
23367 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
23368 in the generated code.
23369
23370 2019-05-16 Martin Sebor <msebor@redhat.com>
23371
23372 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
23373 identifiers, keywords, operators, and types in diagnostics. Correct
23374 quoting, spelling, and sentence capitalization issues.
23375 (expand_builtin_atomic_is_lock_free): Same.
23376 (fold_builtin_next_arg): Same.
23377 * cfgexpand.c (expand_one_var): Same.
23378 (tree_conflicts_with_clobbers_p): Same.
23379 (expand_asm_stmt): Same.
23380 (verify_loop_structure): Same.
23381 * cgraphunit.c (process_function_and_variable_attributes): Same.
23382 * collect-utils.c (collect_execute): Same.
23383 * collect2.c (maybe_run_lto_and_relink): Same.
23384 (is_lto_object_file): Same.
23385 (scan_prog_file): Same.
23386 * convert.c (convert_to_real_1): Same.
23387 * dwarf2out.c (dwarf2out_begin_prologue): Same.
23388 * except.c (verify_eh_tree): Same.
23389 * gcc.c (execute): Same.
23390 (eval_spec_function): Same.
23391 (run_attempt): Same.
23392 (driver::set_up_specs): Same.
23393 (compare_debug_auxbase_opt_spec_function): Same.
23394 * gcov-tool.c (unlink_gcda_file): Same.
23395 (do_merge): Same.
23396 (do_rewrite): Same.
23397 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
23398 * gimplify.c (gimplify_asm_expr): Same.
23399 (gimplify_adjust_omp_clauses): Same.
23400 * hsa-gen.c (gen_hsa_addr_insns): Same.
23401 (gen_hsa_insns_for_load): Same.
23402 (gen_hsa_cmp_insn_from_gimple): Same.
23403 (gen_hsa_insns_for_operation_assignment): Same.
23404 (gen_get_level): Same.
23405 (gen_hsa_alloca): Same.
23406 (omp_simple_builtin::generate): Same.
23407 (gen_hsa_atomic_for_builtin): Same.
23408 (gen_hsa_insns_for_call): Same.
23409 * input.c (dump_location_info): Same.
23410 * ipa-devirt.c (compare_virtual_tables): Same.
23411 * ira.c (ira_setup_eliminable_regset): Same.
23412 * lra-assigns.c (lra_assign): Same.
23413 * lra-constraints.c (lra_constraints): Same.
23414 * lto-streamer-in.c (lto_input_mode_table): Same.
23415 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
23416 (merge_and_complain): Same.
23417 (compile_offload_image): Same.
23418 (compile_images_for_offload_targets): Same.
23419 (debug_objcopy): Same.
23420 (run_gcc): Same.
23421 (main): Same.
23422 * opts.c (print_specific_help): Same.
23423 (parse_no_sanitize_attribute): Same.
23424 (print_help): Same.
23425 (handle_param): Same.
23426 * plugin.c (add_new_plugin): Same.
23427 (parse_plugin_arg_opt): Same.
23428 (try_init_one_plugin): Same.
23429 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
23430 operators, and types in diagnostics. Correct quoting and spelling
23431 issues.
23432 * read-rtl-function.c (parse_edge_flag_token): Same.
23433 (function_reader::parse_enum_value): Same.
23434 * reg-stack.c (check_asm_stack_operands): Same.
23435 * regcprop.c (validate_value_data): Same.
23436 * sched-rgn.c (make_pass_sched_fusion): Same.
23437 * stmt.c (check_unique_operand_names): Same.
23438 * targhooks.c (default_target_option_pragma_parse): Same.
23439 * tlink.c (recompile_files): Same.
23440 * toplev.c (process_options): Same.
23441 (do_compile): Same.
23442 * trans-mem.c (diagnose_tm_1): Same.
23443 (ipa_tm_scan_irr_block): Same.
23444 (ipa_tm_diagnose_transaction): Same.
23445 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
23446 format a tree code name in a diagnostic.
23447 (verify_types_in_gimple_min_lval): Same.
23448 (verify_types_in_gimple_reference): Same.
23449 (verify_gimple_call): Same.
23450 (verify_gimple_assign_unary): Same.
23451 (verify_gimple_assign_binary): Same.
23452 (verify_gimple_assign_ternary): Same.
23453 (verify_gimple_assign_single): Same.
23454 (verify_gimple_switch): Same.
23455 (verify_gimple_label): Same.
23456 (verify_gimple_phi): Same.
23457 (verify_gimple_in_seq): Same.
23458 (verify_eh_throw_stmt_node): Same.
23459 (collect_subblocks): Same.
23460 (gimple_verify_flow_info): Same.
23461 (do_warn_unused_result): Same.
23462 * tree-inline.c (expand_call_inline): Same.
23463 * tree-into-ssa.c (update_ssa): Same.
23464 * tree.c (tree_int_cst_elt_check_failed): Same.
23465 (tree_vec_elt_check_failed): Same.
23466 (omp_clause_operand_check_failed): Same.
23467 (verify_type_variant): Same.
23468 (verify_type): Same.
23469 * value-prof.c (verify_histograms): Same.
23470 * varasm.c (assemble_start_function): Same.
23471
23472 2019-05-16 Martin Sebor <msebor@redhat.com>
23473
23474 * config/i386/i386-expand.c (get_element_number): Quote keywords
23475 and other internal names in diagnostics. Adjust other diagnostic
23476 formatting issues noted by -Wformat-diag.
23477 * config/i386/i386-features.c
23478 (ix86_mangle_function_version_assembler_name): Same.
23479 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
23480 * config/i386/i386.c (ix86_function_type_abi): Same.
23481 (ix86_function_ms_hook_prologue): Same.
23482 (classify_argument): Same.
23483 (ix86_expand_prologue): Same.
23484 (ix86_md_asm_adjust): Same.
23485 (ix86_memmodel_check): Same.
23486
23487 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
23488
23489 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
23490 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
23491 and fpxx modes.
23492
23493 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
23494
23495 PR target/90497
23496 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
23497 intrinsics without SSE/SSE2/SSSE3.
23498 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
23499 check.
23500 (*mmx_uavgv8qi3): Likewise.
23501
23502 2019-05-17 Richard Biener <rguenther@suse.de>
23503
23504 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
23505 VEC_PERM_EXPR as __VEC_PERM with -gimple.
23506
23507 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
23508
23509 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
23510 vec_sldw insn pattern.
23511
23512 2019-05-17 Richard Biener <rguenther@suse.de>
23513
23514 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
23515
23516 2019-05-17 Martin Liska <mliska@suse.cz>
23517
23518 PR driver/90496
23519 * toplev.c (output_stack_usage): With LTO and sanitizer it
23520 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
23521 has no file location.
23522
23523 2019-05-16 Jakub Jelinek <jakub@redhat.com>
23524
23525 PR c++/90484
23526 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
23527 sz0 is equal to sz1, instead return false in that case.
23528
23529 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
23530 has non-constant expression, force sctx.lane and use two
23531 argument IFN_GOMP_SIMD_LANE instead of single argument.
23532 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
23533 two argument IFN_GOMP_SIMD_LANE without lhs.
23534 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
23535 member.
23536 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
23537 Define.
23538 (LOOP_REQUIRES_VERSIONING): Or in
23539 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
23540 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23541 simd_if_cond.
23542 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
23543 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
23544 from simd if clause if needed.
23545
23546 2019-05-16 Richard Biener <rguenther@suse.de>
23547
23548 * tree-affine.c (expr_to_aff_combination): New function split
23549 out from...
23550 (tree_to_aff_combination): ... here.
23551 (aff_combination_expand): Avoid building a GENERIC tree.
23552
23553 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
23554
23555 * cgraphunit.c (cgraph_node::expand_thunk): Remove
23556 assemble_start_function and assemble_end_function calls.
23557 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
23558 assemble_start_function and assemble_end_function.
23559 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
23560 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
23561 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
23562 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
23563 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
23564 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
23565 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
23566 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
23567 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
23568 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
23569 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
23570 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
23571 Likewise.
23572 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
23573 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
23574 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
23575 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
23576 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
23577 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
23578 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
23579 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
23580 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
23581 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
23582 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
23583 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
23584 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
23585 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
23586 Likewise.
23587 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
23588 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
23589 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
23590
23591 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
23592
23593 * tree-ssa-alias.c (alias_stats): Add
23594 aliasing_component_refs_p_may_alias and
23595 aliasing_component_refs_p_no_alias.
23596 (dump_alias_stats): Print aliasing_component_refs_p stats.
23597 (aliasing_component_refs_p): Update stats.
23598
23599 2019-05-16 Martin Liska <mliska@suse.cz>
23600
23601 PR lto/90500
23602 * multiple_target.c (expand_target_clones): Do not allow
23603 target_clones being used with a symbol that is an alias.
23604
23605 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
23606
23607 PR tree-optimization/90394
23608 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
23609 positives rather than ICE for cases where (code2 == NE_EXPR
23610 && code1 == BIT_AND_EXPR).
23611
23612 2019-05-16 Jakub Jelinek <jakub@redhat.com>
23613
23614 PR fortran/90329
23615 * tree-core.h (struct tree_decl_common): Document
23616 decl_nonshareable_flag for PARM_DECLs.
23617 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
23618 * calls.c (expand_call): Don't try tail call if caller
23619 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
23620 passed on the stack and callee needs to pass any arguments on the
23621 stack.
23622 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
23623 else if instead of series of mutually exclusive ifs. Handle
23624 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
23625 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
23626
23627 * lto-streamer.h (LTO_major_version): Bump to 9.
23628
23629 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
23630
23631 PR tree-optimization/90106
23632 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
23633 new parameter as new internal function call, also move it to new
23634 basic block.
23635 (use_internal_fn): Pass internal function call to
23636 shrink_wrap_one_built_in_call_with_conds.
23637
23638 2019-05-15 Jakub Jelinek <jakub@redhat.com>
23639
23640 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
23641 max_vf to 1.
23642 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
23643 safelen_int and set loop->dont_vectorize.
23644
23645 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23646
23647 PR target/89021
23648 * config/i386/i386-builtin.def: Enable MMX intrinsics with
23649 SSE/SSE2/SSSE3.
23650 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
23651 Likewise.
23652 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
23653 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
23654 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
23655 is defined.
23656
23657 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23658
23659 PR target/89021
23660 * config/i386/mmx.md (*vec_dupv2sf): Changed to
23661 define_insn_and_split to support SSE emulation.
23662 (*vec_extractv2sf_0): Likewise.
23663 (*vec_extractv2sf_1): Likewise.
23664 (*vec_extractv2si_0): Likewise.
23665 (*vec_extractv2si_1): Likewise.
23666 (*vec_extractv2si_zext_mem): Likewise.
23667 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
23668 (vec_extractv2sf_1 splitter): Likewise.
23669 (vec_extractv2sfsf): Likewise.
23670 (vec_setv2si): Likewise.
23671 (vec_extractv2si_1 splitter): Likewise.
23672 (vec_extractv2sisi): Likewise.
23673 (vec_setv4hi): Likewise.
23674 (vec_extractv4hihi): Likewise.
23675 (vec_setv8qi): Likewise.
23676 (vec_extractv8qiqi): Likewise.
23677 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
23678 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
23679 (vec_extractv2sisi): Likewise.
23680 (vec_extractv4hihi): Likewise.
23681 (vec_extractv8qiqi): Likewise.
23682 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
23683 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
23684 (vec_initv2sisi): Likewise.
23685 (vec_initv4hihi): Likewise.
23686 (vec_initv8qiqi): Likewise.
23687 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
23688 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
23689 (vec_setv4hi): Likewise.
23690 (vec_setv8qi): Likewise.
23691
23692 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23693
23694 PR target/89021
23695 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
23696 TARGET_MMX_WITH_SSE.
23697 (MMXMODE:*mov<mode>_internal): Likewise.
23698 (MMXMODE:movmisalign<mode>): Likewise.
23699
23700 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
23701
23702 PR target/89021
23703 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
23704 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
23705 (sse2_cvtpd2pi): Ditto.
23706 (sse2_cvttpd2pi): Ditto.
23707 (*vec_concatv2sf_sse4_1): Ditto.
23708 (*vec_concatv2sf_sse): Ditto.
23709 (*vec_concatv2si_sse4_1): Ditto.
23710 (*vec_concatv2si): Ditto.
23711 (*vec_concatv4si_0): Ditto.
23712 (*vec_concatv2di_0): Ditto.
23713
23714 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23715
23716 PR target/89021
23717 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
23718
23719 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23720
23721 PR target/89021
23722 * config/i386/sse.md (ssse3_palignrdi): Changed to
23723 define_insn_and_split to support SSE emulation.
23724
23725 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23726
23727 PR target/89021
23728 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
23729
23730 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23731
23732 PR target/89021
23733 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
23734 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
23735 SSE emulation.
23736
23737 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23738
23739 PR target/89021
23740 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
23741 or TARGET_MMX_WITH_SSE.
23742 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
23743
23744 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23745
23746 PR target/89021
23747 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
23748
23749 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23750
23751 PR target/89021
23752 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
23753 Changed to define_insn_and_split to support SSE emulation.
23754
23755 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23756
23757 PR target/89021
23758 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
23759 Changed to define_insn_and_split to support SSE emulation.
23760
23761 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23762
23763 PR target/89021
23764 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
23765 (*mmx_<emms>): This.
23766 (mmx_<emms>): New expander.
23767
23768 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23769
23770 PR target/89021
23771 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
23772 support.
23773 (*sse2_umulv1siv1di3): Add SSE2 emulation.
23774
23775 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23776
23777 PR target/89021
23778 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
23779
23780 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23781
23782 PR target/89021
23783 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
23784
23785 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23786
23787 PR target/89021
23788 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
23789 TARGET_MMX_WITH_SSE.
23790 (*mmx_uavgv4hi3): Add SSE emulation.
23791
23792 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23793
23794 PR target/89021
23795 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
23796 and TARGET_MMX_WITH_SSE.
23797 (*mmx_uavgv8qi3): Add SSE emulation.
23798
23799 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23800
23801 PR target/89021
23802 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
23803 maskmovdqu for __MMX_WITH_SSE__.
23804
23805 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23806
23807 PR target/89021
23808 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
23809 TARGET_MMX and TARGET_MMX_WITH_SSE.
23810 (*mmx_umulv4hi3_highpart): Add SSE emulation.
23811
23812 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23813
23814 PR target/89021
23815 * config/i386/mmx.md (mmx_pmovmskb): Changed to
23816 define_insn_and_split to support SSE emulation.
23817
23818 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23819
23820 PR target/89021
23821 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
23822 and TARGET_MMX_WITH_SSE.
23823 (mmx_<code>v8qi3): Likewise.
23824 (smaxmin:<code>v4hi3): New.
23825 (umaxmin:<code>v8qi3): Likewise.
23826 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
23827 (umaxmin:*mmx_<code>v8qi3): Likewise.
23828
23829 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23830
23831 PR target/89021
23832 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
23833 TARGET_MMX_WITH_SSE.
23834 (*mmx_pinsrw): Add SSE emulation.
23835
23836 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23837
23838 PR target/89021
23839 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
23840
23841 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23842
23843 PR target/89021
23844 * config/i386/sse.md (sse_cvtpi2ps): Changed to
23845 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
23846 SSE emulation.
23847
23848 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23849
23850 PR target/89021
23851 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
23852 (sse_cvttps2pi): Likewise.
23853
23854 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23855
23856 PR target/89021
23857 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
23858 TARGET_MMX_WITH_SSE.
23859 (mmx_pshufw_1): Add SSE emulation.
23860 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
23861 TARGET_MMX_WITH_SSE to support SSE emulation.
23862
23863 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23864
23865 PR target/89021
23866 * config/i386/constraints.md (Yw): New constraint.
23867 * config/i386/mmx.md (*vec_dupv2si): Changed to
23868 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
23869 support SSE emulation.
23870
23871 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23872
23873 PR target/89021
23874 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
23875 TARGET_MMX_WITH_SSE.
23876 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
23877 support.
23878 (mmx_gt<mode>3): Likewise.
23879
23880 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23881
23882 PR target/89021
23883 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
23884 TARGET_MMX_WITH_SSE. Add SSE support.
23885
23886 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23887
23888 PR target/89021
23889 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
23890 TARGET_MMX_WITH_SSE.
23891 (any_logic:<code><mode>3): New.
23892 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
23893 Add SSE support.
23894
23895 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23896
23897 PR target/89021
23898 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
23899 TARGET_MMX_WITH_SSE. Add SSE emulation.
23900 (mmx_<shift_insn><mode>3): Likewise.
23901 (ashr<mode>3): New.
23902 (<shift_insn><mode>3): Likewise.
23903
23904 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23905
23906 PR target/89021
23907 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
23908 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
23909
23910 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23911
23912 PR target/89021
23913 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
23914 TARGET_MMX_WITH_SSE.
23915 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
23916 SSE support.
23917
23918 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23919
23920 PR target/89021
23921 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
23922 TARGET_MMX_WITH_SSE.
23923 (mulv4hi3): New.
23924 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
23925 support.
23926
23927 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23928
23929 PR target/89021
23930 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
23931 (plusminus:mmx_<plusminus_insn><mode>3): Check
23932 TARGET_MMX_WITH_SSE.
23933 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
23934 (<plusminus_insn><mode>3): New.
23935 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
23936 (*mmx_<plusminus_insn><mode>3): Likewise.
23937
23938 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23939
23940 PR target/89021
23941 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
23942 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
23943 prototype.
23944 * config/i386/mmx.m (mmx_punpckhbw): Changed to
23945 define_insn_and_split to support SSE emulation.
23946 (mmx_punpcklbw): Likewise.
23947 (mmx_punpckhwd): Likewise.
23948 (mmx_punpcklwd): Likewise.
23949 (mmx_punpckhdq): Likewise.
23950 (mmx_punpckldq): Likewise.
23951
23952 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23953 Uros Bizjak <ubizjak@gmail.com>
23954
23955 PR target/89021
23956 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
23957 New function.
23958 (ix86_split_mmx_pack): Likewise.
23959 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
23960 New prototype.
23961 (ix86_split_mmx_pack): Likewise.
23962 * config/i386/i386.md (mmx_isa): New.
23963 (enabled): Also check mmx_isa.
23964 * config/i386/mmx.md (any_s_truncate): New code iterator.
23965 (s_trunsuffix): New code attr.
23966 (mmx_packsswb): Removed.
23967 (mmx_packssdw): Likewise.
23968 (mmx_packuswb): Likewise.
23969 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
23970 MMX packsswb/packuswb with SSE2.
23971 (mmx_packssdw): Likewise.
23972 * config/i386/predicates.md (register_mmxmem_operand): New.
23973
23974 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23975
23976 PR target/89021
23977 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23978 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
23979 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
23980 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
23981 (ix86_vector_mode_supported_p): Likewise.
23982 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
23983
23984 2019-05-15 Martin Liska <mliska@suse.cz>
23985
23986 PR middle-end/90478
23987 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
23988 Check for overflow.
23989
23990 2019-05-15 Richard Biener <rguenther@suse.de>
23991
23992 * tree-into-ssa.c (pass_build_ssa::execute): Run
23993 update_address_taken before going into SSA.
23994
23995 2019-05-15 Richard Biener <rguenther@suse.de>
23996
23997 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
23998 as __BIT_FIELD_REF with type with -gimple.
23999
24000 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
24001
24002 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
24003 semantically equivalent branches (left over after prior refactorings).
24004
24005 2019-05-15 Richard Biener <rguenther@suse.de>
24006
24007 PR tree-optimization/88828
24008 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
24009 bogus check.
24010
24011 2019-05-14 Richard Biener <rguenther@suse.de>
24012
24013 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
24014 as __VIEW_CONVERT with -gimple.
24015
24016 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24017
24018 PR target/82920
24019 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
24020 Darwin.
24021
24022 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
24023
24024 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
24025 define_split to become a define_insn_and_split.
24026
24027 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
24028
24029 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
24030 arguments.
24031 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
24032 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
24033 (sibcall_epilogue): Adjust.
24034 (epilogue): Adjust.
24035
24036 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24037
24038 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
24039 to unsupported ones.
24040 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
24041 * config.host: Likewise.
24042 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
24043 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
24044 __svr4__]: Remove "brand" fallback.
24045 [!KSTAT_DATA_STRING]: Remove.
24046 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
24047 to *-*-solaris2*.
24048 (comdat_group): Likewise.
24049 (set_have_as_tls): Likewise.
24050 (gcc_cv_target_dl_iterate_phdr): Likewise.
24051 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
24052 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
24053 * configure: Regenerate.
24054 * doc/install.texi: Simplify Solaris target triplets.
24055 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
24056 (Specific, *-*-solaris2*): Document Solaris 10 removal.
24057 Remove Solaris 10 references.
24058 Remove obsolete Solaris bug reference.
24059 (Specific, sparc-sun-solaris2.10): Remove.
24060
24061 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
24062
24063 * config/i386/i386.md (any_div): New code iterator.
24064 (paired_mod): New code attribute.
24065 (sgnprefix): Handle DIV and UDIV RTXes.
24066 (u): Ditto.
24067 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
24068 and udivmod<mode>4 patterns using any_div code iterator.
24069 (divmod splitters): Macroize splitters using any_div code iterator.
24070 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
24071 (*udivmodsi4_pow2_zext_2): Ditto.
24072 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
24073 and *udivmod<mode>4_noext patterns using any_div code iterator.
24074 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
24075 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
24076 patterns using any_div code iterator.
24077 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
24078 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
24079 patterns using any_div code iterator.
24080 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
24081 udivmodhiqi3 patterns using any_extend code iterator.
24082
24083 2019-05-14 Richard Biener <rguenther@suse.de>
24084 H.J. Lu <hongjiu.lu@intel.com>
24085
24086 PR tree-optimization/88828
24087 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
24088 permuting in a single non-constant element not extracted
24089 from a vector.
24090
24091 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24092
24093 * internal-fn.def (SIGNBIT): New.
24094 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
24095 defined.
24096 (signbitv4sf2): Likewise.
24097
24098 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
24099
24100 PR target/90357
24101 * config/mips/mips.c (mips_split_move): Skip forward SRC into
24102 next insn when the SRC reg is dead.
24103
24104 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
24105
24106 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
24107 (alloc_cand_and_find_basis): Ditto.
24108 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
24109 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
24110 (create_add_imm_cand, slsr_process_cast): Ditto.
24111 (slsr_process_copy, replace_mult_candidate): Ditto.
24112 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
24113 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
24114 (pass_strength_reduction::execute): Init the first NULL element.
24115
24116 2019-05-13 Nathan Sidwell <nathan@acm.org>
24117
24118 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
24119 (run_attempt): Reformat line break.
24120
24121 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
24122
24123 PR target/90418
24124 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
24125 data registers in sibcall epilogues.
24126 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
24127
24128 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
24129
24130 PR target/89221
24131 * configure.ac (--enable-frame-pointer):
24132 Disable by default for cygwin and mingw.
24133 * configure: Regenerate.
24134
24135 2019-05-13 Nathan Sidwell <nathan@acm.org>
24136
24137 * dwarf2out.c (breakout_comdat_types): Move comment to correct
24138 piece of code.
24139 (const_ok_for_output_1): Balance parens around #if/#else/#endif
24140 (gen_member_die): Move abstract origin check earlier. Only VARs
24141 can be static_inline_p. Simplify splicing control flow.
24142
24143 2019-05-13 Richard Biener <rguenther@suse.de>
24144
24145 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
24146 VIEW_CONVERT_EXPR.
24147 (vect_build_slp_tree_1): Likewise.
24148
24149 2019-05-13 Richard Biener <rguenther@suse.de>
24150
24151 PR tree-optimization/90402
24152 * tree-if-conv.c (tree_if_conversion): Value number only
24153 the loop body by making the latch an exit of the region
24154 as well.
24155 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
24156 processing PHIs.
24157 (do_rpo_vn): Deal with multiple edges into the entry block
24158 that are not backedges inside the region by skipping PHIs
24159 of the entry block.
24160
24161 2019-05-13 Richard Biener <rguenther@suse.de>
24162
24163 PR tree-optimization/90316
24164 * tree-ssa-pre.c (insert_aux): Fold into ...
24165 (insert): ... this function. Use a RPO walk to reduce the
24166 number of required iterations.
24167
24168 2019-05-13 Martin Liska <mliska@suse.cz>
24169
24170 PR tree-optimization/90416
24171 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
24172 string instead of passing the second part as va_arg argument.
24173
24174 2019-05-13 Martin Liska <mliska@suse.cz>
24175
24176 PR gcov-profile/90380
24177 * gcov.c (handle_cycle): Do not support zero cycle count,
24178 it should not be possible.
24179 (path_contains_zero_cycle_arc): New function.
24180 (circuit): Ignore zero cycle arc counts.
24181
24182 2019-05-13 Martin Liska <mliska@suse.cz>
24183
24184 PR gcov-profile/90380
24185 * gcov.c (enum loop_type): Remove the enum and
24186 the operator.
24187 (handle_cycle): Assert that we should not reach
24188 a negative count.
24189 (circuit): Use loop_found instead of a tri-state loop_type.
24190 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
24191 happen.
24192
24193 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24194
24195 PR target/82920
24196 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
24197 (ix86_output_indirect_branch_via_reg): Use output mechanism
24198 accounting for __USER_LABEL_PREFIX__.
24199 (ix86_output_indirect_branch_via_push): Likewise.
24200 (ix86_output_function_return): Likewise.
24201 (ix86_output_indirect_function_return): Likewise.
24202
24203 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
24204
24205 * doc/md.texi: Document use of code attributes in rtx patterns.
24206 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
24207 * read-rtl.c (find_code): Split out search loops into...
24208 (maybe_find_code): ...this new function.
24209 (check_code_iterator): Make the error message more informative.
24210 (check_code_attribute): New function.
24211 (rtx_reader::rtx_alloc_for_name): Likewise.
24212 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
24213 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
24214 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
24215 <max_opp> directly as an rtx code instead of via a match_operator.
24216 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
24217 (<su>abd<mode>_3): Update accordingly.
24218
24219 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24220
24221 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
24222 is given, print the state of the EH "save world" computation for
24223 Darwin.
24224
24225 2019-05-11 Jakub Jelinek <jakub@redhat.com>
24226
24227 PR c++/59813
24228 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
24229 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
24230
24231 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
24232
24233 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
24234 Use pinsrd for TARGET_SSE4_1.
24235 * config/i386/sse.md (movdi_to_sse): Ditto.
24236
24237 2019-05-10 Richard Biener <rguenther@suse.de>
24238
24239 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
24240 (do_rpo_vn): Initialize next_value_id.
24241
24242 2019-05-10 Martin Liska <mliska@suse.cz>
24243
24244 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
24245 Fix plural form.
24246
24247 2019-05-10 Jakub Jelinek <jakub@redhat.com>
24248
24249 PR tree-optimization/90385
24250 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
24251 arguments of the exit phis.
24252
24253 PR c++/90383
24254 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
24255 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
24256 id->do_not_fold.
24257 (copy_tree_body_r): Likewise.
24258 (copy_fn): Set id.do_not_fold to true.
24259
24260 2019-05-10 Martin Liska <mliska@suse.cz>
24261
24262 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
24263 Reapply changes from r269790.
24264
24265 2019-05-10 Martin Liska <mliska@suse.cz>
24266
24267 PR middle-end/90340
24268 * doc/invoke.texi: New params.
24269 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
24270 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
24271 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
24272 Use it.
24273 * tree-switch-conversion.h (struct jump_table_cluster):
24274 Likewise.
24275
24276 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
24277
24278 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
24279
24280 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
24281
24282 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
24283
24284 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
24285
24286 PR rtl-optimization/88879
24287 * sel-sched.c (sel_target_adjust_priority): Remove assert.
24288
24289 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
24290
24291 PR target/90405
24292 * config/arm/arm.c (callee_saved_reg_p): Move before
24293 thumb_find_work_register.
24294 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
24295 thumb_find_work_register. Only call df_get_live_out once.
24296 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
24297 (thumb_find_work_register): Use
24298 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
24299 algorithms to locate a spare call clobbered reg.
24300
24301 2019-05-09 Martin Liska <mliska@suse.cz>
24302
24303 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
24304 and MAX_EXPR in GIMPLE FE format.
24305
24306 2019-05-09 Martin Liska <mliska@suse.cz>
24307
24308 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
24309 * gimple-pretty-print.c (dump_gimple_bb_header):
24310 Dump BB count.
24311 (pp_cfg_jump): Dump edge probability.
24312 * profile-count.c (profile_quality_as_string): Simplify
24313 with a static array.
24314 (parse_profile_quality): New function.
24315 (profile_count::dump): Simplify with a static array.
24316 (profile_count::from_gcov_type): Add new argument.
24317 * profile-count.h (parse_profile_quality): Likewise.
24318 * predict.h (set_hot_bb_threshold): New.
24319 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
24320 New param.
24321 * predict.c (get_hot_bb_threshold): Set from the new param.
24322 (set_hot_bb_threshold): New.
24323
24324 2019-05-09 Richard Biener <rguenther@suse.de>
24325
24326 PR tree-optimization/90395
24327 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
24328 rewrite vector stores that throw internally.
24329
24330 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
24331
24332 * cif-code.def (CHKP): Remove.
24333
24334 PR target/89221
24335 * configure.ac (--enable-frame-pointer): Disable by default for
24336 GNU systems.
24337 * configure: Regenerate.
24338
24339 2019-05-09 Alan Modra <amodra@gmail.com>
24340
24341 PR target/89271
24342 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
24343 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
24344 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
24345 cost for general <-> vsx when direct moves are available.
24346 Cost union classes at minimal cost for any reg in the class.
24347 Correct calculation for moves between vsx, float, and altivec.
24348 Don't return a low cost for moves between special regs. Don't
24349 use hard coded register numbers.
24350 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
24351 (rs6000_ira_change_pseudo_allocno_class): New function.
24352 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
24353 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
24354 alternatives.
24355 (movsi_internal1): Don't disparage vector alternatives.
24356 (mov<mode>_internal): Likewise, excepting alternative that
24357 will be split.
24358 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
24359 we <- b alternative.
24360
24361 2019-05-08 Jakub Jelinek <jakub@redhat.com>
24362
24363 PR c++/59813
24364 PR tree-optimization/89060
24365 * tree-ssa-live.h (live_vars_map): New typedef.
24366 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
24367 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
24368 (struct compute_live_vars_data): New type.
24369 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
24370 live_vars_at_stmt, destroy_live_vars): New functions.
24371 * tree-tailcall.c: Include tree-ssa-live.h.
24372 (live_vars, live_vars_vec): New global variables.
24373 (find_tail_calls): Perform variable life analysis before punting.
24374 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
24375 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
24376 member.
24377 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
24378 Perform variable life analysis to select variables that really need
24379 clobbers added.
24380 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
24381 instead set id->eh_landing_pad_dest and assert it is the same.
24382 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
24383
24384 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
24385 Richard Earnshaw <rearnsha@arm.com>
24386
24387 PR target/88167
24388 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
24389 function.
24390 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
24391 (thumb1_compute_save_core_reg_mask): Don't force a spare work
24392 register if both the epilogue and prologue can use call-clobbered
24393 regs.
24394 (thumb1_unexpanded_epilogue): Use
24395 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
24396 picking temporaries for restoring high regs to match that of the
24397 prologue where possible.
24398 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
24399 the list of work registers. Detect if the return address is still live
24400 at the end of the prologue and avoid using it for a work register if so.
24401 If the return address is not live, add LR to the list of pushable regs
24402 after the first pass.
24403
24404 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
24405
24406 PR tree-optimization/90078
24407 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
24408 (INFTY): Increase the value for infinite cost.
24409 (struct comp_cost): Promote type of members to int64_t.
24410 (infinite_cost): Don't set complexity in initialization.
24411 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
24412 overflows to infinite_cost.
24413 (adjust_setup_cost): Promote type of parameter and cost computation
24414 to int64_t.
24415 (struct ainc_cost_data, struct iv_ca): Promote type of member to
24416 int64_t.
24417 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
24418 cost computation to int64_t.
24419 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
24420 int64_t's format specifier in dump.
24421
24422 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
24423
24424 PR tree-optimization/90240
24425 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
24426 with respect to scaling factor pre-computed for each basic block.
24427 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
24428 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
24429 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
24430 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
24431 live range for array of loop's basic blocks. Cleanup aux field of
24432 loop's basic blocks.
24433
24434 2019-05-08 Jakub Jelinek <jakub@redhat.com>
24435
24436 PR tree-optimization/90356
24437 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
24438
24439 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
24440
24441 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
24442 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
24443 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
24444 (ix86_handle_option): Handle -mavx512bf16.
24445 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
24446 to extra_headers.
24447 * config/i386/avx512bf16vlintrin.h: New.
24448 * config/i386/avx512bf16intrin.h: New.
24449 * config/i386/cpuid.h (bit_AVX512BF16): New.
24450 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
24451 * config/i386/i386-builtin-types.def: Add new types.
24452 * config/i386/i386-builtin.def: Add new builtins.
24453 * config/i386/i386-c.c (ix86_target_macros_internal): Define
24454 __AVX512BF16__.
24455 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
24456 (ix86_option_override_internal): Handle BF16.
24457 (ix86_valid_target_attribute_inner_p): Ditto.
24458 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
24459 * config/i386/i386-builtin.c (enum processor_features): Add
24460 F_AVX512BF16.
24461 (static const _isa_names_table isa_names_table): Ditto.
24462 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
24463 (PTA_AVX512BF16): Ditto.
24464 * config/i386/i386.opt: Add -mavx512bf16.
24465 * config/i386/immintrin.h: Include avx512bf16intrin.h
24466 and avx512bf16vlintrin.h.
24467 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
24468 avx512f_cvtneps2bf16_<mode><mask_name>,
24469 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
24470 * config/i386/subst.md (mask_half): Add new subst.
24471 * doc/invoke.texi: Document -mavx512bf16.
24472
24473 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
24474
24475 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
24476 Delete declaration.
24477 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
24478 (rs6000_debug_legitimize_reload_address): Delete.
24479 (rs6000_legitimize_reload_address_ptr): Delete.
24480 (rs6000_option_override_internal): Adjust.
24481 (mem_operand_gpr): Adjust comment.
24482 (legitimate_lo_sum_address_p): Ditto.
24483 (rs6000_legitimize_reload_address): Delete.
24484 (rs6000_debug_legitimize_reload_address): Delete.
24485 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
24486
24487 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
24488
24489 PR target/89765
24490 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24491 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
24492 to compute vector element selector for both constant and variable
24493 operands.
24494
24495 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
24496
24497 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
24498 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
24499 ashrdi3_cvt using SWI48 mode iterator.
24500
24501 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24502
24503 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
24504 (aarch64_<su>abd<mode>_3): Likewise.
24505 (*aarch64_<su>abd<mode>_3): New define_insn.
24506 (<sur>sad<vsi2qi>): New define_expand.
24507 * config/aarch64/iterators.md: Added MAX_OPP attribute.
24508 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
24509 (build_vect_cond_expr): Likewise.
24510
24511 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
24512
24513 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
24514 clobbers outside of accessible_reg_set.
24515 * config/i386/i386.c (ix86_conditional_register_usage):
24516 Disable register sets by clearing corresponding bits in
24517 accessible_reg_set. Do not set corresponding bits in fixed_regs,
24518 call_used_regs and don't clear corresponding reg_names array members.
24519
24520 2019-05-07 Richard Biener <rguenther@suse.de>
24521
24522 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
24523 not specified still compute a comp_vectype for invariant
24524 compares.
24525
24526 2019-05-07 Richard Biener <rguenther@suse.de>
24527
24528 PR tree-optimization/90316
24529 * tree-ssa-pre.c (translate_vuse_through_block): When
24530 same_valid is NULL do not bother to search for a virtual
24531 PHI continuation.
24532 (phi_translate_1): When operands changed we cannot keep
24533 the same value-number so do not bother to ask whether
24534 that's possible from translate_vuse_through_block.
24535
24536 2019-05-07 Martin Liska <mliska@suse.cz>
24537
24538 * bitmap.c (bitmap_register): Come up with
24539 alloc_descriptor_max_uid and assign it for
24540 a new bitmap.
24541 (register_overhead): Use get_descriptor as
24542 a descriptor.
24543 (release_overhead): New.
24544 (bitmap_elem_to_freelist): Call it.
24545 (bitmap_elt_clear_from): Likewise.
24546 (bitmap_obstack_free): Likewise.
24547 (bitmap_move): Sensitively release memory.
24548 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
24549 (bitmap_initialize): Initialize alloc_descriptor to zero.
24550 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
24551
24552 2019-05-07 Richard Biener <rguenther@suse.de>
24553
24554 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
24555 we build a SLP node. Remove max_size and limiting.
24556 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
24557
24558 2019-05-07 Richard Biener <rguenther@suse.de>
24559
24560 PR tree-optimization/90316
24561 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
24562 limit by reference.
24563 (walk_non_aliased_vuses): Take walking limit argument.
24564 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
24565 walking if it is reached instead of just counting.
24566 (get_continuation_for_phi): Likewise.
24567 (walk_non_aliased_vuses): Likewise, instead of leaving counter
24568 limiting to the callback.
24569 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
24570 (vn_reference_lookup_3): Likewise.
24571 (vn_reference_lookup_pieces): Likewise.
24572 (vn_reference_lookup): Likewise.
24573 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
24574 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
24575 (avail_exprs_stack::lookup_avail_expr): Likewise.
24576
24577 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
24578
24579 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
24580 for comparaible types in the second direction even if first one
24581 hits incomparable type.
24582
24583 2019-05-07 Richard Biener <rguenther@suse.de>
24584
24585 PR lto/90369
24586 * lto-wrapper.c (debug_objcopy): Use the original filename
24587 including archive offset for the filename used for -save-temps.
24588
24589 2019-05-07 Li Jia He <helijia@linux.ibm.com>
24590
24591 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
24592 detection.
24593
24594 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
24595 Hongtao Liu <hongtao.liu@intel.com>
24596
24597 PR target/89750
24598 PR target/86444
24599 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
24600 Modified, original implementation isn't correct.
24601
24602 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24603
24604 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
24605 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
24606 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
24607 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
24608 (FRAME_POINTER_REGNUM): Change numbering.
24609 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
24610 (alt_reg_names): Adjust.
24611 (rs6000_conditional_register_usage): Don't mark hard register 64 as
24612 fixed.
24613 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
24614 (DWARF_FRAME_REGISTERS): Delete.
24615 (DWARF2_FRAME_REG_OUT): Fix whitespace.
24616 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
24617 Adjust.
24618 (REG_ALLOC_ORDER): Adjust.
24619 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
24620 (REG_CLASS_CONTENTS): Adjust.
24621 (RETURN_ADDR_RTX): Change comment.
24622 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
24623 instead of 67.
24624 (REGISTER_NAMES): Adjust.
24625 (ADDITIONAL_REGISTER_NAMES): Adjust.
24626 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
24627
24628 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24629
24630 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
24631 Delete.
24632 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
24633 (DWARF_FRAME_REGISTERS): Adjust.
24634 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
24635 Adjust.
24636 (REG_ALLOC_ORDER): Adjust.
24637 (enum reg_class): Delete SPR_REGS.
24638 (REG_CLASS_NAMES): Delete SPR_REGS.
24639 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
24640 (REGISTER_NAMES): Adjust.
24641 (ADDITIONAL_REGISTER_NAMES): Adjust.
24642 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
24643 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
24644 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
24645 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
24646 (htm_spr_regno): Delete.
24647 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
24648 argument.
24649 (rs6000_dbx_register_number): Adjust.
24650
24651 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24652
24653 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
24654
24655 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24656
24657 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
24658 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
24659
24660 2019-05-06 Jakub Jelinek <jakub@redhat.com>
24661
24662 PR tree-optimization/88709
24663 PR tree-optimization/90271
24664 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
24665 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
24666 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
24667 variable.
24668 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
24669 of the store merging group is larger than
24670 PARAM_STORE_MERGING_MAX_SIZE parameter.
24671 (split_group): Add bzero_first argument. If set, always emit first
24672 the first store which must be = {} of the whole area and then for the
24673 rest of the stores consider all zero bytes as paddings.
24674 (imm_store_chain_info::output_merged_store): Check if first store
24675 is = {} of the whole area and if yes, determine which setting of
24676 bzero_first for split_group gives smaller number of stores. Adjust
24677 split_group callers.
24678 (lhs_valid_for_store_merging_p): Allow decls.
24679 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
24680 no elts.
24681 (pass_store_merging::process_store): Likewise.
24682
24683 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
24684
24685 PR target/89424
24686 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
24687 handling of V1TImode.
24688
24689 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
24690
24691 PR target/89221
24692 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
24693 and enable_frame_pointer ...
24694 * configure.ac: ... here. Update help strings for
24695 --enable-frame-pointer.
24696 * configure: Regenerate.
24697 * config/i386/i386-options.c (ix86_option_override_internal): Remove
24698 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
24699 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
24700 (USE_X86_64_FRAME_POINTER): Ditto.
24701
24702 2019-05-06 Martin Liska <mliska@suse.cz>
24703
24704 * config.gcc: Append to target_gtfiles and fix indentation.
24705
24706 2019-05-06 Richard Biener <rguenther@suse.de>
24707
24708 PR tree-optimization/90358
24709 * tree-vect-stmts.c (get_group_load_store_type): Properly
24710 detect unused upper half of load.
24711 (vectorizable_load): Likewise.
24712
24713 2019-05-06 Richard Biener <rguenther@suse.de>
24714
24715 PR tree-optimization/88828
24716 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
24717 (simplify_vector_constructor): ...here. Handle constants in
24718 the constructor.
24719
24720 2019-05-06 Richard Biener <rguenther@suse.de>
24721
24722 PR tree-optimization/90328
24723 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
24724 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
24725 is valid in the loop nest before using it.
24726 (initialize_data_dependence_relation): Adjust.
24727 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
24728 loop as loop-nest to dr_may_alias_p.
24729
24730 2019-05-06 Richard Biener <rguenther@suse.de>
24731
24732 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
24733
24734 2019-05-06 Richard Biener <rguenther@suse.de>
24735
24736 PR tree-optimization/90316
24737 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
24738 compute target on demand.
24739 (get_continuation_for_phi): Remove code walking stmts to
24740 get to a target virtual operand which could end up being
24741 quadratic.
24742
24743 2019-05-06 Martin Liska <mliska@suse.cz>
24744
24745 PR sanitizer/90312
24746 * config/i386/i386-options.c (ix86_option_override_internal): Error only
24747 when -mabi is selected to a non-default version.
24748
24749 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
24750 Martin Liska <mliska@suse.cz>
24751
24752 * Makefile.in: Add lto-dump.texi.
24753 * cgraph.h: Add new functions get_visibility_string and
24754 get_symtab_type_string.
24755 * doc/gcc.texi: Include lto-dump section.
24756 * doc/lto-dump.texi: New file.
24757 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
24758 (parse_dump_option): Factor out this function.
24759 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
24760 (parse_dump_option): Export the function.
24761 * symtab.c (symtab_node::get_visibility_string): New function.
24762 (symtab_node::get_symtab_type_string): Likewise.
24763
24764 2019-05-06 Martin Liska <mliska@suse.cz>
24765
24766 * config/i386/i386-builtins.c: New file.
24767 * config/i386/i386-builtins.h: New file.
24768 * config/i386/i386-expand.c: New file.
24769 * config/i386/i386-expand.h: New file.
24770 * config/i386/i386-features.c: New file.
24771 * config/i386/i386-features.h: New file.
24772 * config/i386/i386-options.c: New file.
24773 * config/i386/i386-options.h: New file.
24774 * config.gcc: Add new files into extra_objs and
24775 target_gtfiles.
24776 * config/i386/i386.c: Split content of the file
24777 into newly introduced files.
24778 * config/i386/i386.h: Declare common variables
24779 and macros.
24780 * config/i386/t-i386: Define dependencies for new files.
24781
24782 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
24783
24784 PR target/89400
24785 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
24786 Restrict 'all' variant to 32-bit configurations.
24787 (unaligned_loadhiu): Likewise.
24788 (unaligned_storehi): Likewise.
24789 (unaligned_storesi): Likewise.
24790 (unaligned_loadhis): Disable when compiling for thumb1.
24791
24792 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
24793
24794 PR tree-optimization/90269
24795 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
24796 Ignore clobbers.
24797
24798 2019-05-03 Martin Liska <mliska@suse.cz>
24799
24800 * hash-map.h: Add is_empty function.
24801 * hash-set.h: Likewise.
24802 * hash-table.h: Likewise.
24803 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
24804 elements () == 0 (and similar usages).
24805 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
24806 * gimplify.c (gimplify_bind_expr): Likewise.
24807 (gimplify_switch_expr): Likewise.
24808 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
24809 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
24810 * postreload-gcse.c (dump_hash_table): Likewise.
24811 (gcse_after_reload_main): Likewise.
24812 * predict.c (combine_predictions_for_bb): Likewise.
24813 * tree-parloops.c (reduction_phi): Likewise.
24814 (separate_decls_in_region): Likewise.
24815 (transform_to_exit_first_loop): Likewise.
24816 (gen_parallel_loop): Likewise.
24817 (gather_scalar_reductions): Likewise.
24818 (try_create_reduction_list): Likewise.
24819 * var-tracking.c (dump_vars): Likewise.
24820 (emit_notes_for_changes): Likewise.
24821 (vt_emit_notes): Likewise.
24822
24823 2019-05-03 Richard Biener <rguenther@suse.de>
24824
24825 PR tree-optimization/90316
24826 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
24827 before running VN.
24828
24829 2019-05-03 Richard Biener <rguenther@suse.de>
24830
24831 * tree-vect-stmts.c (get_group_load_store_type): Avoid
24832 peeling for gaps by loading only lower halves of vectors
24833 if possible.
24834 (vectorizable_load): Likewise.
24835
24836 2019-05-03 Richard Biener <rguenther@suse.de>
24837
24838 PR middle-end/89518
24839 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
24840
24841 2019-05-03 Richard Biener <rguenther@suse.de>
24842
24843 PR middle-end/87314
24844 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
24845 Handle STRING_CST vs DECL or STRING_CST.
24846
24847 2019-05-03 Richard Biener <rguenther@suse.de>
24848
24849 PR tree-optimization/88963
24850 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
24851 vector loads feeding only BIT_FIELD_REFs to component
24852 loads. Rewrite stores fed by CONSTRUCTORs to component
24853 stores.
24854
24855 2019-05-03 Jakub Jelinek <jakub@redhat.com>
24856
24857 * opts.h (finish_options): Remove lang_mask argument.
24858 (print_help, help_option_argument): Declare.
24859 * opts.c (print_help): Remove forward declaration, no longer static.
24860 (finish_options): Remove lang_mask argument, don't call print_help
24861 here.
24862 * opts-global.c (decode_options): Adjust finish_option caller, call
24863 print_help here.
24864
24865 PR tree-optimization/90303
24866 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
24867 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
24868
24869 2019-05-03 Richard Biener <rguenther@suse.de>
24870
24871 PR tree-optimization/89698
24872 * gimple-fold.c (canonicalize_constructor_val): Early out
24873 for constants, handle unfolded INTEGER_CSTs as they appear in
24874 C++ virtual table ctors.
24875
24876 2019-05-03 Richard Biener <rguenther@suse.de>
24877
24878 * passes.c (execute_function_todo): Remove dead code.
24879
24880 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
24881
24882 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
24883 the internal register number, for any "real" register.
24884
24885 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
24886
24887 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
24888 correct numbers for TFHAR, TFIAR, TEXASR.
24889
24890 2019-05-02 Richard Biener <rguenther@suse.de>
24891
24892 PR tree-optimization/89653
24893 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
24894 update-address-taken before the pass.
24895 * passes.def (pass_tree_loop_init): Put comment before it.
24896
24897 2019-05-02 Richard Biener <rguenther@suse.de>
24898
24899 PR tree-optimization/89509
24900 * tree-ssa-structalias.c (compute_dependence_clique): Look
24901 at the first subvar when determining whether it is restrict.
24902
24903 2019-05-02 Richard Biener <rguenther@suse.de>
24904
24905 PR tree-optimization/90273
24906 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
24907 useless debug stmts.
24908
24909 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24910
24911 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
24912 ACLE branch.
24913 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
24914 SVE ACLE branch.
24915 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
24916 VEC_COND_EXPR be inserted to emulate a conditional internal function.
24917 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
24918 (vectorizable_reduction): Use the functions above to vectorize in a
24919 fully masked loop codes that don't have a conditional internal
24920 function.
24921
24922 2019-05-02 Martin Liska <mliska@suse.cz>
24923
24924 * cgraphclones.c: Call valid_attribute_p with 1 for
24925 target_clone.
24926 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
24927 it's for target attribute.
24928 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
24929 Add new boolean argument.
24930 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
24931 Likewise.
24932 (ix86_valid_target_attribute_tree): Pass target_clone_attr
24933 to ix86_valid_target_attribute_inner_p.
24934 (ix86_valid_target_attribute_p): Pass flags argument to
24935 ix86_valid_target_attribute_inner_p.
24936 (get_builtin_code_for_version): Use 0 as it's target attribute.
24937
24938 2019-05-02 Martin Liska <mliska@suse.cz>
24939
24940 * gcc.c (process_command): Add dummy file only
24941 if n_infiles == 0.
24942 * opts-global.c (decode_options): Pass lang_mask.
24943 * opts.c (print_help): New function.
24944 (finish_options): Print --help if help_option_argument
24945 is set.
24946 (common_handle_option): Factor out content of OPT__help_
24947 into print_help.
24948 * opts.h (finish_options): Add new argument.
24949
24950 2019-05-02 Martin Liska <mliska@suse.cz>
24951
24952 PR target/88809
24953 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
24954 With -minline-all-stringops use inline expansion using 4B loop.
24955 * doc/invoke.texi: Document the change of
24956 -minline-all-stringops.
24957
24958 2019-05-01 Jeff Law <law@redhat.com>
24959
24960 PR tree-optimization/88797
24961 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
24962 PHI feeds a conditional on the RHS of an assignment.
24963
24964 2019-04-30 Andrew Waterman <andrew@sifive.com>
24965 Jim Wilson <jimw@sifive.com>
24966
24967 * config/riscv/constraints.md (L): New.
24968 * config/riscv/predicates.md (lui_operand): New.
24969 (sfb_alu_operand): New.
24970 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
24971 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
24972 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
24973 * config/riscv/risc.md (type): Add sfb_alu.
24974 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
24975 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
24976 (branch_zero<mode>): Delete.
24977 (mov<mode>cc): New.
24978 (mov<GPR:mode><X:mode>cc): Likewise.
24979 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
24980
24981 2019-04-30 Nathan Sidwell <nathan@acm.org>
24982
24983 * tree.h (MARK_TS_EXP): New.
24984
24985 2019-04-30 Martin Liska <mliska@suse.cz>
24986
24987 * opts.c (enable_warning_as_error): Provide hints
24988 for unknown options.
24989
24990 2019-04-30 Martin Liska <mliska@suse.cz>
24991
24992 PR debug/90288
24993 * doc/invoke.texi: Add missing dash for gas-locview-support
24994 and gno-as-locview-support.
24995
24996 2019-04-30 Jakub Jelinek <jakub@redhat.com>
24997
24998 PR target/89093
24999 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
25000 whitespace at the start of target attribute string.
25001
25002 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25003
25004 PR target/86538
25005 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25006 Define __ARM_FEATURE_ATOMICS.
25007
25008 2019-04-30 Martin Liska <mliska@suse.cz>
25009
25010 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
25011 into built_in_function enum. Remove code for endp == 2 and
25012 use BUILT_IN_* constants.
25013 (gimple_fold_builtin): Call the function with fcode.
25014
25015 2019-04-30 Martin Liska <mliska@suse.cz>
25016
25017 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
25018 DECL_FUNCTION_CODE into ix86_builtins enum before
25019 the switch statement.
25020
25021 2019-04-30 Jakub Jelinek <jakub@redhat.com>
25022
25023 PR tree-optimization/89475
25024 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
25025 calls.
25026
25027 2019-04-30 Martin Liska <mliska@suse.cz>
25028
25029 PR translation/90274
25030 * opts.c (print_filtered_help): Wrap string in _(...).
25031
25032 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
25033
25034 PR tree-optimization/90240
25035 Revert:
25036 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25037
25038 PR tree-optimization/90078
25039 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
25040 checks for infinite_cost overflow.
25041
25042 2019-04-29 Jeff Law <law@redhat.com>
25043
25044 * passes.def: Move -Wrestrict pass after copy propagation.
25045
25046 2019-04-29 Maya Rashish <coypu@sdf.org>
25047
25048 * config.gcc (default_gnu_indirect_function): Default to yes
25049 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
25050 sparc*-*-netbsd*, x86_64-*-netbsd*.
25051
25052 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
25053
25054 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
25055 where cond2 is NE_EXPR.
25056 (is_value_included_in): Update comment.
25057
25058 2019-04-29 Richard Biener <rguenther@suse.de>
25059
25060 PR tree-optimization/90278
25061 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
25062 EH on comparison simplification.
25063
25064 2019-04-29 Jason Merrill <jason@redhat.com>
25065
25066 PR c++/82081 - tail call optimization breaks noexcept
25067 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
25068 nothrow function to a might-throw function into a tail call.
25069
25070 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
25071
25072 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
25073 (DDR_INNER_LOOP): Likewise.
25074 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
25075 (initialize_data_dependence_relation): Likewise.
25076 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
25077
25078 2019-04-29 Jakub Jelinek <jakub@redhat.com>
25079
25080 PR rtl-optimization/90257
25081 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
25082 return value.
25083
25084 Revert the revert:
25085 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
25086
25087 PR target/90178
25088 Revert:
25089 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
25090
25091 Revert the revert:
25092 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
25093
25094 Revert:
25095 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
25096
25097 * lra-spills.c (lra_final_code_change): Remove useless move insns.
25098
25099 2019-04-29 Richard Biener <rguenther@suse.de>
25100
25101 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
25102 rhs issue a reset.
25103
25104 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
25105
25106 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
25107 varasm.h, and netbsd-protos.h.
25108
25109 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
25110
25111 PR target/89261
25112 * config/i386/i386-protos.h (ix86_data_alignment): Change
25113 the second argument type to unsigned int.
25114 * config/i386/i386.c (ix86_data_alignment): Change "align"
25115 argument type to unsigned int.
25116
25117 2019-04-27 Martin Liska <mliska@suse.cz>
25118
25119 PR middle-end/90258
25120 * opt-suggestions.c (option_proposer::build_option_suggestions):
25121 When get_valid_option_values returns empty values, add the
25122 misspelling candidate.
25123
25124 2019-04-26 Jim Wilson <jimw@sifive.com>
25125
25126 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
25127 parameter.
25128 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
25129 Pass orig_mode to riscv_build_integer.
25130 (riscv_split_integer): Pass mode to riscv_move_integer.
25131 (riscv_legitimize_const_move): Likewise.
25132 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
25133 promoted_mode. Replace force_reg call with code to load constant into
25134 promoted reg and then subreg it for the store.
25135 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
25136 riscv_move_integer.
25137
25138 2018-04-26 Eugene Sharygin <eush@ispras.ru>
25139
25140 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
25141 corrupt codes.
25142
25143 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
25144
25145 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
25146 commentary about the encoding of precision.
25147
25148 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
25149
25150 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
25151 * config/i386/t-freebsd64: New file.
25152 * config.gcc: Add the t-freebsd64 for multilib support.
25153
25154 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
25155
25156 * doc/extend.texi (vector_size): Add missing comma after @xref.
25157
25158 2019-04-25 Jakub Jelinek <jakub@redhat.com>
25159
25160 * BASE-VER: Set to 10.0.0.
25161
25162 2019-04-25 Richard Biener <rguenther@suse.de>
25163
25164 PR middle-end/89765
25165 * gimplify.c (gimplify_expr): Avoid turning a lvalue
25166 VIEW_CONVERT_EXPR into one operating on an rvalue.
25167
25168 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
25169
25170 PR target/89929
25171 * config/i386/i386.c (feature_priority): Moved to file scope.
25172 (processor_features): Likewise.
25173 (processor_model): Likewise.
25174 (_arch_names_table): Likewise.
25175 (arch_names_table): Likewise.
25176 (_feature_list): Removed.
25177 (feature_list): Likewise.
25178 (_isa_names_table): Moved to file scope. Add priority.
25179 (isa_names_table): Likewise.
25180 (get_builtin_code_for_version): Replace feature_list with
25181 isa_names_table. Update error message for P_ZERO priority.
25182
25183 2019-04-25 Richard Biener <rguenther@suse.de>
25184
25185 * tree-pass.h (make_pass_phi_only_cprop): Remove.
25186 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
25187
25188 2019-04-24 Jeff Law <law@redhat.com>
25189
25190 PR tree-optimization/90037
25191 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
25192 * passes.def: Replace all instance of phi-only cprop with the
25193 lattice propagator. Move propagation pass from after erroneous
25194 path isolation to before erroneous path isolation.
25195 * tree-ssa-phionlycprop.c: Remove.
25196
25197 2019-04-24 Richard Biener <rguenther@suse.de>
25198
25199 PR middle-end/90213
25200 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
25201 by size and BITS_PER_UNIT on poly-wide-ints.
25202
25203 2019-04-25 Richard Biener <rguenther@suse.de>
25204
25205 PR middle-end/90194
25206 * match.pd: Add pattern to simplify view-conversion of an
25207 empty constructor.
25208
25209 2019-04-24 Clement Chigot <clement.chigot@atos.net>
25210
25211 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
25212 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
25213 for Go on 32 bit AIX.
25214 * config/rs6000/aix72.h: Likewise.
25215
25216 2019-04-24 Jakub Jelinek <jakub@redhat.com>
25217
25218 PR target/90193
25219 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
25220 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
25221
25222 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
25223
25224 PR target/89952
25225 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
25226 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
25227 for restored hard frame pointer.
25228 (s390_sched_dependencies_evaluation): Implement new target hook.
25229 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
25230
25231 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
25232
25233 * config/arc/arc-options.def: Fix typos and spelling mistakes.
25234 * config/arc/arc.c (arc_init): Cleanup warning message.
25235 (arc_override_options): Likewise.
25236
25237 2019-04-24 Jakub Jelinek <jakub@redhat.com>
25238
25239 PR target/90187
25240 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
25241 a register if both if_true and if_false are MEMs.
25242
25243 PR tree-optimization/90208
25244 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
25245 after labels of new_bb, not before them.
25246
25247 PR tree-optimization/90211
25248 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
25249 which are not SSA_NAMEs.
25250
25251 2018-04-23 Sudakshina Das <sudi.das@arm.com>
25252
25253 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
25254 AArch64.
25255 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
25256
25257 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
25258
25259 PR rtl-optimization/87979
25260 * modulo-sched.c (sms_schedule): Start ii value "mii" should
25261 not equal zero.
25262
25263 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
25264
25265 PR rtl-optimization/84032
25266 * modulo-sched.c (ps_insn_find_column): Change condition so that
25267 branch will always be the last insn in a row inside partial
25268 schedule.
25269
25270 2019-04-23 Richard Biener <rguenther@suse.de>
25271
25272 PR debug/90131
25273 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
25274 dest_single_pred_p argument.
25275 (remove_forwarder_block): Adjust.
25276 (remove_forwarder_block_with_phi): Likewise.
25277
25278 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25279 Bernd Edlinger <bernd.edlinger@hotmail.de>
25280 Jakub Jelinek <jakub@redhat.com>
25281
25282 PR target/89093
25283 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
25284 if used with general-regs-only.
25285 (arm_conditional_register_usage): Don't add non-general regs if
25286 general-regs-only.
25287 (arm_valid_target_attribute_rec): Handle general-regs-only.
25288 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
25289 general-regs-only.
25290 (TARGET_HARD_FLOAT_SUB): Define.
25291 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
25292 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
25293 (TARGET_REALLY_IWMMXT2): Likewise.
25294 * config/arm/arm.opt: Add -mgeneral-regs-only.
25295 * doc/extend.texi: Document ARM general-regs-only target.
25296 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
25297
25298 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25299
25300 PR tree-optimization/90078
25301 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
25302 checks for infinite_cost overflow.
25303
25304 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25305
25306 PR tree-optimization/90021
25307 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
25308 and check univariate against it.
25309 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
25310 * tree-data-ref.c (add_other_self_distances): Pass new argument.
25311
25312 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
25313
25314 PR target/90178
25315 Revert:
25316 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
25317
25318 Revert the revert:
25319 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
25320
25321 Revert:
25322 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
25323
25324 * lra-spills.c (lra_final_code_change): Remove useless move insns.
25325
25326 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
25327
25328 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
25329 names using operand format, rather than hard-wired.
25330 (speculation_barrier): Likewise.
25331
25332 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
25333
25334 PR tree-optimization/88055
25335 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
25336 (gen_one_condition): Use it if !HONOR_NANS.
25337
25338 2019-04-19 Jakub Jelinek <jakub@redhat.com>
25339
25340 PR middle-end/90139
25341 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
25342 assign_temp instead of gen_reg_rtx.
25343
25344 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
25345
25346 PR translation/90118
25347 * config/aarch64/aarch64.c (aarch64_override_options_internal):
25348 Add missing space before %<.
25349
25350 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
25351
25352 PR rtl-optimization/87871
25353 * ira-lives.c (make_object_dead): Don't add conflicts to
25354 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
25355
25356 2019-04-18 Martin Sebor <msebor@redhat.com>
25357
25358 PR middle-end/89797
25359 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
25360 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
25361 assuming type size fits in SHWI.
25362
25363 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
25364
25365 PR ipa/85051
25366 * ipa-inline.c (flatten_function): New parameter UPDATE.
25367 (ipa_inline, early_inliner): Use it.
25368
25369 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
25370
25371 * fold-const.c (int_const_binop): Return early on failure.
25372
25373 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
25374
25375 PR middle-end/85164
25376 * combine.c (force_int_to_mode): Cast the argument rather than
25377 the result of known_alignment.
25378 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
25379
25380 2019-04-18 Richard Biener <rguenther@suse.de>
25381
25382 PR debug/90131
25383 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
25384 out from ...
25385 (remove_forwarder_block): ... here.
25386 (remove_forwarder_block_with_phi): Also move debug stmts here.
25387
25388 2019-04-18 Jakub Jelinek <jakub@redhat.com>
25389
25390 PR translation/79183
25391 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
25392 inform where appropriate.
25393
25394 2019-04-18 Richard Biener <rguenther@suse.de>
25395
25396 * tree.c (get_qualified_type): Put found type variants at the
25397 head of the variant list.
25398
25399 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
25400
25401 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
25402
25403 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
25404
25405 PR target/90125
25406 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
25407 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
25408 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
25409 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
25410 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
25411
25412 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
25413
25414 * ira-conflicts.c (print_allocno_conflicts): Always print something,
25415 even for allocno's with no conflicts.
25416 (print_conflicts): Print an extra newline.
25417
25418 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
25419
25420 * auto-inc-dec.c (attempt_change): Set the alignment of the
25421 temporary memory to that of the original.
25422
25423 2019-04-17 Joao Moreira <jmoreira@suse.de>
25424
25425 * targhooks.c (default_print_patchable_function_entry): Emit
25426 __patchable_function_entries section with writable flags to allow
25427 relocation resolution.
25428
25429 2019-04-17 Jonny Grant <jg@jguk.org>
25430
25431 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
25432
25433 2019-04-17 Jakub Jelinek <jakub@redhat.com>
25434
25435 PR middle-end/90095
25436 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
25437 on lowpart SUBREGs.
25438
25439 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
25440
25441 * config/arc/arc.c (arc_init): Format diagnostic string.
25442 (arc_override_options): Likewise.
25443 (check_if_valid_regno_const): Likewise.
25444 (arc_reorg): Likewise.
25445
25446 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
25447
25448 PR target/17108
25449 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
25450 name.
25451 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
25452 name.
25453 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
25454 (*movdi_update1): Use Pmode.
25455 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
25456 (movdi_<mode>_update_stack): Rename to ...
25457 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
25458 use Pmode.
25459 (*movsi_update1): Use Pmode.
25460 (*movsi_update2): Use Pmode.
25461 (movsi_update): Rename to ...
25462 (movsi_<mode>_update): ... this. Use Pmode.
25463 (movsi_update_stack): Fix condition.
25464 (*movhi_update1): Use Pmode. Fix argument to
25465 avoiding_indexed_address_p.
25466 (*movhi_update2): Ditto.
25467 (*movhi_update3): Ditto.
25468 (*movhi_update4): Ditto.
25469 (*movqi_update1): Ditto.
25470 (*movqi_update2): Ditto.
25471 (*movqi_update3): Ditto.
25472 (*movsf_update1, *movdf_update1): Merge, rename to...
25473 (*mov<mode>_update1): This. Use Pmode. Fix argument to
25474 avoiding_indexed_address_p. Add "size" attribute.
25475 (*movsf_update2, *movdf_update2): Merge, rename to...
25476 (*mov<mode>_update2): This. Ditto.
25477 (*movsf_update3): Use Pmode. Fix argument to
25478 avoiding_indexed_address_p.
25479 (*movsf_update4): Ditto.
25480 (allocate_stack): Simplify condition. Adjust pattern names.
25481
25482 2019-04-17 Jakub Jelinek <jakub@redhat.com>
25483
25484 PR target/89093
25485 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
25486 whitespace at the start of target attribute string.
25487
25488 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
25489
25490 PR target/84369
25491 * config/rs6000/power9.md: Add store forwarding bypass.
25492
25493 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
25494
25495 PR debug/89528
25496 * valtrack.c (dead_debug_insert_temp): Reset debug references
25497 to the return value of a call being removed.
25498
25499 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25500
25501 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
25502 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
25503 implement target hook.
25504 (arc_memory_move_cost): New function.
25505 (TARGET_REGISTER_MOVE_COST): Define.
25506 (TARGET_MEMORY_MOVE_COST): Likewise.
25507 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
25508 (MEMORY_MOVE_COST): Likewise.
25509
25510 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25511
25512 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
25513 (sibcall_value_insn): Likewise.
25514 * config/arc/constraints.md (Rs5): Remove.
25515
25516 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25517
25518 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
25519 for last two fake registers.
25520 (arc_conditional_register_usage): Make sure fake frame and arg
25521 pointer regs are in general regs class.
25522 (FRAME_POINTER_MASK): Remove.
25523 (RETURN_ADDR_MASK): Remove.
25524 (arc_must_save_register): Use hard frame regnum.
25525 (frame_restore_reg): Use hard_frame_pointer_rtx.
25526 (arc_save_callee_saves): Likewise.
25527 (arc_restore_callee_saves): Likewise.
25528 (arc_save_callee_enter): Likewise.
25529 (arc_restore_callee_leave): Likewise.
25530 (arc_save_callee_milli): Likewise.
25531 (arc_eh_return_address_location): Likewise.
25532 (arc_check_multi): Use hard frame regnum.
25533 (arc_can_eliminate): Likewise.
25534 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
25535 for register allocator.
25536 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
25537 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
25538 (FRAME_POINTER_REGNUM): Change it to a fake register.
25539 (HARD_FRAME_POINTER_REGNUM): Defined.
25540 (ARG_POINTER_REGNUM): Change it to a new fake register.
25541 (ELIMINABLE_REGS): Update.
25542 (REGISTER_NAMES): Update names.
25543 * config/arc/arc.md (LP_START): Remove.
25544 (LP_END): Likewise.
25545 (shift_si3_loop): Update pattern.
25546
25547 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25548
25549 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
25550 to avoid delay slot scheduling.
25551 (arc_must_save_register): Don't save SP.
25552 * config/arc/arc.md (stack_tie): Remove.
25553 (UNSPEC_ARC_STKTIE): Likewise.
25554
25555 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
25556 Shiva Chen <shiva0217@gmail.com>
25557
25558 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
25559 code gen with large shift amount.
25560
25561 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
25562
25563 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
25564 subreg.
25565
25566 2019-04-16 Jakub Jelinek <jakub@redhat.com>
25567
25568 PR target/90096
25569 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
25570 print -m64/-mx32/-m32 if it is true.
25571 (ix86_debug_options, ix86_function_specific_print): Pass true as
25572 ADD_ABI_P to ix86_target_string.
25573 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
25574 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
25575 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
25576
25577 PR rtl-optimization/90082
25578 * dce.c (can_delete_call): New function.
25579 (deletable_insn_p, mark_insn): Use it.
25580
25581 PR tree-optimization/90090
25582 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
25583 throw internally.
25584 (is_division_by_square): Likewise. Formatting fix.
25585
25586 2019-04-16 Richard Biener <rguenther@suse.de>
25587
25588 PR tree-optimization/56049
25589 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
25590 equality check if alias-set zero will prevail.
25591
25592 2019-04-15 Jeff Law <law@redhat.com>
25593
25594 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
25595 size and alignment as unsigned.
25596
25597 2019-04-15 Richard Biener <rguenther@suse.de>
25598
25599 PR debug/90074
25600 * tree-loop-distribution.c (destroy_loop): Preserve correct
25601 debug info.
25602
25603 2019-04-15 Richard Biener <rguenther@suse.de>
25604
25605 PR tree-optimization/90071
25606 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
25607 abnormal operands from def stmts.
25608
25609 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
25610
25611 PR rtl-optimization/89794
25612 * combine.c (count_auto_inc): New function.
25613 (try_combine): Count how many auto_inc expressions there were in the
25614 original instructions. Ensure we have the same number in the new
25615 instructions. Remove the code that tried to ensure auto_inc side
25616 effects on i1 and i0 are not lost.
25617
25618 2019-04-15 Richard Biener <rguenther@suse.de>
25619
25620 PR ipa/88936
25621 * tree.h (auto_var_p): Declare.
25622 * tree.c (auto_var_p): New function, split out from ...
25623 (auto_var_in_fn_p): ... here.
25624 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
25625 member.
25626 (new_var_info): Initialize it.
25627 (set_uids_in_ptset): Also set the shadow variable uid if required.
25628 (ipa_pta_execute): Postprocess points-to solutions assigning
25629 shadow variable uids for locals that may reach their containing
25630 function recursively.
25631 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
25632 assert but instead check whether the points-to solution is
25633 a singleton.
25634
25635 2019-04-15 Martin Jambor <mjambor@suse.cz>
25636
25637 PR ipa/pr89693
25638 * cgraph.c (clone_of_p): Loop over clone chain for each step in
25639 the thunk chain.
25640
25641 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
25642
25643 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
25644
25645 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
25646 Kito Cheng <kito.cheng@gmail.com>
25647 Shiva Chen <shiva0217@gmail.com>
25648
25649 * config/nds32/nds32-md-auxiliary.c
25650 (nds32_legitimize_pic_address): Use new PIC pattern.
25651 (nds32_legitimize_tls_address): Use new TLS pattern.
25652 (nds32_output_symrel): New.
25653 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
25654 (nds32_alloc_relax_group_id): Ditto.
25655 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
25656 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
25657 relax_group_id.
25658 (nds32_group_tls_insn): Ditto.
25659 (nds32_group_float_insns): Ditto.
25660 * config/nds32/nds32.md (tls_le): New.
25661 (sym_got): Ditto.
25662
25663 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
25664
25665 * configure: Add nds32 target for dwarf2 debug_line checking.
25666 * configure.ac: Regenerated.
25667
25668 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
25669
25670 PR lto/89358
25671 * ipa-devirt.c (skip_in_fields_list_p): New.
25672 (odr_types_equivalent_p): Use it.
25673
25674 2019-04-13 Jakub Jelinek <jakub@redhat.com>
25675
25676 PR target/89093
25677 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
25678 instead of strncmp when checking for thumb and arm. Formatting fixes.
25679
25680 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
25681
25682 * doc/install.texi: Document --with-target-system-zlib.
25683
25684 2019-04-12 Martin Sebor <msebor@redhat.com>
25685
25686 PR c/88383
25687 PR c/89288
25688 PR c/89798
25689 PR c/89797
25690 * targhooks.c (default_vector_alignment): Avoid assuming
25691 argument fits in SHWI.
25692 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
25693 a shift expression.
25694 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
25695
25696 2019-04-12 Jakub Jelinek <jakub@redhat.com>
25697
25698 PR rtl-optimization/89965
25699 * dce.c: Include rtl-iter.h.
25700 (struct check_argument_load_data): New type.
25701 (check_argument_load): New function.
25702 (find_call_stack_args): Check for loads from stack slots still tracked
25703 in sp_bytes and punt if any is found.
25704
25705 * config/mips/loongson-mmiintrin.h: Fix up #error message.
25706
25707 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
25708
25709 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
25710 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
25711
25712 2019-04-12 Martin Liska <mliska@suse.cz>
25713
25714 PR middle-end/89970
25715 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
25716 in error message.
25717 (separate_attrs): Handle multiple 'default's.
25718 (expand_target_clones): Rework error handling code.
25719
25720 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
25721
25722 PR target/87532
25723 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
25724 mode of vector rather than mode of destination for move instruction.
25725 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
25726 Use QI inner mode with V16QI vector mode.
25727
25728 2019-04-12 Jakub Jelinek <jakub@redhat.com>
25729
25730 PR target/52726
25731 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
25732 "invalid %%t operand" in output_operand_lossage message.
25733
25734 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
25735
25736 * config/s390/predicates.md (permute_pattern_operand): New
25737 predicate.
25738 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
25739 operand for the permute pattern.
25740 ("*vec_perm<mode>"): New insn definition.
25741 ("bswap<mode>"): Generate the permute pattern operand in the
25742 expander and perform the operand reloads for pre arch13 level
25743 already.
25744 ("*bswap<mode>_emu"): Rename to ...
25745 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
25746 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
25747 Add the USE operand for the permute pattern.
25748 ("*vec_set_bswap_vec<mode>"): Likewise.
25749
25750 2019-04-12 Jakub Jelinek <jakub@redhat.com>
25751
25752 PR c/89946
25753 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
25754 and gcc_unreachable if it fails, just call tree_to_uhwi which
25755 verifies that too. Test TREE_CHAIN instead of list_length > 1.
25756 Start warning message with a lower-case letter. Formatting fixes.
25757
25758 PR rtl-optimization/90026
25759 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
25760 successors, look for BARRIERs inside of the whole BB_FOOTER chain
25761 rather than just at the start of it. If e->src BB_FOOTER is not NULL
25762 in cfglayout mode, use emit_barrier_after_bb.
25763
25764 2018-04-11 Steve Ellcey <sellcey@marvell.com>
25765
25766 PR rtl-optimization/87763
25767 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
25768 New Instruction.
25769
25770 2019-04-11 Tom de Vries <tdevries@suse.de>
25771
25772 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
25773 max macro using statement expression.
25774
25775 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
25776
25777 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
25778 * xcoffout.c (xcoff_private_rodata_section_name): Define.
25779 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
25780 read_only_private_data_section using xcoff_private_rodata_section_name.
25781 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
25782
25783 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
25784
25785 PR target/90016
25786 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
25787
25788 2019-04-11 Jakub Jelinek <jakub@redhat.com>
25789
25790 PR rtl-optimization/89965
25791 * dce.c (sp_based_mem_offset): New function.
25792 (find_call_stack_args): Use sp_based_mem_offset.
25793
25794 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
25795
25796 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
25797
25798 2019-04-11 Richard Biener <rguenther@suse.de>
25799
25800 PR tree-optimization/90020
25801 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
25802 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
25803 * tree-ssa-pre.c (compute_avail): Use it to not put
25804 possibly trapping references after a call that might not
25805 return into EXP_GEN.
25806 * gcse.c (compute_hash_table_work): Do not elide
25807 marking a block containing a call if the call might not
25808 return.
25809
25810 2019-04-11 Richard Biener <rguenther@suse.de>
25811
25812 PR tree-optimization/90018
25813 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
25814 Test both SLP and interleaving variants.
25815
25816 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
25817
25818 * config/s390/8561.md: New file.
25819 * config/s390/driver-native.c (s390_host_detect_local_cpu):
25820 Add arch13 cpu model.
25821 * config/s390/s390-opts.h (enum processor_type): Likewise.
25822 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
25823 (s390_get_unit_mask): Likewise.
25824 (s390_is_fpd): Likewise.
25825 (s390_is_fxd): Likewise.
25826 * config/s390/s390.h (s390_tune_attr): Likewise.
25827 * config/s390/s390.md: Include arch13 pipeline description.
25828 * config/s390/s390.opt: Add arch13.
25829
25830 2018-04-10 Steve Ellcey <sellcey@marvell.com>
25831
25832 PR rtl-optimization/87763
25833 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
25834 New prototype.
25835 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
25836 New function.
25837 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
25838 New instruction.
25839 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
25840 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
25841 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
25842 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
25843
25844 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
25845
25846 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
25847 "Although" in -fipa-icf documentation.
25848
25849 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
25850 of using multiple -g options.
25851
25852 2019-04-10 Martin Liska <mliska@suse.cz>
25853
25854 PR gcov-profile/89959
25855 * doc/gcov.texi: Make documentation of -x option
25856 more precise.
25857
25858 2019-04-10 Richard Biener <rguenther@suse.de>
25859
25860 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
25861 member.
25862 (DR_GROUP_SAME_DR_STMT): Remove.
25863 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
25864 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
25865 replace with assert.
25866 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
25867 (vect_record_grouped_load_vectors): Remove unreachable code.
25868
25869 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
25870
25871 PR target/90016
25872 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
25873 obsolete reference to N.
25874
25875 2019-04-10 Jakub Jelinek <jakub@redhat.com>
25876
25877 PR middle-end/90025
25878 * expr.c (store_expr): Set properly size on the MEM passed to
25879 clear_storage.
25880
25881 PR c++/90010
25882 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
25883 with strlen in between hostsz-3 and hostsz-1 inclusive when no
25884 translation is needed, and when translation is needed, only append
25885 ... if the string length is hostsz or more bytes long. Avoid using
25886 strncpy or strcat.
25887
25888 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
25889
25890 PR target/90024
25891 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
25892 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
25893 into three.
25894 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
25895 differences directly.
25896 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
25897
25898 2019-04-09 Jakub Jelinek <jakub@redhat.com>
25899
25900 PR translation/90011
25901 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
25902 from diagnostics.
25903 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
25904 diagnostics.
25905 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
25906 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
25907 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
25908 trailing space from -gsplit-dwarf diagnostics.
25909
25910 PR tree-optimization/89998
25911 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
25912 instead of integer_type_node if possible, don't add ranges if return
25913 type is not compatible with int.
25914 * gimple-fold.c (gimple_fold_builtin_sprintf,
25915 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
25916 integer_type_node.
25917
25918 2019-04-09 Martin Liska <mliska@suse.cz>
25919
25920 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
25921 * doc/install.texi: Document the new config.
25922
25923 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
25924
25925 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
25926 use gimple_expr_type for load and store calls. Skip over the
25927 condition argument in a conditional internal function.
25928 Protect use of TREE_INT_CST_LOW.
25929
25930 2019-04-09 Jakub Jelinek <jakub@redhat.com>
25931
25932 PR target/90015
25933 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
25934 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
25935 trailing period from it too.
25936
25937 2019-04-08 wu yuan <wuyuan5@huawei.com>
25938
25939 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
25940 * config/aarch64/aarch64.md: Add "tsv110.md".
25941 * config/aarch64/tsv110.md: New file.
25942
25943 2019-04-08 Richard Biener <rguenther@suse.de>
25944
25945 PR tree-optimization/90006
25946 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
25947 calls like lrint.
25948
25949 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
25950
25951 PR target/83033
25952 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
25953 construction.
25954 (fma_root_node): Likewise.
25955 (func_fma_steering): Likewise.
25956
25957 2019-04-08 Jakub Jelinek <jakub@redhat.com>
25958
25959 PR rtl-optimization/89865
25960 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
25961
25962 PR rtl-optimization/89865
25963 * config/i386/i386.md
25964 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
25965 numbers not to clash with the additional operands[4].
25966 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
25967 with extra register copy in the middle.
25968
25969 2019-04-08 Martin Liska <mliska@suse.cz>
25970
25971 PR gcov-profile/89961
25972 * doc/gcov.texi: Document data_file.
25973 * gcov.c (generate_results): Add data_info into JSON output.
25974
25975 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
25976
25977 PR tree-optimization/89725
25978 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
25979 loop's chrec as invariant symbol.
25980 * tree-chrec.h (chrec_contains_symbols): New parameter.
25981 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
25982 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
25983 function of loops not in DDR's loop_nest.
25984 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
25985
25986 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
25987
25988 PR target/89623
25989 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
25990 Mask.
25991
25992 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
25993
25994 PR target/89945
25995 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
25996 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
25997
25998 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
25999
26000 * sched-deps.c (sched_macro_fuse_insns): Check return value of
26001 targetm.fixed_condition_code_regs.
26002
26003 2019-04-05 Richard Biener <rguenther@suse.de>
26004
26005 PR debug/89892
26006 PR debug/89905
26007 * tree-cfgcleanup.c (remove_forwarder_block): Always move
26008 debug bind stmts but reset them if they are not valid at the
26009 destination.
26010
26011 2019-04-05 Martin Liska <mliska@suse.cz>
26012
26013 PR translation/89936
26014 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
26015 order to wrap keywords or arguments.
26016 * collect2.c (main): Likewise.
26017 (scan_prog_file): Likewise.
26018 (scan_libraries): Likewise.
26019 * common/config/riscv/riscv-common.c
26020 (riscv_subset_list::parsing_subset_version): Likewise.
26021 (riscv_subset_list::parse_std_ext): Likewise.
26022 * config/aarch64/aarch64.c (aarch64_override_options_internal):
26023 Likewise.
26024 * config/arm/arm.c (arm_option_override): Likewise.
26025 * config/cris/cris.c (cris_print_operand): Likewise.
26026 * config/darwin-c.c (darwin_pragma_options): Likewise.
26027 (darwin_pragma_unused): Likewise.
26028 (darwin_pragma_ms_struct): Likewise.
26029 * config/ft32/ft32.c (ft32_print_operand): Likewise.
26030 * config/i386/i386.c (print_reg): Likewise.
26031 (ix86_print_operand): Likewise.
26032 * config/i386/xm-djgpp.h: Likewise.
26033 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
26034 * config/m32c/m32c.c (m32c_option_override): Likewise.
26035 * config/msp430/msp430.c (msp430_option_override): Likewise.
26036 * config/nds32/nds32.c (nds32_option_override): Likewise.
26037 * config/nvptx/mkoffload.c (main): Likewise.
26038 * config/rx/rx.c (rx_print_operand): Likewise.
26039 (valid_psw_flag): Likewise.
26040 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
26041 (vms_pragma_nomember_alignment): Likewise.
26042 (vms_pragma_extern_model): Likewise.
26043 * lto-wrapper.c (compile_offload_image): Likewise.
26044 * omp-offload.c (oacc_parse_default_dims): Likewise.
26045 * symtab.c (symtab_node::verify_base): Likewise.
26046 * tlink.c (recompile_files): Likewise.
26047 (start_tweaking): Likewise.
26048 * tree-profile.c (parse_profile_filter): Likewise.
26049
26050 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
26051
26052 PR tree-optimization/89956
26053 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
26054 multiple negates of the same value.
26055
26056 2019-04-04 Martin Sebor <msebor@redhat.com>
26057
26058 PR middle-end/89957
26059 PR middle-end/89911
26060 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
26061 have the same precision since the function crashes otherwise.
26062 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
26063 has non-zero arguments.
26064
26065 2019-04-04 Martin Sebor <msebor@redhat.com>
26066
26067 PR middle-end/89934
26068 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
26069 out if the number of arguments is less than expected.
26070
26071 2019-04-04 Jeff Law <law@redhat.com>
26072
26073 PR rtl-optimization/89399
26074 * ree.c (combine_set_extension): Use single_set rather than
26075 digging into PATTERN for items on the candidate list.
26076 (combine_reaching_defs): Likewise.
26077
26078 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
26079
26080 PR rtl-optimization/46590
26081 * loop-invariant.c (find_defs): Move df_remove_problem and
26082 df_process_deferred_rescans to move_invariants.
26083 Move df_live_add_problem and df_live_set_all_dirty calls
26084 to move_invariants.
26085 (move_invariants): Likewise.
26086 (move_loop_invariants): Likewise, making the df_live calls
26087 conditional on -O. Remove the problem again if we added it
26088 locally.
26089
26090 2019-04-03 qing zhao <qing.zhao@oracle.com>
26091
26092 PR tree-optimization/89730
26093 * ipa-inline.c (can_inline_edge_p): Delete the checking for
26094 -flive-patching=inline-only-static.
26095 (can_inline_edge_by_limits_p): Add the checking for
26096 -flive-patching=inline-only-static and grant always_inline
26097 even when -flive-patching=inline-only-static is specified.
26098
26099 2019-04-03 Jeff Law <law@redhat.com>
26100
26101 PR rtl-optimization/81025
26102 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
26103
26104 2019-04-03 Richard Biener <rguenther@suse.de>
26105
26106 PR tree-optimization/84101
26107 * tree-vect-stmts.c: Include explow.h for hard_function_value,
26108 regs.h for hard_regno_nregs.
26109 (cfun_returns): New helper.
26110 (vect_model_store_cost): When vectorizing a store to a decl
26111 we return and the function ABI returns in a multi-reg location
26112 account for the possible spilling that will happen.
26113
26114 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
26115
26116 * config/s390/s390.c (s390_legitimate_address_p): Reject long
26117 displacement addresses for vector mode operands.
26118
26119 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
26120
26121 * config/arc/arc.c (GMASK_LEN): Define.
26122 (arc_restore_callee_saves): Restore first blink when
26123 !optimize_size.
26124
26125 2019-04-03 Sudakshina Das <sudi.das@arm.com>
26126
26127 * doc/extend.texi: Add deprecated comment on sign-return-address
26128 function attribute and add mbranch-protection.
26129 * doc/invoke.texi: Add bti to the options for mbranch-protection.
26130
26131 2019-04-03 Richard Biener <rguenther@suse.de>
26132
26133 PR lto/89896
26134 * lto-wrapper.c (run_gcc): Avoid implicit rules making
26135 the all target phony.
26136
26137 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
26138
26139 PR target/89902
26140 PR target/89903
26141 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
26142 Return false for variable DImode shifts.
26143 (dimode_scalar_chain::compute_convert_gain): Do not handle
26144 register count operand in variable DImode shifts.
26145 (dimode_scalar_chain::make_vector_copies): Remove support to copy
26146 count argument of a variable shift instruction to a vector register.
26147 (dimode_scalar_chain::convert_reg): Remove support to convert
26148 count argument of a variable shift instruction.
26149
26150 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
26151
26152 PR rtl-optimization/84206
26153 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
26154 iterating over loop headers.
26155
26156 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
26157
26158 PR rtl-optimization/85876
26159 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
26160 beyond the original fence.
26161
26162 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
26163
26164 * config.gcc: Mark spu* targets as deprecated/obsolete.
26165
26166 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26167
26168 * config/s390/s390-builtin-types.def: New builtin function type
26169 definitions. Remove unused types.
26170 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
26171 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
26172 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
26173 overloaded builtins.
26174 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
26175 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
26176 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
26177 (vec_double, vec_signed, vec_unsigned): Define to use the new
26178 overloaded builtins.
26179 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
26180 Remove expanders.
26181
26182 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26183
26184 * config/s390/s390-builtin-types.def: New builtin function type
26185 definitions.
26186 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
26187 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
26188 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
26189 (s390_vstrszh, s390_vstrszf): New low-level builtins.
26190 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
26191 constant definitions.
26192 * config/s390/vecintrin.h (vec_search_string_cc)
26193 (vec_search_string_until_zero_cc): New builtin name definitions.
26194 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
26195 expanders.
26196 ("vec_vstrs<mode>"): New insn definition.
26197
26198 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26199
26200 * config/s390/s390-builtin-types.def: Add new builtin function
26201 types.
26202 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
26203 New overloaded builtins.
26204 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
26205 s390_vsrd.
26206 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
26207 (UNSPEC_VEC_SLDBYTE): ... this.
26208 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
26209 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
26210 definitions.
26211 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
26212 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
26213 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
26214
26215 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26216
26217 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
26218 New insn definition.
26219 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
26220 * config/s390/vector.md (V_HW_HSD): ... here.
26221
26222 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26223
26224 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
26225 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
26226 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
26227 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
26228 New insn definitions.
26229
26230 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26231
26232 * config/s390/s390-builtin-types.def: Add new builtin function type.
26233 * config/s390/s390-builtins.def: Add overloaded builtin
26234 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
26235 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
26236 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
26237 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
26238 ("eltswap<mode>"): New expander.
26239 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
26240 insn definitions.
26241
26242 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26243
26244 * config/s390/s390-builtin-types.def: Add new builtin function types.
26245 * config/s390/s390-builtins.def: Add overloaded builtin
26246 s390_vec_revb. Add low-level builtins for vlbr and vstbr
26247 instructions.
26248 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
26249 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
26250 ("bswap<mode>"): New expander.
26251 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
26252
26253 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26254
26255 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
26256 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
26257 vector builtin version number in __VEC__.
26258
26259 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26260
26261 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
26262 iterators.
26263 (SFSI): New mode attribute.
26264 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
26265 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
26266 rename to ...
26267 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
26268 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
26269 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
26270 ("floatsi<mode>2"): Add wcefb instruction.
26271
26272 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26273
26274 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
26275 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
26276 mode iterators.
26277 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
26278 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
26279 support 32 bit fp-int conversions. Rename to ...
26280 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
26281 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
26282 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
26283 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
26284 ... to these.
26285
26286 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26287
26288 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
26289 if-then-else constructs if we can use the select instruction.
26290 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
26291
26292 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26293
26294 * config/s390/s390.md ("*popcountdi_arch13_cc")
26295 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
26296 definition.
26297 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
26298 Append _z196 to make it ...
26299 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
26300 ("popcounthi2_z196"): ... this.
26301 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
26302 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
26303
26304 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26305
26306 * config/s390/s390.c (s390_canonicalize_comparison): Convert
26307 certain compares for arch13 in order to make use of the condition
26308 code result produced by the new instructions.
26309 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
26310 nxrk, and nxgrk instruction patterns.
26311 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
26312 (inv_no): Add new code iterator together with some attributes.
26313 ("*andc_split_<mode>"): Disable splitter for arch13.
26314 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
26315 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
26316 ("*<ANDOR:bitops_name>c<GPR:mode>")
26317 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
26318 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
26319 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
26320 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
26321
26322 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26323
26324 * common/config/s390/s390-common.c (processor_flags_table): New
26325 entry for arch13.
26326 * config.gcc: Support arch13 with the --with-arch= configure flag.
26327 * config/s390/driver-native.c (s390_host_detect_local_cpu):
26328 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
26329 * config/s390/s390.c (s390_get_sched_attrmask)
26330 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
26331 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
26332 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
26333 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
26334 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
26335 definitions.
26336 * config/s390/s390.opt: Support arch13 as processor type in
26337 command line options.
26338
26339 2019-04-02 Martin Liska <mliska@suse.cz>
26340
26341 PR translation/89912
26342 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
26343 Fix param description of graphite-max-arrays-per-scop.
26344
26345 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
26346
26347 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
26348 (ASAN_CC1_SPEC): Use it in 64-bit mode.
26349 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
26350
26351 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
26352
26353 PR rtl-optimization/85412
26354 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
26355 sel_sched_region_1, not after.
26356
26357 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
26358
26359 PR rtl-optimization/86928
26360 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
26361 compute_live if necessary.
26362 (sel_redirect_edge_and_branch): Likewise.
26363
26364 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
26365
26366 PR rtl-optimization/89865
26367 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
26368 register if it is a part of small class.
26369
26370 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
26371
26372 PR rtl-optimization/87273
26373 * sel-sched-ir.c (merge_fences): Remove assert.
26374
26375 2019-04-01 Richard Biener <rguenther@suse.de>
26376
26377 PR tree-optimization/46590
26378 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
26379 (dom_walker::m_reachability): Add in place of...
26380 (dom_walker::m_skip_unreachable_blocks): ...this.
26381 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
26382 Move complex initialization ...
26383 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
26384 lazily and initialize edge flags on each invocation.
26385 (dom_walker::bb_reachable): Use m_reachability.
26386
26387 2019-04-01 Martin Liska <mliska@suse.cz>
26388
26389 PR driver/89861
26390 * opt-suggestions.c (option_proposer::build_option_suggestions):
26391 Add variant without any argument in order to provide better
26392 hints.
26393
26394 2019-04-01 Richard Biener <rguenther@suse.de>
26395
26396 PR c/71598
26397 * gimple.c: Include langhooks.h.
26398 (gimple_get_alias_set): Treat enumeral types as the underlying
26399 integer type.
26400
26401 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
26402 Eric Botcazou <ebotcazou@adacore.com>
26403
26404 PR rtl-optimization/89862
26405 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
26406 that operates on the full registers for WORD_REGISTER_OPERATIONS
26407 architectures.
26408
26409 2019-03-29 Jim Wilson <jimw@sifive.com>
26410
26411 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
26412 Clear MASK_RVC and then set if C subset supported.
26413
26414 2019-03-29 Jakub Jelinek <jakub@redhat.com>
26415
26416 PR c/89872
26417 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
26418 non-addressable complit into its initializer if it is volatile.
26419
26420 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
26421
26422 * opts-common.c (integral_argument): Set errno properly in one case.
26423
26424 2019-03-29 Martin Liska <mliska@suse.cz>
26425
26426 * doc/invoke.texi: Remove -Wchkp from documentation.
26427
26428 2019-03-29 Martin Liska <mliska@suse.cz>
26429
26430 * dbgcnt.c (print_limit_reach): New function.
26431 (dbg_cnt): Use it.
26432
26433 2019-03-29 Martin Liska <mliska@suse.cz>
26434
26435 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
26436 (dbg_cnt_process_opt): Parse first tokens aas
26437 dbg_cnt_process_single_pair is also using strtok.
26438
26439 2019-03-29 Jakub Jelinek <jakub@redhat.com>
26440
26441 PR rtl-optimization/87485
26442 * function.c (expand_function_end): Move stack_protect_epilogue
26443 before loading of return value into hard register(s).
26444
26445 2019-03-28 Jakub Jelinek <jakub@redhat.com>
26446
26447 PR middle-end/89621
26448 * tree-inline.h (struct copy_body_data): Add
26449 dont_remap_vla_if_no_change flag.
26450 * tree-inline.c (remap_type_3, remap_type_2): New functions.
26451 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
26452 and remap_type_2 returns false.
26453 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
26454 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
26455 only from where it is copied to nested contexts.
26456
26457 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
26458
26459 PR target/89865
26460 * config/i386/i386.md (RMW operation with LEA peephole):
26461 Use LEAMODE mode attribute instead of SWI mode iterator for
26462 LEA pattern.
26463
26464 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
26465
26466 PR target/89848
26467 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
26468 Also process XEXP (src, 0) of a shift insn.
26469
26470 2019-03-28 David Malcolm <dmalcolm@redhat.com>
26471
26472 PR middle-end/89725
26473 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
26474 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
26475
26476 2019-03-28 Jakub Jelinek <jakub@redhat.com>
26477
26478 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
26479 test.
26480 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
26481 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
26482 immediately after first one with df_analyze in between, but rather
26483 process all bbs, queueing ones that need second pass in a worklist,
26484 df_analyze, process queued debug insn changes and if second pass is
26485 needed, process bbs from worklist, df_analyze, process queued debug
26486 insns again.
26487
26488 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
26489 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
26490 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
26491
26492 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
26493
26494 PR c/79022
26495 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
26496 definition.
26497
26498 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
26499
26500 PR target/85667
26501 * config/i386/i386.c (ix86_function_value_1): Call the newly added
26502 function for 32-bit MS_ABI.
26503 (function_value_ms_32): New function.
26504
26505 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
26506
26507 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
26508 (movdi): Call gen_movdi_symbol_save_scc.
26509 (gen_movdi_symbol_save_scc): New insn and split.
26510
26511 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
26512
26513 PR rtl-optimization/89313
26514 * function.c (matching_constraint_num): New static function.
26515 (match_asm_constraints_1): Use it. Fixup white space and comment.
26516 Don't replace inputs with non-matching constraints which conflict
26517 with early clobber outputs.
26518
26519 2019-03-27 Jeff Law <law@redhat.com>
26520
26521 PR rtl-optimization/87761
26522 PR rtl-optimization/89826
26523 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
26524 slightly later.
26525 (pass_cprop_hardreg::execute): Call df_analyze after adding the
26526 note problem to get REG_DEAD/REG_UNUSED notes updated.
26527
26528 2019-03-27 Richard Biener <rguenther@suse.de>
26529
26530 PR tree-optimization/89463
26531 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
26532 queue edges to remove.
26533 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
26534 dead stmts. Delay edge removal until PHIs are removed to
26535 make debug-stmt creation not confused by seemingly degenerate
26536 PHIs.
26537
26538 2019-03-27 Alan Modra <amodra@gmail.com>
26539
26540 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
26541 throughout file.
26542 * config/rs6000/darwin.h: Likewise.
26543 * config/rs6000/rs6000.c: Likewise.
26544
26545 2019-03-27 Alan Modra <amodra@gmail.com>
26546
26547 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
26548 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
26549
26550 2019-03-26 Andrew Waterman <andrew@sifive.com>
26551 Jim Wilson <jimw@sifive.com>
26552
26553 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
26554 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
26555 (generic_idivdi, generic_fmul_single, generic_fmul_double)
26556 (generic_fdiv, generic_fsqrt): Add check for generic tune.
26557 (generic_alu): Add auipc to type list.
26558 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
26559 (riscv_microarchitecture): Declare.
26560 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
26561 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
26562 field.
26563 (riscv_microarchitecture): New.
26564 (sifive_7_tune_info): New.
26565 (riscv_cpu_info_table): Add microarchitecture value for rocket and
26566 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
26567 entries.
26568 (riscv_store_data_bypass_p): New.
26569 (riscv_option_override): Set riscv_microarchitecture from
26570 cpu->microarchitecture.
26571 * config/riscv/riscv.md: Include sifive-7.md.
26572 (type): Add auipc.
26573 (tune): New.
26574 (auipc<mode>): Change type to auipc.
26575 (restore_stack_nonlocal): New.
26576 * config/riscv/sifive-7.md: New.
26577 * doc/invoke.texi (RISC-V Options): Update mtune docs.
26578
26579 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
26580
26581 PR target/89827
26582 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
26583 Also process XEXP (src, 0) of a shift insn.
26584
26585 2019-03-26 Richard Biener <rguenther@suse.de>
26586
26587 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
26588 (copy_debug_stmt): Likewise.
26589 (expand_call_inline): Likewise.
26590 (copy_bb): Avoid redundant lookup & set of gimple_block.
26591 * gimple-low.c (lower_gimple_return): Likewise.
26592 (lower_builtin_setjmp): Likewise.
26593
26594 2019-03-26 Jakub Jelinek <jakub@redhat.com>
26595
26596 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
26597 is constant 0, turn into static const data member initialized to false.
26598 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
26599 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
26600
26601 2019-03-26 Jason Merrill <jason@redhat.com>
26602 Jakub Jelinek <jakub@redhat.com>
26603
26604 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
26605 method.
26606 (mem_alloc_description::release_object_overhead): Fix comment typos.
26607 * hash-table.h (hash_table::~hash_table): Call
26608 release_instance_overhead only if m_entries is non-NULL, otherwise
26609 call unregister_descriptor.
26610
26611 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
26612
26613 PR tree-optimization/81740
26614 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
26615 In case of outer loop vectorization, check for backward dependence
26616 at the inner loop if outer loop dependence is reversed.
26617
26618 2019-03-26 Alan Modra <amodra@gmail.com>
26619
26620 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
26621 rs6000_vector_mem init. Correct wI and wJ comment.
26622
26623 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
26624
26625 PR rtl-optimization/88347
26626 PR rtl-optimization/88423
26627 * sched-deps.c (sched_analyze_insn): Take into account that for
26628 tablejumps the barrier appears after a label and a jump_table_data.
26629
26630 2019-03-25 Martin Sebor <msebor@redhat.com>
26631
26632 PR c/89812
26633 * c-common.c (check_user_alignment): Rename local. Correct maximum
26634 alignment in diagnostic. Avoid assuming argument fits in SHWI,
26635 convert it to UHWI when it fits.
26636
26637 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
26638
26639 PR debug/86964
26640 * dwarf2out.c (premark_used_variables): New function.
26641 (prune_unused_types_walk): Do not mark not premarked external
26642 variables.
26643 (prune_unused_types): Call premark_used_variables.
26644
26645 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
26646
26647 PR rtl-optimization/89676
26648 * lra-constraints.c (curr_insn_transform): Do match reload for
26649 early clobbers when the match was successful only for different
26650 registers.
26651
26652 2019-03-25 Martin Sebor <msebor@redhat.com>
26653
26654 * doc/extend.texi (Common Type Attributes): Document vector_size.
26655 (Common Variable Attributes): Mention size constraint. Correct
26656 quoting and typos.
26657 (Vector Extensions): Use @dfn when defining bas type. Clarify
26658 base type and size constraints.
26659
26660 2019-03-25 Richard Biener <rguenther@suse.de>
26661
26662 PR tree-optimization/89789
26663 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
26664 changes from non-undefined back to undefined.
26665
26666 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
26667
26668 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
26669 heap string and a gc string, but since this variable is unknown to
26670 ggc the gc string might get reused and corrupted. Fixed by always
26671 using a heap string.
26672
26673 2019-03-25 Richard Biener <rguenther@suse.de>
26674
26675 PR tree-optimization/89779
26676 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
26677 to remove IV defs, delay actual removal.
26678 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
26679 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
26680 very end, properly also reset loop control IV information.
26681
26682 2019-03-25 Richard Biener <rguenther@suse.de>
26683
26684 PR tree-optimization/89802
26685 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
26686 move EH data to folded stmt.
26687
26688 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
26689
26690 * config/s390/s390-builtin-types.def: Remove few unused types and
26691 fix sort order for others.
26692
26693 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
26694
26695 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
26696 expected and found types with -mdebug during builtin matching.
26697
26698 2019-03-25 Richard Biener <rguenther@suse.de>
26699
26700 PR middle-end/89790
26701 * fold-const.c (operand_equal_p): Revert last change with
26702 updated comment.
26703
26704 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
26705
26706 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
26707 notes for the result of the __tls_get_addr calls.
26708 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
26709
26710 2019-03-24 Jeff Law <law@redhat.com>
26711
26712 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
26713
26714 PR rtl-optimization/87761
26715 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
26716 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
26717 as needed.
26718 (pass_cprop_hardreg::execute): Add df note problem and defer insn
26719 rescans. Reprocess blocks as needed, calling df_analyze before
26720 reprocessing. Always call df_analyze before fixing up debug bind
26721 insns.
26722
26723 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
26724
26725 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
26726 big endian.
26727
26728 2019-03-22 Andrew Pinski <apinski@marvell.com>
26729
26730 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
26731 attrribute for uxtw.
26732
26733 2019-03-26 Jeff Law <law@redhat.com>
26734
26735 PR rtl-optimization/87761
26736 * config/mips/mips-protos.h (mips_split_move): Add new argument.
26737 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
26738 (mips_split_move): Accept new INSN argument. Try to forward SRC
26739 into the next instruction.
26740 (mips_split_move_insn): Pass INSN through to mips_split_move.
26741
26742 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
26743
26744 PR rtl-optimization/89676
26745 * lra-constraints.c (curr_insn_transform): Do match reload for
26746 early clobbers even if the match was successful.
26747
26748 2019-03-22 Jakub Jelinek <jakub@redhat.com>
26749
26750 PR c++/87481
26751 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
26752
26753 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
26754
26755 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
26756
26757 2019-03-22 Jakub Jelinek <jakub@redhat.com>
26758
26759 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
26760 <avx512>_fmsub_<mode>_mask3<round_name>,
26761 <avx512>_fnmadd_<mode>_mask3<round_name>,
26762 <avx512>_fnmsub_<mode>_mask3<round_name>,
26763 avx512f_vmfmadd_<mode>_mask3<round_name>,
26764 avx512f_vmfmsub_<mode>_mask3<round_name>,
26765 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
26766 instead of register_operand and %v instead of v for match_operand 1.
26767 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
26768 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
26769 <round_nimm_predicate> instead of register_operand and %v instead of v
26770 for match_operand 1.
26771
26772 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
26773 <avx512>_fmadd_<mode>_mask3<round_name>,
26774 <avx512>_fmsub_<mode>_mask<round_name>,
26775 <avx512>_fmsub_<mode>_mask3<round_name>,
26776 <avx512>_fnmadd_<mode>_mask<round_name>,
26777 <avx512>_fnmadd_<mode>_mask3<round_name>,
26778 <avx512>_fnmsub_<mode>_mask<round_name>,
26779 <avx512>_fnmsub_<mode>_mask3<round_name>,
26780 <avx512>_fmaddsub_<mode>_mask<round_name>,
26781 <avx512>_fmaddsub_<mode>_mask3<round_name>,
26782 <avx512>_fmsubadd_<mode>_mask<round_name>,
26783 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
26784 <round_nimm_predicate> instead of nonimmediate_operand.
26785 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
26786 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
26787 Use register_operand instead of <round_nimm_predicate> for the
26788 operand that needs to match output.
26789 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
26790 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
26791 Likewise. Formatting fixes.
26792
26793 PR target/89784
26794 * config/i386/i386.c (enum ix86_builtins): Remove
26795 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
26796 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
26797 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
26798 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
26799 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
26800 __builtin_ia32_vfmsubss3_mask3): New builtins.
26801 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
26802 avx512f_vmfmadd_<mode>_mask3<round_name>,
26803 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
26804 *avx512f_vmfmsub_<mode>_mask<round_name>,
26805 avx512f_vmfmsub_<mode>_mask3<round_name>,
26806 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
26807 *avx512f_vmfnmadd_<mode>_mask<round_name>,
26808 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
26809 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
26810 *avx512f_vmfnmsub_<mode>_mask<round_name>,
26811 avx512f_vmfnmsub_<mode>_mask3<round_name>,
26812 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
26813 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
26814 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
26815 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
26816 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
26817 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
26818 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
26819 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
26820 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
26821 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
26822 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
26823 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
26824 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
26825 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
26826 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
26827 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
26828 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
26829 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
26830 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
26831 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
26832 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
26833 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
26834
26835 2019-03-21 Martin Sebor <msebor@redhat.com>
26836
26837 PR tree-optimization/89350
26838 * builtins.c (compute_objsize): Also ignore offsets whose upper
26839 bound is negative.
26840 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
26841 (builtin_memref::builtin_memref): Initialize new member.
26842 Allow EXPR to be null.
26843 (builtin_memref::extend_offset_range): Replace local with a member.
26844 Avoid assuming pointer offsets are unsigned.
26845 (builtin_memref::set_base_and_offset): Determine base object
26846 before computing offset range.
26847 (builtin_access::builtin_access): Handle memset.
26848 (builtin_access::generic_overlap): Replace local with a member.
26849 (builtin_access::strcat_overlap): Same.
26850 (builtin_access::overlap): Same.
26851 (maybe_diag_overlap): Same.
26852 (maybe_diag_access_bounds): Same.
26853 (wrestrict_dom_walker::check_call): Handle memset.
26854 (check_bounds_or_overlap): Same.
26855
26856 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
26857 Jakub Jelinek <jakub@redhat.com>
26858
26859 PR lto/89692
26860 * tree.c (fld_type_variant, fld_incomplete_type_of,
26861 fld_process_array_type): Call fld->pset.add and don't call
26862 add_tree_to_fld_list if it returns true.
26863 (free_lang_data_in_type): Similarly with self-recursive call. Purge
26864 non-marked types from TYPE_NEXT_VARIANT list.
26865 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
26866
26867 2019-03-21 Jakub Jelinek <jakub@redhat.com>
26868
26869 * hash-table.h (hash_table): Add Lazy template parameter defaulted
26870 to false, if true, don't alloc_entries during construction, but defer
26871 it to the first method that needs m_entries allocated.
26872 (hash_table::hash_table, hash_table::~hash_table,
26873 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
26874 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
26875 hash_table::clear_slot, hash_table::traverse_noresize,
26876 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
26877 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
26878 false.
26879 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
26880 NO_INSERT instead of find_with_hash.
26881 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
26882 hash_set::m_table): Add Lazy to template params of hash_table.
26883 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
26884 * attribs.c (test_attribute_exclusions): Likewise.
26885 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
26886 hash_set. Add tests for hash_set with Lazy = true.
26887
26888 2019-03-21 Richard Biener <rguenther@suse.de>
26889
26890 PR tree-optimization/89779
26891 * tree.c (tree_nop_conversion): Consolidate and fix defensive
26892 checks with respect to released SSA names now having error_mark_node
26893 type.
26894 * fold-const.c (operand_equal_p): Likewise.
26895
26896 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
26897
26898 PR target/89775
26899 * config/s390/s390.c (global_not_special_regno_p): Move to make it
26900 available to ...
26901 (s390_optimize_register_info): Use global_not_special_regno_p to
26902 check for global regs.
26903
26904 2019-03-20 Jakub Jelinek <jakub@redhat.com>
26905
26906 PR target/89752
26907 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
26908 update this_alternative nor this_alternative_set.
26909
26910 2019-03-19 Jim Wilson <jimw@sifive.com>
26911
26912 PR target/89411
26913 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
26914 align, size, offset. Use them to handle a BLKmode reference. Update
26915 comment.
26916 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
26917
26918 2019-03-19 Jakub Jelinek <jakub@redhat.com>
26919
26920 PR rtl-optimization/89768
26921 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
26922 instead of GEN_INT.
26923 (unroll_loop_runtime_iterations): Likewise.
26924
26925 2019-03-19 Martin Sebor <msebor@redhat.com>
26926
26927 PR tree-optimization/89644
26928 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
26929 rather than endptr as an indicator of nul-termination.
26930
26931 PR tree-optimization/89644
26932 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
26933 arrays in determining sequence sizes in strncpy and stpncpy.
26934
26935 2019-03-19 Martin Liska <mliska@suse.cz>
26936
26937 PR middle-end/89737
26938 * predict.c (combine_predictions_for_bb): Empty likely_edges and
26939 unlikely_edges if there's an edge that belongs to both these sets.
26940
26941 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
26942
26943 PR target/89746
26944 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
26945 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
26946 go via a stack temporary.
26947
26948 2019-03-19 Jakub Jelinek <jakub@redhat.com>
26949
26950 PR target/89378
26951 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
26952 instead of gen_rtx_SUBREG.
26953 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
26954
26955 2019-03-19 Richard Biener <rguenther@suse.de>
26956
26957 PR debug/88389
26958 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
26959
26960 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
26961
26962 PR lto/87809
26963 PR lto/89335
26964 * tree.c (free_lang_data_in_decl): Do not free context of C++
26965 destrutors.
26966
26967 2019-03-19 Jakub Jelinek <jakub@redhat.com>
26968
26969 PR target/89506
26970 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
26971 subs for the first alternative except when operands[3] is 1.
26972
26973 PR target/89752
26974 * gimplify.c (gimplify_asm_expr): For output argument with
26975 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
26976 diagnose error.
26977
26978 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
26979
26980 PR rtl-optimization/89753
26981 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
26982 explicit unrolling factor even more robust.
26983
26984 2019-03-19 Jakub Jelinek <jakub@redhat.com>
26985
26986 PR target/89726
26987 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
26988 compensation use x2 += 1 instead of x2 -= -1 and when honoring
26989 signed zeros, do another copysign after the compensation.
26990
26991 2019-03-18 Martin Sebor <msebor@redhat.com>
26992
26993 PR tree-optimization/89720
26994 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
26995 more conservatively, the same as anti-range.
26996
26997 2019-03-18 Richard Biener <rguenther@suse.de>
26998
26999 PR middle-end/88945
27000 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
27001 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
27002 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
27003 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
27004
27005 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
27006
27007 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
27008 Extend queue to 1024 entries.
27009 Add "consumed" field.
27010 (gomp_print_output): Remove print_index parameter.
27011 Add final parameter.
27012 Change limit to unsigned.
27013 Use consumed field to implement circular buffer.
27014 Detect interrupted print in final pass.
27015 Flush output at the end.
27016 (run): Update gomp_print_output usage.
27017 (main): Initialize kernargs->output_data.consumed.
27018
27019 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
27020
27021 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
27022 calculation of the minimum number of scalar iterations for
27023 fully-predicated loops.
27024
27025 2019-03-18 Martin Jambor <mjambor@suse.cz>
27026
27027 PR tree-optimization/89546
27028 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
27029 any propagation to its children took place.
27030
27031 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
27032
27033 PR target/89627
27034 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
27035 parameter, and make use of it.
27036 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
27037
27038 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27039
27040 * config/arc/arc.opt (mcode-density-frame): Get the inital value
27041 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
27042 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
27043 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
27044 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
27045 match what the ops is doing.
27046 (push_multi_fp_blink): Likewise.
27047 * config/arc/arc.c (arc_override_options): Enable enter/leave when
27048 compiling for size and elf target.
27049 (arc_save_callee_enter): Adjust note to match what enter/leave
27050 operation does.
27051
27052 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27053
27054 * config/arc/arc.md (tst_movb): Fix constraint.
27055
27056 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27057
27058 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
27059
27060 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27061
27062 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
27063 * config/arc/arc.c (arc_conditional_register_usage): Remove all
27064 reg_alloc_order references.
27065 (size_alloc_order): Define.
27066 (arc_adjust_reg_alloc_order): New function.
27067 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
27068 order.
27069 (ADJUST_REG_ALLOC_ORDER): Define.
27070 (HONOR_REG_ALLOC_ORDER): Likewise.
27071
27072 2019-03-18 Richard Biener <rguenther@suse.de>
27073
27074 PR target/87561
27075 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
27076 loads and stores a bit more.
27077
27078 2019-03-18 Richard Biener <rguenther@suse.de>
27079
27080 PR target/87561
27081 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
27082 load pessimization to stores as well.
27083
27084 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
27085
27086 PR middle-end/86979
27087 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
27088 successor, use NULL as its av set.
27089
27090 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
27091
27092 PR rtl-optimization/89721
27093 * lra-constraints (invariant_p): Return false if side_effects_p holds.
27094
27095 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
27096
27097 PR target/87532
27098 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27099 When handling vec_extract, use modular arithmetic to allow
27100 constant selectors greater than vector length.
27101 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
27102 V1TImode vectors to have constant selector values greater than 0.
27103 Use modular arithmetic to compute vector index.
27104 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
27105 index for in-memory vectors. Correct code generation for
27106 in-register vectors.
27107 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
27108 compute index.
27109
27110 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
27111
27112 PR c++/88534
27113 PR c++/88537
27114 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
27115 VAR_DECL args.
27116
27117 2019-03-15 Jakub Jelinek <jakub@redhat.com>
27118
27119 PR c++/89709
27120 * tree.c (inchash::add_expr): Strip any location wrappers.
27121 * fold-const.c (operand_equal_p): Move stripping of location wrapper
27122 after hash verification.
27123
27124 PR debug/89704
27125 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
27126 SIGN_EXTEND and ZERO_EXTEND.
27127
27128 2019-03-14 Jason Merrill <jason@redhat.com>
27129 Jakub Jelinek <jakub@redhat.com>
27130
27131 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
27132 than if is_empty (*slot).
27133 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
27134 existing elt and for elt removal.
27135 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
27136 of already removed elt.
27137
27138 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
27139
27140 PR target/89650
27141 * config/i386/i386.c (remove_partial_avx_dependency): Handle
27142 REG_EH_REGION note.
27143
27144 2019-03-14 Martin Liska <mliska@suse.cz>
27145
27146 PR other/89712
27147 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
27148
27149 2019-03-14 Richard Biener <rguenther@suse.de>
27150
27151 PR target/89711
27152 * config/i386/i386.c (make_resolver_func): Properly set
27153 DECL_CONTEXT on the RESULT_DECL.
27154 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
27155
27156 2019-03-14 Richard Biener <rguenther@suse.de>
27157
27158 * gimple-pretty-print.c: Include cfgloop.h.
27159 (dump_gimple_phi): Adjust.
27160 (dump_gimple_bb_header): Dump loop header for GIMPLE.
27161 (pp_cfg_jump): Adjust.
27162 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
27163 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
27164 (lower_phi_internal_fn): Remove.
27165 (verify_gimple_call): Remove IFN_PHI special-casing.
27166 (dump_function_to_file): Dump IL state.
27167 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
27168 done to deal with PHI nodes being present in non-SSA state.
27169
27170 2019-03-14 Jakub Jelinek <jakub@redhat.com>
27171
27172 PR ipa/89684
27173 * multiple_target.c (create_dispatcher_calls): Change
27174 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
27175 In the node->iterate_referring loop, push *ref rather than ref, call
27176 ref->remove_reference () and always pass 0 to iterate_referring.
27177
27178 PR rtl-optimization/89679
27179 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
27180 would contain a paradoxical SUBREG.
27181
27182 2019-03-14 Richard Biener <rguenther@suse.de>
27183
27184 PR tree-optimization/89710
27185 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
27186 safe_dyn_cast.
27187
27188 2019-03-14 Martin Liska <mliska@suse.cz>
27189
27190 * coverage.c (coverage_begin_function): Stream also
27191 end_column.
27192 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
27193 documentation about function declaration location.
27194 * gcov-dump.c (tag_function): Print whole range
27195 of function declaration.
27196 * gcov.c (struct function_info): Add end_column field.
27197 (function_info::function_info): Initialize it.
27198 (output_json_intermediate_file): Output {start,end}_column
27199 fields.
27200 (read_graph_file): Read end_column.
27201
27202 2019-03-14 Richard Biener <rguenther@suse.de>
27203
27204 PR middle-end/89698
27205 * fold-const.c (operand_equal_p): For INDIRECT_REF check
27206 that the access types are similar.
27207
27208 2019-03-14 Jakub Jelinek <jakub@redhat.com>
27209
27210 PR tree-optimization/89703
27211 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
27212 aren't compatible also with builtin_decl_explicit. Check pure
27213 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
27214 and BUILT_IN_STPNCPY{,_CHK}.
27215
27216 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
27217
27218 PR target/89523
27219 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
27220 addr32 prefix to VSIB address for X32.
27221 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
27222 "%M2" to opcode.
27223 (*avx512pf_gatherpf<mode>df_mask): Likewise.
27224 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
27225 (*avx512pf_scatterpf<mode>df_mask): Likewise.
27226 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
27227 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
27228 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
27229 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
27230 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
27231 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
27232 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
27233 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
27234 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
27235 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
27236 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
27237 (*avx512f_scatterdi<mode>): Likewise.
27238
27239 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
27240
27241 PR target/85860
27242 * lra-constraints.c (inherit_in_ebb): Update
27243 potential_reload_hard_regs along with live_hard_regs.
27244
27245 2019-03-13 Jakub Jelinek <jakub@redhat.com>
27246
27247 PR debug/89498
27248 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
27249 DWARF_OFFSET_SIZE.
27250 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
27251
27252 2019-03-13 Martin Sebor <msebor@redhat.com>
27253
27254 PR tree-optimization/89662
27255 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
27256 has a size.
27257
27258 2019-03-13 Richard Biener <rguenther@suse.de>
27259
27260 PR middle-end/89677
27261 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
27262 throw FP expressions at tree-affine.
27263
27264 2019-03-14 Richard Biener <rguenther@suse.de>
27265
27266 * tree-pretty-print.c (dump_generic_node): For -gimple properly
27267 dump negative integer constants using _Literal (type) -num.
27268
27269 2019-03-13 Jakub Jelinek <jakub@redhat.com>
27270
27271 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
27272 nonlocal_value member.
27273
27274 PR middle-end/88588
27275 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
27276 (ipa_simd_modify_function_body): Handle PHIs.
27277
27278 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27279
27280 * config/s390/s390.c (s390_option_override_internal): Use more
27281 aggressive inlining parameters.
27282
27283 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27284
27285 * config/s390/3906.md: New file.
27286 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
27287 (LONGRUNNING_THRESHOLD): Remove.
27288 (MAX_SCHED_MIX_SCORE): Decrease.
27289 (MAX_SCHED_MIX_DISTANCE): Decrease.
27290 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
27291 (struct s390_sched_state): New struct to hold scheduling state.
27292 (S390_SCHED_STATE_NORMAL): Remove.
27293 (S390_SCHED_STATE_CRACKED): Remove.
27294 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
27295 (s390_get_sched_attrmask): Use new attribute.
27296 (s390_get_unit_mask): Use new units.
27297 (s390_is_fpd): New function.
27298 (s390_is_fxd): New function.
27299 (s390_is_longrunning): New function.
27300 (s390_sched_score): Use new functions.
27301 (s390_sched_reorder): Likewise.
27302 (s390_sched_variable_issue): Rework and use new functions.
27303 (s390_sched_init): Use new functions.
27304 * config/s390/s390.h (s390_tune_attr): Add z14.
27305 * config/s390/s390.md: Add z14.
27306
27307 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27308
27309 * config/s390/2964.md: Update pipeline description.
27310 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
27311 (LONGRUNNING_THRESHOLD): Remove.
27312 (LATENCY_FACTOR): Remove.
27313 (s390_get_unit_mask): Add unit.
27314 (s390_sched_score): Use fxd/fpd.
27315 (s390_sched_variable_issue): Use fxd/fpd.
27316
27317 2019-03-12 Martin Liska <mliska@suse.cz>
27318
27319 * config/i386/i386.c: Reword an error message.
27320
27321 2019-03-12 Martin Jambor <mjambor@suse.cz>
27322
27323 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
27324 terminate with newline.
27325
27326 2019-03-12 Jakub Jelinek <jakub@redhat.com>
27327
27328 PR target/52726
27329 * config/s390/s390.md (tabort): Use %wd instead of
27330 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
27331 letters and periods.
27332 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
27333 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
27334 's with %< and %>.
27335
27336 PR middle-end/89663
27337 * builtins.c (expand_builtin_int_roundingfn,
27338 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
27339 gcc_unreachable if validate_arglist fails.
27340
27341 2019-03-12 Richard Biener <rguenther@suse.de>
27342
27343 PR tree-optimization/89664
27344 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
27345 free the occurance tree after the early out.
27346
27347 2019-03-11 Jakub Jelinek <jakub@redhat.com>
27348
27349 PR middle-end/89655
27350 PR bootstrap/89656
27351 * vr-values.c (vr_values::update_value_range): If
27352 old_vr->varying_p (), don't update it, make new_vr also VARYING
27353 and return false.
27354
27355 2019-03-11 Martin Liska <mliska@suse.cz>
27356
27357 * config/aarch64/aarch64.c (aarch64_override_options_internal):
27358 Fix double string quoting.
27359
27360 2019-03-11 Martin Liska <mliska@suse.cz>
27361
27362 * collect-utils.c (collect_wait): Wrap apostrophes
27363 in gcc internal format with %'.
27364 * collect2.c (main): Likewise.
27365 (scan_prog_file): Likewise.
27366 (scan_libraries): Likewise.
27367 * config/i386/i386.c (ix86_expand_call): Likewise.
27368 (ix86_handle_interrupt_attribute): Likewise.
27369 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
27370 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
27371 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
27372 * lto-wrapper.c (find_crtoffloadtable): Likewise.
27373 * symtab.c (symtab_node::verify_base): Likewise.
27374 * tree-cfg.c (verify_gimple_label): Likewise.
27375 * tree.c (verify_type_variant): Likewise.
27376
27377 2019-03-11 Martin Liska <mliska@suse.cz>
27378
27379 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
27380 in a string format message and fix GNU coding style.
27381 (expand_builtin_set_thread_pointer): Likewise.
27382 * common/config/aarch64/aarch64-common.c
27383 (aarch64_rewrite_selected_cpu): Likewise.
27384 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
27385 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
27386 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
27387 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
27388 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
27389 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
27390 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
27391 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
27392 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
27393 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
27394 Likewise.
27395 * common/config/riscv/riscv-common.c
27396 (riscv_subset_list::parsing_subset_version): Likewise.
27397 (riscv_subset_list::parse_std_ext): Likewise.
27398 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
27399 (riscv_subset_list::parse): Likewise.
27400 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
27401 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
27402 (aarch64_override_options_internal): Likewise.
27403 (aarch64_validate_mcpu): Likewise.
27404 (aarch64_validate_march): Likewise.
27405 (aarch64_validate_mtune): Likewise.
27406 (aarch64_override_options): Likewise.
27407 * config/alpha/alpha.c (alpha_option_override): Likewise.
27408 * config/arc/arc.c (arc_init): Likewise.
27409 (parse_mrgf_banked_regs_option): Likewise.
27410 (arc_override_options): Likewise.
27411 (arc_expand_builtin_aligned): Likewise.
27412 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
27413 (arm_expand_builtin): Likewise.
27414 * config/arm/arm.c (arm_option_check_internal): Likewise.
27415 (arm_configure_build_target): Likewise.
27416 (arm_option_override): Likewise.
27417 (arm_options_perform_arch_sanity_checks): Likewise.
27418 (arm_handle_cmse_nonsecure_entry): Likewise.
27419 (arm_handle_cmse_nonsecure_call): Likewise.
27420 (arm_tls_referenced_p): Likewise.
27421 (thumb1_expand_prologue): Likewise.
27422 * config/avr/avr.c (avr_option_override): Likewise.
27423 * config/bfin/bfin.c (bfin_option_override): Likewise.
27424 * config/c6x/c6x.c (c6x_option_override): Likewise.
27425 * config/cr16/cr16.c (cr16_override_options): Likewise.
27426 * config/cris/cris.c (cris_option_override): Likewise.
27427 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
27428 * config/darwin-c.c (macosx_version_as_macro): Likewise.
27429 * config/darwin.c (darwin_override_options): Likewise.
27430 * config/frv/frv.c (frv_expand_builtin): Likewise.
27431 * config/h8300/h8300.c (h8300_option_override): Likewise.
27432 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
27433 (ix86_option_override_internal): Likewise.
27434 (warn_once_call_ms2sysv_xlogues): Likewise.
27435 (ix86_expand_prologue): Likewise.
27436 (split_stack_prologue_scratch_regno): Likewise.
27437 (ix86_warn_parameter_passing_abi): Likewise.
27438 * config/ia64/ia64.c (fix_range): Likewise.
27439 * config/m68k/m68k.c (m68k_option_override): Likewise.
27440 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
27441 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
27442 (mips_set_compression_mode): Likewise.
27443 * config/mmix/mmix.c (mmix_option_override): Likewise.
27444 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
27445 * config/msp430/msp430.c (msp430_option_override): Likewise.
27446 * config/nds32/nds32.c (nds32_option_override): Likewise.
27447 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
27448 (nios2_option_override): Likewise.
27449 (nios2_expand_custom_builtin): Likewise.
27450 * config/nvptx/mkoffload.c (main): Likewise.
27451 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
27452 * config/pa/pa.c (fix_range): Likewise.
27453 (pa_option_override): Likewise.
27454 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
27455 (riscv_option_override): Likewise.
27456 * config/rl78/rl78.c (rl78_option_override): Likewise.
27457 * config/rs6000/aix61.h: Likewise.
27458 * config/rs6000/aix71.h: Likewise.
27459 * config/rs6000/aix72.h: Likewise.
27460 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
27461 * config/rs6000/freebsd64.h: Likewise.
27462 * config/rs6000/linux64.h: Likewise.
27463 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
27464 (rs6000_expand_zeroop_builtin): Likewise.
27465 (rs6000_expand_mtfsb_builtin): Likewise.
27466 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
27467 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
27468 (rs6000_invalid_builtin): Likewise.
27469 (rs6000_expand_split_stack_prologue): Likewise.
27470 * config/rs6000/rtems.h: Likewise.
27471 * config/rx/rx.c (valid_psw_flag): Likewise.
27472 (rx_expand_builtin): Likewise.
27473 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
27474 * config/s390/s390.c (s390_expand_builtin): Likewise.
27475 (s390_function_profiler): Likewise.
27476 (s390_option_override_internal): Likewise.
27477 (s390_option_override): Likewise.
27478 * config/sh/sh.c (sh_option_override): Likewise.
27479 (sh_builtin_saveregs): Likewise.
27480 (sh_fix_range): Likewise.
27481 * config/sh/vxworks.h: Likewise.
27482 * config/sparc/sparc.c (sparc_option_override): Likewise.
27483 * config/spu/spu.c (spu_option_override): Likewise.
27484 (fix_range): Likewise.
27485 * config/visium/visium.c (visium_option_override): Likewise.
27486 (visium_handle_interrupt_attr): Likewise.
27487 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
27488 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
27489 (dbg_cnt_process_opt): Likewise.
27490 * dwarf2out.c (output_dwarf_version): Likewise.
27491 * except.c (expand_eh_return): Likewise.
27492 * gcc.c (defined): Likewise.
27493 (driver_handle_option): Likewise.
27494 (process_command): Likewise.
27495 (compare_files): Likewise.
27496 (driver::prepare_infiles): Likewise.
27497 (driver::do_spec_on_infiles): Likewise.
27498 (driver::maybe_run_linker): Likewise.
27499 * omp-offload.c (oacc_parse_default_dims): Likewise.
27500 * opts-global.c (handle_common_deferred_options): Likewise.
27501 * opts.c (parse_sanitizer_options): Likewise.
27502 (common_handle_option): Likewise.
27503 (enable_warning_as_error): Likewise.
27504 * passes.c (enable_disable_pass): Likewise.
27505 * plugin.c (parse_plugin_arg_opt): Likewise.
27506 (default_plugin_dir_name): Likewise.
27507 * targhooks.c (default_expand_builtin_saveregs): Likewise.
27508 (default_pch_valid_p): Likewise.
27509 * toplev.c (init_asm_output): Likewise.
27510 (process_options): Likewise.
27511 (toplev::run_self_tests): Likewise.
27512 * tree-cfg.c (verify_gimple_call): Likewise.
27513 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
27514 (tree_inlinable_function_p): Likewise.
27515 * var-tracking.c (vt_find_locations): Likewise.
27516
27517 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
27518
27519 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
27520 only on the else branch.
27521
27522 2019-03-11 Martin Liska <mliska@suse.cz>
27523
27524 * gcov.c (output_intermediate_json_line): Print function
27525 name of each line.
27526 (output_json_intermediate_file): Add new argument.
27527 * doc/gcov.texi: Document the change.
27528
27529 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
27530
27531 PR rtl-optimization/89588
27532 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
27533 explicit unrolling factor more robust.
27534
27535 2019-03-11 Richard Biener <rguenther@suse.de>
27536
27537 PR tree-optimization/89649
27538 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
27539 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
27540 on the prolog and epilog loops.
27541 (vect_loop_versioning): Return copy of loop.
27542 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
27543 on the non-vectorized version of the loop.
27544
27545 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
27546
27547 PR target/68924
27548 * config/i386/sse.md (*vec_extractv2di_0_sse):
27549 Add (=r,x) alternative and corresponding splitter.
27550
27551 2019-03-10 Martin Jambor <mjambor@suse.cz>
27552
27553 PR tree-optimization/85762
27554 PR tree-optimization/87008
27555 PR tree-optimization/85459
27556 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
27557 it points to if there is a type changing MEM_REF. Adjust all callers.
27558 (build_accesses_from_assign): Disable total scalarization if
27559 contains_vce_or_bfcref_p returns true through the new parameter, for
27560 both rhs and lhs.
27561
27562 2019-03-09 Jakub Jelinek <jakub@redhat.com>
27563
27564 PR c/88568
27565 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
27566 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
27567
27568 PR target/79645
27569 * common.opt (fdiagnostics-show-labels,
27570 fdiagnostics-show-line-numbers, fdiagnostics-format=,
27571 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
27572 gas-locview-support, ginline-points, ginternal-reset-location-views):
27573 Terminate description text with a dot.
27574 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
27575 * config/mcore/mcore.opt (m210, m340): Likewise.
27576 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
27577 mnops=): Start description text with a capital letter.
27578 * config/arc/arc.opt (msize-level=): Likewise.
27579 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
27580 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
27581 mnewlib): Likewise.
27582 * config/ft32/ft32.opt (msim): Likewise.
27583 (mft32b, mcompress): Likewise. Terminate description text with a dot.
27584 (mnodiv, mnopm): Terminate description text with a dot.
27585 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
27586 a colon.
27587 * config/i386/i386.opt (prefer_vector_width, instrument_return):
27588 Likewise.
27589 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
27590 text.
27591
27592 PR rtl-optimization/89634
27593 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
27594 are modified in BB_END (e->src) instruction.
27595
27596 2019-03-08 David Malcolm <dmalcolm@redhat.com>
27597
27598 PR target/79926
27599 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
27600 messages more amenable to translation, and improve wording.
27601
27602 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
27603
27604 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
27605 ud- and du-chains between phases.
27606
27607 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
27608
27609 PR debug/89631
27610 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
27611 instead of POLY_INT_CST.
27612
27613 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
27614
27615 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
27616 requirement.
27617
27618 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
27619
27620 PR target/68924
27621 PR target/78782
27622 PR target/87558
27623 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
27624 (_mm_storeu_si64): Ditto.
27625
27626 2019-03-08 Martin Liska <mliska@suse.cz>
27627
27628 PR target/86952
27629 * config/i386/i386.c (ix86_option_override_internal): Disable
27630 jump tables when retpolines are used.
27631
27632 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
27633
27634 PR go/63560
27635 * ipa-split.c (execute_split_functions): Do not split
27636 'noinline' or 'section' function.
27637
27638 2019-03-08 Jakub Jelinek <jakub@redhat.com>
27639
27640 PR target/79846
27641 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
27642 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
27643 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
27644
27645 PR ipa/80000
27646 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
27647 from diagnostics. Formatting fixes.
27648
27649 PR target/85665
27650 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
27651 warn_odr diagnostics.
27652
27653 PR other/80058
27654 * lra-constraints.c (process_alt_operands): Avoid one space before
27655 " at the end of line and another after " on another line in a string
27656 literal.
27657 * attribs.c (handle_dll_attribute): Likewise.
27658 * config/avr/avr-devices.c (avr_texinfo): Likewise.
27659
27660 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
27661 warning_at or inform messages in G_() if there is no ?:.
27662
27663 PR tree-optimization/89550
27664 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
27665 returned true. Formatting fixes.
27666 (expand_builtin_strnlen): Formatting fixes.
27667 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
27668 if warning_at returned true.
27669 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
27670
27671 2019-03-08 Richard Biener <rguenther@suse.de>
27672
27673 PR middle-end/89578
27674 * cfgloop.h (struct loop): Add owned_clique field.
27675 * cfgloopmanip.c (copy_loop_info): Copy it.
27676 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
27677 cliques.
27678 * tree-inline.c (copy_loops): Remap owned_clique.
27679 * lto-streamer-in.c (input_cfg): Stream owned_clique.
27680 * lto-streamer-out.c (output_cfg): Likewise.
27681
27682 2019-03-08 Jakub Jelinek <jakub@redhat.com>
27683
27684 PR target/80190
27685 * config/darwin.c: Include intl.h.
27686 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
27687 composing the message out of two separate parts.
27688
27689 2019-03-07 Jakub Jelinek <jakub@redhat.com>
27690
27691 PR target/80003
27692 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
27693 doesn't start with a capital letter and doesn't end with a dot.
27694 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
27695 with a capital letter.
27696 (ix86_mangle_function_version_assembler_name): Likewise.
27697 (ix86_generate_version_dispatcher_body): Likewise.
27698 (fold_builtin_cpu): Likewise.
27699 (get_builtin_code_for_version): Likewise. Remove extraneous space.
27700 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
27701 translators, wrap full type name in %qs.
27702
27703 PR translation/79999
27704 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
27705 depend clause with source (or sink) modifier.
27706 * omp-expand.c (expand_omp_ordered_sink): Likewise.
27707
27708 PR target/89602
27709 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
27710 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
27711 (avx512f_load<mode>_mask): New define_expand.
27712 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
27713 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
27714 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
27715 __builtin_ia32_movess_mask): New builtins.
27716 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
27717 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
27718 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
27719 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
27720
27721 2019-03-07 Martin Jambor <mjambor@suse.cz>
27722
27723 PR lto/87525
27724 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
27725 for extern inline functions.
27726
27727 2019-03-07 Martin Jambor <mjambor@suse.cz>
27728
27729 PR ipa/88235
27730 * cgraph.h (cgraph_node): New inline method former_thunk_p.
27731 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
27732 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
27733 have multiple callees. At the end check if declarations match as
27734 opposed to cgraph_nodes.
27735
27736 2019-03-07 Martin Liska <mliska@suse.cz>
27737
27738 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
27739 which is equivalent to searching for this in clones chain.
27740 * symtab.c (symtab_node::verify_base): Similarly compare ASM
27741 names with a neighbour and special case first node in a chain.
27742
27743 2019-01-25 Jason Merrill <jason@redhat.com>
27744
27745 PR c++/80916 - spurious "static but not defined" warning.
27746 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
27747 for an internal symbol with DECL_EXTERNAL.
27748
27749 2019-04-07 Richard Biener <rguenther@suse.de>
27750
27751 PR middle-end/89618
27752 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
27753 * tree-inline.c (copy_loops): Simplify.
27754
27755 2019-03-07 Martin Liska <mliska@suse.cz>
27756
27757 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
27758
27759 2019-03-07 Richard Biener <rguenther@suse.de>
27760
27761 PR tree-optimization/89595
27762 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
27763 stmt iterator as reference, take boolean output parameter to
27764 indicate whether the stmt was removed and thus the iterator
27765 already advanced.
27766 (dom_opt_dom_walker::before_dom_children): Re-iterate over
27767 stmts created by folding.
27768
27769 2019-03-07 Jakub Jelinek <jakub@redhat.com>
27770
27771 PR c++/89585
27772 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
27773 at toplevel.
27774
27775 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
27776
27777 PR rtl-optimization/88845
27778 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
27779 LRA.
27780 * lra.c (remove_scratches_1): New function.
27781 (remove_scratches): Use it.
27782 (lra_emit_move): Likewise.
27783
27784 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
27785
27786 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
27787 unaligned_access variable.
27788 * config/arc/arc.c (arc_override_options): Set unaligned access
27789 default on for HS CPUs.
27790 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
27791
27792 2019-03-06 Martin Liska <mliska@suse.cz>
27793
27794 PR gcov-profile/89577
27795 * doc/gcov.texi: Prefer to use --coverage.
27796 * doc/sourcebuild.texi: Likewise.
27797
27798 2019-03-02 Jason Merrill <jason@redhat.com>
27799
27800 PR c++/86485 - -Wmaybe-unused with empty class ?:
27801 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
27802
27803 2019-03-05 Jakub Jelinek <jakub@redhat.com>
27804
27805 PR target/89587
27806 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
27807 if_multiarch.
27808
27809 PR middle-end/89590
27810 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
27811 exactly one argument.
27812
27813 2019-03-05 Jakub Jelinek <jakub@redhat.com>
27814 Richard Sandiford <richard.sandiford@arm.com>
27815
27816 PR tree-optimization/89570
27817 * match.pd (vec_cond into cond_op simplification): Don't use
27818 get_conditional_internal_fn, use as_internal_fn (cond_op).
27819
27820 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
27821
27822 PR target/89222
27823 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
27824 to decide when to split off a non-zero offset from a symbol.
27825 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
27826 in function symbols.
27827
27828 2019-03-05 Richard Biener <rguenther@suse.de>
27829
27830 PR tree-optimization/89594
27831 * tree-if-conv.c (pass_if_conversion::execute): Handle
27832 case where .LOOP_VECTORIZED_FUNCTION was removed.
27833
27834 2019-03-05 Jakub Jelinek <jakub@redhat.com>
27835
27836 PR bootstrap/89560
27837 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
27838 instead alloca it only when needed with the needed size.
27839
27840 PR tree-optimization/89570
27841 * match.pd (vec_cond into cond_op simplification): Guard with
27842 vectorized_internal_fn_supported_p test and #if GIMPLE.
27843
27844 PR tree-optimization/89566
27845 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
27846 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
27847 Punt if get_user_idx_format succeeds, but idx_format argument is
27848 not provided or doesn't have pointer type, or if idx_args is above
27849 number of provided arguments.
27850
27851 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
27852
27853 PR tree-optimization/89437
27854 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
27855
27856 2019-03-04 Richard Biener <rguenther@suse.de>
27857
27858 PR middle-end/89572
27859 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
27860 safe_dyn_cast.
27861
27862 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
27863
27864 PR tree-optimization/89487
27865 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
27866 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
27867 (distribute_loop): Don't do runtime alias check if there is non-
27868 addressable data reference.
27869 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
27870 is a register variable.
27871
27872 2019-03-02 Jakub Jelinek <jakub@redhat.com>
27873
27874 PR target/89506
27875 * config/arm/arm.md (cmpsi2_addneg): Use
27876 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
27877 If operands[2] is 0 or INT_MIN, force use of subs.
27878 (*compare_scc splitter): Use gen_int_mode.
27879 (*negscc): Likewise.
27880 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
27881
27882 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
27883 Monk Chiang <sh.chiang04@gmail.com>
27884
27885 * common/config/riscv/riscv-common.c: Include sstream.
27886 (riscv_subset_list::to_string): New.
27887 (riscv_arch_str): Likewise.
27888 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
27889 * config.in: Regen.
27890 * config/riscv/riscv-protos.h (riscv_arch_str): New.
27891 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
27892 (riscv_emit_attribute): New.
27893 (riscv_file_start): Emit attribute if needed.
27894 (riscv_option_override): Init riscv_emit_attribute_p.
27895 * config/riscv/riscv.opt (mriscv-attribute): New option.
27896 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
27897 * configure: Regen.
27898 * doc/install.texi: Document --with-riscv-attribute.
27899 * doc/invoke.texi: Document -mriscv-attribute.
27900
27901 * common/config/riscv/riscv-common.c:
27902 Include config/riscv/riscv-protos.h.
27903 (INCLUDE_STRING): Defined.
27904 (RISCV_DONT_CARE_VERSION): Defined.
27905 (riscv_subset_t): Declare.
27906 (riscv_subset_t::riscv_subset_t): New.
27907 (riscv_subset_list): Declare.
27908 (riscv_subset_list::riscv_subset_list): New.
27909 (riscv_subset_list::~riscv_subset_list): Likewise.
27910 (riscv_subset_list::parsing_subset_version): Likewise.
27911 (riscv_subset_list::parse_std_ext): Likewise.
27912 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
27913 (riscv_subset_list::add): Likewise.
27914 (riscv_subset_list::lookup): Likewise.
27915 (riscv_subset_list::xlen): Likewise.
27916 (riscv_subset_list::parse): Likewise.
27917 (riscv_supported_std_ext): Likewise.
27918 (current_subset_list): Likewise.
27919 (riscv_parse_arch_string): Using riscv_subset_list::parse to
27920 parse.
27921
27922 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
27923
27924 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
27925 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
27926 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
27927
27928 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
27929
27930 PR rtl-optimization/85899
27931 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
27932 fallthru edges leading to the exit block.
27933
27934 2019-03-01 Tamar Christina <tamar.christina@arm.com>
27935
27936 PR target/89517
27937 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
27938 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
27939
27940 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
27941
27942 PR tree-optimization/89535
27943 * tree-vect-stmts.c (vectorizable_call): Record the vector types
27944 for each operand. Calculate the fallback choice for mask operands
27945 and pass it to vect_get_vec_def_for_operand.
27946
27947 2019-03-01 Richard Biener <rguenther@suse.de>
27948
27949 PR middle-end/89541
27950 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
27951 get virtual operands.
27952 (get_expr_operands): Handle CONST_DECL like other decls.
27953
27954 2019-03-01 Jakub Jelinek <jakub@redhat.com>
27955
27956 PR middle-end/89503
27957 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
27958 on DECL_P and EXPR_P.
27959
27960 2019-03-01 Richard Biener <rguenther@suse.de>
27961
27962 PR middle-end/89497
27963 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
27964 argument, defaulted to zero.
27965 * passes.c (execute_function_todo): Pass down SSA update flags
27966 to cleanup_tree_cfg.
27967 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
27968 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
27969 form if requested.
27970 (cleanup_tree_cfg): Get and pass down SSA update flags.
27971
27972 2019-03-01 Jakub Jelinek <jakub@redhat.com>
27973
27974 PR bootstrap/89539
27975 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
27976 early_lto_debug argument.
27977
27978 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
27979
27980 PR tree-optimization/89536
27981 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
27982 only whether bit #0 of the value is 0 instead of the entire value.
27983
27984 2019-02-28 Marek Polacek <polacek@redhat.com>
27985
27986 PR c++/87068 - missing diagnostic with fallthrough statement.
27987 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
27988 at the end of a seq, save its location to walk_stmt_info.
27989 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
27990 a switch.
27991
27992 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
27993
27994 PR lto/88585
27995 * tree.c (find_atomic_core_type): Move ahead in file.
27996 (check_base_type): Correctly compare alignments of atomic types.
27997
27998 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
27999
28000 PR target/89455
28001 * config/i386/i386.c (get_builtin_code_for_version): Identify
28002 Westmere from PCLMUL, instead of AES.
28003
28004 2019-02-28 Jakub Jelinek <jakub@redhat.com>
28005
28006 PR target/89434
28007 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
28008 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
28009 -UINTVAL (...).
28010
28011 2019-02-28 Tamar Christina <tamar.christina@arm.com>
28012
28013 PR target/88530
28014 * config/aarch64/aarch64-option-extensions.def: Document it.
28015 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
28016 if empty hwcaps.
28017
28018 2019-02-28 Jakub Jelinek <jakub@redhat.com>
28019
28020 PR c/89520
28021 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
28022 builtins if they don't have a single scalar floating point argument.
28023 Formatting fixes.
28024
28025 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
28026
28027 PR rtl-optimization/89490
28028 * varasm.c (get_block_for_section): Bail out for mergeable sections.
28029 (default_use_anchors_for_symbol_p, output_object_block): Assert the
28030 block section is not mergeable.
28031
28032 2019-02-27 Jakub Jelinek <jakub@redhat.com>
28033
28034 PR target/70341
28035 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
28036 old define_insn to ...
28037 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
28038 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
28039 Rename old define_insn to ...
28040 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
28041 (thumb2_casesi_internal_pic): New define_expand. Rename old
28042 define_insn to ...
28043 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
28044 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
28045 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
28046
28047 2019-02-27 Richard Biener <rguenther@suse.de>
28048
28049 PR debug/88878
28050 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
28051
28052 2019-02-27 Richard Biener <rguenther@suse.de>
28053
28054 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
28055 building.
28056
28057 2019-02-27 Richard Biener <rguenther@suse.de>
28058
28059 PR debug/88878
28060 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
28061 parameter, prefix section name with .gnu.debuglto_ if true.
28062 (dwarf2out_finish): Pass false to output_comdat_type_unit.
28063 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
28064
28065 2019-02-27 Richard Biener <rguenther@suse.de>
28066
28067 PR debug/89514
28068 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
28069 rather than on use_debug_types, doing what output_die does.
28070 (value_format): Likewise.
28071
28072 2019-02-27 Martin Jambor <mjambor@suse.cz>
28073 Martin Sebor <msebor@redhat.com>
28074
28075 * doc/invoke.texi (Warning Options): Reword description of
28076 -Wno-absolute-value.
28077
28078 2019-02-27 Jakub Jelinek <jakub@redhat.com>
28079
28080 PR tree-optimization/89280
28081 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
28082 builtin_setjmp_setup_bb): New functions.
28083 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
28084 When visiting __builtin_setjmp_setup block, queue in special
28085 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
28086 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
28087 from visited after the loop if they don't have any visited successor
28088 blocks.
28089
28090 2018-02-26 Steve Ellcey <sellcey@marvell.com>
28091
28092 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
28093 New function.
28094 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
28095
28096 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28097
28098 PR c++/89507
28099 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
28100 with types other than sizetype/ssizetype.
28101
28102 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
28103
28104 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
28105 (enum sparc_processor_type): ...this.
28106 (enum sparc_code_model_type): New enumeration type.
28107 (enum sparc_memory_model_type): Tweak comments.
28108 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
28109 (mtune): Likewise.
28110 (mcmodel): Use sparc_code_model enumeration and variable.
28111 (sparc_code_model): New enumeration.
28112 (mdebug): Add Undocumented marker.
28113 * config/sparc/sparc.h (enum cmodel): Delete.
28114 (sparc_cmodel): Likewise.
28115 (TARGET_CM_MEDLOW): Adjust to above renaming.
28116 (TARGET_CM_MEDMID): Likewise.
28117 (TARGET_CM_MEDANY): Likewise.
28118 (TARGET_CM_EMBMEDANY): Likewise.
28119 * config/sparc/sparc.c (sparc_cmodel): Delete.
28120 (sparc_option_override): Remove string/value mapping support for the
28121 code model. Move code and memory model support to after the handling
28122 of target flags. Do private machine setup last.
28123 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
28124 (sparc_legitimize_reload_address): Likewise.
28125 (sparc_output_mi_thunk): Likewise.
28126 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
28127
28128 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28129
28130 PR tree-optimization/89500
28131 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
28132 (handle_builtin_strlen): Remove noncst_bound variable. Always
28133 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
28134 cst if the first cst bytes starting at x are known to be non-zero,
28135 even if the string is not zero terminated. Don't try to modify
28136 *si for strnlen. Update strlen_to_stridx only for strlen or if
28137 we can prove strnlen returns the same value as strlen would.
28138
28139 2019-02-26 Martin Liska <mliska@suse.cz>
28140
28141 * alloc-pool.h (struct pool_usage): Remove extra
28142 print_dash_line.
28143 * bitmap.h (struct bitmap_usage): Likewise.
28144 * ggc-common.c (struct ggc_usage): Likewise.
28145 * mem-stats.h (struct mem_usage): Likewise.
28146 (mem_alloc_description::dump): Print dash lines
28147 here and repeat header at the end of a table report.
28148 It's then more readable.
28149 * tree-phinodes.c (phinodes_print_statistics): Make
28150 horizontal alignment.
28151 * tree-ssanames.c (ssanames_print_statistics): Likewise.
28152 * vec.c (struct vec_usage): Remove extra print_dash_line.
28153 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
28154
28155 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
28156
28157 * doc/extend.texi (__builtin_object_size):
28158 Use @pxref instead of @xref inside parenthesis.
28159 (__builtin_has_attribute): Add missing comma after @xref.
28160 (__builtin_object_size): Ditto.
28161 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
28162
28163 2019-02-26 Jeff Law <law@redhat.com>
28164
28165 PR rtl-optimization/87761
28166 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
28167 detect obviously dead insns and delete them.
28168
28169 2019-02-26 Richard Biener <rguenther@suse.de>
28170
28171 PR tree-optimization/89505
28172 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
28173 to handle restrict pointed-to vars with multiple subvars
28174 correctly.
28175
28176 2019-02-26 Richard Biener <rguenther@suse.de>
28177
28178 PR tree-optimization/89489
28179 * tree-parloops.c (create_loop_fn): Copy over last_clique.
28180
28181 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
28182
28183 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
28184 and move around comment.
28185 <BIT_AND_EXPR>: Likewise.
28186 <BIT_NOT_EXPR>: Add specific handling for boolean types.
28187
28188 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28189
28190 PR target/89474
28191 * config/i386/i386.c (remove_partial_avx_dependency): Call
28192 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
28193 after changing possibly many instructions to use that pseudo. Fix up
28194 insertion of v4sf_const0 setter at the start of bb.
28195
28196 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
28197
28198 PR c/80409
28199 * doc/extend.texi (Variadic Pointer Args): New section.
28200
28201 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
28202 Martin Sebor <msebor@gmail.com>
28203
28204 * common.opt (Wattribute-alias): Likewise.
28205 * doc/invoke.texi (Option Summary): List general form of
28206 -Wattribute-alias=. List positive form of -Wmissing-attributes.
28207 (-Wmissing-attributes): Invert entry, rewrite and correct default.
28208 Add cross-references.
28209 (-Wattribute-alias): Rewrite and correct default. Mention
28210 considered attributes (same as for -Wmissing-attributes).
28211
28212 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
28213
28214 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
28215 (_mm_cvtpd_ps): Likewise.
28216 (_mm_cvttpd_epi32): Likewise.
28217
28218 PR target/89338
28219 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
28220 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
28221
28222 PR target/89339
28223 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
28224
28225 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28226
28227 PR target/88530
28228 * common/config/aarch64/aarch64-common.c
28229 (struct aarch64_option_extension): Add is_synthetic.
28230 (all_extensions): Use it.
28231 (TARGET_OPTION_INIT_STRUCT): Define hook.
28232 (struct gcc_targetm_common): Moved to end.
28233 (all_extensions_by_on): New.
28234 (opt_ext_cmp, typedef opt_ext): New.
28235 (aarch64_option_init_struct): New.
28236 (aarch64_contains_opt): New.
28237 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
28238 * config/aarch64/aarch64-option-extensions.def
28239 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
28240 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
28241 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
28242 Set is_synthetic to false.
28243 (crypto): Set is_synthetic to true.
28244 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
28245 SYNTHETIC.
28246
28247 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28248
28249 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
28250 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
28251 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
28252 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
28253 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
28254 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
28255 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
28256 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
28257 Rename ...
28258 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
28259 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
28260 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
28261 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
28262 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
28263 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
28264 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
28265 vfmlsl_laneq_high_f16): ... To this.
28266 * config/arm/neon.md: Update comments.
28267
28268 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28269
28270 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
28271 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
28272 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
28273 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
28274 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
28275 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
28276 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
28277 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
28278 Rename ...
28279 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
28280 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
28281 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
28282 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
28283 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
28284 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
28285 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
28286 vfmlslq_laneq_high_f16): ... To this.
28287
28288 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
28289
28290 PR rtl-optimization/86096
28291 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
28292 comparing mw_order values.
28293
28294 2019-02-25 Jakub Jelinek <jakub@redhat.com>
28295
28296 PR target/89434
28297 * config/arm/arm.md (*subsi3_carryin_const): Use
28298 arm_neg_immediate_operand predicate instead of
28299 arm_not_immediate_operand, "L" constraint instead of "K" and
28300 print it using %n2 instead of %B2.
28301 (*subsi3_carryin_const0): New define_insn.
28302 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
28303 instead of arm_not_operand and "I" constraint instead of "K" and
28304 print it using %n3 instead of %B2. Instead of using match_dup 2 add
28305 another match_operand and in the condition check that it is negation
28306 of operands[2].
28307 (*subsi3_carryin_compare_const0): New define_ins.
28308 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
28309 *subsi3_carryin_const.
28310 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
28311 split into *subsi3_carryin_compare_const0 if the highpart is zero.
28312
28313 PR target/89438
28314 * config/arm.vfp.md (*negdf2_vfp): Use
28315 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
28316 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
28317
28318 2019-02-24 Jakub Jelinek <jakub@redhat.com>
28319
28320 PR rtl-optimization/89445
28321 * simplify-rtx.c (simplify_ternary_operation): Don't use
28322 simplify_merge_mask on operands that may trap.
28323 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
28324 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
28325 second operand is CONST_VECTOR, check if any element could be zero.
28326 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
28327 their operands can trap.
28328
28329 2019-02-23 Martin Sebor <msebor@redhat.com>
28330
28331 * gimple-ssa-sprintf.c (target_strtol): Rename...
28332 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
28333 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
28334 check for range error.
28335
28336 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
28337
28338 PR driver/69471
28339 * opts-common.c (prune_options): Also prune joined switches
28340 with Negative and RejectNegative.
28341 * config/i386/i386.opt (march=): Add Negative(march=).
28342 (mtune=): Add Negative(mtune=).
28343 * doc/options.texi: Document Negative used together with Joined
28344 and RejectNegative.
28345
28346 2019-02-22 Martin Sebor <msebor@redhat.com>
28347
28348 * doc/extend.texi (Other Builtins): Add
28349 __builtin_is_constant_evaluated.
28350
28351 2019-02-22 Richard Biener <rguenther@suse.de>
28352
28353 PR tree-optimization/87609
28354 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
28355
28356 2019-02-22 Jeff Law <law@redhat.com>
28357
28358 PR rtl-optimization/87761
28359 * config/mips/mips.md: Add new combiner pattern to recognize
28360 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
28361
28362 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
28363
28364 PR target/89324
28365 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
28366 destination register in peepholes generating patterns for ADDS/SUBS.
28367 (add<mode>3_compare0,
28368 *addsi3_compare0_uxtw, add<mode>3_compareC,
28369 add<mode>3_compareV_imm, add<mode>3_compareV,
28370 *adds_<optab><ALLX:mode>_<GPI:mode>,
28371 *subs_<optab><ALLX:mode>_<GPI:mode>,
28372 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
28373 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
28374 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
28375 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
28376 sub<mode>3_compare1): Allow stack pointer for source register.
28377 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
28378
28379 2019-02-22 Martin Sebor <msebor@redhat.com>
28380
28381 PR tree-optimization/88993
28382 PR tree-optimization/88853
28383 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
28384 New helper.
28385 (sprintf_dom_walker::call_info::is_string_func): New helper.
28386 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
28387 for formatted string functions.
28388 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
28389
28390 2019-02-22 Martin Sebor <msebor@redhat.com>
28391
28392 PR c/89425
28393 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
28394 unreachable subexpressions.
28395
28396 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
28397 Hongtao Liu <hongtao.liu@intel.com>
28398 Sunil K Pandey <sunil.k.pandey@intel.com>
28399
28400 PR target/87007
28401 * config/i386/i386-passes.def: Add
28402 pass_remove_partial_avx_dependency.
28403 * config/i386/i386-protos.h
28404 (make_pass_remove_partial_avx_dependency): New.
28405 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
28406 New function.
28407 (pass_data_remove_partial_avx_dependency): New.
28408 (pass_remove_partial_avx_dependency): Likewise.
28409 (make_pass_remove_partial_avx_dependency): Likewise.
28410 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
28411 (*extendsfdf2): Add avx_partial_xmm_update.
28412 (truncdfsf2): Likewise.
28413 (*float<SWI48:mode><MODEF:mode>2): Likewise.
28414 (SF/DF conversion splitters): Disabled for TARGET_AVX.
28415
28416 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
28417
28418 PR middle-end/85598
28419 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
28420 analysis for pass.
28421
28422 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
28423
28424 PR target/89444
28425 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
28426 (PTA_SKYLAKE): Add PTA_AES.
28427 (PTA_GOLDMONT): Likewise.
28428
28429 2019-02-22 Sudakshina Das <sudi.das@arm.com>
28430
28431 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
28432 instruction if enabled.
28433 (aarch64_override_options): Remove reference to return address key.
28434
28435 2019-02-22 Richard Biener <rguenther@suse.de>
28436
28437 PR tree-optimization/89440
28438 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
28439 not necessary assert.
28440
28441 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
28442
28443 PR fortran/72741
28444 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
28445 (oacc_replace_fn_attrib_attr): ... this new function.
28446 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
28447 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
28448
28449 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28450
28451 * config/arm/arm-cpus.in (ares): Rename to...
28452 (neoverse-n1): ... This. Add ares as alias.
28453 * config/arm/arm-tables.opt: Regenerate.
28454 * config/arm/arm-tune.md: Likewise.
28455 * doc/invoke.txt (ARM Options): Document neoverse-n1.
28456
28457 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28458
28459 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
28460 * config/aarch64/aarch64-tune.md: Regenerate.
28461 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
28462
28463 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28464
28465 * config/aarch64/aarch64.c (ares_tunings): Rename to...
28466 (neoversen1_tunings): ... This.
28467 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
28468 (neoverse-n1): New CPU.
28469 * config/aarch64/aarch64-tune.md: Regenerate.
28470 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
28471
28472 2019-02-22 Richard Biener <rguenther@suse.de>
28473
28474 PR middle-end/87609
28475 * cfghooks.h (dependence_hash): New typedef.
28476 (struct copy_bb_data): New type.
28477 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
28478 (duplicate_block): Likewise.
28479 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
28480 (copy_bbs): Create and pass down copy_bb_data.
28481 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
28482 (rtl_duplicate_bb): Likewise.
28483 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
28484 remap dependence info.
28485
28486 2019-02-22 Richard Biener <rguenther@suse.de>
28487
28488 PR tree-optimization/87609
28489 * tree-core.h (tree_base): Document special clique values.
28490 * tree-inline.c (remap_dependence_clique): Do not use the
28491 special clique value of one.
28492 (maybe_set_dependence_info): Use clique one.
28493 (clear_dependence_clique): New callback.
28494 (compute_dependence_clique): Clear clique one from all refs
28495 before assigning it (again).
28496
28497 2019-02-21 Martin Sebor <msebor@redhat.com>
28498
28499 * doc/extend.texi (__clear_cache): Correct signature.
28500
28501 2019-02-21 Ian Lance Taylor <iant@golang.org>
28502
28503 PR go/89170
28504 * varasm.c (decode_addr_const): Call lookup_constant_def rather
28505 than output_constant_def.
28506 (add_constant_to_table): New static function.
28507 (output_constant_def): Call add_constant_to_table.
28508 (tree_output_constant_def): Likewise.
28509
28510 2019-02-21 Jakub Jelinek <jakub@redhat.com>
28511
28512 PR c++/89285
28513 * builtins.c (fold_builtin_arith_overflow): If first two args are
28514 INTEGER_CSTs, set intres and ovfres to constants rather than calls
28515 to ifn.
28516
28517 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
28518
28519 PR target/87412
28520 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
28521 error for -mindirect-branch/-mfunction-return with incompatible
28522 -fcf-protection.
28523
28524 2019-02-21 Jakub Jelinek <jakub@redhat.com>
28525
28526 PR bootstrap/88714
28527 * constraints.md (q): Remove.
28528 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
28529 instead of q.
28530
28531 2019-02-21 Martin Jambor <mjambor@suse.cz>
28532
28533 PR hsa/89302
28534 * omp-general.c (omp_extract_for_data): Removed a duplicate call
28535 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
28536 (omp_adjust_for_condition): ...here. Added necessary parameters.
28537 * omp-general.h (omp_adjust_for_condition): Updated declaration.
28538 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
28539 proper values to new parameters of omp_adjust_for_condition.
28540
28541 2019-02-20 Jakub Jelinek <jakub@redhat.com>
28542
28543 PR middle-end/89412
28544 * expr.c (expand_assignment): If result is a MEM, use change_address
28545 instead of simplify_gen_subreg.
28546
28547 2019-02-20 Jakub Jelinek <jakub@redhat.com>
28548 David Malcolm <dmalcolm@redhat.com>
28549
28550 PR middle-end/89091
28551 * fold-const.c (decode_field_reference): Return NULL_TREE if
28552 lang_hooks.types.type_for_size returns NULL. Check it before
28553 overwriting *exp_. Use return NULL_TREE instead of return 0.
28554
28555 2019-02-20 Jakub Jelinek <jakub@redhat.com>
28556
28557 PR middle-end/88074
28558 PR middle-end/89415
28559 * toplev.c (do_compile): Double the emin/emax exponents to workaround
28560 buggy mpc_norm.
28561
28562 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
28563
28564 PR target/89397
28565 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
28566 TARGET_SSE in addition to TARGET_SSE_MATH.
28567
28568 (ix86_excess_precision): Ditto.
28569 (ix86_float_exceptions_rounding_supported_p): Ditto.
28570 (use_rsqrt_p): Ditto.
28571 * config/i386/sse.md (rsqrt<mode>2): Ditto.
28572
28573 2019-02-20 David Malcolm <dmalcolm@redhat.com>
28574
28575 PR c/89410
28576 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
28577 linenum_arith_t when determining if two adjacent line spans are
28578 close enough to merge.
28579 (diagnostic_show_locus): Use linenum_arith_t when iterating over
28580 lines within each line_span.
28581
28582 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
28583
28584 PR target/86487
28585 * lra-constraints.c(uses_hard_regs_p): Fix handling of
28586 paradoxical SUBREGS.
28587
28588 2019-02-20 Li Jia He <helijia@linux.ibm.com>
28589
28590 PR target/88100
28591 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
28592 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
28593 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
28594 range checking it.
28595
28596 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
28597
28598 * config/gcn/gcn.c (print_operand): Fix typo.
28599
28600 2019-02-19 Richard Biener <rguenther@suse.de>
28601
28602 PR middle-end/88074
28603 * toplev.c (do_compile): Initialize mpfr's exponent range
28604 based on available float modes.
28605
28606 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
28607
28608 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
28609 as long as the epilogue isn't completed.
28610
28611 2019-02-18 Martin Sebor <msebor@redhat.com>
28612
28613 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
28614 __has_cpp_attribute, and __has_include.
28615
28616 2019-02-18 Martin Sebor <msebor@redhat.com>
28617
28618 * doc/invoke.texi (-Wreturn-type): Correct and expand.
28619
28620 2019-02-18 Martin Sebor <msebor@redhat.com>
28621
28622 PR middle-end/89294
28623 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
28624 expression.
28625 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
28626
28627 2019-02-18 Richard Biener <rguenther@suse.de>
28628
28629 PR tree-optimization/89296
28630 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
28631 of no-warning flag to cases that might emit the bogus warning.
28632
28633 2019-02-18 Jakub Jelinek <jakub@redhat.com>
28634
28635 PR bootstrap/88714
28636 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
28637 "q" constraint.
28638 * config/arm/vfp.md (*movdi_vfp): Likewise.
28639 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
28640 "q" constraint for operands[0].
28641
28642 PR target/89369
28643 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
28644 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
28645 pattern in a temporary buffer.
28646 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
28647 than 64-operands[2].
28648
28649 PR target/89361
28650 * config/s390/s390.c (s390_indirect_branch_attrvalue,
28651 s390_indirect_branch_settings): Define unconditionally.
28652 (s390_set_current_function): Likewise, but guard the whole body except
28653 the s390_indirect_branch_settings call with
28654 #if S390_USE_TARGET_ATTRIBUTE.
28655 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
28656
28657 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
28658 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
28659 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
28660 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
28661 HOST_WIDE_INT_1U instead of 1ULL.
28662 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
28663 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
28664 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
28665 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
28666 instead of 1UL.
28667 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
28668 instead of 1ul.
28669
28670 2019-02-18 Martin Jambor <mjambor@suse.cz>
28671
28672 PR tree-optimization/89209
28673 * tree-sra.c (create_access_replacement): New optional parameter
28674 reg_tree. Use it as a type if non-NULL and access type is not of
28675 a register type.
28676 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
28677 to create_access_replacement.
28678 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
28679 Check lacc is non-NULL before attempting to re-create it on the RHS.
28680
28681 2019-02-18 Martin Liska <mliska@suse.cz>
28682
28683 PR ipa/89306
28684 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
28685 by default.
28686 (symbol_table::free_edge): Recycle m_summary_id.
28687 * cgraph.h (get_summary_id): New.
28688 (symbol_table::release_symbol): Set m_summary_id to -1
28689 by default.
28690 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
28691 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
28692 function_summary to fast_function_summary.
28693 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
28694 * ipa-pure-const.c (class funct_state_summary_t):
28695 Switch from function_summary to fast_function_summary.
28696 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
28697 (class ipa_ref_opt_summary_t): Switch from function_summary
28698 to fast_function_summary.
28699 * symbol-summary.h (class function_summary_base): New class
28700 that is created from base of former function_summary.
28701 (function_summary_base::unregister_hooks): New.
28702 (class function_summary): Inherit from function_summary_base.
28703 (class call_summary_base): New class
28704 that is created from base of former call_summary.
28705 (class call_summary): Inherit from call_summary_base.
28706 (struct is_same): New.
28707 (class fast_function_summary): New summary class.
28708 (class fast_call_summary): New summary class.
28709 * vec.h (vec_safe_grow_cleared): New function.
28710
28711 2019-02-18 Martin Liska <mliska@suse.cz>
28712
28713 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
28714 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
28715 * doc/tm.texi: Document new target hook.
28716 * doc/tm.texi.in: Likewise.
28717 * target.def: Add new target macro.
28718 * gcc.c (find_fortran_preinclude_file): Do not search multilib
28719 suffixes.
28720
28721 2019-02-17 Alan Modra <amodra@gmail.com>
28722
28723 PR target/89271
28724 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
28725 output reg on add insn.
28726 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
28727
28728 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
28729
28730 PR target/89372
28731 * config/i386/sse.md (ssedoublemode): Remove V4HI.
28732 (PMULHRSW): Likewise.
28733 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
28734 TARGET_AVX2.
28735 (ssse3_pmulhrswv4hi3): New expander.
28736
28737 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
28738
28739 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
28740 MMX. Add isa attribute.
28741
28742 2019-02-16 Jakub Jelinek <jakub@redhat.com>
28743
28744 PR rtl-optimization/66152
28745 * builtins.h (c_readstr): Declare.
28746 * builtins.c (c_readstr): Remove forward declaration. Add
28747 null_terminated_p argument, if false, read all bytes from the
28748 string instead of stopping after '\0'.
28749 * expr.c (string_cst_read_str): New function.
28750 (store_expr): Use string_cst_read_str instead of
28751 builtin_strncpy_read_str. Try to store by pieces the whole
28752 exp_len first, and only if that fails, split it up into
28753 store by pieces followed by clear_storage. Formatting fix.
28754
28755 * config/i386/i386.md (*movqi_internal): Remove static from
28756 buf variable. Use output_asm_insn (buf, operands); return "";
28757 instead of return buf;.
28758 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
28759 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
28760 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
28761
28762 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
28763
28764 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
28765 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
28766 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
28767 (CC1_SPEC): Likewise.
28768 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
28769
28770 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
28771
28772 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
28773 the base address on 64-bit strict-alignment platforms.
28774
28775 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
28776
28777 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
28778
28779 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
28780
28781 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
28782
28783 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
28784
28785 PR rtl-optimization/88308
28786 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
28787 on copied instruction.
28788
28789 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
28790
28791 * final.c (insn_current_reference_address): Replace test on JUMP_P
28792 with test on jump_to_label_p.
28793 * config/visium/visium-passes.def: New file.
28794 * config/visium/t-visium (PASSES_EXTRA): Define.
28795 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
28796 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
28797 (TRAMPOLINE_ALIGNMENT): Define.
28798 * config/visium/visium.c (visium_option_override): Do not register
28799 the machine-specific reorg pass here.
28800 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
28801 for the GR6.
28802 (output_branch): Adjust threshold for long branch instruction.
28803 * config/visium/visium.md (cpu): Move around.
28804 (length): Adjust for the GR6.
28805
28806 2019-02-15 Richard Biener <rguenther@suse.de>
28807 Jakub Jelinek <jakub@redhat.com>
28808
28809 PR tree-optimization/89278
28810 * tree-loop-distribution.c: Include tree-eh.h.
28811 (generate_memset_builtin, generate_memcpy_builtin): Call
28812 rewrite_to_non_trapping_overflow on builtin->size before passing it
28813 to force_gimple_operand_gsi.
28814
28815 2019-02-15 Jakub Jelinek <jakub@redhat.com>
28816
28817 PR other/89342
28818 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
28819 optimize_debug.
28820 * opth-gen.awk: Likewise.
28821
28822 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
28823
28824 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
28825 Enable MMX, SSE and SSE2 by default.
28826 * config/i386/i386.c (ix86_option_override_internal): Do not
28827 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
28828
28829 2019-02-14 Jakub Jelinek <jakub@redhat.com>
28830
28831 PR rtl-optimization/89354
28832 * combine.c (make_extraction): Punt if extraction_mode is narrower
28833 than len bits.
28834
28835 2019-02-14 Maya Rashish <coypu@sdf.org>
28836
28837 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
28838 * config/netbsd-d.c: New file.
28839 * config/t-netbsd: Add netbsd-d.o
28840
28841 2018-02-14 Steve Ellcey <sellcey@marvell.com>
28842
28843 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
28844 affects_type_identity to true for aarch64_vector_pcs.
28845 (aarch64_comp_type_attributes): New function.
28846 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
28847
28848 2019-02-14 Tamar Christina <tamar.christina@arm.com>
28849
28850 PR target/88850
28851 * config/arm/iterators.md (ANY64): Add V4HF.
28852
28853 2019-02-14 Martin Liska <mliska@suse.cz>
28854
28855 PR rtl-optimization/89242
28856 * dce.c (delete_unmarked_insns): Call free_dominance_info we
28857 process a transformation.
28858
28859 2019-02-14 Jakub Jelinek <jakub@redhat.com>
28860
28861 PR tree-optimization/89314
28862 * fold-const.c (fold_binary_loc): Cast strlen argument to
28863 const char * before dereferencing it. Formatting fixes.
28864
28865 PR middle-end/89284
28866 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
28867
28868 2019-02-13 Ian Lance Taylor <iant@golang.org>
28869
28870 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
28871 and set current index for other optimizations.
28872
28873 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
28874
28875 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
28876 nonimmediate_operand as operand 2 predicate.
28877 (vec_set<VF2_512_256:mode>_0): Ditto.
28878 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
28879 (*vec_concatv2si): Remove alternative 2.
28880 (*vec_concatv4si_0): Use vm constraint for alternative 0.
28881 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
28882 (vec_concatv2di): Split alternatives 4,5,6 to ...
28883 (*vec_concatv2di_0) ... new pattern.
28884
28885 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
28886
28887 PR target/89190
28888 * config/arm/arm.c (ldm_stm_operation_p) Set
28889 addr_reg_in_reglist correctly for first register.
28890 (load_multiple_sequence): Remove dead base check.
28891 (gen_ldm_seq): Correctly set write_back for Thumb-1.
28892
28893 2019-02-13 Tamar Christina <tamar.christina@arm.com>
28894
28895 PR target/88847
28896 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
28897 Expose as @aarch64_pred_mov.
28898 * config/aarch64/aarch64.c (aarch64_classify_address):
28899 Use expand_insn which legitimizes operands.
28900
28901 2019-02-13 Martin Liska <mliska@suse.cz>
28902
28903 * builtins.h (expand_builtin_with_bounds): Remove declaration.
28904 * calls.c (struct arg_data): Remove special_slot, pointer_arg
28905 and pointer_offset fields.
28906 (initialize_argument_information): Remove usage of dead
28907 fields.
28908 * cgraph.h (struct cgraph_thunk_info): Remove
28909 add_pointer_bounds_args.
28910 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
28911 fields.
28912 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
28913 fields.
28914 * config/i386/i386.c (ix86_function_arg_advance): Remove
28915 unrelated comment.
28916 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
28917 (def_builtin): Remove usage of dead fields.
28918 (ix86_add_new_builtins): Likewise.
28919 * ipa-fnsummary.c (compute_fn_summary): Likewise.
28920 * ipa-icf.c (sem_function::equals_wpa): Likewise.
28921 (sem_function::init): Likewise.
28922 (sem_variable::merge): Likewise.
28923 * ipa-visibility.c (function_and_variable_visibility): Likewise.
28924 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
28925 * lto-cgraph.c (lto_output_node): Likewise.
28926 (lto_output_varpool_node): Likewise.
28927 (input_node): Likewise.
28928 (input_varpool_node): Likewise.
28929 * lto-streamer-out.c (lto_output): Likewise.
28930 * tree-inline.c (expand_call_inline): Remove usage of
28931 assign_stmts.
28932 * tree-inline.h (struct copy_body_data): Likewise.
28933 * varpool.c (varpool_node::dump): Likewise.
28934
28935 2019-02-13 Jakub Jelinek <jakub@redhat.com>
28936
28937 PR middle-end/89303
28938 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
28939 into pt->vars_contains_escaped_heap instead of setting
28940 pt->vars_contains_escaped_heap to it.
28941
28942 PR middle-end/89281
28943 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
28944 INTVAL (size), compare it to GET_MODE_MASK instead of
28945 1 << GET_MODE_BITSIZE.
28946
28947 PR target/89290
28948 * config/i386/predicates.md (x86_64_immediate_operand): Allow
28949 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
28950 -mcmodel=large.
28951
28952 2019-02-13 Martin Liska <mliska@suse.cz>
28953
28954 PR lto/88858
28955 * cfgrtl.c (remove_barriers_from_footer): New function.
28956 (try_redirect_by_replacing_jump): Use it.
28957 (cfg_layout_redirect_edge_and_branch): Likewise.
28958
28959 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
28960
28961 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
28962 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
28963 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
28964 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
28965 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
28966 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
28967 New BU_CRYPTO_2.
28968 * config/rs6000/rs6000.c (builtin_function_type)
28969 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
28970 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
28971 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
28972 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
28973 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
28974
28975 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
28976
28977 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
28978 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
28979
28980 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
28981
28982 PR target/89229
28983 * config/i386/i386.md (*movoi_internal_avx): Revert revision
28984 268678 and revision 268657.
28985 (*movti_internal): Likewise.
28986
28987 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
28988
28989 PR target/89233
28990 * config/s390/s390.c (s390_decompose_address): Update comment.
28991 (s390_check_qrst_address): Reject invalid address forms after
28992 LRA.
28993
28994 2019-02-12 Martin Liska <mliska@suse.cz>
28995
28996 PR lto/88876
28997 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
28998 we need default values of funct_state for a function that
28999 is not optimized.
29000
29001 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
29002
29003 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
29004 the object to pick the size of stores on strict-alignment platforms.
29005
29006 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
29007 (*movdi_insn_sp32): Likewise.
29008 (*movdi_insn_sp64): Likewise.
29009
29010 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
29011
29012 PR lto/88677
29013 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
29014 types that needs constructiong.
29015 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
29016
29017 2019-02-12 Richard Biener <rguenther@suse.de>
29018
29019 PR tree-optimization/89253
29020 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
29021 duplicate the loop.
29022
29023 2019-02-11 David Malcolm <dmalcolm@redhat.com>
29024
29025 PR lto/88147
29026 * input.c (selftest::test_line_offset_overflow): New selftest.
29027 (selftest::input_c_tests): Call it.
29028
29029 2019-02-11 Martin Sebor <msebor@redhat.com>
29030
29031 PR tree-optimization/88771
29032 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
29033 when -Wstringop-overflow is set.
29034 (builtin_memref::builtin_memref): Adjust excessive upper bound
29035 only when lower bound is not excessive.
29036 (maybe_diag_overlap): Detect and diagnose excessive bounds via
29037 -Wstringop-ovefflow.
29038 (maybe_diag_offset_bounds): Rename...
29039 (maybe_diag_access_bounds): ...to this.
29040 (check_bounds_or_overlap): Adjust for name change above.
29041
29042 2019-02-11 Martin Sebor <msebor@redhat.com>
29043
29044 PR c++/87996
29045 * builtins.c (max_object_size): Move from here...
29046 * builtins.h (max_object_size): ...and here...
29047 * tree.c (max_object_size): ...to here...
29048 * tree.h (max_object_size): ...and here.
29049
29050 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
29051
29052 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
29053 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
29054 for correct semantics.
29055
29056 2019-02-11 Alan Modra <amodra@gmail.com>
29057
29058 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
29059 -mlongcall and -mpltseq.
29060 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
29061 (RS/6000 and PowerPC Options <-mpltseq>): Document.
29062 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
29063 * config/rs6000/sysv4.opt (mpltseq): New option.
29064 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
29065 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
29066 support is lacking. Don't allow -mpltseq with -mbss-plt.
29067 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
29068 -mpltseq given for ELFv1.
29069 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
29070 Only use UNSPEC_PLTSEQ for inline PLT calls.
29071 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
29072 use UNSPEC_PLTSEQ for inline PLT calls.
29073 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
29074 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
29075 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
29076 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
29077 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
29078 (pltseq_mtctr_<mode>): Likewise.
29079
29080 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29081
29082 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
29083 Solaris ld.
29084 * configure: Regenerate.
29085
29086 2019-02-11 Jakub Jelinek <jakub@redhat.com>
29087
29088 PR bootstrap/88714
29089 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
29090 instead of r.
29091
29092 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
29093
29094 * function.c (assign_parm_setup_block): Use the stored
29095 size, not the passed size, when allocating stack-space,
29096 also for a parameter with alignment larger than
29097 MAX_SUPPORTED_STACK_ALIGNMENT.
29098
29099 2019-02-11 Martin Liska <mliska@suse.cz>
29100
29101 PR ipa/89009
29102 * ipa-cp.c (build_toporder_info): Remove usage of a param.
29103 * ipa-inline.c (inline_small_functions): Likewise.
29104 * ipa-pure-const.c (propagate_pure_const): Likewise.
29105 (propagate_nothrow): Likewise.
29106 * ipa-reference.c (propagate): Likewise.
29107 * ipa-utils.c (struct searchc_env): Remove unused field.
29108 (searchc): Always search across AVAIL_INTERPOSABLE.
29109 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
29110 the only called IPA pure const can properly not propagate
29111 across interposable boundary.
29112 * ipa-utils.h (ipa_reduced_postorder): Remove param.
29113
29114 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
29115
29116 * config/nds32/nds32.md (call_internal, call_value_internal,
29117 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
29118
29119 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
29120
29121 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
29122 typo.
29123
29124 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
29125
29126 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
29127 in comments
29128
29129 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
29130
29131 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
29132
29133 2019-02-10 Jakub Jelinek <jakub@redhat.com>
29134
29135 PR tree-optimization/89268
29136 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
29137 if preds is non-NULL.
29138
29139 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29140
29141 PR lto/89272
29142 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
29143 polymorphic types.
29144
29145 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
29146
29147 * config/nds32/nds32.md (trap): New pattern.
29148
29149 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
29150
29151 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
29152 dwarf span.
29153
29154 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
29155
29156 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
29157 to split POST_INC.
29158
29159 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29160
29161 * ipa-visibility.c (localize_node): Also do not localize
29162 LDPR_PREVAILING_DEF_IRONLY_EXP.
29163
29164 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29165
29166 PR lto/87957
29167 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
29168 instead of type_with_linkage.
29169
29170 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29171
29172 PR ipa/88755
29173 * params.def (uninlined-function-insns, uninlined-function-time,
29174 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
29175 bound so we don't get overflows.
29176
29177 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
29178
29179 * config/rs6000/rs6000-string.c (expand_compare_loop,
29180 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
29181 memcmp/strncmp.
29182
29183 2019-02-09 Jakub Jelinek <jakub@redhat.com>
29184
29185 PR middle-end/89246
29186 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
29187 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
29188 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
29189
29190 2019-02-09 Alan Modra <amodra@gmail.com>
29191
29192 PR target/88343
29193 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
29194 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
29195 setup.
29196
29197 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
29198
29199 PR middle-end/88560
29200 * lra-constraints.c (process_alt_operands): Don't increase reject
29201 for memory when offset memory is required.
29202
29203 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
29204
29205 * config/s390/vector.md: Implement vector copysign.
29206
29207 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
29208
29209 * expr.c (expand_constructor): Correct indentations.
29210
29211 2019-02-08 Richard Biener <rguenther@suse.de>
29212
29213 PR tree-optimization/89247
29214 * tree-if-conv.c: Include tree-cfgcleanup.h.
29215 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
29216 (tree_if_conversion): Pass through predicate vector.
29217 (pass_if_conversion::execute): Do CFG cleanup and SSA update
29218 inline, see if any if-converted loops we refrece in
29219 LOOP_VECTORIZED calls vanished and fixup.
29220 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
29221
29222 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
29223
29224 * config/s390/constraints.md (jdd): New constraint.
29225
29226 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
29227
29228 PR target/89229
29229 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
29230 upper 16 vector registers without TARGET_AVX512VL.
29231 (*movti_internal): Likewise.
29232
29233 2019-02-08 Jakub Jelinek <jakub@redhat.com>
29234
29235 PR rtl-optimization/89234
29236 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
29237 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
29238 (copy_reg_eh_region_note_backward): Likewise.
29239
29240 2019-02-08 Richard Biener <rguenther@suse.de>
29241
29242 PR middle-end/89223
29243 * tree-data-ref.c (initialize_matrix_A): Fail if constant
29244 doesn't fit in HWI.
29245 (analyze_subscript_affine_affine): Handle failure from
29246 initialize_matrix_A.
29247
29248 2019-02-08 Jakub Jelinek <jakub@redhat.com>
29249
29250 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
29251 cfun everywhere.
29252
29253 2019-02-07 David Malcolm <dmalcolm@redhat.com>
29254
29255 PR tree-optimization/86637
29256 PR tree-optimization/89235
29257 * tree-vect-loop.c (optimize_mask_stores): Add an
29258 auto_purge_vect_location sentinel to ensure that vect_location is
29259 purged on exit.
29260 * tree-vectorizer.c
29261 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
29262 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
29263 to ensure that vect_location is purged on exit.
29264 (pass_slp_vectorize::execute): Likewise, replacing the manual
29265 reset.
29266 * tree-vectorizer.h (class auto_purge_vect_location): New class.
29267
29268 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29269
29270 * config/aarch64/iterators.md (max_opp): New code_attr.
29271 (USMAX): New code iterator.
29272 * config/aarch64/predicates.md (aarch64_smin): New predicate.
29273 (aarch64_smax): Likewise.
29274 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
29275 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
29276 MINUS (MAX MIN).
29277
29278 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
29279
29280 PR target/89229
29281 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
29282 for TARGET_AVX512VL.
29283 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
29284
29285 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
29286
29287 * config/s390/s390-builtin-types.def: Add new types.
29288 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
29289 (s390_vec_xlw4): Make the memory operand into a const pointer.
29290 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
29291 float.
29292 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
29293 a new vector type with the alignment of the scalar memory operand.
29294
29295 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
29296 Jakub Jelinek <jakub@redhat.com>
29297
29298 PR bootstrap/88714
29299 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
29300 arm_count_ldrdstrd_insns): New declarations.
29301 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
29302 MINUS.
29303 (valid_operands_ldrd_strd): New function.
29304 (arm_count_ldrdstrd_insns): New function.
29305 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
29306 sets instead of single DImode set and define new insns to match this.
29307
29308 2019-02-07 Tamar Christina <tamar.christina@arm.com>
29309
29310 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
29311 Make it a C initializer.
29312
29313 2019-02-07 Tamar Christina <tamar.christina@arm.com>
29314
29315 PR/target 88850
29316 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
29317
29318 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29319
29320 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
29321 Use neon_dot<q> for type.
29322 (neon_<sup>dot_lane<vsi2qi>): Likewise.
29323
29324 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29325
29326 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
29327 Use neon_dot<q> for type.
29328 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
29329 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
29330
29331 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
29332
29333 PR rtl-optimization/89225
29334 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
29335 sizes check.
29336
29337 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
29338
29339 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
29340 after restoring registers saved to allocate the frame on Windows.
29341
29342 2019-02-06 Richard Biener <rguenther@suse.de>
29343
29344 PR tree-optimization/89182
29345 * graphite.h (cached_scalar_evolution_in_region): Declare.
29346 * graphite.c (struct seir_cache_key): New.
29347 (struct sese_scev_hash): Likewise.
29348 (seir_cache): New global.
29349 (cached_scalar_evolution_in_region): New function.
29350 (graphite_transform_loops): Allocate and release seir_cache.
29351 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
29352 cached_scalar_evolution_in_region.
29353 * graphite-scop-detection.c (scop_detection::can_represent_loop):
29354 Simplify.
29355 (scop_detection::graphite_can_represent_expr: Use
29356 cached_scalar_evolution_in_region.
29357 (scop_detection::stmt_simple_for_scop_p): Likewise.
29358 (find_params_in_bb): Likewise.
29359 (gather_bbs::before_dom_children): Likewise.
29360 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
29361 (add_loop_constraints): Likewise.
29362
29363 2019-02-06 Jakub Jelinek <jakub@redhat.com>
29364
29365 PR middle-end/89210
29366 * fold-const-call.c (fold_const_vec_convert): Pass true as last
29367 operand to new_unary_operation only if both element types are integral
29368 and it isn't a widening conversion. Return NULL_TREE if
29369 new_unary_operation failed.
29370
29371 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
29372
29373 PR target/88856
29374 * config/s390/s390.md: Remove load and test FP splitter.
29375
29376 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
29377
29378 PR target/89112
29379 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
29380 expand_compare_loop, expand_block_compare_gpr,
29381 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
29382 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
29383 #include "profile-count.h" and "predict.h" for types and functions
29384 needed to work with REG_BR_PROB notes.
29385
29386 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
29387
29388 PR target/89112
29389 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
29390 for the long branch case.
29391
29392 2019-02-05 Jakub Jelinek <jakub@redhat.com>
29393
29394 PR target/89188
29395 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
29396 can throw, non-call exceptions are enabled and we can't delete
29397 dead exceptions or alter cfg. Set must_clean if
29398 delete_insn_and_edges returns true, don't set it blindly for calls.
29399 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
29400
29401 PR rtl-optimization/89195
29402 * combine.c (make_extraction): For MEMs, don't extract bytes outside
29403 of the original MEM.
29404
29405 2019-02-05 Martin Liska <mliska@suse.cz>
29406
29407 PR gcov-profile/89000
29408 * gcov.c (function_summary): Remove argument.
29409 (file_summary): New function.
29410 (print_usage): Replace tabs with spaces.
29411 (generate_results): Use new function file_summary.
29412
29413 2019-02-05 Jakub Jelinek <jakub@redhat.com>
29414
29415 PR target/89186
29416 * optabs.c (prepare_cmp_insn): Pass x and y to
29417 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
29418
29419 2019-02-05 Richard Biener <rguenther@suse.de>
29420
29421 PR middle-end/89150
29422 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
29423 (struct bitmap_element): Drop chain_prev so we properly recurse on
29424 the prev member, supporting tree views.
29425 (struct bitmap_head): GTY skip the obstack member.
29426
29427 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
29428
29429 PR c/88698
29430 * doc/extend.texi (Vector Extensions): Add an example of using vector
29431 types together with x86 intrinsics.
29432
29433 2019-02-04 Alan Modra <amodra@gmail.com>
29434
29435 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
29436 str[] size to 160, and comment.
29437
29438 2019-02-04 Alan Modra <amodra@gmail.com>
29439
29440 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
29441 (rs6000_pltseq_template): Guard output of TLS markers with
29442 TARGET_TLS_MARKERS.
29443 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
29444 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
29445 to use inline PLT sequences.
29446 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
29447 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
29448 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
29449
29450 2019-02-04 Martin Liska <mliska@suse.cz>
29451
29452 PR ipa/88985
29453 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
29454 out when ipa_fn_summaries does not contain entry for callee.
29455
29456 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
29457
29458 * config/sparc/sparc.h: Remove superfluous blank lines.
29459 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
29460 (got_register_rtx): ...this.
29461 (sparc_got): Adjust to above renaming.
29462 (sparc_tls_got): Likewise.
29463 (sparc_delegitimize_address): Likewise.
29464 (sparc_output_mi_thunk): Likewise.
29465 (sparc_init_pic_reg): Likewise.
29466 (save_local_or_in_reg_p): Fix test on the GOT register.
29467 (USE_HIDDEN_LINKONCE): Move around.
29468 (get_pc_thunk_name): Likewise.
29469 (gen_load_pcrel_sym): Likewise.
29470 (load_got_register): Likewise.
29471
29472 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
29473
29474 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
29475 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
29476
29477 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
29478
29479 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
29480 into consideration.
29481
29482 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
29483
29484 * config.gcc (with_nds32_lib, glibc):
29485 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
29486 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
29487 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
29488
29489 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
29490
29491 PR target/89071
29492 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
29493 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
29494 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
29495 (*rcpsf2_sse): Ditto.
29496 (*rsqrtsf2_sse): Ditto.
29497 (sse4_1_round<mode<2): Ditto.
29498
29499 2019-02-03 Richard Biener <rguenther@suse.de>
29500
29501 PR debug/87295
29502 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
29503 orig.
29504
29505 2019-02-02 Jakub Jelinek <jakub@redhat.com>
29506
29507 PR middle-end/87887
29508 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
29509 Punt with warning on aggregate return or argument types. Ignore
29510 type/mode checking for uniform arguments.
29511
29512 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
29513
29514 * combine.c (try_combine): Do not print "Can't combine" messages unless
29515 printing failed combination attempts.
29516
29517 2019-02-01 Martin Jambor <mjambor@suse.cz>
29518
29519 PR hsa/87863
29520 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
29521 segment and global segment variables before making them static.
29522
29523 2019-02-01 Martin Jambor <mjambor@suse.cz>
29524
29525 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
29526 missed optimization dump with dump_enabled_p.
29527
29528 2019-02-01 Richard Biener <rguenther@suse.de>
29529
29530 PR middle-end/88597
29531 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
29532 the instantiate cache.
29533 (instantiate_scev_binary): Elide second operand procesing
29534 if equal to the first.
29535 * tree-chrec.c (chrec_contains_symbols): Add visited set.
29536 (chrec_contains_undetermined): Likewise.
29537 (tree_contains_chrecs): Likewise.
29538
29539 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
29540
29541 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
29542
29543 2019-02-01 Jakub Jelinek <jakub@redhat.com>
29544
29545 PR tree-optimization/89143
29546 * wide-int-range.h (wide_int_range_absu): Declare.
29547 * wide-int-range.cc (wide_int_range_absu): New function.
29548 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
29549
29550 PR tree-optimization/88107
29551 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
29552 instead of assertion that eh_region_outermost is non-NULL, if it
29553 is NULL, set *ALL to true and return NULL.
29554 (move_sese_region_to_fn): Adjust caller, if all is set, call
29555 duplicate_eh_regions with NULL region.
29556
29557 2019-02-01 Richard Biener <rguenth@suse.de>
29558
29559 PR rtl-optimization/88593
29560 * mode-switching.c (optimize_mode_switching): Free dominators before
29561 calling cleanup_cfg.
29562
29563 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29564
29565 PR tree-optimization/88932
29566 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
29567
29568 2019-01-31 Jakub Jelinek <jakub@redhat.com>
29569
29570 PR middle-end/89137
29571 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
29572 bogus clang warning.
29573
29574 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
29575
29576 PR target/89071
29577 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
29578 alternative to avoid partial SSE register stall for TARGET_AVX.
29579 (truncdfsf2): Ditto.
29580 (sse4_1_round<mode>2): Ditto.
29581
29582 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
29583
29584 PR tree-optimization/89008
29585 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
29586 process anything of the form X * 0.
29587
29588 2019-01-31 Richard Biener <rguenther@suse.de>
29589
29590 PR tree-optimization/89135
29591 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
29592 with abnormal preds.
29593
29594 2019-01-31 Jakub Jelinek <jakub@redhat.com>
29595
29596 PR sanitizer/89124
29597 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
29598 always_inline callees into no_sanitize_address callers.
29599
29600 2019-01-31 Richard Biener <rguenther@suse.de>
29601
29602 PR rtl-optimization/89115
29603 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
29604
29605 2019-01-30 Martin Sebor <msebor@redhat.com>
29606
29607 PR other/89106
29608 * doc/extend.texi (cast to a union): Correct and expand.
29609
29610 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
29611
29612 PR rtl-optimization/87246
29613 * lra-constraints.c (simplify_operand_subreg): Reload memory
29614 in subreg if the address became invalid.
29615
29616 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
29617
29618 PR target/87064
29619 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
29620 Disable for little-endian.
29621
29622 2019-01-30 Richard Biener <rguenther@suse.de>
29623
29624 PR rtl-optimization/89115
29625 * opts.c (default_options_optimization): Reduce
29626 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
29627 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
29628 to the default.
29629
29630 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
29631
29632 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
29633 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
29634 type of vector element when vec_extract is implemented by direct
29635 move.
29636
29637 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
29638
29639 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
29640
29641 2019-01-30 Richard Biener <rguenther@suse.de>
29642
29643 PR tree-optimization/89111
29644 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
29645 canonicalization to appropriately sized access types.
29646
29647 2019-01-30 Jakub Jelinek <jakub@redhat.com>
29648
29649 PR c++/89105
29650 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
29651 for arguments to functions that are TU-local and shouldn't be
29652 referenced by assembly.
29653
29654 2019-01-30 Ulrich Drepper <drepper@redhat.com>
29655
29656 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
29657 after '='.
29658
29659 2019-01-29 Martin Sebor <msebor@redhat.com>
29660
29661 PR c/88956
29662 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
29663
29664 2019-01-29 Jakub Jelinek <jakub@redhat.com>
29665
29666 PR c++/66676
29667 PR ipa/89104
29668 * omp-simd-clone.c (simd_clone_clauses_extract)
29669 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
29670 OMP_CLAUSE_ALIGNED_ALIGNMENT.
29671
29672 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
29673
29674 * config.gcc: Force .init_array for ARC.
29675
29676 2019-01-29 Richard Biener <rguenther@suse.de>
29677
29678 PR debug/87295
29679 * dwarf2out.c (collect_skeleton_dies): New helper.
29680 (copy_decls_for_unworthy_types): Call it.
29681 (build_abbrev_table): Assert we do not try to replace
29682 DW_AT_signature refs with local refs.
29683
29684 2019-01-28 Jakub Jelinek <jakub@redhat.com>
29685
29686 PR middle-end/89002
29687 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
29688 for lastprivate/linear IV, push gimplify context around gimplify_assign
29689 and, if it needed any temporaries, pop it into a gimple bind around the
29690 sequence.
29691
29692 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
29693
29694 * common.opt (-Wattribute-alias): Remove "no-" from name.
29695 Make -Wattribute-alias command line option and
29696 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
29697
29698 2019-01-28 Jakub Jelinek <jakub@redhat.com>
29699
29700 PR target/89073
29701 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
29702 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
29703 x86 ISA options.
29704 (bmi2): Add missing @opindex.
29705 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
29706 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
29707 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
29708 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
29709 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
29710 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
29711 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
29712 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
29713 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
29714 xsavec, xsaveopt and xsaves options.
29715
29716 2019-01-28 Richard Biener <rguenther@suse.de>
29717
29718 PR debug/89076
29719 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
29720 support removal.
29721
29722 2019-01-28 Richard Biener <rguenther@suse.de>
29723
29724 PR tree-optimization/88739
29725 * tree-cfg.c (verify_types_in_gimple_reference): Verify
29726 BIT_FIELD_REFs only are applied to mode-precision operands
29727 when they are integral.
29728 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
29729 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
29730 BIT_FIELD_REFs of non-mode-precision integral operands.
29731
29732 2019-01-27 Jakub Jelinek <jakub@redhat.com>
29733
29734 PR target/87214
29735 * config/i386/sse.md
29736 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
29737 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
29738 first constants in pairs are multiples of 2. Formatting fixes.
29739 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
29740 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
29741 first constants in each quadruple are multiples of 4. Formatting fixes.
29742
29743 2019-01-26 Martin Jambor <mjambor@suse.cz>
29744
29745 PR ipa/88933
29746 * tree-inline.c: Include tree-cfgcleanup.h.
29747 (delete_unreachable_blocks_update_callgraph): Move...
29748 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
29749 ...here, make externally visible, make second argument bool, adjust
29750 all callers.
29751 * tree-cfgcleanup.c: Include cgraph.h.
29752 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
29753 Declare.
29754 * ipa-prop.c: Include tree-cfgcleanup.h.
29755 (ipcp_transform_function): Call
29756 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
29757
29758 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
29759
29760 PR rtl-optimization/88846
29761 * ira.c (process_set_for_memref_referenced_p): New.
29762 (memref_referenced_p): Add new param. Use
29763 process_set_for_memref_referenced_p. Add new switch cases.
29764 (memref_used_between_p): Pass new arg to memref_referenced_p.
29765
29766 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
29767
29768 PR target/88469
29769 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
29770 argument ABI_BREAK. Set to true if the calculated alignment has
29771 changed in gcc-9. Check bit-fields for their base type alignment.
29772 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
29773 (aarch64_function_arg_boundary): Likewise.
29774 (aarch64_gimplify_va_arg_expr): Likewise.
29775
29776 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
29777
29778 PR middle-end/89037
29779 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
29780 instead of accessing TREE_INT_CST_ELT directly.
29781
29782 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
29783
29784 * doc/sourcebuild.texi (Environment attributes): Add fenv and
29785 fenv_exceptions description.
29786
29787 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
29788
29789 PR rtl-optimization/87763
29790 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
29791 Allow SUBREG when matching CC_NZmode compare.
29792
29793 2019-01-25 Richard Biener <rguenther@suse.de>
29794
29795 PR tree-optimization/89049
29796 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
29797 Look at the pattern stmt to determine if the stmt is vectorized.
29798
29799 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
29800
29801 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
29802 (pred_mov<mode>): Handle all-register forms using both a new
29803 alternative and a split.
29804
29805 2019-01-25 Richard Biener <rguenther@suse.de>
29806
29807 PR tree-optimization/86865
29808 * graphite-scop-detection.c (scop_detection::can_represent_loop):
29809 Reject non-do-while loops.
29810
29811 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
29812
29813 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
29814 * config/rs6000/constraints.md (Q constraint): Use REG_P.
29815 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
29816 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
29817 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
29818 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
29819 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
29820 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
29821 vlogical_operand, gpc_reg_operand, int_reg_operand,
29822 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
29823 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
29824 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
29825 (save_world_operation, restore_world_operation, lmw_operation,
29826 stmw_operation): Use MEM_P and REG_P.
29827 (tie_operand): Use MEM_P.
29828 (vrsave_operation, crsave_operation): Use REG_P.
29829 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
29830 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
29831 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
29832 (call_operand): Use HARD_REGISTER_P.
29833 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
29834 Use CONST_INT_P.
29835 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
29836 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
29837 quad_aligned_load_p, replace_swapped_aligned_store,
29838 recombine_lvx_pattern, replace_swapped_aligned_load,
29839 recombine_stvx_pattern): Use MEM_P.
29840 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
29841 Use MEM_P and SYMBOL_REF_P.
29842 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
29843 (insn_is_swappable_p): Use REG_P and MEM_P.
29844 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
29845 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
29846 Use CONST_INT_P.
29847 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
29848 Use CONST_DOUBLE_P.
29849 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
29850 CONST_WIDE_INT_P.
29851 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
29852 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
29853 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
29854 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
29855 reg_or_subregno:
29856 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
29857 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
29858 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
29859 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
29860 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
29861 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
29862 rs6000_split_logical_di): Use CONST_INT_P.
29863 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
29864 REG_P and SYMBOL_REF_P.
29865 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
29866 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
29867 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
29868 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
29869 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
29870 (small_data_operand, print_operand_address): Use CONST_INT_P and
29871 SYMBOL_REF_P.
29872 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
29873 (rs6000_init_hard_regno_mode_ok, direct_move_p):
29874 Use HARD_REGISTER_NUM_P.
29875 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
29876 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
29877 SUBREG_P and SYMBOL_REF_P.
29878 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
29879 and HARD_REGISTER_NUM_P.
29880 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
29881 reg_or_subregno.
29882 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
29883 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
29884 MEM_P and REG_P.
29885 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
29886 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
29887 find_addr_reg): Use REG_P.
29888 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
29889 (rs6000_emit_le_vsx_move): Use SUBREG_P.
29890 (offsettable_ok_by_alignment, constant_pool_expr_p,
29891 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
29892 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
29893 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
29894 rs6000_assemble_integer, create_TOC_reference,
29895 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
29896 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
29897 (rs6000_split_vec_extract_var): Use reg_or_subregno.
29898 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
29899 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
29900 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
29901 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
29902 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
29903 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
29904 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
29905 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
29906 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
29907 and cbranch<mode>4): Use CONST_INT_P.
29908 (multiple define_splits): Use REG_P and SUBREG_P.
29909 (define_expands call, call_value): Use MEM_P.
29910 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
29911 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
29912 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
29913 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
29914 and HARD_REGISTER_NUM_P.
29915 (multiple define_splits): Use HARD_REGISTER_NUM_P.
29916
29917 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
29918
29919 PR rtl-optimization/88948
29920 * rtl.h (prepare_copy_insn): New prototype.
29921 * gcse.c (prepare_copy_insn): New function, split out from
29922 process_insert_insn.
29923 (process_insert_insn): Use prepare_copy_insn.
29924 * store-motion.c (replace_store_insn): Use prepare_copy_insn
29925 instead of gen_move_insn.
29926
29927 2019-01-24 Jakub Jelinek <jakub@redhat.com>
29928
29929 PR debug/89006
29930 * config/i386/i386.c (ix86_pic_register_p): Return true for
29931 UNSPEC_SET_GOT too.
29932
29933 PR tree-optimization/88964
29934 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
29935 punt if HONOR_SNANS (chrec).
29936
29937 PR middle-end/89015
29938 * tree-nested.c (convert_nonlocal_reference_stmt,
29939 convert_local_reference_stmt, convert_tramp_reference_stmt,
29940 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
29941 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
29942 or GIMPLE_OMP_TASK.
29943
29944 PR tree-optimization/89027
29945 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
29946 for "omp simd array" variables.
29947
29948 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
29949
29950 PR target/88469
29951 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
29952 force the alignment of m_val.
29953
29954 2019-01-24 Richard Biener <rguenther@suse.de>
29955
29956 PR lto/87187
29957 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
29958 When in "legacy" debug mode make sure to reset self-origins.
29959
29960 2019-01-24 Martin Liska <mliska@suse.cz>
29961
29962 PR gcov-profile/88994
29963 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
29964 result will be always smaller or equal to the original.
29965 * gcov.c (mangle_name): Fix else branch where we should
29966 also copy to PTR and shift the pointer.
29967
29968 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
29969
29970 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
29971 * vr-values.c (find_case_label_ranges): Fix a comment typo.
29972
29973 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
29974
29975 * common/config/i386/i386-common.c
29976 (OPTION_MASK_ISA_ENQCMD_SET,
29977 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
29978 (ix86_handle_option): Handle -menqcmd.
29979 * config.gcc (enqcmdintrin.h): New header file.
29980 * config/i386/cpuid.h (bit_ENQCMD): New bit.
29981 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
29982 -menqcmd.
29983 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
29984 function type.
29985 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
29986 __builtin_ia32_enqcmds): New builtins.
29987 * config/i386/i386-c.c (__ENQCMD__): New macro.
29988 * config/i386/i386-option.c (ix86_target_string): Add
29989 -menqcmd.
29990 (ix86_valid_target_attribute_inner_p): Likewise.
29991 * config/i386/i386-expand.c
29992 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
29993 IX86_BUILTIN_ENQCMDS.
29994 * config/i386/i386.h (TARGET_ENQCMD): New.
29995 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
29996 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
29997 (movdir64b_<mode>): Parameterize to enable share expansion code
29998 with ENQCMD in function ix86_expand_builtin.
29999 * config/i386/i386.opt: Add -menqcmd.
30000 * config/i386/immintrin.h: Include enqcmdintrin.h.
30001 * config/i386/enqcmdintrin.h: New intrinsic file.
30002 * doc/invoke.texi: Add -menqcmd.
30003
30004 2019-01-23 Bin Cheng <bin.cheng@arm.com>
30005 Steve Ellcey <sellcey@marvell.com>
30006
30007 PR target/85711
30008 * recog.c (address_operand): Return false on wrong mode for address.
30009 (constrain_operands): Check for mode with 'p' constraint.
30010
30011 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
30012
30013 PR target/88998
30014 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
30015 Disparage MMX alternative.
30016 (sse2_cvtpd2pi): Ditto.
30017 (sse2_cvttpd2pi): Ditto.
30018
30019 2019-01-23 David Malcolm <dmalcolm@redhat.com>
30020
30021 PR driver/89014
30022 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
30023 use-after-free of the result of
30024 aarch64_get_extension_string_for_isa_flags.
30025
30026 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30027
30028 PR c/44715
30029 * doc/extend.texi: Document break and continue behavior in
30030 statement expressions.
30031
30032 2019-01-23 Richard Biener <rguenther@suse.de>
30033
30034 PR tree-optimization/89008
30035 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
30036 not leave another stray operand.
30037
30038 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30039
30040 * BASE-VER: Bump to 9.0.1.
30041
30042 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
30043
30044 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
30045 thunk that returns by reference, use the type of the return object
30046 of the thunk instead of that of the alias to build the dereference.
30047
30048 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
30049
30050 * config/arc/atomic.md: Add operand to DMB instruction.
30051
30052 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30053
30054 PR tree-optimization/88964
30055 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
30056 build_zero_cst instead of build_int_cst. Return false for loop
30057 invariants which honor signed zeros.
30058
30059 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
30060
30061 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
30062
30063 2019-01-22 Jakub Jelinek <jakub@redhat.com>
30064
30065 PR target/88965
30066 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
30067 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
30068 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
30069
30070 PR middle-end/88968
30071 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
30072 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
30073
30074 PR target/87064
30075 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
30076 Disable for little endian.
30077
30078 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
30079
30080 PR target/88469
30081 * config/arm/arm.c (arm_needs_double_word_align): Check
30082 DECL_BIT_FIELD_TYPE.
30083
30084 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
30085 H.J. Lu <hongjiu.lu@intel.com>
30086
30087 PR target/88909
30088 * config/i386/i386-builtin.def: Add mask2 to all builtin
30089 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
30090 SPECIAL_ARGS.
30091 * config/i386/i386.c (BDESC): Add mask2 to the definition.
30092 (BDESC_FIRST): Likewise.
30093 (define_builtin): Add an argument for mask2. Updated to handle
30094 both ix86_isa_flags and ix86_isa_flags2.
30095 (define_builtin_const): Likewise.
30096 (define_builtin_pure): Likewise.
30097 (define_builtin2): Deleted.
30098 (define_builtin_const2): Likewise.
30099 (builtin_description): Add a member, mask2.
30100 (bdesc_*): Add mask2 to builtin initializations.
30101 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
30102 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
30103 support.
30104 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
30105
30106 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
30107
30108 PR target/88954
30109 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
30110 noplt attribute.
30111
30112 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
30113
30114 PR target/88469
30115 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
30116 alignment is dominated by a bitfield with 64-bit aligned base type.
30117 (arm_function_arg): Emit a warning if the alignment has changed since
30118 earlier GCC releases.
30119 (arm_function_arg_boundary): Likewise.
30120 (arm_setup_incoming_varargs): Likewise.
30121
30122 2019-01-22 Richard Biener <rguenther@suse.de>
30123
30124 PR tree-optimization/88862
30125 * graphite-scop-detection.c
30126 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
30127
30128 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
30129
30130 * doc/extend.tex (AMD GCN Function Attributes): New section.
30131 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
30132 * doc/invoke.texi (AMD GCN Options): New section.
30133 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
30134
30135 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
30136
30137 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
30138 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
30139
30140 2019-01-22 Jakub Jelinek <jakub@redhat.com>
30141
30142 PR tree-optimization/88044
30143 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
30144 is false in the first iteration, but !every_iteration, return false
30145 instead of true with niter->niter zero.
30146
30147 PR rtl-optimization/88904
30148 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
30149 any nonequal registers before processing BB_END (b).
30150
30151 PR target/88905
30152 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
30153 GET_MODE (op0).
30154 (expand_binop_directly, expand_doubleword_clz,
30155 expand_doubleword_popcount, expand_ctz, expand_ffs,
30156 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
30157
30158 PR rtl-optimization/49429
30159 PR target/49454
30160 PR rtl-optimization/86334
30161 PR target/88906
30162 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
30163 addressable from here...
30164 (emit_block_op_via_libcall): ... to here.
30165
30166 2019-01-22 Richard Biener <rguenther@suse.de>
30167
30168 * tree-vect-loop.c (vect_analyze_loop_operations): Use
30169 auto_vec for cost vector to fix memleak.
30170 (vectorize_fold_left_reduction): Properly gather SLP defs.
30171 (vectorizable_comparison): Do not swap operands to properly
30172 gather SLP defs.
30173
30174 2019-01-22 Alan Modra <amodra@gmail.com>
30175
30176 PR target/88614
30177 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
30178 stays a reg. Allow a const_int.
30179 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
30180 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
30181 (IS_NOMARK_TLSGETADDR): Define.
30182 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
30183 (rs6000_output_tlsargs): New function.
30184 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
30185 __tls_get_addr call takes an arg.
30186 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
30187 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
30188 delete split..
30189 (call_value_nonlocal_sysv): ..or here, delete split.
30190 (tls_gdld_nomark): Delete.
30191 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
30192 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
30193 (call_value_nonlocal_sysv): Likewise.
30194 (call_value_nonlocal_sysv_secure): Likewise.
30195 (call_value_nonlocal_aix): Likewise.
30196 (call_value_indirect_aix): Likewise.
30197 (call_value_indirect_elfv2): Likewise.
30198 (call_value_local32, call_value_local64): Disable for no-mark tls.
30199 (call_value_local_aix): Likewise.
30200
30201 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
30202
30203 PR target/88938
30204 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
30205 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
30206
30207 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
30208
30209 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
30210 string contents as hash_map keys.
30211
30212 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
30213
30214 PR c/88928
30215 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
30216 for rvalue context. Handle rvalues correctly. Use min_align_of_type
30217 instead of TYPE_ALIGN.
30218 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
30219 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
30220 pointer from TYPE_STUB_DECL.
30221
30222 2019-01-21 Richard Biener <rguenther@suse.de>
30223
30224 PR tree-optimization/88934
30225 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
30226 at the possibly non-constant operand.
30227 (vect_get_constant_vectors): Adjust.
30228
30229 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
30230
30231 PR target/71659
30232 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
30233 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
30234 instead of _X86INTRIN_H_INCLUDED.
30235 * onfig/i386/clwbintrin.h: Likewise.
30236 * config/i386/pkuintrin.h: Likewise.
30237 * config/i386/prfchwintrin.h: Likewise.
30238 * config/i386/rdseedintrin.h: Likewise.
30239 * config/i386/wbnoinvdintrin.h: Likewise.
30240 * config/i386/xsavecintrin.h: Likewise.
30241 * config/i386/xsavesintrin.h: Likewise.
30242 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
30243 * config/i386/xsaveintrin.h: Likewise.
30244 * config/i386/xsaveoptintrin.h: Likewise.
30245 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
30246 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
30247 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
30248 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
30249 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
30250 * config/i386/immintrin.h: Here.
30251
30252 2019-01-20 Martin Jambor <mjambor@suse.cz>
30253
30254 PR ipa/87615
30255 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
30256 with aa_walk_budget.
30257 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
30258 aa_walk_budget_p parameter.
30259 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
30260 walk. Updated all callers.
30261 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
30262 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
30263 unmodified_parm.
30264 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
30265 parameter info. Extract info from fbi. Pass fbi to recursive calls
30266 and to unmodified_parm.
30267 (phi_result_unknown_predicate): New parameter fbi, removed parameter
30268 info, updated call to will_be_nonconstant_expr_predicate.
30269 (param_change_prob): New parameter fbi, limit AA walking.
30270 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
30271 calls to various above functions.
30272 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
30273 parameter. Use it to limit AA walking.
30274 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
30275 fbi, limit AA walk.
30276 (detect_type_change): New parameter fbi, pass it on to
30277 detect_type_change_from_memory_writes.
30278 (detect_type_change_ssa): Likewise.
30279 (aa_overwalked): Removed.
30280 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
30281 accordingly, adjust to the neew AA limiting scheme.
30282 (parm_ref_data_preserved_p): Likewise.
30283 (ipa_compute_jump_functions_for_edge): Adjust call to
30284 get_dynamic_type.
30285 (ipa_analyze_call_uses): Likewise.
30286 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
30287 (ipa_analyze_node): Initialize aa_walk_budget.
30288 (ipcp_transform_function): Likewise.
30289 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
30290 to get_dynamic_type.
30291
30292 2019-01-19 Jakub Jelinek <jakub@redhat.com>
30293
30294 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
30295 outside of #if CHECKING_P code.
30296
30297 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
30298
30299 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
30300 New function, split out from...
30301 (loop_versioning::analyze_stride): ...here.
30302 (loop_versioning::find_per_loop_multiplication): Use gassign.
30303 (loop_versioning::analyze_term_using_scevs): Return a success code.
30304 (loop_versioning::analyze_arbitrary_term): New function.
30305 (loop_versioning::analyze_address_fragment): Use
30306 analyze_arbitrary_term if all else fails.
30307
30308 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
30309
30310 PR target/88892
30311 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
30312 operands.
30313
30314 2019-01-18 Richard Biener <rguenther@suse.de>
30315
30316 PR tree-optimization/88903
30317 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
30318 scalar stmts a SLP shift amount is composed of when detecting
30319 shifts by scalars.
30320
30321 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
30322
30323 PR target/88799
30324 * config/arm/arm-cpus.in (mp): New feature.
30325 (sec): New feature.
30326 (fgroup ARMv7ve): Add mp and sec features.
30327 (arch armv7-a): Add options to allow mp and sec extensions.
30328 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
30329 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
30330 extenstions to the base architecture.
30331 (cpu cortex-a8): Add sec extension to the base architecture.
30332 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
30333 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
30334 variants down to the base v7-a varaint.
30335 * config/arm/t-multilib (v7_a_arch_variants): New variable.
30336 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
30337 of permitted extensions for -march=armv7-a and for
30338 -mcpu=generic-armv7-a.
30339
30340 2019-01-18 Martin Liska <mliska@suse.cz>
30341
30342 * params.def: Fix comment.
30343 * tree-profile.c (gimple_init_gcov_profiler): Bump function
30344 name.
30345 (gimple_gen_ic_func_profiler): Likewise.
30346
30347 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30348
30349 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
30350 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
30351 and put in error checks for stack protector guard options.
30352 (aarch64_stack_protect_guard): New.
30353 (TARGET_STACK_PROTECT_GUARD): Define.
30354 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
30355 (reg_stack_protect_address<mode>): New.
30356 (stack_protect_set): Adjust for SSP_GLOBAL.
30357 (stack_protect_test): Likewise.
30358 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
30359 (-mstack-protector-guard): Likewise.
30360 (-mstack-protector-guard-offset): Likewise.
30361
30362 2019-01-18 Jakub Jelinek <jakub@redhat.com>
30363
30364 PR tree-optimization/86214
30365 * tree-inline.h (struct copy_body_data): Add
30366 add_clobbers_to_eh_landing_pads member.
30367 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
30368 (copy_edges_for_bb): Call it if EH edge destination is <
30369 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
30370 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
30371 if flag_stack_reuse != SR_NONE and clear it afterwards.
30372
30373 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
30374
30375 PR target/85596
30376 * doc/install.texi (with-multilib-list): Document for aarch64.
30377
30378 2019-01-18 Jakub Jelinek <jakub@redhat.com>
30379
30380 PR target/88734
30381 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
30382 (("..."))) with ("...").
30383
30384 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
30385
30386 * doc/extend.texi (Built-in Functions for Memory Model Aware
30387 Atomic Operations): Document atomic fetch and nand.
30388
30389 2019-01-18 Martin Liska <mliska@suse.cz>
30390 Richard Biener <rguenther@suse.de>
30391
30392 PR middle-end/88587
30393 * cgraph.h (create_version_clone_with_body): Add new argument
30394 with attributes.
30395 * cgraphclones.c (cgraph_node::create_version_clone): Add
30396 DECL_ATTRIBUTES to a newly created decl. And call
30397 valid_attribute_p so that proper cl_target_optimization_node
30398 is set for the newly created declaration.
30399 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
30400 for declaration.
30401 (expand_target_clones): Do not call valid_attribute_p, it must
30402 be already done.
30403 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
30404 vector types.
30405
30406 2019-01-17 Jakub Jelinek <jakub@redhat.com>
30407
30408 PR target/88734
30409 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
30410 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
30411 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
30412
30413 2019-01-17 Martin Sebor <msebor@redhat.com>
30414
30415 PR middle-end/88273
30416 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
30417 Handle anti-ranges the same as no range at all.
30418
30419 2018-01-17 Steve Ellcey <sellcey@cavium.com>
30420
30421 * config/aarch64/aarch64.c (cgraph.h): New include.
30422 (intl.h): New include.
30423 (supported_simd_type): New function.
30424 (currently_supported_simd_type): Ditto.
30425 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
30426 (aarch64_simd_clone_adjust): Ditto.
30427 (aarch64_simd_clone_usable): Ditto.
30428 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
30429 (TARGET_SIMD_CLONE_ADJUST): Ditto.
30430 (TARGET_SIMD_CLONE_USABLE): Ditto.
30431 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
30432 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
30433 call.
30434
30435 2019-01-17 Martin Sebor <msebor@redhat.com>
30436
30437 PR tree-optimization/88800
30438 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
30439 NO_WARNING bit here. Avoid folding out-of-bounds calls.
30440 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
30441 redundant argument. Add new argument and issue diagnostics under
30442 its control. Detect out-of-bounds access even with warnings
30443 disabled.
30444 (check_bounds_or_overlap): Change return type. Add argument.
30445 (wrestrict_dom_walker::check_call): Adjust.
30446 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
30447 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
30448 check_bounds_or_overlap's return value.
30449 (handle_builtin_stxncpy): Same.
30450 (handle_builtin_strcat): Same.
30451
30452 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30453 Kwok Cheung Yeung <kcy@codesourcery.com>
30454 Julian Brown <julian@codesourcery.com>
30455 Tom de Vries <tom@codesourcery.com>
30456
30457 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
30458
30459 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30460
30461 * doc/sourcebuild.texi: Document dg-require-effective-target
30462 llvm_binutils and offload_gcn.
30463
30464 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30465 Kwok Cheung Yeung <kcy@codesourcery.com>
30466 Julian Brown <julian@codesourcery.com>
30467 Tom de Vries <tom@codesourcery.com>
30468
30469 * doc/sourcebuild.texi: Document dg-required-effective-target
30470 exceptions.
30471
30472 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30473 Kwok Cheung Yeung <kcy@codesourcery.com>
30474 Julian Brown <julian@codesourcery.com>
30475 Tom de Vries <tom@codesourcery.com>
30476 Jan Hubicka <hubicka@ucw.cz>
30477 Martin Jambor <mjambor@suse.cz>
30478
30479 * config.gcc: Add amdgcn*-*-amdhsa configuration.
30480 * configure.ac: Check for dlopen.
30481 * configure: Regenerate.
30482
30483 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30484 Kwok Cheung Yeung <kcy@codesourcery.com>
30485 Julian Brown <julian@codesourcery.com>
30486 Tom de Vries <tom@codesourcery.com>
30487 Jan Hubicka <hubicka@ucw.cz>
30488 Martin Jambor <mjambor@suse.cz>
30489
30490 * common/config/gcn/gcn-common.c: New file.
30491 * config/gcn/driver-gcn.c: New file.
30492 * config/gcn/gcn-builtins.def: New file.
30493 * config/gcn/gcn-hsa.h: New file.
30494 * config/gcn/gcn-modes.def: New file.
30495 * config/gcn/gcn-opts.h: New file.
30496 * config/gcn/gcn-passes.def: New file.
30497 * config/gcn/gcn-protos.h: New file.
30498 * config/gcn/gcn-run.c: New file.
30499 * config/gcn/gcn-tree.c: New file.
30500 * config/gcn/gcn.c: New file.
30501 * config/gcn/gcn.h: New file.
30502 * config/gcn/gcn.opt: New file.
30503 * config/gcn/t-gcn-hsa: New file.
30504
30505 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30506 Kwok Cheung Yeung <kcy@codesourcery.com>
30507 Julian Brown <julian@codesourcery.com>
30508 Tom de Vries <tom@codesourcery.com>
30509 Jan Hubicka <hubicka@ucw.cz>
30510 Martin Jambor <mjambor@suse.cz>
30511
30512 * config/gcn/constraints.md: New file.
30513 * config/gcn/gcn-valu.md: New file.
30514 * config/gcn/gcn.md: New file.
30515 * config/gcn/predicates.md: New file.
30516
30517 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
30518
30519 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
30520 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
30521 (stmt_uses_0_or_null_in_undefined_way): Likewise.
30522 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
30523
30524 2019-01-17 Tamar Christina <tamar.christina@arm.com>
30525
30526 PR target/88851
30527 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
30528 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
30529 it and document registers.
30530
30531 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30532
30533 * config/aarch64/aarch64.c (ares_tunings): Define.
30534 * config/aarch64/aarch64-cores.def (ares): Use the above.
30535
30536 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
30537
30538 PR target/88794
30539 Revert:
30540 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
30541
30542 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
30543 (_mm512_fixupimm_round_pd): Update parameters and builtin.
30544 (_mm512_maskz_fixupimm_round_pd): Ditto.
30545 (_mm512_fixupimm_round_ps): Ditto.
30546 (_mm512_maskz_fixupimm_round_ps): Ditto.
30547 (_mm_fixupimm_round_sd): Ditto.
30548 (_mm_maskz_fixupimm_round_sd): Ditto.
30549 (_mm_fixupimm_round_ss): Ditto.
30550 (_mm_maskz_fixupimm_round_ss): Ditto.
30551 (_mm512_fixupimm_pd): Ditto.
30552 (_mm512_maskz_fixupimm_pd): Ditto.
30553 (_mm512_fixupimm_ps): Ditto.
30554 (_mm512_maskz_fixupimm_ps): Ditto.
30555 (_mm_fixupimm_sd): Ditto.
30556 (_mm_maskz_fixupimm_sd): Ditto.
30557 (_mm_fixupimm_ss): Ditto.
30558 (_mm_maskz_fixupimm_ss): Ditto.
30559 (_mm512_mask_fixupimm_round_pd): Update builtin.
30560 (_mm512_mask_fixupimm_round_ps): Ditto.
30561 (_mm_mask_fixupimm_round_sd): Ditto.
30562 (_mm_mask_fixupimm_round_ss): Ditto.
30563 (_mm512_mask_fixupimm_pd): Ditto.
30564 (_mm512_mask_fixupimm_ps): Ditto.
30565 (_mm_mask_fixupimm_sd): Ditto.
30566 (_mm_mask_fixupimm_ss): Ditto.
30567 * config/i386/avx512vlintrin.h:
30568 (_mm256_fixupimm_pd): Update parameters and builtin.
30569 (_mm256_maskz_fixupimm_pd): Ditto.
30570 (_mm256_fixupimm_ps): Ditto.
30571 (_mm256_maskz_fixupimm_ps): Ditto.
30572 (_mm_fixupimm_pd): Ditto.
30573 (_mm_maskz_fixupimm_pd): Ditto.
30574 (_mm_fixupimm_ps): Ditto.
30575 (_mm_maskz_fixupimm_ps): Ditto.
30576 (_mm256_mask_fixupimm_pd): Update builtin.
30577 (_mm256_mask_fixupimm_ps): Ditto.
30578 (_mm_mask_fixupimm_pd): Ditto.
30579 (_mm_mask_fixupimm_ps): Ditto.
30580 * config/i386/i386-builtin-types.def: Add new types and remove
30581 useless ones.
30582 * config/i386/i386-builtin.def: Update builtin definitions.
30583 * config/i386/i386.c: Handle new builtin types and remove useless ones.
30584 * config/i386/sse.md: Update VFIXUPIMM* patterns.
30585 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30586 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30587 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
30588 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30589 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30590 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
30591 * config/i386/subst.md:
30592 (round_saeonly_sd_mask_operand4): Add new subst_attr.
30593 (round_saeonly_sd_mask_op4): Ditto.
30594 (round_saeonly_expand_operand5): Ditto.
30595 (round_saeonly_expand): Update.
30596
30597 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
30598
30599 PR target/88794
30600 Revert:
30601 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
30602
30603 * config/i386/sse.md: Combine VFIXUPIMM* patterns
30604 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30605 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30606 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
30607 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30608 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30609 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
30610
30611 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
30612
30613 PR target/88794
30614 Revert:
30615 2018-12-15 Jakub Jelinek <jakub@redhat.com>
30616
30617 PR target/88489
30618 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
30619 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
30620 instead of UNSPEC_FIXUPIMM.
30621
30622 2019-01-17 Richard Biener <rguenther@suse.de>
30623
30624 PR lto/86736
30625 * dwarf2out.c (want_pubnames): Never generate pubnames sections
30626 and friends for the LTO part of debug info.
30627
30628 2019-01-17 Jakub Jelinek <jakub@redhat.com>
30629
30630 PR tree-optimization/86214
30631 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
30632 if x == y.
30633
30634 PR rtl-optimization/88870
30635 * dce.c (deletable_insn_p): Never delete const/pure calls that can
30636 throw if we can't alter the cfg or delete dead exceptions.
30637 (mark_insn): Don't call find_call_stack_args for such calls.
30638
30639 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
30640
30641 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
30642 prototypes for vec_st.
30643 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
30644 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
30645 mainly on signed/unsigned long long and double.
30646
30647 2019-01-16 David Malcolm <dmalcolm@redhat.com>
30648
30649 PR target/88861
30650 * combine.c (delete_noop_moves): Convert to "bool" return,
30651 returning true if any edges are eliminated.
30652 (combine_instructions): Also return true if delete_noop_moves
30653 returns true.
30654
30655 2019-01-16 Tamar Christina <tamar.christina@arm.com>
30656
30657 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
30658 correct max nunits for endian swap.
30659 (aarch64_expand_fcmla_builtin): Correct subreg code.
30660 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
30661 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
30662 lane endianness.
30663
30664 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
30665
30666 * config/alpha/alpha.c (alpha_gimplify_va_arg):
30667 Handle split indirect COMPLEX_TYPE arguments.
30668
30669 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
30670
30671 PR target/86891
30672 * config/aarch64/aarch64-modes.def: Add comment about how the carry
30673 bit is set by add and compare.
30674 (CC_ADC): New CC_MODE.
30675 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
30676 to cache the code and mode of X. Adjust the shape of a CC_Cmode
30677 comparison. Add detection for CC_ADCmode.
30678 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
30679 CC_ADCmode.
30680 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
30681 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
30682 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
30683 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
30684 to eliminate the need for zero-extending the operands.
30685 (add<mode>3_compareC_imm): Delete. Merge into ...
30686 (add<mode>3_compareC): ... this. Restructure the comparison to
30687 eliminate the need for zero-extending the operands.
30688 (add<mode>3_carryin): Use LTU for the overflow detection.
30689 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
30690 Reexpress comparison for overflow.
30691 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
30692 (add<mode>3_carryinC): Likewise.
30693 (add<mode>3_carryinV): Use LTU for carry between partials.
30694 * config/aarch64/predicates.md (aarch64_carry_operation): Update
30695 handling of CC_Cmode and add CC_ADCmode.
30696 (aarch64_borrow_operation): Likewise.
30697
30698 2019-01-16 Tamar Christina <tamar.christina@arm.com>
30699
30700 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
30701 Remove patternmode.
30702 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
30703 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
30704 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
30705 Remove endianness conversion.
30706
30707 2019-01-16 Martin Liska <mliska@suse.cz>
30708
30709 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
30710 for GCC driver.
30711 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
30712 a new argument.
30713 * gcc.c (add_sysrooted_hdrs_prefix): New function.
30714 (path_prefix_reset): Move up in the source file.
30715 (find_fortran_preinclude_file): Make complex search for the
30716 fortran header files.
30717
30718 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
30719
30720 * godump.c (go_output_typedef): When outputting a typedef, refer
30721 to the underlying type by its name and not its structure.
30722
30723 2019-01-15 David Malcolm <dmalcolm@redhat.com>
30724
30725 PR c++/88795
30726 * tree.c (build_function_type): Assert that arg_types is not
30727 error_mark_node.
30728
30729 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
30730
30731 PR inline-asm/52813
30732 * doc/extend.texi: Document that listing the stack pointer in the
30733 clobber list of an asm is a deprecated feature.
30734 * common.opt (Wdeprecated): Moved from c-family/c.opt.
30735 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
30736 warning instead of an error for clobbers of the stack pointer.
30737 Add a note explaining why.
30738
30739 2019-01-15 Richard Biener <rguenther@suse.de>
30740
30741 PR debug/88046
30742 * dwarf2out.c (gen_member_die): Do not generate inheritance
30743 DIEs late.
30744
30745 2019-01-15 Richard Biener <rguenther@suse.de>
30746
30747 PR tree-optimization/88855
30748 * tree-if-conv.c (combine_blocks): Collect
30749 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
30750
30751 2019-01-15 Tom de Vries <tdevries@suse.de>
30752
30753 PR target/80547
30754 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
30755 lhs == NULL_TREE for gang-level reduction.
30756
30757 2019-01-15 Richard Biener <rguenther@suse.de>
30758 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30759
30760 PR ipa/88788
30761 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
30762 return true if SSA_NAME is already marked in visited bitmap.
30763 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
30764
30765 2019-01-15 Jakub Jelinek <jakub@redhat.com>
30766
30767 PR tree-optimization/88775
30768 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
30769 equal == 0 equality pointer comparisons some more if compared in
30770 integral types and either one points to an automatic var and the
30771 other to a global, or we can prove at least one points to the middle
30772 or both point to start or both point to end.
30773
30774 2019-01-14 Andi Kleen <ak@linux.intel.com>
30775
30776 * Makefile.in: Lower autofdo sampling rate by 10x.
30777 * Makefile.tpl: Dito.
30778
30779 2019-01-14 Tom Honermann <tom@honermann.net>
30780
30781 * defaults.h: Define CHAR8_TYPE.
30782
30783 2019-01-14 Martin Sebor <msebor@redhat.com>
30784
30785 PR target/88638
30786 * doc/extend.texi (Darwin Format Checks): Clarify.
30787
30788 2019-01-14 Richard Biener <rguenther@suse.de>
30789
30790 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
30791 whether we are in (simplify ...) or (match ...) context.
30792
30793 2019-01-14 Jakub Jelinek <jakub@redhat.com>
30794
30795 PR rtl-optimization/88796
30796 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
30797 * cfgexpand.c (stack_protect_prologue): Initialize
30798 crtl->stack_protect_guard_decl.
30799 * function.c (stack_protect_epilogue): Use it instead of calling
30800 targetm.stack_protect_guard again.
30801 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
30802 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
30803 crtl->stack_protect_guard_decl.
30804 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
30805 on the returned MEM_EXPR.
30806
30807 2019-01-12 Tom de Vries <tdevries@suse.de>
30808
30809 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
30810 vector length using -fopenacc-dim.
30811
30812 2019-01-12 Tom de Vries <tdevries@suse.de>
30813
30814 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
30815 lengths into account.
30816
30817 2019-01-12 Svante Signell <svante.signell@gmail.com>
30818
30819 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
30820 (TARGET_CAN_SPLIT_STACK): Define.
30821 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
30822
30823 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
30824
30825 * params.def (inline-unit-growth): Set to 40.
30826
30827 2019-01-12 Jakub Jelinek <jakub@redhat.com>
30828
30829 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
30830
30831 2019-01-12 Tom de Vries <tdevries@suse.de>
30832
30833 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
30834 region calling vector-partitionable routine, set default_vector_length
30835 to WARP_SIZE.
30836
30837 2019-01-12 Tom de Vries <tdevries@suse.de>
30838
30839 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
30840 variable default_vector_length.
30841
30842 2019-01-12 Tom de Vries <tdevries@suse.de>
30843
30844 PR middle-end/88703
30845 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
30846 from oacc_default_dims, as oacc_validate_dims would do it, and apply
30847 dimensions limits.
30848
30849 2019-01-12 Tom de Vries <tdevries@suse.de>
30850
30851 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
30852 (nvptx_goacc_validate_dims): Add used parameter.
30853 * doc/tm.texi: Regenerate.
30854 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
30855 argument to call to targetm.goacc.validate_dims.
30856 (default_goacc_validate_dims): Add used
30857 parameter.
30858 * target.def (validate_dims): Add used parameter in DEFHOOK.
30859 * targhooks.h (default_goacc_validate_dims): Add used parameter.
30860
30861 2019-01-11 Jakub Jelinek <jakub@redhat.com>
30862
30863 PR middle-end/85956
30864 PR lto/88733
30865 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
30866 field.
30867 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
30868 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
30869 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
30870 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
30871
30872 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
30873
30874 PR rtl-optimization/87305
30875 * lra-assigns.c
30876 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
30877 for little endian pseudos used as paradoxical subreg.
30878
30879 2019-01-11 Jakub Jelinek <jakub@redhat.com>
30880
30881 PR tree-optimization/88693
30882 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
30883 for STRING_CSTs that don't contain any NUL characters in the first
30884 TREE_STRING_LENGTH bytes.
30885
30886 2019-01-11 Alan Modra <amodra@gmail.com>
30887
30888 PR 88777
30889 PR 88614
30890 * genattrtab.c (min_fn): Don't translate values.
30891 (min_attr_value): Return INT_MAX when the value can't be calculated.
30892 Return minimum among any values that can be calculated.
30893 (max_attr_value): Adjust.
30894
30895 2019-01-11 Jakub Jelinek <jakub@redhat.com>
30896
30897 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
30898
30899 2019-01-11 Steve Ellcey <sellcey@marvell.com>
30900
30901 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
30902 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
30903 (aarch64_return_call_with_max_clobbers): New function.
30904 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
30905 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
30906 argument.
30907 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
30908 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
30909 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
30910 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
30911 * cselib.c (cselib_process_insn): Add argument to
30912 targetm.hard_regno_call_part_clobbered call.
30913 * ira-conflicts.c (ira_build_conflicts): Ditto.
30914 * ira-costs.c (ira_tune_allocno_costs): Ditto.
30915 * lra-constraints.c (inherit_reload_reg): Ditto.
30916 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
30917 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
30918 argument. Call targetm.return_call_with_max_clobbers.
30919 Add argument to targetm.hard_regno_call_part_clobbered call.
30920 (calls_have_same_clobbers_p): New function.
30921 (process_bb_lives): Add call_insn and last_call_insn variables.
30922 Pass call_insn to check_pseudos_live_through_calls.
30923 Modify if stmt to check targetm.return_call_with_max_clobbers.
30924 Update setting of flush variable.
30925 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
30926 to false.
30927 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
30928 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
30929 targetm.hard_regno_call_part_clobbered call.
30930 * reginfo.c (choose_hard_reg_mode): Ditto.
30931 * regrename.c (check_new_reg_p): Ditto.
30932 * reload.c (find_equiv_reg): Ditto.
30933 * reload1.c (emit_reload_insns): Ditto.
30934 * sched-deps.c (deps_analyze_insn): Ditto.
30935 * sel-sched.c (init_regs_for_mode): Ditto.
30936 (mark_unavailable_hard_regs): Ditto.
30937 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
30938 * target.def (hard_regno_call_part_clobbered): Add insn argument.
30939 (return_call_with_max_clobbers): New target function.
30940 * doc/tm.texi: Regenerate.
30941 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
30942 * hooks.c (hook_bool_uint_mode_false): Change to
30943 hook_bool_insn_uint_mode_false.
30944 * hooks.h (hook_bool_uint_mode_false): Ditto.
30945
30946 2019-01-11 Steve Ellcey <sellcey@marvell.com>
30947
30948 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
30949 (aarch64_remove_extra_call_preserved_regs): New function.
30950 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
30951 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
30952 * doc/tm.texi: Regenerate.
30953 * final.c (get_call_reg_set_usage): Call new hook.
30954 * target.def (remove_extra_call_preserved_regs): New hook.
30955 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
30956 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
30957
30958 2019-01-11 Jakub Jelinek <jakub@redhat.com>
30959
30960 PR bootstrap/88714
30961 * passes.c (finish_optimization_passes): Call print_combine_total_stats
30962 inside of pass_combine_1 dump rather than pass_profile_1.
30963
30964 2019-01-11 Tom de Vries <tdevries@suse.de>
30965
30966 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
30967 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
30968 (PTX_NUM_PER_WORKER_BARRIERS): Define.
30969 (nvptx_apply_dim_limits): Prevent vector_length 64 and
30970 num_workers 16.
30971
30972 2019-01-11 Tom de Vries <tdevries@suse.de>
30973
30974 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
30975
30976 2019-01-11 Jan Beulich <jbeulich@suse.com>
30977
30978 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
30979 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
30980 sse2_cvtsi2sd): Add {l}.
30981 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
30982 syntax.
30983
30984 2019-01-10 Jakub Jelinek <jakub@redhat.com>
30985
30986 PR target/88785
30987 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
30988 define_expand.
30989 (*float<floatunssuffix>v2div2sf2): New define_insn.
30990 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
30991 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
30992 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
30993 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
30994 match_operands with "const0_operand" "C".
30995
30996 2019-01-10 Tamar Christina <tamar.christina@arm.com>
30997
30998 * config/aarch64/aarch64-builtins.c
30999 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
31000 (aarch64_init_simd_builtins): ...Here
31001
31002 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
31003
31004 PR rtl-optimization/87305
31005 * lra-assigns.c
31006 (setup_live_pseudos_and_spill_after_risky_transforms): Check
31007 allocation for big endian pseudos used as paradoxical subregs and
31008 spill them if it is wrong.
31009 * lra-constraints.c (lra_constraints): Add a comment.
31010
31011 2019-01-10 Richard Biener <rguenther@suse.de>
31012
31013 PR tree-optimization/88792
31014 * tree-ssa-pre.c (get_representative_for): Do not return a
31015 value-number here.
31016
31017 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31018
31019 PR middle-end/84877
31020 PR bootstrap/88450
31021 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
31022 (assign_parm_setup_block): Do the argument slot realignment here
31023 instead.
31024
31025 2019-01-10 Stefan Agner <stefan@agner.ch>
31026
31027 PR target/88648
31028 * config/arm/arm.c (arm_option_override_internal): Force
31029 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
31030
31031 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31032
31033 PR c/88568
31034 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
31035 DECL_EXTERNAL.
31036
31037 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31038
31039 * config/arm/arm-builtins.c
31040 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
31041 (MAC_LANE_PAIR_QUALIFIERS): New.
31042 (arm_expand_builtin_args): Use it.
31043 (arm_expand_builtin_1): Likewise.
31044 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
31045 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
31046 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
31047 * config/arm/arm_neon.h:
31048 (vcadd_rot90_f16): New.
31049 (vcaddq_rot90_f16): New.
31050 (vcadd_rot270_f16): New.
31051 (vcaddq_rot270_f16): New.
31052 (vcmla_f16): New.
31053 (vcmlaq_f16): New.
31054 (vcmla_lane_f16): New.
31055 (vcmla_laneq_f16): New.
31056 (vcmlaq_lane_f16): New.
31057 (vcmlaq_laneq_f16): New.
31058 (vcmla_rot90_f16): New.
31059 (vcmlaq_rot90_f16): New.
31060 (vcmla_rot90_lane_f16): New.
31061 (vcmla_rot90_laneq_f16): New.
31062 (vcmlaq_rot90_lane_f16): New.
31063 (vcmlaq_rot90_laneq_f16): New.
31064 (vcmla_rot180_f16): New.
31065 (vcmlaq_rot180_f16): New.
31066 (vcmla_rot180_lane_f16): New.
31067 (vcmla_rot180_laneq_f16): New.
31068 (vcmlaq_rot180_lane_f16): New.
31069 (vcmlaq_rot180_laneq_f16): New.
31070 (vcmla_rot270_f16): New.
31071 (vcmlaq_rot270_f16): New.
31072 (vcmla_rot270_lane_f16): New.
31073 (vcmla_rot270_laneq_f16): New.
31074 (vcmlaq_rot270_lane_f16): New.
31075 (vcmlaq_rot270_laneq_f16): New.
31076 (vcadd_rot90_f32): New.
31077 (vcaddq_rot90_f32): New.
31078 (vcadd_rot270_f32): New.
31079 (vcaddq_rot270_f32): New.
31080 (vcmla_f32): New.
31081 (vcmlaq_f32): New.
31082 (vcmla_lane_f32): New.
31083 (vcmla_laneq_f32): New.
31084 (vcmlaq_lane_f32): New.
31085 (vcmlaq_laneq_f32): New.
31086 (vcmla_rot90_f32): New.
31087 (vcmlaq_rot90_f32): New.
31088 (vcmla_rot90_lane_f32): New.
31089 (vcmla_rot90_laneq_f32): New.
31090 (vcmlaq_rot90_lane_f32): New.
31091 (vcmlaq_rot90_laneq_f32): New.
31092 (vcmla_rot180_f32): New.
31093 (vcmlaq_rot180_f32): New.
31094 (vcmla_rot180_lane_f32): New.
31095 (vcmla_rot180_laneq_f32): New.
31096 (vcmlaq_rot180_lane_f32): New.
31097 (vcmlaq_rot180_laneq_f32): New.
31098 (vcmla_rot270_f32): New.
31099 (vcmlaq_rot270_f32): New.
31100 (vcmla_rot270_lane_f32): New.
31101 (vcmla_rot270_laneq_f32): New.
31102 (vcmlaq_rot270_lane_f32): New.
31103 (vcmlaq_rot270_laneq_f32): New.
31104 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
31105 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
31106 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
31107 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
31108 vcmlaq_lane270): New.
31109 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
31110 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
31111 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
31112 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
31113 (arm_option_reconfigure_globals): Use them.
31114 * config/arm/iterators.md (VDF, VQ_HSF): New.
31115 (VCADD, VCMLA): New.
31116 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
31117 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
31118 New.
31119 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
31120 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
31121
31122 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31123
31124 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
31125 Add qualifier_lane_pair_index.
31126 (emit-rtl.h): Include.
31127 (TYPES_QUADOP_LANE_PAIR): New.
31128 (aarch64_simd_expand_args): Use it.
31129 (aarch64_simd_expand_builtin): Likewise.
31130 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
31131 New.
31132 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
31133 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
31134 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
31135 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
31136 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
31137 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
31138 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
31139 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
31140 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
31141 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
31142 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
31143 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
31144 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
31145 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
31146 Add __ARM_FEATURE_COMPLEX.
31147 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
31148 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
31149 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
31150 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
31151 fcmlaq_lane270): New.
31152 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
31153 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
31154 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
31155 * config/aarch64/arm_neon.h:
31156 (vcadd_rot90_f16): New.
31157 (vcaddq_rot90_f16): New.
31158 (vcadd_rot270_f16): New.
31159 (vcaddq_rot270_f16): New.
31160 (vcmla_f16): New.
31161 (vcmlaq_f16): New.
31162 (vcmla_lane_f16): New.
31163 (vcmla_laneq_f16): New.
31164 (vcmlaq_lane_f16): New.
31165 (vcmlaq_rot90_lane_f16): New.
31166 (vcmla_rot90_laneq_f16): New.
31167 (vcmla_rot90_lane_f16): New.
31168 (vcmlaq_rot90_f16): New.
31169 (vcmla_rot90_f16): New.
31170 (vcmlaq_laneq_f16): New.
31171 (vcmla_rot180_laneq_f16): New.
31172 (vcmla_rot180_lane_f16): New.
31173 (vcmlaq_rot180_f16): New.
31174 (vcmla_rot180_f16): New.
31175 (vcmlaq_rot90_laneq_f16): New.
31176 (vcmlaq_rot270_laneq_f16): New.
31177 (vcmlaq_rot270_lane_f16): New.
31178 (vcmla_rot270_laneq_f16): New.
31179 (vcmlaq_rot270_f16): New.
31180 (vcmla_rot270_f16): New.
31181 (vcmlaq_rot180_laneq_f16): New.
31182 (vcmlaq_rot180_lane_f16): New.
31183 (vcmla_rot270_lane_f16): New.
31184 (vcadd_rot90_f32): New.
31185 (vcaddq_rot90_f32): New.
31186 (vcaddq_rot90_f64): New.
31187 (vcadd_rot270_f32): New.
31188 (vcaddq_rot270_f32): New.
31189 (vcaddq_rot270_f64): New.
31190 (vcmla_f32): New.
31191 (vcmlaq_f32): New.
31192 (vcmlaq_f64): New.
31193 (vcmla_lane_f32): New.
31194 (vcmla_laneq_f32): New.
31195 (vcmlaq_lane_f32): New.
31196 (vcmlaq_laneq_f32): New.
31197 (vcmla_rot90_f32): New.
31198 (vcmlaq_rot90_f32): New.
31199 (vcmlaq_rot90_f64): New.
31200 (vcmla_rot90_lane_f32): New.
31201 (vcmla_rot90_laneq_f32): New.
31202 (vcmlaq_rot90_lane_f32): New.
31203 (vcmlaq_rot90_laneq_f32): New.
31204 (vcmla_rot180_f32): New.
31205 (vcmlaq_rot180_f32): New.
31206 (vcmlaq_rot180_f64): New.
31207 (vcmla_rot180_lane_f32): New.
31208 (vcmla_rot180_laneq_f32): New.
31209 (vcmlaq_rot180_lane_f32): New.
31210 (vcmlaq_rot180_laneq_f32): New.
31211 (vcmla_rot270_f32): New.
31212 (vcmlaq_rot270_f32): New.
31213 (vcmlaq_rot270_f64): New.
31214 (vcmla_rot270_lane_f32): New.
31215 (vcmla_rot270_laneq_f32): New.
31216 (vcmlaq_rot270_lane_f32): New.
31217 (vcmlaq_rot270_laneq_f32): New.
31218 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
31219 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
31220 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
31221 (FCADD, FCMLA): New.
31222 (rot): New.
31223 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
31224
31225 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
31226
31227 PR other/16615
31228
31229 * config/pa/pa.c: Change "can not" to "cannot".
31230 * gimple-ssa-evrp-analyze.c: Likewise.
31231 * ipa-icf.c: Likewise.
31232 * ipa-polymorphic-call.c: Likewise.
31233 * ipa-pure-const.c: Likewise.
31234 * lra-constraints.c: Likewise.
31235 * lra-remat.c: Likewise.
31236 * reload1.c: Likewise.
31237 * reorg.c: Likewise.
31238 * tree-ssa-uninit.c: Likewise.
31239
31240 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
31241
31242 PR other/16615
31243
31244 * Makefile.in: Mechanically replace "can not" with "cannot".
31245 * alias.c: Likewise.
31246 * builtins.c: Likewise.
31247 * calls.c: Likewise.
31248 * cgraph.c: Likewise.
31249 * cgraph.h: Likewise.
31250 * cgraphclones.c: Likewise.
31251 * cgraphunit.c: Likewise.
31252 * combine-stack-adj.c: Likewise.
31253 * combine.c: Likewise.
31254 * common/config/i386/i386-common.c: Likewise.
31255 * config/aarch64/aarch64.c: Likewise.
31256 * config/alpha/sync.md: Likewise.
31257 * config/arc/arc.c: Likewise.
31258 * config/arc/predicates.md: Likewise.
31259 * config/arm/arm-c.c: Likewise.
31260 * config/arm/arm.c: Likewise.
31261 * config/arm/arm.h: Likewise.
31262 * config/arm/arm.md: Likewise.
31263 * config/arm/cortex-r4f.md: Likewise.
31264 * config/csky/csky.c: Likewise.
31265 * config/csky/csky.h: Likewise.
31266 * config/darwin-f.c: Likewise.
31267 * config/epiphany/epiphany.md: Likewise.
31268 * config/i386/i386.c: Likewise.
31269 * config/i386/sol2.h: Likewise.
31270 * config/m68k/m68k.c: Likewise.
31271 * config/mcore/mcore.h: Likewise.
31272 * config/microblaze/microblaze.md: Likewise.
31273 * config/mips/20kc.md: Likewise.
31274 * config/mips/sb1.md: Likewise.
31275 * config/nds32/nds32.c: Likewise.
31276 * config/nds32/predicates.md: Likewise.
31277 * config/pa/pa.c: Likewise.
31278 * config/rs6000/e300c2c3.md: Likewise.
31279 * config/rs6000/rs6000.c: Likewise.
31280 * config/s390/s390.h: Likewise.
31281 * config/sh/sh.c: Likewise.
31282 * config/sh/sh.md: Likewise.
31283 * config/spu/vmx2spu.h: Likewise.
31284 * cprop.c: Likewise.
31285 * dbxout.c: Likewise.
31286 * df-scan.c: Likewise.
31287 * doc/cfg.texi: Likewise.
31288 * doc/extend.texi: Likewise.
31289 * doc/fragments.texi: Likewise.
31290 * doc/gty.texi: Likewise.
31291 * doc/invoke.texi: Likewise.
31292 * doc/lto.texi: Likewise.
31293 * doc/md.texi: Likewise.
31294 * doc/objc.texi: Likewise.
31295 * doc/rtl.texi: Likewise.
31296 * doc/tm.texi: Likewise.
31297 * dse.c: Likewise.
31298 * emit-rtl.c: Likewise.
31299 * emit-rtl.h: Likewise.
31300 * except.c: Likewise.
31301 * expmed.c: Likewise.
31302 * expr.c: Likewise.
31303 * fold-const.c: Likewise.
31304 * genautomata.c: Likewise.
31305 * gimple-fold.c: Likewise.
31306 * hard-reg-set.h: Likewise.
31307 * ifcvt.c: Likewise.
31308 * ipa-comdats.c: Likewise.
31309 * ipa-cp.c: Likewise.
31310 * ipa-devirt.c: Likewise.
31311 * ipa-fnsummary.c: Likewise.
31312 * ipa-icf.c: Likewise.
31313 * ipa-inline-transform.c: Likewise.
31314 * ipa-inline.c: Likewise.
31315 * ipa-polymorphic-call.c: Likewise.
31316 * ipa-profile.c: Likewise.
31317 * ipa-prop.c: Likewise.
31318 * ipa-pure-const.c: Likewise.
31319 * ipa-reference.c: Likewise.
31320 * ipa-split.c: Likewise.
31321 * ipa-visibility.c: Likewise.
31322 * ipa.c: Likewise.
31323 * ira-build.c: Likewise.
31324 * ira-color.c: Likewise.
31325 * ira-conflicts.c: Likewise.
31326 * ira-costs.c: Likewise.
31327 * ira-int.h: Likewise.
31328 * ira-lives.c: Likewise.
31329 * ira.c: Likewise.
31330 * ira.h: Likewise.
31331 * loop-invariant.c: Likewise.
31332 * loop-unroll.c: Likewise.
31333 * lower-subreg.c: Likewise.
31334 * lra-assigns.c: Likewise.
31335 * lra-constraints.c: Likewise.
31336 * lra-eliminations.c: Likewise.
31337 * lra-lives.c: Likewise.
31338 * lra-remat.c: Likewise.
31339 * lra-spills.c: Likewise.
31340 * lra.c: Likewise.
31341 * lto-cgraph.c: Likewise.
31342 * lto-streamer-out.c: Likewise.
31343 * postreload-gcse.c: Likewise.
31344 * predict.c: Likewise.
31345 * profile-count.h: Likewise.
31346 * profile.c: Likewise.
31347 * recog.c: Likewise.
31348 * ree.c: Likewise.
31349 * reload.c: Likewise.
31350 * reload1.c: Likewise.
31351 * reorg.c: Likewise.
31352 * resource.c: Likewise.
31353 * rtl.def: Likewise.
31354 * rtl.h: Likewise.
31355 * rtlanal.c: Likewise.
31356 * sched-deps.c: Likewise.
31357 * sched-ebb.c: Likewise.
31358 * sched-rgn.c: Likewise.
31359 * sel-sched-ir.c: Likewise.
31360 * sel-sched.c: Likewise.
31361 * shrink-wrap.c: Likewise.
31362 * simplify-rtx.c: Likewise.
31363 * symtab.c: Likewise.
31364 * target.def: Likewise.
31365 * toplev.c: Likewise.
31366 * tree-call-cdce.c: Likewise.
31367 * tree-cfg.c: Likewise.
31368 * tree-complex.c: Likewise.
31369 * tree-core.h: Likewise.
31370 * tree-eh.c: Likewise.
31371 * tree-inline.c: Likewise.
31372 * tree-loop-distribution.c: Likewise.
31373 * tree-nrv.c: Likewise.
31374 * tree-profile.c: Likewise.
31375 * tree-sra.c: Likewise.
31376 * tree-ssa-alias.c: Likewise.
31377 * tree-ssa-dce.c: Likewise.
31378 * tree-ssa-dom.c: Likewise.
31379 * tree-ssa-forwprop.c: Likewise.
31380 * tree-ssa-loop-im.c: Likewise.
31381 * tree-ssa-loop-ivcanon.c: Likewise.
31382 * tree-ssa-loop-ivopts.c: Likewise.
31383 * tree-ssa-loop-niter.c: Likewise.
31384 * tree-ssa-phionlycprop.c: Likewise.
31385 * tree-ssa-phiopt.c: Likewise.
31386 * tree-ssa-propagate.c: Likewise.
31387 * tree-ssa-threadedge.c: Likewise.
31388 * tree-ssa-threadupdate.c: Likewise.
31389 * tree-ssa-uninit.c: Likewise.
31390 * tree-ssanames.c: Likewise.
31391 * tree-streamer-out.c: Likewise.
31392 * tree.c: Likewise.
31393 * tree.h: Likewise.
31394 * vr-values.c: Likewise.
31395
31396 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
31397
31398 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
31399 (ix86_split_xorsign): Ditto.
31400 * config/i386/i386.c (ix86_expand_xorsign): New function.
31401 (ix86_split_xorsign): Ditto.
31402 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
31403 (xorsign<mode>3): New expander.
31404 (xorsign<mode>3_1): New insn_and_split pattern.
31405 * config/i386/sse.md (xorsign<mode>3): New expander.
31406
31407 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
31408
31409 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
31410 (*tablejump_sp64): Likewise.
31411 (*tablejump<P:mode>): ...this.
31412 (*call_address_sp32): Merge into...
31413 (*call_address_sp64): Likewise.
31414 (*call_address<P:mode>): ...this.
31415 (*call_symbolic_sp32): Merge into...
31416 (*call_symbolic_sp64): Likewise.
31417 (*call_symbolic<P:mode>): ...this.
31418 (call_value): Remove constraint and add predicate.
31419 (*call_value_address_sp32): Merge into...
31420 (*call_value_address_sp64): Likewise.
31421 (*call_value_address<P:mode>): ...this.
31422 (*call_value_symbolic_sp32): Merge into...
31423 (*call_value_symbolic_sp64): Likewise.
31424 (*call_value_symbolic<P:mode>): ...this.
31425 (*sibcall_symbolic_sp32): Merge into...
31426 (*sibcall_symbolic_sp64): Likewise.
31427 (*sibcall_symbolic<P:mode>): ...this.
31428 (sibcall_value): Remove constraint and add predicate.
31429 (*sibcall_value_symbolic_sp32): Merge into...
31430 (*sibcall_value_symbolic_sp64): Likewise.
31431 (*sibcall_value_symbolic<P:mode>): ...this.
31432 (window_save): Minor tweak.
31433 (*branch_sp32): Merge into...
31434 (*branch_sp64): Likewise.
31435 (*branch<P:mode>): ...this.
31436
31437 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
31438 James Clarke <jrtc27@jrtc27.com>
31439
31440 PR target/84010
31441 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
31442 consistently in TLS address generation and adjust code to the renaming
31443 of patterns. Mark calls to __tls_get_addr as const.
31444 * config/sparc/sparc.md (tgd_hi22): Turn into...
31445 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
31446 (tgd_lo10): Turn into...
31447 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
31448 (tgd_add32): Merge into...
31449 (tgd_add64): Likewise.
31450 (tgd_add<P:mode>): ...this and use Pmode throughout.
31451 (tldm_hi22): Turn into...
31452 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
31453 (tldm_lo10): Turn into...
31454 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
31455 (tldm_add32): Merge into...
31456 (tldm_add64): Likewise.
31457 (tldm_add<P:mode>): ...this and use Pmode throughout.
31458 (tldm_call32): Merge into...
31459 (tldm_call64): Likewise.
31460 (tldm_call<P:mode>): ...this and use Pmode throughout.
31461 (tldo_hix22): Turn into...
31462 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
31463 (tldo_lox10): Turn into...
31464 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
31465 (tldo_add32): Merge into...
31466 (tldo_add64): Likewise.
31467 (tldo_add<P:mode>): ...this and use Pmode throughout.
31468 (tie_hi22): Turn into...
31469 (tie_hi22<P:mode>): ...this and use Pmode throughout.
31470 (tie_lo10): Turn into...
31471 (tie_lo10<P:mode>): ...this and use Pmode throughout.
31472 (tie_ld64): Use DImode throughout.
31473 (tie_add32): Merge into...
31474 (tie_add64): Likewise.
31475 (tie_add<P:mode>): ...this and use Pmode throughout.
31476 (tle_hix22_sp32): Merge into...
31477 (tle_hix22_sp64): Likewise.
31478 (tle_hix22<P:mode>): ...this and use Pmode throughout.
31479 (tle_lox22_sp32): Merge into...
31480 (tle_lox22_sp64): Likewise.
31481 (tle_lox22<P:mode>): ...this and use Pmode throughout.
31482 (*tldo_ldub_sp32): Merge into...
31483 (*tldo_ldub_sp64): Likewise.
31484 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
31485 (*tldo_ldub1_sp32): Merge into...
31486 (*tldo_ldub1_sp64): Likewise.
31487 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
31488 (*tldo_ldub2_sp32): Merge into...
31489 (*tldo_ldub2_sp64): Likewise.
31490 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
31491 (*tldo_ldsb1_sp32): Merge into...
31492 (*tldo_ldsb1_sp64): Likewise.
31493 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
31494 (*tldo_ldsb2_sp32): Merge into...
31495 (*tldo_ldsb2_sp64): Likewise.
31496 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
31497 (*tldo_ldub3_sp64): Use DImode throughout.
31498 (*tldo_ldsb3_sp64): Likewise.
31499 (*tldo_lduh_sp32): Merge into...
31500 (*tldo_lduh_sp64): Likewise.
31501 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
31502 (*tldo_lduh1_sp32): Merge into...
31503 (*tldo_lduh1_sp64): Likewise.
31504 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
31505 (*tldo_ldsh1_sp32): Merge into...
31506 (*tldo_ldsh1_sp64): Likewise.
31507 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
31508 (*tldo_lduh2_sp64): Use DImode throughout.
31509 (*tldo_ldsh2_sp64): Likewise.
31510 (*tldo_lduw_sp32): Merge into...
31511 (*tldo_lduw_sp64): Likewise.
31512 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
31513 (*tldo_lduw1_sp64): Use DImode throughout.
31514 (*tldo_ldsw1_sp64): Likewise.
31515 (*tldo_ldx_sp64): Likewise.
31516 (*tldo_stb_sp32): Merge into...
31517 (*tldo_stb_sp64): Likewise.
31518 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
31519 (*tldo_sth_sp32): Merge into...
31520 (*tldo_sth_sp64): Likewise.
31521 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
31522 (*tldo_stw_sp32): Merge into...
31523 (*tldo_stw_sp64): Likewise.
31524 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
31525 (*tldo_stx_sp64): Use DImode throughout.
31526
31527 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31528
31529 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
31530 check configure option to set BTI and Return Address Signing.
31531 * configure.ac: Add --enable-standard-branch-protection and
31532 --disable-standard-branch-protection.
31533 * configure: Regenerated.
31534 * doc/install.texi: Document the same.
31535
31536 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31537 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31538
31539 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
31540 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
31541 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
31542 if bti is enabled.
31543 * config/aarch64/aarch64-bti-insert.c: New file.
31544 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
31545 pass.
31546 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
31547 new bti pass.
31548 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
31549 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
31550 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
31551 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
31552
31553 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31554
31555 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
31556 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
31557 Disable bti for -mbranch-protection=none.
31558 (aarch64_handle_standard_branch_protection): Enable bti for
31559 -mbranch-protection=standard.
31560 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
31561 -mbranch-protection.
31562 (aarch64_bti_enabled): Check if bti is enabled.
31563 * config/aarch64/aarch64.opt: Declare target variable.
31564 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
31565
31566 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31567
31568 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
31569 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
31570 (aarch64_expand_epilogue): Likewise.
31571 (aarch64_output_mi_thunk): Likewise.
31572 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
31573 TAILCALL_ADDR_REGS to x16 and x17.
31574 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
31575
31576 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31577
31578 * config/aarch64/aarch64-option-extensions.def: Define
31579 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
31580 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
31581 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
31582 (AARCH64_FL_PREDRES): New.
31583 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
31584 AARCH64_FL_PREDRES by default.
31585 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
31586
31587 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31588
31589 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
31590 ARMv8.5-A.
31591 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
31592 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
31593 * doc/invoke.texi: Document ARMv8.5-A.
31594
31595 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
31596
31597 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
31598 (xorsign<mode>3): Likewise.
31599
31600 2019-01-09 Jelinek <jakub@redhat.com>
31601
31602 PR middle-end/88758
31603 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
31604 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
31605
31606 PR rtl-optimization/88331
31607 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
31608 not currently_expanding_to_rtl.
31609
31610 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
31611
31612 * doc/invoke.texi (-Os): Remove trailing spaces.
31613 (-finline-functions): Remove reference to -O2.
31614
31615 2019-01-08 Jakub Jelinek <jakub@redhat.com>
31616
31617 PR rtl-optimization/79593
31618 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
31619
31620 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
31621 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
31622
31623 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
31624
31625 PR bootstrap/88721
31626 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
31627 to -1 on entry.
31628
31629 PR debug/88723
31630 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
31631 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
31632
31633 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
31634
31635 PR target/88717
31636 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
31637 ix86_avx_u128_mode_entry.
31638
31639 2019-01-08 Martin Liska <mliska@suse.cz>
31640
31641 PR tree-optimization/88753
31642 * tree-switch-conversion.c (switch_conversion::build_one_array):
31643 Come up with local variable constructor. Convert first to
31644 type of constructor values.
31645
31646 2019-01-08 Richard Biener <rguenther@suse.de>
31647
31648 PR tree-optimization/86554
31649 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
31650 rpo_avail): Move earlier.
31651 (visit_nary_op): When value-numbering to expressions
31652 with different overflow behavior make sure there's an
31653 available expression on the path.
31654
31655 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
31656
31657 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
31658 aarch64_parse_branch_protection,
31659 struct aarch64_branch_protect_type,
31660 aarch64_handle_no_branch_protection,
31661 aarch64_handle_standard_branch_protection,
31662 aarch64_validate_mbranch_protection,
31663 aarch64_handle_pac_ret_protection,
31664 aarch64_handle_attr_branch_protection,
31665 accepted_branch_protection_string,
31666 aarch64_pac_ret_subtypes,
31667 aarch64_branch_protect_types,
31668 aarch64_handle_pac_ret_leaf): Define.
31669 (aarch64_override_options_after_change_1, aarch64_override_options):
31670 Add check for accepted_branch_protection_string.
31671 (aarch64_option_save): Save accepted_branch_protection_string.
31672 (aarch64_option_restore): Save accepted_branch_protection_string.
31673 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
31674 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
31675 msign-return-address.
31676 * doc/invoke.texi: Add mbranch-protection.
31677
31678 2019-01-08 Alan Modra <amodra@gmail.com>
31679
31680 PR target/88614
31681 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
31682 Delete "unknownp" parameter. Adjust callers. Handle
31683 CONST_INT, PLUS, MINUS, and MULT.
31684 (attr_value_aligned): Renamed from or_attr_value.
31685 (min_attr_value): Return INT_MIN for unhandled rtl case..
31686 (min_fn): ..and translate to INT_MAX here.
31687 (write_length_unit_log): Modify to cope without "unknown".
31688 (write_attr_value): Handle IF_THEN_ELSE.
31689
31690 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
31691
31692 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
31693 optimization for masked stores.
31694
31695 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
31696
31697 PR middle-end/88567
31698 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
31699 output vector directly to duplicate_and_interleave instead of
31700 going through a temporary. Postpone insertion of ctor_seq to
31701 the end of the loop.
31702
31703 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
31704
31705 PR target/86891
31706 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
31707 unsigned_p. Handle signed and unsigned overflow correction as
31708 required.
31709 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
31710 prototype.
31711 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
31712 for operand 2.
31713 (add<mode>3_compareV_imm): Make this callable for expanding.
31714 (subv<GPI:mode>4): Use register_operand for operand 1. Use
31715 aarch64_plus_operand for operand 2.
31716 (subv<GPI:mode>_insn): New insn pattern.
31717 (subv<GPI:mode>_imm): Likewise.
31718 (negv<GPI:mode>3): New expand pattern.
31719 (negv<GPI:mode>_insn): New insn pattern.
31720 (negv<GPI:mode>_cmp_only): Likewise.
31721 (cmpv<GPI:mode>_insn): Likewise.
31722 (subvti4): Use register_operand for operand 1. Update call to
31723 aarch64_expand_subvti.
31724 (usubvti4): Likewise.
31725 (negvti3): New expand pattern.
31726 (negdi_carryout): New insn pattern.
31727 (negvdi_carryinV): New insn pattern.
31728 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
31729 version the named version.
31730 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
31731 operands.
31732 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
31733 patterns.
31734 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
31735 patterns.
31736 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
31737 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
31738 (sub<mode>3_carryinCV): Delete.
31739 (sub<GPI:mode>3_carryinV): New expand pattern.
31740 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
31741
31742 2019-01-07 Richard Biener <rguenther@suse.de>
31743
31744 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
31745 of tree_operand_hash.
31746
31747 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
31748
31749 PR tree-optimization/88598
31750 * tree.h (single_nonzero_element): Declare.
31751 * tree.c (single_nonzero_element): New function.
31752 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
31753 if I is the only nonzero element of CST.
31754
31755 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
31756
31757 PR tree-optimization/88598
31758 * tree.h (initializer_each_zero_or_onep): Declare.
31759 * tree.c (initializer_each_zero_or_onep): New function.
31760 (signed_or_unsigned_type_for): Handle float types too.
31761 (unsigned_type_for, signed_type_for): Update comments accordingly.
31762 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
31763 x & { 0 or -1, 0 or -1, ... }.
31764
31765 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
31766
31767 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
31768 with x86_64-pc-linux-gnu.
31769
31770 2019-01-07 Tom de Vries <tdevries@suse.de>
31771
31772 PR target/85486
31773 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
31774 function.
31775 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
31776 routines.
31777
31778 2019-01-07 Jakub Jelinek <jakub@redhat.com>
31779
31780 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
31781 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
31782 TARGET_AVX512F as condition.
31783
31784 PR debug/88723
31785 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
31786 const_not_ok_for_debug_p target hook.
31787 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
31788 on UNSPEC and subexpressions thereof if all subexpressions of the
31789 UNSPEC are CONSTANT_P.
31790
31791 PR tree-optimization/88676
31792 * tree-ssa-phiopt.c (two_value_replacement): New function.
31793 (tree_ssa_phiopt_worker): Call it.
31794
31795 PR sanitizer/88619
31796 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
31797 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
31798
31799 PR c++/85052
31800 * tree-vect-generic.c: Include insn-config.h and recog.h.
31801 (expand_vector_piecewise): Add defaulted ret_type argument,
31802 if non-NULL, use that in preference to type for the result type.
31803 (expand_vector_parallel): Formatting fix.
31804 (do_vec_conversion, do_vec_narrowing_conversion,
31805 expand_vector_conversion): New functions.
31806 (expand_vector_operations_1): Call expand_vector_conversion
31807 for VEC_CONVERT ifn calls.
31808 * internal-fn.def (VEC_CONVERT): New internal function.
31809 * internal-fn.c (expand_VEC_CONVERT): New function.
31810 * fold-const-call.c (fold_const_vec_convert): New function.
31811 (fold_const_call): Use it for CFN_VEC_CONVERT.
31812 * doc/extend.texi (__builtin_convertvector): Document.
31813
31814 2019-01-07 Tom de Vries <tdevries@suse.de>
31815
31816 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
31817 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
31818 vector_red_partition, vector_red_sym): New global variables.
31819 (nvptx_option_override): Initialize vector_red_sym.
31820 (nvptx_declare_function_name): Restore red_partition register.
31821 (nvptx_file_end): Emit code to declare the vector reduction variables.
31822 (nvptx_output_red_partition): New function.
31823 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
31824 large vector reductions.
31825 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
31826 (nvptx_init_builtins): Add VECTOR_ADDR.
31827 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
31828 Handle nvptx_expand_shared_addr.
31829 (nvptx_get_shared_red_addr): Add vector argument and handle large
31830 vectors.
31831 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
31832 large vectors.
31833 (nvptx_goacc_reduction_init): Likewise.
31834 (nvptx_goacc_reduction_fini): Likewise.
31835 (nvptx_goacc_reduction_teardown): Likewise.
31836 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
31837 init,fini,teardown}.
31838 (nvptx_init_axis_predicate): Initialize vector_red_partition.
31839 (nvptx_set_current_function): Init vector_red_partition.
31840 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
31841 (nvptx_red_partition): New insn.
31842 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
31843
31844 2019-01-07 Tom de Vries <tdevries@suse.de>
31845
31846 PR target/85381
31847 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
31848 empty loops.
31849
31850 2019-01-07 Tom de Vries <tdevries@suse.de>
31851
31852 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
31853 (nvptx_option_override): Init oacc_bcast_partition.
31854 (nvptx_init_oacc_workers): New function.
31855 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
31856 (nvptx_needs_shared_bcast): New function.
31857 (nvptx_find_par): Generalize to enable vectors to use shared-memory
31858 to propagate state.
31859 (nvptx_shared_propagate): Initialize vector bcast partition and
31860 synchronization state.
31861 (nvptx_single): Generalize to enable vectors to use shared-memory
31862 to propagate state.
31863 (nvptx_process_pars): Likewise.
31864 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
31865 * config/nvptx/nvptx.h (struct machine_function): Add
31866 bcast_partition and sync_bar members.
31867
31868 2019-01-07 Tom de Vries <tdevries@suse.de>
31869
31870 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
31871 (nvptx_apply_dim_limits): New function.
31872 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
31873 PTX_WARP_SIZE.
31874
31875 2019-01-07 Tom de Vries <tdevries@suse.de>
31876
31877 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
31878 as late as possible.
31879
31880 2019-01-07 Tom de Vries <tdevries@suse.de>
31881
31882 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
31883 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
31884 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
31885 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
31886 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
31887
31888 2019-01-07 Tom de Vries <tdevries@suse.de>
31889
31890 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
31891
31892 2019-01-07 Tom de Vries <tdevries@suse.de>
31893
31894 * omp-offload.c (oacc_get_min_dim): New function.
31895 * omp-offload.h (oacc_get_min_dim): Declare.
31896
31897 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
31898
31899 PR target/88521
31900 * config/i386/i386.c (function_value_ms_64): Return small sturct in
31901 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
31902
31903 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31904
31905 PR tree-opt/86020
31906 Revert:
31907 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
31908
31909 * ipa-inline.c (edge_badness): Use inlined_time instead of
31910 inline_summaries->get.
31911
31912 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31913
31914 * opts.c (enable_fdo_optimizations): Enable
31915 version-loops-for-strides, loop-interchange, unrol-and-jam
31916 and tree-loop-distribution.
31917 * invoke.texi: Document newly enabled options.
31918
31919 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31920
31921 * doc/invoke.texi (max-inline-insns-small): New parameters.
31922 * ipa-inline.c (want_early_inline_function_p): simplify.
31923 (want_inline_small_function_p): Fix pasto from previous patch;
31924 use max-inline-insns-small bound.
31925 * params.def (max-inline-insns-small): New param.
31926 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
31927 variables correctly.
31928
31929 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31930
31931 * doc/invoke.texi: Document max-inline-insns-size,
31932 uninlined-function-insns, uninlined-function-time,
31933 uninlined-thunk-insns and uninlined-thunk-time.
31934 * params.def: Add max-inline-insns-size,
31935 uninlined-function-insns, uninlined-function-time,
31936 uninlined-thunk-insns and uninlined-thunk-time.
31937 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
31938 new parameters.
31939 * ipa-inline.c (can_inline_edge_by_limits_p,
31940 want_inline_small_function_p): Use new parameters.
31941
31942 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31943
31944 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
31945
31946 2019-01-05 Jakub Jelinek <jakub@redhat.com>
31947
31948 PR middle-end/82564
31949 PR target/88620
31950 * expr.c (expand_assignment): For calls returning VLA structures
31951 if to_rtx is not a MEM, force it into a stack temporary.
31952
31953 PR debug/88635
31954 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
31955 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
31956 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
31957 subexpressions of both operands.
31958 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
31959 subrtxes are CONSTANT_P.
31960 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
31961 2018-11-09 changes.
31962
31963 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
31964
31965 * params.def (hot-bb-count-ws-permille): Set to 990.
31966
31967 2019-01-04 Martin Sebor <msebor@redhat.com>
31968
31969 PR c/88546
31970 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
31971 leaf.
31972
31973 2019-01-04 Martin Sebor <msebor@redhat.com>
31974
31975 PR c/88363
31976 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
31977
31978 2019-01-04 Jakub Jelinek <jakub@redhat.com>
31979
31980 * gdbinit.in: Turn off pagination for the skip commands, restore
31981 it to previous state afterwards.
31982
31983 2019-01-04 Jakub Jelinek <jakub@redhat.com>
31984
31985 PR target/88594
31986 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
31987 of GET_MODE (opN) as modes of the libcall arguments.
31988
31989 2019-01-04 Jan Beulich <jbeulich@suse.com>
31990
31991 * config/i386/sse.md
31992 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
31993 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
31994 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
31995 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
31996 avx512f_vmcmp<mode>3<round_saeonly_name>,
31997 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
31998 avx512f_maskcmp<mode>3,
31999 <avx512>_cvt<ssemodesuffix>2mask<mode>,
32000 <avx512>_cvt<ssemodesuffix>2mask<mode>,
32001 *<avx512>_cvtmask2<ssemodesuffix><mode>,
32002 *<avx512>_cvtmask2<ssemodesuffix><mode>,
32003 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
32004 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
32005 <avx512>_gt<mode>3<mask_scalar_merge_name>,
32006 <avx512>_gt<mode>3<mask_scalar_merge_name>,
32007 <avx512>_testm<mode>3<mask_scalar_merge_name>,
32008 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
32009 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
32010 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
32011 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
32012 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
32013 avx512cd_maskb_vec_dup<mode>,
32014 avx512cd_maskw_vec_dup<mode>,
32015 avx512dq_fpclass<mode><mask_scalar_merge_name>,
32016 avx512dq_vmfpclass<mode>,
32017 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
32018 instead of =Yk.
32019
32020 2019-01-03 Martin Sebor <msebor@redhat.com>
32021
32022 PR tree-optimization/88659
32023 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
32024
32025 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
32026
32027 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
32028 unaligned vsx and avoid lxvd2x/stxvd2x.
32029 (gen_lvx_v4si_move): New function.
32030
32031 2019-01-03 Tom de Vries <tdevries@suse.de>
32032
32033 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
32034 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
32035 function.
32036 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
32037
32038 2019-01-03 Tom de Vries <tdevries@suse.de>
32039
32040 * config/nvptx/nvptx.c (struct offload_attrs): New.
32041 (populate_offload_attrs): New function. Factor mask extraction out of
32042 nvptx_reorg. Add extraction of dimensions.
32043 (nvptx_reorg): Use populate_offload_attrs.
32044
32045 2019-01-03 Tom de Vries <tdevries@suse.de>
32046
32047 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
32048 cases for oacc_min_dims_p and routine_p. Add asserts for
32049 oacc_default_dims_p and offload_region_p.
32050
32051 2019-01-03 Tom de Vries <tdevries@suse.de>
32052
32053 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
32054 factored out of ...
32055 (nvptx_goacc_validate_dims): ... here.
32056
32057 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
32058
32059 PR tree-optimization/85574
32060 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
32061 structure.
32062 (struct ssa_equip_hash_traits): Declare.
32063 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
32064
32065 2019-01-03 Jakub Jelinek <jakub@redhat.com>
32066
32067 PR debug/88644
32068 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
32069 change it to qualified_type.
32070
32071 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
32072
32073 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
32074 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
32075
32076 2019-01-02 Martin Sebor <msebor@redhat.com>
32077 Jeff Law <law@redhat.com>
32078
32079 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
32080 (get_range_strlen_tree): Update appropriately.
32081 (get_range_strlen)
32082 * gimple-fold.h (get_range_strlen): Drop unused last argument.
32083
32084 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
32085 rather than set_range_info.
32086 * tree-ssa-strlen.c (set_strlen_range): Extracted from
32087 maybe_set_strlen_range. Handle potentially boundary crossing
32088 cases more conservatively.
32089 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
32090 Call set_strlen_range.
32091 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
32092
32093 PR middle-end/88663
32094 * gimple-fold.c (get_range_strlen): Update prototype to no longer
32095 need the flexp argument.
32096 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
32097 from calls to get_range_strlen. Update comments. Just update
32098 VAL for an unterminated const char array and let the reset of the
32099 code handle it normally. No longer try to set *flexp. Adjust
32100 return value.
32101 (get_range_strlen): Update for the new get_range_strlen API.
32102 (get_maxval_strlen): Similarly.
32103 (gimple_fold_builtin_strlen): Handle update meaning of return value
32104 from get_range_strlen.
32105 * gimple-ssa-sprintf.c (get_string_length): Update for the new
32106 get_range_strlen API.
32107
32108 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
32109
32110 PR lto/88130
32111 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
32112 false at WPA time when body was removed.
32113
32114 2019-01-02 Martin Liska <mliska@suse.cz>
32115
32116 PR tree-optimization/88650
32117 * predict.c (set_even_probabilities): Calculate probability
32118 remainer only when really used.
32119
32120 2019-01-02 Richard Biener <rguenther@suse.de>
32121
32122 PR middle-end/88651
32123 * tree-data-ref.c (analyze_subscript_affine_affine): Use
32124 widest_ints when mangling max_stmt_execution results.
32125
32126 2019-01-02 Richard Biener <rguenther@suse.de>
32127
32128 PR tree-optimization/88621
32129 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
32130 bitfields when canoncalizing.
32131
32132 2019-01-02 Richard Biener <rguenther@suse.de>
32133
32134 PR target/87545
32135 * config/i386/x86-tune-costs.h (intel_cost): Adjust
32136 cost of cheap SSE instruction.
32137
32138 2019-01-02 Richard Biener <rguenther@suse.de>
32139
32140 PR ipa/85574
32141 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
32142 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
32143 function.
32144 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
32145 set after UIDs before splitting them.
32146
32147 2019-01-01 Martin Sebor <msebor@redhat.com>
32148 Jeff Law <law@redhat.com>
32149
32150 * gimple-fold.c (get_range_strlen_tree): Record if the computed
32151 length is optimistic. If it is, then arrange to compute the
32152 conservative length as well.
32153
32154 * gimple-fold.h (get_range_strlen): Update prototype.
32155 * builtins.c (check_access): Update call to get_range_strlen to use
32156 c_strlen_data pointer. Change various variable accesses to instead
32157 pull data from the c_strlen_data structure.
32158 (check_strncat_sizes, expand_builtin_strncat): Likewise.
32159 * calls.c (maybe_warn_nonstring_arg): Likewise.
32160 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
32161 minimum length if maximum lengh is unknown.
32162 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
32163 that used c_strlen, it's no longer needed. Restructure slightly.
32164 (format_string): Set unlikely range appropriately.
32165 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
32166 formatting issues.
32167 (get_range_strlen): Accept c_strlen_data pointer for external
32168 call sites as well. Pass through to call to internal get_range_strlen.
32169 Adjust minlen, maxlen and maxbound as needed.
32170 (get_maxval_strlen): Update comments.
32171 (gimple_fold_builtin_strlen): Update call to get_range_strlen
32172 to use c_strlen_data pointer. Change variable accesses to instead
32173 use c_strlen_data data members.
32174
32175 * gimple-fold.c (get_range_strlen): Update prototype.
32176 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
32177 local variables. Use pdata to return information to caller.
32178 Update calls to get_range_strlen. Update pdata->maxbound.
32179 (get_range_strlen -- static version): Similarly.
32180 (get_range_strlen -- extern version): Update for internal
32181 get_range_strlen API change. Convert to external data format.
32182 (get_maxval_strlen): Similarly.
32183
32184 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
32185
32186 * coverage.c (get_coverage_counts): Use current_function_decl.
32187 * profile.c (read_thunk_profile): New function.
32188 (branch_prob): Add THUNK parameter.
32189 * tree-profile.c (tree_profiling): Handle thunks.
32190 * value-prof.c (init_node_map): Handle thunks.
32191 * value-prof.h (branch_prob): Upate prototype.
32192 (read_thunk_profile): Declare.
32193
32194 2019-01-01 Jakub Jelinek <jakub@redhat.com>
32195
32196 Update copyright years.
32197
32198 * gcc.c (process_command): Update copyright notice dates.
32199 * gcov-dump.c (print_version): Ditto.
32200 * gcov.c (print_version): Ditto.
32201 * gcov-tool.c (print_version): Ditto.
32202 * gengtype.c (create_file): Ditto.
32203 * doc/cpp.texi: Bump @copying's copyright year.
32204 * doc/cppinternals.texi: Ditto.
32205 * doc/gcc.texi: Ditto.
32206 * doc/gccint.texi: Ditto.
32207 * doc/gcov.texi: Ditto.
32208 * doc/install.texi: Ditto.
32209 * doc/invoke.texi: Ditto.
32210 \f
32211 Copyright (C) 2019 Free Software Foundation, Inc.
32212
32213 Copying and distribution of this file, with or without modification,
32214 are permitted in any medium without royalty provided the copyright
32215 notice and this notice are preserved.