1 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
4 (ipa_value_range_from_jfunc): New function.
5 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
6 known_value_ranges parameter; use it to evalulate conditions.
7 (evaluate_properties_for_edge): Compute known value ranges.
8 (ipa_fn_summary_t::duplicate): Update use of
9 evaluate_conditions_for_known_args.
10 (estimate_ipcp_clone_size_and_time): Likewise.
11 (ipa_merge_fn_summary_after_inlining): Likewise.
12 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
14 2019-11-14 Martin Liska <mliska@suse.cz>
16 * ipa-inline.c (want_inline_small_function_p): Use
17 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
18 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
20 2019-11-14 Martin Liska <mliska@suse.cz>
22 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
23 of a callee to get value of the param.
24 * ipa-inline.c (inline_insns_auto): Use proper
26 * opts.c (maybe_default_option): Do not overwrite param
27 value if optimization level does not match. Note that
28 params usually have default value set via Init() keyword.
29 * params.opt: Remove -param=max-inline-insns-auto-O2.
30 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
31 * doc/invoke.texi: Remove documentation of
32 max-inline-insns-auto-O2.
34 2019-11-14 Martin Liska <mliska@suse.cz>
36 * tree-switch-conversion.c (switch_conversion::switch_conversion):
37 Do not initialize m_other_count.
38 (switch_conversion::collect): Do not count m_default_count and
39 m_other_count as we use frequencies for edges.
40 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
42 2019-11-14 Martin Liska <mliska@suse.cz>
45 * doc/invoke.texi: Document -fallocation-dce.
47 2019-11-14 Martin Liska <mliska@suse.cz>
50 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
51 PTA_ICELAKE_CLIENT which is later interited by
52 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
54 2019-11-14 Martin Liska <mliska@suse.cz>
56 * ipa-icf.c (sem_item_optimizer::execute): Save
58 (sem_item_optimizer::parse_nonsingleton_classes):
59 Return number of loaded symbols.
60 (sem_item_optimizer::merge_classes): Print
61 statistics about totally needed symbols.
62 * ipa-icf.h (parse_nonsingleton_classes): Change return
64 (merge_classes): Add one argument.
66 2019-11-14 Martin Liska <mliska@suse.cz>
68 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
69 func_checker::hash_operand by handling of FIELD_DECLs.
71 2019-11-14 Martin Liska <mliska@suse.cz>
73 * ipa-icf-gimple.h (func_checker::func_checker): Add
75 * ipa-icf.c (sem_function::init): Make operand_equal_p
76 and hash_operand public.
77 (sem_item::add_expr): Remove.
78 (sem_item::add_type): Remove.
79 (sem_function::hash_stmt): Use m_checker for hashing
81 (sem_function::parse): Init with checker.
82 (sem_variable::parse): Pass NULL as checker.
83 (sem_item_optimizer::parse_funcs_and_vars):
84 Pass checker to ::parse function.
85 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
86 (sem_variable::parse): New function.
87 (sem_variable::get_hash): Only return computed hash value.
88 (sem_variable::init): Initialize hash of a variable.
89 * ipa-icf.h: Remove add_expr, add_type and add func_checker
90 to couple of functions as a new argument.
92 2019-11-14 Martin Liska <mliska@suse.cz>
94 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
96 (func_checker::compare_gimple_assign): Likewise.
98 2019-11-14 Jakub Jelinek <jakub@redhat.com>
100 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
101 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
102 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
104 * omp-general.c (omp_context_name_list_prop): New function.
105 (omp_context_selector_matches): Use it. Return 0 if it returns
107 (omp_context_selector_props_compare): Allow equivalency of an
108 identifier and a string literal containing no embedded zeros.
110 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
112 * range-op.cc (RANGE3): Remove.
113 (range_tests): Remove all selftest that check for multi-ranges.
114 Put tests in namespace selftest.
115 * selftest.h: Move range_tests into namespace selftest.
116 * value-range.h (class value_range): Unfriend range_tests.
118 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
120 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
121 normalize_symbolics and normalize_addresses working in place.
122 (range_fold_unary_symbolics_p): Same.
123 (range_fold_unary_symbolics_p): Same.
124 * value-range.cc (num_pairs): Same.
128 (normalize_addresses): Same.
129 (normalize_symbolics): Same.
130 * value-range.h (normalize_symbolics): Same.
131 (normalize_addresses): Same.
133 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
136 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
137 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
138 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
139 (ipa_agg_jump_function): Remove member function equal_to.
140 (ipa_agg_jump_function_p): Remove typedef.
141 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
142 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
143 information for aggregate jump function.
144 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
145 record last definition statement.
146 (load_from_unmodified_param_or_agg): New function.
147 (ipa_known_agg_contents_list): Add new field type and value, remove
149 (build_agg_jump_func_from_list): Rename parameter const_count to
150 value_count, build aggregate jump function from ipa_load_agg_data.
151 (analyze_agg_content_value): New function.
152 (extract_mem_content): Analyze memory store assignment to prepare
153 information for aggregate jump function generation.
154 (determine_known_aggregate_parts): Add new parameter fbi, remove
155 parameter aa_walk_budeget_p.
156 (update_jump_functions_after_inlining): Update aggregate jump function.
157 (ipa_find_agg_cst_for_param): Change type of parameter agg.
158 (try_make_edge_direct_simple_call): Add new parameter new_root.
159 (try_make_edge_direct_virtual_call): Add new parameter new_root and
161 (update_indirect_edges_after_inlining): Pass new argument to
162 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
163 (ipa_write_jump_function): Write aggregate jump function to file.
164 (ipa_read_jump_function): Read aggregate jump function from file.
165 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
166 * ipa-cp.c (ipa_get_jf_arith_result): New function.
167 (ipa_agg_value_from_node): Likewise.
168 (ipa_agg_value_set_from_jfunc): Likewise.
169 (propagate_vals_across_arith_jfunc): Likewise.
170 (propagate_aggregate_lattice): Likewise.
171 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
172 (propagate_vals_across_pass_through): Call
173 propagate_vals_across_arith_jfunc.
174 (get_clone_agg_value): Move forward.
175 (propagate_aggs_across_jump_function): Handle value propagation for
176 aggregate jump function.
177 (agg_jmp_p_vec_for_t_vec): Remove.
178 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
179 with vec<ipa_agg_value>.
180 (copy_plats_to_inter, intersect_with_plats): Likewise.
181 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
182 (intersect_aggregate_with_edge): Likewise.
183 (find_aggregate_values_for_callers_subset): Likewise.
184 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
185 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
186 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
187 (gather_context_independent_values): Likewise.
188 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
189 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
190 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
191 (evaluate_properties_for_edge): Likewise.
192 (estimate_edge_devirt_benefit): Likewise.
193 (estimate_edge_size_and_time): Likewise.
194 (estimate_calls_size_and_time): Likewise.
195 (ipa_call_context::ipa_call_context): Likewise.
196 (estimate_ipcp_clone_size_and_time): Likewise.
197 * ipa-fnsummary.h (ipa_call_context): Replace
198 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
199 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
200 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
201 (do_estimate_edge_size): Likewise.
202 (do_estimate_edge_hints): Likewise.
204 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
206 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
209 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
211 * ipa-profile.c (check_argument_count): Check properly that e_info
212 is non-NULL; do not check descriptors.
214 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
216 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
217 check for ipa profiles.
219 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
222 * ipa-prop.c (update_indirect_edges_after_inlining):
223 Mark parameter as used.
224 * ipa-inline.c (recursive_inlining): Reset node cache
226 (inline_small_functions): Remove checking ifdef.
227 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
230 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
233 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
235 (ipa_profile): Fix reversed test.
237 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
239 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
240 (propagate_constants_topo): Fix typo.
242 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
244 * Makefile.in (OBJS): Add value-range.o.
245 (GTFILES): Add value-range.h.
246 * gengtype.c (open_base_files): Add value-range.h to list of
248 * tree-vrp.c: Move the following value_range related functions:
249 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
250 constant_p, set_undefined, set_varying, may_contain_p,
251 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
252 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
253 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
254 value_inside_range, ranges_from_anti_range, union_ranges,
255 intersect_ranges, intersect_helper, union_helper, union_,
256 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
257 upper_bound, contains_p, invert, intersect...
258 * value-range.cc: ...to here.
259 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
260 associated inline methods from here...
261 * value-range.h: ...to here.
263 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
265 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
266 instead of asserting its value.
268 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
270 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
271 constructors and set methods so value_range_kind is the last
272 argument and defaults to VR_RANGE.
273 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
274 * ipa-cp.c (propagate_vr_across_jump_function): Same.
275 * ipa-prop.c (ipa_get_value_range): Same.
276 (ipa_compute_jump_functions_for_edge): Same.
277 * range-op.cc (value_range_from_overflowed_bounds): Same.
278 (operator_cast::op1_range): Same.
280 * range.cc (range_nonzero): Same.
281 * tree-ssanames.c (get_range_info): Same.
282 * tree-vrp.c (value_range_equiv::set): Same.
283 (value_range::value_range): Same.
284 (value_range_equiv::value_range_equiv): Same.
285 (value_range_equiv::update): Same.
286 (value_range_equiv::deep_copy): Same.
287 (value_range_equiv::move): Same.
288 (value_range_equiv::set_undefined): Same.
289 (value_range::set): Same.
290 (value_range::set_nonzero): Same.
291 (ranges_from_anti_range): Same.
292 (extract_range_from_plus_minus_expr): Same.
293 (value_range::intersect_helper): Same.
294 (value_range_equiv::intersect): Same.
295 (value_range::union_helper): Same.
296 (value_range_equiv::union_): Same.
297 (value_range::normalize_symbolics): Same.
298 (value_range::invert): Same.
299 (determine_value_range_1): Same.
300 * tree-vrp.h (class value_range): Same.
301 (class value_range_equiv): Same.
302 * vr-values.c (set_value_range_to_nonnegative): Same.
303 (set_value_range_to_truthvalue): Same.
304 (vr_values::update_value_range): Same.
305 (vr_values::extract_range_for_var_from_comparison_expr): Same.
306 (vr_values::extract_range_from_binary_expr): Same.
307 (vr_values::extract_range_from_comparison): Same.
308 (vr_values::extract_range_basic): Same.
309 (vr_values::adjust_range_with_scev): Same.
310 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
311 (vr_values::extract_range_from_phi_node): Same.
313 2019-11-13 Ulrich Drepper <drepper@redhat.com>
315 * tree-dump.c (dequeue_and_dump): Print first tree operand
316 for VIEW_CONVERT_EXPR.
318 2019-11-13 Joseph Myers <joseph@codesourcery.com>
320 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
321 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
322 * real.c (get_max_float): Add norm_max argument.
323 * real.h (get_max_float): Update prototype.
324 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
327 2019-11-13 Martin Liska <mliska@suse.cz>
329 * dbgcnt.c (test_sorted_dbg_counters): New.
330 (dbgcnt_c_tests): Likewise.
331 * selftest-run-tests.c (selftest::run_tests): Likewise.
332 * selftest.h (dbgcnt_c_tests): Likewise.
334 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
335 Martin Jambor <mjambor@suse.cz>
338 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
339 (identify_dead_nodes): Likewise.
341 2019-11-13 Martin Liska <mliska@suse.cz>
343 * ipa-icf.c (sem_function::equals_private): Do not overuse
344 push/pop_cfun functions.
346 2019-11-13 Martin Liska <mliska@suse.cz>
348 * common.opt: Document change of -fdbg-cnt option.
349 * dbgcnt.c (DEBUG_COUNTER): Remove.
350 (dbg_cnt_is_enabled): Remove.
351 (dbg_cnt): Work with new intervals.
352 (dbg_cnt_set_limit_by_index): Set to new
354 (dbg_cnt_set_limit_by_name): Likewise.
355 (dbg_cnt_process_single_pair): Process new format.
356 (dbg_cnt_process_opt): Likewise.
357 (dbg_cnt_list_all_counters): Likewise.
358 * doc/invoke.texi: Document change of -fdbg-cnt option.
361 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
363 * ipa-inline.c (ipa_inline): Check that function is defined before
366 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
367 Julian Brown <julian@codesourcery.com>
369 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
370 flag_worker_partitioning is not set.
371 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
372 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
374 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
376 * config/gcn/gcn-run.c (heap_region): New global variable.
377 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
378 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
379 (get_kernarg_region): Move contents to ....
380 (get_memory_region): .... here.
381 (get_heap_region): New function.
382 (init_device): Initialize the heap_region.
383 (device_malloc): Add region parameter.
384 (struct kernargs): Move heap ....
385 (heap): ... to global scope.
386 (main): Allocate heap separate to kernargs.
388 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
390 * ipa-prop.c (ipa_print_node_jump_functions,
391 ipa_print_node_params): Print info about missing summaries.
393 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
395 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
396 the cost of generating loop masks.
398 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
400 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
402 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
403 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
404 (vect_transform_loop): Likewise.
405 (vect_analyze_loop_costing): Don't take the cost of versioning
406 into account for the static profitability threshold if it turns
407 out that no versioning is needed.
409 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
411 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
412 and target_option_default_node to get -fprofile-generate ctors working
415 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
417 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
418 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
419 (vectorizable_assignment): Don't add a cost for nop conversions.
420 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
422 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
424 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
426 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
427 number of ncopies as an additional argument.
428 (vectorizable_conversion): Update call accordingly. Use "modifier"
429 to check whether a conversion is between vectors with the same
432 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
434 * config/aarch64/aarch64-sve-builtins-functions.h
435 (unary_count::expand): Use aarch64_sve_int_mode instead of
438 2019-11-13 Martin Liska <mliska@suse.cz>
440 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
442 2019-11-13 Martin Liska <mliska@suse.cz>
444 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
445 Remove call to finalize_options_struct.
447 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
450 * config/avr/t-avr (avr-mcus): Do not depend on
451 $(srcdir)/config/avr/t-multilib.
453 2019-11-13 Richard Biener <rguenther@suse.de>
455 PR tree-optimization/92473
456 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
457 direct optab reduction in the correct type.
459 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
461 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
464 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
466 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
467 UNORDERED if !HONOR_NANS (DFmode).
468 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
469 if !HONOR_NANS (<MODE>mode).
471 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
473 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
474 (ipcp_verify_propagated_values): Likewise.
475 (propagate_constants_across_call): Likewise.
476 (propagate_constants_topo): Likewise.
477 (ipcp_propagate_stage): Likewise.
479 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
482 * ipa-profile.c (check_argument_count): Break out from ...;
483 watch for missing summaries.
486 2019-11-12 Martin Sebor <msebor@redhat.com>
488 PR tree-optimization/92412
489 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
492 2019-11-12 Martin Sebor <msebor@redhat.com>
495 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
496 (directive::argno): New member.
497 (format_result::aliases, format_result::alias_count): New data members.
498 (format_result::append_alias): New member function.
499 (fmtresult::dst_offset): New data member.
500 (pass_sprintf_length::call_info::dst_origin): New data member.
501 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
502 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
503 (get_origin_and_offset): Same.
504 (format_string): Call it.
505 (format_directive): Call append_alias and set directive argument
507 (maybe_warn_overlap): New function.
508 (pass_sprintf_length::compute_format_length): Call it.
509 (pass_sprintf_length::handle_gimple_call): Initialize new members.
510 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
512 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
514 PR rtl-optimization/92430
515 * cfgcleanup.c (pass_jump_after_combine::execute): Free
516 dominance info at the beginning.
518 2019-11-12 Richard Biener <rguenther@suse.de>
520 PR tree-optimization/92460
521 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
522 expression before gimplifying.
524 2019-11-12 Richard Biener <rguenther@suse.de>
526 PR tree-optimization/92461
527 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
528 stmt after propagation.
530 2019-11-12 Martin Liska <mliska@suse.cz>
532 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
533 Use SET_OPTION_IF_UNSET.
534 (ix86_option_override_internal): Likewise.
535 * opts.c (default_options_optimization): Likewise.
536 (finish_options): Likewise.
537 (enable_fdo_optimizations): Likewise.
538 (common_handle_option): Likewise.
540 2019-11-12 Martin Liska <mliska@suse.cz>
542 * common/common-target.def: Remove option_validate_param and
543 option_default_params.
544 * common/common-targhooks.c (default_option_validate_param):
546 * common/common-targhooks.h (default_option_validate_param):
548 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
549 Remove usage of this.
550 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
551 (aarch64_option_validate_param): Likewise.
552 (aarch64_option_default_params): Likewise
553 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
554 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
555 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
556 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
557 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
558 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
559 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
560 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
561 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
562 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
563 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
565 * doc/tm.texi: Remove option_default_params and option_validate_param.
566 * doc/tm.texi.in: Likewise.
568 2019-11-12 Martin Liska <mliska@suse.cz>
570 * common/common-target.def:
571 Do not mention set_default_param_value
573 * doc/tm.texi: Likewise.
575 2019-11-12 Martin Liska <mliska@suse.cz>
577 * common.opt: Remove param_values.
578 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
579 Remove finalize_options_struct.
580 * gcc.c (driver::decode_argv): Do not call global_init_params
582 (driver::finalize): Do not call params_c_finalize
583 and finalize_options_struct.
584 * opt-suggestions.c (option_proposer::get_completions): Remove
585 special casing of params.
586 (option_proposer::find_param_completions): Remove.
587 (test_completion_partial_match): Update expected output.
588 * opt-suggestions.h: Remove find_param_completions.
589 * opts-common.c (add_misspelling_candidates): Add
590 --param with a space.
591 * opts.c (handle_param): Remove.
592 (init_options_struct):. Remove init_options_struct and
594 (finalize_options_struct): Remove.
595 (common_handle_option): Use SET_OPTION_IF_UNSET.
596 * opts.h (finalize_options_struct): Remove.
597 * toplev.c (general_init): Do not call global_init_params.
598 (toplev::finalize): Do not call params_c_finalize and
599 finalize_options_struct.
601 2019-11-12 Martin Liska <mliska@suse.cz>
603 * Makefile.in: Remove PARAMS_H and params.list
605 * params-enum.h: Remove.
606 * params-list.h: Remove.
607 * params-options.h: Remove.
609 * params.def: Remove.
611 * asan.c: Do not include params.h.
612 * auto-profile.c: Likewise.
613 * bb-reorder.c: Likewise.
614 * builtins.c: Likewise.
615 * cfgcleanup.c: Likewise.
616 * cfgexpand.c: Likewise.
617 * cfgloopanal.c: Likewise.
618 * cgraph.c: Likewise.
619 * combine.c: Likewise.
620 * common/config/aarch64/aarch64-common.c: Likewise.
621 * common/config/gcn/gcn-common.c: Likewise.
622 * common/config/ia64/ia64-common.c: Likewise.
623 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
624 * common/config/rs6000/rs6000-common.c: Likewise.
625 * common/config/sh/sh-common.c: Likewise.
626 * config/aarch64/aarch64.c: Likewise.
627 * config/alpha/alpha.c: Likewise.
628 * config/arm/arm.c: Likewise.
629 * config/avr/avr.c: Likewise.
630 * config/csky/csky.c: Likewise.
631 * config/i386/i386-builtins.c: Likewise.
632 * config/i386/i386-expand.c: Likewise.
633 * config/i386/i386-features.c: Likewise.
634 * config/i386/i386-options.c: Likewise.
635 * config/i386/i386.c: Likewise.
636 * config/ia64/ia64.c: Likewise.
637 * config/rs6000/rs6000-logue.c: Likewise.
638 * config/rs6000/rs6000.c: Likewise.
639 * config/s390/s390.c: Likewise.
640 * config/sparc/sparc.c: Likewise.
641 * config/visium/visium.c: Likewise.
642 * coverage.c: Likewise.
645 * cselib.c: Likewise.
647 * emit-rtl.c: Likewise.
648 * explow.c: Likewise.
650 * fold-const.c: Likewise.
653 * ggc-common.c: Likewise.
654 * ggc-page.c: Likewise.
655 * gimple-loop-interchange.cc: Likewise.
656 * gimple-loop-jam.c: Likewise.
657 * gimple-loop-versioning.cc: Likewise.
658 * gimple-ssa-split-paths.c: Likewise.
659 * gimple-ssa-sprintf.c: Likewise.
660 * gimple-ssa-store-merging.c: Likewise.
661 * gimple-ssa-strength-reduction.c: Likewise.
662 * gimple-ssa-warn-alloca.c: Likewise.
663 * gimple-ssa-warn-restrict.c: Likewise.
664 * graphite-isl-ast-to-gimple.c: Likewise.
665 * graphite-optimize-isl.c: Likewise.
666 * graphite-scop-detection.c: Likewise.
667 * graphite-sese-to-poly.c: Likewise.
668 * graphite.c: Likewise.
669 * haifa-sched.c: Likewise.
670 * hsa-gen.c: Likewise.
672 * ipa-cp.c: Likewise.
673 * ipa-fnsummary.c: Likewise.
674 * ipa-inline-analysis.c: Likewise.
675 * ipa-inline.c: Likewise.
676 * ipa-polymorphic-call.c: Likewise.
677 * ipa-profile.c: Likewise.
678 * ipa-prop.c: Likewise.
679 * ipa-split.c: Likewise.
680 * ipa-sra.c: Likewise.
681 * ira-build.c: Likewise.
682 * ira-conflicts.c: Likewise.
683 * loop-doloop.c: Likewise.
684 * loop-invariant.c: Likewise.
685 * loop-unroll.c: Likewise.
686 * lra-assigns.c: Likewise.
687 * lra-constraints.c: Likewise.
688 * modulo-sched.c: Likewise.
689 * opt-suggestions.c: Likewise.
691 * postreload-gcse.c: Likewise.
692 * predict.c: Likewise.
693 * reload.c: Likewise.
695 * resource.c: Likewise.
696 * sanopt.c: Likewise.
697 * sched-deps.c: Likewise.
698 * sched-ebb.c: Likewise.
699 * sched-rgn.c: Likewise.
700 * sel-sched-ir.c: Likewise.
701 * sel-sched.c: Likewise.
702 * shrink-wrap.c: Likewise.
704 * targhooks.c: Likewise.
705 * toplev.c: Likewise.
706 * tracer.c: Likewise.
707 * trans-mem.c: Likewise.
708 * tree-chrec.c: Likewise.
709 * tree-data-ref.c: Likewise.
710 * tree-if-conv.c: Likewise.
711 * tree-inline.c: Likewise.
712 * tree-loop-distribution.c: Likewise.
713 * tree-parloops.c: Likewise.
714 * tree-predcom.c: Likewise.
715 * tree-profile.c: Likewise.
716 * tree-scalar-evolution.c: Likewise.
717 * tree-sra.c: Likewise.
718 * tree-ssa-ccp.c: Likewise.
719 * tree-ssa-dom.c: Likewise.
720 * tree-ssa-dse.c: Likewise.
721 * tree-ssa-ifcombine.c: Likewise.
722 * tree-ssa-loop-ch.c: Likewise.
723 * tree-ssa-loop-im.c: Likewise.
724 * tree-ssa-loop-ivcanon.c: Likewise.
725 * tree-ssa-loop-ivopts.c: Likewise.
726 * tree-ssa-loop-manip.c: Likewise.
727 * tree-ssa-loop-niter.c: Likewise.
728 * tree-ssa-loop-prefetch.c: Likewise.
729 * tree-ssa-loop-unswitch.c: Likewise.
730 * tree-ssa-math-opts.c: Likewise.
731 * tree-ssa-phiopt.c: Likewise.
732 * tree-ssa-pre.c: Likewise.
733 * tree-ssa-reassoc.c: Likewise.
734 * tree-ssa-sccvn.c: Likewise.
735 * tree-ssa-scopedtables.c: Likewise.
736 * tree-ssa-sink.c: Likewise.
737 * tree-ssa-strlen.c: Likewise.
738 * tree-ssa-structalias.c: Likewise.
739 * tree-ssa-tail-merge.c: Likewise.
740 * tree-ssa-threadbackward.c: Likewise.
741 * tree-ssa-threadedge.c: Likewise.
742 * tree-ssa-uninit.c: Likewise.
743 * tree-switch-conversion.c: Likewise.
744 * tree-vect-data-refs.c: Likewise.
745 * tree-vect-loop.c: Likewise.
746 * tree-vect-slp.c: Likewise.
747 * tree-vrp.c: Likewise.
749 * value-prof.c: Likewise.
750 * var-tracking.c: Likewise.
752 2019-11-12 Martin Liska <mliska@suse.cz>
754 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
755 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
757 (asan_sanitize_allocas_p): Likewise.
758 (asan_emit_stack_protection): Likewise.
759 (asan_protect_global): Likewise.
760 (instrument_derefs): Likewise.
761 (instrument_builtin_call): Likewise.
762 (asan_expand_mark_ifn): Likewise.
763 * auto-profile.c (auto_profile): Likewise.
764 * bb-reorder.c (copy_bb_p): Likewise.
765 (duplicate_computed_gotos): Likewise.
766 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
767 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
768 (try_crossjump_bb): Likewise.
769 * cfgexpand.c (defer_stack_allocation): Likewise.
770 (stack_protect_classify_type): Likewise.
771 (pass_expand::execute): Likewise.
772 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
773 (estimate_reg_pressure_cost): Likewise.
774 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
775 * combine.c (combine_instructions): Likewise.
776 (record_value_for_reg): Likewise.
777 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
778 (aarch64_option_default_params): Likewise.
779 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
780 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
781 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
782 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
783 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
784 (aarch64_allocate_and_probe_stack_space): Likewise.
785 (aarch64_expand_epilogue): Likewise.
786 (aarch64_override_options_internal): Likewise.
787 * config/alpha/alpha.c (alpha_option_override): Likewise.
788 * config/arm/arm.c (arm_option_override): Likewise.
789 (arm_valid_target_attribute_p): Likewise.
790 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
791 * config/i386/i386.c (get_probe_interval): Likewise.
792 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
793 (ix86_max_noce_ifcvt_seq_cost): Likewise.
794 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
795 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
796 (get_stack_clash_protection_guard_size): Likewise.
797 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
798 * config/s390/s390.c (allocate_stack_space): Likewise.
799 (s390_emit_prologue): Likewise.
800 (s390_option_override_internal): Likewise.
801 * config/sparc/sparc.c (sparc_option_override): Likewise.
802 * config/visium/visium.c (visium_option_override): Likewise.
803 * coverage.c (get_coverage_counts): Likewise.
804 (coverage_compute_profile_id): Likewise.
805 (coverage_begin_function): Likewise.
806 (coverage_end_function): Likewise.
807 * cse.c (cse_find_path): Likewise.
808 (cse_extended_basic_block): Likewise.
809 (cse_main): Likewise.
810 * cselib.c (cselib_invalidate_mem): Likewise.
811 * dse.c (dse_step1): Likewise.
812 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
813 (get_max_insn_count): Likewise.
814 (make_debug_insn_raw): Likewise.
815 (init_emit): Likewise.
816 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
817 * final.c (compute_alignments): Likewise.
818 * fold-const.c (fold_range_test): Likewise.
819 (fold_truth_andor): Likewise.
820 (tree_single_nonnegative_warnv_p): Likewise.
821 (integer_valued_real_single_p): Likewise.
822 * gcse.c (want_to_gcse_p): Likewise.
823 (prune_insertions_deletions): Likewise.
824 (hoist_code): Likewise.
825 (gcse_or_cprop_is_too_expensive): Likewise.
826 * ggc-common.c: Likewise.
827 * ggc-page.c (ggc_collect): Likewise.
828 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
829 (MAX_DATAREFS): Likewise.
830 (OUTER_STRIDE_RATIO): Likewise.
831 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
832 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
833 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
834 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
835 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
836 (imm_store_chain_info::output_merged_store): Likewise.
837 (pass_store_merging::process_store): Likewise.
838 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
839 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
840 (scop_to_isl_ast): Likewise.
841 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
842 (optimize_isl): Likewise.
843 * graphite-scop-detection.c (build_scops): Likewise.
844 * haifa-sched.c (set_modulo_params): Likewise.
845 (rank_for_schedule): Likewise.
846 (model_add_to_worklist): Likewise.
847 (model_promote_insn): Likewise.
848 (model_choose_insn): Likewise.
849 (queue_to_ready): Likewise.
850 (autopref_multipass_dfa_lookahead_guard): Likewise.
851 (schedule_block): Likewise.
852 (sched_init): Likewise.
853 * hsa-gen.c (init_prologue): Likewise.
854 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
855 (cond_move_process_if_block): Likewise.
856 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
857 (merge_agg_lats_step): Likewise.
858 (devirtualization_time_bonus): Likewise.
859 (hint_time_bonus): Likewise.
860 (incorporate_penalties): Likewise.
861 (good_cloning_opportunity_p): Likewise.
862 (ipcp_propagate_stage): Likewise.
863 * ipa-fnsummary.c (decompose_param_expr): Likewise.
864 (set_switch_stmt_execution_predicate): Likewise.
865 (analyze_function_body): Likewise.
866 (compute_fn_summary): Likewise.
867 * ipa-inline-analysis.c (estimate_growth): Likewise.
868 * ipa-inline.c (caller_growth_limits): Likewise.
869 (inline_insns_single): Likewise.
870 (inline_insns_auto): Likewise.
871 (can_inline_edge_by_limits_p): Likewise.
872 (want_early_inline_function_p): Likewise.
873 (big_speedup_p): Likewise.
874 (want_inline_small_function_p): Likewise.
875 (want_inline_self_recursive_call_p): Likewise.
876 (edge_badness): Likewise.
877 (recursive_inlining): Likewise.
878 (compute_max_insns): Likewise.
879 (early_inliner): Likewise.
880 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
881 * ipa-profile.c (ipa_profile): Likewise.
882 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
883 (ipa_analyze_node): Likewise.
884 (ipcp_transform_function): Likewise.
885 * ipa-split.c (consider_split): Likewise.
886 * ipa-sra.c (allocate_access): Likewise.
887 (process_scan_results): Likewise.
888 (ipa_sra_summarize_function): Likewise.
889 (pull_accesses_from_callee): Likewise.
890 * ira-build.c (loop_compare_func): Likewise.
891 (mark_loops_for_removal): Likewise.
892 * ira-conflicts.c (build_conflict_bit_table): Likewise.
893 * loop-doloop.c (doloop_optimize): Likewise.
894 * loop-invariant.c (gain_for_invariant): Likewise.
895 (move_loop_invariants): Likewise.
896 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
897 (decide_unroll_runtime_iterations): Likewise.
898 (decide_unroll_stupid): Likewise.
899 (expand_var_during_unrolling): Likewise.
900 * lra-assigns.c (spill_for): Likewise.
901 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
902 * modulo-sched.c (sms_schedule): Likewise.
903 (DFA_HISTORY): Likewise.
904 * opts.c (default_options_optimization): Likewise.
905 (finish_options): Likewise.
906 (common_handle_option): Likewise.
907 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
909 * predict.c (get_hot_bb_threshold): Likewise.
910 (maybe_hot_count_p): Likewise.
911 (probably_never_executed): Likewise.
912 (predictable_edge_p): Likewise.
913 (predict_loops): Likewise.
914 (expr_expected_value_1): Likewise.
915 (tree_predict_by_opcode): Likewise.
916 (handle_missing_profiles): Likewise.
917 * reload.c (find_equiv_reg): Likewise.
918 * reorg.c (redundant_insn): Likewise.
919 * resource.c (mark_target_live_regs): Likewise.
920 (incr_ticks_for_insn): Likewise.
921 * sanopt.c (pass_sanopt::execute): Likewise.
922 * sched-deps.c (sched_analyze_1): Likewise.
923 (sched_analyze_2): Likewise.
924 (sched_analyze_insn): Likewise.
925 (deps_analyze_insn): Likewise.
926 * sched-ebb.c (schedule_ebbs): Likewise.
927 * sched-rgn.c (find_single_block_region): Likewise.
928 (too_large): Likewise.
929 (haifa_find_rgns): Likewise.
930 (extend_rgns): Likewise.
931 (new_ready): Likewise.
932 (schedule_region): Likewise.
933 (sched_rgn_init): Likewise.
934 * sel-sched-ir.c (make_region_from_loop): Likewise.
935 * sel-sched-ir.h (MAX_WS): Likewise.
936 * sel-sched.c (process_pipelined_exprs): Likewise.
937 (sel_setup_region_sched_flags): Likewise.
938 * shrink-wrap.c (try_shrink_wrapping): Likewise.
939 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
940 * toplev.c (print_version): Likewise.
941 (process_options): Likewise.
942 * tracer.c (tail_duplicate): Likewise.
943 * trans-mem.c (tm_log_add): Likewise.
944 * tree-chrec.c (chrec_fold_plus_1): Likewise.
945 * tree-data-ref.c (split_constant_offset): Likewise.
946 (compute_all_dependences): Likewise.
947 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
948 * tree-inline.c (remap_gimple_stmt): Likewise.
949 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
950 * tree-parloops.c (MIN_PER_THREAD): Likewise.
951 (create_parallel_loop): Likewise.
952 * tree-predcom.c (determine_unroll_factor): Likewise.
953 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
954 * tree-sra.c (analyze_all_variable_accesses): Likewise.
955 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
956 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
957 (dse_optimize_redundant_stores): Likewise.
958 (dse_classify_store): Likewise.
959 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
960 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
961 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
962 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
963 (try_peel_loop): Likewise.
964 (tree_unroll_loops_completely): Likewise.
965 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
966 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
967 (MAX_CONSIDERED_GROUPS): Likewise.
968 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
969 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
970 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
971 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
972 (L1_CACHE_SIZE_BYTES): Likewise.
973 (L2_CACHE_SIZE_BYTES): Likewise.
974 (should_issue_prefetch_p): Likewise.
975 (schedule_prefetches): Likewise.
976 (determine_unroll_factor): Likewise.
977 (volume_of_references): Likewise.
978 (add_subscript_strides): Likewise.
979 (self_reuse_distance): Likewise.
980 (mem_ref_count_reasonable_p): Likewise.
981 (insn_to_prefetch_ratio_too_small_p): Likewise.
982 (loop_prefetch_arrays): Likewise.
983 (tree_ssa_prefetch_arrays): Likewise.
984 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
985 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
986 (convert_mult_to_fma): Likewise.
987 (math_opts_dom_walker::after_dom_children): Likewise.
988 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
989 (hoist_adjacent_loads): Likewise.
990 (gate_hoist_loads): Likewise.
991 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
992 (compute_partial_antic_aux): Likewise.
993 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
994 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
995 (vn_reference_lookup): Likewise.
996 (do_rpo_vn): Likewise.
997 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
998 * tree-ssa-sink.c (select_best_block): Likewise.
999 * tree-ssa-strlen.c (new_stridx): Likewise.
1000 (new_addr_stridx): Likewise.
1001 (get_range_strlen_dynamic): Likewise.
1002 (class ssa_name_limit_t): Likewise.
1003 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
1004 (create_variable_info_for_1): Likewise.
1005 (init_alias_vars): Likewise.
1006 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
1007 (tail_merge_optimize): Likewise.
1008 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
1009 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
1010 (thread_jumps::find_jump_threads_backwards): Likewise.
1011 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
1012 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
1013 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
1014 (jump_table_cluster::can_be_handled): Likewise.
1015 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
1016 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
1017 (param_switch_conversion_branch_ratio): Likewise.
1018 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
1019 (vect_enhance_data_refs_alignment): Likewise.
1020 (vect_prune_runtime_alias_test_list): Likewise.
1021 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
1022 (vect_get_datarefs_in_loop): Likewise.
1023 (vect_analyze_loop): Likewise.
1024 * tree-vect-slp.c (vect_slp_bb): Likewise.
1025 * tree-vectorizer.h: Likewise.
1026 * tree-vrp.c (find_switch_asserts): Likewise.
1027 (vrp_prop::check_mem_ref): Likewise.
1028 * tree.c (wide_int_to_tree_1): Likewise.
1029 (cache_integer_cst): Likewise.
1030 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
1031 (reverse_op): Likewise.
1032 (vt_find_locations): Likewise.
1034 2019-11-12 Martin Liska <mliska@suse.cz>
1036 * Makefile.in: Include params.opt.
1037 * flag-types.h (enum parloops_schedule_type): Add
1038 parloops_schedule_type used in params.opt.
1039 * params.opt: New file.
1041 2019-11-12 Martin Liska <mliska@suse.cz>
1043 * common.opt: Remove --param and --param= options.
1044 * opt-functions.awk: Mark CL_PARAMS for options
1045 that have Param keyword.
1046 * opts-common.c (decode_cmdline_options_to_array):
1047 Replace --param key=value with --param=key=value.
1048 * opts.c (print_filtered_help): Remove special
1050 (print_specific_help): Update title for params.
1051 (common_handle_option): Do not handle OPT__param.
1052 opts.h (SET_OPTION_IF_UNSET): New macro.
1053 * doc/options.texi: Document Param keyword.
1055 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
1056 Frederik Harwath <frederik@codesourcery.com>
1057 Thomas Schwinge <thomas@codesourcery.com>
1060 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
1061 enumeration constant.
1062 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
1063 (is_gimple_omp_offloaded): Likewise.
1064 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
1065 constant. Adjust the value of ORT_NONE accordingly.
1066 (is_gimple_stmt): Handle OACC_SERIAL.
1067 (oacc_default_clause): Handle ORT_ACC_SERIAL.
1068 (gomp_needs_data_present): Likewise.
1069 (gimplify_adjust_omp_clauses): Likewise.
1070 (gimplify_omp_workshare): Handle OACC_SERIAL.
1071 (gimplify_expr): Likewise.
1072 * omp-expand.c (expand_omp_target):
1073 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
1074 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
1075 * omp-low.c (is_oacc_parallel): Rename function to...
1076 (is_oacc_parallel_or_serial): ... this.
1077 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
1078 (scan_sharing_clauses): Adjust accordingly.
1079 (scan_omp_for): Likewise.
1080 (lower_oacc_head_mark): Likewise.
1081 (convert_from_firstprivate_int): Likewise.
1082 (lower_omp_target): Likewise.
1083 (check_omp_nesting_restrictions): Handle
1084 GF_OMP_TARGET_KIND_OACC_SERIAL.
1085 (lower_oacc_reductions): Likewise.
1086 (lower_omp_target): Likewise.
1087 * tree.def (OACC_SERIAL): New tree code.
1088 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
1090 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
1092 2019-11-12 Jakub Jelinek <jakub@redhat.com>
1095 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
1096 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
1098 PR tree-optimization/92452
1099 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
1100 into NULL_TREE, set up_bound to NULL_TREE instead of computing
1103 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
1105 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
1108 2019-11-12 Alan Modra <amodra@gmail.com>
1110 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
1111 element of unspec vec.
1112 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
1114 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
1115 (tls_gd_pcrel, tls_ld_pcrel): New insns.
1116 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
1117 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
1119 2019-11-12 Alan Modra <amodra@gmail.com>
1121 * config/rs6000/rs6000.opt (mtls-markers): Delete.
1122 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
1123 (IS_NOMARK_TLSGETADDR): Likewise.
1124 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
1125 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
1126 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
1127 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
1128 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
1129 (rs6000_indirect_call_template_1): Likewise.
1130 (rs6000_pltseq_template): Likewise.
1131 (rs6000_opt_vars): Remove "tls-markers" entry.
1132 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
1134 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
1135 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
1136 (pltseq_plt_pcrel<mode>): Likewise.
1137 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
1138 (call_value_local64): Likewise.
1139 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
1140 output and length attribute sub-expression.
1141 (call_value_nonlocal_sysv<mode>),
1142 (call_value_nonlocal_sysv_secure<mode>),
1143 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
1144 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
1145 (call_value_indirect_pcrel<mode>): Likewise.
1146 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
1147 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
1148 * configure: Regenerate.
1149 * config.in: Regenerate.
1151 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
1153 * config/rs6000/predicates.md (prefixed_memory): New predicate.
1154 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
1155 address being a prefixed load/store.
1156 (stack_protect_testdi): Deal with either address being a prefixed
1159 2019-11-11 Jakub Jelinek <jakub@redhat.com>
1162 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
1163 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
1166 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
1168 PR tree-optimization/92420
1169 * tree-vect-stmts.c (get_negative_load_store_type): Move further
1171 (get_group_load_store_type): Use it for reversed SLP accesses.
1173 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
1175 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
1177 (ipcp_transformation_t::duplicate): Break out from ...
1178 (ipa_node_params_t::duplicate): ... here; add copying of agg
1180 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
1181 (ipcp_transformation_t): Add duplicate.
1183 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
1186 * doc/install.texi: Document that the minimum MPFR version is
1189 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
1191 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
1192 use new register constraint letters.
1194 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
1196 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
1197 as well, if interesting recover the symbol and re-legitimize the
1200 2019-11-11 Martin Liska <mliska@suse.cz>
1202 * dbgcnt.def (DEBUG_COUNTER): Sort counters
1205 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
1207 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
1208 account when checking if there are enough iterations to vectorize
1211 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
1212 Kwok Cheung Yeung <kcy@codesourcery.com>
1214 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
1215 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
1216 (LANG_HOOKS_DECLS): Rename also here.
1217 * langhooks.h (lang_hooks_for_decls): Rename
1218 omp_is_optional_argument to omp_check_optional_argument; take
1219 additional bool argument.
1220 * omp-general.h (omp_check_optional_argument): Likewise.
1221 * omp-general.h (omp_check_optional_argument): Likewise.
1222 * omp-low.c (lower_omp_target): Update calls; handle absent
1223 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
1225 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
1228 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
1229 -fPIC and -shared the last to create offload image.
1231 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
1233 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
1236 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
1237 (config.status): Use/depend on it.
1238 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
1239 * configure: Regenerate.
1241 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
1243 PR tree-optimization/88760
1244 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
1245 * gcc/common/config/rs6000/rs6000-common.c
1246 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
1247 Turn on -funroll-loops and -munroll-only-small-loops.
1248 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
1249 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
1250 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
1251 Turn off -munroll-only-small-loops for explicit -funroll-loops.
1252 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
1253 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
1255 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
1257 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1258 Make scalar_load, vector_load, unaligned_load and
1259 vector_gather_load cost more to conform hardware latency and
1262 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
1264 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
1265 (MACHO_SYMBOL_LINKER_VIS_P): New.
1267 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
1269 * lra-spills.c (assign_spill_hard_regs): Do not spill into
1270 registers in eliminable_regset.
1272 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1274 * ipa-inline.c (compute_uninlined_call_time,
1275 compute_inlined_call_time): Take edge frequency as
1276 parameter rather than computing it by itself.
1277 (big_speedup_p, edge_badness): Manually CSE sreal
1278 frequency calculations.
1280 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1282 * profile-count.c (profile_count::to_sreal_scale): Short circuit
1283 case where profiles are same.
1285 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1287 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
1289 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1291 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
1292 args summaries of inlined edge unless it holds info about
1293 described reference.
1295 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
1297 * config/rs6000/rs6000.md (CC_any): New mode iterator.
1298 (*movcc_internal1): Rename to...
1299 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
1301 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1303 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
1304 (cgraph_node::create_virtual_clone): Copy it.
1305 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
1307 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
1308 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
1310 (propagate_constants_across_call): If callee is not analyzed, give up.
1311 (propagate_constants_topo): Lower to bottom latties of all callees of
1312 functions with ipa-cp disabled.
1313 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
1314 (cgraph_edge_brings_value_p): Check for availability first.
1315 (create_specialized_node): Set ipcp_clone.
1316 (ipcp_store_bits_results): Check that info is present.
1317 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
1319 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
1320 conservative when callee summary is missing.
1321 (remap_edge_summaries): Lookup call summary only when needed.
1322 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
1323 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
1325 (ipa_analyze_node): Use get_create.
1326 (propagate_controlled_uses): Do not propagate when function is not
1328 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
1329 (ipa_read_node_info): Use get_create.
1330 * ipa-prop.h (IPA_NODE_REF): Use get.
1331 (IPA_NODE_REF_GET_CREATE): New.
1333 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1335 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
1338 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1340 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
1341 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
1342 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
1343 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
1345 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1347 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
1348 capping the growth cumulated.
1349 (offline_size): Break out from ...
1350 (estimate_growth): ... here.
1351 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
1353 (growth_likely_positive): Turn to ...
1354 (growth_positive_p): Re-implement.
1355 * ipa-inline.h (growth_likely_positive): Remove.
1356 (growth_positive_p): Declare.
1357 * ipa-inline.c (want_inline_small_function_p): Use
1359 (want_inline_function_to_all_callers_p): Likewise.
1361 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1363 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
1364 calculation of min_size.
1365 (ipa_update_overall_fn_summary): Likewise.
1367 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1369 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
1370 estimate_edge_devirt_benefit when not computing hints;
1371 do not compute time when not asked for.
1372 (estimate_calls_size_and_time): Pass NULL hints and time when
1373 these are not computed; do not evaluate hint predicates when these are
1375 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
1378 2019-11-09 Jakub Jelinek <jakub@redhat.com>
1380 PR tree-optimization/92401
1381 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
1382 if res_op->code is an expression with code length 1.
1383 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
1384 if res_op->code is an expression with code length 2.
1385 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
1386 if res_op->code is an expression with code length 3.
1388 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
1390 * config/darwin.c (machopic_mcount_stub_name): Validate the
1391 symbol stub name when it is created.
1392 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
1395 2019-11-09 Jakub Jelinek <jakub@redhat.com>
1397 * symtab.c: Fix comment typos.
1398 * cgraphunit.c: Likewise.
1399 * cgraph.h: Likewise.
1400 * cgraphclones.c: Likewise.
1401 * cgraph.c: Likewise.
1402 * varpool.c: Likewise.
1403 * tree-ssa-strlen.c: Likewise.
1404 * ipa-sra.c: Likewise.
1405 (scan_expr_access, check_all_callers_for_issues): Fix typo
1408 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
1410 * config/darwin-protos.h: Add include quard.
1412 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
1414 * range-op.h (range_operator::fold_range): Return result in a
1415 reference parameter instead of by value.
1416 (range_operator::wi_fold): Same.
1417 * range-op.cc (range_operator::wi_fold): Return result in a reference
1418 parameter instead of by value.
1419 (range_operator::fold_range): Same.
1420 (value_range_from_overflowed_bounds): Same.
1421 (value_range_with_overflow): Same
1422 (create_possibly_reversed_range): Same.
1423 (operator_equal::fold_range): Same.
1424 (operator_not_equal::fold_range): Same.
1425 (operator_lt::fold_range): Same.
1426 (operator_le::fold_range): Same.
1427 (operator_gt::fold_range): Same.
1428 (operator_ge::fold_range): Same.
1429 (operator_plus::wi_fold): Same.
1430 (operator_plus::op1_range): Change call to fold_range.
1431 (operator_plus::op2_range): Change call to fold_range.
1432 (operator_minus::wi_fold): Return result via reference parameter.
1433 (operator_minus::op1_range): Change call to fold_range.
1434 (operator_minus::op2_range): Change call to fold_range.
1435 (operator_min::wi_fold): Return result via reference parameter.
1436 (operator_max::wi_fold): Same.
1437 (cross_product_operator::wi_cross_product): Same.
1438 (operator_mult::wi_fold): Same.
1439 (operator_div::wi_fold): Same.
1440 (operator_div op_floor_div): Fix whitespace.
1441 (operator_exact_divide::op1_range): Change call to fold_range.
1442 (operator_lshift::fold_range): Return result via reference parameter.
1443 (operator_lshift::wi_fold): Same.
1444 (operator_rshift::fold_range): Same.
1445 (operator_rshift::wi_fold): Same.
1446 (operator_cast::fold_range): Same.
1447 (operator_cast::op1_range): Change calls to fold_range.
1448 (operator_logical_and::fold_range): Return result via reference.
1449 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
1450 (operator_bitwise_and::wi_fold): Return result via reference.
1451 (operator_logical_or::fold_range): Same.
1452 (operator_bitwise_or::wi_fold): Same.
1453 (operator_bitwise_xor::wi_fold): Same.
1454 (operator_trunc_mod::wi_fold): Same.
1455 (operator_logical_not::fold_range): Same.
1456 (operator_bitwise_not::fold_range): Same.
1457 (operator_bitwise_not::op1_range): Change call to fold_range.
1458 (operator_cst::fold_range): Return result via reference.
1459 (operator_identity::fold_range): Same.
1460 (operator_abs::wi_fold): Same.
1461 (operator_absu::wi_fold): Same.
1462 (operator_negate::fold_range): Same.
1463 (operator_negate::op1_range): Change call to fold_range.
1464 (operator_addr_expr::fold_range): Return result via reference.
1465 (operator_addr_expr::op1_range): Change call to fold_range.
1466 (operator_pointer_plus::wi_fold): Return result via reference.
1467 (operator_pointer_min_max::wi_fold): Same.
1468 (operator_pointer_and::wi_fold): Same.
1469 (operator_pointer_or::wi_fold): Same.
1470 (range_op_handler): Change call to fold_range.
1472 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
1474 (range_fold_unary_symbolics_p): Same.
1475 (range_fold_binary_expr): Same.
1476 (range_fold_unary_expr): Same.
1478 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1480 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
1481 vector type as an argument rather than reading it from the
1483 (vect_create_epilog_for_reduction): Update accordingly.
1484 (vectorizable_reduction): Likewise.
1485 (vect_transform_cycle_phi): Likewise.
1487 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
1489 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
1490 the comparison codes that make sense for the mode used, and only the
1491 codes that can be done with a single branch instruction.
1493 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
1495 PR tree-optimization/92351
1496 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
1497 peeling the main loop for alignment, make sure to set the misalignment
1498 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
1500 2019-11-08 Richard Biener <rguenther@suse.de>
1502 * dbgcnt.def (ivopts_loop): Add.
1503 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
1504 ivopts_loop before optimizing a loop.
1506 2019-11-08 Richard Biener <rguenther@suse.de>
1509 * tree-inline.c (declare_return_variable): Properly handle
1510 type mismatches for the return slot.
1512 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
1515 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
1516 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
1518 (got_helper_needed): New static variable.
1519 (output_load_pcrel_sym): New function.
1520 (get_pc_thunk_name): Remove after inlining...
1521 (load_got_register): ...here. Rework the initialization of the GOT
1522 register and of the GOT helper.
1523 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
1524 (sparc_file_end): Test got_helper_needed to decide whether the GOT
1525 helper must be emitted. Use output_asm_insn instead of fprintf.
1526 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
1527 if optimization is enabled.
1528 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
1529 by calling output_load_pcrel_sym.
1531 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1533 * tree-sra.c (create_access): Delay disqualifying the base
1534 for poly_int values until we know we have a base.
1536 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
1538 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
1539 for loops with SIMDUID set. Enable epilogue vectorization for loops
1540 with SIMDLEN set after finding a main loop with a VF that matches it.
1542 2019-11-08 Jakub Jelinek <jakub@redhat.com>
1545 * gimple-ssa-store-merging.c (find_constituent_stores): For return
1546 value only, return non-NULL if there is a single non-clobber
1547 constituent store even if there are constituent clobbers and return
1548 one of clobber constituent stores if all constituent stores are
1550 (split_group): Handle clobbers.
1551 (imm_store_chain_info::output_merged_store): When computing
1552 bzero_first, look after all clobbers at the start. Don't count
1553 clobber stmts in orig_num_stmts, except if the first orig store is
1554 a clobber covering the whole area and split_stores cover the whole
1555 area, consider equal number of stmts ok. Punt if split_stores
1556 contains only ->orig stores and their number plus number of original
1557 clobbers is equal to original number of stmts. For ->orig, look past
1558 clobbers in the constituent stores.
1559 (imm_store_chain_info::output_merged_stores): Don't remove clobber
1561 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
1563 (store_valid_for_store_merging_p): Allow clobber stmts.
1564 (verify_clear_bit_region_be): Fix up a thinko in function comment.
1567 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
1568 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
1570 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
1571 force creation of a unique data.stack_parm slot.
1573 2019-11-08 Richard Biener <rguenther@suse.de>
1575 * genmatch.c (expr::gen_transform): Use the resimplify
1576 member function instead of hard-coding the gimple_resimplifyN variant.
1577 (dt_simplify::gen_1): Likewise.
1579 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1581 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
1584 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1586 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
1587 instead of INTEGER_CST.
1589 2019-11-08 Richard Biener <rguenther@suse.de>
1591 PR tree-optimization/92324
1592 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
1593 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
1594 sign-conversions as necessary.
1595 (vectorizable_reduction): Reject conversions in the chain
1596 that are not sign-conversions, base analysis on a non-converting
1597 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
1598 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
1600 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
1601 (STMT_VINFO_REDUC_VECTYPE): Likewise.
1603 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
1606 * config/avr/avr.opt (-mdouble=, -mlong-double=):
1607 Fix a missing '-' when displaying these options in the
1610 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1612 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
1614 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1616 * config/aarch64/aarch64-builtins.c
1617 (aarch64_builtin_vectorized_function): Remove bswap handling.
1619 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1621 * tree-core.h (tree_type_common::indivisible_p): New member variable.
1622 * tree.h (TYPE_INDIVISIBLE_P): New macro.
1623 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
1624 Treat the vector types as indivisible.
1626 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1628 * optabs.def (gather_load_optab, mask_gather_load_optab)
1629 (scatter_store_optab, mask_scatter_store_optab): Turn into
1630 conversion optabs, with the offset mode given explicitly.
1631 * doc/md.texi: Update accordingly.
1632 * config/aarch64/aarch64-sve-builtins-base.cc
1633 (svld1_gather_impl::expand): Likewise.
1634 (svst1_scatter_impl::expand): Likewise.
1635 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
1636 (expand_scatter_store_optab_fn): Likewise.
1637 (direct_gather_load_optab_supported_p): Likewise.
1638 (direct_scatter_store_optab_supported_p): Likewise.
1639 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
1641 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
1642 (internal_gather_scatter_fn_supported_p): Replace the offset sign
1643 argument with the offset vector type. Require the two vector
1644 types to have the same number of elements but allow their element
1645 sizes to be different. Treat the optabs as conversion optabs.
1646 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
1647 prototype accordingly.
1648 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
1649 (supports_vec_convert_optab_p): ...this new function.
1650 (supports_vec_gather_load_p): Update accordingly.
1651 (supports_vec_scatter_store_p): Likewise.
1652 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
1653 Replace the offset sign and bits parameters with a scalar type tree.
1654 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
1655 Pass back the offset vector type instead of the scalar element type.
1656 Allow the offset to be wider than the memory elements. Search for
1657 an offset type that the target supports, stopping once we've
1658 reached the maximum of the element size and pointer size.
1659 Update call to internal_gather_scatter_fn_supported_p.
1660 (vect_check_gather_scatter): Update calls accordingly.
1661 When testing a new scale before knowing the final offset type,
1662 check whether the scale is supported for any signed or unsigned
1663 offset type. Check whether the target supports the source and
1664 target types of a conversion before deciding whether to look
1665 through the conversion. Record the chosen offset_vectype.
1666 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
1667 (vect_recog_gather_scatter_pattern): Get the scalar offset type
1668 directly from the gs_info's offset_vectype instead. Pass a zero
1669 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
1670 * tree-vect-stmts.c (check_load_store_masking): Update call to
1671 internal_gather_scatter_fn_supported_p, passing the offset vector
1672 type recorded in the gs_info.
1673 (vect_truncate_gather_scatter_offset): Update call to
1674 vect_check_gather_scatter, leaving it to search for a valid
1676 (vect_use_strided_gather_scatters_p): Convert the offset to the
1677 element type of the gs_info's offset_vectype.
1678 (vect_get_gather_scatter_ops): Get the offset vector type directly
1680 (vect_get_strided_load_store_ops): Likewise.
1681 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
1682 and IFN_MASK_GATHER_LOAD.
1683 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
1684 (gather_load<mode><v_int_equiv>): ...this.
1685 (mask_gather_load<mode>): Rename to...
1686 (mask_gather_load<mode><v_int_equiv>): ...this.
1687 (scatter_store<mode>): Rename to...
1688 (scatter_store<mode><v_int_equiv>): ...this.
1689 (mask_scatter_store<mode>): Rename to...
1690 (mask_scatter_store<mode><v_int_equiv>): ...this.
1692 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
1695 * config/rs6000/predicates.md
1696 (signed_or_equality_comparison_operator): New predicate.
1697 (unsigned_or_equality_comparison_operator): Likewise.
1698 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
1699 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
1700 * config/rs6000/vector.md
1701 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
1702 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
1703 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
1704 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
1705 vector modes and same-size integer vector modes.
1706 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
1707 (vector_lt<mode> for VEC_F): New expand.
1708 (vector_le<mode> for VEC_F): Likewise.
1709 (vector_ne<mode> for VEC_F): Likewise.
1710 (vector_unge<mode> for VEC_F): Likewise.
1711 (vector_ungt<mode> for VEC_F): Likewise.
1712 (vector_unle<mode> for VEC_F): Likewise.
1713 (vector_unlt<mode> for VEC_F): Likewise.
1714 (vector_uneq<mode>): Expose name.
1715 (vector_ltgt<mode>): Likewise.
1716 (vector_unordered<mode>): Likewise.
1717 (vector_ordered<mode>): Likewise.
1719 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
1722 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
1723 Enhance ix86_expand_vector_init_concat.
1725 2019-11-08 Joseph Myers <joseph@codesourcery.com>
1727 * doc/invoke.texi (-Wold-style-definition): Document () not being
1728 considered an old-style definition for C2x.
1730 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
1732 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
1734 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
1735 insn patterns using ldcw instruction.
1736 (memory_barrier): Remove insn pattern using sync instruction.
1737 * config/pa/pa.opt (coherent-ldcw): New option.
1738 (ordered): New option.
1740 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
1742 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
1745 2019-11-07 Jakub Jelinek <jakub@redhat.com>
1747 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
1748 typo - mistmatch -> mismatch.
1749 * ipa-profile.c (ipa_profile): Likewise.
1750 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
1751 - mistmatch -> mismatch.
1753 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
1755 * simplify-rtx.c (comparison_to_mask): New function.
1756 (mask_to_comparison): New function.
1757 (simplify_logical_relational_operation): New function.
1758 (simplify_binary_operation_1): Call
1759 simplify_logical_relational_operation.
1761 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
1764 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
1765 modes for integer constants.
1767 2019-11-07 Jan Hubicka <jh@suse.cz>
1770 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
1773 2019-11-07 Jan Hubicka <jh@suse.cz>
1775 * optc-save-gen.awk: Generate cl_target_option_free
1776 and cl_optimization_option_free.
1777 * opth-en.awk: Declare cl_target_option_free
1778 and cl_optimization_option_free.
1779 * tree.c (free_node): Use it.
1781 2019-11-06 Jan Hubicka <jh@suse.cz>
1783 * lto-streamer-in.c: Include alloc-pool.h.
1784 (freeing_string_slot_hasher): Remove.
1785 (string_slot_allocator): New object allocator.
1786 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
1787 (file_name_obstack): New obstack.
1788 (canon_file_name): Allocate in obstack and allocator.
1789 (lto_reader_init): Initialize obstack and allocator.
1790 (lto_free_file_name_hash): New function.
1791 * lto-streamer.h (lto_free_file_name_hash): New.
1793 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
1795 PR tree-optimization/89134
1796 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
1797 * params.def: Add min-loop-cond-split-prob.
1798 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
1799 outside checks on loop into the function.
1800 (split_info): New class.
1801 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
1802 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
1803 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
1804 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
1805 (stmt_semi_invariant_p, branch_removable_p): Likewise.
1806 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
1807 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
1808 (split_loop_on_cond): Likewise.
1809 (tree_ssa_split_loops): Add loop split on conditional statement.
1811 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
1813 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
1816 2019-11-07 Richard Biener <rguenther@suse.de>
1818 PR tree-optimization/92405
1819 * tree-vect-loop.c (vectorizable_reduction): Appropriately
1820 restrict lane-reducing ops to single stmt chains.
1822 2019-11-07 Martin Jambor <mjambor@suse.cz>
1825 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
1826 * cgraph.h (gimple_check_call_matching_types): Remove
1827 * cgraph.c (gimple_check_call_args): Likewise.
1828 (gimple_check_call_matching_types): Likewise.
1829 (symbol_table::create_edge): Do not call
1830 gimple_check_call_matching_types.
1831 (cgraph_edge::make_direct): Likewise.
1832 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1833 * value-prof.h (check_ic_target): Remove.
1834 * value-prof.c (check_ic_target): Remove.
1835 (gimple_ic_transform): Do nat call check_ic_target.
1836 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
1837 (afdo_indirect_call): Likewise.
1838 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
1839 gimple_check_call_matching_types.
1840 * ipa-inline.c (early_inliner): Likewise.
1842 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1844 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
1845 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
1846 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
1847 * config/arm/arm_acle_builtins.def: Define builtins for the above.
1848 * config/arm/iterators.md (USSAT16): New int_iterator.
1849 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
1851 * config/arm/predicates.md (ssat16_imm): New predicate.
1852 (usat16_imm): Likewise.
1853 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
1855 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1857 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
1859 (arm_<simd32_op>): New define_expands.
1860 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
1861 __smuad, __smuadx): Define.
1862 * config/arm/arm_acle_builtins.def: Define builtins for the above.
1863 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
1864 (SIMD32_BINOP_Q): Likewise.
1865 (simd32_op): Handle the above.
1866 * config/arm/unspecs.md: Define unspecs for the above.
1868 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1870 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
1871 * config/arm/arm.md (APSRGE_REGNUM): Define.
1872 (arm_<simd32_op>): New define_insn.
1873 (arm_sel): Likewise.
1874 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
1875 (CALL_USED_REGISTERS): Likewise.
1876 (REG_ALLOC_ORDER): Likewise.
1877 (FIRST_PSEUDO_REGISTER): Update value.
1878 (ARM_GE_BITS_READ): Define.
1879 * config/arm/arm.c (arm_conditional_register_usage): Clear
1880 APSRGE_REGNUM from operand_reg_set.
1881 (arm_ge_bits_access): Define.
1882 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
1884 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
1885 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
1886 FAIL if ARM_GE_BITS_READ.
1887 (*arm_add<mode>3): New define_insn.
1888 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
1889 (*arm_sub<mode>3): New define_insn.
1890 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
1891 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
1893 * config/arm/arm_acle_builtins.def: Define builtins for the above.
1894 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
1895 (simd32_op): Handle the above.
1896 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
1897 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
1898 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
1899 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
1901 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1903 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
1904 (arm_smlabb): New define_expand.
1905 (*maddhisi4tb): Rename to...
1906 (maddhisi4tb): ... This.
1907 (*maddhisi4tt): Rename to...
1908 (maddhisi4tt): ... This.
1909 (arm_smlatb_setq): New define_insn.
1910 (arm_smlatb): New define_expand.
1911 (arm_smlatt_setq): New define_insn.
1912 (arm_smlatt): New define_expand.
1913 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
1914 (arm_<smlaw_op>): New define_expand.
1915 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
1916 __smlawb, __smlawt): Define.
1917 * config/arm_acle_builtins.def: Define builtins for the above.
1918 * config/arm/iterators.md (SMLAWBT): New int_iterator.
1919 (slaw_op): New int_attribute.
1920 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
1922 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1924 * config/arm/arm.md (arm_<ss_op>): New define_expand.
1925 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
1926 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
1927 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
1928 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
1929 (ss_op): New code_attr.
1931 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1933 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
1934 * config/arm/arm.md (APSRQ_REGNUM): Define.
1935 (add_setq): New define_subst.
1936 (add_clobber_q_name): New define_subst_attr.
1937 (add_clobber_q_pred): Likewise.
1938 (maddhisi4): Change to define_expand. Split into mult and add if
1940 (arm_maddhisi4): New define_insn.
1941 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
1942 (*maddhisi4tt): Likewise.
1943 (arm_ssat): New define_expand.
1944 (arm_usat): Likewise.
1945 (arm_get_apsr): New define_insn.
1946 (arm_set_apsr): Likewise.
1947 (arm_saturation_occurred): New define_expand.
1948 (arm_set_saturation): Likewise.
1949 (*satsi_<SAT:code>): Rename to...
1950 (satsi_<SAT:code><add_clobber_q_name>): ... This.
1951 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
1952 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
1953 (CALL_USED_REGISTERS): Mark apsrq.
1954 (FIRST_PSEUDO_REGISTER): Update value.
1955 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
1956 (machine_function): Add q_bit_access.
1957 (ARM_Q_BIT_READ): Define.
1958 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
1959 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
1961 (arm_q_bit_access): Define.
1962 * config/arm/arm-builtins.c: Include stringpool.h.
1963 (arm_sat_binop_imm_qualifiers,
1964 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
1965 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
1966 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
1967 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
1968 SET_SAT_QUALIFIERS): Likewise.
1969 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
1970 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
1971 Handle 0 argument expander.
1972 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
1973 (arm_check_builtin_call): Define.
1974 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
1975 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
1976 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
1977 (arm_q_bit_access): Likewise.
1978 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
1979 __saturation_occurred, __set_saturation_occurred): Define.
1980 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
1981 saturation_occurred, set_saturation_occurred.
1982 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
1983 (UNSPEC_APSR_READ): Likewise.
1984 (VUNSPEC_APSR_WRITE): Likewise.
1985 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
1986 (*arm_ssadd<mode>3): New define_insn.
1987 (sssub<mode>3): Convert to define_expand.
1988 (*arm_sssub<mode>3): New define_insn.
1989 (ssmulsa3): Convert to define_expand.
1990 (*arm_ssmulsa3): New define_insn.
1991 (usmulusa3): Convert to define_expand.
1992 (*arm_usmulusa3): New define_insn.
1993 (ssmulha3): FAIL if ARM_Q_BIT_READ.
1994 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
1995 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
1997 2019-11-07 Martin Liska <mliska@suse.cz>
2000 * cgraph.c (delete_function_version): Clear global
2001 variable version_info_node if equal to deleted
2004 2019-11-07 Martin Liska <mliska@suse.cz>
2006 * fold-const.c (operand_compare::operand_equal_p): Add comparison
2007 of CONSTRUCTOR_NO_CLEARING.
2008 (operand_compare::hash_operand): Likewise.
2010 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
2012 Support 64-bit double and 64-bit long double configurations.
2015 * config.gcc (tm_defines) [avr]: Set from --with-double=,
2016 --with-long-double=.
2017 * config/avr/t-multilib: Remove.
2018 * config/avr/t-avr: Output of genmultilib.awk is now fully
2019 dynamically generated and no more part of the repo.
2020 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
2021 Pass them down to...
2022 * config/avr/genmultilib.awk: ...here and handle them.
2023 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
2024 (-mlong-double=, avr_long_double). New option and var.
2025 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
2026 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
2027 Set default as requested by --with-double=
2028 (TARGET_HANDLE_OPTION): Define to this...
2029 (avr_handle_option): ...new hook worker.
2030 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
2031 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
2032 (avr_double_lib): New proto for spec function.
2033 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
2034 (DRIVER_SELF_SPECS): Call %:double-lib.
2035 * config/avr/avr.c (avr_option_override): Assert
2036 sizeof(long double) >= sizeof(double) for the target.
2037 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
2038 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
2039 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
2040 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
2041 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
2042 New built-in define depending on --with-double=, --with-long-double=.
2043 * config/avr/driver-avr.c (avr_double_lib): New spec function.
2044 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
2045 * doc/install.texi (Cross-Compiler-Specific Options)
2046 <--with-double=, --with-long-double=>: Doc.
2048 2019-11-07 Richard Biener <rguenther@suse.de>
2050 * dbgcnt.def (gimple_unroll): New.
2051 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
2052 gimple_unroll debug counter before applying transform.
2053 (try_peel_loop): Likewise.
2055 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
2057 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
2058 frame pointer in multiple registers.
2059 (ira_setup_eliminable_regset): Setup eliminable_regset,
2060 ira_no_alloc_regs and regs_ever_live for frame pointer in
2063 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
2065 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
2068 2019-11-06 Jan Hubicka <jh@suse.cz>
2070 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
2072 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
2073 Do not silently ignore summary corruptions.
2075 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
2077 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
2078 the epilogue if there are peeled iterations for it to handle.
2080 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
2082 * config/arc/arc.c (arc_split_ior): Add asserts.
2083 (arc_split_mov_const): Likewise.
2084 (arc_check_ior_const): Do not match known short immediate values.
2085 * config/arc/arc.md (movsi): Don't split predicated instructions
2088 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
2090 * config/arc/arc.opt (mea): Update help string.
2091 * doc/invoke.texi(ARC): Update mea option info.
2093 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
2095 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
2096 (zero_extendqisi2_ac): Likewise.
2097 (zero_extendhisi2_i): Likewise.
2098 (extendqihi2_i): Likewise.
2099 (extendqisi2_ac): Likewise.
2100 (extendhisi2_i): Likewise.
2102 2019-11-06 Richard Biener <rguenther@suse.de>
2104 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
2105 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
2106 Simplify single_defuse_cycle condition.
2108 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
2110 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
2111 epilogue loop, make sure that the VF is small enough or that
2112 the epilogue loop can be fully-masked.
2114 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
2116 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
2117 loop when we've finished, rather than returning directly from
2118 the loop. Use a local variable to track whether we're still
2119 searching for the preferred simdlen. Make vect_epilogues
2120 record whether the next iteration should try to treat the
2121 loop as an epilogue.
2123 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
2125 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
2126 __arc_hard_float__, __ARC_HARD_FLOAT__,
2127 __arc_soft_float__, __ARC_SOFT_FLOAT__
2129 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
2131 PR tree-optimization/92317
2132 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
2133 update phi's with constant phi arguments.
2135 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
2136 Alexandre Oliva <oliva@adacore.com>
2138 * common.opt (-fcallgraph-info[=]): New option.
2139 * doc/invoke.texi (Developer options): Document it.
2140 * opts.c (common_handle_option): Handle it.
2141 * builtins.c (expand_builtin_alloca): Record allocation if
2142 -fcallgraph-info=da.
2143 * calls.c (expand_call): If -fcallgraph-info, record the call.
2144 (emit_library_call_value_1): Likewise.
2145 * flag-types.h (enum callgraph_info_type): New type.
2146 * explow.c: Include stringpool.h.
2147 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
2148 * function.c (allocate_stack_usage_info): New.
2149 (allocate_struct_function): Call it for -fcallgraph-info.
2150 (prepare_function_start): Call it otherwise.
2151 (record_final_call, record_dynamic_alloc): New.
2152 * function.h (struct callinfo_callee): New.
2153 (CALLEE_FROM_CGRAPH_P): New.
2154 (struct callinfo_dalloc): New.
2155 (struct stack_usage): Add callees and dallocs.
2156 (record_final_call, record_dynamic_alloc): Declare.
2157 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
2158 object if -fcallgraph-info=da.
2159 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
2160 * print-tree.h (print_decl_identifier): Declare.
2161 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
2162 * print-tree.c: Include print-tree.h.
2163 (print_decl_identifier): New function.
2164 * toplev.c: Include print-tree.h.
2165 (callgraph_info_file): New global variable.
2166 (callgraph_info_external_printed): Likewise.
2167 (output_stack_usage): Rename to...
2168 (output_stack_usage_1): ... this. Make it static, add cf
2169 parameter. If -fcallgraph-info=su, print stack usage to cf.
2170 If -fstack-usage, use print_decl_identifier for
2172 (INDIRECT_CALL_NAME): New.
2173 (dump_final_node_vcg_start): New.
2174 (dump_final_callee_vcg, dump_final_node_vcg): New.
2175 (output_stack_usage): New.
2176 (lang_dependent_init): Open and start file if
2177 -fcallgraph-info. Allocated callgraph_info_external_printed.
2178 (finalize): If callgraph_info_file is not null, finish it,
2179 close it, and release callgraph_info_external_printed.
2181 2019-11-06 Gergö Barany <gergo@codesourcery.com>
2182 Frederik Harwath <frederik@codesourcery.com>
2183 Thomas Schwinge <thomas@codesourcery.com>
2185 * omp-low.c (struct omp_context): New fields
2186 local_reduction_clauses, outer_reduction_clauses.
2187 (new_omp_context): Initialize these.
2188 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
2189 (scan_omp_for): Check reduction clauses for incorrect nesting.
2191 2019-11-06 Jakub Jelinek <jakub@redhat.com>
2194 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
2195 operands with non-memory constraints.
2197 2019-11-05 Martin Sebor <msebor@redhat.com>
2199 PR tree-optimization/92373
2200 * tree.c (component_ref_size): Only consider initializers of objects
2201 of matching struct types.
2202 Return null for instances of interior zero-length arrays.
2204 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
2206 * doc/md.texi (Insn Splitting): Fix combiner documentation.
2208 2019-11-05 Jason Merrill <jason@redhat.com>
2210 PR tree-optimization/91825
2211 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
2213 2019-11-05 Jim Wilson <jimw@sifive.com>
2216 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
2217 optimize_insn_for_speed_p is true.
2219 2019-11-05 Martin Sebor <msebor@redhat.com>
2223 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
2225 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
2226 name and location for a temporary variable.
2228 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2230 * tree-vrp.c (value_range::value_range): Fix whitespace.
2231 (defined_ranges_p): Same.
2232 (range_fold_binary_symbolics_p): Same.
2233 (value_range::intersect_helper): Same.
2234 (value_range::union_helper): Same.
2235 * tree-vrp.h (range_fold_binary_expr): Same.
2237 2019-11-04 Martin Sebor <msebor@redhat.com>
2241 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
2242 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
2243 of message printed in a warning for empty arrays.
2244 (vrp_prop::check_mem_ref): Also handle function parameters and
2247 2019-11-05 Richard Biener <rguenther@suse.de>
2249 PR tree-optimization/92371
2250 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
2251 on the original stmt of live stmts in the chain.
2252 (vectorizable_live_operation): Look at the original stmt when
2253 checking STMT_VINFO_REDUC_DEF.
2255 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2257 * gimple-fold.c, gimple-loop-versioning.cc,
2258 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
2259 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
2260 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
2261 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
2262 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
2263 value_range_equiv, and value_range_base to value_range.
2265 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
2267 * expr.c (build_personality_function): Fix generated type to
2268 match actual personality functions.
2270 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
2272 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
2273 enough bytes for the NULL character.
2275 2019-11-05 Richard Biener <rguenther@suse.de>
2277 PR tree-optimization/92280
2278 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
2279 had a single use do not create a new CTOR.
2280 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
2281 BIT_FIELD_REF of a CTOR via GENERIC.
2283 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
2285 * config/s390/s390.c (s390_vector_alignment): Check if the value
2286 fits into uhwi before using it.
2288 2019-11-05 Martin Liska <mliska@suse.cz>
2290 * symbol-summary.h: Use ggc_delete.
2292 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2294 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
2295 Change vec_perm field to 10.
2297 2019-11-05 Arnaud Charlet <charlet@adacore.com>
2299 * doc/install.texi: Further fix syntax for html generation.
2301 2019-11-05 Martin Liska <mliska@suse.cz>
2303 * symbol-summary.h: Rename allocator to m_allocator and
2306 2019-11-05 Richard Biener <rguenther@suse.de>
2308 PR tree-optimization/92324
2309 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
2310 all signed or unsigned operations.
2312 2019-11-05 Jan Hubicka <jh@suse.cz>
2314 * hsa-brig.c: Include alloc-pool.h
2315 * hsa-dump.c: Likewise.
2316 * hsa-gen.c: Likewise.
2317 * hse-regalloc.c: Likewise.
2318 * ipa-hsa.c: Likewise.
2319 * ipa-predicate.c: Likewise.
2320 * ipa-reference.c: Likewise.
2321 * ipa-sra.c: Likewise.
2322 * omp-expand.c: Likewise.
2323 * omp-general.c: Likewise.
2324 * omp-low.c: Likewise.
2325 * sumbol-summary.h (function_summary_base): Add allocator.
2326 (function_summary<T *>::function_summary): Update construction.
2327 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
2328 (call_summary_base): Add allcator.
2329 (call_summary<T *>::call_summary): Update construction.
2330 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
2332 2019-11-05 Jakub Jelinek <jakub@redhat.com>
2334 PR tree-optimization/91945
2335 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
2336 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
2339 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2341 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
2342 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
2343 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
2344 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
2345 (vrp_set_zero_nonzero_bits): Move to...
2346 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
2347 (vr_values::simplify_bit_ops_using_ranges): Rename
2348 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
2350 2019-11-05 Martin Liska <mliska@suse.cz>
2353 * fold-const.c (operand_compare::hash_operand): Remove
2354 FIELD_DECL handling.
2356 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2358 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
2359 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
2362 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2364 * tree-vrp.c (value_range_base::operator==): Use equal_p to
2365 properly handle symbolics.
2366 (range_compatible_p): Remove.
2368 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
2370 * common.opt (-fabi-version): Document =14.
2371 * doc/invoke.texi (C++ Dialect Options): Likewise.
2373 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2375 * tree-vrp.c (value_range_base::set): Do not special case pointers.
2377 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
2379 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
2380 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
2381 gcn_omp_device_kind_arch_isa.
2382 * config/gcn/t-omp-device: New file.
2383 * configure.ac: Support gcn for omp_device_property.
2384 * configure: Regenerate.
2386 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2388 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
2389 (vrp_val_max): Same.
2390 (vrp_val_is_min): Same.
2391 (vrp_val_is_max): Same.
2392 (value_range_base::nonzero_p): Remove last argument to
2394 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
2395 (vrp_val_max): Same.
2396 (vrp_val_is_min): Same.
2397 (vrp_val_is_max): Same.
2398 (value_range_base::set_varying): Remove last argument to vrp_val*.
2399 (value_range_base::dump): Same.
2400 (value_range_base::set): Same.
2401 (value_range_base::normalize_symbolics): Same.
2402 (value_range_base::num_pairs): Same.
2403 (value_range_base::lower_bound): Same.
2404 (value_range_base::upper_bound): Same.
2405 (ranges_from_anti_range): Remove handle_pointers argument.
2406 (value_range_base::singleton_p): Remove last argument to
2407 ranges_from_anti_range.
2409 2019-11-04 Jan Hubicka <jh@suse.cz>
2411 * ipa-reference.c (init_function_info): Initialize
2412 info->global.statics_read.
2414 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2416 * tree-vrp.c (value_range_base::invert): Use constructors to build
2419 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2421 * tree-vrp.c (range_int_cst_singleton_p): Remove.
2422 * tree-vrp.h (range_int_cst_singleton_p): Remove.
2424 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2426 * tree-vrp.c (value_range_base::normalize_addresses): Handle
2429 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2431 * tree-vrp.c (dump_assert_info): New.
2432 (dump_asserts_info): New.
2434 2019-11-04 Jan Hubicka <jh@suse.cz>
2436 * ipa-inline-transform.c: Include ipa-utils.h
2437 (inline_call): Set thunk_expansion flag.
2438 * ipa-utils.h (thunk_expansion): Declare.
2439 * ipa-devirt.c (thunk_expansion): New global var.
2440 (devirt_node_removal_hook): Do not invalidate cache while
2441 doing thunk expansion.
2443 2019-11-04 Tamar Christina <tamar.christina@arm.com>
2445 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
2447 2019-11-04 Martin Sebor <msebor@redhat.com>
2449 PR tree-optimization/92349
2450 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
2451 memebers have constant sizes.
2453 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
2455 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
2457 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
2458 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
2461 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
2463 * expr.c (store_constructor): Modify to handle single element vectors.
2464 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
2466 (vect_slp_check_for_constructors): New function.
2467 (vect_slp_analyze_bb_1): Call new function to check for vector
2469 (vectorize_slp_instance_root_stmt): New function.
2470 (vect_schedule_slp): Call new function to vectorize root stmt of vector
2472 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
2474 2019-11-04 Richard Biener <rguenther@suse.de>
2476 PR tree-optimization/92345
2477 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
2478 we produced a reduction chain.
2479 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
2480 LOOP_VINFO_REDUCTIONS.
2482 2019-11-04 Jan Hubicka <jh@suse.cz>
2484 * cgraphclones.c (cgraph_node::create_version_clone): Do not
2485 duplicate summaries.
2486 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
2488 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
2489 access call summaries.
2490 (dump_ipa_call_summary): Be ready for missing edge summaries.
2491 (analyze_function_body): Use get instead of get_create to access
2493 (estimate_calls_size_and_time): Do not access summaries of
2494 inlined edges; sanity check they are missing.
2495 (ipa_call_context::estimate_size_and_time): Use get instead
2496 of get_create to access node summary.
2497 (inline_update_callee_summaries): Do not update depth of
2499 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
2501 (ipa_merge_fn_summary_after_inlining): Use get instead
2503 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
2504 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
2506 (initialize_growth_caches): Update.
2507 (do_estimate_edge_time): Remove redundant copy of context.
2508 (ipa_remove_from_growth_caches): New function.
2509 * ipa-inline.c (flatten_function): Update overall summary
2510 only when optimizing.
2511 (inline_to_all_callers): Update overall summary of function
2513 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
2514 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
2517 2019-11-04 Richard Biener <rguenther@suse.de>
2519 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
2520 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
2522 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
2524 * ggc-common.c: Include system.h before malloc.h.
2526 2019-11-04 Alexandre Oliva <oliva@adacore.com>
2528 * configure.ac: Pass --enable-obsolete=* and
2529 --enable-option-checking=* down to build configure, and fail
2530 if it fails. AC_SUBST HAVE_AUTO_BUILD.
2531 * configure: Rebuild.
2532 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
2533 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
2535 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2537 * config.in: Regenerate.
2538 * config/msp430/msp430.c (msp430_option_override): Emit an error if
2539 -mtiny-printf is used without GCC being configured with
2540 --enable-newlib-nano-formatted-io.
2541 * config/msp430/msp430.h (LINK_SPEC): Pass
2542 "--wrap puts --wrap printf" when -mtiny-printf is used.
2543 * config/msp430/msp430.opt: Document -mtiny-printf.
2544 * configure: Regenerate.
2545 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
2546 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
2547 --enable-newlib-nano-formatted-io is passed.
2548 * doc/invoke.texi: Document -mtiny-printf.
2550 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2552 * configure: Regenerate.
2554 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2556 * config/msp430/driver-msp430.c
2557 (msp430_get_linker_devices_include_path): New spec function.
2558 * config/msp430/msp430-devices.c (msp430_dirname): New function.
2559 (extract_devices_dir_from_exec_prefix): New function.
2560 (extract_devices_dir_from_collect_gcc): New function.
2561 (msp430_check_env_var_for_devices): New function.
2562 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
2563 (parse_devices_csv): Call msp430_check_env_var_for_devices if
2564 devices.csv was not found using other methods.
2565 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
2567 (msp430_dirname): Likewise.
2568 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
2569 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
2570 msp430_get_linker_devices_include_path.
2571 (TARGET_EXTRA_PRE_INCLUDES): Define.
2572 * doc/invoke.texi: Document new ways of searching for support files.
2574 2019-11-04 Richard Biener <rguenther@suse.de>
2576 PR tree-optimization/92301
2577 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
2578 as required by epilogue generation
2580 2019-11-04 Martin Liska <mliska@suse.cz>
2583 * fold-const.c (operand_compare::hash_operand): Fix field
2584 hashing of CONSTRUCTOR.
2586 2019-11-04 Martin Liska <mliska@suse.cz>
2588 * ggc.h (ggc_delete): New function.
2589 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
2590 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
2591 (ipa_free_all_node_params): Likewise.
2592 * ipa-sra.c (ipa_sra_analysis): Likewise.
2594 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2596 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
2597 set_switch_stmt_execution_predicate, compute_bb_predicates,
2598 will_be_nonconstant_expr_predicate,
2599 phi_result_unknown_predicate,
2600 analyze_function_body): Pass arround params summary.
2601 (ipa_call_context::duplicate_from): New comment;
2602 only duplicate useful values.
2603 (ipa_call_context::equal_to): Only compare useful values.
2604 (remap_edge_summaries): Pass params_summary.
2605 (remap_hint_predicate): Likewise.
2606 (ipa_merge_fn_summary_after_inlining): Likewise.
2607 (inline_read_section): Initialize params summary used flags.
2608 * ipa-predicate.c (predicate::remap_after_inlining): Pass
2609 around param_summary.
2610 (add_condition): Initialized used params summary flags.
2611 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
2612 (inline_param_summary::useless_p): New predicate.
2613 (remap_after_inlining, add_condition): Update prototype
2614 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
2616 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
2618 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
2619 (ipa_analyze_virtual_call_uses): Likewise.
2620 (update_indirect_edges_after_inlining): Update param summaries.
2621 (ipa_print_node_params): Print used flags.
2622 (ipa_read_indirect_edge_info): Update param summareis.
2623 * ipa-prop.h (ipa_param_descriptor): Add
2624 used_by_ipa_predicates, used_by_indirect_call
2625 and used_by_polymorphic_call.
2626 (ipa_set_param_used_by_ipa_predicates,
2627 ipa_set_param_used_by_indirect_call,
2628 ipa_set_param_used_by_polymorphic_call,
2629 ipa_is_param_used_by_ipa_predicates,
2630 ipa_is_param_used_by_indirect_call,
2631 ipa_is_param_used_by_polymorphic_call): New inline functions.
2633 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2635 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
2637 (ipa_call_context::release): Add ALL parameter.
2638 (ipa_call_context::equal_to): New member function.
2639 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
2640 duplicate_form, release, equal_to and exists_p member functoins.
2641 * ipa-inline-analysis.c (node_context_cache_entry): New
2643 (node_context_summary): Likewise.
2644 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
2645 node_context_clear): New static vars.
2646 (initialize_growth_caches): New function.
2647 (free_growth_caches): Also delete node_context_cache; output stats.
2648 (do_estimate_edge_time): Cache contexts.
2649 (reset_node_cache): New function.
2650 * ipa-inline.c (reset_edge_caches): Reset also node cache.
2651 (inline_small_functions): Initialize growth caches.
2652 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
2654 * ipa-predicate.h (inline_param_summary::equal_to): New.
2655 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
2656 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
2657 (ipa_agg_jump_function): Implement equal_to member function.
2659 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2661 * ipa-fnsummary.c (inline_read_section): Set vector size
2664 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2666 * ipa-fnsummary.c (ipa_call_context): New constructor.
2667 (estimate_node_size_and_time): Turn to ...
2668 (ipa_call_context::estimate_size_and_time): ... this one.
2669 (ipa_call_context::release): New.
2670 * ipa-fnsummary.h (ipa_call_context): New class.
2671 (estimate_node_size_and_time): Remove.
2672 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
2673 do_estimate_edge_hints): Update.
2675 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2677 * config.in: Regenerate.
2678 * configure: Regenerate.
2679 * configure.ac: Check for mallinfo.
2680 * ggc-common.c: Include malloc.h if available;
2682 (report_heap_memory_use): New functoin.
2683 * ggc-page.c (ggc_grow): Do not print "start".
2684 * ggc.h (report_heap_memory_use): Declare.
2685 * pases.c (execute_one_pass): Report memory after IPA passes.
2686 (ipa_read_summaries_1): Likewise.
2687 (ipa_read_optimization_summaries_1): Likewise.
2689 2019-11-02 Jakub Jelinek <jakub@redhat.com>
2691 * gimplify.h (omp_construct_selector_matches): Change return
2692 type to int, add a new SCORES argument.
2693 * gimplify.c (omp_construct_selector_matches): Likewise. If
2694 SCORES is non-NULL, compute scores of each construct.
2695 * omp-general.h (omp_get_context_selector): Declare.
2696 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
2697 Adjust omp_construct_selector_matches callers.
2698 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
2699 (omp_context_compute_score): New function.
2700 (omp_resolve_declare_variant): Compute scores and decide based on
2704 * configure.ac: Don't look for omp-device-properties files from
2705 installed offloading compilers. Instead add tmake_file snippets
2706 for configured offloading targets and use files they generate.
2707 * Makefile.in (install): Don't depend on
2708 install-omp-device-properties.
2709 (install-omp-device-properties): Remove goal.
2710 * config/i386/t-omp-device: New file.
2711 * config/i386/t-intelmic (omp-device-properties): Remove goal.
2712 * config/nvptx/t-omp-device: New file.
2713 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
2714 * configure: Regenerated.
2716 * omp-general.h (omp_context_selector_set_compare): Declare.
2717 * omp-general.c (omp_construct_simd_compare,
2718 omp_context_selector_props_compare, omp_context_selector_set_compare,
2719 omp_context_selector_compare): New functions.
2720 (omp_resolve_declare_variant): Prune variants that are strict subset
2723 2019-11-01 Martin Sebor <msebor@redhat.com>
2729 * doc/invoke.texi (-Wzero-length-bounds): Document.
2730 * gimple-match-head.c (try_conditional_simplification): Use memcpy
2731 instead of a hand-rolled loop to avoid PR 92323.
2732 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
2734 (vrp_prop::check_mem_ref): Handle declared struct objects.
2735 * tree.c (last_field): New function.
2736 (array_at_struct_end_p): Handle MEM_REF.
2737 (get_initializer_for): New helper.
2738 (component_ref_size): Add argument. Rename locals. Call
2739 get_initializer_for instead of fold_ctor_reference. Correct handling
2740 of flexible array members.
2741 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
2743 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
2745 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
2746 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
2747 UNSPEC_VSX_CVSPUXDS): Remove.
2748 (vsx_xvcvspdp): New define_expand, old define_insn split to...
2749 (vsx_xvcvspdp_be): ... this. New. And...
2750 (vsx_xvcvspdp_le): ... this. New.
2751 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
2752 (vsx_xvcv<su>xwdp_be): ... this. New. And...
2753 (vsx_xvcv<su>xwdp_le): ... this. New.
2754 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
2755 (vsx_xvcvsp<su>xds_be): ... this. New. And...
2756 (vsx_xvcvsp<su>xds_le): ... this. New.
2758 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
2760 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
2761 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
2762 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
2763 UNSPEC_VSX_XVCVSPSXWS): Remove.
2764 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
2765 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
2767 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
2769 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
2770 (UNSPEC_VSX_XVCDPSP): Remove.
2771 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
2772 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
2774 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
2776 * hooks.c (hook_tree_tree_bool_null): New.
2777 * hooks.h (hook_tree_tree_bool_null): Declare.
2778 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
2779 (LANG_HOOKS_DECLS): Add it.
2780 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
2781 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
2782 (lower_omp_target): Handle Fortran array with descriptor in
2783 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
2785 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
2787 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2788 Assert that the type we store in abi_vector_types is its own
2790 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
2792 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
2794 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
2795 from a CONST_INT address when TARGET_THUMB2.
2797 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
2799 * config/arm/arm.md (add_not_cin): New insn.
2800 (add_not_shift_cin): Likewise.
2802 2019-10-31 Martin Liska <mliska@suse.cz>
2804 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
2805 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
2806 and compare_memory_operand.
2808 2019-10-31 Jakub Jelinek <jakub@redhat.com>
2810 * configure.ac: Compute and substitute omp_device_properties and
2811 omp_device_property_deps.
2812 * Makefile.in (generated_files): Add omp-device-properties.h.
2813 (omp-general.o): Depend on omp-device-properties.h.
2814 (omp_device_properties): New make variable.
2815 (omp-device-properties.h, s-omp-device-properties-h,
2816 install-omp-device-properties): New goals.
2817 (install): Depend on install-omp-device-properties for accelerators.
2818 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
2819 * target.h (enum omp_device_kind_arch_isa): New enum.
2820 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
2822 * omp-general.c: Include omp-device-properties.h.
2823 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
2824 colon instead of comma.
2825 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
2827 (omp_context_selector_matches): Implement device set arch/isa
2828 selectors, improve device set kind selector handling.
2829 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
2830 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
2831 TARGET_SIMD_CLONE_USABLE): Formatting fix.
2832 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
2833 ix86_omp_device_kind_arch_isa.
2834 * config/i386/i386-options.c (struct ix86_target_opts): Move type
2835 definition from ix86_target_string to file scope.
2836 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
2838 (ix86_omp_device_kind_arch_isa): New function.
2839 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
2840 isa_opts definitions to file scope.
2841 * config/i386/t-intelmic (omp-device-properties): New goal.
2842 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
2843 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
2844 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
2845 nvptx_omp_device_kind_arch_isa.
2846 * configure: Regenerate.
2847 * doc/tm.texi: Regenerate.
2850 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
2851 DECL_BUILT_IN in comment. Remove redundant ()s around return
2853 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
2854 before calling fndecl_built_in_p.
2855 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
2856 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
2857 fndecl_built_in_p on it.
2859 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
2861 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
2863 2019-10-31 Martin Liska <mliska@suse.cz>
2865 * config/arm/arm.c (arm_get_pcs_model): Remove usage
2866 of cgraph_local_info and use local_info_node instead.
2867 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
2868 (bfin_function_ok_for_sibcall): Likewise.
2869 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
2870 (must_reload_pic_reg_p): Likewise.
2872 2019-10-31 Jakub Jelinek <jakub@redhat.com>
2875 * tree.h (type_initializer_zero_p): Remove.
2876 * tree.c (type_initializer_zero_p): Remove.
2878 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
2880 * doc/invoke.texi (-Wshadow, -Wshadow=global
2881 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
2883 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
2885 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
2886 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
2887 and 'target exit data'.
2889 2019-10-30 Martin Jambor <mjambor@suse.cz>
2892 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
2893 availability comparison.
2895 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2897 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
2898 calls to __mspabi_mpy* functions.
2899 * config/msp430/msp430.md (mulhisi3): New define_expand.
2900 (umulhisi3): New define_expand.
2901 (*mulhisi3_inline): Use old mulhisi3 define_insn.
2902 (*umulhisi3_inline): Use old umulhisi3 define_insn.
2904 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2906 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
2907 (msp430_check_plus_not_high_mem): New.
2908 (msp430_op_not_in_high_mem): Use new functions to check if the operand
2909 might be in low memory.
2910 Indicate that a 16-bit absolute address is in lower memory.
2912 2019-10-30 Martin Jambor <mjambor@suse.cz>
2914 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
2915 ultimate_alias_target.
2917 2019-10-30 Richard Biener <rguenther@suse.de>
2919 PR tree-optimization/92275
2920 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
2921 Copy all loop-closed PHIs.
2923 2019-10-30 Martin Liska <mliska@suse.cz>
2925 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
2926 const_tree as function argument.
2927 (func_checker::compare_decl): Likewise.
2928 (func_checker::operand_equal_p): Likewise.
2929 (func_checker::compare_variable_decl): Likewise.
2930 (func_checker::parse_labels): Likewise.
2931 * ipa-icf-gimple.h: Likewise.
2933 2019-10-30 Martin Liska <mliska@suse.cz>
2935 * ipa-icf-gimple.c (func_checker::compatible_types_p):
2936 Do not compare alias sets. It's handled by operand_equal_p.
2938 2019-10-30 Martin Liska <mliska@suse.cz>
2940 * ipa-icf-gimple.c (func_checker::func_checker): Do not
2941 initialize m_compare_polymorphic.
2942 (func_checker::compare_decl): Do not compare polymorphic types.
2943 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
2944 * ipa-icf.c (sem_function::equals_private): Do not call
2945 compare_polymorphic_p.
2947 2019-10-30 Martin Liska <mliska@suse.cz>
2949 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
2951 (func_checker::compare_memory_operand): Remove.
2952 (func_checker::compare_cst_or_decl): Remove.
2953 (func_checker::operand_equal_valueize): Do not handle
2955 (func_checker::compare_gimple_call): Call compare_operand.
2956 (func_checker::compare_gimple_assign): Likewise.
2957 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
2958 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
2959 * ipa-icf.h (icf_handled_component_p): Remove.
2961 2019-10-30 Martin Liska <mliska@suse.cz>
2963 * ipa-icf-gimple.c (func_checker::hash_operand): New.
2964 (func_checker::compare_cst_or_decl): Remove handling
2966 (func_checker::compare_operand): Transform to ...
2967 (func_checker::operand_equal_p): ... this.
2968 * ipa-icf-gimple.h (class func_checker): Add
2969 operand_equal_p and hash_operand.
2970 * ipa-icf.c (sem_function::equals_private): Fix
2971 pushing and popping of cfun.
2973 2019-10-30 Martin Liska <mliska@suse.cz>
2975 * fold-const.c (operand_equal_p): Move to ...
2976 (operand_compare::operand_equal_p): ... here.
2977 (operand_compare::verify_hash_value): New.
2978 (add_expr): Move to ...
2979 (operand_compare::hash_operand): ... here.
2980 * fold-const.h (operand_equal_p): Move to the class.
2981 (class operand_compare): New.
2982 * tree.c (add_expr): Remove.
2984 2019-10-30 Martin Liska <mliska@suse.cz>
2986 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
2987 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
2989 2019-10-30 Martin Liska <mliska@suse.cz>
2993 * cgraph.c (cgraph_node::get_create): Overwrite node->order
2994 from a first_clone in order to get proper LTO section
2996 (cgraph_node::get_untransformed_body):
2997 Use lto_get_section_data where symtab_node::order
2999 * cgraphclones.c (cgraph_node::find_replacement):
3000 Update also symbol order.
3001 * ipa-fnsummary.c (ipa_fn_summary_read):
3002 Use new function lto_get_summary_section_data.
3003 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
3004 * ipa-icf.c (sem_item_optimizer::read_summary):
3006 * ipa-prop.c (ipa_prop_read_jump_functions):
3008 (ipcp_read_transformation_summaries): Likewise.
3009 * ipa-sra.c (ipa_sra_read_summary): Likewise.
3010 * lto-cgraph.c (input_node): Add also order_base.
3011 (input_varpool_node): Likewise.
3012 (input_cgraph_1): Assign the order_base.
3013 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
3014 * lto-opts.c (lto_write_options): Pass new argument.
3015 * lto-section-in.c (lto_get_section_data): Add new argumente order.
3016 (lto_get_summary_section_data): New.
3017 (lto_get_raw_section_data): Add order argument.
3018 (lto_create_simple_input_block): Likewise.
3019 * lto-section-out.c (lto_destroy_simple_output_block):
3021 * lto-streamer-in.c (lto_input_toplevel_asms):
3022 Use lto_get_summary_section_data.
3023 (lto_input_mode_table): Likewise.
3024 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
3025 (lto_output_toplevel_asms): Pass new argument.
3026 (copy_function_or_variable): Likewise.
3027 (produce_lto_section):Likewise.
3028 (produce_symtab): Likewise.
3029 (lto_write_mode_table): Likewise.
3030 (produce_asm_for_decls): Likewise.
3031 * lto-streamer.c (lto_get_section_name): Concat symbol name
3033 * lto-streamer.h (lto_get_section_data): Add order argument.
3034 (lto_get_summary_section_data): New.
3035 (lto_get_raw_section_data): Add order argument.
3036 (lto_get_section_name): Likewise.
3037 * varpool.c (varpool_node::get_constructor): Pass order argument.
3039 2019-10-30 Jakub Jelinek <jakub@redhat.com>
3041 PR tree-optimization/92262
3042 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
3043 ubase or cbase here.
3044 (remove_unused_ivs): Unshare comp before using it.
3046 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
3048 * ipa-prop.c (update_jump_functions_after_inlining):
3049 Watch for missing summaries.
3051 2019-10-30 Richard Biener <rguenther@suse.de>
3053 PR tree-optimization/65930
3054 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
3055 chains also allow a leading and trailing conversion.
3056 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
3057 intermediate reduction chains.
3058 (vect_analyze_slp_instance): Likewise. Build a SLP
3059 node for a trailing conversion manually.
3061 2019-10-30 Martin Liska <mliska@suse.cz>
3063 * cgraph.c (cgraph_node::local_info): Transform to ...
3064 (cgraph_node::local_info_node): ... this.
3065 (cgraph_node::dump): Remove cgraph_local_info and
3066 put its fields directly into cgraph_node.
3067 (cgraph_node::get_availability): Likewise.
3068 (cgraph_node::make_local): Likewise.
3069 (cgraph_node::verify_node): Likewise.
3070 * cgraph.h (struct GTY): Likewise.
3071 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
3072 (duplicate_thunk_for_node): Likewise.
3073 (cgraph_node::create_clone): Likewise.
3074 (cgraph_node::create_virtual_clone): Likewise.
3075 (cgraph_node::create_version_clone): Likewise.
3076 * cgraphunit.c (cgraph_node::reset): Likewise.
3077 (cgraph_node::finalize_function): Likewise.
3078 (cgraph_node::add_new_function): Likewise.
3079 (analyze_functions): Likewise.
3080 * combine.c (setup_incoming_promotions): Likewise.
3081 * config/i386/i386.c (ix86_function_regparm): Likewise.
3082 (ix86_function_sseregparm): Likewise.
3083 (init_cumulative_args): Likewise.
3084 * ipa-cp.c (determine_versionability): Likewise.
3085 (count_callers): Likewise.
3086 (set_single_call_flag): Likewise.
3087 (initialize_node_lattices): Likewise.
3088 (estimate_local_effects): Likewise.
3089 (create_specialized_node): Likewise.
3090 (identify_dead_nodes): Likewise.
3091 * ipa-fnsummary.c (compute_fn_summary): Likewise.
3092 (ipa_fn_summary_generate): Likewise.
3093 * ipa-hsa.c (check_warn_node_versionable): Likewise.
3094 (process_hsa_functions): Likewise.
3095 * ipa-icf.c (set_local): Likewise.
3096 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
3097 * ipa-inline.c (speculation_useful_p): Likewise.
3098 * ipa-profile.c (ipa_propagate_frequency): Likewise.
3099 (ipa_profile): Likewise.
3100 * ipa-split.c (split_function): Likewise.
3101 (execute_split_functions): Likewise.
3102 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
3103 (ipa_sra_ipa_function_checks): Likewise.
3104 * ipa-visibility.c (function_and_variable_visibility): Likewise.
3105 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
3106 * lto-cgraph.c (lto_output_node): Likewise.
3107 (input_overwrite_node): Likewise.
3108 * multiple_target.c (expand_target_clones): Likewise.
3109 * omp-simd-clone.c (simd_clone_create): Likewise.
3110 * trans-mem.c (expand_call_tm): Likewise.
3111 (ipa_tm_mayenterirr_function): Likewise.
3112 (ipa_tm_diagnose_tm_safe): Likewise.
3113 (ipa_tm_diagnose_transaction): Likewise.
3114 (ipa_tm_create_version): Likewise.
3115 (ipa_tm_transform_calls_redirect): Likewise.
3116 (ipa_tm_execute): Likewise.
3117 * tree-inline.c (expand_call_inline): Likewise.
3119 2019-10-29 Martin Liska <mliska@suse.cz>
3121 * symbol-summary.h (function_summary): Pass memory location
3122 to underlaying hash_map (or vec).
3123 (V>::fast_function_summary): Likewise.
3125 2019-10-29 Martin Liska <mliska@suse.cz>
3127 * ggc.h (ggc_alloc_no_dtor): New function.
3128 * ipa-fnsummary.c (ipa_free_fn_summary): Call
3129 destructor and ggc_free.
3130 (ipa_free_size_summary): Call delete instead
3132 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
3133 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
3134 (ipa_free_all_edge_args): Call destructor and ggc_free.
3135 (ipa_free_all_node_params): Likewise.
3136 (ipcp_free_transformation_sum): Likewise.
3137 * ipa-prop.h (ipa_check_create_node_params):
3138 Call new ggc_alloc_no_dtor.
3139 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
3140 (ipa_sra_analysis): Call destructor and ggc_free.
3141 Replace release with delete operator.
3142 * symbol-summary.h (release): Remove ..
3143 (V>::~fast_function_summary): and move logic here.
3144 Likewise for other classes.
3146 2019-10-29 Richard Biener <rguenther@suse.de>
3148 PR tree-optimization/92260
3149 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
3152 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
3154 PR tree-optimization/88915
3155 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
3156 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
3157 and make the valueize function pointer also take a void pointer.
3158 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
3159 around vn_valueize, to call it without a context.
3160 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
3161 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
3162 (~_loop_vec_info): Release epilogue_vinfos.
3163 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
3164 number of iterations of epilogue.
3165 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
3166 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
3167 versioning threshold needed for main loop.
3168 (vect_analyze_loop): Likewise.
3169 (find_in_mapping): New helper function.
3170 (update_epilogue_loop_vinfo): New function.
3171 (vect_transform_loop): When vectorizing epilogues re-use analysis done
3172 on main loop and call update_epilogue_loop_vinfo to update it.
3173 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
3174 stmts on loop preheader edge.
3175 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
3176 we decided to vectorize epilogues. Update epilogues NITERS and
3177 construct ADVANCE to update epilogues data references where needed.
3178 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
3179 (vect_do_peeling, vect_update_inits_of_drs,
3180 determine_peel_for_niter, vect_analyze_loop): Add or update
3182 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
3183 created loop_vec_info's for epilogues when available. Otherwise analyse
3184 epilogue separately.
3186 2019-10-29 Richard Biener <rguenther@suse.de>
3188 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
3191 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3193 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
3194 index for the COND_EXPR from stmt_info rather than reduc_info.
3196 2019-10-29 Richard Biener <rguenther@suse.de>
3198 PR tree-optimization/65930
3199 * tree-vect-loop.c (check_reduction_path): Relax single-use
3200 check allowing out-of-loop uses.
3201 (vect_is_simple_reduction): SLP reduction chains cannot have
3202 intermediate stmts used outside of the loop.
3203 (vect_create_epilog_for_reduction): The adjustment might need
3205 (vectorizable_reduction): Annotate live stmts of the reduction
3206 chain with STMT_VINFO_REDUC_DEF.
3207 * tree-vect-stms.c (process_use): Remove no longer true asserts.
3209 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3211 * calls.c (pass_by_reference): Leave the target to decide whether
3212 POLY_INT_CST-sized arguments should be passed by value or reference,
3213 rather than forcing them to be passed by reference.
3214 (must_pass_in_stack_var_size): Likewise.
3215 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
3216 V31_REGNUM to P15_REGNUM.
3217 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
3218 Take an extra "silent_p" parameter, defaulting to false.
3219 (aarch64_sve::svbool_type_p): Declare.
3220 (aarch64_sve::nvectors_if_data_type): Likewise.
3221 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
3222 (aarch64_frame::reg_offset): Turn into poly_int64s.
3223 (aarch64_frame::save_regs_size): Likewise.
3224 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
3225 (aarch64_frame::sve_callee_adjust): Likewise.
3226 (aarch64_frame::spare_reg_reg): Likewise.
3227 (ARM_PCS_SVE): New arm_pcs value.
3228 (CUMULATIVE_ARGS::aapcs_nprn): New field.
3229 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
3230 (CUMULATIVE_ARGS::silent_p): Likewise.
3231 (BITS_PER_SVE_PRED): New macro.
3232 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
3233 function. Reject aarch64_vector_pcs attributes on SVE functions.
3234 (aarch64_attribute_table): Use the above handler.
3235 (aarch64_sve_abi): New function.
3236 (aarch64_sve_argument_p): Likewise.
3237 (aarch64_returns_value_in_sve_regs_p): Likewise.
3238 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
3239 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
3240 descriptor for them.
3241 (aarch64_simd_decl_p): Delete.
3242 (aarch64_emit_cfi_for_reg_p): New function.
3243 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
3244 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
3245 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
3246 as partly clobbered for the SVE PCS.
3247 (aarch64_function_ok_for_sibcall): Check whether the two functions
3248 use the same ABI, rather than checking specifically for whether
3249 they're aarch64_vector_pcs functions.
3250 (aarch64_pass_by_reference): Raise an error for attempts to pass
3251 SVE arguments when SVE is disabled. Pass SVE arguments by reference
3252 if there are not enough free registers left, or if the argument is
3254 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
3255 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
3257 (aarch64_layout_arg): Take a function_arg_info rather than
3258 individual properties. Handle SVE predicates, vectors and tuples.
3259 Raise an error if they are passed to unprototyped functions.
3260 (aarch64_function_arg): If the silent_p flag is set, suppress the
3261 usual error about using float registers without TARGET_FLOAT.
3262 (aarch64_init_cumulative_args): Take a silent_p parameter and store
3263 it in the cumulative_args structure. Initialize aapcs_nprn and
3264 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
3265 error about using float registers without TARGET_FLOAT.
3266 If the silent_p flag is not set, also raise an error about
3267 using SVE functions when SVE is disabled.
3268 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
3269 and call it for SVE functions too. Update aapcs_nprn similarly
3270 to the other register counts.
3271 (aarch64_layout_frame): If a big-endian function needs to save
3272 and restore Z8-Z15, search for a spare predicate that it can use.
3273 Store SVE predicates at the bottom of the register save area,
3274 followed by SVE vectors, then followed by the normal slots.
3275 Keep pointing the hard frame pointer at the base of the normal slots,
3276 above the SVE vectors. Update the various frame creation and
3277 tear-down strategies for the new layout, initializing the new
3278 sve_callee_adjust field. Add an additional layout for frames
3279 whose saved registers are all SVE registers.
3280 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
3281 (aarch64_return_address_signing_enabled): Likewise.
3282 (aarch64_push_regs, aarch64_pop_regs): Update calls to
3283 aarch64_reg_save_mode.
3284 (aarch64_adjust_sve_callee_save_base): New function.
3285 (aarch64_add_cfa_expression): Move earlier in file. Take the
3286 saved register as an rtx rather than a register number and use
3287 its mode for the MEM slot.
3288 (aarch64_save_callee_saves): Remove the mode argument and instead
3289 use aarch64_reg_save_mode to get the mode of each save slot.
3290 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
3291 offsets. Allow GP offsets to be saved at a VL-based offset from
3292 the stack, handling this case using the frame pointer if available
3293 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
3294 big-endian SVE functions; use normal moves for other SVE saves.
3295 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
3296 returns true. Add explicit CFA notes when not storing via the
3297 stack pointer. Do not try to pair SVE saves.
3298 (aarch64_restore_callee_saves): Cope with poly_int64 register
3299 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
3300 use normal moves for other SVE restores. Only add CFA restore notes
3301 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
3303 (aarch64_get_separate_components): Always keep the first SVE save
3304 in the prologue if we need to use it as a stack probe. Don't allow
3305 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
3306 Likewise the spare predicate register that they need. Update the
3307 offset calculation to account for the SVE save area. Use the
3308 appropriate range check for SVE LDR and STR instructions.
3309 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
3310 (aarch64_process_components): Likewise. Update the offset
3311 calculation to account for the SVE save area. Only mark the
3312 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
3313 Do not try to pair SVE saves.
3314 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
3315 reg_offsets. When handling the final allocation, expect the
3316 first SVE register save to be part of the initial allocation
3317 and for it to act as a probe at SP. Account for the SVE callee
3318 save area in the dump information.
3319 (aarch64_expand_prologue): Update the frame diagram. Fold the
3320 SVE callee allocation into the initial allocation if stack clash
3321 protection is enabled. Use new variables to track the offset
3322 of the frame chain (and hard frame pointer) from the current
3323 stack pointer, and likewise the offset of the bottom of the
3324 register save area. Update calls to aarch64_save_callee_saves
3325 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
3326 saving the FP&SIMD registers. Save the predicate registers.
3327 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
3328 into account when setting the stack pointer from the frame pointer,
3329 and when deciding whether we can inherit the initial adjustment
3330 amount from the prologue. Restore the predicate registers after
3331 the vector registers, then apply sve_callee_adjust, then restore
3332 the general registers.
3333 (aarch64_secondary_reload): Don't use secondary SVE reloads
3335 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
3336 (aarch64_short_vector_p): Return false for SVE types.
3337 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
3338 at the start of the function. Return false for SVE types.
3339 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
3341 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
3342 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
3343 to big-endian targets for bytewise moves.
3344 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
3346 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3347 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3348 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3350 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
3351 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
3352 aarch64-sve-builtins-base.o to extra_objs. Add
3353 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
3354 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
3355 (aarch64-sve-builtins-shapes.o): Likewise.
3356 (aarch64-sve-builtins-base.o): New rules.
3357 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
3358 (aarch64_resolve_overloaded_builtin): Likewise.
3359 (aarch64_check_builtin_call): Likewise.
3360 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
3361 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
3363 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
3364 (aarch64_svprfop): New enum.
3365 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
3366 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
3367 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
3368 (aarch64_output_sve_cnt_pat_immediate): Likewise.
3369 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
3370 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
3371 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
3372 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
3373 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
3374 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
3375 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
3376 (aarch64_sve::mangle_builtin_type): Likewise.
3377 (aarch64_sve::resolve_overloaded_builtin): Likewise.
3378 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
3379 (aarch64_sve::expand_builtin): Likewise.
3380 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
3381 (aarch64_sve_int_mode): Likewise.
3382 (aarch64_ptrue_all_mode): New function.
3383 (aarch64_convert_sve_data_to_pred): Make public.
3384 (svprfop_token): New function.
3385 (aarch64_output_sve_prefetch): Likewise.
3386 (aarch64_fold_sve_cnt_pat): Likewise.
3387 (aarch64_output_sve_cnt_pat_immediate): Likewise.
3388 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
3389 instead of gen_while_ult.
3390 (aarch64_replace_reg_mode): Make public.
3391 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
3392 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
3393 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
3394 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
3395 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
3396 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
3397 (aarch64_sve_ptrue_svpattern_p): Likewise.
3398 (aarch64_sve_pred_valid_immediate): Check
3399 aarch64_sve_ptrue_svpattern_p.
3400 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
3401 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
3403 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
3404 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
3405 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
3406 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
3407 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
3408 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
3410 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
3411 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
3412 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
3413 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
3414 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
3415 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
3416 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
3417 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
3418 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
3419 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
3420 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
3421 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
3422 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
3423 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
3424 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
3425 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
3426 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
3427 (Vesize): Handle partial vector modes.
3428 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
3430 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
3432 (s, paired_extend, inc_dec): New code attributes.
3433 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
3434 (SVE_INT_UNARY): Add UNSPEC_RBIT.
3435 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
3436 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
3437 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
3438 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
3440 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
3441 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
3442 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
3443 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
3444 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
3445 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
3446 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
3447 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
3448 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
3449 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
3450 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
3451 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
3452 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
3453 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
3454 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
3455 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
3457 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
3458 (binqops_op, binqops_op_rev, last_op): New int attributes.
3459 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
3460 (fn, ab): New int attributes.
3461 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
3462 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
3463 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
3464 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
3466 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
3467 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
3468 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
3469 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
3470 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
3472 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
3473 (brk_reg_con, brk_reg_opno): New int attributes.
3474 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
3475 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
3476 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
3478 (max_elem_bits): New int attribute.
3479 (min_elem_bits): Handle UNSPEC_RBIT.
3480 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
3481 TRUNCATE as well as SUBREG.
3482 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
3483 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
3484 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
3485 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
3486 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
3487 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
3488 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
3489 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
3490 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
3491 (aarch64_gather_scale_operand_h): New predicates.
3492 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
3493 (vgd, vgh, vgw, vsQ, vsS): New constraints.
3494 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
3495 (*aarch64_sve_reinterpret<mode>): Allow any source register
3496 instead of requiring an exact match.
3497 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
3498 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
3499 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
3500 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
3501 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
3502 (aarch64_update_ffrt): New patterns.
3503 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
3504 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3505 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3506 (@aarch64_ld<fn>f1<mode>): New patterns.
3507 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
3508 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3509 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3510 (@aarch64_ldnt1<mode>): New patterns.
3511 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
3512 the scalar part of the address.
3513 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
3514 scalar part of the addresse and add an alternative for handling
3516 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
3517 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
3518 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3519 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3520 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
3521 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
3522 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
3523 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
3524 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3525 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3526 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
3527 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
3528 (@aarch64_sve_prefetch<mode>): New patterns.
3529 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
3530 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
3531 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
3532 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
3533 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
3534 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
3535 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
3536 (@aarch64_stnt1<mode>): New patterns.
3537 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
3538 the scalar part of the address.
3539 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
3540 the scalar part of the addresse and add an alternative for handling
3542 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
3543 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
3544 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
3545 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
3546 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
3547 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
3549 (vec_duplicate<mode>): Use QI as the mode of the input operand.
3550 (extract_last_<mode>): Generalize to...
3551 (@extract_<LAST:last_op>_<mode>): ...this.
3552 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
3553 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
3554 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
3555 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
3556 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
3557 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
3558 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
3559 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
3560 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
3561 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
3562 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
3563 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
3564 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
3565 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
3566 (*aarch64_adr_uxtw_unspec): Likewise.
3567 (*aarch64_adr_uxtw): Rename to...
3568 (*aarch64_adr_uxtw_and): ...this.
3569 (@aarch64_adr<mode>_shift): New expander.
3570 (*aarch64_adr_shift_sxtw): New pattern.
3571 (aarch64_<su>abd<mode>_3): Rename to...
3572 (@aarch64_pred_<su>abd<mode>): ...this.
3573 (<su>abd<mode>_3): Update accordingly.
3574 (@aarch64_cond_<su>abd<mode>): New expander.
3575 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
3576 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
3577 (*<su>mul<mode>3_highpart): Rename to...
3578 (@aarch64_pred_<optab><mode>): ...this.
3579 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
3580 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
3581 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
3582 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
3583 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
3584 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
3585 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
3586 (*v<ASHIFT:optab><mode>3): Rename to...
3587 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
3588 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
3589 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
3590 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
3591 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
3592 (@cond_asrd<mode>): New expander.
3593 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
3594 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
3595 (*sdiv_pow2<mode>3): Delete.
3596 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
3597 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
3598 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
3599 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
3600 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
3601 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
3602 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
3603 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
3604 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
3605 (*add<SVE_F:mode>3): Rename to...
3606 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
3608 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
3609 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
3610 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
3611 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
3612 (*sub<SVE_F:mode>3): Rename to...
3613 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
3615 (@aarch64_pred_abd<SVE_F:mode>): New expander.
3616 (*fabd<SVE_F:mode>3): Rename to...
3617 (*aarch64_pred_abd<SVE_F:mode>): ...this.
3618 (@aarch64_cond_abd<SVE_F:mode>): New expander.
3619 (*mul<SVE_F:mode>3): Rename to...
3620 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
3622 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
3623 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
3625 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
3626 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
3627 (*<nlogical><PRED_ALL:mode>3): Rename to...
3628 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
3629 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
3630 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
3631 (*<logical_nn><PRED_ALL:mode>3): Rename to...
3632 (aarch64_pred_<logical_nn><mode>_z): ...this.
3633 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
3634 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
3635 (*fma<SVE_I:mode>4): Rename to...
3636 (@aarch64_pred_fma<SVE_I:mode>): ...this.
3637 (*fnma<SVE_I:mode>4): Rename to...
3638 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
3639 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
3640 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
3641 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
3642 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
3643 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
3644 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
3645 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
3646 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
3647 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
3648 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
3649 (@aarch64_sve_tmad<mode>): Likewise.
3650 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
3651 (*aarch64_sel_dup<mode>): Rename to...
3652 (@aarch64_sel_dup<mode>): ...this.
3653 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
3654 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
3655 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
3656 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
3657 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
3658 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
3659 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
3660 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
3661 (*fcm<cmp_op><mode>): Rename to...
3662 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
3663 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
3664 (*fcmuo<mode>): Rename to...
3665 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
3666 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
3667 (@aarch64_pred_fac<cmp_op><mode>): New expander.
3668 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
3669 (fold_extract_last_<mode>): Generalize to...
3670 (@fold_extract_<last_op>_<mode>): ...this.
3671 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
3672 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
3673 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
3674 DImode result explicit.
3675 (reduc_plus_scal_<mode>): Update accordingly.
3676 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
3677 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
3678 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
3679 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
3680 (*aarch64_sve_tbl<mode>): Rename to...
3681 (@aarch64_sve_tbl<mode>): ...this.
3682 (@aarch64_sve_compact<mode>): New pattern.
3683 (*aarch64_sve_dup_lane<mode>): Rename to...
3684 (@aarch64_sve_dup_lane<mode>): ...this.
3685 (@aarch64_sve_dupq_lane<mode>): New pattern.
3686 (@aarch64_sve_splice<mode>): Likewise.
3687 (aarch64_sve_<perm_insn><mode>): Rename to...
3688 (@aarch64_sve_<perm_insn><mode>): ...this.
3689 (*aarch64_sve_ext<mode>): Rename to...
3690 (@aarch64_sve_ext<mode>): ...this.
3691 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
3692 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
3694 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
3695 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
3697 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
3699 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
3700 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
3701 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
3702 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
3704 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
3705 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
3707 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
3708 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
3709 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
3711 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
3712 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
3713 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
3714 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
3715 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
3717 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
3718 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
3719 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
3720 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
3721 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
3722 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
3723 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
3724 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
3725 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
3726 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
3727 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
3728 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
3729 (aarch64_sve_cnt_pat): Likewise.
3730 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
3731 (*aarch64_sve_incsi_pat): Likewise.
3732 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
3733 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
3734 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
3735 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
3736 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
3737 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
3738 (*aarch64_sve_decsi_pat): Likewise.
3739 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
3740 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
3741 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
3742 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
3743 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
3744 (@aarch64_pred_cntp<mode>): Likewise.
3745 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
3747 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
3748 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
3749 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3751 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3753 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
3754 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
3755 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
3756 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
3757 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
3758 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
3759 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
3761 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
3762 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
3763 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3765 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3767 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
3769 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
3770 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
3772 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
3773 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
3775 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
3776 * config/aarch64/arm_sve.h: New file.
3777 * config/aarch64/aarch64-sve-builtins.h: Likewise.
3778 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
3779 * config/aarch64/aarch64-sve-builtins.def: Likewise.
3780 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
3781 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
3782 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
3783 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
3784 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
3785 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
3787 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3789 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
3791 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
3794 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3796 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
3797 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
3799 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
3800 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
3801 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
3802 (aarch64_hard_regno_nregs): Handle the new register classes.
3803 (aarch64_hard_regno_mode_ok): Likewise.
3804 (aarch64_regno_regclass): Likewise.
3805 (aarch64_class_max_nregs): Likewise.
3806 (aarch64_register_move_cost): Likewise.
3807 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
3808 as general register_operands.
3810 2019-10-29 Martin Liska <mliska@suse.cz>
3812 * ggc-common.c: One can't subtract unsigned types
3813 in compare function.
3815 2019-10-29 Martin Liska <mliska@suse.cz>
3817 * cgraphunit.c (symbol_table::compile): Pass
3818 title as dump_memory_report argument.
3819 * toplev.c (dump_memory_report): New argument.
3820 (finalize): Pass new argument.
3821 * toplev.h (dump_memory_report): Add argument.
3823 2019-10-29 Martin Liska <mliska@suse.cz>
3825 * ggc-common.c: Move Leak to the first column.
3827 2019-10-29 Martin Liska <mliska@suse.cz>
3829 * cgraphunit.c (symbol_table::compile): Remove argument
3830 for dump_memory_report.
3831 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
3832 (compare_final): Remove in order to make report
3834 * ggc.h (dump_ggc_loc_statistics): Remove argument.
3835 * mem-stats.h (mem_alloc_description::get_list):
3837 (mem_alloc_description::dump): Likewise here.
3838 * toplev.c (dump_memory_report): Remove final
3840 (finalize): Likewise.
3841 * toplev.h (dump_memory_report): Remove argument.
3843 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3845 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
3846 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
3847 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
3848 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
3851 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3853 * coretypes.h (string_int_pair): New typedef.
3854 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
3855 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
3856 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
3858 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3860 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
3861 (simulate_builtin_function_decl): Declare.
3862 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
3863 (LANG_HOOKS_INITIALIZER): Include it.
3864 * langhooks.c (add_builtin_function_common): Rename to...
3865 (build_builtin_function): ...this. Add a location parameter and use
3866 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
3868 (add_builtin_function): Update accordingly, passing the returned
3869 decl to the lang hook.
3870 (add_builtin_function_ext_scope): Likewise
3871 (simulate_builtin_function_decl): New function.
3873 2019-10-29 Jakub Jelinek <jakub@redhat.com>
3875 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
3876 example, use actual names of supported offload targets.
3879 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
3881 2019-10-28 Martin Sebor <msebor@redhat.com>
3883 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
3884 (handle_store): Pass argument to get_addr_stridx.
3886 2019-10-28 Martin Sebor <msebor@redhat.com>
3888 PR tree-optimization/92226
3889 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
3890 the offset is in the open range outlined by SI's length.
3892 2019-10-28 Martin Sebor <msebor@redhat.com>
3895 * doc/cpp.texi (__has_builtin): Document.
3896 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
3898 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
3901 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
3902 doubleword and low doubleword result of multiplication on
3905 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
3906 pure qualifier to the built-in.
3907 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
3909 (struct mips_builtin_description): Add is_pure flag.
3910 (mips_init_builtins): Mark built-in as pure if the flag in the
3911 corresponding mips_builtin_description struct is set.
3913 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
3914 alternative which covers the floating-point input value. Also
3915 forbid the split of insert.d pattern for floating-point values.
3917 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
3919 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
3920 * config/riscv/riscv-sr.c: New file.
3921 * config/riscv/riscv.c (riscv_reorg): New function.
3922 (TARGET_MACHINE_DEPENDENT_REORG): Define.
3923 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
3924 (riscv_remove_unneeded_save_restore_calls): Declare.
3925 * config/riscv/t-riscv (riscv-sr.o): New build rule.
3927 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3929 PR tree-optimization/92163
3930 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
3931 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
3932 before calling bitmap_set_bit.
3933 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
3934 delete_dead_or_redundant_assignment.
3935 (dse_dom_walker::dse_optimize_stmt): Likewise.
3936 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
3938 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3941 * tree-vect-stmts.c (vectorizable_condition): Support
3942 EXTRACT_LAST_REDUCTION with fully-masked loops.
3944 2019-10-28 Richard Biener <rguenther@suse.de>
3946 PR tree-optimization/92252
3947 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
3948 STMT_VINFO_REDUC_IDX when swapping operands.
3950 2019-10-28 Richard Biener <rguenther@suse.de>
3952 PR tree-optimization/92241
3953 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
3954 we failed to update the reduction index do not use the pattern
3955 stmts for the reduction chain.
3956 (vectorizable_reduction): When the reduction chain is corrupt,
3958 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
3959 fail to update the reduction chain.
3961 2019-10-28 Richard Biener <rguenther@suse.de>
3963 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
3964 STMT_VINFO_REDUC_IDX from the actual stmt.
3965 (vect_transform_reduction): Likewise.
3966 (vectorizable_reduction): Compute the reduction chain length,
3967 do not recompute the reduction operand index. Remove no longer
3968 necessary restriction for condition reduction chains.
3970 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
3973 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
3974 condition for V2DImode.
3976 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
3978 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
3979 Remove %k operand modifier.
3980 (*vec_extractv2df_1_sse): Remove %q operand modifier.
3982 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
3984 PR rtl-optimization/92007
3985 * cfgcleanup.c (thread_jump): Add an assertion that we don't
3986 call it after reload if hot/cold partitioning has been done.
3987 (class pass_postreload_jump): Rename to
3988 pass_jump_after_combine.
3989 (make_pass_postreload_jump): Rename to
3990 make_pass_jump_after_combine.
3991 * passes.def(pass_postreload_jump): Move before reload, rename
3992 to pass_jump_after_combine.
3993 * tree-pass.h (make_pass_postreload_jump): Rename to
3994 make_pass_jump_after_combine.
3996 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
3999 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
4000 for missing EDGE_REF
4001 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
4003 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
4005 PR tree-optimization/88760
4006 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
4007 Enable -funroll-loops for -O2 and above.
4008 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
4009 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
4010 do not turn on web and rngreg implicitly, if the unroller is not
4013 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4015 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
4018 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
4020 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
4021 * cgraph.h (cgraph_node::rtl_info): Likewise.
4023 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4025 * ipa-cp.c (propagate_constants_across_call): If args are not available
4026 just drop everything to varying.
4027 (find_aggregate_values_for_callers_subset): Watch for missing
4029 (find_more_scalar_values_for_callers_subs): Likewise.
4030 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
4031 update_jump_functions_after_inlining, propagate_controlled_uses):
4032 Watch for missing summaries.
4033 (ipa_propagate_indirect_call_infos): Remove summary after propagation
4035 (ipa_write_node_info): Watch for missing summaries.
4036 (ipa_read_edge_info): Create new ref.
4037 (ipa_edge_args_sum_t): Add remove.
4038 (IPA_EDGE_REF_GET_CREATE): New macro.
4039 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
4041 (remap_edge_change_prob): Likewise.
4043 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4045 * ipa-inline-transform.c (inline_call): update function summaries
4046 after expanidng thunk.
4048 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4050 * ipa-icf.c (sem_function::merge): Update function summaries.
4051 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
4053 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
4055 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
4056 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
4057 operand already has scalar mode.
4058 (iptr): Remove SF/DF.
4060 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
4063 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
4064 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
4067 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
4069 * config/i386/sse.md
4070 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
4071 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
4072 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
4073 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
4074 <sse>_vmmaskcmp<mode>3):
4075 Change predicates from vector_operand to nonimmediate_operand,
4076 constraints xBm to xm, since scalar operations don't need
4077 memory address alignment.
4078 (avx512f_vmcmp<mode>3<round_saeonly_name>,
4079 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
4080 round_saeonly_nimm_predicate with
4081 round_saeonly_nimm_scalar_predicate.
4082 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
4083 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
4084 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
4085 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
4086 avx512f_vmfmadd_<mode>_mask3<round_name>,
4087 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
4088 *avx512f_vmfmsub_<mode>_mask<round_name>,
4089 avx512f_vmfmsub_<mode>_mask3<round_name>,
4090 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
4091 *avx512f_vmfnmadd_<mode>_mask<round_name>,
4092 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
4093 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
4094 *avx512f_vmfnmsub_<mode>_mask<round_name>,
4095 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
4096 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
4097 cvtusi2<ssescalarmodesuffix>32<round_name>,
4098 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
4099 round_nimm_predicate with round_nimm_scalr_predicate.
4100 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
4101 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
4102 avx512er_vmrcp28<mode><round_saeonly_name>,
4103 avx512er_vmrsqrt28<mode><round_saeonly_name>,
4104 ): Replace round_saeonly_nimm_predicate with
4105 round_saeonly_nimm_scalar_predicate.
4106 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
4107 vector_operand with nonimmediate_operand.
4108 * config/i386/subst.md (round_scalar_nimm_predicate,
4109 round_saeonly_scalar_nimm_predicate): Replace
4110 vector_operand with nonimmediate_operand.
4112 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
4115 * config/i386/i386.md (*rcpsf2_sse): Add
4116 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
4117 (*rsqrtsf2_sse): Ditto.
4118 (*sqrt<mode>2_sse): Ditto.
4119 (sse4_1_round<mode>2): separate constraint vm, add
4120 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
4121 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
4123 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
4125 (*sse_vmrsqrtv4sf2): Ditto.
4126 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
4127 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
4128 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
4129 <iptr> pointer size modifier since vround support memory operand.
4131 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
4134 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
4137 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
4138 Tobias Burnus <tobias@codesourcery.com>
4140 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
4141 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
4144 2019-10-25 Richard Biener <rguenther@suse.de>
4146 PR tree-optimization/92222
4147 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
4148 (_slp_oprnd_info::second_pattern): Likewise.
4149 (_slp_oprnd_info::any_pattern): New.
4150 (vect_create_oprnd_info): Adjust.
4151 (vect_get_and_check_slp_defs): Compute whether any stmt is
4153 (vect_build_slp_tree_2): Avoid building up a node from scalars
4154 if any of the operand defs, not just the first, is in a pattern.
4156 2019-10-25 Richard Biener <rguenther@suse.de>
4158 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
4159 swapping if we actually have to modify the IL on a shared stmt.
4160 (vect_build_slp_tree_2): Never fail swapping on shared stmts
4161 because we no longer modify the IL.
4163 2019-10-25 Martin Liska <mliska@suse.cz>
4165 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
4167 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
4169 * tree-vect-loop.c (vectorizable_reduction): Restrict the
4170 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
4171 handled by vect_transform_reduction. Allow fully-masked loops
4172 to be used with reduction chains.
4173 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
4174 operations in fully-masked loops.
4175 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
4176 operations in fully-masked loops.
4178 2019-10-25 Richard Biener <rguenther@suse.de>
4180 * tree-vect-loop.c (vectorizable_reduction): Verify
4181 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
4183 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
4184 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
4187 2019-10-24 Jakub Jelinek <jakub@redhat.com>
4189 * gimplify.h (omp_construct_selector_matches): Declare.
4190 * gimplify.c (struct gimplify_omp_ctx): Add code member.
4191 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
4192 called function if needed for flag_openmp.
4193 (gimplify_scan_omp_clauses): Set ctx->code.
4194 (omp_construct_selector_matches): New function.
4195 * omp-general.h (omp_constructor_traits_to_codes,
4196 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
4197 * omp-general.c (omp_constructor_traits_to_codes,
4198 omp_context_selector_matches, omp_resolve_declare_variant): New
4201 * config/arc/arc.c (hwloop_optimize): Add missing space in string
4203 * config/rx/rx.c (rx_print_operand): Likewise.
4204 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4205 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
4206 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
4208 * genemit.c (emit_c_code): Likewise.
4209 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
4211 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4213 * symbols-summary.h (fast_function_summary<T *, V>::release,
4214 fast_call_summary<T *, V>::release): Free m_vector.
4216 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4218 * cgraphunit.c (symbol_table::process_new_functions): Call
4219 ipa_free_size_summary.
4220 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
4221 (devirtualization_time_bonus): Update.
4222 (ipcp_propagate_stage): Update.
4223 * ipa-fnsummary.c (ipa_size_summaries): New.
4224 (ipa_fn_summary_alloc): Alloc size summary.
4225 (dump_ipa_call_summary): Update.
4226 (ipa_dump_fn_summary): Update.
4227 (analyze_function_body): Update.
4228 (compute_fn_summary): Likewise.
4229 (ipa_get_stack_frame_offset): New function.
4230 (inline_update_callee_summaries): Do not update frame offsets.
4231 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
4232 remove call and function summary.
4233 (ipa_update_overall_fn_summary): Update.
4234 (inline_read_section): Update.
4235 (ipa_fn_summary_write): Update.
4236 (ipa_free_fn_summary): Do not remove summaries.
4237 (ipa_free_size_summary): New.
4238 (release summary pass): Also run at WPA.
4239 * ipa-fnsummary.h (ipa_size_summary): Declare.
4240 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
4241 estimated_self_stack_size.
4242 (ipa_size_summary_t): New type.
4243 (ipa_size_summaries): Declare.
4244 (ipa_free_size_summary): Declare.
4245 (ipa_get_stack_frame_offset): Declare.
4246 * ipa-icf.c (sem_function::merge): Update.
4247 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
4248 (estimate_growth): Update.
4249 (growth_likely_positive): Update.
4250 (clone_inlined_nodes): Update.
4251 (inline_call): Update.
4252 * ipa-inline.c (caller_growth_limits): Update.
4253 (edge_badness): Update.
4254 (recursive_inlining): Update.
4255 (inline_small_functions): Update.
4256 (inline_to_all_callers_1): Update.
4257 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
4259 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
4261 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
4262 (uavg<mode>3_ceil): ... This.
4263 (altivec_vavgs<VI_char>): Rename to...
4264 (avg<mode>3_ceil): ... This.
4265 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
4266 VAVGUW, VAVGSW): Adjust.
4268 2019-10-24 Nathan Sidwell <nathan@acm.org>
4270 * dumpfile.c (dump_begin): Reorder decls to use RAII.
4272 2019-10-24 Martin Liska <mliska@suse.cz>
4274 * symbol-summary.h (gt_pch_nx): Mark all functions
4275 with gcc_unreachable as we do not expect to be called.
4277 2019-10-24 Richard Biener <rguenther@suse.de>
4279 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
4280 chains try harder with operand swapping and instead of
4281 putting a shifted chain into the reduction operands put
4282 a repetition of the final reduction op there as if we'd
4283 reassociate the expression.
4285 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4287 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
4288 statics_not_read and statics_not_written to statics_read and
4289 statics_written respectively.
4290 (no_module_statics): New static var.
4291 (ipa_reference_get_not_read_global): Rename to ...
4292 (ipa_reference_get_read_global): ... this.
4293 (ipa_reference_get_not_written_global): Rename to ...
4294 (ipa_reference_get_written_global): ... this.
4295 (dump_static_vars_set_to_file): Dump no_module_statics.
4296 (copy_static_var_set): Add for propagation parameter.
4297 (ipa_init): Initialize no_module_statics.
4298 (ipa_ref_opt_summary_t::duplicate): Update.
4299 (ipa_ref_opt_summary_t::remove): Update.
4300 (propagate): Update.
4301 (write_node_summary_p): Look correctly for bitmap differences.
4302 (ipa_reference_write_optimization_summary): Update.
4303 (ipa_reference_read_optimization_summary): Update.
4305 (ipa_reference_get_not_read_global): Rename to ...
4306 (ipa_reference_get_read_global): ... this.
4307 (ipa_reference_get_not_written_global): Rename to ...
4308 (ipa_reference_get_written_global): ... this.
4309 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
4310 (call_may_clobber_ref_p_1): Update.
4312 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4314 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
4316 (msp430_hard_regno_nregs_with_padding): Remove.
4318 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4320 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
4321 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
4322 shift amount is between 1 and 4.
4323 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
4326 2019-10-24 Richard Biener <rguenther@suse.de>
4328 PR tree-optimization/92205
4329 * tree-vect-loop.c (vectorizable_reduction): Restrict
4330 search for alternate vectype_in to lane-reducing patterns
4333 2019-10-24 Richard Biener <rguenther@suse.de>
4335 PR tree-optimization/92203
4336 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
4337 Skip eliminating conversion stmts inserted by insertion.
4339 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
4341 * config/s390/s390.c (s390_get_thread_pointer): Use
4342 gen_get_thread_pointer.
4343 (s390_expand_split_stack_prologue): Likewise.
4344 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
4345 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
4346 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
4347 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
4350 2019-10-24 Richard Biener <rguenther@suse.de>
4352 * tree-vect-slp.c (vect_analyze_slp): When reduction group
4353 SLP discovery fails try to handle the reduction as part
4354 of SLP reduction discovery.
4356 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
4358 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
4360 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
4361 attribute if it exists, rather than the insn size. If we use the
4362 insn size, adjust the size to remove the extra size that prefixed
4364 (rs6000_adjust_insn_length): New function.
4365 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
4366 update the instruction sized if prefixed instructions are used.
4367 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
4368 (non_prefixed_length attribute): Delete.
4369 (num_insns attribute): New insn attribute to return the number of
4371 (max_prefixed_insns attribute): New insn attribute to return the
4372 maximum number of prefixed instructions in an insn.
4373 (length attribute): Do not adjust for prefix instructions here,
4374 punt to ADJUST_INSN_LENGTH.
4375 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
4376 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
4377 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
4378 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
4379 max_prefixed_insns and num_insns.
4381 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
4382 (movtd_64bit_nodm): Reformat.
4383 (mov<mode>_32bit): Reformat.
4384 (mov<mode>_softfloat): Reformat.
4385 (FMOVE128_GPR splitter): Reformat.
4386 (DIFD splitter): Reformat.
4387 (TI2 splitter): Reformat.
4388 * config/rs6000/predicates.md (lwa_operand): If the bottom two
4389 bits of the offset for the memory address are non-zero, use PLWA
4390 if prefixed instructions are available.
4392 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4394 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
4396 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4398 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
4401 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4403 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
4404 (cmp_symbol_files): New.
4405 (lto_output): Copy sections in file order.
4406 * lto-streamer.h (lto_file_decl_data): Add field order.
4408 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4410 * ipa-reference.h (ipa_reference_var_uid): Move offline.
4411 * ipa-reference.c (reference_vars_map_t): new type.
4412 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
4413 (ipa_reference_var_uid): Implement.
4414 (varpool_node_hooks): New static var.
4415 (varpool_removal_hook): New function.
4416 (is_improper): Do not check bitmap for id==-1
4417 (get_static_name): Update.
4418 (ipa_init): Initialize new datastructures.
4419 (analyze_function): Do not recompute ids.
4420 (propagate): Free reference_vars_to_consider.
4421 (stream_out_bitmap): Update.
4422 (ipa_reference_read_optimization_summary): Update.
4424 2019-10-23 qing zhao <qing.zhao@oracle.com>
4426 PR gcov-profile/91971
4427 * coverage.c (coverage_init): Mangle the full path of filename when
4428 filename is a absolute path.
4430 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4432 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
4433 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
4434 (msp430_has_hwmult): New.
4435 (msp430_output_labelref):
4436 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
4437 * config/msp430/msp430.md (mulhisi3): Likewise.
4438 (umulhisi3): Likewise.
4439 (mulsidi3): Likewise.
4440 (umulsidi3): Likewise.
4442 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4445 * params.def (inline-heuristics-hint-percent): Set to 600.
4447 2019-10-23 Richard Biener <rguenther@suse.de>
4449 PR tree-optimization/65930
4450 * tree-vect-loop.c (check_reduction_path): Allow conversions
4451 that only change the sign.
4452 (vectorizable_reduction): Relax latch def stmts we handle further.
4454 2019-10-23 Jakub Jelinek <jakub@redhat.com>
4457 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
4458 (remove_unused_ivs): Use it instead of get_computation_at. When
4459 choosing best candidate, only consider candidates where
4460 get_debug_computation_at actually returns non-NULL.
4462 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
4464 PR tree-optimization/92131
4465 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
4466 range would be symbolic, drop to varying for any explicit overflow
4467 in the constant part or if neither range is a singleton.
4469 2019-10-23 Martin Liska <mliska@suse.cz>
4472 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
4475 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
4477 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
4478 int_mode_for_mode rather than mode_for_int_vector for scalars.
4480 2019-10-23 Richard Biener <rguenther@suse.de>
4482 PR tree-optimization/92179
4483 * tree-vect-stmts.c (vectorizable_shift): For shift args
4484 that are all the same remove type restriction in the SLP case.
4485 Adjust SLP code to handle converting of the shift arg to
4486 only apply in case the modes are different.
4488 2019-10-23 Martin Liska <mliska@suse.cz>
4491 * ipa-inline.c (recursive_inlining): Do not print
4492 when curr->count is not initialized.
4494 2019-10-23 Richard Biener <rguenther@suse.de>
4496 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
4497 op from scalars in case there's a constant operand in its
4500 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
4502 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
4503 against out of range max skip or log values.
4505 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
4507 * cgraph.c (dump_graphviz): Change name to dump_name
4509 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
4511 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
4512 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
4513 subtraction from a carry operation.
4515 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
4517 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
4519 2019-10-22 Richard Biener <rguenther@suse.de>
4521 PR tree-optimization/92173
4522 * tree-vect-loop.c (vectorizable_reduction): If
4523 vect_transform_reduction cannot handle code-generation try without
4524 the single-def-use-cycle optimization. Pass optab_vector to
4525 optab_for_tree_code to get vector shifts as that's what we'd
4528 2019-10-22 Michael Matz <matz@suse.de>
4531 * gimple-loop-jam.c (any_access_function_variant_p): New function.
4532 (adjust_unroll_factor): Use it to constrain safety, new parameter.
4533 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
4535 2019-10-22 Richard Biener <rguenther@suse.de>
4537 PR tree-optimization/92173
4538 * tree-vect-loop.c (vectorizable_reduction): If
4539 vect_transform_reduction cannot handle code-generation try without
4540 the single-def-use-cycle optimization. Pass optab_vector to
4541 optab_for_tree_code to get vector shifts as that's what we'd
4544 2019-10-22 Martin Liska <mliska@suse.cz>
4546 * diagnostic-format-json.cc (json_from_expanded_location):
4547 Use json::integer_number.
4548 * gcov.c (output_intermediate_json_line): Use new
4549 json::integer_number.
4550 (output_json_intermediate_file): Likewise.
4551 * json.cc (number::print): Move to ...
4552 (float_number::print): ... this.
4553 (integer_number::print): New.
4554 (test_writing_numbers): Move to ...
4555 (test_writing_float_numbers): ... this.
4556 (test_writing_integer_numbers): New.
4557 (json_cc_tests): Register test_writing_integer_numbers.
4558 * json.h (class value): Add forward declaration
4559 for float_number and integer_number.
4560 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
4561 (class number): Move to ...
4562 (class float_number): ... this.
4563 (class integer_number): New.
4564 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
4565 Use json::integer_number.
4566 (optrecord_json_writer::location_to_json): Likewise.
4567 (optrecord_json_writer::profile_count_to_json): Likewise.
4568 (optrecord_json_writer::pass_to_json): Likewise.
4570 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
4572 * tree-vect-slp.c (vect_slp_bb_region): Check whether
4573 autodetected_vector_size rather than vector_size is zero.
4574 * tree-vect-loop.c (vect_analyze_loop): Likewise.
4575 Set autodetected_vector_size immediately after calling
4576 vect_analyze_loop_2. Check for a fatal error before advancing
4579 2019-10-21 Jason Merrill <jason@redhat.com>
4581 * lock-and-run.sh: Check for process existence rather than timeout.
4583 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4585 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
4586 widening multiplication.
4588 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
4590 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
4591 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
4593 (subsi3_carryin_shift): Separate into register and constant controlled
4594 alternatives. Use shift_amount_operand for operand 4. Set shift
4595 attribute and simplify type attribute.
4596 (subsi3_carryin_shift_alt): Likewise.
4597 (rsbsi3_carryin_shift): Likewise.
4598 (rsbsi3_carryin_shift_alt): Likewise.
4599 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
4600 and register controlled shifts into distinct alternatives.
4601 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
4602 (andsi_not_shiftsi_si_scc): Likewise.
4603 (arm_cmpsi_negshiftsi_si): Likewise.
4604 (not_shiftsi): Remove redundant M constraint from alternative 1.
4605 (not_shiftsi_compare0): Likewise.
4606 (arm_cmpsi_insn): Remove redundant alternative 2.
4607 (cmpsi_shift_swp): Likewise.
4608 (sub_shiftsi): Likewise.
4609 (sub_shiftsi_compare0_scratch): Likewise.
4610 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
4611 (thumb2_cmpsi_neg_shiftsi): Likewise.
4613 2019-10-21 Richard Biener <rguenther@suse.de>
4615 PR tree-optimization/92162
4616 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
4617 STMT_VINFO_REDUC_IDX in reduc_info.
4618 * tree-vect-stmts.c (vectorizable_condition): Likewise.
4620 2019-10-21 Richard Biener <rguenther@suse.de>
4622 * tree-vectorizer.h (_slp_tree::ops): New member.
4623 (SLP_TREE_SCALAR_OPS): New.
4624 (vect_get_slp_defs): Adjust prototype.
4625 * tree-vect-slp.c (vect_free_slp_tree): Release
4626 SLP_TREE_SCALAR_OPS.
4627 (vect_create_new_slp_node): Initialize it. New overload for
4628 initializing by an operands array.
4629 (_slp_oprnd_info::ops): New member.
4630 (vect_create_oprnd_info): Initialize it.
4631 (vect_free_oprnd_info): Release it.
4632 (vect_get_and_check_slp_defs): Populate the operands array.
4633 Do not swap operands in the IL when not necessary.
4634 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
4635 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
4636 swap operands in the operands array. Do not swap operands in
4638 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
4639 (vect_gather_slp_loads): Fix.
4640 (vect_detect_hybrid_slp_stmts): Likewise.
4641 (vect_slp_analyze_node_operations_1): Search for a internal
4642 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
4643 (vect_slp_analyze_node_operations): Skip ops-only stmts for
4644 the def-type push/pop dance.
4645 (vect_get_constant_vectors): Compute number_of_vectors here.
4646 Use SLP_TREE_SCALAR_OPS and simplify greatly.
4647 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
4648 (vect_get_slp_defs): Simplify greatly.
4649 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
4650 (vect_transform_reduction): Likewise.
4651 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
4652 (vectorizable_call): Likewise.
4653 (vectorizable_operation): Likewise.
4654 (vectorizable_load): Likewise.
4655 (vectorizable_condition): Likewise.
4656 (vectorizable_comparison): Likewise.
4658 2019-10-21 Richard Biener <rguenther@suse.de>
4660 PR tree-optimization/92161
4661 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
4664 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4666 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
4667 (aarch64_rndr): New define_insn.
4668 (aarch64_rndrrs): Likewise.
4669 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
4670 (TARGET_RNG): Likewise.
4671 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
4673 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
4674 Add fourth argument in prototype.
4675 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
4676 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
4677 (aarch64_init_rng_builtins): Define.
4678 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
4679 (aarch64_expand_rng_builtin): Define.
4680 (aarch64_general_expand_builtin): Use IGNORE argument, handle
4682 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
4683 __ARM_FEATURE_RNG when TARGET_RNG.
4684 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
4686 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
4688 * tree-vect-stmts (ensure_base_align): Only change alignment if new
4689 alignment is more restrictive.
4691 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4693 * tree-vectorizer.h (vec_info::vector_size): New member variable.
4694 (vect_update_max_nunits): Update comment.
4695 (current_vector_size): Delete.
4696 * tree-vect-stmts.c (current_vector_size): Likewise.
4697 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
4698 of current_vector_size.
4699 (get_mask_type_for_scalar_type): Likewise.
4700 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
4701 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
4702 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
4703 (vect_double_mask_nunits, vect_transform_loop): Likewise.
4704 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
4705 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
4707 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4709 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
4710 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
4711 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
4714 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4716 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
4717 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
4718 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
4720 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
4722 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4724 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
4726 (vect_set_loop_condition_masked): Update call accordingly.
4728 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4730 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
4731 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
4732 (simple_integer_narrowing): Update call accordingly.
4733 (vectorizable_conversion): Likewise.
4735 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4737 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
4738 (vectorizable_call): Update call accordingly.
4740 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4742 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
4743 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
4744 (duplicate_and_interleave): Update call accordingly.
4745 * tree-vect-loop.c (vectorizable_reduction): Likewise.
4747 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4749 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
4750 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
4751 (vect_get_constant_vectors): Update call accordingly.
4752 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
4754 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4756 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
4757 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
4758 (vect_prologue_cost_for_slp_op): Update call accordingly.
4759 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
4760 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
4761 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
4762 (get_mask_type_for_scalar_type): Likewise.
4763 (vect_get_vector_types_for_stmt): Likewise.
4764 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4765 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
4766 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
4767 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
4768 (vect_split_statement, vect_convert_input): Likewise.
4769 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
4770 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
4771 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
4772 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
4773 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
4774 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
4775 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
4776 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
4777 (vect_recog_mask_conversion_pattern): Likewise.
4778 (vect_add_conversion_to_pattern): Likewise.
4779 (vect_recog_gather_scatter_pattern): Likewise.
4780 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
4781 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
4783 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4785 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
4786 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
4787 (vect_check_load_store_mask): Update call accordingly.
4788 (vect_get_mask_type_for_stmt): Likewise.
4789 * tree-vect-patterns.c (check_bool_pattern): Likewise.
4790 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
4791 (vect_convert_mask_for_vectype): Likewise.
4793 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4795 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
4797 (vect_recog_dot_prod_pattern): Update call accordingly.
4798 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
4799 (vect_recog_widen_sum_pattern): Likewise.
4801 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4803 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
4804 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
4805 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
4808 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4810 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
4811 get_vectype_for_scalar_type_and_size instead of
4812 get_vectype_for_scalar_type.
4814 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
4816 * common.opt (-fcommon): Fix description.
4818 2019-10-20 Jakub Jelinek <jakub@redhat.com>
4820 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
4821 * config/i386/i386.c (ix86_pre_reload_split): New function.
4822 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
4823 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
4824 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
4825 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
4826 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
4827 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
4828 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
4829 *<shift_insn><dwi>3_doubleword_mask,
4830 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
4831 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
4832 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
4833 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
4834 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
4835 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
4836 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
4837 *avx2_<code>v8qiv8si2<mask_name>_2,
4838 *sse4_1_<code>v4qiv4si2<mask_name>_2,
4839 *sse4_1_<code>v4hiv4si2<mask_name>_2,
4840 *avx512f_<code>v8qiv8di2<mask_name>_2,
4841 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
4842 *sse4_1_<code>v2hiv2di2<mask_name>_2,
4843 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
4844 sse4_2_pcmpistr): Likewise.
4846 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
4848 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
4849 now defaults to https.
4851 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
4853 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
4854 skip non-zero array accesses.
4856 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
4858 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
4859 and return a boolean success value. Move the allocation and
4860 initialization of the bb_vec_info to...
4861 (vect_slp_bb_region): ...here. Update call accordingly.
4862 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
4863 than in vect_slp_analyze_bb_1.
4865 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
4867 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
4868 when processing the given datarefs for the first time and
4869 check_datarefs subsequently.
4870 (vect_slp_bb_region): New function, split out of...
4871 (vect_slp_bb): ...here. Don't recompute the region bounds and
4872 dataref sets when retrying with a different vector size.
4874 2019-10-19 Jakub Jelinek <jakub@redhat.com>
4875 Uroš Bizjak <ubizjak@gmail.com>
4878 * config/i386/predicates.md (int_nonimmediate_operand): New special
4880 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
4881 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
4882 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
4883 define_insn_and_split patterns.
4885 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
4887 * config/rs6000/rs6000.md: Delete out--of-date comment about
4888 special-casing integer loads.
4890 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
4892 * escaped_string.h (escaped_string): New header.
4893 * tree.c (escaped_string): Remove escaped_string class.
4895 2019-10-18 Martin Sebor <msebor@redhat.com>
4897 PR tree-optimization/92157
4898 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
4899 compute_string_length to return a negative result.
4901 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4903 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
4904 (negvsi3, negvdi3): Delete.
4905 (negdi2_compare): Delete.
4907 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4909 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
4911 (subdi3_compare1): Delete pattern.
4912 (subvsi3_borrow): New insn pattern.
4913 (subvsi3_borrow_imm): Likewise.
4915 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4917 * config/arm/arm.md (subv<mode>4): Delete.
4918 (subvdi4): New expander pattern.
4919 (subvsi4): Likewise. Handle some immediate values.
4920 (subvsi3_intmin): New insn pattern.
4921 (subvsi3): Likewise.
4922 (subvsi3_imm1): Likewise.
4923 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
4926 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4928 * config/arm/arm.md (usubvdi4): Allow registers or integers for
4929 incoming operands. Early split the calculation into SImode
4931 (usubvsi3_borrow): New insn pattern.
4932 (usubvsi3_borrow_imm): Likewise.
4934 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4936 * config/arm/arm.md (usubv<mode>4): Delete expansion.
4937 (usubvsi4): New pattern. Allow some immediate values for inputs.
4938 (usubvdi4): New pattern.
4940 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4942 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
4943 or second operand of the PLUS inside a DImode equality test to be
4944 sign-extend when selecting CC_Vmode.
4945 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
4947 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
4949 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
4950 (addsi3_cin_vout_0): Likewise.
4951 (adddi3_compareV): Delete.
4953 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4955 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
4956 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
4957 to transform this back into the summation version when that leads
4960 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4962 * config/arm/arm.md (addv<mode>4): Delete.
4963 (addvsi4): New pattern. Handle immediate values that the architecture
4965 (addvdi4): New pattern.
4966 (addsi3_compareV): Rename to ...
4967 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
4968 and use COMPARE rather than NE.
4969 (addsi3_compareV_imm): New pattern.
4970 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
4971 a signed-overflow check.
4973 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4975 * config/arm/arm-modes.def (CC_ADC): New CC mode.
4976 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
4978 (maybe_get_arm_condition_code): Handle CC_ADCmode.
4979 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
4981 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
4983 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
4984 (addsi3_cin_cout_imm_insn): Likewise.
4985 (adddi3_compareC): Delete insn.
4986 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
4988 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4990 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
4991 * (uaddv<mode>4): Delete expansion pattern.
4992 (uaddvsi4): New pattern.
4993 (uaddvdi4): Likewise.
4994 (addsi3_compareC): Delete pattern, change callers to use
4996 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
4997 reduce the number of alternatives and re-work type attribute handling.
4998 (addsi3_compare_op2): Clean up constraints to reduce the number of
4999 alternatives and re-work type attribute handling.
5000 (compare_addsi2_op0): Likewise.
5001 (compare_addsi2_op1): Likewise.
5003 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5005 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
5006 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
5007 for DImode operands.
5008 (arm_gen_dicompare_reg): Remove unreachable expansion code.
5009 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
5011 * config/arm/arm.md (arm_cmpdi_insn): Delete.
5012 (arm_cmpdi_unsigned): Delete.
5014 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5016 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
5017 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
5018 unchanged only if that will be cheaper.
5019 (arm_select_cc_mode): Recognize a swapped comparison that will
5020 be regenerated using RSBS or RSCS. Relax restriction on selecting
5022 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
5024 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
5026 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
5028 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
5029 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
5031 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5033 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
5034 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
5036 (arm_gen_dicompare_reg): New code to early expand the sub-operations
5037 of EQ, NE, LT, GE, LTU and GEU.
5038 * config/arm/iterators.md (CC_EXTEND): New code attribute.
5039 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
5040 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
5041 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
5042 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
5044 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5046 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
5048 (cstoredi4): Similarly, but for operand 3.
5049 * config/arm/arm.c (arm_canoncialize_comparison): Allow
5050 canonicalization of unsigned compares with a constant on Arm.
5051 Prefer using const+1 and adjusting the comparison over swapping the
5052 operands whenever the original constant was not valid.
5053 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
5055 (arm_validize_comparison): Do not force invalid DImode operands to
5058 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5060 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
5061 return CC_Zmode if comparing against a constant where one word is
5063 (arm_gen_compare_reg): Split DImode handling to ...
5064 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
5065 against simple constants.
5066 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
5068 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5070 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
5071 (rsbsi3_carryin_shift_alt): Likewise.
5073 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5075 * config/arm/arm.md (negscc_borrow): New pattern.
5076 (mov_negscc): Don't split if the insn would match negscc_borrow.
5077 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
5078 (thumb2_mov_negscc_strict_it): Likewise.
5080 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5082 * config/arm/arm.c (arm_insn_cost): New function.
5083 (TARGET_INSN_COST): Override default definition.
5085 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5087 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
5090 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5092 * config/arm/arm.c (strip_carry_operation): New function.
5093 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
5096 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5098 * config/arm/predicates.md (arm_carry_operation): New special
5100 * config/arm/iterators.md (LTUGEU): Delete iterator.
5101 (cnb): Delete code attribute.
5102 (optab): Delete ltu and geu elements.
5103 * config/arm/arm.md (addsi3_carryin): Renamed from
5104 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
5105 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
5106 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
5107 (addsi3_carryin_clobercc): Similarly.
5108 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
5111 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5113 * config/arm/arm.md (arm_subdi3): Delete insn.
5114 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
5116 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5118 * config/arm/arm-modes.def (CC_RSB): New CC mode.
5119 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
5120 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
5122 (maybe_get_arm_condition_code): Handle CC_RSBmode.
5123 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
5125 (subdi3): Rewrite to early-expand the sub-operations.
5126 (rsb_im_compare): New pattern.
5128 (negdi2_insn): Delete.
5129 (arm_negsi2): Correct type attribute to alu_imm.
5130 (negsi2_0compare): New insn pattern.
5131 (negsi2_carryin): New insn pattern.
5133 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5135 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
5138 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5140 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
5141 to match canonical form.
5143 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5145 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
5146 (extend<mode>di2): Likewise.
5148 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5150 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
5151 * config/arm/arm.c (arm_decompose_di_binop): New function.
5152 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
5153 If not generating Thumb-1 code, decompose the operation into 32-bit
5155 * add0si_carryin_<optab>: New pattern.
5157 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5159 * arm.md (adddi3): Only accept register operands.
5160 (arm_adddi3): Convert to simple insn with no split. Do not accept
5162 (adddi_sesidi_di): Delete patern.
5163 (adddi_zesidi_di): Likewise.
5164 (uaddv<mode>4): Use LTU as condition for branch.
5165 (adddi3_compareV): Convert to simple insn with no split.
5166 (addsi3_compareV_upper): Delete pattern.
5167 (adddi3_compareC): Convert to simple insn with no split. Correct
5168 flags setting expression.
5169 (addsi3_compareC_upper): Delete pattern.
5170 (addsi3_compareC): Correct flags setting expression.
5171 (subdi3_compare1): Convert to simple insn with no split.
5172 (subsi3_carryin_compare): Delete pattern.
5173 (arm_subdi3): Convert to simple insn with no split.
5174 (subdi_zesidi): Delete pattern.
5175 (subdi_di_sesidi): Delete pattern.
5176 (subdi_zesidi_di): Delete pattern.
5177 (subdi_sesidi_di): Delete pattern.
5178 (subdi_zesidi_zesidi): Delete pattern.
5179 (negvdi3): Use s_register_operand.
5180 (negdi2_compare): Convert to simple insn with no split.
5181 (negdi2_insn): Likewise.
5182 (negsi2_carryin_compare): Delete pattern.
5183 (negdi_zero_extendsidi): Delete pattern.
5184 (arm_cmpdi_insn): Convert to simple insn with no split.
5185 (negdi2): Don't call gen_negdi2_neon.
5186 * config/arm/neon.md (adddi3_neon): Delete pattern.
5187 (subdi3_neon): Delete pattern.
5188 (negdi2_neon): Delete pattern.
5189 (splits for negdi2_neon): Delete splits.
5191 2019-10-18 Jakub Jelinek <jakub@redhat.com>
5194 * ggc-page.c (release_pages): Read g->alloc_size before free rather
5197 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
5199 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
5200 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
5201 new multilib variants and new mappings.
5203 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
5206 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
5208 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5209 Richard Sandiford <richard.sandiford@arm.com>
5212 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
5213 and define hashmap traits for it.
5214 (loop_vec_info::scalar_cond_masked_set): New member.
5215 (vect_record_loop_mask): Adjust prototype.
5216 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
5218 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
5219 vect_record_loop_mask.
5220 (vectorizable_live_operation): Likewise.
5221 (vect_record_loop_mask): New param scalar_mask. Add entry
5222 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
5223 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
5224 Pass it as last arg to vect_record_loop_mask.
5225 (vectorizable_call): Pass scalar_mask as last arg to
5226 vect_record_loop_mask.
5227 (vectorizable_store): Likewise.
5228 (vectorizable_load): Likewise.
5229 (vectorizable_condition): Check if another part of vectorized code
5230 applies loop_mask to condition or to it's inverse, and if yes,
5231 apply loop_mask to result of vector comparison.
5233 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
5235 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
5237 2019-10-18 Jakub Jelinek <jakub@redhat.com>
5239 PR tree-optimization/92056
5240 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
5241 before calling compute_builtin_object_size.
5243 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
5246 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
5247 (movdi_low_st): Delete.
5248 * config/rs6000/rs6000.c
5249 (darwin_rs6000_legitimate_lo_sum_const_p): New.
5250 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
5251 * config/rs6000/rs6000.md (movsi_low): Delete.
5253 2019-10-17 Jason Merrill <jason@redhat.com>
5255 * gimplify.h (get_initialized_tmp_var): Add default argument to
5257 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
5258 NULL post_p argument.
5259 * targhooks (std_gimplify_va_arg_expr): Likewise.
5261 2019-10-17 Richard Biener <rguenther@suse.de>
5263 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
5264 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
5265 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
5266 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
5267 * tree-vect-loop.c (vect_is_simple_reduction): Set
5268 STMT_VINFO_REDUC_CODE.
5269 (vectorizable_reduction): Remove dead and redundant code, use
5270 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
5272 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
5274 Fix breakage introduced by r276985.
5276 * config/avr/avr.c (avr_option_override): Remove set of
5277 PARAM_ALLOW_STORE_DATA_RACES.
5278 * common/config/avr/avr-common.c (avr_option_optimization_table)
5279 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
5281 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
5283 * config/i386/i386.h (processor_costs): Add clear_ratio.
5284 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
5285 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
5286 of 6 and move_ratio in all cost models.
5288 2019-10-17 Richard Biener <rguenther@suse.de>
5290 * tree-vect-loop.c (check_reduction_path): Compute reduction
5292 (vect_is_simple_reduction): Remove special-case of single-stmt
5293 reduction path detection.
5295 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
5297 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
5299 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
5301 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
5302 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
5303 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
5304 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
5305 New combine patterns.
5306 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
5308 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
5310 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
5312 * tree-vrp.c (value_range_base::dump): Display +INF for both
5313 pointers and integers when appropriate.
5315 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5317 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
5318 when to use versioning threshold.
5320 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5322 * tree-vect-loop.c (determine_peel_for_niter): New function contained
5323 outlined code from ...
5324 (vect_analyze_loop_2): ... here.
5326 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5328 * tree-vect-loop.c (vect_transform_loop): Move code from here...
5329 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
5330 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
5332 2019-10-17 Richard Biener <rguenther@suse.de>
5334 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
5335 (vect_is_simple_reduction): Move all validity checks ...
5336 (vectorizable_reduction): ... here. Compute whether we
5337 need a fold-left reduction here.
5338 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
5339 both overloads, check needs_fold_left_reduction_p directly.
5340 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
5342 2019-10-17 Richard Biener <rguenther@suse.de>
5344 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
5345 TARGET_MEM_REF creation.
5347 2019-10-17 Richard Biener <rguenther@suse.de>
5349 PR tree-optimization/92129
5350 * tree-vect-loop.c (vectorizable_reduction): Also fail
5351 on GIMPLE_SINGLE_RHS.
5353 2019-10-17 Jakub Jelinek <jakub@redhat.com>
5355 PR tree-optimization/92056
5356 * tree-object-size.c (cond_expr_object_size): Return early if then_
5357 processing resulted in unknown size.
5359 PR tree-optimization/92115
5360 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
5361 temporary if it could trap.
5363 2019-10-17 Richard Biener <rguenther@suse.de>
5366 * dwarf2out.c (gen_formal_parameter_die): Also try to match
5367 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
5369 2019-10-16 Jakub Jelinek <jakub@redhat.com>
5371 * tree-ssa-strlen.c (maybe_invalidate): Use
5372 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
5374 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
5375 Jim Wilson <jimw@sifive.com>
5377 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
5378 regs to SIBCALL_REGS.
5379 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
5380 passing regs to SIBCALL_REGS.
5382 2019-10-16 Martin Sebor <msebor@redhat.com>
5384 PR tree-optimization/83821
5385 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
5386 the length of a string when available.
5387 (handle_builtin_memset) Add argument.
5388 (handle_store, strlen_check_and_optimize_call): Same.
5389 (check_and_optimize_stmt): Same. Pass it to callees.
5391 2019-10-16 Martin Sebor <msebor@redhat.com>
5393 PR tree-optimization/91996
5394 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
5396 (compare_nonzero_chars): Add an overload.
5397 (count_nonzero_bytes): Add an argument. Call overload above.
5398 Handle non-constant lengths in some range.
5399 (handle_store): Add an argument.
5400 (check_and_optimize_stmt): Pass an argument to handle_store.
5402 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
5404 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
5406 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5408 * config/mips/mips.c (mips_expand_builtin_insn): Force the
5409 operands which correspond to the same input-output register to
5410 have the same pseudo assigned to them.
5412 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
5414 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
5416 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
5418 * config/aarch64/aarch64.c (aarch64_classify_symbol):
5419 Apply reasonable limit to symbol offsets.
5421 2019-10-16 Richard Biener <rguenther@suse.de>
5423 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
5424 (vect_is_simple_reduction): Delay checking to
5425 vectorizable_reduction and relax the checking.
5426 (vectorizable_reduction): Check we have a simple use. Check
5427 for bogus condition reductions.
5428 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
5429 are looking at the last stmt in a pattern sequence when
5430 filling in backedge PHI values.
5432 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
5433 Jiufu Guo <guojiufu@linux.ibm.com>
5436 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
5437 the callee explicitly disables some isa_flags the caller is using.
5439 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5441 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
5443 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5445 * genmodes.c (mode_data::order): New field.
5446 (blank_mode): Update accordingly.
5447 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
5448 (make_vector_modes): Likewise.
5449 (VECTOR_MODES): Update use accordingly.
5450 (cmp_modes): Sort by the new order field ahead of sorting by size.
5451 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
5452 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
5453 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
5454 (aarch64_classify_vector_mode): Handle the new partial modes.
5455 (aarch64_vl_bytes): New function.
5456 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
5457 when counting the number of registers in an SVE mode.
5458 (aarch64_class_max_nregs): Likewise.
5459 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
5461 (aarch64_classify_address): Treat partial vectors analogously
5463 (aarch64_print_address_internal): Consolidate the printing of
5464 MUL VL addresses, using aarch64_vl_bytes as the number of
5465 bytes represented by "VL".
5466 (aarch64_vector_mode_supported_p): Reject partial vector modes.
5468 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5470 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
5471 rather than known_lt when choosing frame layouts.
5473 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5475 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
5476 that all the adjustments add up to the full frame size.
5477 Use crtl->outgoing_args_size directly as the final adjustment
5480 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5482 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
5483 "frame" reference instead of always referring directly to
5484 "cfun->machine->frame".
5486 2019-10-16 Richard Biener <rguenther@suse.de>
5488 PR tree-optimization/92119
5489 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
5490 against missing bswap lhs.
5492 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5495 * poly-int.h (constant_lower_bound_with_limit): New function.
5496 (constant_upper_bound_with_limit): Likewise.
5497 * doc/poly-int.texi: Document them.
5498 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
5499 into the worst-case INTEGER_CST bounds.
5501 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
5504 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
5505 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
5506 * ipa-predicat.h (struct expr_eval_op): New struct.
5507 (expr_eval_ops): New typedef.
5508 (struct condition): Add type and param_ops fields, remove size field.
5509 (add_condition): Replace size parameter with type parameter, add
5510 param_ops parameter.
5511 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
5512 (predicate::add_clause): Add comparisons on type and param_ops.
5513 (dump_condition): Add debug dump for param_ops.
5514 (remap_after_inlining): Adjust call arguments to add_condition.
5515 (add_condition): Replace size parameter with type parameter, add
5516 param_ops parameter. Unshare constant value used in conditions.
5517 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
5518 parameter expressions using param_ops.
5519 (decompose_param_expr): New function.
5520 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
5521 to replace call to unmodified_parm_or_parm_agg_item.
5522 (set_switch_stmt_execution_predicate): Likewise.
5523 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
5525 (inline_read_section): Read param_ops from summary stream.
5526 (ipa_fn_summary_write): Write param_ops to summary stream.
5528 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
5530 PR rtl-optimization/92107
5531 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
5534 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
5536 * config/darwin.c: Update description of fix and continue.
5538 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
5540 * config/darwin.c (darwin_binds_local_p): Update to call
5541 default_binds_local_p_3 () directly. amend comments.
5543 2019-10-15 Richard Biener <rguenther@suse.de>
5545 * lto-streamer-out.c (lto_variably_modified_type_p): New.
5546 (tree_is_indexable): Use it.
5547 * tree-streamer-out.c (pack_ts_type_common_value_fields):
5548 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
5549 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
5551 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5553 * config/msp430/msp430.md (zero_extendqipsi2): New.
5554 (zero_extendqisi2): Optimize case where src register and base dst
5555 register are the same.
5556 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
5557 (zero_extendpsisi2): Optimize r->m case.
5558 Add unnamed insn patterns to catch insns combine searches for when
5559 optimizing pointer manipulation.
5561 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5563 * config/msp430/msp430.md: Group zero_extend* insns together.
5565 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5567 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
5569 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
5571 (msp430_subreg): Likewise.
5572 (msp430_split_addsi): Likewise.
5573 (msp430_print_operand_addr): Likewise.
5574 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
5575 (USE_STORE_POST_INCREMENT): Define.
5576 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
5577 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
5578 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
5579 (msp430_general_dst_operand): New.
5580 (msp430_general_dst_nonv_operand): New.
5581 (msp430_nonsubreg_operand): Remove.
5582 (msp430_nonsubreg_dst_operand): New.
5583 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
5584 of defunct msp430_nonsubreg_operand.
5585 (msp430_nonsubregnonpostinc_or_imm_operand): New.
5587 2019-10-15 Richard Biener <rguenther@suse.de>
5589 PR tree-optimization/91929
5590 * tree-ssa-pre.c (pre_expr_d::loc): New member.
5591 (get_or_alloc_expr_for_name): Initialize it.
5592 (get_or_alloc_expr_for_constant): Likewise.
5593 (phi_translate_1): Copy it.
5594 (create_expression_by_pieces): Use the original location
5595 of the expression for the inserted stmt.
5596 (compute_avail): Record the location of the stmt for the
5597 expressions created.
5599 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
5601 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
5602 before using tree_to_uhwi.
5604 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
5606 * config/s390/s390.md: Run %a0:DI splitters only after reload.
5608 2019-10-15 Richard Biener <rguenther@suse.de>
5610 PR tree-optimization/92094
5611 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
5612 do not adjust the reduction definition def type.
5613 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
5614 defines the latch argument of the PHI.
5616 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
5619 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
5620 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
5621 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
5622 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
5623 _mm_maskz_roundscale_round_sd): New intrinsics.
5624 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
5625 __builtin_ia32_rndscales?_mask_round builtins instead of
5626 __builtin_ia32_rndscales?_round.
5627 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
5628 __builtin_ia32_rndscalesd_round): Remove.
5629 (__builtin_ia32_rndscaless_mask_round,
5630 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
5631 * config/i386/sse.md
5632 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
5633 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
5634 ... this, adjust and add subst atrributes to make it maskable.
5636 2019-10-15 Richard Biener <rguenther@suse.de>
5639 * common.opt (fallow-store-data-races): New.
5640 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
5641 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
5642 * doc/invoke.texi (fallow-store-data-races): Document.
5643 (--param allow-store-data-races): Remove docs.
5644 * opts.c (default_options_table): Enable -fallow-store-data-races
5646 (default_options_optimization): Do not enable --param
5647 allow-store-data-races at -Ofast.
5648 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
5649 instead of PARAM_ALLOW_STORE_DATA_RACES.
5650 * tree-ssa-loop-im.c (execute_sm): Likewise.
5652 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5654 PR tree-optimization/92085
5655 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
5656 instead of calling it unconditionally after
5657 delete_dead_or_redundant_assignment and fix indentation.
5659 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5661 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
5663 (*fmsub<SDF:mode>4): Likewise.
5664 *fnmsub<SDF:mode>4): Likewise.
5665 (*fnmadd<SDF:mode>4): Likewise.
5667 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
5669 * doc/tree-ssa.texi: Update renamed macro name.
5671 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5673 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
5676 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
5678 * config/darwin.c: Use unsigned ints for the picbase label
5679 counters, initialise the vars explicitly.
5680 (update_pic_label_number_if_needed): Move a variable declaration
5681 to where it's needed.
5682 (machopic_output_function_base_name): Use a more strict checking
5683 assert, and and unsigned int for the picbase label counter.
5684 (machopic_get_function_picbase): Likewise.
5686 2019-10-14 Richard Biener <rguenther@suse.de>
5689 * dse.c (scan_insn): Use param max_active_local_stores.
5690 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
5691 based on optimization level.
5692 * loop-invariant.c (move_loop_invariants): Adjust
5693 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
5694 * opts.c (default_options_optimization): Do not adjust
5695 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
5696 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
5698 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
5700 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
5702 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
5704 * config/arm/arm.c (arm_option_override): Don't override sched
5707 2019-10-14 Richard Biener <rguenther@suse.de>
5709 PR tree-optimization/92069
5710 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
5711 cycles do not set vect_nested_cycle on the latch definition.
5713 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
5715 * function-abi.h (expr_callee_abi): Declare.
5716 * function-abi.cc (expr_callee_abi): New function.
5718 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
5720 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
5722 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
5723 non-zero being represented as [1,MAX].
5725 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
5727 * tree-sra.c (dump_access): Add missing braces.
5729 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
5731 * config/darwin.c (machopic_indirection_name): Rework the
5732 function to emit linker-visible symbols only for indirections
5733 in the data section. Clean up the code and update comments.
5735 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
5737 * config/darwin.c (machopic_indirect_data_reference): Remove
5740 2019-10-13 Nathan Sidwell <nathan@acm.org>
5742 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
5744 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5746 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
5749 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
5751 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
5752 so non-virutal are before virutals.
5753 (output_function): Avoid body modifications.
5755 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
5757 * config/pa/pa.c (pa_output_call): Load descriptor address to register
5758 %r22. Load function address before global pointer.
5759 (pa_attr_length_indirect_call): Adjust length of inline versions of
5761 (pa_output_indirect_call): Remove fast inline version of $$dyncall
5762 before normal cases. Update inline $$dyncall sequences to preserve
5763 function descriptor address in register %r22.
5764 (TRAMPOLINE_CODE_SIZE): Adjust.
5765 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
5766 register %r22 contains trampoline address.
5767 (pa_trampoline_init): Adjust offsets.
5768 (pa_trampoline_adjust_address): Likewise.
5769 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
5771 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
5774 * config/darwin.c (machopic_indirection): New field to flag
5775 non-lazy-symbol-pointers in the data section.
5776 (machopic_indirection_name): Compute if an indirection should
5777 appear in the data section.
5778 (machopic_output_data_section_indirection): New callback split
5779 from machopic_output_indirection.
5780 (machopic_output_stub_indirection): Likewise.
5781 (machopic_output_indirection): Retain the code for non-lazy
5782 symbol pointers in their regular section.
5783 (machopic_finish): Use the new callbacks to order the indirection
5786 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
5788 * config/darwin-protos.h (machopic_finish): Delete.
5789 * config/darwin.c (machopic_finish): Make static.
5791 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
5793 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
5794 sections when building kernel extension code.
5796 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
5798 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
5801 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
5803 * config/pa/pa.c (pa_option_override): Remove trailing comma
5806 2019-10-12 Jakub Jelinek <jakub@redhat.com>
5809 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
5810 <case VEC_COND_EXPR>: Return false with *handled = false.
5811 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
5812 recursing on the first operand.
5813 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
5814 instead of tree_could_trap_p.
5815 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
5817 2019-10-11 Jim Wilson <jimw@sifive.com>
5819 PR rtl-optimization/91860
5820 * combine.c (subst): If new_rtx is a constant, also check for
5821 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
5823 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
5825 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
5826 INTVAL when calling store_bit_field.
5828 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
5830 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
5833 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
5835 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
5836 vectorizable_live_operation.
5837 (vectorizable_live_operation): Adjust parameters.
5838 * tree-vect-stmts.c (vect_init_vector,
5839 vect_gen_widened_results_half): Fix typo in function comment.
5840 (can_vectorize_live_stmts): Adjust function comment.
5841 Adjust parameters. Adjust call to vectorizable_live_operation.
5842 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
5843 (vect_transform_stmt): Adjust function comment. Adjust call to
5844 can_vectorize_live_stmts.
5845 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
5847 2019-10-11 Richard Biener <rguenther@suse.de>
5849 PR tree-optimization/90883
5850 PR tree-optimization/91091
5851 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
5852 alias-sets both for recording VN table entries and continuing
5853 walking after translating through copies. Handle same-sized
5854 reads from SSA names by returning the plain SSA name.
5855 (eliminate_dom_walker::eliminate_stmt): Properly handle
5856 non-size precision stores in redundant store elimination.
5858 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
5860 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
5861 (ggc_collect): Dump later to not interfere with release_page dump.
5862 (ggc_trim): New function.
5863 * ggc-none.c (ggc_trim): New.
5864 * ggc.h (ggc_trim): Declare.
5866 2019-10-11 Richard Biener <rguenther@suse.de>
5868 PR tree-optimization/92066
5869 PR tree-optimization/92046
5870 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5871 Fix bogus cost model check.
5873 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
5875 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
5876 (LANG_HOOKS_DECLS): Add it.
5877 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
5878 update comment for omp_is_optional_argument.
5879 * omp-general.c (omp_is_allocatable_or_ptr): New.
5880 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
5881 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
5882 Fortran's optional arguments and allocatable/pointer scalars
5883 with use_device_addr.
5885 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
5888 * config/s390/2827.md: Add new opcodes.
5889 * config/s390/2964.md: Likewise.
5890 * config/s390/3906.md: Likewise.
5891 * config/s390/8561.md: Likewise.
5892 * config/s390/s390-builtins.def (s390_vfchesb): Use
5893 the new vec_cmpgev4sf_quiet_nocc.
5894 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
5895 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
5896 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
5897 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
5898 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
5899 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
5900 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
5901 * config/s390/s390-modes.def (CCSFPS): New mode.
5902 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
5903 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
5904 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
5905 (s390_expand_vec_compare): Use non-signaling patterns where
5907 (s390_reverse_condition): Support CCSFPS.
5908 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
5909 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
5910 (asm_fcmp_op): Likewise.
5911 (*smaxv2df3_vx): Use pattern for quiet comparison.
5912 (*sminv2df3_vx): Likewise.
5913 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
5914 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
5915 (vec_cmpgt<mode>_quiet_nocc): Likewise.
5916 (vec_cmplt<mode>_quiet_nocc): New expander.
5917 (vec_cmpge<mode>_quiet_nocc): New pattern.
5918 (vec_cmple<mode>_quiet_nocc): New expander.
5919 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
5920 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
5921 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
5922 (*vec_cmpge<mode>_signaling_nocc): Likewise.
5923 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
5924 (vec_cmpungt<mode>): New expander.
5925 (vec_cmpunge<mode>): Likewise.
5926 (vec_cmpuneq<mode>): Use quiet patterns.
5927 (vec_cmpltgt<mode>): Allow only on z14+.
5928 (vec_cmpordered<mode>): Use quiet patterns.
5929 (vec_cmpunordered<mode>): Likewise.
5930 (VEC_CMP_EXPAND): Add ungt and unge.
5932 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
5934 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
5936 * lto-streamer-out.c: Include tree-dfa.h.
5937 (output_cfg): Do not use cfun.
5938 (lto_prepare_function_for_streaming): New.
5939 (output_function): Do not push cfun; do not initialize loop optimizer.
5940 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
5941 * passes.c (ipa_write_summaries): Use it.
5942 (ipa_write_optimization_summaries): Do not modify bodies.
5943 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
5944 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
5945 * tree-ssa-dse.c (pass_dse::execute): Update use of
5946 renumber_gimple_stmt_uids.
5947 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
5949 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
5951 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
5952 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
5954 2019-10-10 Joseph Myers <joseph@codesourcery.com>
5956 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
5958 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
5959 Also define DFP macros for these conditions.
5960 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
5961 DEC128_SUBNORMAL_MIN): Do not define.
5962 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
5963 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
5965 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
5966 Sandra Loosemore <sandra@codesourcery.com>
5969 * doc/lto.texi (IPA): Reference to the IPA passes.
5970 * doc/passes.texi (Pass manager): Add node IPA passes and
5971 description for each IPA pass.
5973 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
5975 * ipa-reference.c: Do not include splay-tree.h
5976 (reference_vars_to_consider): Turn to hash map.
5977 (get_static_name, ipa_init, analyze_function, propagate,
5978 stream_out_bitmap, ipa_reference_write_optimization_summary,
5979 ipa_reference_write_optimization_summary): Update.
5981 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
5983 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
5985 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
5987 * config/darwin.c: Lookup Objective C metadata and force indirection
5990 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
5992 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
5994 (mem_operand_gpr): Add check for prefixed addresses.
5995 (mem_operand_ds_form): Add check for prefixed addresses.
5996 (rs6000_legitimate_offset_address_p): If we support prefixed
5997 addresses, check for a 34-bit offset instead of 16-bit.
5998 (rs6000_legitimate_address_p): Add check for prefixed addresses.
5999 Do not allow load/store with update if the address is prefixed.
6000 (rs6000_mode_dependent_address): If we support prefixed
6001 addresses, check for a 34-bit offset instead of 16-bit.
6003 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
6006 * config/s390/vector.md (vcond_comparison_operator): New
6008 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
6010 2019-10-10 David Malcolm <dmalcolm@redhat.com>
6013 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
6015 * configure.ac (--with-documentation-root-url): New option.
6016 * configure: Regenerate.
6017 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
6018 option URL, add it as a new string field of the diagnostic option.
6019 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
6020 (print_option_information): If get_option_url is non-NULL, call
6021 it, and if the result is non-NULL, potentially emit an escape
6022 sequence to markup the option text with the resulting URL.
6023 * diagnostic.h (diagnostic_context::get_option_url): New callback.
6024 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
6025 example of JSON output.
6026 * opts-diagnostic.h (get_option_url): New decl.
6027 * opts.c (get_option_url): New function.
6028 * toplev.c (general_init): Initialize the get_option_url callback.
6030 2019-10-10 David Malcolm <dmalcolm@redhat.com>
6033 * common.opt (fdiagnostics-urls=): New option.
6034 (diagnostic-url.h): Add SourceInclude.
6035 (diagnostic_url_rule): New enum.
6036 * diagnostic-color.c: Include "diagnostic-url.h".
6037 (diagnostic_urls_enabled_p): New function.
6038 * diagnostic-url.h: New file.
6039 * diagnostic.c: Include "diagnostic-url.h".
6040 (diagnostic_urls_init): New function.
6041 * diagnostic.h (diagnostic_urls_init): New decl.
6042 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
6043 -fdiagnostics-urls to the list.
6044 (-fdiagnostics-urls): New option.
6045 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
6046 (driver::global_initializations): Call diagnostic_urls_init.
6047 * opts-global.c (init_options_once): Likewise.
6048 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
6049 * pretty-print.c (pretty_printer::pretty_printer): Initialize
6051 (pp_begin_url): New function.
6052 (pp_end_url): New function.
6053 (selftest::test_urls): New selftest.
6054 (selftest::pretty_print_c_tests): Call it.
6055 * pretty-print.h (pretty_printer::show_urls): New field.
6056 (pp_begin_url): New decl.
6057 (pp_end_url): New decl.
6059 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
6062 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
6064 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
6067 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
6068 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
6069 also for TARGET_FPU_SH4_300.
6070 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
6072 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
6073 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
6074 (*negsf2_i): Split into ...
6075 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
6076 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
6077 (**abssf2_i): Split into ...
6078 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
6079 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
6080 (*negdf2_i): Split into ...
6081 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
6082 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
6083 (**abssf2_i): Split into ...
6084 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
6086 2019-10-10 Richard Biener <rguenther@suse.de>
6089 * opts.c (finish_options): Do not influence global --params
6090 from options that are adjustable per function.
6091 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6092 Apply --param adjustment based on active cost-model.
6093 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
6094 further store-sinking when vectorization or if-conversion
6097 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
6100 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
6101 rather than ggc_alloc_cleared to alloc symbol table.
6102 * toplev.c (general_init): Likewise.
6103 * cgraph.h (symbol_table): Explicitly construct every field.
6105 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
6107 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
6109 * config.gcc: Add z15 as option for --with-arch and --with-tune
6111 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
6112 error reporting for unsupported builtins.
6113 * config/s390/s390-opts.h (enum processor_type): Rename
6114 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
6115 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
6116 * config/s390/driver-native.c (s390_host_detect_local_cpu):
6118 * config/s390/s390-builtins.def: Likewise.
6119 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
6120 (s390_expand_builtin): Add missing check for unsupported builtins.
6121 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
6122 (s390_rtx_costs): Likewise.
6123 (s390_get_sched_attrmask): Rename arch13 to z15.
6124 (s390_get_unit_mask): Likewise.
6125 (s390_is_fpd): Likewise.
6126 (s390_is_fxd): Likewise.
6127 * config/s390/s390.h (enum processor_flags): Likewise.
6128 * config/s390/s390.md: Likewise.
6129 * config/s390/vector.md: Likewise.
6130 * config/s390/vx-builtins.md: Likewise.
6131 * config/s390/s390.opt: Add z15 to processor_type value.
6133 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
6136 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
6138 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
6139 ("split_stack_data", "split_stack_call")
6140 ("split_stack_call_<mode>", "split_stack_cond_call")
6141 ("split_stack_cond_call_<mode>"): Remove.
6142 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
6144 * config/s390/s390.c (s390_output_split_stack_data): New function.
6145 (s390_expand_split_stack_prologue): Use the merged expander.
6147 2019-10-09 Martin Sebor <msebor@redhat.com>
6149 PR tree-optimization/90879
6150 * builtins.c (check_access): Avoid using maxbound when null.
6151 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
6152 * doc/invoke.texi (-Wstring-compare): Document new warning option.
6153 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
6155 (get_range_strlen): Overwrite initial maxbound when non-null.
6156 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
6158 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
6159 (used_only_for_zero_equality): New function.
6160 (handle_builtin_memcmp): Call it.
6161 (determine_min_objsize): Return an integer instead of tree.
6162 (get_len_or_size, strxcmp_eqz_result): New functions.
6163 (maybe_warn_pointless_strcmp): New function.
6164 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
6165 between a longer string and a smaller array.
6166 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
6168 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
6170 * config/darwin.c (darwin_override_options): Make the check for
6171 Objective-C ABI version more specific for 64bit code.
6173 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
6175 * config/darwin.c (machopic_indirect_data_reference): Set flag to
6176 indicate that the new symbol is an indirection.
6177 (machopic_indirect_call_target): Likewise.
6178 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
6179 (MACHO_SYMBOL_INDIRECTION_P): New.
6180 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
6182 2019-10-08 Jason Merrill <jason@redhat.com>
6184 * doc/invoke.texi: Document -fconcepts-ts.
6186 2019-10-09 Richard Biener <rguenther@suse.de>
6188 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
6189 allow stmts other than GIMPLE_ASSIGN in nested cycles.
6191 2019-10-08 Richard Biener <rguenther@suse.de>
6193 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
6194 (_stmt_vec_info::force_single_cycle): Likewise.
6195 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
6196 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
6197 * tree-vect-loop.c (vectorizable_reduction): Set
6198 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
6199 (vect_transform_reduction): Use them to remove redundant code.
6200 (vect_transform_cycle_phi): Likewise.
6202 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
6204 PR tree-optimization/90836
6205 * match.pd (popcount): New pattern.
6207 2019-10-08 Martin Sebor <msebor@redhat.com>
6211 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
6212 again once nbytes has been set. Set the access size when not yet set.
6214 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
6216 * config/darwin.c (machopic_select_section): Remove dead code for
6217 old Objective-C section selection method, replace with unreachable.
6219 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
6221 * config/darwin.c (machopic_indirect_data_reference): Check for
6222 required indirections before making direct access to defined
6224 (machopic_output_indirection): Place the indirected pointes for
6225 required indirections into the non-lazy symbol pointers section.
6226 (darwin_encode_section_info):
6227 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
6228 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
6230 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
6233 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
6234 instead of ALL_SSE_REG to check if function call preserves some
6235 256-bit SSE registers.
6237 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6239 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
6240 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
6241 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
6243 2019-10-08 Richard Biener <rguenther@suse.de>
6245 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
6246 (_stmt_vec_info::is_reduc_info): Add.
6247 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
6248 (vectorizable_condition): Remove.
6249 (vectorizable_shift): Likewise.
6250 (vectorizable_reduction): Adjust.
6251 (info_for_reduction): New.
6252 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
6253 (vect_analyze_scalar_cycles_1): ... here.
6254 (vect_analyze_loop_operations): Adjust.
6255 (needs_fold_left_reduction_p): Simplify for single caller.
6256 (vect_is_simple_reduction): Likewise. Remove stmt restriction
6257 for nested cycles not part of double reductions.
6258 (vect_model_reduction_cost): Pass in the reduction type.
6259 (info_for_reduction): New function.
6260 (vect_create_epilog_for_reduction): Use it, access reduction
6261 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
6262 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
6263 (vectorize_fold_left_reduction): Remove pointless assert.
6264 (vectorizable_reduction): Analyze the full reduction when
6265 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
6266 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
6267 stmt code-generation to vectorizable_* in most cases. Verify
6268 code-generation only for cases handled by
6269 vect_transform_reductuon.
6270 (vect_transform_reduction): Use info_for_reduction to get at
6271 reduction meta. Simplify.
6272 (vect_transform_cycle_phi): Likewise.
6273 (vectorizable_live_operation): Likewise.
6274 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
6275 at the PHI node for STMT_VINFO_REDUC_TYPE.
6276 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
6277 longer necessary code.
6278 * tree-vect-stmts.c (vectorizable_shift): Make static again.
6279 (vectorizable_condition): Likewise. Get at reduction related
6280 info via info_for_reduction.
6281 (vect_analyze_stmt): Adjust.
6282 (vect_transform_stmt): Likewise.
6283 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
6284 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
6286 2019-10-08 Joseph Myers <joseph@codesourcery.com>
6288 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
6289 -fno-fp-int-builtin-inexact default for C2X.
6291 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6292 Richard Biener <rguenther@suse.de>
6294 PR tree-optimization/91532
6295 * tree-if-conv.c: Include tree-ssa-dse.h.
6296 (ifcvt_local_dce): Change param from bb to loop,
6297 and call dse_classify_store.
6298 (tree_if_conversion): Pass loop instead of loop->header as arg
6300 * tree-ssa-dse.c: Include tree-ssa-dse.h.
6301 (delete_dead_or_redundant_assignment): Remove static qualifier from
6302 declaration, and add prototype in tree-ssa-dse.h.
6303 (dse_store_status): Move to tree-ssa-dse.h.
6304 (dse_classify_store): Remove static qualifier and add new tree param
6305 stop_at_vuse, and add prototype in tree-ssa-dse.h.
6306 * tree-ssa-dse.h: New header.
6308 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
6310 * config/darwin.c (machopic_output_indirection): Don't put
6311 hidden symbol indirections into the .data section, use the
6312 non-lazy symbol pointers section as normal.
6313 (darwin_encode_section_info): Record if a symbol is hidden.
6314 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
6315 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
6317 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
6319 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
6320 predicates instead of accessing bits directly.
6321 (machopic_indirect_call_target): Likewise.
6322 (machopic_output_indirection): Likewise.
6323 (darwin_encode_section_info): Improve description. Use renamed
6324 symbol flags. Use predicate macros for variables and functions.
6326 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
6327 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
6328 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
6329 (MACHO_SYMBOL_VARIABLE_P): New.
6330 (MACHO_SYMBOL_DEFINED_P):New.
6331 (MACHO_SYMBOL_STATIC_P): New.
6332 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
6333 (SYMBOL_FLAG_SUBT_DEP): New.
6334 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
6336 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6338 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
6339 (msp430_expand_epilogue): Likewise.
6340 * config/msp430/predicates.md: Likewise.
6341 * config/msp430/msp430.md: Likewise.
6342 Replace blocks of 8 spaces with tabs.
6344 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6346 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
6347 * config/msp430/msp430.c (msp430_split_addsi): New.
6348 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
6349 a block of C code for splitting addsi.
6351 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
6353 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
6354 ix86_expand_rounddf_32): Reorder functions.
6355 * config/i386/i386-protos.h: Update.
6357 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6359 * config.in: Regenerate.
6360 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
6361 Add new "Yx" constraint.
6362 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
6364 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
6366 * config/msp430/msp430.c (msp430_option_override): Allow the lower
6367 code/data region to be selected in the small memory model.
6368 (msp430_section_attr): Don't warn if the "section" and "lower"
6369 attributes are used together.
6370 (msp430_handle_generic_attribute): Likewise.
6371 (msp430_var_in_low_mem): New function.
6372 (TARGET_ENCODE_SECTION_INFO): Define.
6373 (msp430_encode_section_info): New function.
6374 (gen_prefix): Return early in the small memory model.
6375 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
6376 ".lower" prefix if -m{code,data}-region=lower have been passed.
6377 (msp430_output_aligned_decl_common): Emit common symbols when
6378 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
6380 (TARGET_ASM_FILE_END): Define.
6381 (msp430_file_end): New function.
6382 (msp430_do_not_relax_short_jumps): Allow relaxation when
6383 function will be in the lower region.
6384 (msp430_op_not_in_high_mem): New function.
6385 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
6386 the 'X' operand selector.
6387 Clarify comment for 'x' operand selector.
6388 * config/msp430/msp430.h (LINK_SPEC): Propagate
6389 -m{code,data}-region to the linker via spec function
6390 msp430_propagate_region_opt.
6391 (msp430_propagate_region_opt): New prototype.
6392 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
6393 (SYMBOL_FLAG_LOW_MEM): Define.
6394 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
6396 (zero_extendqihi2): Fix operand number used by "%X" selector.
6397 (zero_extendqisi2): Likewise.
6398 (zero_extendhisi2): Likewise.
6399 (movqi): Use "Yx" constraint in place of "%X" operand selector.
6404 (addhi3_cy): Likewise.
6405 (addchi4_cy): Likewise.
6409 (bic<mode>3): Likewise.
6410 (and<mode>3): Likewise.
6411 (ior<mode>3): Likewise.
6412 (xor<mode>3): Likewise.
6413 (slli_1): Add missing "%X" operand selector.
6421 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
6423 (cbranchhi4_real): Likewise.
6424 (cbranchqi4_reversed): Likewise.
6425 (cbranchhi4_reversed): Likewise.
6426 (*bitbranch<mode>4): Likewise.
6427 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
6428 * config/msp430/msp430.opt (mcode-region=): Set default to
6429 MSP430_REGION_LOWER. Improve docstring.
6430 (mdata-region=): Likewise.
6431 (muse-lower-region-prefix): New option.
6432 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
6433 mdata-region=none multilib.
6434 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
6435 mdata-region=none multilib.
6436 MULTILIB_EXCEPTIONS: Remove.
6437 MULTILIB_REQUIRED: Define.
6438 * configure: Regenerate.
6439 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
6440 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
6441 * doc/extend.texi: Clarify comment for {upper,lower,either}
6442 function attributes.
6443 Add separate description for "lower" variable attribute.
6445 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
6448 * optabs-tree.c (vcond_icode_p): New function.
6449 (vcond_eq_icode_p): Likewise.
6450 (expand_vec_cond_expr_p): Use vcond_icode_p and
6452 * optabs.c (can_vcond_compare_p): New function.
6453 * optabs.h (can_vcond_compare_p): Likewise.
6455 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
6458 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
6459 caller passes a non-trapping condition.
6460 (is_gimple_condexpr): Allow trapping conditions.
6461 (is_gimple_condexpr_1): New helper function.
6462 (is_gimple_condexpr_for_cond): New function, acts like old
6464 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
6465 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
6466 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
6467 * gimplify.c (gimplify_cond_expr): Use
6468 is_gimple_condexpr_for_cond.
6469 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
6470 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
6472 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
6473 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
6474 is_gimple_condexpr_for_cond, remove pointless tmp check
6475 (forward_propagate_into_cond): Remove pointless tmp check.
6477 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
6479 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
6480 match that of other gsi_next_* functions. Adjust the comment.
6481 (gsi_start_nonvirtual_phis): New function.
6482 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
6483 gsi_next_nonvirtual_phi accordingly. (No functional change.)
6485 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
6487 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
6488 setjmp situation here. Fix a verb's ending: "the exact variables or
6489 elements for which there are warnings depends" -> "... depend".
6491 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
6493 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
6495 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
6497 * ipa-prop.c (ipa_vr::nonzero_p): New.
6498 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
6500 * ipa-prop.h (class ipa_vr): Add nonzero_p.
6501 * tree-vrp.c (range_has_numeric_bounds_p): New.
6502 (range_int_cst_p): Use range_has_numeric_bounds_p.
6503 (get_range_op_handler): New.
6504 (supported_types_p): New.
6505 (defined_ranges_p): New.
6506 (drop_undefines_to_varying): New.
6507 (range_fold_binary_symbolics_p): New.
6508 (range_fold_unary_symbolics_p): New.
6509 (range_fold_unary_expr): Extract out into above functions.
6510 (range_fold_binary_expr): Same.
6511 (value_range_base::normalize_addresses): New.
6512 (value_range_base::normalize_symbolics): Normalize addresses.
6513 * tree-vrp.h (class value_range_base): Add normalize_addresses.
6515 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
6517 * tree-vrp.c (value_range_base::singleton_p): Use
6518 value_range_base::num_pairs instead of vrp_val_is* to check
6519 if a range has one sub-range.
6521 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
6523 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
6524 DEF is not a true earlyclobber but is tied to a specific input
6525 operand, and so is effectively earlyclobber wrt inputs that have
6527 (make_early_clobber_and_input_conflicts): Pass this case to the above.
6529 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
6531 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
6532 (pod_mode): Mark operators likewise.
6533 (scalar_int_mode): Mark non-default constructors and
6534 operators with CONSTEXPR.
6535 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
6536 (fixed_size_mode): Likewise.
6538 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
6541 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
6542 and wrap the unspec_volatile in a parallel.
6543 (*avx_vzeroupper): New define_insn. Use a match_parallel around
6544 the unspec_volatile.
6545 * config/i386/predicates.md (vzeroupper_pattern): Expect the
6546 unspec_volatile to be wrapped in a parallel.
6547 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
6548 (ix86_add_reg_usage_to_vzerouppers): New functions.
6549 (rest_of_handle_insert_vzeroupper): Use them to add register
6550 usage information to the vzeroupper instructions.
6552 2019-10-07 Richard Biener <rguenther@suse.de>
6554 PR tree-optimization/91975
6555 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
6558 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
6560 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
6561 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
6563 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
6565 * config/darwin.c (darwin_override_options): Adjust objective-c
6566 ABI version error messages to avoid punctuation and contracted
6569 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
6571 * ipa-inline.c: Fix type; compute size rather than self_size
6572 for size of caller function.
6574 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
6577 * config/darwin.c (darwin_rodata_section): Add relocation flag,
6578 choose const_data section for constants with relocations.
6579 (machopic_select_section): Pass relocation flag to
6580 darwin_rodata_section ().
6582 2019-10-05 Jakub Jelinek <jakub@redhat.com>
6584 PR tree-optimization/91734
6585 * generic-match-head.c: Include fold-const-call.h.
6586 * match.pd (sqrt(x) cmp c): Check the boundary value and
6587 in case inexact computation of c*c affects comparison of the boundary,
6588 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
6589 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
6590 for -frounding-math. For c2, try the next smaller or larger floating
6591 point constant depending on comparison code and if it has the same
6592 sqrt as c2, use it instead of c2.
6594 2019-10-04 Martin Sebor <msebor@redhat.com>
6597 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
6598 MEM_REF right operand. Avoid failing for MEM_REF assignments from
6599 uninitialized objects.
6601 2019-10-04 Martin Sebor <msebor@redhat.com>
6603 * builtins.c (compute_objsize): Add an argument.
6604 * tree-object-size.c (addr_object_size): Same.
6605 (compute_builtin_object_size): Same.
6606 * tree-object-size.h (compute_builtin_object): Same.
6608 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
6610 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
6612 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
6614 * match.pd (sinh (x) / cosh (x)): New simplification rule.
6616 2019-10-04 Martin Jambor <mjambor@suse.cz>
6618 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
6619 fntype when switching to calling memcpy instead of memset.
6621 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6623 * hash-table.h (hash_table::empty_slow): Don't assign
6624 size_t values to int variables.
6626 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6628 * expr.c (convert_mode_scalar): Remove shadowing local var.
6629 (emit_block_move): Rename local vars.
6630 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
6631 (emit_push_insn): Rename local vars.
6632 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
6633 shadowing local vars.
6634 (store_constructor): Remove shadowing local vars. Rename local var.
6635 (store_field, expand_cond_expr_using_cmove,
6636 expand_expr_real_2): Remove shadowing local vars.
6637 (expand_expr_real_1,
6638 do_store_flag): Remove shadowing local vars. Rename local vars.
6640 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6642 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
6644 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6646 * genmatch.c (commutate): Rename local var.
6647 (lower_cond): Reuse local var.
6648 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
6649 dt_operand::gen, dt_operand::gen_gimple_expr,
6650 dt_simplify::gen): Add a param. Rename generated vars.
6651 (decision_tree::insert_operand,
6652 (capture_info::walk_match, capture_info::walk_result,
6653 capture_info::walk_c_expr): Rename local vars.
6654 (expr::gen_transform): Rename generated vars.
6655 Use snprintf. Rename local vars.
6656 (capture::gen_transform, dt_operand::get_name,
6657 dt_operand::gen_opname): Rename generated vars.
6658 (write_predicate): Adjust call to gen_kids.
6659 (parser::get_internal_capture_id): Rename generated vars.
6660 (parser::parse_expr): Rename local vars.
6661 (parser::parse_if): Remove local var.
6662 (parser::parse_pattern, add_operator): Rename local vars.
6664 2019-10-04 Joseph Myers <joseph@codesourcery.com>
6666 * builtins.def (DEF_C2X_BUILTIN): New macro.
6667 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
6668 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
6669 (strndup): Use DEF_C2X_BUILTIN.
6670 * coretypes.h (enum function_class): Add function_c2x_misc.
6672 2019-10-04 Maya Rashish <coypu@sdf.org>
6674 * ira-color.c (update_costs_from_allocno): Call
6675 ira_init_register_move_cost_if_necessary.
6677 2019-10-04 Jeff Law <law@redhat.com>
6679 * config/h8300/h8300.md (cpymemsi): Disable.
6680 (movmd, movmd_internal_<mode>, movstr, movsd):
6681 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
6682 (movmd splitter, movsd splitter): Likewise.
6684 * range-op.cc (range_tests): Avoid two tests when ints and
6685 shorts are the same size.
6687 2019-10-04 Richard Biener <rguenther@suse.de>
6690 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
6693 2019-10-04 Richard Biener <rguenther@suse.de>
6695 PR tree-optimization/91982
6696 * tree-vect-loop.c (vectorizable_live_operation): Also guard
6697 against EXTRACT_LAST_REDUCTION.
6698 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
6700 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
6702 * range-op.o (value_range_from_overflowed_bounds): Rename from
6703 adjust_overflow_bound.
6704 (value_range_with_overflow): Rename from
6705 create_range_with_overflow.
6706 (create_possibly_reversed_range): Adjusted for above renames.
6707 (operator_*::wi_fold): Same.
6708 (cross_product_operator::wi_cross_productor): Same.
6710 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6712 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
6713 -Wshadow=compatible-local): Fix description.
6714 Add an example where -Wshadow=compatible-local does not
6717 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
6719 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
6721 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
6722 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
6724 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
6726 * expr.c (emit_block_move_hints): Slightly cleaner fix to
6727 can_move_by_pieces issue.
6729 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
6732 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
6733 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
6734 is available and the user has not set one on the command line.
6736 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
6739 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
6740 instead of REGNO equality check on addr.reg.
6742 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
6744 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
6745 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
6746 * doc/invoke.texi (inline-heuristics-hint-percent,
6747 inline-heuristics-hint-percent-O2): Document.
6748 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
6750 (can_inline_edge_by_limits_p): Use it.
6752 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
6754 * config/arm/arm.c (arm_print_value): Use real_to_decimal
6755 to print CONST_DOUBLEs.
6757 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
6759 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
6760 * ipa-prop.c (ipcp_free_transformation_sum): New function.
6761 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
6763 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
6765 * Makefile.in (OBJS): Add range.o and range-op.o.
6766 Remove wide-int-range.o.
6767 * function-tests.c (test_ranges): New.
6768 (function_tests_c_tests): Call test_ranges.
6769 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
6770 range_fold_unary_expr instead of extract_range_from_unary_expr.
6771 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
6772 * range-op.cc: New file.
6773 * range-op.h: New file.
6774 * range.cc: New file.
6775 * range.h: New file.
6776 * selftest.h (range_tests): New prototype.
6777 * ssa.h: Include range.h.
6778 * tree-vrp.c (value_range_base::value_range_base): New
6780 (value_range_base::singleton_p): Do not call
6781 ranges_from_anti_range until sure we will need to.
6782 (value_range_base::type): Rename gcc_assert to
6783 gcc_checking_assert.
6784 (vrp_val_is_max): New argument.
6785 (vrp_val_is_min): Same.
6786 (wide_int_range_set_zero_nonzero_bits): Move from
6788 (extract_range_into_wide_ints): Remove.
6789 (extract_range_from_multiplicative_op): Remove.
6790 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
6791 from extract_range_from_binary_expr.
6792 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
6793 from extract_range_from_binary_expr.
6794 (extract_range_from_binary_expr): Remove.
6795 (normalize_for_range_ops): New.
6796 (range_fold_binary_expr): New.
6797 (range_fold_unary_expr): New.
6798 (value_range_base::num_pairs): New.
6799 (value_range_base::lower_bound): New.
6800 (value_range_base::upper_bound): New.
6801 (value_range_base::upper_bound): New.
6802 (value_range_base::contains_p): New.
6803 (value_range_base::invert): New.
6804 (value_range_base::union_): New.
6805 (value_range_base::intersect): New.
6806 (range_compatible_p): New.
6807 (value_range_base::operator==): New.
6808 (determine_value_range_1): Call range_fold_*expr instead of
6809 extract_range_from_*expr.
6810 * tree-vrp.h (class value_range_base): Add new constructors.
6811 Add methods for union_, intersect, operator==, contains_p,
6812 num_pairs, lower_bound, upper_bound, invert.
6813 (vrp_val_is_min): Add handle_pointers argument.
6814 (vrp_val_is_max): Same.
6815 (extract_range_from_unary_expr): Remove.
6816 (extract_range_from_binary_expr): Remove.
6817 (range_fold_unary_expr): New.
6818 (range_fold_binary_expr): New.
6819 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
6820 range_fold_binary_expr instead of extract_range_from_binary_expr.
6821 (vr_values::extract_range_basic): Same.
6822 (vr_values::extract_range_from_unary_expr): Call
6823 range_fold_unary_expr instead of extract_range_from_unary_expr.
6824 * wide-int-range.cc: Remove.
6825 * wide-int-range.h: Remove.
6827 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
6829 * config/rs6000/rs6000.c (mem_operand_gpr): Use
6830 SIGNED_16BIT_OFFSET_EXTRA_P macro.
6831 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
6832 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
6835 2019-10-02 Joseph Myers <joseph@codesourcery.com>
6837 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
6838 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
6839 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
6840 * glimits.h: Likewise.
6842 2019-10-03 Jakub Jelinek <jakub@redhat.com>
6844 PR rtl-optimization/91976
6845 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
6846 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
6847 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
6849 2019-10-02 Martin Sebor <msebor@redhat.com>
6851 PR tree-optimization/80936
6852 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
6854 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
6856 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
6857 instead of reg_class_contents[ALL_REGS].
6859 2019-09-30 Jason Merrill <jason@redhat.com>
6861 Add some hash_map_safe_* functions like vec_safe_*.
6862 * hash-map.h (default_hash_map_size): New variable.
6863 (create_ggc): Use it as default argument.
6864 (hash_map_maybe_create, hash_map_safe_get)
6865 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
6867 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
6869 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
6870 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
6871 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
6872 (can_inline_edge_by_limits_p): Use it.
6873 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
6874 (want_inline_small_function_p): Use O2 bounds.
6875 (edge_badness): LIkewise.
6876 * opts.c (default_options): Add OPT_finline_functions.
6877 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
6878 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
6880 * doc/invoke.texi (-finline-functions): Update documentation.
6881 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
6882 inline-min-speedup-O2): Document.
6883 (early-inlining-insns-O2): Simplify docs.
6885 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
6887 PR rtl-optimization/87047
6888 * ifcvt.c (average_cost): New static function. Use it...
6889 (noce_process_if_block): ... here.
6891 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
6893 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
6894 * config/rs6000/rs6000-string.c (expand_block_move): Add
6896 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
6897 (cpymemsi): Add might_overlap parm to expand_block_move() call.
6899 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
6901 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
6902 (expand_builtin_memcpy): Use might_overlap parm.
6903 (expand_builtin_mempcpy_args): Use might_overlap parm.
6904 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
6905 (expand_builtin_memory_copy_args): Add might_overlap parm.
6906 * expr.c (emit_block_move_via_cpymem): Rename to
6907 emit_block_move_via_pattern, add might_overlap parm, use cpymem
6908 or movmem optab as appropriate.
6909 (emit_block_move_hints): Add might_overlap parm, do the right
6910 thing for might_overlap==true.
6911 * expr.h (emit_block_move_hints): Update prototype.
6913 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
6915 * tree-eh.h (unsplit_eh_edges): Declare.
6916 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
6917 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
6918 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
6919 (struct store_immediate_info): Add lp_nr field.
6920 (store_immediate_info::store_immediate_info): Add NR2 parameter and
6921 initialize lp_nr with it.
6922 (struct merged_store_group): Add lp_nr and only_constants fields.
6923 (merged_store_group::merged_store_group): Initialize them.
6924 (merged_store_group::can_be_merged_into): Deal with them.
6925 (pass_store_merging): Rename terminate_and_release_chain into
6926 terminate_and_process_chain.
6927 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
6928 renaming and remove useless assertions.
6929 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
6930 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
6931 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
6932 instead of always recomputing it and compare lp_nr.
6933 (imm_store_chain_info::output_merged_store): If the group is in an
6934 active EH region, register new stores if they can throw. Moreover,
6935 if the insertion has created new basic blocks, adjust the PHI nodes
6936 of the post landing pad.
6937 (imm_store_chain_info::output_merged_stores): If the original stores
6938 are in an active EH region, deregister them.
6939 (lhs_valid_for_store_merging_p): Prettify.
6940 (adjust_bit_pos): New function extracted from...
6941 (mem_valid_for_store_merging): ...here. Use it for the base address
6942 and also for the offset if it is the addition of a constant.
6943 (lp_nr_for_store): New function.
6944 (pass_store_merging::process_store): Change return type to bool.
6945 Call lp_nr_for_store to initialize the store info. Propagate the
6946 return status of various called functions to the return value.
6947 (store_valid_for_store_merging_p): New predicate.
6948 (enum basic_block_status): New enumeration.
6949 (get_status_for_store_merging): New function.
6950 (pass_store_merging::execute): If the function can throw and catch
6951 non-call exceptions, unsplit the EH edges on entry and clean up the
6952 CFG on exit if something changed. Call get_status_for_store_merging
6953 for every basic block and keep the chains open across basic blocks
6954 when possible. Terminate and process open chains at the end, if any.
6956 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
6958 * reginfo.c (globalize_reg): Fix shadowed variable in
6961 2019-10-02 Martin Jambor <mjambor@suse.cz>
6963 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
6964 do not compute some stuff when set.
6965 (cgraph_node::create_edge): Likewise.
6966 (cgraph_node::create_indirect_edge): Renamed last parameter to
6967 coning_p and flipped its meaning, don't even calculate
6968 inline_failed when set.
6969 * cgraph.h (cgraph_node::create_edge): Add new parameter.
6970 (symbol_table::::create_edge): Likewise.
6971 (cgraph_node::create_indirect_edge): Rename last parameter, flip
6973 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
6974 call graph edge creating functions.
6976 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
6979 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
6982 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
6984 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
6986 2019-10-02 Richard Biener <rguenther@suse.de>
6988 * tree-vectorizer.h (vect_transform_reduction): Declare.
6989 * tree-vect-stmts.c (vect_transform_stmt): Use it.
6990 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
6991 stmt transform to ...
6992 (vect_transform_reduction): ... this.
6994 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
6996 * omp-low.c (lower_omp_target): Dereference optional argument
6997 to work with the right pointer.
6999 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
7001 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
7003 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
7004 * langhooks.h (omp_is_optional_argument): New hook.
7005 * omp-general.c (omp_is_optional_argument): New.
7006 * omp-general.h (omp_is_optional_argument): New declaration.
7007 * omp-low.c (lower_omp_target): Create temporary for received value
7008 and take the address for new_var if the original variable was a
7009 DECL_BY_REFERENCE. Use size of referenced object when a
7010 pass-by-reference optional argument used as argument to firstprivate.
7012 2019-10-02 Jakub Jelinek <jakub@redhat.com>
7014 PR tree-optimization/91940
7015 * tree-vect-patterns.c: Include tree-vector-builder.h and
7017 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
7018 unpromoting the argument back to uint16_t, or by converting into a
7019 rotate, or into shifts plus ior.
7021 2019-10-02 Richard Biener <rguenther@suse.de>
7023 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
7025 (vect_transform_cycle_phi): Declare.
7026 * tree-vect-stmts.c (vect_transform_stmt): Call
7027 vect_transform_cycle_phi.
7028 * tree-vect-loop.c (vectorizable_reduction): Split out
7029 PHI transformation stage to ...
7030 (vect_transform_cycle_phi): ... here.
7032 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
7035 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
7036 eliminable registers.
7037 (make_hard_regno_live): Likewise, and don't make them live.
7039 2019-10-01 David Malcolm <dmalcolm@redhat.com>
7041 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
7042 Call pp_emit_prefix.
7043 (layout::print_source_line): Likewise.
7044 (layout::start_annotation_line): Likewise.
7045 (diagnostic_show_locus): Remove call to temporarily clear the
7047 (selftest::test_one_liner_fixit_remove): Add test coverage for the
7048 interaction of pp_set_prefix with rulers and fix-it hints.
7049 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
7050 prefix when calling diagnostic_show_locus, rather than destroying
7052 (print_parseable_fixits): Temporarily clear prefix.
7053 * pretty-print.c (pp_format): Save and restore line_length, rather
7054 than assuming it is zero.
7055 (pp_output_formatted_text): Remove assertion that line_length is
7058 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7060 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
7062 (nonoverlapping_refs_since_match_p): ... this; handle also
7064 (alias_stats): Update stats.
7065 (dump_alias_stats): Likewise.
7066 (cheap_array_ref_low_bound): New function.
7067 (aliasing_matching_component_refs_p): Add partial_overlap
7069 pass it to nonoverlapping_refs_since_match_p.
7070 (aliasing_component_refs_walk): Update call of
7071 aliasing_matching_component_refs_p
7072 (nonoverlapping_array_refs_p): New function.
7073 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
7074 indirect_refs_may_alias_p): Update calls of
7075 nonoverlapping_refs_since_match_p.
7077 2019-10-01 Maya Rashish <coypu@sdf.org>
7080 * ira-color.c (allocno_copy_cost_saving): Call
7081 ira_init_register_move_cost_if_necessary.
7083 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
7085 * Makefile.in (gnat_install_lib): New variable.
7086 * configure.ac: Substitute it.
7087 * configure: Regenerate.
7089 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7092 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
7093 is matched with non-C++ type
7095 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7097 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
7100 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7102 * doc/invoke.texi (early-inlining-insns-O2): Document.
7103 (early-inlining-insns): Update.
7104 * params.def (early-inlining-insns-O2): New bound.
7105 (early-inlining-insns): Update docs.
7106 * ipa-inline.c (want_early_inline_function_p): Use new bound.
7108 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
7111 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
7112 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
7113 a memory access insn.
7115 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
7117 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
7120 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
7123 * config/s390/s390.c (s390_expand_vec_compare): Use
7124 gen_vec_cmpordered and gen_vec_cmpunordered.
7125 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
7126 vec_unordered): Delete.
7127 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
7128 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
7129 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
7130 (vec_cmp<code>): Generic dispatcher.
7132 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
7135 * config/s390/vector.md (V_HW): Add V1TI in order to make
7136 vcond$a$b generate vcondv1tiv1tf.
7138 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7140 PR rtl-optimization/91948
7141 * ira-build.c (ira_create_allocno): Initialize
7142 ALLOCNO_CROSSED_CALLS_ABIS.
7143 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
7144 than regno to ira_need_caller_save_p.
7146 2019-10-01 Alexandre Oliva <oliva@adacore.com>
7148 * config/i386/i386-options.c
7149 (ix86_recompute_optlev_based_flags): New, moved out of...
7150 (ix86_option_override_internal): ... this. Call it.
7151 (ix86_override_options_after_change): Call it here too.
7154 * dwarf2out.c (override_type_for_decl_p): New.
7155 (gen_variable_die): Use it.
7157 2019-10-01 Richard Biener <rguenther@suse.de>
7159 * tree-vect-loop.c (vectorizable_reduction): Move variables
7160 to where they are used.
7162 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7164 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
7165 (build_def_use): Use PC instead of CC0 in a comment.
7167 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7169 * rtl.def (CLOBBER_HIGH): Delete.
7170 * doc/rtl.texi (clobber_high): Remove documentation.
7171 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
7172 (reg_is_clobbered_by_clobber_high): Delete.
7173 (gen_hard_reg_clobber_high): Likewise.
7174 * alias.c (record_set): Remove CLOBBER_HIGH handling.
7175 * cfgexpand.c (expand_gimple_stmt): Likewise.
7176 * combine-stack-adj.c (single_set_for_csa): Likewise.
7177 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
7178 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
7179 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
7180 * cse.c (invalidate_reg): Remove clobber_high parameter.
7181 (invalidate): Update call accordingly.
7182 (canonicalize_insn): Remove CLOBBER_HIGH handling.
7183 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
7184 (count_reg_usage, insn_live_p): Likewise.
7185 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
7186 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
7187 (cselib_invalidate_rtx_note_stores): Update call accordingly.
7188 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
7189 (cselib_invalidate_regno, cselib_process_insn): Likewise.
7190 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
7191 (mark_nonreg_stores_2): Likewise.
7192 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
7193 (df_get_call_refs): Likewise.
7194 * dwarf2out.c (mem_loc_descriptor): Likewise.
7195 * emit-rtl.c (verify_rtx_sharing): Likewise.
7196 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
7197 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
7198 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
7199 * genemit.c (gen_exp, gen_insn): Likewise.
7200 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
7201 * haifa-sched.c (haifa_classify_rtx): Likewise.
7202 * ira-build.c (create_insn_allocnos): Likewise.
7203 * ira-costs.c (scan_one_insn): Likewise.
7204 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
7205 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
7206 * jump.c (mark_jump_label_1): Likewise.
7207 * lra-int.h (lra_insn_reg::clobber_high): Delete.
7208 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
7210 (mark_not_eliminable): Likewise.
7211 * lra-lives.c (process_bb_lives): Likewise.
7212 * lra.c (new_insn_reg): Remove clobber_high parameter.
7213 (collect_non_operand_hard_regs): Likewise. Update call to new
7214 insn_reg. Remove CLOBBER_HIGH handling.
7215 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
7216 to collect_non_operand_hard_regs.
7217 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
7218 Update call to new_insn_reg.
7219 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
7220 * postreload.c (reload_cse_simplify, reload_combine_note_use)
7221 (move2add_note_store): Likewise.
7222 * print-rtl.c (print_pattern): Likewise.
7223 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
7224 (if_test_bypass_p): Likewise.
7225 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
7226 * reginfo.c (reg_scan_mark_refs): Likewise.
7227 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
7228 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
7229 (forget_old_reloads_1): Likewise.
7230 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
7231 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
7232 (dbr_schedule): Likewise.
7233 * resource.c (update_live_status, mark_referenced_resources)
7234 (mark_set_resources): Likewise.
7235 * rtl.c (copy_rtx): Likewise.
7236 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
7237 (note_pattern_stores): Likewise.
7238 (reg_is_clobbered_by_clobber_high): Delete.
7239 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
7240 CLOBBER_HIGH handling.
7242 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7245 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
7246 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
7247 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7248 Handle ARM_PCS_TLSDESC.
7249 (aarch64_tlsdesc_abi_id): New function.
7250 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
7251 rtx instead of a list of clobbers and clobber_highs.
7252 (tlsdesc_small_<mode>): Update accordingly.
7254 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7256 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
7257 extra callee_abi argument.
7258 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
7259 Insert a CALLEE_ABI unspec into the call pattern as the second
7260 element in the PARALLEL.
7261 (aarch64_simd_call_p): Delete.
7262 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
7263 the new CALLEE_ABI element of the PARALLEL.
7264 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
7265 from the function type, if given.
7266 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
7267 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
7268 when passed the function_arg_info end marker.
7269 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
7270 final argument of gen_sibcall.
7271 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
7272 (call): Make operand 2 a const_int_operand and pass it to expand_call.
7273 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
7275 (call_value): Likewise operand 3.
7276 (sibcall): Likewise operand 2. Place the unspec before rather than
7278 (sibcall_value): Likewise operand 3.
7279 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
7280 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
7281 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
7283 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
7285 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7287 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
7288 choose_hard_reg_mode.
7289 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7291 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7293 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
7294 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
7295 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
7297 2019-09-30 David Malcolm <dmalcolm@redhat.com>
7299 * diagnostic-show-locus.c (line_label::line_label): Initialize
7301 (line_label::comparator): Reverse the sort order by m_state_idx,
7302 so that when the list is walked backwards the labels appear in
7303 order of insertion into the rich_location.
7304 (line_label::m_has_vbar): New field.
7305 (layout::print_any_labels): When dealing with multiple labels at
7306 the same line and column, only print vertical bars for the one
7307 with the highest label_line.
7308 (selftest::test_one_liner_labels): Update test for multiple labels
7309 to expect the labels to be in the order of insertion into the
7310 rich_location. Add a test for many such labels, where the column
7311 numbers are out-of-order relative to the insertion order.
7313 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7315 * config/i386/i386.h (ix86_frame::expensive_p): New field.
7316 (ix86_frame::expensive_count): Likewise.
7317 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
7318 of use_fast_prologue_epilogue robust against incidental changes
7321 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
7324 * config/s390/vector.md (vec_unordered<mode>): Call
7325 gen_vec_ordered<mode>.
7327 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
7329 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
7330 New pattern for ASRD.
7331 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
7332 * internal-fn.def (IFN_DIV_POW2): New internal function.
7333 * optabs.def (sdiv_pow2_optab): New optab.
7334 * tree-vect-patterns.c (vect_recog_divmod_pattern):
7335 Modify pattern to support new operation.
7336 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
7337 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
7338 Document new target selector.
7340 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7342 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
7343 to test whether we're compiling a vector PCS function and to test
7344 whether the function needs to save a particular register.
7345 Remove the vector PCS handling of df_set_regs_ever_live.
7346 (aarch64_components_for_bb): Use crtl->abi to test whether
7347 the function needs to save a particular register.
7348 (aarch64_process_components): Use crtl->abi to test whether
7349 we're compiling a vector PCS function.
7350 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
7351 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
7353 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7355 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
7357 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
7358 whether the block calls a function that clobbers more registers
7359 than the current function is allowed to.
7360 (aarch64_use_simple_return_insn_p): Delete.
7361 * config/aarch64/aarch64.md (simple_return): Remove condition.
7363 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7365 * function-abi.h (function_abi_aggregator): New class.
7366 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
7368 * ira.c (update_equiv_regs_prescan): New function. Call
7369 set_paradoxical_subreg here rather than...
7370 (update_equiv_regs): ...here.
7371 (ira): Call update_equiv_regs_prescan.
7373 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7375 * hard-reg-set.h (regs_invalidated_by_call): Only define if
7377 (call_used_or_fixed_regs): Likewise.
7378 (call_used_or_fixed_reg_p): Likewise.
7379 * reginfo.c (regs_invalidated_by_call): New macro.
7381 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7383 * shrink-wrap.c: Include function-abi.h.
7384 (requires_stack_frame_p): Use crtl->abi to test whether the
7385 current function can use a register without saving it first.
7387 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7389 * sel-sched-ir.h (_def::crosses_call): Replace with...
7390 (_def::crossed_call_abis): ..this new field.
7391 (def_list_add): Take a mask of ABIs instead of a crosses_call
7393 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
7394 of _def accordingly.
7395 * sel-sched.c: Include function-abi.h.
7396 (hard_regs_data::regs_for_call_clobbered): Delete.
7397 (reg_rename::crosses_call): Replace with...
7398 (reg_rename::crossed_call_abis): ...this new field.
7399 (fur_static_params::crosses_call): Replace with...
7400 (fur_static_params::crossed_call_abis): ...this new field.
7401 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
7402 (init_hard_regs_data): Use crtl->abi to test which registers the
7403 current function would need to save before it uses them.
7404 (mark_unavailable_hard_regs): Update handling of call-clobbered
7405 registers, using call_clobbers_in_region to find out which registers
7406 might be call-clobbered (but without taking -fipa-ra into account
7407 for now). Remove separate handling of partially call-clobbered
7409 (verify_target_availability): Use crossed_call_abis instead of
7411 (get_spec_check_type_for_insn, find_used_regs): Likewise.
7412 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
7414 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7416 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
7417 function to test whether a register is fully or partly clobbered.
7419 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7421 * rtlanal.c: Include function-abi.h.
7422 (reg_set_p): Use insn_callee_abi to get the ABI of the called
7423 function and clobbers_reg_p to test whether the register
7425 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
7426 to get the ABI of the called function and full_reg_clobbers to
7427 get the set of fully call-clobbered registers. Warn about the
7428 pitfalls of using this mode.
7430 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7432 * reload.c: Include function-abi.h.
7433 (find_equiv_reg): Use clobbers_reg_p to test whether either
7434 of the equivalent registers is clobbered by a call.
7435 * reload1.c: Include function-abi.h.
7436 (reg_reloaded_call_part_clobbered): Delete.
7437 (reload): Use crtl->abi to test which registers would need
7438 saving in the prologue before use.
7439 (find_reg): Likewise.
7440 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
7441 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
7442 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
7444 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7446 * regrename.h (du_head::call_clobber_mask): New field.
7447 (du_head::need_caller_save_reg): Replace with...
7448 (du_head::call_abis): ...this new field.
7449 * regrename.c: Include function-abi.h.
7450 (call_clobbered_in_chain_p): New function.
7451 (check_new_reg_p): Use crtl->abi when deciding whether a register
7452 is free for use after RA. Use call_clobbered_in_chain_p to test
7453 whether a candidate register would be clobbered by a call.
7454 (find_rename_reg): Don't add call-clobber conflicts here.
7455 (rename_chains): Check call_abis instead of need_caller_save_reg.
7456 (merge_chains): Update for changes to du_head.
7457 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
7458 target. Record the ABI identifier in call_abis and the set of
7459 fully or partially clobbered registers in call_clobber_mask.
7460 Add fully-clobbered registers to hard_conflicts here rather
7461 than in find_rename_reg.
7462 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
7463 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
7464 * config/aarch64/falkor-tag-collision-avoidance.c: Include
7466 * config/c6x/c6x.c: Likewise.
7468 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7470 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
7471 mode of the register when deciding whether it is no longer
7472 available after a call.
7474 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7476 * recog.c: Include function-abi.h.
7477 (peep2_find_free_register): Use crtl->abi when deciding whether
7478 a register is free for use after RA.
7480 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7482 * postreload-gcse.c: Include regs.h and function-abi.h.
7483 (record_opr_changes): Use insn_callee_abi to get the ABI of the
7484 call insn target. Conservatively assume that partially-clobbered
7485 registers are altered.
7487 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7489 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
7490 when deciding whether a register is free for use after RA.
7491 (reload_combine): Remove unnecessary use of fixed_reg_set.
7492 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
7493 call insn target. Use reg_mode when testing whether a register
7494 is no longer available.
7496 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7498 * target.def (return_call_with_max_clobbers): Delete.
7499 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
7500 * doc/tm.texi: Regenerate.
7501 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
7502 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
7503 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
7504 (lra_reg::call_insn): Delete.
7505 * lra.c: Include function-abi.h.
7506 (initialize_lra_reg_info_element): Don't initialize the fields above.
7507 (lra): Use crtl->abi to test whether the current function needs to
7508 save a register in the prologue. Remove special pre-inheritance
7509 lra_create_live_ranges pass for flag_ipa_ra.
7510 * lra-assigns.c: Include function-abi.h
7511 (find_hard_regno_for_1): Use crtl->abi to test whether the current
7512 function needs to save a register in the prologue.
7513 (lra_assign): Assert that registers aren't allocated to a
7514 conflicting register, rather than checking only for overlaps
7515 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
7516 and for registers that are not live across a call.
7517 * lra-constraints.c (last_call_for_abi): New variable.
7518 (full_and_partial_call_clobbers): Likewise.
7519 (setup_next_usage_insn): Remove the register from
7520 full_and_partial_call_clobbers.
7521 (need_for_call_save_p): Use call_clobbered_in_region_p to test
7522 whether the register needs a caller save.
7523 (need_for_split_p): Use full_and_partial_reg_clobbers instead
7524 of call_used_or_fixed_regs.
7525 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
7526 full_and_partial_call_clobbers.
7527 * lra-lives.c (check_pseudos_live_through_calls): Replace
7528 last_call_used_reg_set and call_insn arguments with an abi argument.
7529 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
7530 as the set of conflicting registers.
7531 (calls_have_same_clobbers_p): Delete.
7532 (process_bb_lives): Track the ABI of the last call instead of an
7533 insn/HARD_REG_SET pair. Update calls to
7534 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
7535 the set of registers that could be clobbered by an EH edge.
7536 Include partially-clobbered as well as fully-clobbered registers.
7537 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
7538 * lra-remat.c: Include function-abi.h.
7539 (call_used_regs_arr_len, call_used_regs_arr): Delete.
7540 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
7541 registers and bitmap_view to combine them into dead_regs.
7542 (call_used_input_regno_present_p): Take a function_abi argument
7543 and use it to test whether a register is call-clobbered.
7544 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
7545 call insn target. Update tje call to call_used_input_regno_present_p.
7546 (do_remat): Likewise.
7547 (lra_remat): Remove the initialization of call_used_regs_arr_len
7548 and call_used_regs_arr.
7550 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7552 * loop-iv.c: Include regs.h and function-abi.h.
7553 (simplify_using_initial_values): Use insn_callee_abi to get the
7554 ABI of the call insn target. Conservatively assume that
7555 partially-clobbered registers are altered.
7557 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7559 * function-abi.h (call_clobbers_in_region): Declare.
7560 (call_clobbered_in_region_p): New function.
7561 * function-abi.cc (call_clobbers_in_region): Likewise.
7562 * ira-int.h: Include function-abi.h.
7563 (ira_allocno::crossed_calls_abis): New field.
7564 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
7565 (ira_need_caller_save_regs): New function.
7566 (ira_need_caller_save_p): Likewise.
7567 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
7568 of call_used_or_fixed_regs.
7569 (do_reload): Use crtl->abi to test whether the current function
7570 needs to save a register in the prologue. Count registers that
7571 need to be saved rather than registers that don't.
7572 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
7573 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7574 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
7575 (propagate_some_info_from_allocno): Likewise.
7576 (copy_info_to_removed_store_destinations): Likewise.
7577 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
7578 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
7579 (ira_build): Use ira_need_caller_save_regs instead of
7580 call_used_or_fixed_regs.
7581 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
7582 whether the current function would need to save a register
7584 (calculate_spill_cost): Likewise.
7585 (allocno_reload_assign): Use ira_need_caller_save_regs and
7586 ira_need_caller_save_p instead of call_used_or_fixed_regs.
7587 * ira-conflicts.c (ira_build_conflicts): Use
7588 ira_need_caller_save_regs rather than call_used_or_fixed_regs
7589 as the set of call-clobbered registers. Remove the
7590 call_used_or_fixed_regs mask from the calculation of
7591 temp_hard_reg_set and mask its use instead. Remove special
7592 handling of partially-clobbered registers.
7593 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
7594 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
7595 calculate the set of conflicting registers for calls that
7596 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
7597 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
7598 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7599 Use eh_edge_abi to calculate the set of registers that could
7600 be clobbered by an EH edge. Include partially-clobbered as
7601 well as fully-clobbered registers.
7603 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7605 * haifa-sched.c: Include function-abi.h.
7606 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
7607 the function would need to save a register before using it.
7609 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7611 * gcse.c: Include function-abi.h.
7612 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
7613 the call insn target. Invalidate partially call-clobbered
7614 registers as well as fully call-clobbered ones.
7616 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7618 * function.c (aggregate_value_p): Work out which ABI the
7619 function is using before testing which registers are at least
7620 partly preserved by a call.
7622 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7624 * early-remat.c: Include regs.h and function-abi.h.
7625 (early_remat::maybe_add_candidate): Don't check for call-clobbered
7627 (early_remat::restrict_remat_for_unavail_regs): New function.
7628 (early_remat::restrict_remat_for_call): Likewise.
7629 (early_remat::process_block): Before calling emit_remat_insns
7630 for a previous call in the block, invalidate any candidates
7631 that would clobber call-preserved registers.
7632 (early_remat::emit_remat_insns_for_block): Likewise for the
7633 final call in a block. Do the same thing for live-in registers
7634 when calling emit_remat_insns at the head of a block.
7636 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7638 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
7639 whether the current function needs to save at least part of a
7640 register before using it.
7641 (df_get_exit_block_use_set): Likewise for epilogue restores.
7643 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7645 * df-problems.c: Include regs.h and function-abi.h.
7646 (df_rd_problem_data): Rename sparse_invalidated_by_call to
7647 sparse_invalidated_by_eh and dense_invalidated_by_call to
7648 dense_invalidated_by_eh.
7649 (df_print_bb_index): Update accordingly.
7650 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
7651 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
7652 that are clobbered by an EH edge. Clobber partially-clobbered
7653 registers as well as fully-clobbered ones.
7654 (df_md_confluence_n): Likewise.
7655 (df_rd_local_compute): Likewise. Update for changes to
7657 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
7658 of registers that are clobbered by an EH edge. Includde partially-
7659 clobbered registers as well as fully-clobbered ones.
7661 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7663 * cselib.c (cselib_process_insn): If we know what mode a
7664 register was set in, check whether it is clobbered in that
7665 mode by a call. Only fall back to reg_raw_mode if that fails.
7667 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7669 * cse.c: Include regs.h and function-abi.h.
7670 (invalidate_for_call): Take the call insn as an argument.
7671 Use insn_callee_abi to get the ABI of the call and invalidate
7672 partially clobbered registers as well as fully clobbered ones.
7673 (cse_insn): Update call accordingly.
7675 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7677 * combine.c: Include function-abi.h.
7678 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
7679 of the target of call insns. Invalidate partially-clobbered
7680 registers as well as fully-clobbered ones.
7682 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7684 * cfgloopanal.c: Include regs.h and function-abi.h.
7685 (init_set_costs): Use default_function_abi to test whether
7686 a general register is call-clobbered.
7688 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7690 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
7691 instead of the call-clobbered sets.
7693 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7695 * caller-save.c (setup_save_areas): Remove redundant |s of
7697 (save_call_clobbered_regs): Likewise. Use the call ABI rather
7698 than call_used_or_fixed_regs to decide whether a REG_RETURNED
7701 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7703 * rtl.h (predefined_function_abi): Declare.
7704 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
7705 instead of a boolean call_save flag.
7706 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
7708 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7709 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7710 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
7711 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7712 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7713 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
7714 * reginfo.c (init_reg_modes_target): Likewise.
7715 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
7716 instead of a boolean call_save flag.
7717 * targhooks.c: Include function-abi.h.
7718 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
7719 using eh_edge_abi to choose the mode.
7721 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7723 * target.def (hard_regno_call_part_clobbered): Take an ABI
7724 identifier instead of an rtx_insn.
7725 * doc/tm.texi: Regenerate.
7726 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
7727 (hook_bool_uint_uint_mode_false): New function.
7728 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
7729 (hook_bool_uint_uint_mode_false): New function.
7730 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7731 Take an ABI identifier instead of an rtx_insn.
7732 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
7733 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
7734 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
7735 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
7736 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
7738 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
7739 * cselib.c: Include function-abi.h.
7740 (cselib_process_insn): Update call to
7741 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
7742 to get the appropriate ABI identifier.
7743 * function-abi.cc (predefined_function_abi::initialize): Update call
7744 to targetm.hard_regno_call_part_clobbered.
7745 * ira-conflicts.c (ira_build_conflicts): Likewise.
7746 * ira-costs.c (ira_tune_allocno_costs): Likewise.
7747 * lra-constraints.c: Include function-abi.h.
7748 (need_for_call_save_p): Update call to
7749 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
7750 to get the appropriate ABI identifier.
7751 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
7752 * regcprop.c (copyprop_hardreg_forward_1): Update call
7753 to targetm.hard_regno_call_part_clobbered.
7754 * reginfo.c (choose_hard_reg_mode): Likewise.
7755 * regrename.c (check_new_reg_p): Likewise.
7756 * reload.c (find_equiv_reg): Likewise.
7757 * reload1.c (emit_reload_insns): Likewise.
7758 * sched-deps.c: Include function-abi.h.
7759 (deps_analyze_insn): Update call to
7760 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
7761 to get the appropriate ABI identifier.
7762 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
7763 call to targetm.hard_regno_call_part_clobbered.
7764 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
7766 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7768 * config/i386/i386.c: Include function-abi.h.
7769 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
7770 if they preserve some 256-bit or 512-bit SSE registers.
7772 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7774 * target.def (insn_callee_abi): New hook.
7775 (remove_extra_call_preserved_regs): Delete.
7776 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
7777 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
7778 * doc/tm.texi: Regenerate.
7779 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
7780 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
7781 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
7783 (aarch64_remove_extra_call_preserved_regs): Delete.
7784 (aarch64_insn_callee_abi): New function.
7785 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
7786 (TARGET_INSN_CALLEE_ABI): New macro.
7787 * rtl.h (get_call_fndecl): Declare.
7788 (cgraph_rtl_info): Fix formatting. Tweak comment for
7789 function_used_regs. Remove function_used_regs_valid.
7790 * rtlanal.c (get_call_fndecl): Moved from final.c
7791 * function-abi.h (insn_callee_abi): Declare.
7792 (target_function_abi_info): Mention insn_callee_abi.
7793 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
7794 way to get_call_reg_set_usage did.
7795 (insn_callee_abi): New function.
7796 * regs.h (get_call_reg_set_usage): Delete.
7797 * final.c: Include function-abi.h.
7798 (collect_fn_hard_reg_usage): Add fixed and stack registers to
7799 function_used_regs before the main loop rather than afterwards.
7800 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
7801 if function_used_regs ends up not being useful.
7802 (get_call_fndecl): Move to rtlanal.c
7803 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
7804 * caller-save.c: Include function-abi.h.
7805 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
7806 instead of get_call_reg_set_usage.
7807 * cfgcleanup.c: Include function-abi.h.
7808 (old_insns_match_p): Use insn_callee_abi instead of
7809 get_call_reg_set_usage.
7810 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
7812 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
7814 * df-scan.c: Include function-abi.h.
7815 (df_get_call_refs): Use insn_callee_abi instead of
7816 get_call_reg_set_usage.
7817 * ira-lives.c: Include function-abi.h.
7818 (process_bb_node_lives): Use insn_callee_abi instead of
7819 get_call_reg_set_usage.
7820 * lra-lives.c: Include function-abi.h.
7821 (process_bb_lives): Use insn_callee_abi instead of
7822 get_call_reg_set_usage.
7823 * postreload.c: Include function-abi.h.
7824 (reload_combine): Use insn_callee_abi instead of
7825 get_call_reg_set_usage.
7826 * regcprop.c: Include function-abi.h.
7827 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
7828 get_call_reg_set_usage.
7829 * resource.c: Include function-abi.h.
7830 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
7831 instead of get_call_reg_set_usage.
7832 * var-tracking.c: Include function-abi.h.
7833 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
7834 get_call_reg_set_usage.
7836 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7838 * target.def (fntype_abi): New target hook.
7839 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
7840 * doc/tm.texi: Regenerate.
7841 * target.h (predefined_function_abi): Declare.
7842 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
7844 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
7845 * config/aarch64/aarch64.c: Include function-abi.h.
7846 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
7847 (TARGET_FNTYPE_ABI): Define.
7849 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7851 * Makefile.in (OBJS): Add function-abi.o.
7852 (GTFILES): Add function-abi.h.
7853 * function-abi.cc: New file.
7854 * function-abi.h: Likewise.
7855 * emit-rtl.h (rtl_data::abi): New field.
7856 * function.c: Include function-abi.h.
7857 (prepare_function_start): Initialize crtl->abi.
7858 * read-rtl-function.c: Include regs.h and function-abi.h.
7859 (read_rtl_function_body): Initialize crtl->abi.
7860 (read_rtl_function_body_from_file_range): Likewise.
7861 * reginfo.c: Include function-abi.h.
7862 (init_reg_sets_1): Initialize default_function_abi.
7863 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
7864 when making a register global.
7865 * target-globals.h (this_target_function_abi_info): Declare.
7866 (target_globals::function_abi_info): New field.
7867 (restore_target_globals): Copy it.
7868 * target-globals.c: Include function-abi.h.
7869 (default_target_globals): Initialize the function_abi_info field.
7870 (target_globals): Allocate it.
7871 (save_target_globals): Free it.
7873 2019-09-30 Nick Clifton <nickc@redhat.com>
7876 * config/frv/frv.c (frv_register_move_cost): Add break statements
7877 to avoid falling through to the wrong cases. Tidy code.
7879 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7881 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7882 For multi-registers modes, test how big each register part is.
7884 2019-09-30 Nick Clifton <nickc@redhat.com>
7887 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
7888 (TARGET_ASM_SELECT_SECTION): Remove definition.
7889 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
7891 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
7893 * emit-rtl.c (init_raw_REG): New function.
7894 (gen_raw_REG): Use init_raw_REG.
7895 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
7897 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
7898 * rtl.h (rtx_init): New function.
7899 (rtx_alloca): New function.
7900 (init_raw_REG): New function.
7901 (alloca_raw_REG): New macro.
7903 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
7905 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
7906 (pcrel_local_address): Replace pcrel_address predicate, use the
7907 new function address_to_insn_form.
7908 (pcrel_external_address): Replace with new implementation using
7909 address_to_insn_form..
7910 (prefixed_mem_operand): Delete predicate which is now unused.
7911 (pcrel_external_mem_operand): Delete predicate which is now
7913 * config/rs6000/rs6000-protos.h (enum insn_form): New
7915 (enum non_prefixed_form): New enumeration.
7916 (address_to_insn_form): New declaration.
7917 (prefixed_load_p): New declaration.
7918 (prefixed_store_p): New declaration.
7919 (prefixed_paddi_p): New declaration.
7920 (rs6000_asm_output_opcode): New declaration.
7921 (rs6000_final_prescan_insn): Move declaration and update calling
7923 (address_is_prefixed): New helper inline function.
7924 * config/rs6000/rs6000.c(print_operand_address): Check for either
7925 PC-relative local symbols or PC-relative external symbols.
7926 (rs6000_emit_move): Support loading PC-relative addresses.
7927 (mode_supports_prefixed_address_p): Delete, no longer used.
7928 (rs6000_prefixed_address_mode_p): Delete, no longer used.
7929 (address_to_insn_form): New function to decode an address format.
7930 (reg_to_non_prefixed): New function to identify what the
7931 non-prefixed memory instruction format is for a register.
7932 (prefixed_load_p): New function to identify prefixed loads.
7933 (prefixed_store_p): New function to identify prefixed stores.
7934 (prefixed_paddi_p): New function to identify prefixed load
7936 (next_insn_prefixed_p): New static state variable.
7937 (rs6000_final_prescan_insn): New function to determine if an insn
7938 uses a prefixed instruction.
7939 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
7940 prefixed instruction.
7941 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
7942 (ASM_OUTPUT_OPCODE): New target hook.
7943 * config/rs6000/rs6000.md (prefixed): New insn attribute for
7944 prefixed instructions.
7945 (prefixed_length): New insn attribute for the size of prefixed
7947 (non_prefixed_length): New insn attribute for the size of
7948 non-prefixed instructions.
7949 (pcrel_local_addr): New insn to load up a local PC-relative
7951 (pcrel_extern_addr): New insn to load up an external PC-relative
7953 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
7954 GPR and loading a 128-bit floating point type to a GPR.
7956 2019-09-30 Richard Biener <rguenther@suse.de>
7958 * gimple.c (gimple_get_lhs): For PHIs return the result.
7959 * tree-vectorizer.h (vectorizable_live_operation): Also get the
7960 SLP instance as argument.
7961 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
7962 double-reduction PHIs with vectorizable_lc_phi.
7963 (vect_analyze_loop_operations): Adjust.
7964 (vect_create_epilog_for_reduction): Remove all code not dealing
7965 with reduction LC PHI or epilogue generation.
7966 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
7967 for live stmts of reductions.
7968 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
7969 do not handle defs that are not vect_internal_def.
7970 (can_vectorize_live_stmts): Adjust.
7971 (vect_analyze_stmt): When the vectorized stmt defined a value
7972 used on backedges adjust the backedge uses of vectorized PHIs.
7974 2019-09-30 Martin Jambor <mjambor@suse.cz>
7977 * tree-inline.c (force_value_to_type): New function.
7978 (setup_one_parameter): Use force_value_to_type to convert type.
7979 * tree-inline.c (force_value_to_type): Declare.
7980 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
7981 with register type mismatches.
7983 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
7985 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
7987 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
7988 * config/rs6000/t-freebsd64: Make use of the above define and build
7989 the 32-bit libraries with secure-plt.
7991 2019-09-30 Jakub Jelinek <jakub@redhat.com>
7994 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
7995 gen_int_mode instead of GEN_INT.
7997 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
7999 * config/darwin.c (gen_macho_low): Amend to include the mode
8001 (machopic_indirect_data_reference): Amend gen_macho_low call
8002 to include mode argument
8003 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
8004 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
8005 the macho_high expander and two define_insn entries.
8007 2019-09-29 Jakub Jelinek <jakub@redhat.com>
8010 * optc-save-gen.awk: Fix up printing string option differences.
8012 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
8014 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8015 vec_perm cost to 1 for non-Power7 VSX architectures.
8017 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
8019 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
8020 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
8021 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
8023 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
8025 * config/darwin.c (gen_macho_high): Amend to include the mode
8027 (machopic_indirect_data_reference): Amend gen_macho_high call
8028 to include mode argument.
8029 (machopic_legitimize_pic_address): Likewise.
8030 * config/rs6000/rs6000.c (rs6000_legitimize_address):
8031 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
8032 the macho_high expander and two define_insn entries.
8034 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
8037 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
8039 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
8042 * config/sh/sh.c (parse_validate_atomic_model_option): Use
8043 std::string::compare instead of std::string::find.
8045 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
8047 * configure: Regenerate.
8049 2019-09-27 Jakub Jelinek <jakub@redhat.com>
8052 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
8053 variables as shared.
8055 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
8057 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
8058 replaces the expander and two define_insn entries.
8059 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
8061 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
8063 2019-09-27 David Malcolm <dmalcolm@redhat.com>
8065 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
8066 (fibonacci_heap::nodes): Likewise.
8067 (fibonacci_heap::min_key): Likewise.
8068 (fibonacci_heap::min): Likewise.
8070 2019-09-27 David Malcolm <dmalcolm@redhat.com>
8072 * cgraph.c (cgraph_node::get_fun): Make const.
8073 * cgraph.h (cgraph_node::get_fun): Likewise.
8075 2019-09-27 Jakub Jelinek <jakub@redhat.com>
8078 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
8081 2019-09-27 Richard Biener <rguenther@suse.de>
8083 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
8084 (STMT_VINFO_REDUC_FN): Likewise.
8085 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
8086 STMT_VINFO_REDUC_FN.
8087 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
8088 for condition reductions.
8089 (vect_create_epilog_for_reduction): Compute all required state
8090 from the stmt to be vectorized.
8091 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
8092 invocation and remove then dead code. For single def-use chains
8093 record only a single vector stmt.
8095 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8097 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
8098 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
8099 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
8100 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
8101 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
8102 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
8103 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
8104 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
8105 (aarch64_general_builtin_rsqrt): Declare.
8106 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
8108 (aarch64_mangle_builtin_type): Rename to...
8109 (aarch64_general_mangle_builtin_type): ...this.
8110 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
8111 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
8112 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
8113 aarch64_general_add_builtin instead of add_builtin_function.
8114 (aarch64_init_builtins): Rename to...
8115 (aarch64_general_init_builtins): ...this. Use
8116 aarch64_general_add_builtin instead of add_builtin_function.
8117 (aarch64_builtin_decl): Rename to...
8118 (aarch64_general_builtin_decl): ...this and remove the unused
8120 (aarch64_expand_builtin): Rename to...
8121 (aarch64_general_expand_builtin): ...this and remove the unused
8123 (aarch64_builtin_rsqrt): Rename to...
8124 (aarch64_general_builtin_rsqrt): ...this.
8125 (aarch64_fold_builtin): Rename to...
8126 (aarch64_general_fold_builtin): ...this. Take the function subcode
8127 and return type as arguments. Remove the "ignored" argument.
8128 (aarch64_gimple_fold_builtin): Rename to...
8129 (aarch64_general_gimple_fold_builtin): ...this. Take the function
8130 subcode and gcall as arguments, and return the new function call.
8131 * config/aarch64/aarch64.c (aarch64_init_builtins)
8132 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
8133 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
8134 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
8135 instead of aarch64_builtin_rsqrt.
8136 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
8137 instead of aarch64_mangle_builtin_type.
8139 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8141 * target.def (check_builtin_call): New target hook.
8142 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
8143 * doc/tm.texi: Regenerate.
8145 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8147 PR tree-optimization/91909
8148 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
8149 reduc_index parameter. When handling COND_REDUCTION, make sure
8150 that the reduction phi operand is in the correct arm of the
8152 (vectorizable_reduction): Pass reduc_index to the above.
8154 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
8156 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
8157 New combine pattern.
8159 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
8161 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
8162 loop instruction into new basic block before the loop when basic
8163 block that precedes the loop is empty.
8165 2019-09-26 Jakub Jelinek <jakub@redhat.com>
8167 * function.c (gimplify_parameters): Use build_clobber function.
8168 * tree-ssa.c (execute_update_addresses_taken): Likewise.
8169 * tree-inline.c (expand_call_inline): Likewise.
8170 * tree-sra.c (clobber_subtree): Likewise.
8171 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
8172 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
8173 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
8174 lower_omp_target): Likewise.
8175 * omp-expand.c (expand_omp_for_generic): Likewise.
8176 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
8178 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
8180 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
8181 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
8182 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
8183 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
8184 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
8185 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
8186 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
8187 LD_ELEMREV_V16QI): Use the PURE attribute.
8189 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
8191 * config/rs6000/darwin.md: Replace the expanders for
8192 load_macho_picbase and reload_macho_picbase with use of '@'
8193 and <mode> in their respective define_insns.
8194 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
8195 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
8196 Pmode to gen_load_macho_picbase.
8197 * config/rs6000/rs6000.md: Likewise.
8199 2019-09-25 Richard Biener <rguenther@suse.de>
8201 PR tree-optimization/91896
8202 * tree-vect-loop.c (vectorizable_reduction): The single
8203 def-use cycle optimization cannot apply when there's more
8204 than one pattern stmt involved.
8206 2019-09-26 Richard Biener <rguenther@suse.de>
8208 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
8209 loop-closed PHIs that are vect_internal_def.
8210 (vect_create_epilog_for_reduction): Exit early for nested cycles.
8212 (vectorizable_lc_phi): New.
8213 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
8214 (vect_transform_stmt): Likewise.
8215 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
8216 (vectorizable_lc_phi): Declare.
8218 2019-09-26 Richard Biener <rguenther@suse.de>
8220 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
8221 vectorizable_reduction for vect_double_reduction_def.
8222 (vect_transform_loop): Likewise.
8223 (vect_create_epilog_for_reduction): Move double-reduction
8224 PHI creation and preheader argument setting of PHIs ...
8225 (vectorizable_reduction): ... here. Also process
8226 vect_double_reduction_def PHIs, creating the vectorized
8227 PHI nodes, remembering the scalar adjustment computed for
8228 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
8229 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
8230 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
8231 Initialize STMT_VINFO_REDUC_CODE.
8232 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
8233 (_stmt_vec_info::reduc_code): Likewise.
8234 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
8235 (STMT_VINFO_REDUC_CODE): Likewise.
8237 2019-09-26 Matt Turner <mattst88@gmail.com>
8240 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
8241 (mtune=): Add Negative(mtune=).
8242 (mcpu=): Add Negative(mcpu=).
8243 * config/arm/arm.opt: Likewise.
8245 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8247 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
8248 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
8250 * config/arm/arm_acle.h: Define builtins for the above.
8251 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
8252 (simd32_op): Handle the above.
8253 * config/arm/unspecs.md: Define unspecs for the above.
8255 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8257 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
8258 (arm_<sup>xtb16): Likewise.
8259 (arm_usada8): Likewise.
8260 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
8261 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
8262 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
8263 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
8264 __sxtb16, __uxtab16, __uxtb16): Define.
8265 * config/arm/arm_acle_builtins.def: Define builtins for the above.
8266 * config/arm/unspecs.md: Define unspecs for the above.
8267 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
8268 (USXTB16): Likewise.
8269 (simd32_op): New int_attribute.
8270 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
8271 * doc/sourcebuild.exp (arm_simd32_ok): Document.
8273 2019-09-26 Martin Jambor <mjambor@suse.cz>
8275 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
8278 2019-09-26 Martin Jambor <mjambor@suse.cz>
8280 * ipa-sra.c (process_scan_results): Fix continue condition.
8282 2019-09-26 Martin Liska <mliska@suse.cz>
8284 PR tree-optimization/91885
8285 * tree-vectorizer.c (try_vectorize_loop_1): Add
8286 TODO_update_ssa_only_virtuals similarly to what slp pass does.
8288 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
8290 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
8291 aarch64_plus_immediate rather than aarch64_uimm12_shift
8292 to test for valid PLUS immediates.
8294 2019-09-25 Martin Jambor <mjambor@suse.cz>
8296 * tree-sra.c (no_accesses_p): Remove.
8297 (no_accesses_representant): Likewise.
8299 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8301 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
8303 (vaba_s16): Likewise.
8304 (vaba_s32): Likewise.
8305 (vaba_u8): Likewise.
8306 (vaba_u16): Likewise.
8307 (vaba_u32): Likewise.
8308 (vabal_high_s8): Likewise.
8309 (vabal_high_s16): Likewise.
8310 (vabal_high_s32): Likewise.
8311 (vabal_high_u8): Likewise.
8312 (vabal_high_u16): Likewise.
8313 (vabal_high_u32): Likewise.
8314 (vabal_s8): Likewise.
8315 (vabal_s16): Likewise.
8316 (vabal_s32): Likewise.
8317 (vabal_u8): Likewise.
8318 (vabal_u16): Likewise.
8319 (vabal_u32): Likewise.
8320 (vabaq_s8): Likewise.
8321 (vabaq_s16): Likewise.
8322 (vabaq_s32): Likewise.
8323 (vabaq_u8): Likewise.
8324 (vabaq_u16): Likewise.
8325 (vabaq_u32): Likewise.
8326 (vabd_s8): Likewise.
8327 (vabd_s16): Likewise.
8328 (vabd_s32): Likewise.
8329 (vabd_u8): Likewise.
8330 (vabd_u16): Likewise.
8331 (vabd_u32): Likewise.
8332 (vabdl_high_s8): Likewise.
8333 (vabdl_high_s16): Likewise.
8334 (vabdl_high_s32): Likewise.
8335 (vabdl_high_u8): Likewise.
8336 (vabdl_high_u16): Likewise.
8337 (vabdl_high_u32): Likewise.
8338 (vabdl_s8): Likewise.
8339 (vabdl_s16): Likewise.
8340 (vabdl_s32): Likewise.
8341 (vabdl_u8): Likewise.
8342 (vabdl_u16): Likewise.
8343 (vabdl_u32): Likewise.
8344 (vabdq_s8): Likewise.
8345 (vabdq_s16): Likewise.
8346 (vabdq_s32): Likewise.
8347 (vabdq_u8): Likewise.
8348 (vabdq_u16): Likewise.
8349 (vabdq_u32): Likewise.
8350 (vaddlv_s8): Likewise.
8351 (vaddlv_s16): Likewise.
8352 (vaddlv_u8): Likewise.
8353 (vaddlv_u16): Likewise.
8354 (vaddlvq_s8): Likewise.
8355 (vaddlvq_s16): Likewise.
8356 (vaddlvq_s32): Likewise.
8357 (vaddlvq_u8): Likewise.
8358 (vaddlvq_u16): Likewise.
8359 (vaddlvq_u32): Likewise.
8360 (vcvtx_f32_f64): Likewise.
8361 (vcvtx_high_f32_f64): Likewise.
8362 (vcvtxd_f32_f64): Likewise.
8363 (vmla_n_f32): Likewise.
8364 (vmla_n_s16): Likewise.
8365 (vmla_n_s32): Likewise.
8366 (vmla_n_u16): Likewise.
8367 (vmla_n_u32): Likewise.
8368 (vmla_s8): Likewise.
8369 (vmla_s16): Likewise.
8370 (vmla_s32): Likewise.
8371 (vmla_u8): Likewise.
8372 (vmla_u16): Likewise.
8373 (vmla_u32): Likewise.
8374 (vmlal_high_n_s16): Likewise.
8375 (vmlal_high_n_s32): Likewise.
8376 (vmlal_high_n_u16): Likewise.
8377 (vmlal_high_n_u32): Likewise.
8378 (vmlal_high_s8): Likewise.
8379 (vmlal_high_s16): Likewise.
8380 (vmlal_high_s32): Likewise.
8381 (vmlal_high_u8): Likewise.
8382 (vmlal_high_u16): Likewise.
8383 (vmlal_high_u32): Likewise.
8384 (vmlal_n_s16): Likewise.
8385 (vmlal_n_s32): Likewise.
8386 (vmlal_n_u16): Likewise.
8387 (vmlal_n_u32): Likewise.
8388 (vmlal_s8): Likewise.
8389 (vmlal_s16): Likewise.
8390 (vmlal_s32): Likewise.
8391 (vmlal_u8): Likewise.
8392 (vmlal_u16): Likewise.
8393 (vmlal_u32): Likewise.
8394 (vmlaq_n_f32): Likewise.
8395 (vmlaq_n_s16): Likewise.
8396 (vmlaq_n_s32): Likewise.
8397 (vmlaq_n_u16): Likewise.
8398 (vmlaq_n_u32): Likewise.
8399 (vmlaq_s8): Likewise.
8400 (vmlaq_s16): Likewise.
8401 (vmlaq_s32): Likewise.
8402 (vmlaq_u8): Likewise.
8403 (vmlaq_u16): Likewise.
8404 (vmlaq_u32): Likewise.
8405 (vmls_n_f32): Likewise.
8406 (vmls_n_s16): Likewise.
8407 (vmls_n_s32): Likewise.
8408 (vmls_n_u16): Likewise.
8409 (vmls_n_u32): Likewise.
8410 (vmls_s8): Likewise.
8411 (vmls_s16): Likewise.
8412 (vmls_s32): Likewise.
8413 (vmls_u8): Likewise.
8414 (vmls_u16): Likewise.
8415 (vmls_u32): Likewise.
8416 (vmlsl_high_n_s16): Likewise.
8417 (vmlsl_high_n_s32): Likewise.
8418 (vmlsl_high_n_u16): Likewise.
8419 (vmlsl_high_n_u32): Likewise.
8420 (vmlsl_high_s8): Likewise.
8421 (vmlsl_high_s16): Likewise.
8422 (vmlsl_high_s32): Likewise.
8423 (vmlsl_high_u8): Likewise.
8424 (vmlsl_high_u16): Likewise.
8425 (vmlsl_high_u32): Likewise.
8426 (vmlsl_n_s16): Likewise.
8427 (vmlsl_n_s32): Likewise.
8428 (vmlsl_n_u16): Likewise.
8429 (vmlsl_n_u32): Likewise.
8430 (vmlsl_s8): Likewise.
8431 (vmlsl_s16): Likewise.
8432 (vmlsl_s32): Likewise.
8433 (vmlsl_u8): Likewise.
8434 (vmlsl_u16): Likewise.
8435 (vmlsl_u32): Likewise.
8436 (vmlsq_n_f32): Likewise.
8437 (vmlsq_n_s16): Likewise.
8438 (vmlsq_n_s32): Likewise.
8439 (vmlsq_n_u16): Likewise.
8440 (vmlsq_n_u32): Likewise.
8441 (vmlsq_s8): Likewise.
8442 (vmlsq_s16): Likewise.
8443 (vmlsq_s32): Likewise.
8444 (vmlsq_u8): Likewise.
8445 (vmlsq_u16): Likewise.
8446 (vmlsq_u32): Likewise.
8447 (vmovl_high_s8): Likewise.
8448 (vmovl_high_s16): Likewise.
8449 (vmovl_high_s32): Likewise.
8450 (vmovl_high_u8): Likewise.
8451 (vmovl_high_u16): Likewise.
8452 (vmovl_high_u32): Likewise.
8453 (vmovl_s8): Likewise.
8454 (vmovl_s16): Likewise.
8455 (vmovl_s32): Likewise.
8456 (vmovl_u8): Likewise.
8457 (vmovl_u16): Likewise.
8458 (vmovl_u32): Likewise.
8459 (vmovn_high_s16): Likewise.
8460 (vmovn_high_s32): Likewise.
8461 (vmovn_high_s64): Likewise.
8462 (vmovn_high_u16): Likewise.
8463 (vmovn_high_u32): Likewise.
8464 (vmovn_high_u64): Likewise.
8465 (vmovn_s16): Likewise.
8466 (vmovn_s32): Likewise.
8467 (vmovn_s64): Likewise.
8468 (vmovn_u16): Likewise.
8469 (vmovn_u32): Likewise.
8470 (vmovn_u64): Likewise.
8471 (vmull_high_n_s16): Likewise.
8472 (vmull_high_n_s32): Likewise.
8473 (vmull_high_n_u16): Likewise.
8474 (vmull_high_n_u32): Likewise.
8475 (vmull_high_p8): Likewise.
8476 (vmull_high_s8): Likewise.
8477 (vmull_high_s16): Likewise.
8478 (vmull_high_s32): Likewise.
8479 (vmull_high_u8): Likewise.
8480 (vmull_high_u16): Likewise.
8481 (vmull_high_u32): Likewise.
8482 (vmull_n_s16): Likewise.
8483 (vmull_n_s32): Likewise.
8484 (vmull_n_u16): Likewise.
8485 (vmull_n_u32): Likewise.
8486 (vmull_p8): Likewise.
8487 (vmull_s8): Likewise.
8488 (vmull_s16): Likewise.
8489 (vmull_s32): Likewise.
8490 (vmull_u8): Likewise.
8491 (vmull_u16): Likewise.
8492 (vmull_u32): Likewise.
8493 (vpadal_s8): Likewise.
8494 (vpadal_s16): Likewise.
8495 (vpadal_s32): Likewise.
8496 (vpadal_u8): Likewise.
8497 (vpadal_u16): Likewise.
8498 (vpadal_u32): Likewise.
8499 (vpadalq_s8): Likewise.
8500 (vpadalq_s16): Likewise.
8501 (vpadalq_s32): Likewise.
8502 (vpadalq_u8): Likewise.
8503 (vpadalq_u16): Likewise.
8504 (vpadalq_u32): Likewise.
8505 (vpaddl_s8): Likewise.
8506 (vpaddl_s16): Likewise.
8507 (vpaddl_s32): Likewise.
8508 (vpaddl_u8): Likewise.
8509 (vpaddl_u16): Likewise.
8510 (vpaddl_u32): Likewise.
8511 (vpaddlq_s8): Likewise.
8512 (vpaddlq_s16): Likewise.
8513 (vpaddlq_s32): Likewise.
8514 (vpaddlq_u8): Likewise.
8515 (vpaddlq_u16): Likewise.
8516 (vpaddlq_u32): Likewise.
8517 (vpaddq_s8): Likewise.
8518 (vpaddq_s16): Likewise.
8519 (vpaddq_s32): Likewise.
8520 (vpaddq_s64): Likewise.
8521 (vpaddq_u8): Likewise.
8522 (vpaddq_u16): Likewise.
8523 (vpaddq_u32): Likewise.
8524 (vpaddq_u64): Likewise.
8525 (vqdmulh_n_s16): Likewise.
8526 (vqdmulh_n_s32): Likewise.
8527 (vqdmulhq_n_s16): Likewise.
8528 (vqdmulhq_n_s32): Likewise.
8529 (vqmovn_high_s16): Likewise.
8530 (vqmovn_high_s32): Likewise.
8531 (vqmovn_high_s64): Likewise.
8532 (vqmovn_high_u16): Likewise.
8533 (vqmovn_high_u32): Likewise.
8534 (vqmovn_high_u64): Likewise.
8535 (vqmovun_high_s16): Likewise.
8536 (vqmovun_high_s32): Likewise.
8537 (vqmovun_high_s64): Likewise.
8538 (vqrdmulh_n_s16): Likewise.
8539 (vqrdmulh_n_s32): Likewise.
8540 (vqrdmulhq_n_s16): Likewise.
8541 (vqrdmulhq_n_s32): Likewise.
8542 (vrsqrte_u32): Likewise.
8543 (vrsqrteq_u32): Likewise.
8544 (vtst_p8): Likewise.
8545 (vtst_p16): Likewise.
8546 (vtst_p64): Likewise.
8547 (vtstq_p8): Likewise.
8548 (vtstq_p16): Likewise.
8549 (vtstq_p64): Likewise.
8550 (vaddlv_s32): Likewise.
8551 (vaddlv_u32): Likewise.
8552 (vqtbl1_p8): Likewise.
8553 (vqtbl1_s8): Likewise.
8554 (vqtbl1_u8): Likewise.
8555 (vqtbl1q_p8): Likewise.
8556 (vqtbl1q_s8): Likewise.
8557 (vqtbl1q_u8): Likewise.
8558 (vqtbx1_s8): Likewise.
8559 (vqtbx1_u8): Likewise.
8560 (vqtbx1_p8): Likewise.
8561 (vqtbx1q_s8): Likewise.
8562 (vqtbx1q_u8): Likewise.
8563 (vqtbx1q_p8): Likewise.
8564 (vtbl1_s8): Likewise.
8565 (vtbl1_u8): Likewise.
8566 (vtbl1_p8): Likewise.
8567 (vtbl2_s8): Likewise.
8568 (vtbl2_u8): Likewise.
8569 (vtbl2_p8): Likewise.
8570 (vtbl3_s8): Likewise.
8571 (vtbl3_u8): Likewise.
8572 (vtbl3_p8): Likewise.
8573 (vtbl4_s8): Likewise.
8574 (vtbl4_u8): Likewise.
8575 (vtbl4_p8): Likewise.
8576 (vtbx2_s8): Likewise.
8577 (vtbx2_u8): Likewise.
8578 (vtbx2_p8): Likewise.
8579 (vld1_f32): Likewise.
8580 (vld1_f64): Likewise.
8581 (vld1_p8): Likewise.
8582 (vld1_p16): Likewise.
8583 (vld1_p64): Likewise.
8584 (vld1_s8): Likewise.
8585 (vld1_s16): Likewise.
8586 (vld1_s32): Likewise.
8587 (vld1_s64): Likewise.
8588 (vld1_u8): Likewise.
8589 (vld1_u16): Likewise.
8590 (vld1_u32): Likewise.
8591 (vld1_u64): Likewise.
8592 (vld1q_f32): Likewise.
8593 (vld1q_f64): Likewise.
8594 (vld1q_p8): Likewise.
8595 (vld1q_p16): Likewise.
8596 (vld1q_p64): Likewise.
8597 (vld1q_s8): Likewise.
8598 (vld1q_s16): Likewise.
8599 (vld1q_s32): Likewise.
8600 (vld1q_s64): Likewise.
8601 (vld1q_u8): Likewise.
8602 (vld1q_u16): Likewise.
8603 (vld1q_u32): Likewise.
8604 (vld1q_u64): Likewise.
8605 (vpmax_s8): Likewise.
8606 (vpmax_s16): Likewise.
8607 (vpmax_s32): Likewise.
8608 (vpmax_u8): Likewise.
8609 (vpmax_u16): Likewise.
8610 (vpmax_u32): Likewise.
8611 (vpmaxq_s8): Likewise.
8612 (vpmaxq_s16): Likewise.
8613 (vpmaxq_s32): Likewise.
8614 (vpmaxq_u8): Likewise.
8615 (vpmaxq_u16): Likewise.
8616 (vpmaxq_u32): Likewise.
8617 (vpmax_f32): Likewise.
8618 (vpmaxq_f32): Likewise.
8619 (vpmaxq_f64): Likewise.
8620 (vpmaxqd_f64): Likewise.
8621 (vpmaxs_f32): Likewise.
8622 (vpmaxnm_f32): Likewise.
8623 (vpmaxnmq_f32): Likewise.
8624 (vpmaxnmq_f64): Likewise.
8625 (vpmaxnmqd_f64): Likewise.
8626 (vpmaxnms_f32): Likewise.
8627 (vpmin_s8): Likewise.
8628 (vpmin_s16): Likewise.
8629 (vpmin_s32): Likewise.
8630 (vpmin_u8): Likewise.
8631 (vpmin_u16): Likewise.
8632 (vpmin_u32): Likewise.
8633 (vpminq_s8): Likewise.
8634 (vpminq_s16): Likewise.
8635 (vpminq_s32): Likewise.
8636 (vpminq_u8): Likewise.
8637 (vpminq_u16): Likewise.
8638 (vpminq_u32): Likewise.
8639 (vpmin_f32): Likewise.
8640 (vpminq_f32): Likewise.
8641 (vpminq_f64): Likewise.
8642 (vpminqd_f64): Likewise.
8643 (vpmins_f32): Likewise.
8644 (vpminnm_f32): Likewise.
8645 (vpminnmq_f32): Likewise.
8646 (vpminnmq_f64): Likewise.
8647 (vpminnmqd_f64): Likewise.
8648 (vpminnms_f32): Likewise.
8649 (vmla_f32): Likewise.
8650 (vmlaq_f32): Likewise.
8651 (vmlaq_f64): Likewise.
8652 (vmls_f32): Likewise.
8653 (vmlsq_f32): Likewise.
8654 (vmlsq_f64): Likewise.
8655 (vqtbl2_s8): Likewise.
8656 (vqtbl2_u8): Likewise.
8657 (vqtbl2_p8): Likewise.
8658 (vqtbl2q_s8): Likewise.
8659 (vqtbl2q_u8): Likewise.
8660 (vqtbl2q_p8): Likewise.
8661 (vqtbl3_s8): Likewise.
8662 (vqtbl3_u8): Likewise.
8663 (vqtbl3_p8): Likewise.
8664 (vqtbl3q_s8): Likewise.
8665 (vqtbl3q_u8): Likewise.
8666 (vqtbl3q_p8): Likewise.
8667 (vqtbl4_s8): Likewise.
8668 (vqtbl4_u8): Likewise.
8669 (vqtbl4_p8): Likewise.
8670 (vqtbl4q_s8): Likewise.
8671 (vqtbl4q_u8): Likewise.
8672 (vqtbl4q_p8): Likewise.
8673 (vqtbx2_s8): Likewise.
8674 (vqtbx2_u8): Likewise.
8675 (vqtbx2_p8): Likewise.
8676 (vqtbx2q_s8): Likewise.
8677 (vqtbx2q_u8): Likewise.
8678 (vqtbx2q_p8): Likewise.
8679 (vqtbx3_s8): Likewise.
8680 (vqtbx3_u8): Likewise.
8681 (vqtbx3_p8): Likewise.
8682 (vqtbx3q_s8): Likewise.
8683 (vqtbx3q_u8): Likewise.
8684 (vqtbx3q_p8): Likewise.
8685 (vqtbx4_s8): Likewise.
8686 (vqtbx4_u8): Likewise.
8687 (vqtbx4_p8): Likewise.
8688 (vqtbx4q_s8): Likewise.
8689 (vqtbx4q_u8): Likewise.
8690 (vqtbx4q_p8): Likewise.
8691 (vrev16_p8): Likewise.
8692 (vrev16_s8): Likewise.
8693 (vrev16_u8): Likewise.
8694 (vrev16q_p8): Likewise.
8695 (vrev16q_s8): Likewise.
8696 (vrev16q_u8): Likewise.
8697 (vrev32_p8): Likewise.
8698 (vrev32_p16): Likewise.
8699 (vrev32_s8): Likewise.
8700 (vrev32_s16): Likewise.
8701 (vrev32_u8): Likewise.
8702 (vrev32_u16): Likewise.
8703 (vrev32q_p8): Likewise.
8704 (vrev32q_p16): Likewise.
8705 (vrev32q_s8): Likewise.
8706 (vrev32q_s16): Likewise.
8707 (vrev32q_u8): Likewise.
8708 (vrev32q_u16): Likewise.
8709 (vrev64_f32): Likewise.
8710 (vrev64_p8): Likewise.
8711 (vrev64_p16): Likewise.
8712 (vrev64_s8): Likewise.
8713 (vrev64_s16): Likewise.
8714 (vrev64_s32): Likewise.
8715 (vrev64_u8): Likewise.
8716 (vrev64_u16): Likewise.
8717 (vrev64_u32): Likewise.
8718 (vrev64q_f32): Likewise.
8719 (vrev64q_p8): Likewise.
8720 (vrev64q_p16): Likewise.
8721 (vrev64q_s8): Likewise.
8722 (vrev64q_s16): Likewise.
8723 (vrev64q_s32): Likewise.
8724 (vrev64q_u8): Likewise.
8725 (vrev64q_u16): Likewise.
8726 (vrev64q_u32): Likewise.
8727 (vsha1cq_u32): Likewise.
8728 (vsha1mq_u32): Likewise.
8729 (vsha1pq_u32): Likewise.
8730 (vsha1h_u32): Likewise.
8731 (vsha1su0q_u32): Likewise.
8732 (vsha1su1q_u32): Likewise.
8733 (vsha256hq_u32): Likewise.
8734 (vsha256h2q_u32): Likewise.
8735 (vsha256su0q_u32): Likewise.
8736 (vsha256su1q_u32): Likewise.
8737 (vmull_p64): Likewise.
8738 (vmull_high_p64): Likewise.
8739 (vsqrt_f32): Likewise.
8740 (vsqrtq_f32): Likewise.
8741 (vsqrt_f64): Likewise.
8742 (vsqrtq_f64): Likewise.
8743 (vst1_f32): Likewise.
8744 (vst1_f64): Likewise.
8745 (vst1_p8): Likewise.
8746 (vst1_p16): Likewise.
8747 (vst1_p64): Likewise.
8748 (vst1_s8): Likewise.
8749 (vst1_s16): Likewise.
8750 (vst1_s32): Likewise.
8751 (vst1_s64): Likewise.
8752 (vst1_u8): Likewise.
8753 (vst1_u16): Likewise.
8754 (vst1_u32): Likewise.
8755 (vst1_u64): Likewise.
8756 (vst1q_f32): Likewise.
8757 (vst1q_f64): Likewise.
8758 (vst1q_p8): Likewise.
8759 (vst1q_p16): Likewise.
8760 (vst1q_p64): Likewise.
8761 (vst1q_s8): Likewise.
8762 (vst1q_s16): Likewise.
8763 (vst1q_s32): Likewise.
8764 (vst1q_s64): Likewise.
8765 (vst1q_u8): Likewise.
8766 (vst1q_u16): Likewise.
8767 (vst1q_u32): Likewise.
8768 (vst1q_u64): Likewise.
8769 (vst1_s64_x2): Likewise.
8770 (vst1_u64_x2): Likewise.
8771 (vst1_f64_x2): Likewise.
8772 (vst1_s8_x2): Likewise.
8773 (vst1_p8_x2): Likewise.
8774 (vst1_s16_x2): Likewise.
8775 (vst1_p16_x2): Likewise.
8776 (vst1_s32_x2): Likewise.
8777 (vst1_u8_x2): Likewise.
8778 (vst1_u16_x2): Likewise.
8779 (vst1_u32_x2): Likewise.
8780 (vst1_f16_x2): Likewise.
8781 (vst1_f32_x2): Likewise.
8782 (vst1_p64_x2): Likewise.
8783 (vst1q_s8_x2): Likewise.
8784 (vst1q_p8_x2): Likewise.
8785 (vst1q_s16_x2): Likewise.
8786 (vst1q_p16_x2): Likewise.
8787 (vst1q_s32_x2): Likewise.
8788 (vst1q_s64_x2): Likewise.
8789 (vst1q_u8_x2): Likewise.
8790 (vst1q_u16_x2): Likewise.
8791 (vst1q_u32_x2): Likewise.
8792 (vst1q_u64_x2): Likewise.
8793 (vst1q_f16_x2): Likewise.
8794 (vst1q_f32_x2): Likewise.
8795 (vst1q_f64_x2): Likewise.
8796 (vst1q_p64_x2): Likewise.
8797 (vst1_s64_x3): Likewise.
8798 (vst1_u64_x3): Likewise.
8799 (vst1_f64_x3): Likewise.
8800 (vst1_s8_x3): Likewise.
8801 (vst1_p8_x3): Likewise.
8802 (vst1_s16_x3): Likewise.
8803 (vst1_p16_x3): Likewise.
8804 (vst1_s32_x3): Likewise.
8805 (vst1_u8_x3): Likewise.
8806 (vst1_u16_x3): Likewise.
8807 (vst1_u32_x3): Likewise.
8808 (vst1_f16_x3): Likewise.
8809 (vst1_f32_x3): Likewise.
8810 (vst1_p64_x3): Likewise.
8811 (vst1q_s8_x3): Likewise.
8812 (vst1q_p8_x3): Likewise.
8813 (vst1q_s16_x3): Likewise.
8814 (vst1q_p16_x3): Likewise.
8815 (vst1q_s32_x3): Likewise.
8816 (vst1q_s64_x3): Likewise.
8817 (vst1q_u8_x3): Likewise.
8818 (vst1q_u16_x3): Likewise.
8819 (vst1q_u32_x3): Likewise.
8820 (vst1q_u64_x3): Likewise.
8821 (vst1q_f16_x3): Likewise.
8822 (vst1q_f32_x3): Likewise.
8823 (vst1q_f64_x3): Likewise.
8824 (vst1q_p64_x3): Likewise.
8825 (vst2_s64): Likewise.
8826 (vst2_u64): Likewise.
8827 (vst2_f64): Likewise.
8828 (vst2_s8): Likewise.
8829 (vst2_p8): Likewise.
8830 (vst2_s16): Likewise.
8831 (vst2_p16): Likewise.
8832 (vst2_s32): Likewise.
8833 (vst2_u8): Likewise.
8834 (vst2_u16): Likewise.
8835 (vst2_u32): Likewise.
8836 (vst2_f16): Likewise.
8837 (vst2_f32): Likewise.
8838 (vst2_p64): Likewise.
8839 (vst2q_s8): Likewise.
8840 (vst2q_p8): Likewise.
8841 (vst2q_s16): Likewise.
8842 (vst2q_p16): Likewise.
8843 (vst2q_s32): Likewise.
8844 (vst2q_s64): Likewise.
8845 (vst2q_u8): Likewise.
8846 (vst2q_u16): Likewise.
8847 (vst2q_u32): Likewise.
8848 (vst2q_u64): Likewise.
8849 (vst2q_f16): Likewise.
8850 (vst2q_f32): Likewise.
8851 (vst2q_f64): Likewise.
8852 (vst2q_p64): Likewise.
8853 (vst3_s64): Likewise.
8854 (vst3_u64): Likewise.
8855 (vst3_f64): Likewise.
8856 (vst3_s8): Likewise.
8857 (vst3_p8): Likewise.
8858 (vst3_s16): Likewise.
8859 (vst3_p16): Likewise.
8860 (vst3_s32): Likewise.
8861 (vst3_u8): Likewise.
8862 (vst3_u16): Likewise.
8863 (vst3_u32): Likewise.
8864 (vst3_f16): Likewise.
8865 (vst3_f32): Likewise.
8866 (vst3_p64): Likewise.
8867 (vst3q_s8): Likewise.
8868 (vst3q_p8): Likewise.
8869 (vst3q_s16): Likewise.
8870 (vst3q_p16): Likewise.
8871 (vst3q_s32): Likewise.
8872 (vst3q_s64): Likewise.
8873 (vst3q_u8): Likewise.
8874 (vst3q_u16): Likewise.
8875 (vst3q_u32): Likewise.
8876 (vst3q_u64): Likewise.
8877 (vst3q_f16): Likewise.
8878 (vst3q_f32): Likewise.
8879 (vst3q_f64): Likewise.
8880 (vst3q_p64): Likewise.
8881 (vst4_s64): Likewise.
8882 (vst4_u64): Likewise.
8883 (vst4_f64): Likewise.
8884 (vst4_s8): Likewise.
8885 (vst4_p8): Likewise.
8886 (vst4_s16): Likewise.
8887 (vst4_p16): Likewise.
8888 (vst4_s32): Likewise.
8889 (vst4_u8): Likewise.
8890 (vst4_u16): Likewise.
8891 (vst4_u32): Likewise.
8892 (vst4_f16): Likewise.
8893 (vst4_f32): Likewise.
8894 (vst4_p64): Likewise.
8895 (vst4q_s8): Likewise.
8896 (vst4q_p8): Likewise.
8897 (vst4q_s16): Likewise.
8898 (vst4q_p16): Likewise.
8899 (vst4q_s32): Likewise.
8900 (vst4q_s64): Likewise.
8901 (vst4q_u8): Likewise.
8902 (vst4q_u16): Likewise.
8903 (vst4q_u32): Likewise.
8904 (vst4q_u64): Likewise.
8905 (vst4q_f16): Likewise.
8906 (vst4q_f32): Likewise.
8907 (vst4q_f64): Likewise.
8908 (vst4q_p64): Likewise.
8909 (vtbx4_s8): Likewise.
8910 (vtbx4_u8): Likewise.
8911 (vtbx4_p8): Likewise.
8912 (vtrn_f32): Likewise.
8913 (vtrn_p8): Likewise.
8914 (vtrn_p16): Likewise.
8915 (vtrn_s8): Likewise.
8916 (vtrn_s16): Likewise.
8917 (vtrn_s32): Likewise.
8918 (vtrn_u8): Likewise.
8919 (vtrn_u16): Likewise.
8920 (vtrn_u32): Likewise.
8921 (vtrnq_f32): Likewise.
8922 (vtrnq_p8): Likewise.
8923 (vtrnq_p16): Likewise.
8924 (vtrnq_s8): Likewise.
8925 (vtrnq_s16): Likewise.
8926 (vtrnq_s32): Likewise.
8927 (vtrnq_u8): Likewise.
8928 (vtrnq_u16): Likewise.
8929 (vtrnq_u32): Likewise.
8930 (vrsqrte_f16): Likewise.
8931 (vrsqrteq_f16): Likewise.
8932 (vsqrt_f16): Likewise.
8933 (vsqrtq_f16): Likewise.
8934 (vabd_f16): Likewise.
8935 (vabdq_f16): Likewise.
8936 (vpadd_f16): Likewise.
8937 (vpaddq_f16): Likewise.
8938 (vpmax_f16): Likewise.
8939 (vpmaxq_f16): Likewise.
8940 (vpmaxnm_f16): Likewise.
8941 (vpmaxnmq_f16): Likewise.
8942 (vpmin_f16): Likewise.
8943 (vpminq_f16): Likewise.
8944 (vpminnm_f16): Likewise.
8945 (vpminnmq_f16): Likewise.
8946 (vrsqrts_f16): Likewise.
8947 (vrsqrtsq_f16): Likewise.
8949 2019-09-25 Richard Biener <rguenther@suse.de>
8951 PR tree-optimization/91896
8952 * tree-vect-loop.c (vectorizable_reduction): The single
8953 def-use cycle optimization cannot apply when there's more
8954 than one pattern stmt involved.
8956 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
8958 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
8959 the 'P' mode iterator, replacing the (removed) SI and DI variants.
8960 (reload_macho_picbase_<mode>): Likewise.
8962 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
8964 * config/rs6000/rs6000.md: Move darwin.md include until
8965 after the definition of the mode iterators.
8967 2019-09-23 Martin Sebor <msebor@redhat.com>
8969 PR tree-optimization/91570
8970 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
8971 non-constant minlen, maxlen and maxbound.
8973 2019-09-24 Richard Biener <rguenther@suse.de>
8975 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
8977 (_stmt_vec_info::cond_reduc_code): ... this.
8978 (_stmt_vec_info::induc_cond_initial_val): Add.
8979 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
8980 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
8981 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
8982 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
8983 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
8985 (vect_create_epilog_for_reduction): Drop special
8986 induction condition reduction params, pass in reduction code
8988 (vectorizable_reduction): Perform condition reduction kind
8989 selection only at analysis time. Adjust passing on state.
8991 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8993 * config/aarch64/aarch64.md (mov<mode>): Don't call
8994 aarch64_split_dimode_const_store on volatile MEM.
8996 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
8998 * config/aarch64/aarch64-option-extensions.def (fp16fml):
8999 Update hwcap string for fp16fml.
9001 2019-09-24 Jakub Jelinek <jakub@redhat.com>
9004 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
9005 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
9007 2019-09-24 Martin Liska <mliska@suse.cz>
9009 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
9010 instead of if-elseif-elseif-...
9011 * gimple-expr.c (extract_ops_from_tree): Likewise.
9012 * gimple.c (get_gimple_rhs_num_ops): Likewise.
9013 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
9015 2019-09-24 Martin Jambor <mjambor@suse.cz>
9018 * ipa-param-manipulation.c (carry_over_param): Make a method of
9019 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
9020 in case of a context mismatch.
9021 (ipa_param_body_adjustments::common_initialization): Adjust call to
9023 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
9024 private method carry_over_param.
9026 2019-09-24 Martin Jambor <mjambor@suse.cz>
9029 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
9031 2019-09-24 Richard Biener <rguenther@suse.de>
9033 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
9036 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9038 * config/arm/t-arm (arm-builtins.o): Add dependency on
9039 arm_acle_builtins.def.
9041 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
9044 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
9045 canonical CONST_INTs. Use gen_rtvec.
9047 2019-09-23 Richard Biener <rguenther@suse.de>
9049 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
9050 avoid adjusting by + 0 or * 1.
9051 (vect_create_epilog_for_reduction): Get reduction code only
9052 when necessary. Deal with adjustment_def only when necessary.
9054 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
9056 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
9059 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9062 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
9065 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
9067 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
9068 code. Merge code blocks with common conditionals. Use declared
9069 macro instead of a magic number for PIC level.
9071 2019-09-21 Martin Sebor <msebor@redhat.com>
9074 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
9075 Simplify computation of the offset of the referenced subobject.
9077 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
9079 * config/darwin.c (machopic_legitimize_pic_address): Check
9082 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
9084 * ira-conflicts.c (can_use_same_reg_p): New function.
9085 (process_reg_shuffles): Take an insn parameter. Ignore cases
9086 in which input operand op_num could seemingly never be allocated
9087 to the same register as the destination.
9088 (add_insn_allocno_copies): Update call to process_reg_shuffles.
9090 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
9092 * simplify-rtx.c (neg_const_int): Replace with...
9093 (neg_poly_int_rtx): ...this new function.
9094 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
9095 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
9096 (simplify_plus_minus): Likewise for constant terms here.
9098 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
9100 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
9101 HOST_WIDE_PRINT_UNSIGNED.
9103 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
9105 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
9108 2019-09-20 Maya Rashish <coypu@sdf.org>
9111 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
9112 Define to speculation_safe_value_not_needed.
9114 2019-09-20 Richard Biener <rguenther@suse.de>
9115 Uros Bizjak <ubizjak@gmail.com>
9118 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
9120 (general_scalar_chain::convert_op): Force not suitable memory
9121 operands to a register.
9123 2019-09-20 Richard Biener <rguenther@suse.de>
9125 PR tree-optimization/91821
9126 * tree-vect-loop.c (check_reduction_path): Check we can compute
9128 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
9129 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
9130 operands in canonical order.
9131 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9132 STMT_VINFO_REDUC_IDX.
9133 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
9134 (STMT_VINFO_REDUC_IDX): Likewise.
9136 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
9139 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9141 2019-09-20 Richard Biener <rguenther@suse.de>
9143 PR tree-optimization/91822
9144 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
9146 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
9147 for reduc_index in nested cycles, adjust vectorizable_condition
9149 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
9151 (vect_analyze_stmt): Adjust.
9152 (vect_transform_stmt): Likewise.
9154 2019-09-20 Richard Biener <rguenther@suse.de>
9157 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
9158 Ensure there's a sequence point between allocating the new register
9159 and passing a reference to a reg via regno_reg_rtx.
9161 2019-09-20 Martin Jambor <mjambor@suse.cz>
9163 * coretypes.h (cgraph_edge): Declare.
9164 * ipa-param-manipulation.c: Rewrite.
9165 * ipa-param-manipulation.h: Likewise.
9166 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
9167 (OBJS): Added ipa-sra.o.
9168 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
9169 and ref_p, added fields param_adjustments and performed_splits.
9170 (struct cgraph_clone_info): Remove ags_to_skip and
9171 combined_args_to_skip, new field param_adjustments.
9172 (cgraph_node::create_clone): Changed parameters to use
9173 ipa_param_adjustments.
9174 (cgraph_node::create_virtual_clone): Likewise.
9175 (cgraph_node::create_virtual_clone_with_body): Likewise.
9176 (tree_function_versioning): Likewise.
9177 (cgraph_build_function_type_skip_args): Removed.
9178 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
9179 using ipa_param_adjustments.
9180 (clone_of_p): Likewise.
9181 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
9182 (build_function_decl_skip_args): Likewise.
9183 (duplicate_thunk_for_node): Adjust parameters using
9184 ipa_param_body_adjustments, copy param_adjustments instead of
9186 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
9187 (cgraph_node::create_virtual_clone): Likewise.
9188 (cgraph_node::create_version_clone_with_body): Likewise.
9189 (cgraph_materialize_clone): Likewise.
9190 (symbol_table::materialize_all_clones): Likewise.
9191 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
9192 ipa_replace_map check.
9193 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
9194 (initialize_node_lattices): Make aware that some parameters might have
9195 already been removed.
9196 (want_remove_some_param_p): New function.
9197 (create_specialized_node): Convert to using ipa_param_adjustments and
9198 deal with possibly pre-existing adjustments.
9199 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
9200 (output_node_opt_summary): Do not stream removed fields. Stream
9201 parameter adjustments instead of argumetns to skip.
9202 (input_node_opt_summary): Likewise.
9203 (input_node_opt_summary): Likewise.
9204 * lto-section-in.c (lto_section_name): Added ipa-sra section.
9205 * lto-streamer.h (lto_section_type): Likewise.
9206 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
9208 (copy_decl_to_var): Declare.
9209 * tree-inline.c (update_clone_info): Do not remap old_tree.
9210 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
9211 statements, walk all extra generated statements and remap their
9213 (redirect_all_calls): Add killed SSA names to a hash set.
9214 (remap_ssa_name): Do not remap killed SSA names.
9215 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
9216 half of functionality moved to ipa_param_body_adjustments.
9217 (copy_decl_to_var): Make exported.
9218 (copy_body): Destroy killed_new_ssa_names hash set.
9219 (expand_call_inline): Remap performed splits.
9220 (update_clone_info): Likewise.
9221 (tree_function_versioning): Simplify tree_map processing. Updated to
9222 accept ipa_param_adjustments and use ipa_param_body_adjustments.
9223 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
9224 for the new interface.
9225 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
9226 (simd_clone_compute_base_data_type): Likewise.
9227 (simd_clone_init_simd_arrays): Adjust for the new interface.
9228 (simd_clone_adjust_argument_types): Likewise.
9229 (struct modify_stmt_info): Likewise.
9230 (ipa_simd_modify_stmt_ops): Likewise.
9231 (ipa_simd_modify_function_body): Likewise.
9232 (simd_clone_adjust): Likewise.
9233 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
9234 (type_internals_preclude_sra_p): Make public.
9235 * tree-sra.h: New file.
9236 * ipa-inline-transform.c (save_inline_function_body): Update to
9237 refelct new tree_function_versioning signature.
9238 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
9239 ipa_param_adjustments to get current parameter indices.
9240 (ipcp_modif_dom_walker::before_dom_children): Likewise.
9241 (ipcp_update_bits): Likewise.
9242 (ipcp_update_vr): Likewise.
9243 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
9244 * ipa-sra.c: New file.
9245 * multiple_target.c (create_target_clone): Update to reflet new type
9246 of create_version_clone_with_body.
9247 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
9248 tree_function_versioning.
9249 (modify_function): Update to reflect new type of
9250 tree_function_versioning.
9251 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
9252 * passes.def: Remove old IPA-SRA and add new one.
9253 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
9254 (make_pass_ipa_sra): Declare.
9255 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
9257 * doc/invoke.texi (ipa-sra-max-replacements): New.
9259 2019-09-19 Martin Sebor <msebor@redhat.com>
9262 * builtins.c (component_size): Correct trailing array computation,
9263 rename to component_ref_size and move...
9264 (compute_objsize): Adjust.
9265 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
9266 (builtin_access::strict): Do not consider memmove.
9267 (builtin_access::write_off): New function.
9268 (builtin_memref::builtin_memref): Initialize refsize.
9269 (builtin_memref::set_base_and_offset): Adjust refoff and compute
9271 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
9273 (builtin_access::builtin_access): Initialize dstoff to destination
9274 refeence offset here instead of in maybe_diag_overlap. Adjust
9275 referencess even to unrelated objects. Adjust sizrange of bounded
9276 string functions to reflect bound. For strcat, adjust destination
9277 sizrange by that of source.
9278 (builtin_access::strcat_overlap): Adjust offsets and sizes
9279 to reflect the increase in destination sizrange above.
9280 (builtin_access::overlap): Do not set dstoff here but instead
9281 in builtin_access::builtin_access.
9282 (check_bounds_or_overlap): Use builtin_access::write_off.
9283 (maybe_diag_access_bounds): Add argument. Add informational notes.
9284 (dump_builtin_memref, dump_builtin_access): New functions.
9285 * tree.c (component_ref_size): ...to here.
9286 * tree.h (component_ref_size): Declare.
9287 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
9288 nul in the size of the source string.
9290 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
9293 * doc/cpp.texi: Document support for extended characters in
9295 * doc/cppopts.texi: Likewise.
9297 2019-09-19 Richard Biener <rguenther@suse.de>
9299 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
9300 (check_reduction_path): New overload having the path as result.
9301 (vect_is_simple_reduction): From the detected reduction
9302 path build a SLP reduction chain if possible.
9304 2019-09-19 Richard Biener <rguenther@suse.de>
9307 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
9308 Force operand to a register if it isn't nonimmediate_operand.
9310 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
9312 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
9313 * config/arm/iterators.md (optab): Add and, ior, xor entries.
9314 (logical_op): Remove code attribute.
9315 (logical_OP): Likewise.
9317 2019-09-19 Martin Liska <mliska@suse.cz>
9319 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
9322 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
9324 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
9327 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
9328 for NE comparison of TImode values.
9329 (aarch64_emit_load_exclusive): Add support for TImode.
9330 (aarch64_emit_store_exclusive): Likewise.
9331 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
9332 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
9333 Change iterator from ALLI to ALLI_TI.
9334 (@atomic_compare_and_swap<JUST_TI>): New.
9335 (@atomic_compare_and_swap<JUST_TI>_lse): New.
9336 (aarch64_load_exclusive_pair): New.
9337 (aarch64_store_exclusive_pair): New.
9338 * config/aarch64/iterators.md (JUST_TI): New.
9340 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
9341 strong_zero_p for aarch64_track_speculation; unify some code paths;
9342 use aarch64_gen_compare_reg instead of open-coding.
9344 * config/aarch64/aarch64.opt (-moutline-atomics): New.
9345 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
9346 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
9347 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
9348 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
9349 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
9350 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
9351 (atomic_<atomic_op><ALLI>): Likewise.
9352 (atomic_fetch_<atomic_op><ALLI>): Likewise.
9353 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
9354 * doc/invoke.texi: Document -moutline-atomics.
9356 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
9358 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
9359 trivial predicate for condition branch.
9360 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
9362 (compute_bb_predicates): Update predicate based on post-dominating
9364 (analyze_function_body): Calculate post-dominating information.
9366 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
9368 * tree-vectorizer.h (vectorizable_condition): Take an int
9369 reduction index instead of a boolean flag.
9370 * tree-vect-stmts.c (vectorizable_condition): Likewise.
9371 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
9372 reductions if the reduction accumulator is the "then" rather
9373 than the "else" value.
9374 (vect_analyze_stmt): Update call accordingly.
9375 (vect_transform_stmt): Likewise.
9376 * tree-vect-loop.c (vectorizable_reduction): Likewise,
9377 asserting that the index is > 0.
9379 2019-09-19 Martin Liska <mliska@suse.cz>
9381 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
9382 (sort_congruence_classes_by_decl_uid): Likewise.
9383 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
9385 (sem_item_optimizer::merge_classes): Likewise.
9387 2019-09-19 Richard Biener <rguenther@suse.de>
9389 PR tree-optimization/91812
9390 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
9393 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
9395 * defaults.h (TARGET_UNIT): New macro.
9396 (target_unit): New type.
9397 * rtl.h (native_encode_rtx, native_decode_rtx)
9398 (native_decode_vector_rtx, subreg_size_lsb): Declare.
9399 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
9400 * rtlanal.c (subreg_lsb_1): Delete.
9401 (subreg_size_lsb): New function.
9402 * simplify-rtx.c: Include rtx-vector-builder.h
9403 (simplify_immed_subreg): Delete.
9404 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
9405 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
9407 (simplify_subreg): Use them.
9408 (test_vector_subregs_modes, test_vector_subregs_repeating)
9409 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
9410 (test_vector_subregs): New functions.
9411 (test_vector_ops): Call test_vector_subregs for integer vector
9412 modes with at least 2 elements.
9414 2019-09-19 Richard Biener <rguenther@suse.de>
9416 * tree-parloops.c (parloops_is_slp_reduction): Do not set
9417 LOOP_VINFO_OPERANDS_SWAPPED.
9418 (parloops_is_simple_reduction): Likewise.
9419 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
9420 initialize operands_swapped.
9421 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
9422 (vect_is_slp_reduction): Do not swap operands.
9423 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
9424 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
9426 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
9429 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
9430 Add avx_partial_xmm_update.
9432 2019-09-18 Jim Wilson <jimw@sifive.com>
9435 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
9436 (riscv_move_integer): Likewise.
9437 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
9438 riscv_move_integer arg.
9439 (riscv_legitimize_move): Likewise.
9440 (riscv_force_temporary): New parameter in_splitter. Don't call
9442 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
9444 (riscv_add_offset): Likewise.
9445 (riscv_split_symbol): New parameter in_splitter. Pass to
9446 riscv_force_temporary.
9447 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
9449 (riscv_move_integer): New parameter in_splitter. New local
9450 can_create_psuedo. Don't call riscv_split_integer or force_reg when
9452 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
9453 riscv_split_symbol, and riscv_force_temporary args.
9454 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
9455 riscv_move_integer arg.
9456 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
9458 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
9461 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
9462 hard register store cost to 6.
9464 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
9467 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
9468 pseudo register store cost from 3 to 6 to make it the same as
9471 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9474 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
9475 (one_cmpldi2): Likewise.
9476 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
9477 of the constant parts is simple.
9478 * config/arm/iterators.md (LOGICAL): Add new code iterator.
9479 (logical_op): Add new code attribute.
9480 (logical_OP): Likewise.
9481 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
9482 (arm_iordi_operand): Add predicate.
9483 (arm_xordi_operand): Add predicate.
9485 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9487 * config/arm/arm.md (maddsidi4): Remove expander.
9488 (mulsidi3adddi): Remove pattern.
9489 (mulsidi3adddi_v6): Likewise.
9490 (mulsidi3_nov6): Likewise.
9491 (mulsidi3_v6): Likewise.
9492 (umulsidi3): Remove expander.
9493 (umulsidi3_nov6): Remove pattern.
9494 (umulsidi3_v6): Likewise.
9495 (umulsidi3adddi): Likewise.
9496 (umulsidi3adddi_v6): Likewise.
9497 (<Us>mulsidi3): Add combined expander.
9498 (<Us>maddsidi4): Likewise.
9499 (<US>mull): Add combined umull and smull pattern.
9500 (<US>mlal): Likewise.
9501 * config/arm/iterators.md (Us): Add new iterator.
9503 2019-09-18 Richard Biener <rguenther@suse.de>
9505 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
9507 (vectorize_fold_left_reduction): Remove assert.
9508 (vectorizable_reduction): Also expect COND_EXPR non-reduction
9509 operand in position 2. Remove assert.
9511 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9513 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
9514 (smulsi3_highpart_nov6): Remove pattern.
9515 (smulsi3_highpart_v6): Likewise.
9516 (umulsi3_highpart): Likewise.
9517 (umulsi3_highpart_nov6): Likewise.
9518 (umulsi3_highpart_v6): Likewise.
9519 (<US>mull_high): Add new combined multiply pattern.
9521 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9523 * config/arm/arm.md (arm_mulsi3): Remove pattern.
9524 (arm_mulsi3_v6): Likewise.
9525 (mulsi3addsi_v6): Likewise.
9526 (mulsi3subsi): Likewise.
9527 (mul): Add new multiply pattern.
9531 2019-09-18 Richard Biener <rguenther@suse.de>
9533 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
9534 (parloops_valid_reduction_input_p): Copy from
9535 valid_reduction_input_p.
9536 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
9537 (parloops_needs_fold_left_reduction_p): Copy from
9538 needs_fold_left_reduction_p.
9539 (parloops_is_simple_reduction): Copy from
9540 vect_is_simple_reduction.
9541 (parloops_force_simple_reduction): Copy from
9542 vect_force_simple_reduction.
9543 (gather_scalar_reductions): Adjust.
9544 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
9545 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
9547 2019-09-18 Richard Biener <rguenther@suse.de>
9549 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
9550 * tree-vect-loop.c (get_initial_def_for_reduction): Make
9552 (vect_create_epilog_for_reduction): Remove dead code.
9554 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9556 * varasm.c (assemble_real): Generate canonical const_ints.
9558 2019-09-18 Richard Biener <rguenther@suse.de>
9561 * lto-streamer-in.c (input_eh_regions): Move EH init to
9562 lto_materialize_function.
9563 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
9566 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9568 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
9571 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9573 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
9574 of checking specifically for INTEGER_CST.
9576 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9578 * stor-layout.c (compute_record_mode): Operate on poly_uint64
9579 sizes instead of uhwi sizes.
9581 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9583 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
9584 (add_const_value_attribute): Handle CONST_POLY_INT.
9586 2019-09-18 Martin Liska <mliska@suse.cz>
9588 * dbgcnt.def (store_merging): New counter.
9589 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
9590 Use it in store merging.
9592 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9594 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
9596 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
9597 * config/arm/arm.c (arm_sched_variable_issue): New function.
9598 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
9600 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9602 * config/arm/types.md (no_reservation): New reservation.
9603 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
9605 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
9606 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
9607 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
9608 * config/arm/arm1020e.md (1020alu_op): Likewise.
9609 * config/arm/arm1026ejs.md (alu_op): Likewise.
9610 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9611 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9612 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9613 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
9614 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9615 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9616 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
9617 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
9618 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9619 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9620 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9621 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
9622 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
9623 * config/arm/fa526.md (526_alu_op): Likewise.
9624 * config/arm/fa606te.md (606te_alu_op): Likewise.
9625 * config/arm/fa626te.md (626te_alu_op): Likewise.
9626 * config/arm/fa726te.md (726te_alu_op): Likewise.
9627 * config/arm/xgene1.md (xgene1_nop): Likewise.
9629 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9631 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
9632 "no_insn" to "branch".
9634 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9636 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
9638 2019-09-17 Richard Biener <rguenther@suse.de>
9641 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
9642 was missing generate locations only once.
9644 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
9647 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
9649 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
9650 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
9651 for switch default case using range analysis information.
9653 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
9656 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
9657 mode attributed is supported by FDPIC.
9659 2019-09-17 Richard Biener <rguenther@suse.de>
9661 PR tree-optimization/91790
9662 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
9663 use the correct DR for setting up realignment.
9665 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
9668 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
9669 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
9670 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
9671 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
9673 2019-09-16 Jason Merrill <jason@redhat.com>
9675 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
9677 2019-09-16 Martin Liska <mliska@suse.cz>
9679 * gimple-fold.c (or_comparisons_1): Remove rules moved
9681 * match.pd: ... here.
9683 2019-09-16 Martin Liska <mliska@suse.cz>
9685 * gimple-fold.c (or_comparisons_1): Remove rules
9687 * match.pd: ... here.
9689 2019-09-16 Martin Liska <mliska@suse.cz>
9691 * genmatch.c (dt_node::append_simplify): Do not print
9692 warning when we have duplicate patterns belonging
9693 to a same simplify rule.
9694 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
9695 (maybe_fold_comparisons_from_match_pd): Handle
9696 tcc_comparison as a results.
9697 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
9699 2019-09-16 Li Jia He <helijia@linux.ibm.com>
9700 Qi Feng <ffengqi@linux.ibm.com>
9703 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
9704 (x > y && x == XXX_MIN): Optimize into 'false'.
9705 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
9706 (x < y && x != XXX_MAX): Optimize into 'x < y'.
9707 (x < y && x == XXX_MAX): Optimize into 'false'.
9708 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
9709 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
9710 (x <= y || x != XXX_MIN): Optimize into 'true'.
9711 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
9712 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
9713 (x >= y || x != XXX_MAX): Optimize into 'true'.
9714 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
9716 2019-09-16 Li Jia He <helijia@linux.ibm.com>
9717 Martin Liska <mliska@suse.cz>
9719 * gimple-fold.c (and_comparisons_1): Add type as first
9721 (and_var_with_comparison): Likewise.
9722 (and_var_with_comparison_1): Likewise.
9723 (or_comparisons_1): Likewise.
9724 (or_var_with_comparison): Likewise.
9725 (or_var_with_comparison_1): Likewise.
9726 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
9727 (maybe_fold_or_comparisons): Likewise.
9728 (maybe_fold_comparisons_from_match_pd): New.
9729 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
9730 (maybe_fold_or_comparisons): Likewise.
9731 * gimple.c (gimple_size): Make it public and add num_ops argument.
9732 (gimple_init): New function.
9733 (gimple_alloc): Call gimple_init.
9734 * gimple.h (gimple_size): New.
9735 (gimple_init): Likewise.
9736 * tree-if-conv.c (fold_or_predicates): Pass type.
9737 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
9738 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
9739 (optimize_vec_cond_expr): Likewise.
9740 (ovce_extract_ops): Return type of conditional expression.
9741 * tree-ssanames.c (init_ssa_name_imm_use): New.
9742 (make_ssa_name_fn): Use init_ssa_name_imm_use.
9743 * tree-ssanames.h (init_ssa_name_imm_use): New.
9745 2019-09-16 Richard Biener <rguenther@suse.de>
9747 PR tree-optimization/91756
9748 PR tree-optimization/87132
9749 * tree-ssa-alias.h (enum translate_flags): New.
9750 (get_continuation_for_phi): Use it instead of simple bool flag.
9751 (walk_non_aliased_vuses): Likewise.
9752 * tree-ssa-alias.c (maybe_skip_until): Adjust.
9753 (get_continuation_for_phi): When looking across backedges only
9754 disallow valueization.
9755 (walk_non_aliased_vuses): Adjust.
9756 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
9759 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
9762 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
9763 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
9764 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
9765 * target.def (have_count_reg_decr_p): New hook.
9766 (doloop_cost_for_generic): Likewise.
9767 (doloop_cost_for_address): Likewise.
9768 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
9769 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
9770 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
9771 * doc/tm.texi: Regenerate.
9772 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
9774 (record_group): Init doloop_p.
9775 (add_candidate_1): Add optional argument doloop, change the handlings
9777 (add_candidate): Likewise.
9778 (generic_predict_doloop_p): Update attribute.
9779 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
9780 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
9781 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
9783 (get_computation_cost): Update for doloop IV cand extra cost.
9784 (determine_group_iv_cost_cond): Update for doloop IV cand.
9785 (determine_iv_cost): Likewise.
9786 (ivopts_estimate_reg_pressure): Likewise.
9787 (may_eliminate_iv): Update handlings for doloop IV cand.
9788 (add_iv_candidate_for_doloop): New function.
9789 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
9790 (iv_ca_set_no_cp): Update for doloop IV cand.
9791 (iv_ca_set_cp): Likewise.
9792 (iv_ca_dump): Dump register cost.
9793 (find_doloop_use): New function.
9794 (analyze_and_mark_doloop_use): Likewise.
9795 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
9797 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
9800 * cse.c (cse_insn): Do not replace anything with a
9803 2019-09-13 Ian Lance Taylor <iant@golang.org>
9805 * doc/invoke.texi (Optimize Options): Fix typo.
9807 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
9809 PR tree-optimization/89386
9810 * config/i386/sse.md (smulhrs<mode>3): New expander.
9811 (smulhrsv4hi3): Ditto.
9813 2019-09-12 Richard Biener <rguenther@suse.de>
9815 PR tree-optimization/91750
9816 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
9817 in the type of the evolution.
9819 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
9821 PR tree-optimization/89386
9822 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
9823 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
9824 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
9825 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
9826 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
9827 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
9828 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
9829 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
9830 (su, r): Handle the unspecs above.
9831 (bt): New int attribute.
9832 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
9833 * internal-fn.c (first_commutative_argument): Commutativity info for
9835 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
9836 (umulhrs_optab): New optabs.
9837 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
9838 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
9839 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
9841 (vect_vect_recog_func_ptrs): Add it.
9843 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
9845 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
9848 2019-09-11 Nathan Sidwell <nathan@acm.org>
9850 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
9851 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
9853 2019-09-11 Richard Biener <rguenther@suse.de>
9855 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
9856 * lto-wrapper.c (merge_and_complain): Pick up -g.
9857 (append_compiler_options): Likewise.
9858 (run_gcc): Re-instantiate handling -g0 at link-time.
9859 * doc/invoke.texi (flto): Document debug info generation.
9861 2019-09-11 Richard Biener <rguenther@suse.de>
9863 PR tree-optimization/90387
9864 * vr-values.c (vr_values::extract_range_basic): After inlining
9865 simplify non-constant __builtin_constant_p to false.
9867 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
9869 PR rtl-optimization/89795
9870 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
9871 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
9873 2019-09-11 Jakub Jelinek <jakub@redhat.com>
9875 PR tree-optimization/91723
9876 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
9877 instead of pointer equality when checking if argument vectypes are
9881 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
9882 of get_nonzero_bits, only call it for integral types.
9884 2019-09-11 Richard Biener <rguenther@suse.de>
9887 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
9889 * match.pd: Add flag_unsafe_math_optimizations check
9890 before deciding on the widest type in a binary math operation.
9892 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9894 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
9895 and CALL_REALLY_USED_REGISTERS must be defined, and that
9896 CALL_REALLY_USED_REGISTERS is preferred.
9897 * doc/tm.texi: Regenerate.
9898 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
9899 (call_really_used_regs): Likewise.
9900 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
9901 CALL_REALLY_USED_REGISTERS are defined.
9902 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
9903 initial value if defined.
9904 (initial_call_really_used_regs): Delete.
9905 (saved_call_really_used_regs): Likewise.
9906 (CALL_REALLY_USED_REGNO_P): Likewise.
9907 (init_reg_sets): Remove handling of call_really_used_regs.
9908 (save_register_info, restore_register_info, globalize_reg): Likewise.
9909 (init_reg_sets_1): Likewise. Use call_used_regs instead of
9910 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
9911 outside operand_reg_set.
9912 (fix_register): Don't change call_used_regs if
9913 CALL_REALLY_USED_REGISTERS is defined.
9914 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
9915 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
9916 instead of call_really_used_regs.
9917 (csky_conditional_register_usage): Remove the old handling of
9918 call_used_regs and change the handling of call_really_used_regs
9919 to use call_used_regs instead.
9920 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
9921 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
9922 making a register fixed.
9923 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
9924 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
9925 instead of call_really_used_regs.
9926 (m32r_conditional_register_usage): Don't set call_used_regs when
9927 making a register fixed.
9928 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
9929 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
9930 instead of call_really_used_regs.
9931 (mips_interrupt_extra_call_saved_reg_p): Likewise.
9932 (mips_cfun_call_saved_reg_p): Likewise.
9933 (mips_swap_registers): Remove the old handling of call_used_regs
9934 and change the handling of call_really_used_regs to use call_used_regs
9936 (mips_conditional_register_usage): Likewise.
9937 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
9938 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
9939 instead of call_really_used_regs.
9940 (mn10300_get_live_callee_saved_regs): Likewise.
9941 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
9942 (mn10300_conditional_register_usage): Don't set call_used_regs when
9943 making a register fixed.
9944 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
9945 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
9946 Remove the old handling of call_used_regs and change the handling
9947 of call_really_used_regs to use call_used_regs instead.
9948 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
9949 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
9950 instead of call_really_used_regs.
9951 (s390_register_info_gprtofpr, s390_register_info): Likewise.
9952 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
9953 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
9954 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
9955 (s390_conditional_register_usage): Remove the old handling of
9956 call_used_regs and change the handling of call_really_used_regs
9957 to use call_used_regs instead.
9958 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
9959 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
9960 (sh_fix_range, reg_unused_after): Likewise.
9961 (sh_conditional_register_usage): Remove the old handling of
9962 call_used_regs and change the handling of call_really_used_regs
9963 to use call_used_regs instead.
9964 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
9965 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
9966 call_used_regs when making a register fixed.
9967 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
9968 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
9969 call_used_regs when making a register fixed.
9970 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
9971 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
9972 set call_used_regs when making a register fixed.
9973 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
9974 * config/visium/visium.c (visium_conditional_register_usage): Remove
9975 the old handling of call_used_regs and change the handling of
9976 call_really_used_regs to use call_used_regs instead.
9978 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9980 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
9981 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
9982 * reginfo.c (call_used_regs): New macro.
9984 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9986 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
9988 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
9989 (bpf_expand_epilogue): Likewise.
9990 * config/c6x/c6x.c (c6x_save_reg): Likewise.
9991 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
9992 (ft32_expand_epilogue): Likewise.
9993 * config/i386/i386.c (ix86_save_reg): Likewise.
9994 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
9995 (moxie_expand_epilogue): Likewise.
9996 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
9997 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
9998 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
10000 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10002 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
10003 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
10004 instead of testing call_used_regs directly.
10005 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
10006 (aarch64_components_for_bb): Likewise.
10007 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
10008 * config/arc/arc.c (arc_must_save_register): Likewise.
10009 (arc_epilogue_uses): Likewise.
10010 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
10011 (legitimize_pic_address, callee_saved_reg_p): Likewise.
10012 (arm_compute_save_reg0_reg12_mask): Likewise.
10013 (arm_compute_save_core_reg_mask): Likewise.
10014 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
10015 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
10016 (cmse_nonsecure_entry_clear_before_return): Likewise.
10017 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
10018 (arm_expand_epilogue): Likewise.
10019 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
10020 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
10021 (_reg_unused_after): Likewise.
10022 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
10023 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
10024 (add_to_reg, hwloop_optimize): Likewise.
10025 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
10026 (bpf_expand_epilogue): Likewise.
10027 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
10028 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
10029 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
10030 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
10031 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
10032 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
10033 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
10034 * config/frv/frv.c (frv_stack_info): Likewise.
10035 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
10036 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
10037 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
10038 (move_callee_saved_registers): Likewise.
10039 * config/h8300/h8300.c (byte_reg): Likewise.
10040 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
10041 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
10042 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
10043 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
10044 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
10045 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
10046 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
10047 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
10048 * config/m32c/m32c.c (need_to_save): Likewise.
10049 * config/m68k/m68k.c (m68k_save_reg): Likewise.
10050 * config/mcore/mcore.c (calc_live_regs): Likewise.
10051 * config/microblaze/microblaze.c (microblaze_must_save_register):
10053 * config/mmix/mmix.c (mmix_local_regno): Likewise.
10054 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
10055 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
10056 (mmix_expand_epilogue): Likewise.
10057 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
10058 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
10059 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
10060 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
10061 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
10062 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
10063 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
10064 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
10065 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
10066 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
10067 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
10068 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
10069 * config/rl78/rl78.c (need_to_save): Likewise.
10070 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
10071 (rs6000_stack_info, generate_set_vrsave): Likewise.
10072 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
10073 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
10074 * config/rx/rx.c (rx_get_stack_layout): Likewise.
10075 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
10076 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
10077 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
10078 (save_local_or_in_reg_p): Likewise.
10079 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
10080 (xstormy16_epilogue_uses): Likewise.
10081 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
10082 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
10083 * config/v850/v850.c (compute_register_save_size): Likewise.
10084 * config/vax/vax.c (vax_expand_prologue): Likewise.
10085 * config/visium/visium.c (visium_save_reg_p): Likewise.
10086 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
10087 * cselib.c (cselib_process_insn): Likewise.
10088 * df-scan.c (df_get_entry_block_def_set): Likewise.
10089 * function.c (aggregate_value_p): Likewise.
10090 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
10091 * ira-lives.c (process_bb_node_lives): Likewise.
10092 * ira.c (do_reload): Likewise.
10093 * lra-lives.c (process_bb_lives): Likewise.
10094 * lra-remat.c (lra_remat): Likewise.
10095 * lra.c (lra): Likewise.
10096 * postreload.c (reload_combine_recognize_pattern): Likewise.
10097 (reload_cse_move2add): Likewise.
10098 * recog.c (peep2_find_free_register): Likewise.
10099 * regrename.c (check_new_reg_p): Likewise.
10100 * reload.c (find_equiv_reg): Likewise.
10101 * reload1.c (reload, find_reg): Likewise.
10102 * sel-sched.c (init_hard_regs_data): Likewise.
10104 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10106 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
10107 regs_invalidated_by_call & ~fixed_reg_set instead of
10108 call_used_or_fixed_regs & ~fixed_reg_set.
10109 * config/sh/sh.c (output_stack_adjust): Likewise.
10111 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10113 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
10114 (call_used_reg_set): Delete.
10115 (call_used_or_fixed_regs): New macro.
10116 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
10117 of call_used_reg_set.
10118 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
10119 instead of call_used_regs.
10120 (save_call_clobbered_regs): Likewise.
10121 * cfgcleanup.c (old_insns_match_p): Likewise.
10122 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
10123 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
10125 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10126 * config/sh/sh.c (output_stack_adjust): Likewise.
10127 * final.c (collect_fn_hard_reg_usage): Likewise.
10128 * ira-build.c (ira_build): Likewise.
10129 * ira-color.c (calculate_saved_nregs): Likewise.
10130 (allocno_reload_assign, calculate_spill_cost): Likewise.
10131 * ira-conflicts.c (ira_build_conflicts): Likewise.
10132 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10133 * ira-lives.c (process_bb_node_lives): Likewise.
10134 * ira.c (setup_reg_renumber): Likewise.
10135 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
10136 * lra-constraints.c (need_for_call_save_p): Likewise.
10137 (need_for_split_p, inherit_in_ebb): Likewise.
10138 * lra-lives.c (process_bb_lives): Likewise.
10139 * lra-remat.c (call_used_input_regno_present_p): Likewise.
10140 * postreload.c (reload_combine): Likewise.
10141 * regrename.c (find_rename_reg): Likewise.
10142 * reload1.c (reload_as_needed): Likewise.
10143 * rtlanal.c (find_all_hard_reg_sets): Likewise.
10144 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10145 * shrink-wrap.c (requires_stack_frame_p): Likewise.
10147 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10149 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
10150 (no_caller_save_reg_set): Delete.
10151 * caller-save.c (init_caller_save): Don't initialize it.
10152 * ira-conflicts.c (ira_build_conflicts): Calculate
10153 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
10155 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10157 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
10158 (target_hard_regs::x_savable_regs): New field.
10159 (call_fixed_reg_set): Delete.
10160 (savable_regs): New macro,
10161 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
10162 (init_reg_sets_1): Likewise. Initialize savable_regs.
10163 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
10164 for all registers. Set savable_regs instead of call_fixed_reg_set.
10165 (setup_save_areas, save_call_clobbered_regs): Replace uses of
10166 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
10167 * config/sh/sh.c (output_stack_adjust): Likewise.
10169 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10171 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
10172 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
10173 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
10175 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10177 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
10178 * rtlanal.c (get_call_rtx_from): Likewise.
10179 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
10180 than the pattern to get_call_rtx_from.
10181 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
10182 an rtx_insn * instead of an rtx.
10183 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
10185 2019-09-10 Martin Liska <mliska@suse.cz>
10187 * common.opt: Use newly added WarnRemoved.
10188 * config/aarch64/aarch64.opt: Likewise.
10189 * config/arm/arm.opt: Likewise.
10190 * config/i386/i386.opt: Likewise.
10191 * config/ia64/ia64.opt: Likewise.
10192 * config/rs6000/rs6000.opt: Likewise.
10193 * doc/options.texi: Document WarnRemoved properly.
10194 * dwarf2out.c (gen_producer_string): Handle renamed
10195 OPT_SPECIAL_warn_removed.
10196 * lto-opts.c (lto_write_options): Likewise.
10197 * lto-wrapper.c (merge_and_complain): Likewise.
10198 * opts-common.c (decode_cmdline_option): Likewise.
10199 (prune_options): Likewise.
10200 (read_cmdline_option): Likewise.
10201 (control_warning_option): Likewise.
10202 * opts.c (print_filtered_help): Likewise.
10203 * optc-gen.awk: Parse for WarnRemoved and make usage
10204 of Deprecated an error.
10205 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
10207 2019-09-10 Arnaud Charlet <charlet@adacore.com>
10209 * doc/install.texi: Fix syntax for html generation.
10211 2019-09-10 Jakub Jelinek <jakub@redhat.com>
10213 PR middle-end/91680
10214 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
10215 the shift type to type.
10217 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10219 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
10221 (stack_protect_combined_test_insn): Likewise.
10223 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10224 Mickaël Guêné <mickael.guene@st.com>
10226 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
10227 * config/arm/arm.md (FDPIC_REGNUM): New constant.
10228 (load_tp_soft_fdpic): New pattern.
10229 (load_tp_soft): Disable in FDPIC mode.
10231 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10232 Mickaël Guêné <mickael.guene@st.com>
10234 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
10235 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
10236 (arm_call_tls_get_addr): Add FDPIC support.
10237 (legitimize_tls_address): Likewise.
10238 (arm_emit_tls_decoration): Likewise.
10240 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10241 Mickaël Guêné <mickael.guene@st.com>
10243 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
10245 (arm_trampoline_init): Likewise.
10246 (arm_trampoline_adjust_address): Likewise.
10247 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
10249 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10250 Mickaël Guêné <mickael.guene@st.com>
10252 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
10253 (legitimize_pic_address): Enforce binding rules on function
10254 pointers in FDPIC mode.
10255 (arm_assemble_integer): Likewise.
10257 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10258 Mickaël Guêné <mickael.guene@st.com>
10260 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
10261 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
10264 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10265 Mickaël Guêné <mickael.guene@st.com>
10267 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
10270 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10271 Mickaël Guêné <mickael.guene@st.com>
10273 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
10275 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
10277 * config/arm/arm.c (arm_option_override): Define pic register to
10279 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
10280 have no decl or go through PLT.
10281 (calculate_pic_address_constant): New function.
10282 (legitimize_pic_address): Call calculate_pic_address_constant.
10283 (arm_load_pic_register): Handle TARGET_FDPIC.
10284 (arm_is_segment_info_known): New function.
10285 (arm_pic_static_addr): Add support for FDPIC.
10286 (arm_load_function_descriptor): New function.
10287 (arm_emit_call_insn): Add support for FDPIC.
10288 (arm_assemble_integer): Add support for FDPIC.
10289 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
10290 Define. (FDPIC_REGNUM): New define.
10291 * config/arm/arm.md (call): Add support for FDPIC.
10292 (call_value): Likewise.
10293 (restore_pic_register_after_call): New pattern.
10294 (untyped_call): Disable if FDPIC.
10295 (untyped_return): Likewise.
10296 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
10298 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10299 Mickaël Guêné <mickael.guene@st.com>
10301 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
10302 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
10303 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
10304 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
10305 (CC1_SPEC): Use FDPIC_CC1_SPEC.
10306 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
10307 * config/arm/uclinuxfdpiceabi.h: New file.
10309 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10311 * config.gcc: Handle *-*-uclinuxfdpiceabi.
10313 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10314 Mickaël Guêné <mickael.guene@st.com>
10316 * config/arm/arm.opt: Add -mfdpic option.
10317 * doc/invoke.texi: Add documentation for -mfdpic.
10319 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10321 * expmed.c (extract_bit_field): Update function comment
10323 * expr.c (expand_expr_real): Update function comment
10325 (expand_misaligned_mem_ref): New helper function.
10326 (expand_expr_real_2): Use expand_misaligned_mem_ref.
10327 Remove duplicate assignment to "base" at case MEM_REF.
10328 Remove a shadowed variable "unsignedp" at case VCE.
10330 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10332 * regset.h (regs_invalidated_by_call_regset): Delete.
10333 (fixed_reg_set_regset): Likewise.
10334 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
10335 (fixed_reg_set_regset, persistent_obstack): Likewise.
10336 (init_reg_sets_1, globalize_reg): Update accordingly.
10337 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
10338 instead of a bitmap.
10339 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
10340 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
10341 instead of regs_invalidated_by_call_regset.
10342 (df_lr_confluence_n, df_md_confluence_n): Likewise.
10343 * df-scan.c (df_scan_start_dump): Likewise.
10344 * dse.c (copy_fixed_regs): Likewise.
10345 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
10347 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10349 * array-traits.h: New file.
10350 * coretypes.h (array_traits, bitmap_view): New types.
10351 * bitmap.h: Include "array-traits.h"
10352 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
10353 (base_bitmap_view, bitmap_view): New classes.
10354 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
10355 * hard-reg-set.h: Include array-traits.h.
10356 (array_traits<HARD_REG_SET>): New struct.
10357 * regset.h (IOR_REG_SET_HRS): New macro.
10358 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
10359 rather than iterating over each hard register.
10360 * sched-deps.c (sched_analyze_insn): Likewise.
10361 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
10363 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10365 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
10366 instead of a HARD_REG_SET *.
10367 * ira-build.c (ior_hard_reg_conflicts): Likewise.
10368 (ira_build): Update call accordingly.
10369 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
10371 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10373 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
10374 (HARD_REG_SET::operator!=): Likewise.
10375 (hard_reg_set_equal_p): Delete.
10376 * cfgcleanup.c (old_insns_match_p): Use == instead of
10377 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
10378 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
10379 (add_allocno_hard_regs_to_forest): Likewise.
10380 (setup_allocno_available_regs_num): Likewise.
10381 * ira.c (setup_pressure_classes): Likewise.
10382 (setup_allocno_and_important_classes): Likewise.
10383 (setup_reg_class_relations): Likewise.
10384 * lra-lives.c (process_bb_lives): Likewise.
10385 * reg-stack.c (change_stack, convert_regs_1): Likewise.
10387 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10389 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
10390 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
10391 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
10392 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
10394 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
10395 * ira.c (setup_reg_renumber): Likewise.
10396 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10397 * regrename.c (regrename_find_superclass): Likewise.
10398 * reload1.c (find_reg): Likewise.
10400 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10402 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
10403 * caller-save.c (setup_save_areas): Use "&~" instead of
10404 AND_COMPL_HARD_REG_SET.
10405 (save_call_clobbered_regs): Likewise.
10406 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
10408 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10409 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10410 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
10411 * config/mips/mips.c (mips_class_max_nregs): Likewise.
10412 (mips_conditional_register_usage): Likewise.
10413 * config/sh/sh.c (output_stack_adjust): Likewise.
10414 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
10415 (setup_profitable_hard_regs): Likewise.
10416 (get_conflict_and_start_profitable_regs): Likewise.
10417 * ira-conflicts.c (print_allocno_conflicts): Likewise.
10418 (ira_build_conflicts): Likewise.
10419 * ira-costs.c (restrict_cost_classes): Likewise.
10420 (setup_regno_cost_classes_by_aclass): Likewise.
10421 * ira-lives.c (process_bb_node_lives): Likewise.
10422 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
10423 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
10424 (setup_allocno_and_important_classes, setup_class_translate_array)
10425 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
10427 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10428 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
10429 (process_alt_operands, inherit_in_ebb): Likewise.
10430 * lra-eliminations.c (update_reg_eliminate): Likewise.
10431 * lra-lives.c (process_bb_lives): Likewise.
10432 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
10433 * resource.c (find_dead_or_set_registers): Likewise.
10434 (mark_target_live_regs): Likewise.
10435 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
10436 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10437 (implicit_clobber_conflict_p): Likewise.
10438 * shrink-wrap.c (requires_stack_frame_p): Likewise.
10439 (try_shrink_wrapping): Likewise.
10441 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10443 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
10444 (HARD_REG_SET::operator|=): Likewise.
10445 (IOR_HARD_REG_SET): Delete.
10446 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
10448 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
10449 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
10450 * final.c (collect_fn_hard_reg_usage): Likewise.
10451 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
10452 * ira-build.c (merge_hard_reg_conflicts): Likewise.
10453 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
10454 (propagate_some_info_from_allocno): Likewise.
10455 (copy_info_to_removed_store_destinations): Likewise.
10456 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
10457 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
10458 (fast_allocation): Likewise.
10459 * ira-conflicts.c (ira_build_conflicts): Likewise.
10460 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
10461 (process_bb_node_lives): Likewise.
10462 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
10463 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10464 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
10465 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
10466 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
10467 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
10468 (process_bb_lives): Likewise.
10469 * lra-spills.c (assign_spill_hard_regs): Likewise.
10470 * postreload.c (reload_combine): Likewise.
10471 * reginfo.c (init_reg_sets_1): Likewise.
10472 * regrename.c (merge_overlapping_regs, find_rename_reg)
10473 (merge_chains): Likewise.
10474 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
10475 (find_reload_regs, finish_spills, choose_reload_regs_init)
10476 (emit_reload_insns): Likewise.
10477 * reorg.c (redundant_insn): Likewise.
10478 * resource.c (find_dead_or_set_registers, mark_set_resources)
10479 (mark_target_live_regs): Likewise.
10480 * rtlanal.c (find_all_hard_reg_sets): Likewise.
10481 * sched-deps.c (sched_analyze_insn): Likewise.
10482 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10483 (find_best_reg_for_expr): Likewise.
10484 * shrink-wrap.c (try_shrink_wrapping): Likewise.
10486 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10488 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
10489 (HARD_REG_SET::operator&): Likewise.
10490 (AND_HARD_REG_SET): Delete.
10491 * caller-save.c (setup_save_areas): Use "&" instead of
10493 (save_call_clobbered_regs): Likewise.
10494 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10495 * config/m32c/m32c.c (reduce_class): Likewise.
10496 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
10497 * final.c (get_call_reg_set_usage): Likewise.
10498 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
10499 (setup_left_conflict_sizes_p): Likewise.
10500 * ira-conflicts.c (print_allocno_conflicts): Likewise.
10501 (ira_build_conflicts): Likewise.
10502 * ira-costs.c (restrict_cost_classes): Likewise.
10503 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
10504 (setup_reg_class_relations): Likewise.
10505 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
10506 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
10507 * resource.c (find_dead_or_set_registers): Likewise.
10508 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10510 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10512 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
10513 (COMPL_HARD_REG_SET): Delete.
10514 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
10515 of COMPL_HARD_REG_SET.
10516 (try_rename_operands): Likewise.
10517 * config/sh/sh.c (push_regs): Likewise.
10518 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10519 * lra-constraints.c (contains_reg_p): Likewise.
10520 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
10522 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10524 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
10525 * caller-save.c (save_call_clobbered_regs): Use assignment instead
10526 of COPY_HARD_REG_SET.
10527 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
10528 (epiphany_conditional_register_usage): Likewise.
10529 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10530 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10531 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10532 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
10533 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
10534 * config/mips/mips.c (mips_class_max_nregs): Likewise.
10535 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
10536 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
10537 * config/sh/sh.c (output_stack_adjust): Likewise.
10538 * final.c (collect_fn_hard_reg_usage): Likewise.
10539 (get_call_reg_set_usage): Likewise.
10540 * ira-build.c (ira_create_object, remove_low_level_allocnos)
10541 (ira_flattening): Likewise.
10542 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
10543 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
10544 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
10545 (ira_reassign_pseudos): Likewise.
10546 * ira-conflicts.c (print_allocno_conflicts): Likewise.
10547 (ira_build_conflicts): Likewise.
10548 * ira-costs.c (restrict_cost_classes): Likewise.
10549 (setup_regno_cost_classes_by_aclass): Likewise.
10550 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
10551 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
10552 (setup_stack_reg_pressure_class, setup_pressure_classes)
10553 (setup_allocno_and_important_classes, setup_class_translate_array)
10554 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
10555 (ira_setup_eliminable_regset): Likewise.
10556 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10557 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
10558 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
10559 (process_alt_operands, inherit_in_ebb): Likewise.
10560 * lra-lives.c (process_bb_lives): Likewise.
10561 * lra-spills.c (assign_spill_hard_regs): Likewise.
10562 * lra.c (lra): Likewise.
10563 * mode-switching.c (new_seginfo): Likewise.
10564 * postreload.c (reload_combine): Likewise.
10565 * reg-stack.c (straighten_stack): Likewise.
10566 * reginfo.c (save_register_info, restore_register_info): Likewise.
10567 (init_reg_sets_1, record_subregs_of_mode): Likewise
10568 * regrename.c (create_new_chain, rename_chains): Likewise.
10569 * reload1.c (order_regs_for_reload, find_reg): Likewise.
10570 (find_reload_regs): Likewise.
10571 * resource.c (find_dead_or_set_registers): Likewise.
10572 (mark_target_live_regs): Likewise.
10573 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10575 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10577 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
10578 (note_pattern_stores): Declare.
10579 (note_stores): Take an rtx_insn *.
10580 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
10581 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
10582 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
10583 (note_stores): Take an rtx_insn * as argument and process
10584 CALL_INSN_FUNCTION_USAGE. Rename old function to...
10585 (note_pattern_stores): ...this.
10586 (find_first_parameter_load): Pass the insn rather than
10587 its pattern to note_stores.
10588 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
10589 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
10590 (insert_one_insn): Likewise.
10591 * combine.c (combine_instructions): Likewise.
10592 (likely_spilled_retval_p): Likewise.
10593 (try_combine): Use note_pattern_stores instead of note_stores.
10594 (record_dead_and_set_regs): Pass the insn rather than its pattern
10596 (reg_dead_at_p): Likewise.
10597 * config/bfin/bfin.c (workaround_speculation): Likewise.
10598 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
10599 rather than an rtx.
10600 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
10601 instead of note_stores.
10602 (frv_optimize_membar_local): Pass the insn rather than its pattern
10604 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10605 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
10606 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
10607 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
10608 (mips_reorg_process_insns): Likewise.
10609 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
10610 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
10612 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
10613 its pattern to note_stores.
10614 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
10616 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
10617 the insn to note_stores.
10618 (prescan_insns_for_dce): Update call accordingly.
10619 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
10621 * df-problems.c (can_move_insns_across): Likewise.
10622 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
10623 * function.c (assign_parm_setup_reg): Likewise.
10624 * gcse-common.c (record_last_mem_set_info_common): Likewise.
10625 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
10626 (single_set_gcse): Likewise.
10627 * ira.c (validate_equiv_mem): Likewise.
10628 (update_equiv_regs): Use note_pattern_stores rather than note_stores
10630 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
10631 pattern to note_stores.
10632 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
10633 * loop-iv.c (simplify_using_initial_values): Likewise.
10634 * mode-switching.c (optimize_mode_switching): Likewise.
10635 * optabs.c (emit_libcall_block_1): Likewise.
10636 (expand_atomic_compare_and_swap): Likewise.
10637 * postreload-gcse.c (load_killed_in_block_p): Likewise.
10638 (record_opr_changes): Likewise. Remove explicit handling of
10639 CALL_INSN_FUNCTION_USAGE.
10640 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
10641 * regcprop.c (kill_clobbered_values): Likewise.
10642 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
10644 * regrename.c (build_def_use): Likewise.
10645 * reload1.c (reload): Use note_pattern_stores instead of note_stores
10646 for mark_not_eliminable.
10647 (reload_as_needed): Pass the insn rather than its pattern
10649 (emit_output_reload_insns): Likewise.
10650 * resource.c (mark_target_live_regs): Likewise.
10651 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
10652 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
10653 instead of note_stores.
10654 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
10655 its pattern to note_stores.
10656 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
10657 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
10659 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10661 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
10662 than a #define. Use a structure rather than an array as the
10663 fallback definition. Remove special cases for low array sizes.
10664 (const_hard_reg_set): New typedef.
10665 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
10666 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
10667 (hard_reg_set_empty_p): Likewise.
10668 (SET_HARD_REG_BIT): Use a function rather than a macro to
10669 handle the case in which HARD_REG_SET is a structure.
10670 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
10671 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
10672 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
10673 (IOR_COMPL_HARD_REG_SET): Likewise.
10674 (hard_reg_set_iterator::pset): Constify the pointer target.
10675 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
10676 of a "const HARD_REG_SET". Update the handling of non-integer
10678 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
10679 * reload.h: Likewise.
10680 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
10681 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
10682 of a "const HARD_REG_SET".
10683 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
10684 (range_in_hard_reg_set_p): Likewise.
10685 * ira-costs.c (restrict_cost_classes): Likewise.
10686 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
10687 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10688 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
10689 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
10690 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
10691 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
10692 take an unsigned int and open-code the HARD_REG_SET operations.
10694 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10696 * Makefile.in (OBJS): Remove bt-load.o.
10697 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
10698 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
10699 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
10700 document that the option no longer does anything.
10701 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
10702 * target.def (branch_target_register_class): Delete.
10703 (branch_target_register_callee_saved): Likewise.
10704 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
10705 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
10706 * doc/tm.texi: Regenerate.
10707 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
10708 (make_pass_branch_target_load_optimize2): Likewise.
10709 * passes.def (pass_branch_target_load_optimize1): Likewise.
10710 (pass_branch_target_load_optimize2): Likewise.
10711 * targhooks.h (default_branch_target_register_class): Likewise.
10712 * targhooks.c (default_branch_target_register_class): Likewise.
10713 * opt-suggestions.c (test_completion_valid_options): Remove
10714 -fbtr-bb-exclusive from the list of test options.
10715 * bt-load.c: Remove.
10717 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
10719 * match.pd: Add flag_unsafe_math_optimizations check
10720 before deciding on the widest type in a binary math operation.
10722 2019-09-09 Martin Liska <mliska@suse.cz>
10724 * config/i386/i386.opt: Update comment of removed
10725 options that are preserved only for backward
10728 2019-09-09 Jakub Jelinek <jakub@redhat.com>
10731 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
10732 instead of __v16qs.
10735 * config/i386/avxintrin.h (__v32qs): New typedef.
10736 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
10737 instead of __v32qi.
10739 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10741 * doc/invoke.texi (Option Summary): Cover eBPF.
10742 (eBPF Options): New section.
10743 * doc/extend.texi (BPF Built-in Functions): Likewise.
10744 (BPF Kernel Helpers): Likewise.
10746 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10748 * config.gcc: Support for bpf-*-* targets.
10749 * common/config/bpf/bpf-common.c: New file.
10750 * config/bpf/t-bpf: Likewise.
10751 * config/bpf/predicates.md: Likewise.
10752 * config/bpf/constraints.md: Likewise.
10753 * config/bpf/bpf.opt: Likewise.
10754 * config/bpf/bpf.md: Likewise.
10755 * config/bpf/bpf.h: Likewise.
10756 * config/bpf/bpf.c: Likewise.
10757 * config/bpf/bpf-protos.h: Likewise.
10758 * config/bpf/bpf-opts.h: Likewise.
10759 * config/bpf/bpf-helpers.h: Likewise.
10760 * config/bpf/bpf-helpers.def: Likewise.
10762 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10764 * doc/sourcebuild.texi (Effective-Target Keywords): Document
10767 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10769 * opt-functions.awk (integer_range_info): Make sure values are in
10770 numeric context before operating with them.
10772 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
10774 * genemit.c (gen_split): Print the filename and line number where the
10775 splitter (or peephole2) was defined, to the dump file.
10777 2019-09-07 Jakub Jelinek <jakub@redhat.com>
10779 PR tree-optimization/91665
10780 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
10781 incompatible with the type of PHI result.
10783 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
10786 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
10787 gen_unaligned_storedi for 4-byte aligned addresses.
10789 2019-09-06 Jim Wilson <jimw@sifive.com>
10791 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
10794 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
10796 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
10798 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
10800 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
10801 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
10803 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
10806 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
10807 cost of SSE->integer and integer->SSE moves from 2 to 6.
10808 (core_cost): Ditto.
10810 2019-09-06 Jakub Jelinek <jakub@redhat.com>
10812 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
10813 before testing TYPE_TRANSPARENT_AGGR.
10814 * calls.c (initialize_argument_information, load_register_parameters):
10817 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
10819 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
10821 (cmp_ior): Likewise.
10823 2019-09-06 Martin Liska <mliska@suse.cz>
10825 * doc/match-and-simplify.texi: Separate tuples with ;.
10827 2019-09-06 Martin Liska <mliska@suse.cz>
10830 * Makefile.in: Remove tlink.o.
10831 * collect2.c (do_link): New function isolated
10834 * collect2.h (do_tlink): Remove declaration of do_tlink.
10835 * doc/extend.texi: Remove documentation of -frepo.
10836 * doc/invoke.texi: Likewise.
10837 * doc/sourcebuild.texi: Remove cleanup-repo-files.
10840 2019-09-05 Jakub Jelinek <jakub@redhat.com>
10841 Jim Wilson <jimw@sifive.com>
10844 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
10845 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
10846 paradoxical_subreg_p (operands[0]).
10847 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
10848 use as intermediate value.
10850 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
10852 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
10853 (sync_compare_and_swap<mode>_insn): Likewise.
10855 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
10857 PR middle-end/91615
10858 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
10859 without movmisalign optab.
10861 2019-09-05 Jakub Jelinek <jakub@redhat.com>
10863 PR middle-end/91001
10864 PR middle-end/91105
10865 PR middle-end/91106
10866 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
10867 types, use type of their first field instead of type of
10868 args[i].tree_value.
10870 2019-09-05 Richard Biener <rguenther@suse.de>
10872 PR rtl-optimization/91656
10873 * postreload-gcse.c (record_last_mem_set_info): Revert addition
10876 2019-09-05 Richard Biener <rguenther@suse.de>
10878 PR middle-end/90501
10879 * tree-inline.c (declare_return_variable): Mark the return
10880 slot as addressable after building an address of it.
10882 2019-09-05 Arnaud Charlet <charlet@adacore.com>
10884 * doc/install.texi: Update and clarify requirements to build GNAT.
10886 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
10888 PR middle-end/91577
10889 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
10890 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
10891 call to be in memory.
10892 (pass_expand::execute): Call discover_nonconstant_array_refs before
10893 setting currently_expanding_to_rtl.
10895 2019-09-04 Caroline Tice <cmtice@google.com>
10897 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
10898 specified together.
10900 2019-09-04 Marek Polacek <polacek@redhat.com>
10902 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
10904 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
10907 * config/i386/i386.c (inline_secondary_memory_needed): Return true
10908 for QI and HImode moves between SSE and general registers.
10910 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10913 * doc/invoke.texi: Document -Wenum-conversion.
10915 2019-09-04 Richard Biener <rguenther@suse.de>
10917 PR rtl-optimization/36262
10918 * postreload-gcse.c: Include intl.h and gcse.h.
10919 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
10920 to avoid linear list walk.
10921 (record_last_mem_set_info): Gate off if not computing transparentness.
10922 (get_bb_avail_insn): If transparentness isn't computed give up
10924 (gcse_after_reload_main): Skip compute_transp and extended PRE
10925 if gcse_or_cprop_is_too_expensive says so.
10927 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10929 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
10931 (msp430_select_section): Handle decls with the "noinit" attribute with
10932 default_elf_select_section.
10933 Handle SECCAT_RODATA_MERGE_* section types with
10934 default_elf_select_section.
10935 Add comments about handling of unsupported section types.
10936 (msp430_section_type_flags): Remove handling of the noinit section.
10938 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10940 * config/msp430/msp430.c (msp430_attr): Remove warnings about
10941 conflicting msp430-specific attributes.
10942 (msp430_section_attr): Likewise.
10943 Add warnings about conflicts with generic "noinit" and "section"
10945 Fix grammar in -mlarge error message.
10946 (msp430_data_attr): Rename to msp430_persist_attr.
10947 Add warnings about conflicts with generic "noinit" and "section"
10949 Add warning for when variable is not initialized.
10950 Chain conditionals which prevent the attribute being added.
10951 (ATTR_EXCL): New helper.
10952 (attr_reent_exclusions): New exclusion table.
10953 (attr_naked_exclusions): Likewise.
10954 (attr_crit_exclusions): Likewise.
10955 (attr_lower_exclusions): Likewise.
10956 (attr_upper_exclusions): Likewise.
10957 (attr_either_exclusions): Likewise.
10958 (attr_persist_exclusions): Likewise.
10959 (msp430_attribute_table): Update with exclusion rules.
10960 (msp430_output_aligned_decl_common): Don't output common symbol if decl
10963 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10965 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
10966 (msp430_handle_generic_attribute): New function.
10967 * doc/tm.texi: Regenerate.
10968 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
10969 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
10970 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
10971 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
10973 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
10975 PR tree-optimization/91504
10976 * match.pd: Add ((~a & b) ^a) --> (a | b).
10978 2019-09-03 Jakub Jelinek <jakub@redhat.com>
10981 * config/i386/i386-expand.c (split_double_mode): If there is more than
10982 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
10983 already split matching MEM operand instead of calling adjust_address
10986 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
10988 * config.gcc: Obsolete spu target. Remove references to spu.
10989 * configure.ac: Remove references to spu.
10990 * configure: Regenerate.
10991 * config/spu/: Remove directory.
10992 * common/config/spu/: Remove directory.
10994 * doc/extend.texi: Remove references to spu.
10995 * doc/invoke.texi: Likewise.
10996 * doc/md.texi: Likewise.
10997 * doc/sourcebuild.texi: Likewise.
10999 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11001 PR middle-end/91603
11002 PR middle-end/91612
11003 PR middle-end/91613
11004 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
11005 and SSA_NAME referring to CONSTANT_P correctly.
11007 2019-09-03 Richard Biener <rguenther@suse.de>
11009 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
11010 (vn_nary_op_insert): Likewise.
11011 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
11012 (vn_nary_op_lookup): Likewise.
11013 (vn_nary_op_insert): Likewise.
11015 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
11017 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
11018 (*op0, 1) instead of XEXP (*op1, 0).
11020 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11022 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
11023 (aarch64_fjcvtzs): New define_insn.
11024 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
11025 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
11027 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
11028 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
11029 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
11030 __ARM_FEATURE_JCVT where appropriate.
11031 * config/aarch64/arm_acle.h (__jcvt): Define.
11033 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11035 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
11036 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
11037 (aarch64_<frintnzs_op><mode>): New define_insn.
11038 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
11039 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
11040 __ARM_FEATURE_FRINT when appropriate.
11041 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
11042 frint32x, frint64z, frint64x.
11043 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
11044 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
11045 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
11046 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
11047 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
11048 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
11049 * config/aarch64/iterators.md (VSFDF): Define.
11050 (FRINTNZX): Likewise.
11051 (frintnzs_op): Likewise.
11053 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
11055 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
11056 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
11058 * config/aarch64/aarch64-tune.md: Regenerated.
11059 * doc/invoke.texi: Document the new processors.
11061 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11063 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
11067 (sve2-sm4): Likewise.
11068 (sveaes): Likewise.
11069 (svesha3): Likewise.
11070 (svebitperm): Likewise.
11072 2019-09-03 Jakub Jelinek <jakub@redhat.com>
11073 Richard Biener <rguenther@suse.de>
11075 PR tree-optimization/91597
11076 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
11077 BIT_AND_EXPR optimization for pointers, even if both operand
11078 ranges don't include NULL, the result can be NULL.
11080 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
11082 PR middle-end/91605
11083 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
11084 (non_mem_decl_p): ...this.
11085 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
11086 (expand_assignment): Call mem_ref_referes_to_non_mem_p
11087 unconditionally as before.
11089 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
11092 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
11093 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
11094 * tree.def (LTGT_EXPR): Likewise.
11095 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
11097 2019-09-02 Jakub Jelinek <jakub@redhat.com>
11100 * fold-const.c (range_check_type): For enumeral and boolean
11101 type, pass 1 to type_for_size langhook instead of
11102 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
11103 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
11104 (build_range_check): Don't call unsigned_type_for for pointer types.
11105 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
11106 range_check_type result.
11108 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
11110 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
11111 (replace_ref): Do not replace a chain of only two candidates which are
11112 valid memory references.
11114 2019-09-02 Martin Liska <mliska@suse.cz>
11116 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
11117 Bail out when we'll end up with the same number of clusters as
11119 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
11120 (jump_table_cluster::can_be_handled): Remove the guard
11121 as it's already handled in ::is_enabled. Allocate output
11122 after early bail out.
11124 2019-09-02 Martin Liska <mliska@suse.cz>
11126 PR gcov-profile/91601
11127 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
11128 (path_contains_zero_or_negative_cycle_arc): ... this and handle
11129 also negative edges.
11130 (circuit): Handle also negative edges as they can happen
11131 in some situations.
11133 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
11136 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
11137 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
11138 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
11140 2019-09-01 Jakub Jelinek <jakub@redhat.com>
11142 PR middle-end/91623
11143 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
11144 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
11145 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
11149 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
11150 GIMPLE_ASM TREE_LIST operands.
11152 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
11154 * doc/generic.texi (Unary and Binary Expressions): Mark up
11155 an instance of TYPE_MIN.
11157 2019-08-31 Stafford Horne <shorne@gmail.com>
11159 * config/or1k/constraints.md (t): New constraint.
11160 * config/or1k/or1k.h (GOT_REGS): New register class.
11161 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
11163 2019-08-30 Jim Wilson <jimw@sifive.com>
11165 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
11166 and -fpic and -mplt then disable -msave-restore and warn.
11168 2019-08-30 Martin Sebor <msebor@redhat.com>
11170 PR middle-end/91599
11171 * tree-ssa-strlen.c (handle_store): Use a fallback location if
11172 the statement doesn't have one.
11173 * gimple-pretty-print.c (percent_G_format): Same.
11175 PR middle-end/91584
11176 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
11177 before using them to validate MEM_REF offset.
11179 2019-08-30 Marek Polacek <polacek@redhat.com>
11181 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
11183 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
11185 * config/arm/arm.md (unaligned_loaddi,
11186 unaligned_storedi): New unspec insn patterns.
11187 * config/arm/neon.md (unaligned_storev8qi): Likewise.
11188 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
11189 and unaligned_storedi for 4-byte aligned memory.
11190 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
11191 4-byte aligned memory.
11193 2019-08-30 Martin Jambor <mjambor@suse.cz>
11195 tree-optimization/91579
11196 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
11197 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
11199 (arg_needs_copy_p): Removed.
11200 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
11202 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
11204 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
11206 * config/i386/i386-features.c
11207 (general_scalar_chain::compute_convert_gain):
11208 Correct cost for double-word shifts.
11209 (general_scalar_to_vector_candidate_p): Reject count operands
11210 greater or equal to mode bitsize.
11212 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
11214 * config/i386/i386.c (inline_secondary_memory_needed): Return true
11215 for moves between SSE and non-general registers and between
11216 mask and non-general registers.
11217 (ix86_register_move_cost): Remove stalled comment.
11219 2019-08-29 Richard Biener <rguenther@suse.de>
11221 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
11222 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
11224 2019-08-29 Richard Biener <rguenther@suse.de>
11227 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
11228 Do not emit scalar copies for debug-insns, instead replace
11229 their uses with the reg copy used in the chain or reset them
11230 if there is a reaching definition outside of the chain as well.
11232 2019-08-29 Jakub Jelinek <jakub@redhat.com>
11235 * config/i386/i386-expand.c (expand_vec_perm_movs,
11236 expand_vec_perm_blend, expand_vec_perm_vpermil,
11237 expand_vec_perm_pshufb, expand_vec_perm_1,
11238 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
11239 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
11240 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
11241 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
11242 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
11243 comments - replace ix86_expand_vec_perm_builtin_1 with
11244 ix86_expand_vec_perm_const_1.
11245 (expand_vec_perm2_vperm2f128_vblend): New function.
11246 (ix86_expand_vec_perm_const_1): New forward declaration. Call
11247 expand_vec_perm2_vperm2f128_vblend as last resort.
11248 (canonicalize_perm): Formatting fix.
11250 PR tree-optimization/91351
11251 * tree-cfg.c (generate_range_test): Use range_check_type instead of
11253 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
11254 range_check_type returns NULL.
11255 * tree-switch-conversion.c (switch_conversion::build_one_array):
11256 Use range_check_type instead of unsigned_type_for, don't perform
11257 linear opt if it returns NULL.
11258 (bit_test_cluster::find_bit_tests): Formatting fix.
11259 (bit_test_cluster::emit): Use range_check_type instead of
11261 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
11264 2019-08-29 Richard Biener <rguenther@suse.de>
11266 PR tree-optimization/91568
11267 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
11268 (vect_update_max_nunits): Add overload for poly_uint64.
11269 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
11270 (vect_build_slp_tree): Record max_nunits into the subtree
11271 and merge it upwards.
11272 (vect_print_slp_tree): Print max_nunits.
11274 2019-08-28 Marek Polacek <polacek@redhat.com>
11276 Implement P1152R4: Deprecating some uses of volatile.
11278 * doc/invoke.texi: Document -Wvolatile.
11280 2019-08-28 Marek Polacek <polacek@redhat.com>
11282 PR c++/91360 - Implement C++20 P1143R2: constinit.
11283 * doc/invoke.texi: Document -Wc++20-compat.
11285 2019-08-28 Martin Sebor <msebor@redhat.com>
11287 PR tree-optimization/91457
11288 * builtins.c (component_size): New function.
11289 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
11290 * builtins.h (compute_objsize): Add argument.
11291 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
11292 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
11293 (vrp_prop::check_mem_ref): Same.
11294 (vrp_prop::search_for_addr_array): Set no-warning bit.
11295 (check_array_bounds): Same.
11297 2019-08-28 Martin Sebor <msebor@redhat.com>
11300 * opts-common.c (option_enabled): Correct checking for language
11303 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
11305 * config/i386/i386.c (ix86_register_move_cost): Do not
11306 limit the cost of moves to/from XMM register to minimum 8.
11308 2019-08-28 Martin Jambor <mjambor@suse.cz>
11311 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
11312 checking assert a normal assert to test it really is redundant.
11313 * ipa-prop.c (compute_complex_assign_jump_func): Removed
11315 (update_jump_functions_after_inlining): Removed combining unary
11316 arithmetic operations with an ancestor jump function.
11317 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
11320 2019-08-28 Richard Biener <rguenther@suse.de>
11322 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
11323 add the MD problem.
11325 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
11326 Richard Biener <rguenther@suse.de>
11328 * expr.c (expand_assignment): Handle misaligned DECLs.
11329 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
11330 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
11332 (assign_parm_setup_stack): Allocate properly aligned stack slots.
11333 * varasm.c (build_constant_desc): Align constants of misaligned types.
11334 * config/arm/predicates.md (aligned_operand): New predicate.
11335 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
11336 aligned_operand to check restrictions on memory addresses.
11337 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
11338 * config/arm/vec-common.md (mov<VALL>): Likewise.
11340 2019-08-28 Jakub Jelinek <jakub@redhat.com>
11343 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
11344 V_128 iterator instead of VI_128.
11346 2019-08-28 Martin Liska <mliska@suse.cz>
11348 PR tree-optimization/90970
11349 * builtins.c (check_access): Remove assignment to maxread
11350 as it hasn't been used since when it was introduced in r255755.
11352 2019-08-27 Martin Sebor <msebor@redhat.com>
11354 PR tree-optimization/91567
11355 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
11356 of unknown strings.
11357 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
11358 to PTRDIFF_MAX - 2.
11360 2019-08-27 Jeff Law <law@redhat.com>
11362 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
11363 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
11365 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
11368 * config/i386/i386-features.c (convert_scalars_to_vector):
11369 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
11370 crtl->stack_realign_processed. Update crtl->drap_reg by calling
11371 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
11372 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
11374 2019-08-27 Richard Biener <rguenther@suse.de>
11376 * config/i386/i386-features.h
11377 (general_scalar_chain::~general_scalar_chain): Add.
11378 (general_scalar_chain::insns_conv): New bitmap.
11379 (general_scalar_chain::n_sse_to_integer): New.
11380 (general_scalar_chain::n_integer_to_sse): Likewise.
11381 (general_scalar_chain::make_vector_copies): Adjust signature.
11382 * config/i386/i386-features.c
11383 (general_scalar_chain::general_scalar_chain): Outline,
11384 initialize new members.
11385 (general_scalar_chain::~general_scalar_chain): New.
11386 (general_scalar_chain::mark_dual_mode_def): Record insns
11387 we need to insert conversions at and count them.
11388 (general_scalar_chain::compute_convert_gain): Account
11389 for conversion instructions at chain boundary.
11390 (general_scalar_chain::make_vector_copies): Generate a single
11391 copy for a def by a specific insn.
11392 (general_scalar_chain::convert_registers): First populate
11393 defs_map, then make copies at out-of chain insns.
11395 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
11397 * config/arm/arm.md (stack_protect_set_insn): Add security-related
11399 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
11401 2019-08-27 Martin Liska <mliska@suse.cz>
11403 * cgraph.c (cgraph_node::remove): Remove dead assignment before
11405 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
11406 Enclose in anonymous namespace.
11407 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
11408 hard_register initialization in braces.
11409 * tree-vrp.h (value_range_base::supports_type_p): Return false
11410 for function with boolean return type.
11412 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
11414 * config/i386/i386.c (emit_i387_cw_initialization)
11415 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
11417 2019-08-26 Martin Sebor <msebor@redhat.com>
11420 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
11421 (sprintf_dom_walker): Remove class.
11422 (get_int_range): Make argument const.
11423 (directive::fmtfunc, directive::set_precision): Same.
11424 (format_none): Same.
11425 (build_intmax_type_nodes): Same.
11426 (adjust_range_for_overflow): Same.
11427 (format_floating): Same.
11428 (format_character): Same.
11429 (format_string): Same.
11430 (format_plain): Same.
11431 (get_int_range): Cast away constness.
11432 (format_integer): Same.
11433 (get_string_length): Call get_range_strlen_dynamic. Handle
11434 null lendata.maxbound.
11435 (should_warn_p): Adjust argument scope qualifier.
11436 (maybe_warn): Same.
11437 (format_directive): Same.
11438 (parse_directive): Same.
11439 (is_call_safe): Same.
11440 (try_substitute_return_value): Same.
11441 (sprintf_dom_walker::handle_printf_call): Rename...
11442 (handle_printf_call): ...to this. Initialize target to host charmap
11443 here instead of in pass_sprintf_length::execute.
11444 (struct call_info): Make global.
11445 (sprintf_dom_walker::compute_format_length): Make global.
11446 (sprintf_dom_walker::handle_gimple_call): Same.
11447 * passes.def (pass_sprintf_length): Replace with pass_strlen.
11448 * print-rtl.c (print_pattern): Reduce the number of spaces to
11449 avoid -Wformat-truncation.
11450 * tree-pass.h (make_pass_warn_printf): New function.
11451 * tree-ssa-strlen.c (strlen_optimize): New variable.
11452 (get_string_length): Add comments.
11453 (get_range_strlen_dynamic): New function.
11454 (check_and_optimize_call): New function.
11455 (handle_integral_assign): New function.
11456 (strlen_check_and_optimize_stmt): Factor code out into
11457 strlen_check_and_optimize_call and handle_integral_assign.
11458 (strlen_dom_walker::evrp): New member.
11459 (strlen_dom_walker::before_dom_children): Use evrp member.
11460 (strlen_dom_walker::after_dom_children): Use evrp member.
11461 (printf_strlen_execute): New function.
11462 (pass_strlen::gate): Update to handle printf calls.
11463 (dump_strlen_info): New function.
11464 (pass_data_warn_printf): New variable.
11465 (pass_warn_printf): New class.
11466 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
11467 (handle_printf_call): Same.
11468 * tree-vrp.c (value_range_base::type): Adjust assertion.
11469 * vr-values.c (vr_values::update_value_range): Use type of the first
11470 argument rather than the second.
11472 2019-08-26 Richard Biener <rguenther@suse.de>
11474 * config/i386/i386-features.c (general_remove_non_convertible_regs):
11476 (convert_scalars_to_vector): Do not call it.
11478 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
11479 Uros Bizjak <ubizjak@gmail.com>
11481 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
11482 CASE_MATHFN_FLOATN for roundeven.
11483 * config/i386/i386.c (ix86_i387_mode_needed): Add case
11485 (ix86_mode_needed): Likewise.
11486 (ix86_mode_after): Likewise.
11487 (ix86_mode_entry): Likewise.
11488 (ix86_mode_exit): Likewise.
11489 (ix86_emit_mode_set): Likewise.
11490 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
11491 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
11492 (ix86_entity): Add I387_ROUNDEVEN.
11493 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
11494 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
11495 (define_int_iterator): Likewise.
11496 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
11497 (define_constant): Define ROUND_ROUNDEVEN mode.
11498 (define_attr): Add roundeven mode for i387_cw.
11499 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
11500 * internal-fn.def (ROUNDEVEN): New builtin function.
11501 * optabs.def (roundeven_optab): New optab.
11503 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
11505 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
11507 * builtins.def: Added function definitions for roundeven function
11509 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
11510 function call. Adjust condition for floor, ceil, trunc and round.
11511 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
11512 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
11513 (integer_valued_real_call_p): Added case for roundeven function.
11514 * real.c (is_even): New function. Returns true if real number is even,
11515 otherwise returns false.
11516 (is_halfway_below): New function. Returns true if real number is
11517 halfway between two integers, else return false.
11518 (real_roundeven): New function. Round real number to nearest integer,
11519 rounding halfway cases towards even.
11520 * real.h (real_value): Added descriptive comments. Added function
11521 declaration for roundeven function.
11522 * doc/extend.texi (Other Builtins): List roundeven variants among
11523 functions which can be handled as builtins.
11525 2019-08-26 Richard Biener <rguenther@suse.de>
11529 * config/i386/i386-features.h (general_scalar_chain::defs_map):
11531 (general_scalar_chain::replace_with_subreg): Remove.
11532 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
11533 (general_scalar_chain::convert_reg): Adjust signature.
11534 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
11535 iterate over all defs of a reg.
11536 (general_scalar_chain::replace_with_subreg): Remove.
11537 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
11538 (general_scalar_chain::make_vector_copies): Populate defs_map,
11539 place copy only after defs that are used as vectors in the chain.
11540 (general_scalar_chain::convert_reg): Emit a copy for a specific
11541 def in a specific instruction.
11542 (general_scalar_chain::convert_op): All reg uses are converted here.
11543 (general_scalar_chain::convert_insn): Emit copies for scalar
11544 uses of defs here. Replace uses with the copies we created.
11545 Replace and convert the def. Adjust REG_DEAD notes, remove
11546 REG_EQUIV/EQUAL notes.
11547 (general_scalar_chain::convert_registers): Only handle copies
11548 into the chain here.
11550 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
11552 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
11554 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
11556 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
11557 Add nop_convert case.
11558 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
11559 Fold all statements if requested.
11560 * tree-ssa-propagate.h (class substitute_and_fold_engine):
11561 Allow to fold all statements.
11562 * tree-vrp.c (class vrp_folder):
11563 Let substitute_and_fold_engine fold all statements.
11565 2019-08-26 Richard Biener <rguenther@suse.de>
11567 PR tree-optimization/91526
11568 * passes.def: Note that after late FRE we do TODO_update_address_taken.
11569 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
11570 TODO_update_address_taken.
11572 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
11574 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
11577 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
11579 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
11580 machine mode for unspec_volatile operand.
11582 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
11584 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
11585 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
11586 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
11587 (prefer_neon_for_64bits): Remove.
11588 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
11589 (tune_params): Remove PREF_NEON_64_FALSE uses.
11590 (arm_option_override): Remove prefer_neon selection code.
11591 (arm_print_tune_info): Remove prefer_neon_for_64bits.
11592 * config/arm/arm-protos.h (tune_params): Remove
11593 prefer_neon_for_64bits.
11594 (prefer_neon_for_64bits): Remove.
11596 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
11599 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
11600 and issue any diagnostics needed before collecting the pre-PCH
11603 2019-08-23 Jakub Jelinek <jakub@redhat.com>
11605 PR middle-end/91283
11606 * common.opt (fexcess-precision=): Add Optimization flag. Use
11607 flag_excess_precision variable instead of
11608 flag_excess_precision_cmdline.
11609 * flags.h (class target_flag_state): Remove x_flag_excess_precision
11611 (flag_excess_precision): Don't define.
11612 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
11613 flag_excess_precision_cmdline. Remove comment.
11614 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
11615 and x_flag_excess_precision instead of
11616 frontend_set_flag_excess_precision_cmdline and
11617 x_flag_excess_precision_cmdline.
11618 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
11619 x_flag_excess_precision_cmdline.
11620 * toplev.c (init_excess_precision): Remove.
11621 (lang_dependent_init_target): Don't call it.
11623 2019-08-23 Martin Liska <mliska@suse.cz>
11625 * lto-wrapper.c (run_gcc): When setting jobserver
11626 set also parallel to 1. This was done so before r273908.
11628 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
11630 * config/arm/arm-cpus.in (cortex-m35p): New entry.
11631 (cortex-a76ae): Likewise.
11632 (cortex-a77): Likewise
11633 * config/arm/arm-tables.opt: Regenerate.
11634 * config/arm/arm-tune.md: Likewise.
11635 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
11636 cortex-a77 CPU options.
11638 2019-08-23 Martin Liska <mliska@suse.cz>
11640 * profile.c (instrument_values): Do not set
11641 0 as last argument.
11642 * tree-profile.c (gimple_gen_interval_profiler): Remove
11644 (gimple_gen_pow2_profiler): Likewise.
11645 (gimple_gen_topn_values_profiler): Likewise.
11646 (gimple_gen_ic_profiler): Likewise.
11647 (gimple_gen_time_profiler): Likewise.
11648 (gimple_gen_average_profiler): Likewise.
11649 (gimple_gen_ior_profiler): Likewise.
11650 * value-prof.c (dump_histogram_value): Use default
11651 in switch statement instead of HIST_TYPE_MAX.
11652 (stream_in_histogram_value): Likewise.
11653 (gimple_duplicate_stmt_histograms): Do not
11654 use NULL for implicitly set arguments.
11655 (gimple_divmod_values_to_profile): Do not use
11656 reserve+quick_push.
11657 (gimple_indirect_call_to_profile): Likewise.
11658 (gimple_find_values_to_profile): Use implicit
11659 function call arguments.
11660 * value-prof.h (gimple_alloc_histogram_value):
11661 Set default values.
11662 (gimple_gen_interval_profiler): Remove last argument.
11663 (gimple_gen_pow2_profiler): Likewise.
11664 (gimple_gen_topn_values_profiler): Likewise.
11665 (gimple_gen_ic_profiler): Likewise.
11666 (gimple_gen_time_profiler): Likewise.
11667 (gimple_gen_average_profiler): Likewise.
11668 (gimple_gen_ior_profiler): Likewise.
11670 2019-08-22 Martin Sebor <msebor@redhat.com>
11672 PR middle-end/91490
11673 * builtins.c (c_strlen): Rename argument and introduce new local.
11674 Set no-warning bit on original argument.
11675 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
11676 Fold empty and zero constructors into empty strings.
11677 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
11678 for missing initializers.
11679 * tree.c (build_string_literal): Handle optional argument.
11680 * tree.h (build_string_literal): Add defaulted argument.
11681 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
11682 no-warning bit on original expression.
11684 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
11687 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
11688 and UNSPEC_DARN_RAW.
11689 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
11691 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
11692 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
11693 (darn): Use an unspec_volatile, and UNSPECV_DARN.
11695 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
11697 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
11698 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
11699 * config/rs6000/rs6000.md (unspec): ... here.
11700 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
11701 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
11702 cmpeqb, *cmpeqb_internal): Delete, move to...
11703 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
11704 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
11705 cmpeqb, *cmpeqb_internal): ... here.
11707 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11709 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
11710 intrinsics if __ARM_FP.
11711 Use __ARM_FEATURE_CRC32 ifdef guard.
11713 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
11715 * config/arm/arm.md (neon_for_64bits): Remove.
11716 (avoid_neon_for_64bits): Remove.
11717 (arm_adddi3): Always split early.
11718 (arm_subdi3): Always split early.
11719 (negdi2): Remove Neon expansion.
11720 (split zero_extend): Split before reload.
11721 (split sign_extend): Split before reload.
11723 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
11725 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
11726 (qhs_extenddi_cstr): Likewise.
11727 * config/arm/arm.md (ashldi3): Always expand early.
11728 (ashlsi3): Likewise.
11729 (ashrsi3): Likewise.
11730 (zero_extend<mode>di2): Remove Neon variants.
11731 (extend<mode>di2): Likewise.
11732 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
11733 (signed_shift_di3_neon): Likewise.
11734 (unsigned_shift_di3_neon): Likewise.
11735 (ashrdi3_neon_imm_noclobber): Likewise.
11736 (lshrdi3_neon_imm_noclobber): Likewise.
11737 (<shift>di3_neon): Likewise.
11738 (split extend): Remove DI extend split patterns.
11740 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
11742 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
11743 (split not): Add DImode not splitter.
11744 (anddi3): Remove pattern.
11745 (anddi3_insn): Likewise.
11746 (anddi_zesidi_di): Likewise.
11747 (anddi_sesdi_di): Likewise.
11748 (anddi_notdi_di): Likewise.
11749 (anddi_notzesidi_di): Likewise.
11750 (anddi_notsesidi_di): Likewise.
11751 (iordi3): Likewise.
11752 (iordi3_insn): Likewise.
11753 (iordi_zesidi_di): Likewise.
11754 (iordi_sesidi_di): Likewise.
11755 (xordi3): Likewise.
11756 (xordi3_insn): Likewise.
11757 (xordi_sesidi_di): Likewise.
11758 (xordi_zesidi_di): Likewise.
11759 (one_cmpldi2): Likewise.
11760 (one_cmpldi2_insn): Likewise.
11761 * config/arm/constraints.md: Remove De, Df, Dg constraints.
11762 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
11764 (iwmmxt_xordi3): Likewise.
11765 (iwmmxt_anddi3): Likewise.
11766 * config/arm/neon.md (orndi3_neon): Remove pattern.
11767 (anddi_notdi_di): Likewise.
11768 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
11769 (arm_iordi_operand_neon): Likewise.
11770 (arm_xordi_operand_neon): Likewise.
11771 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
11772 (iordi_notzesidi_di): Likewise.
11773 (iordi_notdi_zesidi): Likewise.
11774 (iordi_notsesidi_di): Likewise.
11776 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
11778 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
11780 (iorsi3_compare0_scratch): Likewise.
11782 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
11784 * config/aarch64/aarch64-simd-builtins.def:
11787 * config/aarch64/aarch64-simd.md:
11788 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
11789 (aarch64_st1x4<VALLDIF:mode>): Likewise.
11790 (aarch64_ld1_x4_<mode>): Likewise.
11791 (aarch64_st1_x4_<mode>): Likewise.
11792 * config/aarch64/arm_neon.h:
11793 (vld1_s8_x4): New function.
11794 (vld1q_s8_x4): Likewise.
11795 (vld1_s16_x4): Likewise.
11796 (vld1q_s16_x4): Likewise.
11797 (vld1_s32_x4): Likewise.
11798 (vld1q_s32_x4): Likewise.
11799 (vld1_u8_x4): Likewise.
11800 (vld1q_u8_x4): Likewise.
11801 (vld1_u16_x4): Likewise.
11802 (vld1q_u16_x4): Likewise.
11803 (vld1_u32_x4): Likewise.
11804 (vld1q_u32_x4): Likewise.
11805 (vld1_f16_x4): Likewise.
11806 (vld1q_f16_x4): Likewise.
11807 (vld1_f32_x4): Likewise.
11808 (vld1q_f32_x4): Likewise.
11809 (vld1_p8_x4): Likewise.
11810 (vld1q_p8_x4): Likewise.
11811 (vld1_p16_x4): Likewise.
11812 (vld1q_p16_x4): Likewise.
11813 (vld1_s64_x4): Likewise.
11814 (vld1_u64_x4): Likewise.
11815 (vld1_p64_x4): Likewise.
11816 (vld1q_s64_x4): Likewise.
11817 (vld1q_u64_x4): Likewise.
11818 (vld1q_p64_x4): Likewise.
11819 (vld1_f64_x4): Likewise.
11820 (vld1q_f64_x4): Likewise.
11821 (vst1_s8_x4): Likewise.
11822 (vst1q_s8_x4): Likewise.
11823 (vst1_s16_x4): Likewise.
11824 (vst1q_s16_x4): Likewise.
11825 (vst1_s32_x4): Likewise.
11826 (vst1q_s32_x4): Likewise.
11827 (vst1_u8_x4): Likewise.
11828 (vst1q_u8_x4): Likewise.
11829 (vst1_u16_x4): Likewise.
11830 (vst1q_u16_x4): Likewise.
11831 (vst1_u32_x4): Likewise.
11832 (vst1q_u32_x4): Likewise.
11833 (vst1_f16_x4): Likewise.
11834 (vst1q_f16_x4): Likewise.
11835 (vst1_f32_x4): Likewise.
11836 (vst1q_f32_x4): Likewise.
11837 (vst1_p8_x4): Likewise.
11838 (vst1q_p8_x4): Likewise.
11839 (vst1_p16_x4): Likewise.
11840 (vst1q_p16_x4): Likewise.
11841 (vst1_s64_x4): Likewise.
11842 (vst1_u64_x4): Likewise.
11843 (vst1_p64_x4): Likewise.
11844 (vst1q_s64_x4): Likewise.
11845 (vst1q_u64_x4): Likewise.
11846 (vst1q_p64_x4): Likewise.
11847 (vst1_f64_x4): Likewise.
11848 (vst1q_f64_x4): Likewise.
11850 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11852 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
11854 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11855 Richard Sandiford <richard.sandiford@arm.com>
11858 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
11859 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
11861 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11864 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
11865 in reg if it fails aarch64_plus_operand predicate.
11867 2019-08-21 Richard Biener <rguenther@suse.de>
11869 PR tree-optimization/91482
11870 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
11871 BUILT_IN_ASSUME_ALIGNED calls.
11873 2019-08-21 Richard Biener <rguenther@suse.de>
11877 * config/i386/i386-features.c
11878 (general_scalar_chain::make_vector_copies): Copy stack temporary
11879 rtx when using it multiple times.
11880 (general_scalar_chain::convert_reg): Likewise.
11882 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
11884 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
11886 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
11888 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
11889 catch more redundant zero initialization cases.
11890 (dse_dom_walker::dse_optimize_stmt): Likewise.
11892 2019-08-20 Richard Biener <rguenther@suse.de>
11895 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
11896 by collect2 when targetm.have_ctors_dtors which avoids dragging
11897 in temporary filenames from LTO input objects.
11899 2019-08-20 Richard Biener <rguenther@suse.de>
11901 PR tree-optimization/37242
11902 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
11903 to (T)a + (T)b if we know that a + b does not overflow.
11905 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
11907 PR rtl-optimization/91347
11908 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
11909 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
11911 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11913 * calls.h (function_arg_info): Add a pass_by_reference field,
11914 defaulting to false.
11915 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
11916 when applying pass-by-reference semantics.
11917 (initialize_argument_information): Likewise.
11918 (emit_library_call_value_1): Likewise.
11919 * function.c (assign_parm_data_one): Remove passed_pointer field.
11920 (assign_parm_find_data_types): Don't set it.
11921 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
11922 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
11923 arg.pass_by_reference instead of passed_pointer.
11925 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11927 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
11928 into a single function_arg_info, updating its fields when we
11929 apply pass-by-reference and promotion semantics. Use the
11930 function_arg_info to track the mode rather than keeping it in
11931 a separate local variable.
11932 (initialize_argument_information): Likewise. Base the final
11933 arg_to_skip on this new function_arg_info rather than creating
11934 a new one from scratch.
11936 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11938 * function.c (assign_parm_data_one): Replace passed_type,
11939 promoted_mode and named_arg with a function_arg_info field.
11940 (assign_parm_find_data_types): Remove local variables and
11941 assign directly to "data". Make data->passed_mode shadow
11942 data->arg.mode until promotion, then assign the promoted
11943 mode to data->arg.mode.
11944 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
11945 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
11946 (assign_parm_remove_parallels, assign_parm_setup_block_p)
11947 (assign_parm_setup_block, assign_parm_setup_reg)
11948 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
11949 arg.mode instead of promoted_mode, arg.type instead of passed_type
11950 and arg.named instead of named_arg. Use data->arg for
11951 function_arg_info structures that had the field values passed_type,
11952 promoted_mode and named_arg. Base other function_arg_infos on
11953 data->arg, changing the necessary properties.
11955 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11957 * calls.h (apply_pass_by_reference_rules): Declare.
11958 * calls.c (apply_pass_by_reference_rules): New function.
11959 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
11960 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
11961 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
11962 * function.c (assign_parm_find_data_types): Likewise.
11963 * var-tracking.c (prepare_call_arguments): Likewise.
11965 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11967 * target.def (must_pass_in_stack): Take a function_arg_info instead
11968 of a mode and a type.
11969 * doc/tm.texi: Regenerate.
11970 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
11971 instead of a mode and a type.
11972 (must_pass_in_stack_var_size_or_pad): Likewise.
11973 * calls.c (must_pass_in_stack_var_size): Likewise.
11974 (must_pass_in_stack_var_size_or_pad): Likewise.
11975 (initialize_argument_information): Update call to
11976 targetm.calls.must_pass_in_stack.
11977 (must_pass_va_arg_on_stack): Likewise.
11978 * function.c (assign_parm_find_entry_rtl): Likewise.
11979 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
11980 * config/alpha/alpha.c (alpha_function_arg): Likewise.
11981 (alpha_function_arg_advance): Likewise.
11982 * config/cr16/cr16.c (cr16_function_arg): Likewise.
11983 (cr16_function_arg_advance): Likewise.
11984 * config/cris/cris.c (cris_pass_by_reference): Likewise.
11985 (cris_arg_partial_bytes): Likewise.
11986 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
11987 * config/lm32/lm32.c (lm32_function_arg): Likewise.
11988 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
11989 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
11990 * config/mips/mips.c (mips_pass_by_reference): Likewise.
11991 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
11992 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
11993 * config/sh/sh.c (sh_pass_by_reference): Likewise.
11994 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
11995 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
11996 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
11997 instead of a mode and a type.
11998 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
11999 (fr30_num_arg_regs): Likewise.
12000 (fr30_setup_incoming_varargs): Update calls accordingly.
12001 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
12002 (fr30_function_arg_advance): Likewise.
12003 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
12004 instead of a mode and a type.
12005 * config/gcn/gcn.c (num_arg_regs): Likewise.
12006 (gcn_function_arg, gcn_function_arg_advance): Update calls to
12007 num_arg_regs and targetm.calls.must_pass_in_stack.
12008 (gcn_arg_partial_bytes): Likewise.
12009 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
12010 function_arg_info instead of a mode and a type.
12011 (classify_argument): Update call accordingly.
12012 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
12013 function_arg_info instead of a mode and a type.
12014 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
12016 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
12017 (rs6000_parm_needs_stack): Update call accordingly.
12018 (setup_incoming_varargs): Likewise.
12020 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12022 * target.def (callee_copies): Take a function_arg_info instead
12023 of a mode, type and named flag.
12024 * doc/tm.texi: Regenerate.
12025 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
12026 instead of a mode, type and named flag.
12027 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
12028 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12029 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
12030 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
12031 instead of a mode, type and named flag.
12032 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
12033 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12034 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
12035 * calls.h (reference_callee_copied): Take a function_arg_info
12036 instead of a mode, type and named flag.
12037 * calls.c (reference_callee_copied): Likewise.
12038 (initialize_argument_information): Update call accordingly.
12039 (emit_library_call_value_1): Likewise.
12040 * function.c (gimplify_parameters): Likewise.
12041 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
12042 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
12043 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
12044 * config/c6x/c6x.c (c6x_callee_copies): Delete.
12045 (TARGET_CALLEE_COPIES): Define to
12046 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
12047 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
12048 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
12049 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
12050 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
12051 instead of a mode, type and named flag.
12052 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
12053 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
12054 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
12055 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
12056 * config/msp430/msp430.c (msp430_callee_copies): Delete.
12057 (TARGET_CALLEE_COPIES): Define to
12058 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
12059 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
12060 instead of a mode, type and named flag.
12061 * config/sh/sh.c (sh_callee_copies): Likewise.
12062 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
12063 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
12064 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
12066 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12068 * target.def (function_arg_advance): Take a function_arg_info instead
12069 of a mode, type and named flag.
12070 * doc/tm.texi: Regenerate.
12071 * targhooks.h (default_function_arg_advance): Take a function_arg_info
12072 instead of a mode, type and named flag.
12073 * targhooks.c (default_function_arg_advance): Likewise.
12074 * calls.c (initialize_argument_information): Update call to
12075 targetm.calls.function_arg_advance.
12076 (emit_library_call_value_1): Likewise.
12077 * dse.c (get_call_args): Likewise.
12078 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12079 * function.c (assign_parms, gimplify_parameters): Likewise.
12080 * var-tracking.c (prepare_call_arguments): Likewise.
12081 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
12082 function_arg_info instead of a mode, type and named flag.
12083 (aarch64_setup_incoming_varargs): Update call accordingly.
12084 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
12085 function_arg_info instead of a mode, type and named flag.
12086 (alpha_setup_incoming_varargs): Update call accordingly.
12087 * config/arc/arc.c (arc_function_arg_advance): Take a
12088 function_arg_info instead of a mode, type and named flag.
12089 (arc_setup_incoming_varargs): Update call accordingly.
12090 * config/arm/arm.c (arm_function_arg_advance): Take a
12091 function_arg_info instead of a mode, type and named flag.
12092 (cmse_func_args_or_return_in_stack): Update call accordingly.
12093 (arm_function_ok_for_sibcall): Likewise.
12094 (cmse_nonsecure_call_clear_caller_saved): Likewise.
12095 * config/avr/avr.c (avr_function_arg_advance): Take a
12096 function_arg_info instead of a mode, type and named flag.
12097 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
12098 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
12099 (c6x_call_saved_register_used): Update call accordingly.
12100 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
12101 function_arg_info instead of a mode, type and named flag.
12102 * config/cris/cris.c (cris_function_arg_advance): Likewise.
12103 * config/csky/csky.c (csky_function_arg_advance): Likewise.
12104 (csky_setup_incoming_varargs): Update call accordingly.
12105 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
12106 function_arg_info instead of a mode, type and named flag.
12107 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
12108 * config/frv/frv.c (frv_function_arg_advance): Likewise.
12109 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
12110 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
12111 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
12112 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
12113 (ix86_setup_incoming_varargs): Update call accordingly.
12114 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
12115 function_arg_info instead of a mode, type and named flag.
12116 (ia64_setup_incoming_varargs): Update call accordingly.
12117 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
12118 function_arg_info instead of a mode, type and named flag.
12119 (iq2000_expand_prologue): Update call accordingly.
12120 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
12121 function_arg_info instead of a mode, type and named flag.
12122 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
12123 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
12124 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
12125 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
12126 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
12128 (microblaze_expand_prologue): Update call accordingly.
12129 * config/mips/mips.c (mips_function_arg_advance): Take a
12130 function_arg_info instead of a mode, type and named flag.
12131 (mips_setup_incoming_varargs): Update call accordingly.
12132 (mips_output_args_xfer): Likewise.
12133 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
12134 function_arg_info instead of a mode, type and named flag.
12135 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
12136 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
12137 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
12138 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
12139 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
12140 (nios2_setup_incoming_varargs): Update call accordingly.
12141 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
12142 function_arg_info instead of a mode, type and named flag.
12143 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
12144 * config/pa/pa.c (pa_function_arg_advance): Likewise.
12145 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
12146 * config/pru/pru.c (pru_function_arg_advance): Likewise.
12147 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
12148 (riscv_setup_incoming_varargs): Update call accordingly.
12149 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
12150 function_arg_info instead of a mode, type and named flag.
12151 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
12153 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
12154 (rs6000_parm_needs_stack): Update call accordingly.
12155 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
12156 instead of a mode, type and named flag.
12157 * config/s390/s390.c (s390_function_arg_advance): Likewise.
12158 (s390_call_saved_register_used): Update call accordingly.
12159 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
12160 instead of a mode, type and named flag.
12161 (sh_output_mi_thunk): Update call accordingly.
12162 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
12163 function_arg_info instead of a mode, type and named flag.
12164 * config/spu/spu.c (spu_function_arg_advance): Likewise.
12165 (spu_setup_incoming_varargs): Update call accordingly.
12166 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
12167 function_arg_info instead of a mode, type and named flag.
12168 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
12169 (tilegx_setup_incoming_varargs): Update call accordingly.
12170 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
12171 function_arg_info instead of a mode, type and named flag.
12172 (tilegx_setup_incoming_varargs): Update call accordingly.
12173 * config/v850/v850.c (v850_function_arg_advance): Take a
12174 function_arg_info instead of a mode, type and named flag.
12175 * config/vax/vax.c (vax_function_arg_advance): Likewise.
12176 * config/visium/visium.c (visium_function_arg_advance): Likewise.
12177 (visium_setup_incoming_varargs): Update call accordingly.
12178 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
12179 function_arg_info instead of a mode, type and named flag.
12181 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12183 * target.def (function_arg, function_incoming_arg): Take a
12184 function_arg_info instead of a mode, tree and named flag.
12185 * doc/tm.texi: Regenerate.
12186 * targhooks.h (default_function_arg): Take a function_arg_info
12187 instead of a mode, tree and named flag.
12188 (default_function_incoming_arg): Likewise.
12189 * targhooks.c (default_function_arg): Likewise.
12190 (default_function_incoming_arg): Likewise.
12191 * calls.h (function_arg_info::end_marker_p): New function.
12192 (function_arg_info::end_marker): Likewise.
12193 * calls.c (prepare_call_address, initialize_argument_information)
12194 (expand_call, emit_library_call_value_1): Update calls to
12195 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
12196 * dse.c: Include calls.h.
12197 (get_call_args): Update call to targetm.calls.function_arg.
12198 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12199 * var-tracking.c (prepare_call_arguments): Likewise.
12200 * function.c (assign_parm_find_entry_rtl): Update call to
12201 targetm.calls.function_incoming_arg.
12202 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
12203 function_arg_info instead of a mode, tree and named flag.
12204 * config/alpha/alpha.c (alpha_function_arg): Likewise.
12205 * config/arc/arc.c (arc_function_arg): Likewise.
12206 * config/arm/arm.c (arm_function_arg): Likewise.
12207 (cmse_func_args_or_return_in_stack): Update call accordingly.
12208 (arm_function_ok_for_sibcall): Likewise.
12209 (cmse_nonsecure_call_clear_caller_saved): Likewise.
12210 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
12211 instead of a mode, tree and named flag.
12212 * config/bfin/bfin.c (bfin_function_arg): Likewise.
12213 * config/c6x/c6x.c (c6x_function_arg): Likewise.
12214 (c6x_call_saved_register_used): Update call accordingly.
12215 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
12216 instead of a mode, tree and named flag.
12217 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
12218 (cris_function_arg_1): Likewise.
12219 * config/csky/csky.c (csky_function_arg): Likewise.
12220 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
12221 * config/fr30/fr30.c (fr30_function_arg): Likewise.
12222 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
12223 (frv_function_arg_1): Likewise.
12224 * config/ft32/ft32.c (ft32_function_arg): Likewise.
12225 * config/gcn/gcn.c (gcn_function_arg): Likewise.
12226 * config/h8300/h8300.c (h8300_function_arg): Likewise.
12227 * config/i386/i386.c (ix86_function_arg): Likewise.
12228 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
12229 (ia64_function_arg_1): Likewise.
12230 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
12231 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
12233 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
12234 instead of a mode, tree and named flag.
12235 * config/m32c/m32c.c (m32c_function_arg): Likewise.
12236 * config/m32r/m32r.c (m32r_function_arg): Likewise.
12237 * config/m68k/m68k.c (m68k_function_arg): Likewise.
12238 * config/mcore/mcore.c (mcore_function_arg): Likewise.
12239 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
12240 (microblaze_expand_prologue): Update call accordingly.
12241 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
12242 instead of a mode, tree and named flag.
12243 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
12244 (mmix_function_arg_1): Likewise.
12245 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
12246 * config/moxie/moxie.c (moxie_function_arg): Likewise.
12247 * config/msp430/msp430.c (msp430_function_arg): Likewise.
12248 * config/nds32/nds32.c (nds32_function_arg): Likewise.
12249 * config/nios2/nios2.c (nios2_function_arg): Likewise.
12250 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
12251 (nvptx_function_incoming_arg): Likewise.
12252 * config/or1k/or1k.c (or1k_function_arg): Likewise.
12253 * config/pa/pa.c (pa_function_arg): Likewise.
12254 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
12255 * config/pru/pru.c (pru_function_arg): Likewise.
12256 * config/riscv/riscv.c (riscv_function_arg): Likewise.
12257 * config/rl78/rl78.c (rl78_function_arg): Likewise.
12258 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
12259 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
12260 (rs6000_parm_needs_stack): Update call accordingly.
12261 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
12262 instead of a mode, tree and named flag.
12263 * config/s390/s390.c (s390_function_arg): Likewise.
12264 (s390_call_saved_register_used): Update call accordingly.
12265 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
12266 instead of a mode, tree and named flag.
12267 (sh_output_mi_thunk): Update call accordingly.
12268 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
12269 (sparc_function_incoming_arg): Take a function_arg_info instead of
12270 a mode, tree and named flag.
12271 * config/spu/spu.c (spu_function_arg): Likewise.
12272 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
12273 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
12274 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
12275 * config/v850/v850.c (v850_function_arg): Likewise.
12276 * config/vax/vax.c (vax_function_arg): Likewise.
12277 * config/visium/visium.c (visium_function_arg): Likewise.
12278 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
12279 (xtensa_function_incoming_arg): Likewise.
12281 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12283 * target.def (setup_incoming_varargs): Take a function_arg_info
12284 instead of a mode and tree.
12285 * doc/tm.texi: Regenerate.
12286 * targhooks.h (default_setup_incoming_varargs): Take a
12287 function_arg_info instead of a mode and tree.
12288 * targhooks.c (default_setup_incoming_varargs): Likewise.
12289 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
12290 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
12291 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
12292 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
12293 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
12294 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
12295 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
12296 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
12298 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
12299 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
12300 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
12301 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
12302 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
12303 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
12304 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
12305 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
12306 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
12307 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
12308 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
12309 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
12310 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
12311 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
12312 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
12313 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
12314 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
12315 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
12316 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
12317 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
12318 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
12319 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
12320 * function.c (assign_parms_setup_varargs): Update call to
12321 targetm.calls.setup_incoming_varargs.
12323 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12325 * target.def (pass_by_reference): Take a function_arg_info instead
12326 of a mode, type and named flag.
12327 * doc/tm.texi: Regenerate.
12328 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
12330 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
12331 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
12332 function_arg_info instead of a mode, type and named flag.
12333 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
12334 * calls.h (pass_by_reference): Take a function_arg_info instead of a
12335 mode, type and named flag.
12336 * calls.c (pass_by_reference): Likewise.
12337 (pass_va_arg_by_reference): Update call accordingly.
12338 (initialize_argument_information): Likewise.
12339 (emit_library_call_value_1): Likewise.
12340 * function.c (assign_parm_find_data_types): Likewise.
12341 * var-tracking.c (prepare_call_arguments): Likewise.
12342 * stor-layout.c: Include calls.h.
12343 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
12344 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
12345 function_arg_info instead of a mode, type and named flag.
12346 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
12347 * config/arc/arc.c (arc_pass_by_reference): Likewise.
12348 * config/arm/arm.c (arm_pass_by_reference): Likewise.
12349 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
12350 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
12351 (c6x_call_saved_register_used): Update call to pass_by_reference.
12352 * config/cris/cris.c (cris_pass_by_reference): Take a
12353 function_arg_info instead of a mode, type and named flag.
12354 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
12355 function_arg_info instead of a mode, type and named flag.
12356 (epiphany_arg_partial_bytes): Update call accordingly.
12357 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
12358 function_arg_info instead of a mode, type and named flag.
12359 (ft32_arg_partial_bytes): Update call accordingly.
12360 * config/i386/i386.c (ix86_pass_by_reference): Take a
12361 function_arg_info instead of a mode, type and named flag.
12362 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
12363 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
12364 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
12365 (m32r_return_in_memory): Update call accordingly.
12366 * config/mips/mips.c (mips_pass_by_reference): Take a
12367 function_arg_info instead of a mode, type and named flag.
12368 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
12369 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
12370 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
12371 (moxie_arg_partial_bytes): Update call accordingly.
12372 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
12373 function_arg_info instead of a mode, type and named flag.
12374 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
12375 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
12376 * config/pa/pa.c (pa_pass_by_reference): Likewise.
12377 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
12378 (riscv_return_in_memory): Update call accordingly.
12379 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
12380 function_arg_info instead of a mode, type and named flag.
12381 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
12382 (rs6000_parm_needs_stack): Update call to pass_by_reference.
12383 * config/s390/s390.c (s390_pass_by_reference): Take a
12384 function_arg_info instead of a mode, type and named flag.
12385 (s390_call_saved_register_used): Update call accordingly.
12386 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
12387 instead of a mode, type and named flag.
12388 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
12389 * config/spu/spu.c (spu_pass_by_reference): Likewise.
12390 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
12391 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
12392 * config/v850/v850.c (v850_pass_by_reference): Likewise.
12393 * config/visium/visium.c (visium_pass_by_reference): Likewise.
12395 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12397 * target.def (arg_partial_bytes): Take a function_arg_info instead
12398 of a mode, type and named flag.
12399 * doc/tm.texi: Regenerate.
12400 * target.h (function_arg_info): Declare.
12401 * calls.h (function_arg_info): New class.
12402 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
12403 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
12404 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
12405 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
12406 * calls.c (initialize_argument_information): Update call to
12407 targetm.calls.partial_bytes.
12408 (emit_library_call_value_1): Likewise.
12409 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12410 * function.c (assign_parm_find_entry_rtl): Likewise.
12411 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
12412 function_arg_info instead of a mode, type and named flag.
12413 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
12414 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
12415 (cmse_func_args_or_return_in_stack): Update accordingly.
12416 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
12417 function_arg_info instead of a mode, type and named flag.
12418 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
12419 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
12420 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
12421 * config/fr30/fr30.c: Include calls.h.
12422 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
12423 type and named flag.
12424 * config/frv/frv.c: Include calls.h.
12425 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
12426 type and named flag.
12427 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
12428 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
12429 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
12430 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
12431 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
12432 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
12433 * config/microblaze/microblaze.c (function_arg_partial_bytes):
12435 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
12436 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
12437 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
12438 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
12439 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
12440 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
12441 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
12442 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
12443 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
12444 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
12445 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
12446 (rs6000_parm_needs_stack): Update call accordingly.
12447 * config/sh/sh.c (sh_arg_partial_bytes): Take a
12448 function_arg_info instead of a mode, type and named flag.
12449 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
12450 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
12452 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12454 * calls.h (must_pass_va_arg_in_stack): Declare.
12455 * calls.c (must_pass_va_arg_in_stack): New function.
12456 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
12457 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
12458 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
12460 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
12462 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12464 * calls.h (pass_va_arg_by_reference): Declare.
12465 * calls.c (pass_va_arg_by_reference): New function.
12466 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
12467 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
12468 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
12469 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
12470 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
12471 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
12472 (mips_gimplify_va_arg_expr): Likewise.
12473 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
12474 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
12475 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
12476 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
12477 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
12478 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
12479 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
12480 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
12481 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
12482 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
12483 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
12485 2019-08-20 Richard Biener <rguenther@suse.de>
12488 * config/i386/i386-features.c (general_scalar_chain::convert_op):
12489 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
12490 (convert_scalars_to_vector): Add timode_p parameter and use it
12491 to guard TImode-only operation.
12492 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
12493 (pass_stv::execute): Pass down timode_p.
12495 2019-08-20 Lili Cui <lili.cui@intel.com>
12497 * common/config/i386/i386-common.c
12498 (processor_names): Add tigerlake and cooperlake.
12499 (processor_alias_table): Add tigerlake and cooperlake.
12500 * config.gcc: Add -march=tigerlake and cooperlake.
12501 * config/i386/driver-i386.c
12502 (host_detect_local_cpu): Detect tigerlake and cooperlake.
12503 Add "has_avx" to classify processor.
12504 * config/i386/i386-builtins.c (processor_model) :
12505 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
12506 (arch_names_table): Add tigerlake and cooperlake.
12507 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
12508 and PROCESSOR_COOPERLAKE.
12509 * config/i386/i386-c.c
12510 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
12511 * config/i386/i386-options.c
12512 (m_TIGERLAKE): Define.
12513 (m_COOPERLAKE): Ditto.
12514 (m_CORE_AVX512): Ditto.
12515 (processor_cost_table): Add cascadelake.
12516 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
12517 * config/i386/i386.h
12518 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
12519 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
12520 (PTA_MOVDIRI): Ditto.
12521 (PTA_MOVDIR64B): Ditto.
12522 (PTA_COOPERLAKE): Ditto.
12523 (PTA_TIGERLAKE): Ditto.
12524 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
12525 * doc/extend.texi: Add tigerlake and cooperlake.
12526 * doc/invoke.texi: Add tigerlake and cooperlake.
12528 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
12530 * doc/install.texi (Specific, alpha): Remove note to use
12531 binutils 2.11.2 or later.
12533 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12535 PR middle-end/89544
12536 * function.c (assign_parm_find_stack_rtl): Use larger alignment
12539 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
12541 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
12542 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
12543 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
12544 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
12545 * config/aarch64/constraints.md (Dt): New constraint
12546 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
12548 2019-08-19 Richard Biener <rguenther@suse.de>
12550 PR tree-optimization/91403
12551 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
12552 cases we can handle with tail-recursion...
12553 (follow_ssa_edge_expr): ... here. Do so.
12555 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
12558 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
12559 implemented for -fsanitize=kernel-address, and merge check logic
12560 with -fsanitize=address.
12562 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
12564 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
12565 for cpu and machine. Factor 64/32b builtins.
12567 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
12569 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
12570 gone, point to sourceforge.net.
12572 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
12574 * doc/ux.texi (User Experience Guidelines): Update reference.
12576 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
12578 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
12581 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
12583 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
12584 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
12586 2019-08-16 Martin Sebor <msebor@redhat.com>
12588 * tree.def (TYPE_SIZE): Clarify.
12589 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
12591 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
12593 PR tree-optimization/91109
12594 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
12595 * lra.c (lra): Use lra_need_for_scratch_reg_p.
12596 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
12598 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
12600 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
12601 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
12602 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
12603 (uavg<mode>3_ceil): New expander.
12604 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
12605 mode iterator when creating CONST1_RTX.
12606 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
12607 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
12608 mode iterator for const1_operand predicate.
12610 2019-08-16 Richard Biener <rguenther@suse.de>
12612 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
12613 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
12615 (follow_ssa_edge_in_condition_phi_branch): Likewise.
12616 (analyze_evolution_in_loop): Likewise.
12617 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
12618 (follow_ssa_edge_expr): ... here. Refactor code.
12620 2019-08-16 Richard Biener <rguenther@suse.de>
12623 * config/i386/i386-features.c
12624 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
12626 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12629 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
12630 only if subst_name matches curr_attr string.
12632 2019-08-16 Richard Biener <rguenther@suse.de>
12634 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
12635 stmt at gsi_p, instead replace it with a NOP removed later.
12636 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
12637 that became dead because of that.
12639 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
12641 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
12642 for which we can't represent a range.
12643 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
12645 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
12646 Set VR_UNDEFINED if type is not supported.
12647 * tree-ssanames.c (get_range_info): Pass type to set_varying.
12648 * tree-vrp.c (value_range_base::check): Assert that a varying has
12650 (value_range_base::equal_p): Early bail for undefines.
12651 (value_range_base::set_varying): Accept a type.
12652 (value_range::set_varying): Same.
12653 (value_range_base::type): VARYING can have a type, while UNDEFINE
12655 (value_range_base::dump): Print type for VARYING nodes.
12656 (value_range_base::set): Add type to VARYING.
12657 (extract_range_from_multiplicative_op): Pass type to set_varying.
12658 (extract_range_from_binary_expr): Same.
12659 (value_range_base::intersect_helper): Same.
12660 (value_range_base::union_helper): Same.
12661 (value_range_base::normalize_symbolics): Same.
12662 (determine_value_range_1): Same.
12663 * tree-vrp.h (class value_range_base): Add type to set_varying.
12664 Add prototype for dump(void).
12665 Add prototype for supports_type_p.
12666 (class value_range): Add type to set_varying.
12667 Add prototype for dump(void).
12668 * vr-values.c (set_value_range_to_truthvalue): Pass type to
12670 (vr_values::get_lattice_entry): Set varying even if propagation
12672 Pass type to set_varying.
12673 (vr_values::get_value_range): Remove vr_const_varying.
12674 Reallocate the lattice if needed.
12675 (vr_values::update_value_range): Pass type to set_varying.
12676 (vr_values::extract_range_for_var_from_comparison_expr): Same.
12677 (vr_values::extract_range_from_binary_expr): Same.
12678 (vr_values::extract_range_from_unary_expr): Same.
12679 (vr_values::extract_range_from_cond_expr): Same.
12680 (vr_values::check_for_binary_op_overflow): Same.
12681 (vr_values::extract_range_basic): Same.
12682 (vr_values::extract_range_from_assignment): Same.
12683 (vr_values::vr_values): Increase size of num_vr_values.
12684 (vr_values::extract_range_from_phi_node): Pass type to
12687 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
12690 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
12691 for costs of hard register moves.
12692 (ix86_register_move_cost): Likewise.
12693 * config/i386/i386.h (processor_costs): Move costs of hard
12694 register moves to hard_register. Add int_load, int_store,
12695 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
12696 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
12697 for costs of RTL expressions.
12698 * config/i386/x86-tune-costs.h: Move costs of hard register
12699 moves to hard_register. Duplicate int_load, int_store,
12700 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
12701 sse_load, sse_store for costs of RTL expressions.
12703 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12705 * target.def (setup_incoming_vararg_bounds): Remove.
12706 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
12707 * doc/tm.texi: Regenerate.
12708 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
12709 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
12710 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
12711 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
12713 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12715 MSP430: Fix lines over 80 characters long in
12716 config/msp430/*.{c,h} files
12718 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
12719 specifier in string.
12720 (msp430_select_hwmult_lib): Split line more than 80 characters long.
12721 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
12722 redundant old comment.
12723 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
12724 Split line more than 80 characters long.
12725 * config/msp430/msp430.c (msp430_option_override): Likewise.
12726 (msp430_return_in_memory): Likewise.
12727 (msp430_gimplify_va_arg_expr): Likewise.
12728 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
12729 (msp430_legitimate_constant): Likewise.
12730 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
12731 (msp430_attr): Likewise.
12732 (msp430_data_attr): Likewise.
12733 (msp430_start_function): Likewise.
12734 (gen_prefix): Likewise.
12735 (msp430_init_sections): Likewise.
12736 (msp430_select_section): Likewise.
12737 (msp430_function_section): Likewise.
12738 (msp430_unique_section): Likewise.
12739 (msp430_output_aligned_decl_common): Likewise.
12740 (msp430_do_not_relax_short_jumps): Likewise.
12741 (msp430_init_builtins): Likewise.
12742 (msp430_expand_delay_cycles): Likewise.
12743 (msp430_expand_prologue): Likewise.
12744 (msp430_expand_epilogue): Likewise.
12745 (msp430_expand_helper): Likewise.
12746 (msp430_split_movsi): Likewise.
12747 (msp430_print_operand): Likewise.
12748 (msp430_return_addr_rtx): Likewise.
12749 (msp430x_extendhisi): Likewise.
12750 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
12751 (ASM_SPEC): Likewise.
12752 Remove very obvious comments.
12753 (LIB_SPEC): Split line more than 80 characters long.
12754 (EH_RETURN_HANDLER_RTX): Likewise.
12755 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12757 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12759 MSP430: Fix whitespace errors and incorrect indentation in
12760 config/msp430/*.{c,h} files
12762 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
12763 (msp430_select_hwmult_lib): Likewise.
12764 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
12765 (msp430_extract_mcu_data): Likewise.
12766 (struct t_msp430_mcu_data): Likewise.
12767 * config/msp430/msp430.c (struct machine_function): Remove whitespace
12768 before left square bracket.
12769 (msp430_option_override): Fix indentation.
12770 (msp430_hard_regno_nregs_with_padding): Likewise.
12771 (msp430_initial_elimination_offset): Likewise.
12772 (msp430_special_register_convention_p): Remove whitespace before left
12773 square bracket and after exclamation mark.
12774 (msp430_evaluate_arg): Likewise.
12775 (msp430_callee_copies): Fix indentation.
12776 (msp430_gimplify_va_arg_expr): Likewise.
12777 (msp430_function_arg_advance): Remove whitespace before left square
12779 (reg_ok_for_addr): Likewise.
12780 (msp430_preserve_reg_p): Likewise.
12781 (msp430_compute_frame_info): Likewise.
12782 (msp430_asm_output_addr_const_extra): Add space between function name
12783 and open parenthesis.
12784 (has_section_name): Fix indentation.
12785 (msp430_attr): Remove trailing whitespace.
12786 (msp430_section_attr): Likewise.
12787 (msp430_data_attr): Likewise.
12788 (struct msp430_attribute_table): Fix comment and whitespace.
12789 (msp430_start_function): Remove whitespace before left square bracket.
12790 Add space between function name and open parenthesis.
12791 (msp430_select_section): Remove trailing whitespace.
12792 (msp430_section_type_flags): Remove trailing whitespace.
12793 (msp430_unique_section): Remove space before closing parenthesis.
12794 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
12795 (msp430_builtins): Remove whitespace before left square bracket.
12796 (msp430_init_builtins): Fix indentation.
12797 (msp430_expand_prologue): Remove whitespace before left square bracket.
12798 Remove space before closing parenthesis.
12799 (msp430_expand_epilogue): Remove whitespace before left square bracket.
12800 (msp430_split_movsi): Remove space before closing parenthesis.
12801 (helper_function_name_mappings): Fix indentation.
12802 (msp430_use_f5_series_hwmult): Fix whitespace.
12803 (use_32bit_hwmult): Likewise.
12804 (msp430_no_hwmult): Likewise.
12805 (msp430_output_labelref): Remove whitespace before left square bracket.
12806 (msp430_print_operand_raw): Likewise.
12807 (msp430_print_operand_addr): Likewise.
12808 (msp430_print_operand): Add two spaces after '.' in comment.
12809 Fix trailing whitespace.
12810 (msp430x_extendhisi): Fix indentation.
12811 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
12813 (PC_REGNUM): Likewise.
12814 (STACK_POINTER_REGNUM): Likewise.
12815 (CC_REGNUM): Likewise.
12817 2019-08-15 Richard Biener <rguenther@suse.de>
12820 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
12822 (general_scalar_chain::make_vector_copies): Use it.
12824 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
12826 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
12828 2019-08-15 Martin Liska <mliska@suse.cz>
12830 * tree-ssa-dce.c (propagate_necessity): We can't reach now
12831 operators with no arguments.
12832 (eliminate_unnecessary_stmts): Likewise here.
12834 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
12836 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
12837 <case COMPARE>: Revert 2019-08-14 change.
12838 (convertible_comparison_p): Revert 2019-08-14 change. Return false
12839 for (TARGET_64BIT || mode != DImode).
12841 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
12843 * tree-vrp.c (value_range_base::set): Merge in code from
12844 value_range_base::set_and_canonicalize.
12845 Enforce canonicalization at set time.
12846 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
12847 (value_range_base::set_undefined): Inline call to set().
12848 (value_range_base::set_varying): Same.
12849 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
12850 (vrp_val_max): New argument handle_pointers.
12851 (vrp_val_min): Same.
12852 (ranges_from_anti_range): Same.
12853 (extract_range_into_wide_ints): Use tree argument instead of sign
12855 (extract_range_from_multiplicative_op): Take in tree type instead
12856 of precision and sign. Adapt function for canonicalized ranges.
12857 (extract_range_from_binary_expr): Pass type to
12858 extract_range_from_multiplicative_op.
12859 Adapt for canonicalized ranges.
12860 (extract_range_from_unary_expr): Same.
12861 (value_range_base::intersect_helper): Adjust for canonicalized
12863 (value_range_base::union_helper): Same.
12864 (value_range_base::normalize_symbolics): New.
12865 * tree-vrp.h (class value_range_base): Remove
12866 set_and_canonicalize.
12867 New prototype for normalize_symbolics.
12868 (class value_range): Remove set_and_canonicalize.
12869 (vrp_val_min): Adjust prototype.
12870 (vrp_val_max): Same.
12872 (vr_values::extract_range_for_var_from_comparison_expr): Call set
12873 instead of set_and_canonicalize.
12875 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12877 PR middle-end/91444
12878 * tree-vect-stmts.c (vectorizable_call): Check that the function
12879 is a BUILT_IN_MD function before passing it to
12880 targetm.vectorize.builtin_md_vectorized_function.
12882 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12884 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
12885 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
12886 (aarch64_select_early_remat_modes): Use it.
12888 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12890 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
12891 16 for SVE predicates even if they are fixed-length.
12893 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12895 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
12896 operand order match the MOV /Z alias.
12898 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12900 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
12901 the vector pattern as an aarch64_svpattern argument. Update the
12902 overloaded caller accordingly.
12903 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
12904 (aarch64_output_sve_vector_inc_dec): Likewise.
12906 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12908 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
12909 multiplication case, try to compute VG * (lowest set bit) directly
12910 rather than always basing the multiplication on VG. Use
12911 expand_mult for the multiplication if we can.
12913 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12915 * config/aarch64/aarch64-protos.h
12916 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
12917 (aarch64_sve_inc_dec_immediate_p): Rename to...
12918 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
12919 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
12920 (aarch64_output_sve_scalar_inc_dec): Declare.
12921 (aarch64_output_sve_inc_dec_immediate): Rename to...
12922 (aarch64_output_sve_vector_inc_dec): ...this.
12923 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
12924 (aarch64_output_sve_scalar_inc_dec): New functions.
12925 (aarch64_output_sve_addvl_addpl): Remove the base and offset
12926 arguments. Only handle true ADDVL and ADDPL instructions;
12927 don't emit an INC or DEC.
12928 (aarch64_sve_inc_dec_immediate_p): Rename to...
12929 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
12930 (aarch64_output_sve_inc_dec_immediate): Rename to...
12931 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
12932 aarch64_sve_vector_inc_dec_immediate_p.
12933 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
12934 (aarch64_sve_plus_immediate): New predicates.
12935 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
12936 rather than aarch64_sve_addvl_addpl_immediate.
12937 (aarch64_sve_inc_dec_immediate): Rename to...
12938 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
12939 aarch64_sve_vector_inc_dec_immediate_p.
12940 (aarch64_sve_add_operand): Update accordingly.
12941 * config/aarch64/constraints.md (Uai): New constraint.
12942 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
12943 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
12944 operand into a register if it satisfies aarch64_sve_plus_immediate.
12945 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
12946 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
12947 * config/aarch64/aarch64-sve.md (add<mode>3): Call
12948 aarch64_output_sve_vector_inc_dec instead of
12949 aarch64_output_sve_inc_dec_immediate.
12951 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12953 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
12954 (UNSPEC_REVW): New constants.
12955 (elem_bits): New mode attribute.
12956 (SVE_INT_UNARY): New int iterator.
12957 (optab): Handle UNSPEC_REV[BHW].
12958 (sve_int_op): New int attribute.
12959 (min_elem_bits): Handle VNx16QI and the predicate modes.
12960 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
12961 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
12962 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
12963 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
12964 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
12965 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
12966 unspecs based on the total width of the reversed data.
12967 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
12968 reinterpret followed by a subreg on big-endian targets.
12970 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12971 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12973 * config/aarch64/aarch64-sve.md
12974 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
12975 alternatives in which one of the inputs is in the same register
12978 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12980 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
12981 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
12983 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12985 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
12986 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
12988 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12989 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12991 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
12992 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
12993 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
12995 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12996 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12998 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
12999 Add an alternative that uses reversed shifts.
13001 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13003 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
13006 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13008 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
13009 a commutativity marker.
13011 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13012 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13014 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
13015 (aarch64_prepare_sve_cond_int_fma): Declare.
13016 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
13017 (aarch64_prepare_sve_int_fma): New functions.
13018 (aarch64_prepare_sve_cond_int_fma): Likewise.
13019 * config/aarch64/aarch64-sve.md
13020 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
13021 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
13022 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
13023 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
13024 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
13025 (*madd<mode>): Rename to...
13026 (*fma<mode>4): ...this.
13027 (*msub<mode>): Rename to...
13028 (*fnma<mode>4): ...this.
13030 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13031 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13033 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
13034 Print 2.0 naturally.
13035 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
13036 * config/aarch64/predicates.md
13037 (aarch64_sve_float_negated_arith_immediate): New predicate,
13038 renamed from aarch64_sve_float_arith_with_sub_immediate.
13039 (aarch64_sve_float_arith_with_sub_immediate): Test for both
13040 positive and negative constants.
13041 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
13042 or an aarch64_sve_float_arith_with_sub_immediate.
13043 * config/aarch64/constraints.md (vsN): Use
13044 aarch64_sve_float_negated_arith_immediate.
13045 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
13047 (sve_pred_fp_rhs2_immediate): New int attribute.
13048 * config/aarch64/aarch64-sve.md
13049 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
13050 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
13051 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
13052 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
13053 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
13054 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
13056 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13057 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13059 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
13060 (*aarch64_cond_abd<SVE_F:mode>_3)
13061 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
13063 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13064 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13066 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
13067 (*aarch64_cond_<su>abd<mode>_any): New patterns.
13069 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13070 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13072 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
13073 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
13074 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
13075 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
13077 * optabs.h (create_convert_operand_from): Expand comment.
13078 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
13079 when mapping scalar rtxes to vector operands.
13080 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
13081 ashiftrt and lshiftrt.
13082 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
13083 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
13084 (*cond_<optab><mode>_any_const): New patterns.
13086 2019-08-15 Martin Liska <mliska@suse.cz>
13089 * cgraph.c (cgraph_node::remove): When setting
13090 n->origin = NULL for all nested functions, reset
13093 2019-08-15 Martin Liska <mliska@suse.cz>
13095 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
13098 2019-08-15 Martin Liska <mliska@suse.cz>
13101 * passes.c (order): Remove.
13102 (uid_hash_t): Likewise).
13103 (remove_cgraph_node_from_order): Remove from set
13104 of pointers (cgraph_node *).
13105 (insert_cgraph_node_to_order): New.
13106 (duplicate_cgraph_node_to_order): New.
13107 (do_per_function_toporder): Register all 3 cgraph hooks.
13108 Skip removed_nodes now as we know about all of them.
13110 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
13112 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
13113 <case E_V8QImode>: Use vector_set path for
13114 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13115 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
13116 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13118 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13120 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
13122 2019-08-14 Martin Sebor <msebor@redhat.com>
13124 PR tree-optimization/91294
13125 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
13126 source length as exact.
13128 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
13130 * doc/extend.texi: Add "noinit" attribute documentation.
13131 * doc/sourcebuild.texi: Add noinit effective target documentation.
13132 * varasm.c (default_section_type_flags): Add support for "noinit"
13134 (default_elf_select_section): Add support for "noinit" attribute.
13135 * config/msp430/msp430.c (msp430_attribute_table): Remove
13138 2019-08-14 Richard Biener <rguenther@suse.de>
13139 Uroš Bizjak <ubizjak@gmail.com>
13142 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
13144 (scalar_chain::smode): New member.
13145 (scalar_chain::vmode): Likewise.
13146 (dimode_scalar_chain): Rename to...
13147 (general_scalar_chain): ... this.
13148 (general_scalar_chain::general_scalar_chain): Take mode arguments.
13149 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
13150 base with TImode and V1TImode.
13151 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
13152 (general_scalar_chain::vector_const_cost): Adjust for SImode
13154 (general_scalar_chain::compute_convert_gain): Likewise. Add
13155 {S,U}{MIN,MAX} support.
13156 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
13157 (general_scalar_chain::make_vector_copies): Likewise. Handle
13158 non-DImode chains appropriately.
13159 (general_scalar_chain::convert_reg): Likewise.
13160 (general_scalar_chain::convert_op): Likewise.
13161 (general_scalar_chain::convert_insn): Likewise. Add
13162 fatal_insn_not_found if the result is not recognized.
13163 (convertible_comparison_p): Pass in the scalar mode and use that.
13164 (general_scalar_to_vector_candidate_p): Likewise. Rename from
13165 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
13166 (scalar_to_vector_candidate_p): Remove by inlining into single
13168 (general_remove_non_convertible_regs): Rename from
13169 dimode_remove_non_convertible_regs.
13170 (remove_non_convertible_regs): Remove by inlining into single caller.
13171 (convert_scalars_to_vector): Handle SImode and DImode chains
13172 in addition to TImode chains.
13173 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
13174 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
13175 (*<maxmin>di3_doubleword): Likewise.
13177 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13178 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13180 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
13181 (*cond_bic<mode>_any): New patterns.
13183 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13185 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
13186 take the equivalent mask, as well as a bit count.
13187 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
13188 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
13189 (aarch64_sve_pred_and_operand): New predicates.
13190 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
13192 * config/aarch64/aarch64-sve.md
13193 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
13194 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
13196 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13198 * config/aarch64/aarch64-sve.md
13199 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
13200 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
13203 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13204 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13206 * config/aarch64/aarch64-sve.md
13207 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
13208 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
13210 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13211 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13213 * config/aarch64/aarch64-sve.md
13214 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
13215 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
13217 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13219 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
13220 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
13223 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13224 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13226 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
13228 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13229 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13231 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
13232 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
13233 (aarch64_print_operand): Add support for %I.
13234 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
13235 Bitcast floating-point constants to the corresponding integer constant.
13236 (aarch64_float_const_representable_p): Handle vectors as well
13238 (aarch64_expand_sve_vcond): Make sure that the operands are valid
13239 for the new vcond_mask_<mode><vpred> expander.
13240 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
13241 test aarch64_float_const_representable_p.
13242 (aarch64_sve_reg_or_dup_imm): New predicate.
13243 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
13244 gen_vcond_mask_<mode><vpred> instead of
13245 gen_aarch64_sve_dup<mode>_const.
13246 (vcond_mask_<mode><vpred>): Turn into a define_expand that
13247 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
13248 for operands 1 and 2 respectively. Force operand 2 into a
13249 register if operand 1 is a register. Fold old define_insn...
13250 (aarch64_sve_dup<mode>_const): ...and this define_insn...
13251 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
13252 floating-point constants that can be moved as integers. Add
13253 alternatives for MOV /M and FMOV /M.
13254 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
13255 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
13256 1 and 2 respectively.
13257 * config/aarch64/constraints.md (Ufc): Handle vectors as well
13259 (vss): New constraint.
13261 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13263 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
13264 (aarch64_sve_float_maxmin_operand): New predicates.
13265 * config/aarch64/constraints.md (vsB): New constraint.
13267 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
13268 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
13269 UNSPEC_COND_FMINNM.
13270 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
13271 Use aarch64_sve_float_maxmin_operand for operand 2.
13272 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
13273 Add alternatives for the constant forms.
13275 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13277 * config/aarch64/constraints.md (vsb): New constraint.
13278 (vsm): Generalize description.
13279 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
13281 (sve_imm_con): Handle smax, smin, umax and umin.
13282 (sve_imm_prefix): New code attribute.
13283 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
13284 (aarch64_sve_vsb_operand): New predicates.
13285 (aarch64_sve_mul_immediate): Rename to...
13286 (aarch64_sve_vsm_immediate): ...this.
13287 (aarch64_sve_mul_operand): Rename to...
13288 (aarch64_sve_vsm_operand): ...this.
13289 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
13290 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
13291 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
13292 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
13293 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
13294 add movprfx support for the immediate alternatives.
13295 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
13297 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
13300 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13302 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
13303 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
13304 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
13306 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13308 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
13309 (optab, sve_int_op): Handle them.
13310 * config/aarch64/aarch64-sve.md: Expand comment.
13312 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13314 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
13315 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
13316 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
13318 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13320 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
13321 (aarch64_expand_sve_const_pred_trn): New functions.
13322 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
13323 use the above functions when the parameter is true.
13324 (aarch64_expand_sve_const_pred): Update call accordingly.
13325 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
13327 (@aarch64_sve_<perm_insn><mode>): ...this.
13329 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13331 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
13333 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
13334 (aarch64_sve_emit_int_cmp): New functions.
13335 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
13336 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
13337 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
13338 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
13339 (UNSPEC_PRED_Z): New unspec.
13340 (set_clobber_cc_nzc): Delete.
13341 * config/aarch64/aarch64-sve.md: Add a block comment about
13343 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
13344 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
13345 the old pattern with that name. Use UNSPEC_PRED_Z instead of
13346 UNSPEC_MERGE_PTRUE.
13347 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
13348 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
13349 check for compatible predicates.
13350 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
13351 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
13352 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
13355 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13357 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
13358 * config/aarch64/aarch64-sve.md: Add a section describing it.
13359 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
13360 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
13361 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
13362 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
13363 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
13364 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
13365 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
13366 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
13367 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
13368 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
13369 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
13370 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
13371 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
13372 (aarch64_evpc_rev_local): Update accordingly.
13374 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13376 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
13378 (SVE_BHSI, SVE_SDI): Tweak comment.
13379 (SVE_HSDI): Likewise. Fix definition.
13380 (SVE_SDF): New mode iterator.
13381 (elem_bits): New mode attribute.
13382 (SVE_COND_FCVT): New int iterator.
13383 * config/aarch64/aarch64-sve.md
13384 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
13385 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
13386 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
13387 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
13388 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
13389 ...these new patterns.
13390 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
13391 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
13392 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
13394 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
13395 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
13396 ...these new patterns.
13397 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
13398 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
13399 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
13400 ...this new pattern.
13401 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
13402 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
13403 ...this new pattern.
13404 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
13406 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13408 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
13409 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
13410 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
13412 (optab, su): Handle them.
13413 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
13414 * config/aarch64/aarch64-sve.md
13415 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
13416 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
13417 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
13418 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
13419 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
13420 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
13421 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
13422 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
13423 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
13425 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
13426 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
13427 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
13428 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
13429 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
13430 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
13431 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
13432 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
13433 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
13434 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
13435 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
13436 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
13437 of UNSPEC_FLOAT_CONVERT.
13438 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
13439 aarch64_sve_extend<mode><Vwide>2.
13441 2019-08-14 Richard Biener <rguenther@suse.de>
13444 * config/i386/i386-features.c
13445 (dimode_scalar_chain::compute_convert_gain): Compute and dump
13446 individual instruction gain. Fix reg-reg copy GRP cost. Use
13447 ix86_cost->sse_op for vector instruction costs.
13449 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13451 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
13452 (cmp_op): Handle it.
13453 (SVE_COND_FP_CMP): Rename to...
13454 (SVE_COND_FP_CMP_I0): ...this.
13455 (SVE_FP_CMP): Remove.
13456 * config/aarch64/aarch64-sve.md
13457 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
13458 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
13459 using unspecs to represent the comparison.
13460 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
13461 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
13463 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
13464 (aarch64_unspec_cond_code): Move after integer code. Handle
13466 (aarch64_emit_sve_predicated_cond): Replace with...
13467 (aarch64_emit_sve_fp_cond): ...this new function.
13468 (aarch64_emit_sve_or_conds): Replace with...
13469 (aarch64_emit_sve_or_fp_conds): ...this new function.
13470 (aarch64_emit_sve_inverted_cond): Replace with...
13471 (aarch64_emit_sve_invert_fp_cond): ...this new function.
13472 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
13474 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13476 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
13477 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
13478 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
13479 SVE_HSD instead of SVE_SD.
13481 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13482 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13484 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
13486 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
13488 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
13489 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
13490 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
13491 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
13492 (*div<SVE_F:mode>3): Generalize to...
13493 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
13495 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13496 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13498 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
13500 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
13502 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
13504 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
13506 * config/aarch64/aarch64-sve.md: Add a block comment about the
13507 handling of predicated FP operations.
13508 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
13509 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
13510 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
13511 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
13512 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
13514 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
13515 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
13517 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
13518 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
13519 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
13520 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
13521 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
13522 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
13523 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
13524 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
13525 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
13526 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
13527 strictness operands. Use aarch64_sve_pred_dominates_p to check
13528 whether the predicate on the conditional operation is suitable
13529 for merging. Split patterns into the canonical equal-predicate form.
13530 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
13531 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
13533 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13534 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13536 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
13537 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
13538 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
13540 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
13541 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
13544 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13545 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13547 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
13548 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
13549 actually has, rather than relying on REG_EQUAL notes.
13550 Make the insn operand order match the SVE operand order.
13551 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
13552 the SVE operand order.
13554 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13556 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
13557 (aarch64_emit_set_immediate): Likewise.
13558 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
13559 (aarch64_pfalse_reg): Likewise.
13560 (aarch64_convert_sve_data_to_pred): New function.
13561 (aarch64_sve_move_pred_via_while): Take an optional target register
13562 and the required register mode.
13563 (aarch64_expand_sve_const_pred_1): New function.
13564 (aarch64_expand_sve_const_pred): Likewise.
13565 (aarch64_expand_mov_immediate): Build an all-true predicate
13566 if the significant bits of the immediate are all true. Use
13567 aarch64_expand_sve_const_pred for all compile-time predicate constants.
13568 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
13569 before register allocation.
13570 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
13571 a VNx16BI PTRUE when splitting the memory alternative.
13572 (vec_duplicate<mode>): Update accordingly.
13573 (*pred_cmp<cmp_op><mode>): Rename to...
13574 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
13576 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13578 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
13579 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
13580 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
13581 (UNSPEC_PTEST): New unspec.
13582 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
13583 * config/aarch64/iterators.md (data_bytes): New mode attribute.
13584 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
13585 * config/aarch64/aarch64-sve.md: Add a new section describing the
13586 handling of UNSPEC_PTEST.
13587 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
13588 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
13589 (ptest_ptrue<mode>): Replace with...
13590 (aarch64_ptest<mode>): ...this new pattern.
13591 (cbranch<mode>4): Update after above changes.
13592 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
13593 UNSPEC_PTEST_PTRUE.
13594 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
13595 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
13596 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
13598 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
13601 * builtins.c (builtin_with_linkage_p): New function.
13602 * builtins.h (builtin_with_linkage_p): New function.
13603 * symtab.c (write_symbol): Remove redundant assert.
13604 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
13605 Remove FIXME and use builtin_with_linkage_p.
13607 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13609 PR middle-end/91421
13610 * tree-core.h (function_decl::function_code): Change type to
13612 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
13613 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
13614 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
13615 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
13616 is BUILT_IN_NORMAL.
13617 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
13618 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
13619 (fndecl_built_in_p): Change the type of the "name" argument to
13621 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
13622 after check for DECL_BUILT_IN_CLASS.
13623 * cgraphclones.c (build_function_decl_skip_args): Use
13624 set_decl_built_in_function.
13625 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
13626 * ipa-split.c (split_function): Likewise.
13627 * langhooks.c (add_builtin_function_common): Likewise.
13628 * omp-simd-clone.c (simd_clone_create): Likewise.
13629 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
13630 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
13631 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
13632 DECL_FUNCTION_CODE.
13633 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
13634 instead of DECL_FUNCTION_CODE.
13635 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
13636 instead of DECL_FUNCTION_CODE.
13637 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
13638 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
13639 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
13640 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
13641 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
13642 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
13643 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
13644 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
13645 (alpha_gimple_fold_builtin): Likewise.
13646 * config/arc/arc.c (arc_expand_builtin): Likewise.
13647 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
13648 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
13649 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
13650 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
13651 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
13652 * config/frv/frv.c (frv_expand_builtin): Likewise.
13653 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
13654 (gcn_expand_builtin): Likewise.
13655 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
13656 (fold_builtin_cpu): Likewise.
13657 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
13658 * config/i386/i386.c (ix86_fold_builtin): Likewise.
13659 (ix86_gimple_fold_builtin): Likewise.
13660 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
13661 (ia64_expand_builtin): Likewise.
13662 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
13663 * config/mips/mips.c (mips_expand_builtin): Likewise.
13664 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
13665 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
13666 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
13667 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
13668 * config/pa/pa.c (pa_expand_builtin): Likewise.
13669 * config/pru/pru.c (pru_expand_builtin): Likewise.
13670 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
13671 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13673 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
13674 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
13675 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
13676 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
13677 (rs6000_builtin_reciprocal): Likewise.
13678 * config/rx/rx.c (rx_expand_builtin): Likewise.
13679 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
13680 * config/s390/s390.c (s390_expand_builtin): Likewise.
13681 * config/sh/sh.c (sh_expand_builtin): Likewise.
13682 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
13683 (sparc_fold_builtin): Likewise.
13684 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
13685 * config/spu/spu.c (spu_expand_builtin): Likewise.
13686 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
13687 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
13688 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
13689 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
13690 (xtensa_expand_builtin): Likewise.
13692 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13694 PR middle-end/91421
13695 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
13696 before the DECL_FUNCTION_CODE.
13697 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
13698 to check for a BUILT_IN_ALLOCA call.
13699 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
13700 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
13701 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
13702 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
13703 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
13704 for BUILT_IN_NORMAL functions.
13705 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
13706 test for BUILT_IN_TM_ABORT.
13707 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
13708 to check for a BUILT_IN_STACK_RESTORE call.
13709 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
13710 * tree-ssa-threadedge.c
13711 (record_temporary_equivalences_from_stmts_at_dest): Check for a
13712 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
13713 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
13714 test for a BUILT_IN_NORMAL call instead of a negative test for
13715 an internal function call.
13717 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13719 * tree.h (build_vector_a_then_b): Declare.
13720 * tree.c (build_vector_a_then_b): New function.
13721 * fold-const-call.c (fold_while_ult): Likewise.
13722 (fold_const_call): Use it to handle IFN_WHILE_ULT.
13723 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
13724 (aarch64_svpattern): New enum.
13725 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
13726 constants through aarch64_expand_mov_immediate.
13727 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
13728 than general_operand as the predicate for operand 1.
13729 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
13730 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
13732 (simd_immediate_info::simd_immediate_info): New overload that
13733 takes a scalar_int_mode and an svpattern.
13734 (simd_immediate_info::u): Add a "pattern" field.
13735 (svpattern_token): New function.
13736 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
13737 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
13738 (aarch64_sve_move_pred_via_while): New functions.
13739 (aarch64_expand_mov_immediate): Try using
13740 aarch64_sve_move_pred_via_while for predicates that contain N ones
13741 followed by M zeros but that do not correspond to a VLnnn pattern.
13742 (aarch64_sve_pred_valid_immediate): New function.
13743 (aarch64_simd_valid_immediate): Use it instead of dealing directly
13744 with PTRUE and PFALSE.
13745 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
13748 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
13750 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
13752 (darwin_override_options): Likewise.
13753 * config/darwin.h: Likewise.
13754 * config/darwin.opt: Likewise.
13755 * config/i386/i386.c (output_pic_addr_const): Likewise.
13756 * config/rs6000/darwin.h: Likewise.
13757 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
13758 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
13759 ... this TARGET_MACHO_SYMBOL_STUBS.
13760 (FUNCTION_PROFILER):Likewise.
13761 * config/i386/i386.h: Likewise.
13763 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
13765 * config/i386/i386-expand.c (ix86_expand_vector_extract)
13766 <case E_V2SImode>: Use vec_extr path for
13767 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13768 <case E_V8QImode>: Ditto.
13769 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
13770 Use SWI48 mode iterator. Use %k to output operand 0.
13771 (*mmx_pextrw): New insn pattern.
13772 (*mmx_pextrb): Ditto.
13773 (*mmx_pextrb_zext): Ditto.
13775 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
13777 * target.def (libc_has_function, libc_has_fast_function): Improve
13778 documentation strings.
13779 * doc/tm.texi: Regenerate.
13781 2019-08-13 Caroline Tice <cmtice@google.com>
13784 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
13785 vtv_end.o or vtv_end_preinit.o files if !static.
13787 2019-08-13 Olivier Hainque <hainque@adacore.com>
13789 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
13791 2019-08-13 Olivier Hainque <hainque@adacore.com>
13793 * rtlanal.c (tablejump_casesi_pattern): New function, to
13794 determine if a tablejump insn is a casesi dispatcher. Extracted
13795 from patch_jump_insn.
13796 * rtl.h (tablejump_casesi_pattern): Declare.
13797 * cfgrtl.c (patch_jump_insn): Use it.
13798 * dwarf2cfi.c (create_trace_edges): Use it.
13800 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
13803 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
13804 operand is larger than a long int.
13806 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13808 * machmode.h (opt_mode::else_mode): New function.
13809 (opt_mode::else_blk): Use it.
13810 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
13811 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
13812 (aarch64_gen_stepped_int_parallel): Likewise.
13813 (aarch64_stepped_int_parallel_p): Likewise.
13814 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
13816 * config/aarch64/aarch64.c
13817 (aarch64_expand_sve_widened_duplicate): Delete.
13818 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
13819 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
13820 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
13821 argument. Use early returns in the !CONST_INT_P handling.
13822 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
13823 than handling some inline.
13824 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
13826 (aarch64_simd_container_mode): ...here.
13827 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
13828 (aarch64_sve_ld1rq_operand_p): New functions.
13829 * config/aarch64/predicates.md (descending_int_parallel)
13830 (aarch64_sve_ld1rq_operand): New predicates.
13831 * config/aarch64/constraints.md (UtQ): New constraint.
13832 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
13833 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
13834 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
13835 (@aarch64_sve_reinterpret<mode>): New expander.
13836 (*aarch64_sve_reinterpret<mode>): New pattern.
13837 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
13838 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
13839 (*sve_ld1rq<Vesize>): Replace with...
13840 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
13842 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
13844 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
13847 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13849 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
13850 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
13851 (msp430_check_path_for_devices): New.
13852 (parse_devices_csv_1): New.
13853 (parse_devices_csv): New.
13854 (msp430_extract_mcu_data): Try to find devices.csv and search for the
13855 MCU data in devices.csv before using the hard-coded data.
13856 Warn if devices.csv isn't found and the MCU wasn't found in the
13857 hard-coded data either.
13858 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
13859 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
13860 Search for devices.csv on -I and -L paths.
13861 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
13862 msp430_set_driver_var.
13863 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
13864 -mdevices-csv-loc=.
13865 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
13866 searched for devices.csv.
13867 (mwarn-devices-csv): Document option.
13869 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13871 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
13872 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
13873 Use a single Dn alternative instead of separate Dz and Dm
13874 alternatives. Use aarch64_output_sve_move_immediate.
13875 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
13877 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
13878 for predicates too.
13879 (aarch64_output_sve_mov_immediate): Handle predicate modes.
13880 (aarch64_output_ptrue): Delete.
13882 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13884 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
13886 (simd_immediate_info::value, simd_immediate_info::step)
13887 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
13889 (simd_immediate_info::u): ...this new union.
13890 (simd_immediate_info::simd_immediate_info): Update accordingly.
13891 (aarch64_output_simd_mov_immediate): Likewise.
13892 (aarch64_output_sve_mov_immediate): Likewise.
13894 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13896 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
13898 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
13899 (msp430_select_cpu): New spec function.
13900 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
13902 * config/msp430/msp430-devices.c: New file.
13903 * config/msp430/msp430-devices.h: New file.
13904 * config/msp430/msp430.c: Remove msp430_mcu_data.
13905 (msp430_option_override): Use msp430_extract_mcu_data to extract
13907 (msp430_use_f5_series_hwmult): Likewise.
13908 (use_32bit_hwmult): Likewise.
13909 (msp430_no_hwmult): Likewise.
13910 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
13912 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
13914 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
13915 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
13916 Remove hard-coded MCU multilib data.
13918 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13920 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
13921 based on the mode instead of testing properties of it.
13923 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13925 * doc/md.texi: Document the x and y constraints for AArch64.
13926 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
13927 (FP_LO8_REGS): New reg_class.
13928 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
13929 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
13930 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
13931 * config/aarch64/predicates.md (aarch64_simd_register): Use
13932 FP_REGNUM_P instead of checking the classes manually.
13933 * config/aarch64/constraints.md (y): New constraint.
13935 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13937 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
13938 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
13939 * config/aarch64/aarch64-simd.md
13940 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
13941 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
13942 from the asm template.
13943 * config/aarch64/aarch64-sve.md
13944 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
13945 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
13946 from the asm template.
13947 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
13948 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
13949 from the asm template.
13950 * config/aarch64/aarch64-simd-builtins.def: Update comment.
13952 2019-08-13 Martin Liska <mliska@suse.cz>
13954 * value-prof.c (gimple_ic_transform): Add new line.
13955 Print details with MSG_NOTE.
13957 2019-08-13 Martin Liska <mliska@suse.cz>
13959 * doc/invoke.texi: Document automatic detection of jobserver.
13960 * lto-wrapper.c (run_gcc): Detect jobserver always.
13962 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
13964 * config/i386/i386-expand.c (ix86_expand_vector_set)
13965 <case E_V2SImode>: Use vec_merge path for
13966 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13967 <case E_V8QImode>: Ditto.
13968 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
13969 (*mmx_pinsrb): Ditto.
13971 2019-08-12 Jakub Jelinek <jakub@redhat.com>
13975 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
13976 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
13977 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
13978 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
13979 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
13981 2019-08-12 Richard Biener <rguenther@suse.de>
13984 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
13987 2019-08-12 Richard Biener <rguenther@suse.de>
13990 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
13991 lang_mask option, always use CL_DRIVER.
13992 (get_options_from_collect_gcc_options): Adjust.
13993 (find_and_merge_options): Likewise.
13994 (run_gcc): Likewise.
13996 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13998 * ipa-predicate.c (add_condition): Restore inverted test.
14000 2019-08-10 Jakub Jelinek <jakub@redhat.com>
14002 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
14003 (enum omp_clause_device_type_kind): New enum.
14004 (struct tree_omp_clause): Add subcode.device_type_kind.
14005 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
14006 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
14007 for device_type clause.
14008 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
14009 * tree-pretty-print.c (dump_omp_clause): Likewise.
14012 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
14015 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
14017 * reload1.c (finish_spills): Do not check ira_conflicts_p when
14018 handling spilled pseudos.
14020 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
14023 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
14024 to preserve the contents of the original insns.
14026 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
14028 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
14029 (addsi3_compare_op2): Likewise.
14031 2019-08-09 Martin Liska <mliska@suse.cz>
14033 * alias.c (alias_ptr_types_compatible_p): Strengten
14034 type comparison in LTO mode.
14036 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
14038 PR middle-end/90313
14039 * tree-tailcall.c (find_tail_calls): Reject calls that might
14040 read from an escaped RESULT_DECL.
14042 2019-08-09 Martin Liska <mliska@suse.cz>
14044 * doc/invoke.texi: Document the option value.
14045 * lto-wrapper.c (run_gcc): Set auto_parallel
14046 only with -flto=auto.
14048 2019-08-09 Martin Liska <mliska@suse.cz>
14050 * opts.c (common_handle_option): Error for an invalid argument
14053 2019-08-09 Martin Liska <mliska@suse.cz>
14055 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
14056 use dump_printf to report optimization.
14057 (sem_variable::merge): Likwise.
14058 (sem_item_optimizer::merge_classes): Use dump_printf to report
14061 2019-08-09 Martin Liska <mliska@suse.cz>
14063 * value-prof.c (gimple_divmod_fixed_value_transform):
14064 Use dump_printf_loc.
14065 (gimple_mod_pow2_value_transform): Likewise.
14066 (gimple_mod_subtract_transform): Likewise.
14067 (init_node_map): Likewise.
14068 (gimple_ic_transform): Likewise.
14069 (gimple_stringops_transform): Likewise.
14071 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14073 * doc/extend.texi: Add const qualifier to ld intrinsics.
14075 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
14077 * config/rs6000/dfp.md (D64_D128): Rename to ...
14078 (DDTD): ... this, throughout.
14079 (dfp_suffix): Rename to ...
14080 (q): ... this, throughout.
14082 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
14084 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
14085 (dfp_suffix): Ditto.
14086 (adddd3, addtd3): Merge to ...
14087 (add<mode>3 for D64_D128): ... this.
14088 (subdd3, subtd3): Merge to ...
14089 (sub<mode>3 for D64_D128): ... this.
14090 (muldd3, multd3): Merge to ...
14091 (mul<mode>3 for D64_D128): ... this.
14092 (divdd3, divtd3): Merge to ...
14093 (div<mode>3 for D64_D128): ... this.
14094 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
14095 (*cmp<mode>_internal1 for D64_D128): ... this.
14096 (ftruncdd2, ftrunctd2): Merge to ...
14097 (ftrunc<mode>2 for D64_D128): ... this.
14098 (fixdddi2, fixtddi2): Merge to ...
14099 (fix<mode>di2 for D64_D128): ... this.
14101 2019-08-08 Jim Wilson <jimw@sifive.com>
14104 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
14105 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
14106 Pass into recursive call.
14107 (riscv_flatten_aggregate_argument): New arg. Pass to
14108 riscv_flatten_aggregate_field.
14109 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
14110 riscv_flatten_aggregate_argument twice, with false and true as last
14111 arg. Process result twice. Compare results and warn if different.
14112 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
14114 2019-08-08 Martin Liska <mliska@suse.cz>
14117 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
14118 * lto-wrapper.c (jobserver_active_p): Likewise.
14120 2019-08-08 Martin Liska <mliska@suse.cz>
14122 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
14123 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
14124 (create_version_clone_with_body): Likewise.
14126 2019-08-08 Jakub Jelinek <jakub@redhat.com>
14128 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
14129 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
14130 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
14131 GOVD_EXPLICIT flags.
14132 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
14133 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
14134 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
14135 call install_var_field with mask 11 instead of 3.
14136 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
14137 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
14139 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14141 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
14142 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
14144 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14146 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
14147 MOVPRFX alternatives. Make the GPR alternatives more expensive
14150 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14152 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
14153 Disparage the GPR alternative relative to the FPR one.
14154 Fix handling of 8-bit and 16-bit FPR values.
14156 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14158 * config/aarch64/iterators.md (BITWISEV): Delete.
14159 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
14160 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
14161 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
14162 UNSPEC_FMINNMV, UNSPEC_FMINV.
14163 (bit_reduc_op): Delete.
14164 (sve_int_op): New int attribute.
14165 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
14166 UNSPEC_FMINNMV, UNSPEC_FMINV.
14167 * config/aarch64/aarch64-sve.md
14168 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
14169 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
14170 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
14171 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
14172 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
14173 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
14175 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
14176 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
14177 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
14178 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
14179 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
14182 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14184 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
14185 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
14186 (fms<mode>4, *fms<mode>4): Replace with...
14187 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
14188 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
14189 Use unspecs instead of rtx codes.
14190 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
14191 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
14193 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14195 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
14197 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
14198 * config/aarch64/aarch64-sve.md
14199 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
14200 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
14201 use a single unspec for the rhs.
14202 (*<su><maxmin><mode>3): Delete.
14203 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
14205 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14207 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
14208 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
14209 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
14210 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
14211 (optab, sve_fp_op): Handle them.
14212 (SVE_FP_UNARY): Delete.
14213 (optab): Remove sqrt entry.
14214 (sve_fp_op): Remove neg, abs and sqrt entries.
14215 (SVE_COND_FP_UNARY): New int iterator.
14216 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
14217 (*<frint_pattern><mode>2): Delete.
14218 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
14219 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
14220 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
14221 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
14223 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14225 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
14227 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14229 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
14230 (UNSPEC_COND_FADD): ...this.
14231 (UNSPEC_COND_SUB): Rename to...
14232 (UNSPEC_COND_FSUB): ...this.
14233 (UNSPEC_COND_MUL): Rename to...
14234 (UNSPEC_COND_FMUL): ...this.
14235 (UNSPEC_COND_DIV): Rename to...
14236 (UNSPEC_COND_FDIV): ...this.
14237 (UNSPEC_COND_MAX): Rename to...
14238 (UNSPEC_COND_FMAXNM): ...this.
14239 (UNSPEC_COND_MIN): Rename to...
14240 (UNSPEC_COND_FMINNM): ...this.
14241 (UNSPEC_COND_LT): Rename to...
14242 (UNSPEC_COND_FCMLT): ...this.
14243 (UNSPEC_COND_LE): Rename to...
14244 (UNSPEC_COND_FCMLE): ...this.
14245 (UNSPEC_COND_EQ): Rename to...
14246 (UNSPEC_COND_FCMEQ): ...this.
14247 (UNSPEC_COND_NE): Rename to...
14248 (UNSPEC_COND_FCMNE): ...this.
14249 (UNSPEC_COND_GE): Rename to...
14250 (UNSPEC_COND_FCMGE): ...this.
14251 (UNSPEC_COND_GT): Rename to...
14252 (UNSPEC_COND_FCMGT): ...this.
14253 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
14254 (sve_fp_op_rev): Update accordingly.
14255 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
14257 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14259 * config/aarch64/aarch64-sve.md: Reorganize contents and add
14261 * config/aarch64/check-sve-md.awk: New file.
14262 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
14263 (insn-conditions.md): Depend on it.
14265 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
14268 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
14269 (*negsi2_cmpz_zext): Ditto.
14271 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14273 * config/aarch64/iterators.md (commutative): Remove.
14275 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
14278 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
14279 processing COLLECT_GCC_OPTIONS.
14280 (run_gcc): Likewise.
14282 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14284 PR tree-optimization/91109
14285 * lra-remat.c (update_scratch_ops): Remove assignment of the
14288 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14290 * data-streamer.h (streamer_write_poly_uint64): Declare.
14291 (streamer_read_poly_uint64): Likewise.
14292 * data-streamer-in.c (streamer_read_poly_uint64): New function.
14293 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
14294 * ipa-predicate.h (condition::size): Turn into a poly_int64.
14295 (add_condition): Take a poly_int64 size.
14296 * ipa-predicate.c (add_condition): Likewise.
14297 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
14298 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
14299 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
14300 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
14301 condition::size as a poly_int64.
14302 (unmodified_parm_1): Take a poly_int64 size pointer.
14303 (unmodified_parm): Likewise.
14304 (unmodified_parm_or_parm_agg_item): Likewise.
14305 (set_cond_stmt_execution_predicate): Update accordingly.
14306 (set_switch_stmt_execution_predicate): Likewise.
14307 (will_be_nonconstant_expr_predicate): Likewise.
14308 (will_be_nonconstant_predicate): Likewise.
14309 (inline_read_section): Stream condition::size as a poly_int.
14310 (ipa_fn_summary_write): Likewise.
14312 2019-08-07 Martin Liska <mliska@suse.cz>
14314 * fold-const.c (twoval_comparison_p): Replace int
14315 with bool as a return type.
14316 (simple_operand_p): Likewise.
14317 (operand_equal_p): Replace int with bool as a return type.
14318 * fold-const.h (operand_equal_p): Likewise.
14320 2019-08-07 Jakub Jelinek <jakub@redhat.com>
14322 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
14323 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
14324 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
14325 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
14326 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
14327 * tree-pretty-print.c (dump_omp_clause): Likewise.
14328 * tree-nested.c (convert_nonlocal_omp_clauses,
14329 convert_local_omp_clauses): Likewise.
14330 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
14332 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
14333 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
14334 clause with array or reference to array types, no matter what type
14335 except for reference it has.
14337 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
14339 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
14341 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
14343 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
14344 (arch_canonicalize): Support rv32g and rv64g and fix error
14347 2019-08-06 Martin Liska <mliska@suse.cz>
14349 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
14350 and DECL_IS_OPERATOR_DELETE_P.
14352 2019-08-06 Jakub Jelinek <jakub@redhat.com>
14354 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
14355 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
14356 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
14357 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
14358 (gimplify_omp_for): Don't do C++ random access iterator clause
14359 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
14360 don't predetermine the artificial iterator in case of C++ random
14361 access iterators as lastprivate, but private. For OMP_LOOP, force
14362 bind expr around simd body and force for_pre_body before the
14363 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
14364 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
14365 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
14366 diff var of C++ random access iterators. Handle
14367 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
14368 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
14369 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
14370 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
14371 * omp-low.c (lower_rec_input_clauses): For
14372 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
14373 variables instead of default constructing them.
14374 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
14375 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
14376 is_taskloop_ctx check from the assert to the guarding condition.
14378 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
14380 * config/riscv/multilib-generator: (canonical_order): New.
14381 (arch_canonicalize): Dito.
14382 Apply arch_canonicalize for alts.
14384 2019-08-05 Martin Sebor <msebor@redhat.com>
14386 * doc/extend.texi (Common Variable Attributes): Document alias
14389 2019-08-05 Marek Polacek <polacek@redhat.com>
14391 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
14392 * doc/invoke.texi: Document -Wcomma-subscript.
14394 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14396 * tree-core.h (tree_function_decl): Make function_code an
14397 independent field. Group the remaining bitfields into bytes
14398 and move decl_type so that it contines to be at a byte boundary.
14399 Leave 12 bits for future expansion.
14401 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14403 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
14404 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
14405 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
14408 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14410 * gimple.h (gimple_move_vops): Declare.
14411 * gimple.c (gimple_move_vops): New function
14412 * gimple-fold.c (replace_call_with_call_and_fold)
14413 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
14414 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
14415 (gimple_fold_call): Use it.
14416 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
14417 * tree-call-cdce.c (use_internal_fn): Likewise.
14418 * tree-if-conv.c (predicate_load_or_store): Likewise.
14419 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
14420 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
14421 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
14422 (update_call_from_tree): Likewise.
14423 * tree-vect-stmts.c (vectorizable_load): Likewise.
14424 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
14426 2019-08-05 Martin Liska <mliska@suse.cz>
14429 * tree-ssa-dce.c (propagate_necessity): Handle new operators
14430 with not arguments.
14431 (eliminate_unnecessary_stmts): Likewise.
14433 2019-08-05 Richard Biener <rguenther@suse.de>
14435 PR middle-end/91169
14436 * fold-const.c (get_array_ctor_element_at_index): Create
14437 offset_ints according to the sign of the index type and treat
14438 that as signed if it is obviously so.
14440 2019-08-05 Jakub Jelinek <jakub@redhat.com>
14443 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
14444 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
14445 _mm256_storeu2_m128i): New function.
14447 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
14449 * config/riscv/riscv.c (riscv_promote_function_mode): New.
14450 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
14452 2019-08-05 Alan Modra <amodra@gmail.com>
14455 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
14456 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
14458 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
14460 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
14461 bug that was fixed in Tcl 8.6.1.
14463 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
14465 * config/rs6000/future.md: New file.
14466 * config/rs6000/rs6000.md: Include future.md.
14467 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
14469 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14471 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
14472 check to use targetm.slow_unaligned_access instead.
14474 * function.c (assign_param_data_one): Remove unused data members.
14476 2019-08-02 Steve Ellcey <sellcey@marvell.com>
14478 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
14479 build_distinct_type_copy.
14480 (simd_clone_adjust_argument_types): Ditto.
14481 (simd_clone_adjust): Call build_distinct_type_copy here.
14482 (expand_simd_clones): Ditto.
14484 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
14487 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
14489 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
14491 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
14492 from 'const void *'.
14493 (sort_locs_in_loop_postorder_cmp): Likewise.
14495 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
14497 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
14498 (hot-bb-count-ws-permille): Likewise.
14499 (hot-bb-frequency-fraction): Likewise.
14500 (unlikely-bb-count-fraction): Likewise.
14501 * params.def (hot-bb-count-fraction): Rework description.
14502 (hot-bb-count-ws-permille): Likewise.
14503 (hot-bb-frequency-fraction): Likewise.
14504 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
14505 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
14507 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
14510 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
14513 2019-08-02 Richard Biener <rguenther@suse.de>
14515 * vec.h (vec::sort): Add gcc_qsort_r support.
14516 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
14517 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
14518 to gcc_qsort_r style callback.
14519 (sort_locs_in_loop_postorder_cmp): Likewise.
14520 (analyze_memory_references): Use gcc_sort_r interfaces.
14521 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
14523 2019-08-02 Martin Liska <mliska@suse.cz>
14526 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
14527 to detect working job server.
14528 (driver::detect_jobserver): Test whether jobserver
14529 is active from GCC driver. That will prevent situation where
14530 GCC is invoked from a LD plugin and the linker already uses
14531 file descriptors suggested by make. That leads to a wrong
14533 * gcc.h (driver): Add detect_jobserver.
14534 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
14535 not scanning for --jobserver-auth prefix.
14537 2019-08-02 Jakub Jelinek <jakub@redhat.com>
14539 PR tree-optimization/91201
14540 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
14541 V16QImode extraction without sse4.1 try to use V4SImode lowpart
14544 2019-08-01 Martin Sebor <msebor@redhat.com>
14547 * tree.c (type_initializer_zero_p): Define.
14548 * tree.h (type_initializer_zero_p): New function.
14550 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
14552 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
14554 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
14556 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
14557 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
14558 * predict.c (maybe_hot_count_p): Likewise.
14559 (maybe_hot_bb_p): Tweak comment.
14560 (maybe_hot_edge_p): Likewise.
14561 (probably_never_executed): Likewise. Minor tweak.
14562 (probably_never_executed_bb_p): Likewise.
14563 (unlikely_executed_edge_p): Likewise.
14564 (probably_never_executed_edge_p): Likewise.
14565 (optimize_function_for_size_p): Likewise.
14566 (optimize_function_for_speed_p): Likewise.
14567 (function_optimization_type): Likewise.
14568 (optimize_bb_for_size_p): Likewise.
14569 (optimize_bb_for_speed_p): Likewise.
14570 (bb_optimization_type): Likewise.
14571 (optimize_edge_for_size_p): Likewise.
14572 (optimize_edge_for_speed_p): Likewise.
14573 (optimize_insn_for_size_p): Likewise.
14574 (optimize_insn_for_speed_p): Likewise.
14575 (optimize_loop_for_size_p): Likewise.
14576 (optimize_loop_for_speed_p): Likewise.
14577 (optimize_loop_nest_for_speed_p): Likewise.
14578 (optimize_loop_nest_for_size_p): Likewise.
14579 (predictable_edge_p): Likewise.
14580 (handle_missing_profiles): Minor tweak.
14582 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
14584 * config/rs6000/predicates.md (pcrel_external_address): Update
14587 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
14590 * config/i386/mmx.md (usadv8qi): New expander.
14592 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
14595 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
14596 with reserved names that are in a system header.
14598 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
14600 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
14601 (*vec_extractv2si_0_zext_sse4): New insn pattern.
14602 (*vec_extractv2si_0_zext): Ditto.
14603 (*vec_extractv2si_1): Add (rm,x) alternative.
14604 (*vec_extractv2si_1_zext): New insn pattern.
14605 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
14608 2019-08-01 Richard Biener <rguenther@suse.de>
14610 * domwalk.c (bb_postorder): Remove static variable.
14611 (cmp_bb_postorder): Adjust.
14612 (sort_bbs_postorder): Adjust and use gcc_sort_r.
14613 (dom_walker::walk): Adjust.
14615 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
14617 * sort.cc (sort_r_ctx): New struct.
14618 (reorder23): Make templated on context type.
14619 (reorder45): Ditto.
14620 (cmp1): Ditto. Adjust signature.
14622 (mergesort): Ditto.
14623 [CHECKING_P] (cmp2to3): New static function. Use it...
14624 (gcc_qsort) [CHECKING_P]: ...here.
14625 (gcc_sort_r): New function.
14626 * system.h (sort_r_cmp_fn): New function typedef.
14627 (qsort_chk): Adjust signature.
14628 (gcc_sort_r): Declare.
14629 * vec.c (qsort_chk_error): Adjust.
14630 (qsort_chk): Adjust.
14632 2019-08-01 Richard Biener <rguenther@suse.de>
14634 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
14635 (compute_antic): Localize it here.
14637 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
14639 * common/config/riscv/riscv-common.c: Check -march string ends
14642 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
14644 * ipa-devirt.c (type_warning_cmp): Make static.
14645 (decl_warning_cmp): Ditto.
14647 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
14650 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
14651 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
14652 use of deleted rs6000_dejagnu_cpu_index variable.
14653 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
14654 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
14655 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
14656 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
14657 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
14658 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
14660 2019-07-31 Richard Biener <rguenther@suse.de>
14662 PR tree-optimization/91280
14663 * tree-ssa-structalias.c (get_constraint_for_component_ref):
14664 Decompose MEM_REF manually for offset handling.
14666 2019-07-31 Richard Biener <rguenther@suse.de>
14668 PR tree-optimization/91293
14669 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
14670 of reduction stmts.
14672 2019-07-31 Matt Thomas <matt@3am-software.com>
14673 Nick Hudson <nick@nthcliff.demon.co.uk>
14674 Matthew Green <mrg@eterna.com.au>
14675 Maya Rashish <coypu@sdf.org>
14677 * config.gcc (hppa*-*-netbsd*): New target.
14678 * config/pa/pa-netbsd.h: New file.
14679 * config/pa/pa32-netbsd.h: New file.
14681 2019-07-31 Jakub Jelinek <jakub@redhat.com>
14683 PR tree-optimization/91201
14684 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
14686 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
14688 * config/gcn/gcn-valu.md
14689 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
14690 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
14691 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
14692 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
14693 struct ilist. Add nops for delayeduse insns.
14694 * config/gcn/gcn.md (delayeduse): New attribute.
14695 (*movbi): Remove s_waitcnt from stores.
14696 (*mov<mode>_insn): Likewise.
14697 (*movti_insn): Likewise. Add delayeduse attribute.
14698 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
14699 (atomic_store<mode>): Remove or adjust s_waitcnt.
14701 2019-07-31 Richard Biener <rguenther@suse.de>
14703 * vr-values.h (vr_values::swap_vr_value): New.
14704 (vr_values::free_value_range): likewise.
14705 * vr-values.c (vr_values::swap_vr_value): Implement.
14706 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
14707 Do not return a range or take a var.
14708 (evrp_range_analyzer::stack): Change back to recording a non-const
14710 * gimple-ssa-evrp-analyze.c
14711 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
14713 (evrp_range_analyzer::pop_to_marker): Adjust.
14714 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
14715 (evrp_range_analyzer::pop_value_range): Likewise. Free the
14716 no longer needed value-range.
14718 2019-07-31 Martin Liska <mliska@suse.cz>
14720 * tree-ssa-dce.c (propagate_necessity): Delete operator can
14721 have size and (or) alignment as 2nd and later arguments.
14722 Mark all of them as necessary.
14724 2019-07-31 Richard Biener <rguenther@suse.de>
14726 PR tree-optimization/91178
14727 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
14728 Use tail-recursion.
14730 2019-07-31 Jakub Jelinek <jakub@redhat.com>
14732 PR tree-optimization/91201
14733 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
14734 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
14736 (reduc_plus_scal_<mode>): Improve formatting by introducing
14739 2019-07-31 Sudakshina Das <sudi.das@arm.com>
14741 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
14742 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
14743 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
14744 (aarch64_init_tme_builtins): New.
14745 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
14746 (aarch64_expand_builtin_tme): New.
14747 (aarch64_expand_builtin): Handle TME builtins.
14748 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14749 __ARM_FEATURE_TME when enabled.
14750 * config/aarch64/aarch64-option-extensions.def: Add "tme".
14751 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
14753 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
14754 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
14756 (tstart, ttest, tcommit, tcancel): New instructions.
14757 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
14758 (__tcancel, __ttest): New.
14759 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
14760 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
14761 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
14762 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
14763 * config/arm/types.md: Add new tme type attr.
14764 * doc/invoke.texi: Document "tme".
14766 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
14768 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
14769 warn_unused_result attribute.
14770 (cmse_check_address_range): Add warn_unused_result attribute.
14772 2019-07-31 Richard Biener <rguenther@suse.de>
14774 PR tree-optimization/91257
14775 * tree-vrp.c (union_ranges): Unify equality and less tests
14776 by using compare_values. Re-order cheap tests first.
14778 2019-07-31 Jakub Jelinek <jakub@redhat.com>
14780 PR middle-end/91301
14781 * gimplify.c (gimplify_omp_for): If for class iterator on
14782 distribute parallel for there is no data sharing clause
14783 on inner_for_stmt, look for private clause on combined
14784 parallel too and if found, move it to inner_for_stmt.
14786 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
14788 * lra-int.h (lra_operand_data): Remove early_clobber field.
14789 (lra_insn_reg): Likewise.
14790 * lra.c (debug_operand_data): Update accordingly.
14791 (setup_operand_alternative): Likewise.
14792 (new_insn_reg): Likewise. Remove early_clobber parameter.
14793 (collect_non_operand_hard_regs): Update call accordingly.
14794 Don't assign to lra_insn_reg::early_clobber.
14795 (add_regs_to_insn_regno_info): Remove early_clobber parameter
14796 and update calls to new_insn_reg.
14797 (lra_update_insn_regno_info): Update calls accordingly.
14798 * lra-constraints.c (update_and_check_small_class_inputs): Take the
14799 alternative number as a parameter and test whether the operand
14800 is earlyclobbered in that particular alternative.
14801 (process_alt_operands): Update call accordingly. Use per-alternative
14802 checks for earyclobber here too.
14803 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
14804 against zero for IRA_UNKNOWN_ALT.
14806 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
14808 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
14810 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
14812 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
14813 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
14815 2019-07-30 Martin Liska <mliska@suse.cz>
14818 * cgraph.c (cgraph_edge::make_direct): Use
14819 edge->indirect_unknown_callee as edge->resolve_speculation can
14820 deallocate edge which is this pointer.
14822 2019-07-30 Richard Biener <rguenther@suse.de>
14824 PR tree-optimization/91257
14825 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
14827 2019-07-30 Martin Liska <mliska@suse.cz>
14829 * doc/invoke.texi: Document new behavior.
14830 * lto-wrapper.c (cpuset_popcount): New function
14831 is a copy of libgomp/config/linux/proc.c.
14832 (init_num_threads): Likewise.
14833 (run_gcc): Automatically detect core count for -flto.
14834 (jobserver_active_p): New function.
14836 2019-07-30 Richard Biener <rguenther@suse.de>
14838 PR tree-optimization/91257
14839 * bitmap.h (bitmap_ior_into_and_free): Declare.
14840 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
14841 whether to add the unliked element to the freelist.
14842 (bitmap_list_insert_element_after): Add defaulted param for
14843 an already allocated element.
14844 (bitmap_ior_into_and_free): New function.
14845 * tree-ssa-structalias.c (condense_visit): Reduce the
14846 ponts-to and edge bitmaps of the SCC members in a
14847 logarithmic fashion rather than all to one.
14849 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
14851 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
14852 parameter. When nonnull, make sure that the addition or subtraction
14853 has the same condition.
14854 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
14855 for CFN_COND_MUL too.
14857 2019-07-30 Richard Biener <rguenther@suse.de>
14859 PR tree-optimization/91291
14860 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
14863 2019-07-30 Jakub Jelinek <jakub@redhat.com>
14865 PR middle-end/91216
14866 * omp-low.c (global_nonaddressable_vars): New variable.
14867 (use_pointer_for_field): For global decls, if they are non-addressable,
14868 remember it in the global_nonaddressable_vars bitmap, if they are
14869 addressable and in the global_nonaddressable_vars bitmap, ignore their
14870 TREE_ADDRESSABLE bit.
14871 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
14872 vars in global_nonaddressable_vars bitmap.
14873 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
14876 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
14877 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
14878 comparison to unsigned HOST_WIDE_INT before shifting it left.
14880 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
14882 * config/i386/i386.md (movstrict<mode>): Use register_operand
14883 predicate for operand 0. Add expander condition. Assert that
14884 operand 0 is a SUBREG RTX.
14885 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
14886 Update operand constraints and insn condition.
14887 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
14888 (zero_extendqihi2_and): Do not call gen_movstrictqi.
14889 (*setcc_qi_slp): Use register_operand predicate for operand 0.
14890 Update operand 0 constraints.
14891 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
14893 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14895 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
14896 when -m{code,data}-region are used without -mlarge.
14897 * config/msp430/msp430.c (msp430_option_override): Error when a
14898 non-default code or data region is used without -mlarge.
14899 (msp430_section_attr): Emit a warning and do not add upper/lower/either
14900 attributes when they are used without -mlarge.
14902 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14905 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
14907 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14909 PR middle-end/91242
14910 * wide-int.h (generic_wide_int::sext_elt): New function.
14911 * inchash.h (hash::add_wide_int): Use it instead of elt.
14913 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14915 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
14917 * config/arm/arm.md (<crc_variant>): Rename to...
14918 (arm_<crc_variant>): ... This.
14919 (<cdp>): Rename to...
14920 (arm_<cdp>): ... This.
14921 (<ldc>): Rename to...
14922 (arm_<ldc>): ... This.
14923 (<stc>): Rename to...
14924 (arm_<stc>): ... This.
14925 (<mcr>): Rename to...
14926 (arm_<mcr>): ... This.
14927 (<mrc>): Rename to...
14928 (arm_<mrc>): ... This.
14929 (<mcrr>): Rename to...
14930 (arm_<mcrr>): ... This.
14931 (<mrrc>): Rename to...
14932 (arm_<mrrc>): ... This.
14934 2019-07-29 Richard Biener <rguenther@suse.de>
14936 PR tree-optimization/91257
14937 * tree-ssa-sccvn.h (struct vn_avail): New.
14938 (struct vn_ssa_aux): Add avail member.
14939 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
14940 member, add m_avail_freelist one.
14941 (rpo_elim::~rpo_elim): Remove.
14942 (rpo_elim::eliminate_avail): Adjust to new avail tracking
14944 (rpo_elim::eliminate_push_avail): Likewise.
14945 (do_unwind): Likewise.
14946 (do_rpo_vn): Likewise.
14948 2019-07-29 Richard Biener <rguenther@suse.de>
14950 PR tree-optimization/91257
14951 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
14952 most cases, instead call compare_values which handles the
14953 symbolic ranges we handle specially.
14954 (compare_values_warnv): Do not call operand_less_p but open-code
14955 the effective fold calls. Avoid converting so much.
14957 2019-07-29 Martin Liska <mliska@suse.cz>
14959 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
14960 remove LHS of operator new call. It's handled latter.
14962 2019-07-29 Richard Biener <rguenther@suse.de>
14964 PR tree-optimization/91267
14965 * vr-values.c (vr_values::update_value_range): Add early return
14966 for effectively VARYING lattice entry.
14968 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14971 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
14972 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
14973 necessary if keep_all_vdefs_p is true.
14974 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
14975 that keep_all_vdefs_p is false.
14976 (mark_all_reaching_defs_necessary): Likewise.
14977 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
14979 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14981 * common.opt (Og): Change the initial value of flag_dse to 0.
14982 * opts.c (default_options_table): Move OPT_ftree_dse from
14983 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
14984 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
14985 entry before the OPT_ftree_sra entry.
14986 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
14987 of flags disabled by Og.
14989 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14991 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
14994 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14996 * doc/sourcebuild.texi (check-function-bodies): Document.
14998 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15000 * simplify-rtx.c (simplify_const_unary_operation): Fold a
15001 VEC_DUPLICATE of a fixed-length vector even if the result
15002 is variable-length. Likewise fold a duplicate of a
15003 variable-length vector if the variable-length vector is
15004 itself a duplicate of a fixed-length sequence.
15005 (test_vector_ops_duplicate): Test more cases.
15007 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15009 * vector-builder.h (vector_builder): Add a shape template parameter.
15010 (vector_builder::new_unary_operation): New function, generalizing
15011 the old tree_vector_builder function.
15012 (vector_builder::new_binary_operation): Likewise.
15013 (vector_builder::binary_encoded_nelts): Likewise.
15014 * int-vector-builder.h (int_vector_builder): Update template
15015 parameters to vector_builder.
15016 (int_vector_builder::shape_nelts): New function.
15017 * rtx-vector-builder.h (rtx_vector_builder): Update template
15018 parameters to vector_builder.
15019 (rtx_vector_builder::shape_nelts): New function.
15020 (rtx_vector_builder::nelts_of): Likewise.
15021 (rtx_vector_builder::npatterns_of): Likewise.
15022 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
15023 * tree-vector-builder.h (tree_vector_builder): Update template
15024 parameters to vector_builder.
15025 (tree_vector_builder::shape_nelts): New function.
15026 (tree_vector_builder::nelts_of): Likewise.
15027 (tree_vector_builder::npatterns_of): Likewise.
15028 (tree_vector_builder::nelts_per_pattern_of): Likewise.
15029 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
15030 (tree_vector_builder::new_binary_operation): Delete.
15031 (tree_vector_builder::binary_encoded_nelts): Likewise.
15032 * simplify-rtx.c: Include rtx-vector-builder.h.
15033 (distributes_over_addition_p): New function.
15034 (simplify_const_unary_operation)
15035 (simplify_const_binary_operation): Generalize handling of vector
15036 constants to include variable-length vectors.
15037 (test_vector_ops_series): Add more tests.
15039 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
15042 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
15043 than INDENTIFIER_POINTER.
15045 2019-07-28 Martin Liska <mliska@suse.cz>
15048 * cgraph.c (symbol_table::create_edge): Always allocate
15050 (symbol_table::free_edge): Store summary_id to
15051 edge_released_summary_ids if != -1;
15052 * cgraph.h (NEXT_FREE_NODE): Remove.
15053 (SET_NEXT_FREE_NODE): Likewise.
15054 (NEXT_FREE_EDGE): Likewise.
15055 (symbol_table::release_symbol): Store summary_id to
15056 cgraph_released_summary_ids if != -1;
15057 (symbol_table::allocate_cgraph_symbol): Always allocate
15060 2019-07-28 Alan Modra <amodra@gmail.com>
15062 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
15065 2019-07-28 Alan Modra <amodra@gmail.com>
15068 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
15070 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
15071 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
15072 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
15074 2019-07-28 Alan Modra <amodra@gmail.com>
15077 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
15078 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
15079 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
15080 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
15081 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
15082 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
15083 in asm_default spec.
15084 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
15085 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
15087 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
15089 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
15091 2019-07-26 Tamar Christina <tamar.christina@arm.com>
15094 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
15095 * config/aarch64/aarch64-option-extensions.def: Add new comments
15096 and restore easier to read options.
15098 2019-07-26 Tamar Christina <tamar.christina@arm.com>
15100 * convert.c (convert_to_real_1): Move part of conversion code...
15101 * match.pd: ...To here.
15103 2019-07-26 Martin Jambor <mjambor@suse.cz>
15106 * ipa-inline-transform.c (check_speculations_1): New function.
15107 (push_all_edges_in_set_to_vec): Likewise.
15108 (check_speculations): Use check_speculations_1, new parameter
15110 (inline_call): Pass new_edges to check_speculations.
15111 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
15113 (speculation_useful_p): Early return true if edge is inlined, remove
15114 later checks for inline_failed.
15116 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
15118 PR rtl-optimization/91223
15119 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
15120 matching with INOUT operand.
15122 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
15124 * stmt.c (expand_case): Try to narrow the index type if it's larger
15125 than a word. Tidy up.
15127 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
15129 * cif-code.def (NEVER_CALL): New code.
15130 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
15131 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
15133 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
15135 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
15136 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
15138 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15140 * ipa-devirt.c (add_type_duplicate): Fix return value.
15142 2019-07-25 Richard Biener <rguenther@suse.de>
15144 * tree-vrp.c (extract_range_from_multiplicative_op): Add
15145 type parameter and use it instead of guessing expression
15146 type from the first operand.
15147 (extract_range_from_binary_expr): Pass expr_type down.
15149 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15151 * config/arm/arm.md (SATrev): Change to code attribute.
15152 (*satsi_<SAT:code>): Adjust for the above.
15153 (*satsi_<SAT:code>_shift): Likewise.
15155 2019-07-25 Richard Biener <rguenther@suse.de>
15157 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
15158 Make value_range * temporary const.
15159 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
15161 (evrp_range_analyzer::record_ranges_from_): Likewise.
15162 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
15163 deal with having recorded a const one.
15164 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
15165 Return a const value_range *.
15166 (evrp_range_analyzer::pop_value_range): Likewise.
15167 (evrp_range_analyzer::stack): Record const value_range *s.
15168 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
15170 * gimple-ssa-sprintf.c (get_int_range): Likewise.
15171 (format_integer): Likewise.
15172 (sprintf_dom_walker::handle_gimple_call): Likewise.
15173 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
15174 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
15175 (vrp_prop::get_value_range): Adjust.
15176 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
15177 modifying the lattice in-place.
15178 (vrp_prop::visit_stmt): Likewise.
15179 * vr-values.c (vr_values::get_lattice_entry): New private method.
15180 (vr_values::get_value_range): Wrap it and return a const
15182 (vr_values::set_def_to_varying): New.
15183 (vr_values::set_defs_to_varying): Use it.
15184 (vr_values::update_value_range): Likewise.
15185 (vr_values::vrp_stmt_computes_nonzero): Adjust.
15186 (values::op_with_constant_singleton_va): Likewise.
15187 (vr_values::extract_range_for_var_from_co): Likewise.
15188 (vr_values::extract_range_from_ssa_name): Likewise.
15189 (vr_values::extract_range_from_cond_expr): Likewise.
15190 (vr_values::extract_range_basic): Likewise.
15191 (compare_ranges): Take const value_range *, adjust.
15192 (compare_range_with_value): Likewise.
15193 (vrp_valueize): Adjust.
15194 (vrp_valueize_1): Likewise.
15195 (vr_values::get_vr_for_comparison): Return a const value_range *.
15196 (vr_values::compare_name_with_value): Adjust.
15197 (vr_values::compare_names): Likewise.
15198 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
15200 (vr_values::vrp_evaluate_conditional): Likewise.
15201 (find_case_label_ranges): Take a const value_range *.
15202 (vr_values::vrp_visit_switch_stmt): Adjust.
15203 (vr_values::extract_range_from_phi_node): Likewise.
15204 (vr_values::simplify_div_or_mod_using_ran): Likewise.
15205 (vr_values::simplify_abs_using_ranges): Likewise.
15206 (test_for_singularity): Take a const value_range *.
15207 (range_fits_type_p): Likewise.
15208 (vr_values::simplify_cond_using_ranges_1): Adjust.
15209 (vr_values::simplify_cond_using_ranges_2): Likewise.
15210 (vr_values::simplify_switch_using_ranges): Likewise.
15211 (vr_values::simplify_float_conversion_usi): Likewise.
15212 (vr_values::two_valued_val_range_p): Likewise.
15213 * vr-values.h (vr_values::get_value_range): Return a const
15215 (vr_values::set_def_to_varying): New.
15216 (vr_values::get_lattice_entry): New private method.
15217 (vr_values::get_vr_for_comparison): Return a const value_range *.
15219 2019-07-25 Martin Liska <mliska@suse.cz>
15220 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
15223 * common.opt: Add -fallocation-dce
15224 * gimple.c (gimple_call_operator_delete_p): New.
15225 * gimple.h (gimple_call_operator_delete_p): Likewise.
15226 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
15227 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
15228 DECL_IS_OPERATOR_DELETE_P.
15229 (mark_all_reaching_defs_necessary_1): Likewise.
15230 (propagate_necessity): Likewise.
15231 (eliminate_unnecessary_stmts): Handle
15232 gimple_call_operator_delete_p.
15233 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
15234 Add packing of OPERATOR_DELETE.
15235 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
15237 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
15238 (DECL_SET_IS_OPERATOR_DELETE): New.
15239 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
15241 2019-07-25 Martin Liska <mliska@suse.cz>
15243 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
15244 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
15245 * coverage.c (coverage_begin_function): Likewise.
15246 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
15247 * gimple.c (gimple_call_nonnull_result_p): Likewise.
15248 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
15249 (sem_item::hash_referenced_symbol_properties): Likewise.
15250 * lto-streamer-out.c (hash_tree): Likewise.
15251 * predict.c (expr_expected_value_1): Likewise.
15252 * tree-inline.c (expand_call_inline): Likewise.
15253 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
15254 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
15255 * tree-core.h (enum function_decl_type): New enum.
15256 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
15257 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
15258 (set_function_decl_type): Likewise.
15259 (DECL_IS_OPERATOR_NEW_P): New.
15260 (DECL_SET_IS_OPERATOR_NEW): Likewise.
15261 (DECL_LAMBDA_FUNCTION): Likewise.
15262 (DECL_LAMBDA_FUNCTION_P): Likewise.
15263 (DECL_IS_OPERATOR_NEW): Remove.
15264 (DECL_SET_LAMBDA_FUNCTION): Likewise.
15266 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
15268 * ipa-profile.c (get_most_common_single_value): Use
15269 get_nth_most_common_value.
15270 * profile.c (sort_hist_value): New function.
15271 (compute_value_histograms): Call sort_hist_value to sort the
15272 values after loading from disk.
15273 * value-prof.c (get_most_common_single_value): Rename to ...
15274 get_nth_most_common_value. Add input params n, return
15275 the n_th value and count.
15276 (gimple_divmod_fixed_value_transform): Use
15277 get_nth_most_common_value.
15278 (gimple_ic_transform): Likewise.
15279 (gimple_stringops_transform): Likewise.
15280 * value-prof.h (get_most_common_single_value): Add input params
15283 2019-07-25 Richard Biener <rguenther@suse.de>
15285 PR tree-optimization/91236
15286 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
15287 size of CONSTRUCTOR write. Fix buffer size we pass to
15288 native_encode_expr.
15290 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15292 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
15293 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
15296 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15298 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
15299 explicitly disabled with --disable-initfini-array.
15301 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15303 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
15306 2019-07-24 Martin Sebor <msebor@redhat.com>
15308 PR tree-optimization/91183
15309 PR tree-optimization/86688
15310 * builtins.c (compute_objsize): Handle MEM_REF.
15311 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
15312 (get_min_string_length): Remove.
15313 (count_nonzero_bytes): New function.
15314 (handle_char_store): Rename...
15315 (handle_store): to this. Handle multibyte stores via integer types.
15316 (strlen_check_and_optimize_stmt): Adjust conditional and the called
15319 2019-07-24 Martin Sebor <msebor@redhat.com>
15322 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
15323 (diagnostic_report_diagnostic): Same.
15324 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
15325 (diagnostic_context::lang_mask): New data member.
15326 * ipa-pure-const.c (suggest_attribute): Use
15327 lang_hooks.option_lang_mask ().
15328 * opts-common.c (option_enabled): Handle new argument.
15329 (get_option_state): Pass an additional argument.
15330 * opts.c (print_filtered_help): Print supported languages for
15331 unsupported options. Adjust printing of current state.
15332 * opts.h (option_enabled): Add argument.
15333 * toplev.c (print_switch_values): Use lang_mask.
15334 (general_init): Set global_dc->lang_mask.
15336 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
15339 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
15341 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
15343 * cgraphunit.c (symbol_table::compile): Start and stop
15344 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
15345 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
15347 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
15349 * gimplify.c (flag_instrument_functions_exclude_p): Include
15350 namespace/class information in the printable name.
15351 * opts.c (add_comma_separated_to_vector): Add NUL terminator
15352 to tokens entered into the vector.
15354 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
15356 * tree-nested.c (build_simple_mem_ref_notrap): New function.
15357 (get_static_chain): Call it instead of build_simple_mem_ref.
15358 (get_frame_field): Likewise.
15359 (get_nonlocal_debug_decl): Likewise.
15360 (convert_nonlocal_reference_op): Likewise.
15362 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
15364 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
15366 (arc_compute_frame_size): Millicode is disabled when compiling
15368 (arc_return_address_register): Likewise.
15369 (arc_compute_function_type): Likewise.
15370 (arc_compute_frame_size): Likewise.
15371 (secondary_reload_info): Likewise.
15372 (arc_get_unalign): Likewise.
15373 (arc_can_use_return_insn): Declare.
15374 * config/arc/arc.c (AUX_LP_START): Define
15375 (AUX_LP_END): Likewise.
15376 (arc_frame_info): Update gmask member to 64-bit datum.
15377 (GMASK_LEN): Update.
15378 (arc_compute_function_type): Make it static, move it forward.
15379 (arc_must_save_register): Update, consider the extra regs.
15380 (arc_compute_millicode_save_restore_regs): Update to use the 64
15382 (arc_compute_frame_size): Likewise.
15383 (arc_enter_leave_p): Likewise.
15384 (arc_save_callee_saves): Likewise.
15385 (arc_restore_callee_saves): Likewise.
15386 (arc_save_callee_enter): Likewise.
15387 (arc_restore_callee_leave): Likewise.
15388 (arc_save_callee_milli): Likewise.
15389 (arc_restore_callee_milli): Likewise.
15390 (arc_expand_prologue): Add new interrupt handling.
15391 (arc_return_address_register): Make it static, move it forward.
15392 (arc_expand_epilogue): Add new interrupt handling.
15393 (arc_get_unalign): Delete.
15394 (arc_epilogue_uses): Make sure we do not remove the extra
15395 saved/restored registers when interrupt.
15396 (arc_can_use_return_insn): New function.
15397 (push_reg): Likewise.
15398 (pop_reg): Likewise.
15399 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
15401 (arc_restore_callee_saves): Likewise, but restoring.
15402 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
15403 (R33_REG): Likewise.
15404 (R34_REG): Likewise.
15405 (R35_REG): Likewise.
15406 (R36_REG): Likewise.
15407 (R37_REG): Likewise.
15408 (R38_REG): Likewise.
15409 (R39_REG): Likewise.
15410 (R45_REG): Likewise.
15411 (R46_REG): Likewise.
15412 (R47_REG): Likewise.
15413 (R48_REG): Likewise.
15414 (R49_REG): Likewise.
15415 (R50_REG): Likewise.
15416 (R51_REG): Likewise.
15417 (R52_REG): Likewise.
15418 (R53_REG): Likewise.
15419 (R54_REG): Likewise.
15420 (R55_REG): Likewise.
15421 (R56_REG): Likewise.
15422 (R58_REG): Likewise.
15423 (type): Add rtie attribute.
15424 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
15425 (movsi_insn): Accept moves to lp_count.
15426 (rtie): Update pattern.
15427 (simple_return): Simplify it, don't use this pattern as a return
15429 (arc600_rtie): New pattern.
15430 (p_return_i): Clean up.
15431 (return): Likewise.
15432 * config/arc/builtins.def (rtie): Only available for non ARC6xx
15434 * config/arc/predicates.md (move_src_operand): Consider lp_count
15437 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
15439 * config/s390/predicates.md (addv_const_operand): New predicate.
15440 * config/s390/s390-modes.def (CCO): New condition code mode.
15441 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
15442 (s390_branch_condition_mask): Likewise.
15443 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
15444 ("mulv<mode>4"): New expanders.
15445 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
15446 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
15447 pattern definitions.
15449 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15451 PR middle-end/91166
15452 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
15453 (define_predicates): Add entry for uniform_vector_p.
15454 (vec_same_elem_p): New match pattern.
15456 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
15459 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
15460 * config/i386/darwin32-biarch.h .. to here.
15461 * config/i386/darwin64-biarch.h: Adjust comments.
15462 * config/rs6000/darwin32-biarch.h: Likewise.
15463 * config/rs6000/darwin64-biarch.h: Likewise.
15464 * config.gcc: Missed commit from r273746
15465 (*-*-darwin*): Don't include CPU t-darwin here.
15466 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
15467 an error message if i686-darwin configuration is attempted for
15470 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
15473 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
15474 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
15475 an error message if i686-darwin configuration is attempted for
15477 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
15478 (powerpc-*-darwin*): Use biarch files where needed.
15479 (powerpc64-*-darwin*): Likewise.
15480 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
15481 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
15483 * config/i386/darwin32-biarch.h: New.
15484 * config/i386/darwin64.h: Rename.
15485 * config/i386/darwin64-biarch.h: To this.
15486 * config/i386/t-darwin: Rename.
15487 * config/i386/t-darwin32-biarch: To this.
15488 * config/i386/t-darwin64: Rename.
15489 * config/i386/t-darwin64-biarch: To this.
15490 * config/rs6000/darwin32-biarch.h: New.
15491 * config/rs6000/darwin64.h: Rename.
15492 * config/rs6000/darwin64-biarch.h: To this.
15493 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
15495 * config/rs6000/t-darwin8: Rename.
15496 * config/rs6000/t-darwin32-biarch: To this.
15497 * config/rs6000/t-darwin64 Rename.
15498 * config/rs6000/t-darwin64-biarch: To this.
15500 2019-07-23 Martin Sebor <msebor@redhat.com>
15502 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
15504 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
15506 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
15507 (rh): New alias for it.
15509 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
15511 * gdbhooks.py: Pass replace=True to
15512 gdb.printing.register_pretty_printer.
15514 2019-07-23 Richard Biener <rguenther@suse.de>
15517 * lto-streamer-in.c (input_function): Drop inline-entry markers
15518 that ended up with an unknown location block.
15520 2019-07-23 Richard Biener <rguenther@suse.de>
15522 PR tree-optimization/83518
15523 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
15524 init from a constant even when partial defs are already recorded.
15526 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15528 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
15529 * config/i386/znver1.md: Enable patterns for znver2 and add store
15530 variants which use extra AGU unit.
15532 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15534 * config/i386/i386-options.c (ix86_option_override_internal): Default
15535 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
15536 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
15539 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15541 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
15542 (znver2_costs): Update 256 bit SSE costs and multiplication.
15544 2019-07-23 Jan Beulich <jbeulich@suse.com>
15546 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
15547 Require only AVX512F.
15548 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
15549 alternative expanding to vpternlog.
15551 2019-07-23 Martin Liska <mliska@suse.cz>
15553 * dwarf2out.c (gen_producer_string): Canonize -flto=N
15554 to -flto in dwarf producer string.
15556 2019-07-23 Richard Biener <rguenther@suse.de>
15558 * tree-cfg.c (label_for_bb): Remove global var.
15559 (main_block_label): Take label_for_bb as argument.
15560 (cleanup_dead_labels_eh): Likewise, adjust.
15561 (cleanup_dead_labels): Adjust.
15563 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
15565 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
15566 Configurations): Add documentation for __builtin_mtfsf.
15568 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
15570 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
15571 * config/riscv/riscv.c (riscv_constant_alignment): Use
15572 riscv_align_data_type.
15573 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
15574 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
15575 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
15576 * config/riscv/riscv.opt (malign-data): New.
15577 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
15579 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
15581 * cgraph.c (dump_graphviz): New function.
15582 * cgraph.h (dump_graphviz): New function.
15583 * symtab.c (dump_graphviz): New function.
15585 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
15587 * config/aarch64/aarch64-simd.md
15588 (*aarch64_simd_sra<mode>): New.
15589 * config/aarch64/iterators.md
15590 (SHIFTRT): New iterator.
15591 (sra_op): New attribute.
15593 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15595 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
15596 callee-saved regs R4->R10 in an interrupt function that calls another
15599 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
15601 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
15602 (_mm_blendv_epi8): New.
15604 2019-07-22 Richard Biener <rguenther@suse.de>
15606 PR tree-optimization/91221
15607 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
15608 restrict partial-def handling of empty constructors and
15609 memset to refs with known offset.
15611 2019-07-22 Jan Beulich <jbeulich@suse.com>
15613 * config/i386/sse.md (ternlogsuffix): New.
15614 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
15616 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
15618 2019-07-22 Martin Liska <mliska@suse.cz>
15620 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
15622 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
15624 2019-07-22 Martin Liska <mliska@suse.cz>
15626 * lto-section-in.c (lto_get_section_data):
15627 Use new function get_compression.
15628 * lto-streamer-out.c (produce_lto_section): Use
15629 set_compression to encode compression algorithm.
15630 * lto-streamer.h (struct lto_section): Do not
15631 use bitfields in the format.
15633 2019-07-22 Martin Liska <mliska@suse.cz>
15636 * opts-common.c (decode_cmdline_option): Decode
15637 argument of -Werror and check it for a wrong language.
15638 * opts-global.c (complain_wrong_lang): Remove such case.
15640 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
15642 * config/arc/arc.c (prepare_move_operands): Always use an
15643 intermediate register when storing a TLS symbols.
15645 2019-07-22 Stafford Horne <shorne@gmail.com>
15647 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
15650 2019-07-22 Stafford Horne <shorne@gmail.com>
15652 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
15653 and munordered-float validations.
15654 * config/or1k/constraints.md (d): New register constraint.
15655 * config/or1k/predicates.md (fp_comparison_operator): New.
15656 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
15658 (or1k_expand_compare): Normalize unordered comparisons.
15659 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
15660 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
15661 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
15662 * config/or1k/or1k.md (type): Add fpu.
15663 (fpu): New instruction reservation.
15664 (F, f, fr, fi, FI, FOP, fop): New.
15665 (<fop><F:mode>3): New ALU instruction definition.
15666 (float<fi><F:mode>2): New conversion instruction definition.
15667 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
15668 (fpcmpcc): New code iterator.
15669 (*sf_fp_insn): New instruction definition.
15670 (cstore<F:mode>4): New expand definition.
15671 (cbranch<F:mode>4): New expand definition.
15672 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
15673 munordered-float): New options.
15674 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
15677 2019-07-22 Stafford Horne <shorne@gmail.com>
15679 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
15680 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
15681 documenation to be more clear.
15682 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
15684 * config/or1k/or1k.opt (mrori): New option.
15685 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
15686 msfimm, mshftimm): Rewrite documentation to be more clear.
15687 * config/or1k/or1k.md (insn_support): Add ror and rori.
15688 (enabled): Add conditions for ror and rori.
15689 (rotrsi3): Replace condition for shftimm with ror and rori.
15691 2019-07-22 Stafford Horne <shorne@gmail.com>
15694 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
15695 (extend<mode>si2): Update predicate.
15696 * config/or1k/predicates.md (volatile_mem_operand): New.
15697 (reg_or_mem_operand): New.
15699 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
15701 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
15702 * config/rs6000/rs6000-call.c: ... to here.
15704 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15706 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
15709 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15711 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
15713 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15715 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
15717 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15719 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
15720 (any_memory_operand): New predicate.
15721 (reg_or_mem_operand): Use it.
15723 2019-07-20 Jakub Jelinek <jakub@redhat.com>
15726 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
15728 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
15730 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
15731 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
15733 2019-07-20 Jakub Jelinek <jakub@redhat.com>
15735 * tree.def (OMP_LOOP): New tree code.
15736 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
15737 (enum omp_clause_bind_kind): New enum.
15738 (struct tree_omp_clause): Add subcode.bind_kind.
15739 * tree.h (OMP_LOOP_CHECK): Rename to ...
15740 (OMP_LOOPING_CHECK): ... this.
15741 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
15742 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
15743 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
15744 (OMP_CLAUSE_BIND_KIND): Define.
15745 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
15746 bind clause entries.
15747 (walk_tree_1): Handle OMP_CLAUSE_BIND.
15748 * tree-pretty-print.c (dump_omp_clause): Likewise.
15749 (dump_generic_node): Handle OMP_LOOP.
15750 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
15751 (in_omp_construct): New variable.
15752 (is_gimple_stmt): Handle OMP_LOOP.
15753 (gimplify_scan_omp_clauses): For lastprivate don't set
15754 check_non_private if code == OMP_LOOP. For reduction clause
15755 on OMP_LOOP combined with parallel or teams propagate as shared
15756 on the combined construct. Handle OMP_CLAUSE_BIND.
15757 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
15758 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
15759 for constructs from a loop construct to gimplify_scan_omp_clauses.
15760 Don't predetermine iterator linear on OMP_SIMD from loop construct.
15761 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
15762 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
15763 to match the implicit ORT_TARGET construct around whole body.
15764 Temporarily clear in_omp_construct when processing body.
15765 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
15766 etc. temporarily set in_omp_construct when processing body.
15767 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
15768 * omp-low.c (struct omp_context): Add loop_p.
15769 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
15770 in that the original var might be private.
15771 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
15772 (check_omp_nesting_restrictions): Adjust nesting restrictions for
15773 addition of loop construct.
15774 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
15776 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
15777 lastprivate non-addressable iterator of a collapse(1) simd.
15779 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
15781 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
15784 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
15786 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
15787 refer to default conditions. Warn for the 'y' spec which is ignored
15788 by current linkers.
15790 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
15792 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
15793 cpu_supports_info, builtin_hash_struct, builtin_hasher,
15794 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
15795 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
15796 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
15797 init_cumulative_args, rs6000_promote_function_mode,
15798 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
15799 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
15800 rs6000_function_arg_boundary, rs6000_parm_offset,
15801 rs6000_parm_start, rs6000_arg_size,
15802 rs6000_darwin64_record_arg_advance_flush,
15803 rs6000_darwin64_record_arg_advance_recurse,
15804 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
15805 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
15806 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
15807 rs6000_mixed_function_arg, rs6000_psave_function_arg,
15808 rs6000_finish_function_arg, rs6000_function_arg,
15809 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
15810 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
15811 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
15812 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
15813 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
15814 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
15815 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
15816 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
15817 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
15818 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
15819 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
15820 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
15821 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
15822 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
15823 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
15824 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
15825 get_element_number, altivec_expand_vec_set_builtin,
15826 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
15827 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
15828 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
15829 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
15830 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
15831 rs6000_expand_builtin, rs6000_vector_type,
15832 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
15833 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
15834 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
15836 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
15837 cpu_supports_info, builtin_hash_struct, builtin_hasher,
15838 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
15839 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
15840 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
15841 init_cumulative_args, rs6000_promote_function_mode,
15842 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
15843 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
15844 rs6000_function_arg_boundary, rs6000_parm_offset,
15845 rs6000_parm_start, rs6000_arg_size,
15846 rs6000_darwin64_record_arg_advance_flush,
15847 rs6000_darwin64_record_arg_advance_recurse,
15848 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
15849 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
15850 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
15851 rs6000_mixed_function_arg, rs6000_psave_function_arg,
15852 rs6000_finish_function_arg, rs6000_function_arg,
15853 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
15854 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
15855 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
15856 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
15857 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
15858 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
15859 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
15860 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
15861 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
15862 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
15863 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
15864 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
15865 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
15866 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
15867 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
15868 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
15869 get_element_number, altivec_expand_vec_set_builtin,
15870 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
15871 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
15872 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
15873 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
15874 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
15875 rs6000_expand_builtin, rs6000_vector_type,
15876 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
15877 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
15878 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
15879 to here from rs6000.c.
15880 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
15881 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
15882 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
15883 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
15884 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
15885 rs6000_return_in_memory, rs6000_return_in_msb,
15886 rs6000_pass_by_reference, setup_incoming_varargs,
15887 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
15888 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
15889 rs6000_function_arg_padding, rs6000_function_arg,
15890 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
15891 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
15892 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
15893 rs6000_passes_long_double, rs6000_passes_vector,
15894 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
15895 altivec_builtin_mask_for_load) Add declarations.
15896 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
15897 * config/config.gcc: Add new source file rs6000-call.c to garbage
15898 collector and extra_objs.
15900 2019-07-19 Jeff Law <law@redhat.com>
15902 PR tree-optimization/86061
15903 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
15904 strncpy. Drop some trivial dead code.
15905 (maybe_trim_memstar_call): Handle strncpy.
15907 2019-07-19 Richard Biener <rguenther@suse.de>
15909 PR tree-optimization/91211
15910 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
15911 memset encoding size.
15913 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
15916 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
15918 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
15921 * ipa-inline.c (recursive_inlining): Fix limits check.
15923 2019-07-19 Richard Biener <rguenther@suse.de>
15925 PR tree-optimization/91200
15926 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
15927 no PHI nodes in middle-bb.
15929 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
15931 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
15933 * config/aarch64/aarch64-option-extensions.def: Likewise.
15935 2019-07-19 Jakub Jelinek <jakub@redhat.com>
15937 PR middle-end/91190
15938 * function.c (insert_temp_slot_address): Store into the hash table
15939 a copy of address to avoid RTL sharing issues.
15941 2019-07-19 Richard Biener <rguenther@suse.de>
15943 PR tree-optimization/91207
15945 2019-07-17 Richard Biener <rguenther@suse.de>
15947 PR tree-optimization/91178
15948 * tree-vect-stmts.c (get_group_load_store_type): For SLP
15949 loads with a gap larger than the vector size always use
15951 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
15952 avoid loading vectors that are only contained in the gap
15953 and thus are not needed.
15955 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
15957 * config/i386/i386.md (*addqi_2_slp): Remove.
15958 (*<code>qi_2_slp): Ditto.
15960 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
15962 * config/rs6000/predicates.md (prefixed_mem_operand): Call
15963 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
15964 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
15965 Rename function from rs6000_prefixed_address.
15966 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
15968 (TARGET_TOC): Likewise.
15969 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
15971 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
15973 (TARGET_TOC): Likewise.
15974 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
15976 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
15978 (TARGET_TOC): Likewise.
15979 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
15980 check to require -mcmodel=medium for pc-relative addressing.
15981 (create_TOC_reference): Add assertion for TARGET_TOC.
15982 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
15984 (rs6000_emit_move): Likewise.
15985 (TOC_alias_set): Rename TOC alias set static variable from 'set'
15986 to 'TOC_alias_set'.
15987 (get_TOC_alias_set): Likewise.
15988 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
15990 (rs6000_can_eliminate): Likewise.
15991 (rs6000_prefixed_address_mode_p): Rename function from
15992 rs6000_prefixed_address.
15993 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
15994 TARGET_HAS_TOC and not pc-relative.
15995 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
15996 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
15998 (TARGET_TOC): Likewise.
15999 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
16002 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
16005 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
16006 for operand 0. Do not use (match_dup) to match operand 1 with
16007 operand 0. Add check in insn constraint that either input operand
16008 matches operand 0. Use SWI12 mode iterator to also handle
16010 (*and<mode>_1_slp): Ditto.
16011 (*<code>qi_1_slp): Ditto.
16012 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
16013 Do not use (match_dup) to match operand 1 with operand 0. Add
16014 check in insn constraint that operand 1 matches operand 0.
16015 Use SWI12 mode iterator to also handle HImode operands.
16016 (*ashl<mode>3_1_slp): Ditto.
16017 (*<shift_insn><mode>3_1_slp): Ditto.
16018 (*<rotate_insn><mode>3_1_slp): Ditto.
16020 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
16022 * config/arm/arm-builtins.c
16023 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
16024 (arm_expand_unop_builtin): Likewise.
16025 * config/arm/crypto.md
16026 (crypto_sha1h): Convert from define_insn to define_expand.
16027 (crypto_<crypto_pattern>): Likewise.
16028 (crypto_sha1h_lb): New define_insn.
16029 (crypto_<crypto_pattern>_lb): Likewise.
16031 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
16034 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
16035 (vsha1cq_u32): Likewise.
16036 (vsha1pq_u32): Likewise.
16037 (vsha1mq_u32): Likewise.
16038 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
16040 (crypto_sha1c): Correct vec select.
16041 (crypto_sha1m): Likewise.
16042 (crypto_sha1p): Likewise.
16044 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
16046 * config/arm/predicates.md (arm_borrow_operation): New predicate.
16047 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
16048 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
16049 (subdi_zesidi_zesidi): Likewise.
16050 (negdi2_compare, negdi2_insn): Likewise.
16051 (negdi_extensidi): Likewise.
16052 (negdi_zero_extendsidi): Likewise.
16053 (arm_cmpdi_insn): Likewise.
16054 (subsi3_carryin): Use arm_borrow_operation.
16055 (subsi3_carryin_const): Likewise.
16056 (subsi3_carryin_const0): Likewise.
16057 (subsi3_carryin_compare): Likewise.
16058 (subsi3_carryin_compare_const): Likewise.
16059 (subsi3_carryin_compare_const0): Likewise.
16060 (subsi3_carryin_shift): Likewise.
16061 (rsbsi3_carryin_shift): Likewise.
16062 (negsi2_carryin_compare): Likewise.
16064 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
16066 PR tree-optimization/91137
16067 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
16068 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
16069 Init, use and fini the above new field.
16070 (determine_base_object_1): New function.
16071 (determine_base_object): Reimplement using walk_tree.
16073 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
16075 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
16076 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
16077 CLEANUP_FORCE_FAST_DCE is set.
16078 * ifcvt.c (rest_of_handle_if_conversion): Pass
16079 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
16080 if-conversion succeeded.
16082 2019-07-18 Richard Biener <rguenther@suse.de>
16084 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
16085 branches to make code less indented.
16087 2019-07-17 Alexandre Oliva <oliva@adacore.com>
16089 PR middle-end/81824
16090 * attribs.c (decls_mismatched_attributes): Simplify the logic
16091 that avoids duplicates and false positives.
16093 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
16095 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
16096 data into data section when generating PIC code.
16097 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
16098 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
16099 generating code for SOM targets earlier than HP-UX 11. Otherwise,
16100 return 2 for SOM and 0 for other targets.
16102 2019-07-17 Jeff Law <law@redhat.com>
16104 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
16105 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
16106 avoid unexpected switch statement fallthru.
16108 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
16110 * config/i386/i386.md (*add<dwi>3_doubleword):
16111 Remove redundant constraints.
16112 (*add<mode>_1): Ditto.
16115 (*addqi_1_slp): Ditto.
16116 (*add<mode>_2): Ditto.
16117 (*addv<mode>4): Ditto.
16118 (*sub<dwi>3_doubleword): Ditto.
16119 (*sub<mode>_1): Ditto.
16120 (*subqi_1_slp): Ditto.
16121 (*sub<mode>_2): Ditto.
16122 (*subv<mode>4): Ditto.
16123 (*sub<mode>_3): Ditto.
16124 (@add<mode>3_carry): Ditto.
16125 (@sub<mode>3_carry): Ditto.
16126 (*add<mode>3_cc_overflow_1): Ditto.
16127 (*add<mode>3_zext_cc_overflow_2): Ditto.
16129 (*and<mode>_1): Ditto.
16131 (*andqi_1_slp): Ditto.
16133 (*andqi_2_maybe_si): Ditto.
16134 (*and<mode>_2): Ditto.
16135 (*andqi_2_slp): Ditto.
16136 (*<code><mode>_1): Ditto.
16137 (*<code>qi_1): Ditto.
16138 (*<code>qi_1_slp): Ditto.
16139 (*<code><mode>_2): Ditto.
16140 (*<code>qi_2_slp): Ditto.
16142 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
16144 * alias.c (record_component_aliases): Do not simplify pointed-to
16145 types of ODR types.
16147 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
16149 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
16150 partial reg stall on alternative 2.
16152 2019-07-17 Richard Biener <rguenther@suse.de>
16154 PR tree-optimization/91178
16155 * tree-ssa.c (release_defs_bitset): Iterate from higher to
16156 lower SSA names to avoid quadratic behavior in the common case.
16157 * tree-data-ref.c (split_constant_offset): Add limit argument
16158 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
16159 (split_constant_offset_1): Add limit argument and use it to
16160 limit SSA def walking. Optimize the common plus/minus case.
16162 2019-07-17 Richard Biener <rguenther@suse.de>
16164 PR tree-optimization/91178
16165 * tree-vect-stmts.c (get_group_load_store_type): For SLP
16166 loads with a gap larger than the vector size always use
16168 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
16169 avoid loading vectors that are only contained in the gap
16170 and thus are not needed.
16172 2019-07-17 Richard Biener <rguenther@suse.de>
16174 PR tree-optimization/91180
16175 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
16176 computation for memset partial defs.
16178 2019-07-17 Jakub Jelinek <jakub@redhat.com>
16180 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
16181 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
16182 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
16183 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
16184 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
16185 * omp-grid.c (grid_process_grid_body,
16186 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
16187 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
16188 == GF_OMP_FOR_KIND_SIMD.
16189 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
16190 check_omp_nesting_restrictions, scan_omp_1_stmt,
16191 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
16192 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
16193 omp_find_scan): Likewise.
16194 * omp-expand.c (expand_omp_for): Likewise.
16195 * omp-general.c (omp_extract_for_data): Likewise.
16197 PR tree-optimization/91157
16198 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
16199 a vector boolean with scalar mode.
16200 (expand_vector_condition): Handle first operand being a vector boolean
16202 (expand_vector_operations_1): For comparisons, don't bail out early
16203 if the return type is vector boolean with scalar mode, but comparison
16204 operand type is not.
16206 2019-07-17 Richard Biener <rguenther@suse.de>
16208 PR tree-optimization/91181
16209 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
16210 IFN_LOADs as calls.
16212 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
16214 * config/i386/i386.md (*testdi_1): Match CCZmode for
16215 constants that might have the SImode sign bit set.
16216 (*testqi_1_maybe_si): Remove "!" constraint modifier.
16217 Use correct constraints for pentium pairing.
16218 (*test<mode>_1): Ditto.
16220 2019-07-16 Jeff Law <law@redhat.com>
16222 PR rtl-optimization/91173
16223 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
16224 SSA_NAME with a constant value, fold its value into the offset
16225 and clear the base before calling gen_addr_rtx.
16227 2019-07-16 Jakub Jelinek <jakub@redhat.com>
16229 PR rtl-optimization/91164
16230 * dse.c (rest_of_handle_dse): If dead edges have been purged,
16231 invalidate dominance info.
16233 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16235 * read-md.h (md_reader::record_potential_iterator_use): Add a
16236 file_location parameter.
16237 * read-rtl.c (attribute_use::loc): New field.
16238 (map_attr_string): Take a file_location parameter. Report cases
16239 in which attributes map to multiple distinct values.
16240 (apply_attribute_uses): Update call accordingly.
16241 (md_reader::handle_overloaded_name): Likewise.
16242 (md_reader::apply_iterator_to_string): Likewise. Skip empty
16244 (record_attribute_use): Take a file_location parameter.
16245 Initialize attribute_use::loc.
16246 (md_reader::record_potential_iterator_use): Take a file_location
16247 parameter. Update call to record_attribute_use.
16248 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
16249 (rtx_reader::read_rtx_code): Likewise.
16250 (rtx_reader::read_rtx_operand): Likewise. Record a location
16251 for implicitly-expanded empty strings.
16253 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16255 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
16256 Use file_location instead of separate fields.
16257 (md_reader::set_md_ptr_loc): Take a file_location instead of a
16258 separate filename and line number.
16259 * read-md.c (ptr_loc): As above.
16260 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
16261 (md_reader::fprint_md_ptr_loc): Likewise.
16262 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
16263 instead of a separate filename and line number.
16264 (md_reader::read_string): Update call accordingly.
16266 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16268 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
16269 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
16270 leaving the choice between SFDF and P implicit.
16271 (*mov<mode>_update2): Likewise.
16272 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
16273 rather than leaving the choice betweem IBM128 and GPR implicit.
16274 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
16275 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
16277 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
16278 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
16279 * config/rs6000/vsx.md
16280 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
16281 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
16282 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
16283 and VSX_EXTRACT_I implicit.
16285 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16287 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
16288 Explicitly use <MOVEP1:MODE> for the mode attribute.
16290 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
16293 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
16295 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
16298 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
16299 .machine directive.
16301 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
16303 * config/i386/i386.md (@test<mode>_ccno_1):
16304 Rename from test<mode>_ccno_1.
16305 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
16306 (*testqi_1_maybe_si): Remove modrm attribute.
16307 (*test<mode>_1): Ditto.
16308 * config/i386/i386-expand.c (ix86_split_idivmod): Use
16309 gen_test_ccno_1 and gen_extend_insn.
16311 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
16313 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
16316 2019-07-15 Richard Biener <rguenther@suse.de>
16318 PR middle-end/91162
16319 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
16320 node make sure to replace all uses with something valid.
16322 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
16324 PR tree-optimization/88497
16325 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
16326 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
16327 function undistribute_bitref_for_vector.
16328 (undistribute_bitref_for_vector): New function.
16329 (cleanup_vinfo_map): Likewise.
16330 (sort_by_mach_mode): Likewise.
16332 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
16334 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
16335 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
16336 and testdi_ccno_1 using SWI48 mode attribute.
16337 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
16338 x86_64_szext_general_operand.
16339 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
16340 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
16341 instead of genera_operand mode attribute.
16343 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
16345 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
16346 fopen and fclose to their respective types.
16347 (DotFn.invoke): Ditto.
16349 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
16351 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
16352 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
16353 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
16354 (array_index_predicate): Remove.
16355 (analyze_function_body): Account cost for variable ofsetted array
16357 (estimate_node_size_and_time): Do not compute array index hint.
16358 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
16359 (inline_read_section): Do not read array index hint.
16360 (ipa_fn_summary_write): Do not write array index hint.
16361 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
16362 * ipa-cp.c (hint_time_bonus): Remove.
16363 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
16364 (ipa_fnsummary): Remove array_index.
16365 * ipa-inline.c (want_inline_small_function_p): Do not use
16367 (edge_badness): Likewise.
16368 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
16370 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
16373 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
16374 superfluous "builtin function" phrasing.
16376 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
16378 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
16380 (aliasing_component_refs_walk): Break out from ...
16381 (aliasing_component_refs_p): ... here.
16383 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
16386 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
16387 "builtin function" phrasing.
16389 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16392 * recog.h (temporary_volatile_ok): New class.
16393 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
16394 volatile_ok temporarily to true using temporary_volatile_ok.
16395 * expr.c (emit_block_move_via_cpymem): Likewise.
16396 * optabs.c (maybe_legitimize_operand): Likewise.
16398 2019-07-13 Jakub Jelinek <jakub@redhat.com>
16400 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
16401 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
16402 uses inside of order(concurrent) constructs.
16403 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
16404 OMP_CLAUSE_ORDER is seen.
16405 * omp-low.c (struct omp_context): Add order_concurrent member.
16406 (scan_sharing_clauses): Set ctx->order_concurrent if
16407 OMP_CLAUSE_ORDER is seen.
16408 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
16409 of simd order(concurrent). Diagnose constructs not allowed inside of
16410 for order(concurrent).
16411 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
16412 complaining about static double setjmp (double); or class static
16413 methods or non-global namespace setjmps.
16414 (omp_runtime_api_call): New function.
16415 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
16416 order(concurrent) loops.
16418 2019-07-12 Martin Sebor <msebor@redhat.com>
16420 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
16421 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
16422 * tree-vrp.c (vrp_prop::check_mem_ref): Use
16423 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
16425 2019-07-12 Jan Hubicka <jh@suse.cz>
16427 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
16428 (indirect_refs_may_alias_p): ... here.
16429 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
16430 mem refs in the access paths.
16432 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
16434 PR tree-optimization/89430
16435 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
16436 store elimination for local variable without address escape.
16438 2019-07-12 Jeff Law <law@redhat.com>
16440 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
16441 for the ".far" section.
16443 2019-07-12 Richard Biener <rguenther@suse.de>
16445 PR tree-optimization/91145
16446 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
16449 2019-07-12 Alexandre Oliva <oliva@adacore.com>
16451 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
16452 rather than this_state as the lowering context for the ELSE
16453 seq in a GIMPLE_EH_ELSE.
16455 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
16457 * vector-builder.h (vector_builder::elt): Allow already-supplied
16458 elements to be read back before building is complete.
16460 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
16462 PR rtl-optimization/91136
16463 * df-core.c (ACCESSING REFS): Fix typos in comment.
16464 * resource.c (mark_target_live_reg): Add artificial defs that occur at
16465 the beginning of the block to the initial set of live registers.
16467 2019-07-12 Richard Biener <rguenther@suse.de>
16469 * fold-const.h (get_array_ctor_element_at_index): Adjust.
16470 * fold-const.c (get_array_ctor_element_at_index): Add
16471 ctor_idx output parameter informing the caller where in
16472 the constructor the element was (not) found. Add early exit
16473 for when the ctor is sorted.
16474 * gimple-fold.c (fold_array_ctor_reference): Support constant
16475 folding across multiple array elements.
16477 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
16479 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
16480 doesn't have location, set the current location to the function's end.
16482 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
16484 * config/aarch64/aarch64.md (*compare_condjump<mode>)
16485 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
16486 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
16487 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
16488 * config/aarch64/aarch64-simd.md
16489 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
16490 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
16491 * config/aarch64/aarch64-sve.md
16492 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
16493 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
16495 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
16497 * doc/md.texi: Document that @ patterns can have different
16498 numbers of operands.
16499 * genemit.c (handle_overloaded_gen): Handle this case.
16500 * genopinit.c (handle_overloaded_gen): Likewise.
16501 * gensupport.c (replace_operands_with_dups): Iterate over
16502 the new rtx's format rather than the old one's.
16504 2019-07-12 Jakub Jelinek <jakub@redhat.com>
16506 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
16507 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
16508 order clause entries.
16509 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
16510 * tree-pretty-print.c (dump_omp_clause): Likewise.
16511 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
16513 * omp-low.c (scan_sharing_clauses): Likewise.
16514 * tree-nested.c (convert_nonlocal_omp_clauses,
16515 convert_local_omp_clauses): Likewise.
16517 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
16519 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
16520 fallthrough target of current basic block isn't the placed
16523 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
16526 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
16527 (_mm512_storeu_epi64): Likewise.
16528 (_mm512_loadu_epi32): Likewise.
16529 (_mm512_storeu_epi32): Likewise.
16530 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
16531 (_mm_storeu_epi64): Likewise.
16532 (_mm256_storeu_epi32): Likewise.
16533 (_mm_storeu_epi32): Likewise.
16535 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
16537 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
16539 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
16541 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
16544 2019-07-11 Jakub Jelinek <jakub@redhat.com>
16547 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
16548 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
16549 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
16550 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
16551 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
16552 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
16554 (ufix_truncv2dfv2si2<mask_name>): Change into ...
16555 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
16556 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
16558 (sse2_cvttpd2dq<mask_name>): Change into ...
16559 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
16560 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
16561 (*sse2_cvtpd2dq<mask_name>): Change into ...
16562 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
16563 Add "C" constraint to const0_operand.
16564 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
16565 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
16569 * config/i386/i386-builtin-types.def
16570 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
16571 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
16572 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
16573 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
16574 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
16575 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
16576 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
16577 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
16578 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
16579 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
16580 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
16581 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
16582 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
16583 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
16584 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
16585 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
16586 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
16587 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
16588 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
16589 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
16590 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
16591 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
16592 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
16593 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
16594 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
16595 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
16596 __builtin_ia32_vpdpbusd_v4si_maskz,
16597 __builtin_ia32_vpdpbusds_v16si_mask,
16598 __builtin_ia32_vpdpbusds_v16si_maskz,
16599 __builtin_ia32_vpdpbusds_v8si_mask,
16600 __builtin_ia32_vpdpbusds_v8si_maskz,
16601 __builtin_ia32_vpdpbusds_v4si_mask,
16602 __builtin_ia32_vpdpbusds_v4si_maskz,
16603 __builtin_ia32_vpdpwssd_v16si_mask,
16604 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
16605 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
16606 __builtin_ia32_vpdpwssd_v4si_maskz,
16607 __builtin_ia32_vpdpwssds_v16si_mask,
16608 __builtin_ia32_vpdpwssds_v16si_maskz,
16609 __builtin_ia32_vpdpwssds_v8si_mask,
16610 __builtin_ia32_vpdpwssds_v8si_maskz,
16611 __builtin_ia32_vpdpwssds_v4si_mask,
16612 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
16613 suffixed types rather than *_INT.
16614 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
16615 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
16616 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
16617 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
16618 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
16619 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
16621 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
16623 * tree-vrp.c (intersect_ranges): If we know the intersection is
16624 empty, there is no need to conservatively add anything else to
16627 2019-07-11 Richard Biener <rguenther@suse.de>
16629 PR middle-end/91131
16630 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
16631 when the object is volatile and we have not cleared it even though
16632 there are no nonzero elements.
16634 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
16636 * config/rs6000/predicates.md (cint34_operand): Update
16637 SIGNED_34BIT_OFFSET_P call.
16638 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
16639 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
16640 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
16641 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
16642 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
16644 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
16645 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
16646 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
16647 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
16648 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
16650 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
16652 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
16653 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
16654 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
16655 (DEF_MIN_OSX_VERSION): New.
16657 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
16659 * fold-const.c (fold_relational_const): Fix folding of
16660 vector-to-scalar NE_EXPRs.
16661 (test_vector_folding): Add more tests.
16663 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
16666 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
16667 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
16668 (vec_setv2di_internal): Reexpress as...
16669 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
16670 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
16671 rather than gen_neon_vset_lane<mode>.
16673 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
16676 * lra-constraints.c (process_alt_operands): Don't match user
16677 defined regs only if they are early clobbers.
16679 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
16681 * wide-int.h (wi::lshift): Reject negative values for the fast path.
16683 2019-07-10 Richard Biener <rguenther@suse.de>
16685 PR tree-optimization/91126
16686 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
16687 native encoding offset for BYTES_BIG_ENDIAN.
16688 (vn_reference_lookup_3): Likewise.
16690 2019-07-10 Richard Biener <rguenther@suse.de>
16692 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
16693 LHS whenever possible.
16695 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
16697 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
16698 from ...; work also on duplicated types.
16699 (nonoverlapping_component_refs_since_match): ... here
16700 (ncr_type_uid): Break out from ...
16701 (ncr_compar): ... here; look for TYPE_UID of canonical type if
16703 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
16704 the types and nonoverlapping_component_refs_p_1 to disambiguate.
16706 2019-07-09 Martin Sebor <msebor@redhat.com>
16708 PR tree-optimization/90989
16709 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
16710 optimization to just single character stores.
16712 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
16714 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
16715 Swap operands only once.
16717 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
16719 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
16720 for both call instructions.
16722 2019-07-09 John Darrington <john@darrington.wattle.id.au>
16724 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
16725 rather than GET_MODE_BITSIZE to better handle partial integer modes.
16727 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
16729 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
16730 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
16731 function from rs6000-logue.c back to rs6000.c.
16732 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
16734 2019-07-09 Martin Sebor <msebor@redhat.com>
16737 * auto-profile.c: Change class-key of PODs to struct and others
16739 * basic-block.h: Same.
16740 * bitmap.c (bitmap_alloc): Same.
16742 * builtins.c (expand_builtin_prefetch): Same.
16743 (expand_builtin_interclass_mathfn): Same.
16744 (expand_builtin_strlen): Same.
16745 (expand_builtin_mempcpy_args): Same.
16746 (expand_cmpstr): Same.
16747 (expand_builtin___clear_cache): Same.
16748 (expand_ifn_atomic_bit_test_and): Same.
16749 (expand_builtin_thread_pointer): Same.
16750 (expand_builtin_set_thread_pointer): Same.
16751 * caller-save.c (setup_save_areas): Same.
16752 (replace_reg_with_saved_mem): Same.
16753 (insert_restore): Same.
16754 (insert_save): Same.
16755 (add_used_regs): Same.
16756 * cfg.c (get_bb_copy): Same.
16757 (set_loop_copy): Same.
16760 * cfgexpand.c (alloc_stack_frame_space): Same.
16761 (add_stack_var): Same.
16762 (add_stack_var_conflict): Same.
16763 (add_scope_conflicts_1): Same.
16764 (update_alias_info_with_stack_vars): Same.
16765 (expand_used_vars): Same.
16766 * cfghooks.c (redirect_edge_and_branch_force): Same.
16767 (delete_basic_block): Same.
16768 (split_edge): Same.
16769 (make_forwarder_block): Same.
16770 (force_nonfallthru): Same.
16771 (duplicate_block): Same.
16772 (lv_flush_pending_stmts): Same.
16773 * cfghooks.h: Same.
16774 * cfgloop.c (flow_loops_cfg_dump): Same.
16775 (flow_loop_nested_p): Same.
16776 (superloop_at_depth): Same.
16777 (get_loop_latch_edges): Same.
16778 (flow_loop_dump): Same.
16779 (flow_loops_dump): Same.
16780 (flow_loops_free): Same.
16781 (flow_loop_nodes_find): Same.
16782 (establish_preds): Same.
16783 (flow_loop_tree_node_add): Same.
16784 (flow_loop_tree_node_remove): Same.
16785 (flow_loops_find): Same.
16786 (find_subloop_latch_edge_by_profile): Same.
16787 (find_subloop_latch_edge_by_ivs): Same.
16788 (mfb_redirect_edges_in_set): Same.
16789 (form_subloop): Same.
16790 (merge_latch_edges): Same.
16791 (disambiguate_multiple_latches): Same.
16792 (disambiguate_loops_with_multiple_latches): Same.
16793 (flow_bb_inside_loop_p): Same.
16794 (glb_enum_p): Same.
16795 (get_loop_body_with_size): Same.
16796 (get_loop_body): Same.
16797 (fill_sons_in_loop): Same.
16798 (get_loop_body_in_dom_order): Same.
16799 (get_loop_body_in_custom_order): Same.
16800 (release_recorded_exits): Same.
16801 (get_loop_exit_edges): Same.
16802 (num_loop_branches): Same.
16803 (remove_bb_from_loops): Same.
16804 (find_common_loop): Same.
16805 (delete_loop): Same.
16806 (cancel_loop): Same.
16807 (verify_loop_structure): Same.
16808 (loop_preheader_edge): Same.
16809 (loop_exit_edge_p): Same.
16810 (single_exit): Same.
16811 (loop_exits_to_bb_p): Same.
16812 (loop_exits_from_bb_p): Same.
16813 (get_loop_location): Same.
16814 (record_niter_bound): Same.
16815 (get_estimated_loop_iterations_int): Same.
16816 (max_stmt_executions_int): Same.
16817 (likely_max_stmt_executions_int): Same.
16818 (get_estimated_loop_iterations): Same.
16819 (get_max_loop_iterations): Same.
16820 (get_max_loop_iterations_int): Same.
16821 (get_likely_max_loop_iterations): Same.
16822 * cfgloop.h (simple_loop_desc): Same.
16824 (loop_depth): Same.
16825 (loop_outer): Same.
16826 (loop_iterator::next): Same.
16827 (loop_outermost): Same.
16828 * cfgloopanal.c (mark_irreducible_loops): Same.
16829 (num_loop_insns): Same.
16830 (average_num_loop_insns): Same.
16831 (expected_loop_iterations_unbounded): Same.
16832 (expected_loop_iterations): Same.
16833 (mark_loop_exit_edges): Same.
16834 (single_likely_exit): Same.
16835 * cfgloopmanip.c (fix_bb_placement): Same.
16836 (fix_bb_placements): Same.
16837 (remove_path): Same.
16838 (place_new_loop): Same.
16840 (scale_loop_frequencies): Same.
16841 (scale_loop_profile): Same.
16842 (create_empty_if_region_on_edge): Same.
16843 (create_empty_loop_on_edge): Same.
16846 (fix_loop_placements): Same.
16847 (copy_loop_info): Same.
16848 (duplicate_loop): Same.
16849 (duplicate_subloops): Same.
16850 (loop_redirect_edge): Same.
16851 (can_duplicate_loop_p): Same.
16852 (duplicate_loop_to_header_edge): Same.
16853 (mfb_keep_just): Same.
16854 (has_preds_from_loop): Same.
16855 (create_preheader): Same.
16856 (create_preheaders): Same.
16857 (lv_adjust_loop_entry_edge): Same.
16858 (loop_version): Same.
16859 * cfgloopmanip.h: Same.
16861 * cgraphbuild.c: Same.
16862 * combine.c (make_extraction): Same.
16863 * config/i386/i386-features.c: Same.
16864 * config/i386/i386-features.h: Same.
16865 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
16866 (ix86_emit_outlined_ms2sysv_restore): Same.
16867 (ix86_noce_conversion_profitable_p): Same.
16868 (ix86_init_cost): Same.
16869 (ix86_simd_clone_usable): Same.
16870 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
16872 * coretypes.h: Same.
16873 * data-streamer-in.c (string_for_index): Change class-key of PODs
16874 to struct and others to class.
16875 (streamer_read_indexed_string): Same.
16876 (streamer_read_string): Same.
16877 (bp_unpack_indexed_string): Same.
16878 (bp_unpack_string): Same.
16879 (streamer_read_uhwi): Same.
16880 (streamer_read_hwi): Same.
16881 (streamer_read_gcov_count): Same.
16882 (streamer_read_wide_int): Same.
16883 * data-streamer.h (streamer_write_bitpack): Same.
16884 (bp_unpack_value): Same.
16885 (streamer_write_char_stream): Same.
16886 (streamer_write_hwi_in_range): Same.
16887 (streamer_write_record_start): Same.
16888 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
16889 (add_cross_iteration_register_deps): Same.
16890 (build_intra_loop_deps): Same.
16891 * df-core.c (df_analyze): Same.
16892 (loop_post_order_compute): Same.
16893 (loop_inverted_post_order_compute): Same.
16894 * df-problems.c (df_rd_alloc): Same.
16895 (df_rd_simulate_one_insn): Same.
16896 (df_rd_local_compute): Same.
16897 (df_rd_init_solution): Same.
16898 (df_rd_confluence_n): Same.
16899 (df_rd_transfer_function): Same.
16900 (df_rd_free): Same.
16901 (df_rd_dump_defs_set): Same.
16902 (df_rd_top_dump): Same.
16903 (df_lr_alloc): Same.
16904 (df_lr_reset): Same.
16905 (df_lr_local_compute): Same.
16906 (df_lr_init): Same.
16907 (df_lr_confluence_n): Same.
16908 (df_lr_free): Same.
16909 (df_lr_top_dump): Same.
16910 (df_lr_verify_transfer_functions): Same.
16911 (df_live_alloc): Same.
16912 (df_live_reset): Same.
16913 (df_live_init): Same.
16914 (df_live_confluence_n): Same.
16915 (df_live_finalize): Same.
16916 (df_live_free): Same.
16917 (df_live_top_dump): Same.
16918 (df_live_verify_transfer_functions): Same.
16919 (df_mir_alloc): Same.
16920 (df_mir_reset): Same.
16921 (df_mir_init): Same.
16922 (df_mir_confluence_n): Same.
16923 (df_mir_free): Same.
16924 (df_mir_top_dump): Same.
16925 (df_word_lr_alloc): Same.
16926 (df_word_lr_reset): Same.
16927 (df_word_lr_init): Same.
16928 (df_word_lr_confluence_n): Same.
16929 (df_word_lr_free): Same.
16930 (df_word_lr_top_dump): Same.
16931 (df_md_alloc): Same.
16932 (df_md_simulate_one_insn): Same.
16933 (df_md_reset): Same.
16934 (df_md_init): Same.
16935 (df_md_free): Same.
16936 (df_md_top_dump): Same.
16937 * df-scan.c (df_insn_delete): Same.
16938 (df_insn_rescan): Same.
16939 (df_notes_rescan): Same.
16940 (df_sort_and_compress_mws): Same.
16941 (df_install_mws): Same.
16942 (df_refs_add_to_chains): Same.
16943 (df_ref_create_structure): Same.
16944 (df_ref_record): Same.
16945 (df_def_record_1): Same.
16946 (df_find_hard_reg_defs): Same.
16947 (df_uses_record): Same.
16948 (df_get_conditional_uses): Same.
16949 (df_get_call_refs): Same.
16950 (df_recompute_luids): Same.
16951 (df_get_entry_block_def_set): Same.
16952 (df_entry_block_defs_collect): Same.
16953 (df_get_exit_block_use_set): Same.
16954 (df_exit_block_uses_collect): Same.
16955 (df_mws_verify): Same.
16956 (df_bb_verify): Same.
16957 * df.h (df_scan_get_bb_info): Same.
16958 * doc/tm.texi: Same.
16959 * dse.c (record_store): Same.
16960 * dumpfile.h: Same.
16961 * emit-rtl.c (const_fixed_hasher::equal): Same.
16962 (set_mem_attributes_minus_bitpos): Same.
16963 (change_address): Same.
16964 (adjust_address_1): Same.
16965 (offset_address): Same.
16966 * emit-rtl.h: Same.
16967 * except.c (dw2_build_landing_pads): Same.
16968 (sjlj_emit_dispatch_table): Same.
16969 * explow.c (allocate_dynamic_stack_space): Same.
16970 (emit_stack_probe): Same.
16971 (probe_stack_range): Same.
16972 * expmed.c (store_bit_field_using_insv): Same.
16973 (store_bit_field_1): Same.
16974 (store_integral_bit_field): Same.
16975 (extract_bit_field_using_extv): Same.
16976 (extract_bit_field_1): Same.
16977 (emit_cstore): Same.
16978 * expr.c (emit_block_move_via_cpymem): Same.
16979 (expand_cmpstrn_or_cmpmem): Same.
16980 (set_storage_via_setmem): Same.
16981 (emit_single_push_insn_1): Same.
16982 (expand_assignment): Same.
16983 (store_constructor): Same.
16984 (expand_expr_real_2): Same.
16985 (expand_expr_real_1): Same.
16986 (try_casesi): Same.
16988 * function.c (try_fit_stack_local): Same.
16989 (assign_stack_local_1): Same.
16990 (assign_stack_local): Same.
16991 (cut_slot_from_list): Same.
16992 (insert_slot_to_list): Same.
16993 (max_slot_level): Same.
16994 (move_slot_to_level): Same.
16995 (temp_address_hasher::equal): Same.
16996 (remove_unused_temp_slot_addresses): Same.
16997 (assign_temp): Same.
16998 (combine_temp_slots): Same.
16999 (update_temp_slot_address): Same.
17000 (preserve_temp_slots): Same.
17001 * function.h: Same.
17003 * gcc-rich-location.h: Same.
17005 * genattrtab.c (check_attr_test): Same.
17006 (check_attr_value): Same.
17007 (convert_set_attr_alternative): Same.
17008 (convert_set_attr): Same.
17009 (check_defs): Same.
17010 (copy_boolean): Same.
17011 (get_attr_value): Same.
17012 (expand_delays): Same.
17013 (make_length_attrs): Same.
17015 (make_alternative_compare): Same.
17016 (simplify_test_exp): Same.
17017 (tests_attr_p): Same.
17018 (get_attr_order): Same.
17019 (clear_struct_flag): Same.
17021 (compares_alternatives_p): Same.
17024 (find_attrs_to_cache): Same.
17025 (write_test_expr): Same.
17026 (walk_attr_value): Same.
17027 (write_attr_get): Same.
17028 (eliminate_known_true): Same.
17029 (write_insn_cases): Same.
17030 (write_attr_case): Same.
17031 (write_attr_valueq): Same.
17032 (write_attr_value): Same.
17033 (write_dummy_eligible_delay): Same.
17034 (next_comma_elt): Same.
17036 (make_internal_attr): Same.
17037 (copy_rtx_unchanging): Same.
17038 (gen_insn_reserv): Same.
17039 (check_tune_attr): Same.
17040 (make_automaton_attrs): Same.
17041 (handle_arg): Same.
17042 * genextract.c (gen_insn): Same.
17043 (VEC_char_to_string): Same.
17044 * genmatch.c (print_operand): Same.
17046 (parser::parse_operation): Same.
17047 (parser::parse_capture): Same.
17048 (parser::parse_c_expr): Same.
17049 (parser::parse_simplify): Same.
17051 * genoutput.c (output_operand_data): Same.
17052 (output_get_insn_name): Same.
17053 (compare_operands): Same.
17054 (place_operands): Same.
17055 (process_template): Same.
17056 (validate_insn_alternatives): Same.
17057 (validate_insn_operands): Same.
17058 (gen_expand): Same.
17059 (note_constraint): Same.
17060 * genpreds.c (write_one_predicate_function): Same.
17061 (add_constraint): Same.
17062 (process_define_register_constraint): Same.
17063 (write_lookup_constraint_1): Same.
17064 (write_lookup_constraint_array): Same.
17065 (write_insn_constraint_len): Same.
17066 (write_reg_class_for_constraint_1): Same.
17067 (write_constraint_satisfied_p_array): Same.
17068 * genrecog.c (optimize_subroutine_group): Same.
17069 * gensupport.c (process_define_predicate): Same.
17070 (queue_pattern): Same.
17071 (remove_from_queue): Same.
17072 (process_rtx): Same.
17073 (is_predicable): Same.
17074 (change_subst_attribute): Same.
17075 (subst_pattern_match): Same.
17076 (alter_constraints): Same.
17077 (alter_attrs_for_insn): Same.
17078 (shift_output_template): Same.
17079 (alter_output_for_subst_insn): Same.
17080 (process_one_cond_exec): Same.
17082 (process_define_cond_exec): Same.
17083 (mnemonic_htab_callback): Same.
17084 (gen_mnemonic_attr): Same.
17085 (read_md_rtx): Same.
17086 * ggc-page.c: Same.
17087 * gimple-loop-interchange.cc (dump_reduction): Same.
17088 (dump_induction): Same.
17089 (loop_cand::~loop_cand): Same.
17090 (free_data_refs_with_aux): Same.
17091 (tree_loop_interchange::interchange_loops): Same.
17092 (tree_loop_interchange::map_inductions_to_loop): Same.
17093 (tree_loop_interchange::move_code_to_inner_loop): Same.
17094 (compute_access_stride): Same.
17095 (compute_access_strides): Same.
17096 (proper_loop_form_for_interchange): Same.
17097 (tree_loop_interchange_compute_ddrs): Same.
17098 (prune_datarefs_not_in_loop): Same.
17099 (prepare_data_references): Same.
17100 (pass_linterchange::execute): Same.
17101 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
17102 (unroll_jam_possible_p): Same.
17103 (fuse_loops): Same.
17104 (adjust_unroll_factor): Same.
17105 (tree_loop_unroll_and_jam): Same.
17106 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
17107 (loop_versioning::expensive_stmt_p): Same.
17108 (loop_versioning::version_for_unity): Same.
17109 (loop_versioning::dump_inner_likelihood): Same.
17110 (loop_versioning::find_per_loop_multiplication): Same.
17111 (loop_versioning::analyze_term_using_scevs): Same.
17112 (loop_versioning::record_address_fragment): Same.
17113 (loop_versioning::analyze_expr): Same.
17114 (loop_versioning::analyze_blocks): Same.
17115 (loop_versioning::prune_conditions): Same.
17116 (loop_versioning::merge_loop_info): Same.
17117 (loop_versioning::add_loop_to_queue): Same.
17118 (loop_versioning::decide_whether_loop_is_versionable): Same.
17119 (loop_versioning::make_versioning_decisions): Same.
17120 (loop_versioning::implement_versioning_decisions): Same.
17121 * gimple-ssa-evrp-analyze.c
17122 (evrp_range_analyzer::record_ranges_from_phis): Same.
17123 * gimple-ssa-store-merging.c (split_store::split_store): Same.
17124 (count_multiple_uses): Same.
17125 (split_group): Same.
17126 (imm_store_chain_info::output_merged_store): Same.
17127 (pass_store_merging::process_store): Same.
17128 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
17129 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
17131 (alloca_call_type): Same.
17132 (pass_walloca::execute): Same.
17133 * gimple-streamer-in.c (input_phi): Same.
17134 (input_gimple_stmt): Same.
17135 * gimple-streamer.h: Same.
17136 * godump.c (go_force_record_alignment): Same.
17137 (go_format_type): Same.
17138 (go_output_type): Same.
17139 (go_output_fndecl): Same.
17140 (go_output_typedef): Same.
17141 (keyword_hash_init): Same.
17142 (find_dummy_types): Same.
17143 * graph.c (draw_cfg_nodes_no_loops): Same.
17144 (draw_cfg_nodes_for_loop): Same.
17145 * hard-reg-set.h (hard_reg_set_iter_next): Same.
17146 * hsa-brig.c: Same.
17147 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
17148 * hsa-dump.c (dump_hsa_cfun): Same.
17149 * hsa-gen.c (gen_function_def_parameters): Same.
17150 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
17151 * input.c (dump_line_table_statistics): Same.
17152 (test_lexer): Same.
17154 * internal-fn.c (get_multi_vector_move): Same.
17155 (expand_load_lanes_optab_fn): Same.
17156 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
17157 (expand_GOMP_SIMT_EXIT): Same.
17158 (expand_GOMP_SIMT_LAST_LANE): Same.
17159 (expand_GOMP_SIMT_ORDERED_PRED): Same.
17160 (expand_GOMP_SIMT_VOTE_ANY): Same.
17161 (expand_GOMP_SIMT_XCHG_BFLY): Same.
17162 (expand_GOMP_SIMT_XCHG_IDX): Same.
17163 (expand_addsub_overflow): Same.
17164 (expand_neg_overflow): Same.
17165 (expand_mul_overflow): Same.
17166 (expand_call_mem_ref): Same.
17167 (expand_mask_load_optab_fn): Same.
17168 (expand_scatter_store_optab_fn): Same.
17169 (expand_gather_load_optab_fn): Same.
17170 * ipa-cp.c (ipa_get_parm_lattices): Same.
17171 (print_all_lattices): Same.
17172 (ignore_edge_p): Same.
17173 (build_toporder_info): Same.
17174 (free_toporder_info): Same.
17175 (push_node_to_stack): Same.
17176 (ipcp_lattice<valtype>::set_contains_variable): Same.
17177 (set_agg_lats_to_bottom): Same.
17178 (ipcp_bits_lattice::meet_with): Same.
17179 (set_single_call_flag): Same.
17180 (initialize_node_lattices): Same.
17181 (ipa_get_jf_ancestor_result): Same.
17182 (ipcp_verify_propagated_values): Same.
17183 (propagate_scalar_across_jump_function): Same.
17184 (propagate_context_across_jump_function): Same.
17185 (propagate_bits_across_jump_function): Same.
17186 (ipa_vr_operation_and_type_effects): Same.
17187 (propagate_vr_across_jump_function): Same.
17188 (set_check_aggs_by_ref): Same.
17189 (set_chain_of_aglats_contains_variable): Same.
17190 (merge_aggregate_lattices): Same.
17191 (agg_pass_through_permissible_p): Same.
17192 (propagate_aggs_across_jump_function): Same.
17193 (call_passes_through_thunk_p): Same.
17194 (propagate_constants_across_call): Same.
17195 (devirtualization_time_bonus): Same.
17196 (good_cloning_opportunity_p): Same.
17197 (context_independent_aggregate_values): Same.
17198 (gather_context_independent_values): Same.
17199 (perform_estimation_of_a_value): Same.
17200 (estimate_local_effects): Same.
17201 (value_topo_info<valtype>::add_val): Same.
17202 (add_all_node_vals_to_toposort): Same.
17203 (value_topo_info<valtype>::propagate_effects): Same.
17204 (ipcp_propagate_stage): Same.
17205 (ipcp_discover_new_direct_edges): Same.
17206 (same_node_or_its_all_contexts_clone_p): Same.
17207 (cgraph_edge_brings_value_p): Same.
17208 (gather_edges_for_value): Same.
17209 (create_specialized_node): Same.
17210 (find_more_scalar_values_for_callers_subset): Same.
17211 (find_more_contexts_for_caller_subset): Same.
17212 (copy_plats_to_inter): Same.
17213 (intersect_aggregates_with_edge): Same.
17214 (find_aggregate_values_for_callers_subset): Same.
17215 (cgraph_edge_brings_all_agg_vals_for_node): Same.
17216 (decide_about_value): Same.
17217 (decide_whether_version_node): Same.
17218 (spread_undeadness): Same.
17219 (identify_dead_nodes): Same.
17220 (ipcp_store_vr_results): Same.
17221 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
17222 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
17223 (redirect_to_unreachable): Same.
17224 (edge_set_predicate): Same.
17225 (evaluate_conditions_for_known_args): Same.
17226 (evaluate_properties_for_edge): Same.
17227 (ipa_fn_summary_t::duplicate): Same.
17228 (ipa_call_summary_t::duplicate): Same.
17229 (dump_ipa_call_summary): Same.
17230 (ipa_dump_fn_summary): Same.
17231 (eliminated_by_inlining_prob): Same.
17232 (set_cond_stmt_execution_predicate): Same.
17233 (set_switch_stmt_execution_predicate): Same.
17234 (compute_bb_predicates): Same.
17235 (will_be_nonconstant_expr_predicate): Same.
17236 (phi_result_unknown_predicate): Same.
17237 (analyze_function_body): Same.
17238 (compute_fn_summary): Same.
17239 (estimate_edge_devirt_benefit): Same.
17240 (estimate_edge_size_and_time): Same.
17241 (estimate_calls_size_and_time): Same.
17242 (estimate_node_size_and_time): Same.
17243 (remap_edge_change_prob): Same.
17244 (remap_edge_summaries): Same.
17245 (ipa_merge_fn_summary_after_inlining): Same.
17246 (ipa_fn_summary_generate): Same.
17247 (inline_read_section): Same.
17248 (ipa_fn_summary_read): Same.
17249 (ipa_fn_summary_write): Same.
17250 * ipa-fnsummary.h: Same.
17251 * ipa-hsa.c (ipa_hsa_read_section): Same.
17252 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
17253 * ipa-icf.c (sem_function::param_used_p): Same.
17254 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
17255 * ipa-inline.c (edge_badness): Same.
17256 (inline_small_functions): Same.
17257 * ipa-polymorphic-call.c
17258 (ipa_polymorphic_call_context::stream_out): Same.
17259 * ipa-predicate.c (predicate::remap_after_duplication): Same.
17260 (predicate::remap_after_inlining): Same.
17261 (predicate::stream_out): Same.
17262 * ipa-predicate.h: Same.
17263 * ipa-profile.c (ipa_profile_read_summary): Same.
17264 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
17265 (count_formal_params): Same.
17266 (ipa_dump_param): Same.
17267 (ipa_alloc_node_params): Same.
17268 (ipa_print_node_jump_functions_for_edge): Same.
17269 (ipa_print_node_jump_functions): Same.
17270 (ipa_load_from_parm_agg): Same.
17271 (get_ancestor_addr_info): Same.
17272 (ipa_compute_jump_functions_for_edge): Same.
17273 (ipa_analyze_virtual_call_uses): Same.
17274 (ipa_analyze_stmt_uses): Same.
17275 (ipa_analyze_params_uses_in_bb): Same.
17276 (update_jump_functions_after_inlining): Same.
17277 (try_decrement_rdesc_refcount): Same.
17278 (ipa_impossible_devirt_target): Same.
17279 (update_indirect_edges_after_inlining): Same.
17280 (combine_controlled_uses_counters): Same.
17281 (ipa_edge_args_sum_t::duplicate): Same.
17282 (ipa_write_jump_function): Same.
17283 (ipa_write_indirect_edge_info): Same.
17284 (ipa_write_node_info): Same.
17285 (ipa_read_edge_info): Same.
17286 (ipa_prop_read_section): Same.
17287 (read_replacements_section): Same.
17288 * ipa-prop.h (ipa_get_param_count): Same.
17289 (ipa_get_param): Same.
17290 (ipa_get_type): Same.
17291 (ipa_get_param_move_cost): Same.
17292 (ipa_set_param_used): Same.
17293 (ipa_get_controlled_uses): Same.
17294 (ipa_set_controlled_uses): Same.
17295 (ipa_get_cs_argument_count): Same.
17296 * ipa-pure-const.c (analyze_function): Same.
17297 (pure_const_read_summary): Same.
17299 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
17300 * ipa-split.c (test_nonssa_use): Same.
17301 (dump_split_point): Same.
17302 (dominated_by_forbidden): Same.
17303 (split_part_set_ssa_name_p): Same.
17304 (find_split_points): Same.
17305 * ira-build.c (finish_loop_tree_nodes): Same.
17306 (low_pressure_loop_node_p): Same.
17307 * ira-color.c (ira_reuse_stack_slot): Same.
17309 * ira.c (setup_reg_equiv): Same.
17310 (print_insn_chain): Same.
17312 * loop-doloop.c (doloop_condition_get): Same.
17314 (record_reg_sets): Same.
17315 (doloop_optimize): Same.
17316 * loop-init.c (loop_optimizer_init): Same.
17317 (fix_loop_structure): Same.
17318 * loop-invariant.c (merge_identical_invariants): Same.
17319 (compute_always_reached): Same.
17320 (find_exits): Same.
17321 (may_assign_reg_p): Same.
17322 (find_invariants_bb): Same.
17323 (find_invariants_body): Same.
17324 (replace_uses): Same.
17325 (can_move_invariant_reg): Same.
17326 (free_inv_motion_data): Same.
17327 (move_single_loop_invariants): Same.
17328 (change_pressure): Same.
17329 (mark_ref_regs): Same.
17330 (calculate_loop_reg_pressure): Same.
17331 * loop-iv.c (biv_entry_hasher::equal): Same.
17332 (iv_extend_to_rtx_code): Same.
17333 (check_iv_ref_table_size): Same.
17334 (clear_iv_info): Same.
17335 (latch_dominating_def): Same.
17336 (iv_get_reaching_def): Same.
17337 (iv_constant): Same.
17343 (get_biv_step): Same.
17345 (analyzed_for_bivness_p): Same.
17346 (record_biv): Same.
17347 (iv_analyze_biv): Same.
17348 (iv_analyze_expr): Same.
17349 (iv_analyze_def): Same.
17350 (iv_analyze_op): Same.
17351 (iv_analyze): Same.
17352 (iv_analyze_result): Same.
17354 (eliminate_implied_conditions): Same.
17355 (simplify_using_initial_values): Same.
17356 (shorten_into_mode): Same.
17357 (canonicalize_iv_subregs): Same.
17358 (determine_max_iter): Same.
17359 (check_simple_exit): Same.
17360 (find_simple_exit): Same.
17361 (get_simple_loop_desc): Same.
17362 * loop-unroll.c (report_unroll): Same.
17363 (decide_unrolling): Same.
17364 (unroll_loops): Same.
17365 (loop_exit_at_end_p): Same.
17366 (decide_unroll_constant_iterations): Same.
17367 (unroll_loop_constant_iterations): Same.
17368 (compare_and_jump_seq): Same.
17369 (unroll_loop_runtime_iterations): Same.
17370 (decide_unroll_stupid): Same.
17371 (unroll_loop_stupid): Same.
17372 (referenced_in_one_insn_in_loop_p): Same.
17373 (reset_debug_uses_in_loop): Same.
17374 (analyze_iv_to_split_insn): Same.
17375 * lra-eliminations.c (lra_debug_elim_table): Same.
17376 (setup_can_eliminate): Same.
17378 (lra_get_elimination_hard_regno): Same.
17379 (lra_eliminate_regs_1): Same.
17380 (eliminate_regs_in_insn): Same.
17381 (update_reg_eliminate): Same.
17382 (init_elimination): Same.
17383 (lra_eliminate): Same.
17385 * lra-lives.c (initiate_live_solver): Same.
17386 * lra-remat.c (create_remat_bb_data): Same.
17387 * lra-spills.c (lra_spill): Same.
17388 * lra.c (lra_set_insn_recog_data): Same.
17389 (lra_set_used_insn_alternative_by_uid): Same.
17390 (init_reg_info): Same.
17391 (expand_reg_info): Same.
17392 * lto-cgraph.c (output_symtab): Same.
17393 (read_identifier): Same.
17394 (get_alias_symbol): Same.
17395 (input_node): Same.
17396 (input_varpool_node): Same.
17398 (input_edge): Same.
17399 (input_cgraph_1): Same.
17400 (input_refs): Same.
17401 (input_symtab): Same.
17402 (input_offload_tables): Same.
17403 (output_cgraph_opt_summary): Same.
17404 (input_edge_opt_summary): Same.
17405 (input_cgraph_opt_section): Same.
17406 * lto-section-in.c (lto_free_raw_section_data): Same.
17407 (lto_create_simple_input_block): Same.
17408 (lto_free_function_in_decl_state_for_node): Same.
17409 * lto-streamer-in.c (lto_tag_check_set): Same.
17410 (lto_location_cache::revert_location_cache): Same.
17411 (lto_location_cache::input_location): Same.
17412 (lto_input_location): Same.
17413 (stream_input_location_now): Same.
17414 (lto_input_tree_ref): Same.
17415 (lto_input_eh_catch_list): Same.
17416 (input_eh_region): Same.
17417 (lto_init_eh): Same.
17418 (make_new_block): Same.
17420 (fixup_call_stmt_edges): Same.
17421 (input_struct_function_base): Same.
17422 (input_function): Same.
17423 (lto_read_body_or_constructor): Same.
17424 (lto_read_tree_1): Same.
17425 (lto_read_tree): Same.
17426 (lto_input_scc): Same.
17427 (lto_input_tree_1): Same.
17428 (lto_input_toplevel_asms): Same.
17429 (lto_input_mode_table): Same.
17430 (lto_reader_init): Same.
17431 (lto_data_in_create): Same.
17432 * lto-streamer-out.c (output_cfg): Same.
17433 * lto-streamer.h: Same.
17434 * modulo-sched.c (duplicate_insns_of_cycles): Same.
17435 (generate_prolog_epilog): Same.
17436 (mark_loop_unsched): Same.
17437 (dump_insn_location): Same.
17438 (loop_canon_p): Same.
17439 (sms_schedule): Same.
17440 * omp-expand.c (expand_omp_for_ordered_loops): Same.
17441 (expand_omp_for_generic): Same.
17442 (expand_omp_for_static_nochunk): Same.
17443 (expand_omp_for_static_chunk): Same.
17444 (expand_omp_simd): Same.
17445 (expand_omp_taskloop_for_inner): Same.
17446 (expand_oacc_for): Same.
17447 (expand_omp_atomic_pipeline): Same.
17448 (mark_loops_in_oacc_kernels_region): Same.
17449 * omp-offload.c (oacc_xform_loop): Same.
17450 * omp-simd-clone.c (simd_clone_adjust): Same.
17451 * optabs-query.c (get_traditional_extraction_insn): Same.
17452 * optabs.c (expand_vector_broadcast): Same.
17453 (expand_binop_directly): Same.
17454 (expand_twoval_unop): Same.
17455 (expand_twoval_binop): Same.
17456 (expand_unop_direct): Same.
17457 (emit_indirect_jump): Same.
17458 (emit_conditional_move): Same.
17459 (emit_conditional_neg_or_complement): Same.
17460 (emit_conditional_add): Same.
17461 (vector_compare_rtx): Same.
17462 (expand_vec_perm_1): Same.
17463 (expand_vec_perm_const): Same.
17464 (expand_vec_cond_expr): Same.
17465 (expand_vec_series_expr): Same.
17466 (maybe_emit_atomic_exchange): Same.
17467 (maybe_emit_sync_lock_test_and_set): Same.
17468 (expand_atomic_compare_and_swap): Same.
17469 (expand_atomic_load): Same.
17470 (expand_atomic_store): Same.
17471 (maybe_emit_op): Same.
17472 (valid_multiword_target_p): Same.
17473 (create_integer_operand): Same.
17474 (maybe_legitimize_operand_same_code): Same.
17475 (maybe_legitimize_operand): Same.
17476 (create_convert_operand_from_type): Same.
17477 (can_reuse_operands_p): Same.
17478 (maybe_legitimize_operands): Same.
17479 (maybe_gen_insn): Same.
17480 (maybe_expand_insn): Same.
17481 (maybe_expand_jump_insn): Same.
17482 (expand_insn): Same.
17483 * optabs.h (create_expand_operand): Same.
17484 (create_fixed_operand): Same.
17485 (create_output_operand): Same.
17486 (create_input_operand): Same.
17487 (create_convert_operand_to): Same.
17488 (create_convert_operand_from): Same.
17490 * poly-int.h: Same.
17491 * predict.c (optimize_insn_for_speed_p): Same.
17492 (optimize_loop_for_size_p): Same.
17493 (optimize_loop_for_speed_p): Same.
17494 (optimize_loop_nest_for_speed_p): Same.
17495 (get_base_value): Same.
17496 (predicted_by_loop_heuristics_p): Same.
17497 (predict_extra_loop_exits): Same.
17498 (predict_loops): Same.
17499 (predict_paths_for_bb): Same.
17500 (predict_paths_leading_to): Same.
17501 (propagate_freq): Same.
17502 (pass_profile::execute): Same.
17504 * profile-count.c (profile_count::differs_from_p): Same.
17505 (profile_probability::differs_lot_from_p): Same.
17506 * profile-count.h: Same.
17507 * profile.c (branch_prob): Same.
17508 * regrename.c (free_chain_data): Same.
17509 (mark_conflict): Same.
17510 (create_new_chain): Same.
17511 (merge_overlapping_regs): Same.
17512 (init_rename_info): Same.
17513 (merge_chains): Same.
17514 (regrename_analyze): Same.
17515 (regrename_do_replace): Same.
17516 (scan_rtx_reg): Same.
17517 (record_out_operands): Same.
17518 (build_def_use): Same.
17519 * regrename.h: Same.
17521 * reload1.c (init_reload): Same.
17522 (maybe_fix_stack_asms): Same.
17523 (copy_reloads): Same.
17524 (count_pseudo): Same.
17525 (count_spilled_pseudo): Same.
17527 (find_reload_regs): Same.
17528 (select_reload_regs): Same.
17529 (spill_hard_reg): Same.
17530 (fixup_eh_region_note): Same.
17531 (set_reload_reg): Same.
17532 (allocate_reload_reg): Same.
17533 (compute_reload_subreg_offset): Same.
17534 (reload_adjust_reg_for_icode): Same.
17535 (emit_input_reload_insns): Same.
17536 (emit_output_reload_insns): Same.
17537 (do_input_reload): Same.
17538 (inherit_piecemeal_p): Same.
17540 * sanopt.c (maybe_get_dominating_check): Same.
17541 (maybe_optimize_ubsan_ptr_ifn): Same.
17542 (can_remove_asan_check): Same.
17543 (maybe_optimize_asan_check_ifn): Same.
17544 (sanopt_optimize_walker): Same.
17545 * sched-deps.c (add_dependence_list): Same.
17546 (chain_to_prev_insn): Same.
17547 (add_insn_mem_dependence): Same.
17548 (create_insn_reg_set): Same.
17549 (maybe_extend_reg_info_p): Same.
17550 (sched_analyze_reg): Same.
17551 (sched_analyze_1): Same.
17552 (get_implicit_reg_pending_clobbers): Same.
17553 (chain_to_prev_insn_p): Same.
17554 (deps_analyze_insn): Same.
17555 (deps_start_bb): Same.
17556 (sched_free_deps): Same.
17558 (init_deps_reg_last): Same.
17560 * sched-ebb.c: Same.
17561 * sched-int.h: Same.
17562 * sched-rgn.c (add_branch_dependences): Same.
17563 (concat_insn_mem_list): Same.
17565 (sched_rgn_compute_dependencies): Same.
17566 * sel-sched-ir.c (reset_target_context): Same.
17567 (copy_deps_context): Same.
17568 (init_id_from_df): Same.
17569 (has_dependence_p): Same.
17570 (change_loops_latches): Same.
17571 (bb_top_order_comparator): Same.
17572 (make_region_from_loop_preheader): Same.
17573 (sel_init_pipelining): Same.
17574 (get_loop_nest_for_rgn): Same.
17575 (make_regions_from_the_rest): Same.
17576 (sel_is_loop_preheader_p): Same.
17577 * sel-sched-ir.h (inner_loop_header_p): Same.
17578 (get_all_loop_exits): Same.
17579 * selftest.h: Same.
17580 * sese.c (sese_build_liveouts): Same.
17581 (sese_insert_phis_for_liveouts): Same.
17582 * sese.h (defined_in_sese_p): Same.
17583 * sreal.c (sreal::stream_out): Same.
17585 * streamer-hooks.h: Same.
17586 * target-globals.c (save_target_globals): Same.
17587 * target-globals.h: Same.
17588 * target.def: Same.
17590 * targhooks.c (default_has_ifunc_p): Same.
17591 (default_empty_mask_is_expensive): Same.
17592 (default_init_cost): Same.
17593 * targhooks.h: Same.
17595 * tree-affine.c (aff_combination_mult): Same.
17596 (aff_combination_expand): Same.
17597 (aff_combination_constant_multiple_p): Same.
17598 * tree-affine.h: Same.
17599 * tree-cfg.c (build_gimple_cfg): Same.
17600 (replace_loop_annotate_in_block): Same.
17601 (replace_uses_by): Same.
17603 (dump_cfg_stats): Same.
17604 (gimple_duplicate_sese_region): Same.
17605 (gimple_duplicate_sese_tail): Same.
17606 (move_block_to_fn): Same.
17607 (replace_block_vars_by_duplicates): Same.
17608 (move_sese_region_to_fn): Same.
17609 (print_loops_bb): Same.
17610 (print_loop): Same.
17611 (print_loops): Same.
17613 (debug_loops): Same.
17614 * tree-cfg.h: Same.
17615 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
17616 (chrec_fold_multiply_poly_poly): Same.
17617 (chrec_evaluate): Same.
17618 (chrec_component_in_loop_num): Same.
17619 (reset_evolution_in_loop): Same.
17620 (is_multivariate_chrec): Same.
17621 (chrec_contains_symbols): Same.
17622 (nb_vars_in_chrec): Same.
17623 (chrec_convert_1): Same.
17624 (chrec_convert_aggressive): Same.
17625 * tree-chrec.h: Same.
17626 * tree-core.h: Same.
17627 * tree-data-ref.c (dump_data_dependence_relation): Same.
17628 (canonicalize_base_object_address): Same.
17629 (data_ref_compare_tree): Same.
17630 (prune_runtime_alias_test_list): Same.
17631 (get_segment_min_max): Same.
17632 (create_intersect_range_checks): Same.
17633 (conflict_fn_no_dependence): Same.
17634 (object_address_invariant_in_loop_p): Same.
17635 (analyze_ziv_subscript): Same.
17636 (analyze_siv_subscript_cst_affine): Same.
17637 (analyze_miv_subscript): Same.
17638 (analyze_overlapping_iterations): Same.
17639 (build_classic_dist_vector_1): Same.
17640 (add_other_self_distances): Same.
17641 (same_access_functions): Same.
17642 (build_classic_dir_vector): Same.
17643 (subscript_dependence_tester_1): Same.
17644 (subscript_dependence_tester): Same.
17645 (access_functions_are_affine_or_constant_p): Same.
17646 (get_references_in_stmt): Same.
17647 (loop_nest_has_data_refs): Same.
17648 (graphite_find_data_references_in_stmt): Same.
17649 (find_data_references_in_bb): Same.
17650 (get_base_for_alignment): Same.
17651 (find_loop_nest_1): Same.
17652 (find_loop_nest): Same.
17653 * tree-data-ref.h (dr_alignment): Same.
17654 (ddr_dependence_level): Same.
17655 * tree-if-conv.c (fold_build_cond_expr): Same.
17656 (add_to_predicate_list): Same.
17657 (add_to_dst_predicate_list): Same.
17658 (phi_convertible_by_degenerating_args): Same.
17659 (idx_within_array_bound): Same.
17660 (all_preds_critical_p): Same.
17661 (pred_blocks_visited_p): Same.
17662 (predicate_bbs): Same.
17663 (build_region): Same.
17664 (if_convertible_loop_p_1): Same.
17665 (is_cond_scalar_reduction): Same.
17666 (predicate_scalar_phi): Same.
17667 (remove_conditions_and_labels): Same.
17668 (combine_blocks): Same.
17669 (version_loop_for_if_conversion): Same.
17670 (versionable_outer_loop_p): Same.
17671 (ifcvt_local_dce): Same.
17672 (tree_if_conversion): Same.
17673 (pass_if_conversion::gate): Same.
17674 * tree-if-conv.h: Same.
17675 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
17676 * tree-loop-distribution.c (bb_top_order_cmp): Same.
17678 (stmt_has_scalar_dependences_outside_loop): Same.
17679 (copy_loop_before): Same.
17680 (create_bb_after_loop): Same.
17681 (const_with_all_bytes_same): Same.
17682 (generate_memset_builtin): Same.
17683 (generate_memcpy_builtin): Same.
17684 (destroy_loop): Same.
17685 (build_rdg_partition_for_vertex): Same.
17686 (compute_access_range): Same.
17687 (data_ref_segment_size): Same.
17688 (latch_dominated_by_data_ref): Same.
17689 (compute_alias_check_pairs): Same.
17690 (fuse_memset_builtins): Same.
17691 (finalize_partitions): Same.
17692 (find_seed_stmts_for_distribution): Same.
17693 (prepare_perfect_loop_nest): Same.
17694 * tree-parloops.c (lambda_transform_legal_p): Same.
17695 (loop_parallel_p): Same.
17696 (reduc_stmt_res): Same.
17697 (add_field_for_name): Same.
17698 (create_call_for_reduction_1): Same.
17699 (replace_uses_in_bb_by): Same.
17700 (transform_to_exit_first_loop_alt): Same.
17701 (try_transform_to_exit_first_loop_alt): Same.
17702 (transform_to_exit_first_loop): Same.
17704 (gen_parallel_loop): Same.
17705 (gather_scalar_reductions): Same.
17706 (get_omp_data_i_param): Same.
17707 (try_create_reduction_list): Same.
17708 (oacc_entry_exit_single_gang): Same.
17709 (parallelize_loops): Same.
17710 * tree-pass.h: Same.
17711 * tree-predcom.c (determine_offset): Same.
17712 (last_always_executed_block): Same.
17713 (split_data_refs_to_components): Same.
17714 (suitable_component_p): Same.
17715 (valid_initializer_p): Same.
17716 (find_looparound_phi): Same.
17717 (insert_looparound_copy): Same.
17718 (add_looparound_copies): Same.
17719 (determine_roots_comp): Same.
17720 (predcom_tmp_var): Same.
17721 (initialize_root_vars): Same.
17722 (initialize_root_vars_store_elim_1): Same.
17723 (initialize_root_vars_store_elim_2): Same.
17724 (finalize_eliminated_stores): Same.
17725 (initialize_root_vars_lm): Same.
17726 (remove_stmt): Same.
17727 (determine_unroll_factor): Same.
17728 (execute_pred_commoning_cbck): Same.
17729 (base_names_in_chain_on): Same.
17730 (combine_chains): Same.
17731 (pcom_stmt_dominates_stmt_p): Same.
17732 (try_combine_chains): Same.
17733 (prepare_initializers_chain_store_elim): Same.
17734 (prepare_initializers_chain): Same.
17735 (prepare_initializers): Same.
17736 (prepare_finalizers_chain): Same.
17737 (prepare_finalizers): Same.
17738 (insert_init_seqs): Same.
17739 * tree-scalar-evolution.c (loop_phi_node_p): Same.
17740 (compute_overall_effect_of_inner_loop): Same.
17741 (add_to_evolution_1): Same.
17742 (add_to_evolution): Same.
17743 (follow_ssa_edge_binary): Same.
17744 (follow_ssa_edge_expr): Same.
17745 (backedge_phi_arg_p): Same.
17746 (follow_ssa_edge_in_condition_phi_branch): Same.
17747 (follow_ssa_edge_in_condition_phi): Same.
17748 (follow_ssa_edge_inner_loop_phi): Same.
17749 (follow_ssa_edge): Same.
17750 (analyze_evolution_in_loop): Same.
17751 (analyze_initial_condition): Same.
17752 (interpret_loop_phi): Same.
17753 (interpret_condition_phi): Same.
17754 (interpret_rhs_expr): Same.
17755 (interpret_expr): Same.
17756 (interpret_gimple_assign): Same.
17757 (analyze_scalar_evolution_1): Same.
17758 (analyze_scalar_evolution): Same.
17759 (analyze_scalar_evolution_for_address_of): Same.
17760 (get_instantiated_value_entry): Same.
17761 (loop_closed_phi_def): Same.
17762 (instantiate_scev_name): Same.
17763 (instantiate_scev_poly): Same.
17764 (instantiate_scev_binary): Same.
17765 (instantiate_scev_convert): Same.
17766 (instantiate_scev_not): Same.
17767 (instantiate_scev_r): Same.
17768 (instantiate_scev): Same.
17769 (resolve_mixers): Same.
17770 (initialize_scalar_evolutions_analyzer): Same.
17771 (scev_reset_htab): Same.
17772 (scev_reset): Same.
17773 (derive_simple_iv_with_niters): Same.
17774 (simple_iv_with_niters): Same.
17775 (expression_expensive_p): Same.
17776 (final_value_replacement_loop): Same.
17777 * tree-scalar-evolution.h (block_before_loop): Same.
17778 * tree-ssa-address.h: Same.
17779 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
17780 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
17781 (record_edge_info): Same.
17782 * tree-ssa-live.c (var_map_base_fini): Same.
17783 (remove_unused_locals): Same.
17784 * tree-ssa-live.h: Same.
17785 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
17786 (pass_ch_vect::execute): Same.
17787 (pass_ch::process_loop_p): Same.
17788 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
17789 (movement_possibility): Same.
17790 (outermost_invariant_loop): Same.
17792 (determine_max_movement): Same.
17793 (invariantness_dom_walker::before_dom_children): Same.
17794 (move_computations): Same.
17795 (may_move_till): Same.
17796 (force_move_till_op): Same.
17797 (force_move_till): Same.
17798 (memref_free): Same.
17799 (record_mem_ref_loc): Same.
17800 (set_ref_stored_in_loop): Same.
17801 (mark_ref_stored): Same.
17802 (sort_bbs_in_loop_postorder_cmp): Same.
17803 (sort_locs_in_loop_postorder_cmp): Same.
17804 (analyze_memory_references): Same.
17805 (mem_refs_may_alias_p): Same.
17806 (find_ref_loc_in_loop_cmp): Same.
17807 (rewrite_mem_ref_loc::operator): Same.
17808 (first_mem_ref_loc_1::operator): Same.
17809 (sm_set_flag_if_changed::operator): Same.
17810 (execute_sm_if_changed_flag_set): Same.
17811 (execute_sm): Same.
17812 (hoist_memory_references): Same.
17813 (ref_always_accessed::operator): Same.
17814 (refs_independent_p): Same.
17815 (record_dep_loop): Same.
17816 (ref_indep_loop_p_1): Same.
17817 (ref_indep_loop_p): Same.
17818 (can_sm_ref_p): Same.
17819 (find_refs_for_sm): Same.
17820 (loop_suitable_for_sm): Same.
17821 (store_motion_loop): Same.
17822 (store_motion): Same.
17823 (fill_always_executed_in): Same.
17824 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
17825 (estimated_unrolled_size): Same.
17826 (loop_edge_to_cancel): Same.
17827 (remove_exits_and_undefined_stmts): Same.
17828 (remove_redundant_iv_tests): Same.
17829 (unloop_loops): Same.
17830 (estimated_peeled_sequence_size): Same.
17831 (try_peel_loop): Same.
17832 (canonicalize_loop_induction_variables): Same.
17833 (canonicalize_induction_variables): Same.
17834 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
17836 (stmt_after_inc_pos): Same.
17837 (contains_abnormal_ssa_name_p): Same.
17838 (niter_for_exit): Same.
17841 (find_givs_in_bb): Same.
17842 (find_induction_variables): Same.
17843 (find_interesting_uses_cond): Same.
17844 (outermost_invariant_loop_for_expr): Same.
17845 (idx_find_step): Same.
17846 (add_candidate_1): Same.
17847 (add_iv_candidate_derived_from_uses): Same.
17848 (alloc_use_cost_map): Same.
17849 (prepare_decl_rtl): Same.
17850 (generic_predict_doloop_p): Same.
17851 (computation_cost): Same.
17852 (determine_common_wider_type): Same.
17853 (get_computation_aff_1): Same.
17854 (get_use_type): Same.
17855 (determine_group_iv_cost_address): Same.
17857 (difference_cannot_overflow_p): Same.
17858 (may_eliminate_iv): Same.
17859 (determine_set_costs): Same.
17860 (cheaper_cost_pair): Same.
17861 (compare_cost_pair): Same.
17862 (iv_ca_cand_for_group): Same.
17863 (iv_ca_recount_cost): Same.
17864 (iv_ca_set_remove_invs): Same.
17865 (iv_ca_set_no_cp): Same.
17866 (iv_ca_set_add_invs): Same.
17867 (iv_ca_set_cp): Same.
17868 (iv_ca_add_group): Same.
17869 (iv_ca_cost): Same.
17870 (iv_ca_compare_deps): Same.
17871 (iv_ca_delta_reverse): Same.
17872 (iv_ca_delta_commit): Same.
17873 (iv_ca_cand_used_p): Same.
17874 (iv_ca_delta_free): Same.
17876 (iv_ca_free): Same.
17877 (iv_ca_dump): Same.
17878 (iv_ca_extend): Same.
17879 (iv_ca_narrow): Same.
17880 (iv_ca_prune): Same.
17881 (cheaper_cost_with_cand): Same.
17882 (iv_ca_replace): Same.
17883 (try_add_cand_for): Same.
17884 (get_initial_solution): Same.
17885 (try_improve_iv_set): Same.
17886 (find_optimal_iv_set_1): Same.
17887 (create_new_iv): Same.
17888 (rewrite_use_compare): Same.
17889 (remove_unused_ivs): Same.
17890 (determine_scaling_factor): Same.
17891 * tree-ssa-loop-ivopts.h: Same.
17892 * tree-ssa-loop-manip.c (create_iv): Same.
17893 (compute_live_loop_exits): Same.
17894 (add_exit_phi): Same.
17895 (add_exit_phis): Same.
17896 (find_uses_to_rename_use): Same.
17897 (find_uses_to_rename_def): Same.
17898 (find_uses_to_rename_in_loop): Same.
17899 (rewrite_into_loop_closed_ssa): Same.
17900 (check_loop_closed_ssa_bb): Same.
17901 (split_loop_exit_edge): Same.
17902 (ip_end_pos): Same.
17903 (ip_normal_pos): Same.
17904 (copy_phi_node_args): Same.
17905 (gimple_duplicate_loop_to_header_edge): Same.
17906 (can_unroll_loop_p): Same.
17907 (determine_exit_conditions): Same.
17908 (scale_dominated_blocks_in_loop): Same.
17909 (niter_for_unrolled_loop): Same.
17910 (tree_transform_and_unroll_loop): Same.
17911 (rewrite_all_phi_nodes_with_iv): Same.
17912 * tree-ssa-loop-manip.h: Same.
17913 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
17914 (number_of_iterations_ne): Same.
17915 (assert_no_overflow_lt): Same.
17916 (assert_loop_rolls_lt): Same.
17917 (number_of_iterations_lt): Same.
17918 (adjust_cond_for_loop_until_wrap): Same.
17919 (tree_simplify_using_condition): Same.
17920 (simplify_using_initial_conditions): Same.
17921 (simplify_using_outer_evolutions): Same.
17922 (loop_only_exit_p): Same.
17923 (ssa_defined_by_minus_one_stmt_p): Same.
17924 (number_of_iterations_popcount): Same.
17925 (number_of_iterations_exit): Same.
17926 (find_loop_niter): Same.
17927 (finite_loop_p): Same.
17928 (chain_of_csts_start): Same.
17929 (get_val_for): Same.
17930 (loop_niter_by_eval): Same.
17931 (derive_constant_upper_bound_ops): Same.
17932 (do_warn_aggressive_loop_optimizations): Same.
17933 (record_estimate): Same.
17934 (get_cst_init_from_scev): Same.
17935 (record_nonwrapping_iv): Same.
17936 (idx_infer_loop_bounds): Same.
17937 (infer_loop_bounds_from_ref): Same.
17938 (infer_loop_bounds_from_array): Same.
17939 (infer_loop_bounds_from_pointer_arith): Same.
17940 (infer_loop_bounds_from_signedness): Same.
17941 (bound_index): Same.
17942 (discover_iteration_bound_by_body_walk): Same.
17943 (maybe_lower_iteration_bound): Same.
17944 (estimate_numbers_of_iterations): Same.
17945 (estimated_loop_iterations): Same.
17946 (estimated_loop_iterations_int): Same.
17947 (max_loop_iterations): Same.
17948 (max_loop_iterations_int): Same.
17949 (likely_max_loop_iterations): Same.
17950 (likely_max_loop_iterations_int): Same.
17951 (estimated_stmt_executions_int): Same.
17952 (max_stmt_executions): Same.
17953 (likely_max_stmt_executions): Same.
17954 (estimated_stmt_executions): Same.
17955 (stmt_dominates_stmt_p): Same.
17956 (nowrap_type_p): Same.
17957 (loop_exits_before_overflow): Same.
17958 (scev_var_range_cant_overflow): Same.
17959 (scev_probably_wraps_p): Same.
17960 (free_numbers_of_iterations_estimates): Same.
17961 * tree-ssa-loop-niter.h: Same.
17962 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
17963 (idx_analyze_ref): Same.
17964 (analyze_ref): Same.
17965 (gather_memory_references_ref): Same.
17966 (mark_nontemporal_store): Same.
17967 (emit_mfence_after_loop): Same.
17968 (may_use_storent_in_loop_p): Same.
17969 (mark_nontemporal_stores): Same.
17970 (should_unroll_loop_p): Same.
17971 (volume_of_dist_vector): Same.
17972 (add_subscript_strides): Same.
17973 (self_reuse_distance): Same.
17974 (insn_to_prefetch_ratio_too_small_p): Same.
17975 * tree-ssa-loop-split.c (split_at_bb_p): Same.
17976 (patch_loop_exit): Same.
17977 (find_or_create_guard_phi): Same.
17978 (easy_exit_values): Same.
17979 (connect_loop_phis): Same.
17980 (connect_loops): Same.
17981 (compute_new_first_bound): Same.
17982 (split_loop): Same.
17983 (tree_ssa_split_loops): Same.
17984 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
17985 (is_maybe_undefined): Same.
17986 (tree_may_unswitch_on): Same.
17987 (simplify_using_entry_checks): Same.
17988 (tree_unswitch_single_loop): Same.
17989 (tree_unswitch_loop): Same.
17990 (tree_unswitch_outer_loop): Same.
17991 (empty_bb_without_guard_p): Same.
17992 (used_outside_loop_p): Same.
17993 (get_vop_from_header): Same.
17994 (hoist_guard): Same.
17995 * tree-ssa-loop.c (gate_oacc_kernels): Same.
17996 (get_lsm_tmp_name): Same.
17997 * tree-ssa-loop.h: Same.
17998 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
17999 (build_and_add_sum): Same.
18000 (no_side_effect_bb): Same.
18002 (linearize_expr): Same.
18003 (should_break_up_subtract): Same.
18004 (linearize_expr_tree): Same.
18005 * tree-ssa-scopedtables.c: Same.
18006 * tree-ssa-scopedtables.h: Same.
18007 * tree-ssa-structalias.c (condense_visit): Same.
18008 (label_visit): Same.
18009 (dump_pred_graph): Same.
18010 (perform_var_substitution): Same.
18011 (move_complex_constraints): Same.
18012 (remove_preds_and_fake_succs): Same.
18013 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
18014 (determine_bb_domination_status): Same.
18015 (duplicate_thread_path): Same.
18016 (thread_through_all_blocks): Same.
18017 * tree-ssa-threadupdate.h: Same.
18018 * tree-streamer-in.c (streamer_read_string_cst): Same.
18019 (input_identifier): Same.
18020 (unpack_ts_type_common_value_fields): Same.
18021 (unpack_ts_block_value_fields): Same.
18022 (unpack_ts_translation_unit_decl_value_fields): Same.
18023 (unpack_ts_omp_clause_value_fields): Same.
18024 (streamer_read_tree_bitfields): Same.
18025 (streamer_alloc_tree): Same.
18026 (lto_input_ts_common_tree_pointers): Same.
18027 (lto_input_ts_vector_tree_pointers): Same.
18028 (lto_input_ts_poly_tree_pointers): Same.
18029 (lto_input_ts_complex_tree_pointers): Same.
18030 (lto_input_ts_decl_minimal_tree_pointers): Same.
18031 (lto_input_ts_decl_common_tree_pointers): Same.
18032 (lto_input_ts_decl_non_common_tree_pointers): Same.
18033 (lto_input_ts_decl_with_vis_tree_pointers): Same.
18034 (lto_input_ts_field_decl_tree_pointers): Same.
18035 (lto_input_ts_function_decl_tree_pointers): Same.
18036 (lto_input_ts_type_common_tree_pointers): Same.
18037 (lto_input_ts_type_non_common_tree_pointers): Same.
18038 (lto_input_ts_list_tree_pointers): Same.
18039 (lto_input_ts_vec_tree_pointers): Same.
18040 (lto_input_ts_exp_tree_pointers): Same.
18041 (lto_input_ts_block_tree_pointers): Same.
18042 (lto_input_ts_binfo_tree_pointers): Same.
18043 (lto_input_ts_constructor_tree_pointers): Same.
18044 (lto_input_ts_omp_clause_tree_pointers): Same.
18045 (streamer_read_tree_body): Same.
18046 * tree-streamer.h: Same.
18047 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
18048 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
18049 (vect_analyze_possibly_independent_ddr): Same.
18050 (vect_analyze_data_ref_dependence): Same.
18051 (vect_compute_data_ref_alignment): Same.
18052 (vect_enhance_data_refs_alignment): Same.
18053 (vect_analyze_data_ref_access): Same.
18054 (vect_check_gather_scatter): Same.
18055 (vect_find_stmt_data_reference): Same.
18056 (vect_create_addr_base_for_vector_ref): Same.
18057 (vect_setup_realignment): Same.
18058 (vect_supportable_dr_alignment): Same.
18059 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
18060 (adjust_phi_and_debug_stmts): Same.
18061 (vect_set_loop_mask): Same.
18062 (add_preheader_seq): Same.
18063 (vect_maybe_permute_loop_masks): Same.
18064 (vect_set_loop_masks_directly): Same.
18065 (vect_set_loop_condition_masked): Same.
18066 (vect_set_loop_condition_unmasked): Same.
18067 (slpeel_duplicate_current_defs_from_edges): Same.
18068 (slpeel_add_loop_guard): Same.
18069 (slpeel_can_duplicate_loop_p): Same.
18070 (create_lcssa_for_virtual_phi): Same.
18072 (vect_update_ivs_after_vectorizer): Same.
18073 (vect_gen_vector_loop_niters_mult_vf): Same.
18074 (slpeel_update_phi_nodes_for_loops): Same.
18075 (slpeel_update_phi_nodes_for_guard1): Same.
18076 (find_guard_arg): Same.
18077 (slpeel_update_phi_nodes_for_guard2): Same.
18078 (slpeel_update_phi_nodes_for_lcssa): Same.
18079 (vect_do_peeling): Same.
18080 (vect_create_cond_for_alias_checks): Same.
18081 (vect_loop_versioning): Same.
18082 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
18083 (vect_inner_phi_in_double_reduction_p): Same.
18084 (vect_analyze_scalar_cycles_1): Same.
18085 (vect_fixup_scalar_cycles_with_patterns): Same.
18086 (vect_get_loop_niters): Same.
18087 (bb_in_loop_p): Same.
18088 (vect_get_max_nscalars_per_iter): Same.
18089 (vect_verify_full_masking): Same.
18090 (vect_compute_single_scalar_iteration_cost): Same.
18091 (vect_analyze_loop_form_1): Same.
18092 (vect_analyze_loop_form): Same.
18093 (vect_active_double_reduction_p): Same.
18094 (vect_analyze_loop_operations): Same.
18095 (neutral_op_for_slp_reduction): Same.
18096 (vect_is_simple_reduction): Same.
18097 (vect_model_reduction_cost): Same.
18098 (get_initial_def_for_reduction): Same.
18099 (get_initial_defs_for_reduction): Same.
18100 (vect_create_epilog_for_reduction): Same.
18101 (vectorize_fold_left_reduction): Same.
18102 (vectorizable_reduction): Same.
18103 (vectorizable_induction): Same.
18104 (vectorizable_live_operation): Same.
18105 (loop_niters_no_overflow): Same.
18106 (vect_get_loop_mask): Same.
18107 (vect_transform_loop_stmt): Same.
18108 (vect_transform_loop): Same.
18109 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
18110 (vect_determine_precisions): Same.
18111 (vect_pattern_recog_1): Same.
18112 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
18113 * tree-vect-stmts.c (stmt_vectype): Same.
18114 (process_use): Same.
18115 (vect_init_vector_1): Same.
18116 (vect_truncate_gather_scatter_offset): Same.
18117 (get_group_load_store_type): Same.
18118 (vect_build_gather_load_calls): Same.
18119 (vect_get_strided_load_store_ops): Same.
18120 (vectorizable_simd_clone_call): Same.
18121 (vectorizable_store): Same.
18122 (permute_vec_elements): Same.
18123 (vectorizable_load): Same.
18124 (vect_transform_stmt): Same.
18125 (supportable_widening_operation): Same.
18126 * tree-vectorizer.c (vec_info::replace_stmt): Same.
18127 (vec_info::free_stmt_vec_info): Same.
18128 (vect_free_loop_info_assumptions): Same.
18129 (vect_loop_vectorized_call): Same.
18130 (set_uid_loop_bbs): Same.
18131 (vectorize_loops): Same.
18132 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
18133 * tree.c (add_tree_to_fld_list): Same.
18134 (fld_type_variant_equal_p): Same.
18135 (fld_decl_context): Same.
18136 (fld_incomplete_type_of): Same.
18137 (free_lang_data_in_binfo): Same.
18138 (need_assembler_name_p): Same.
18139 (find_decls_types_r): Same.
18140 (get_eh_types_for_runtime): Same.
18141 (find_decls_types_in_eh_region): Same.
18142 (find_decls_types_in_node): Same.
18143 (assign_assembler_name_if_needed): Same.
18144 * value-prof.c (stream_out_histogram_value): Same.
18145 * value-prof.h: Same.
18146 * var-tracking.c (use_narrower_mode): Same.
18147 (prepare_call_arguments): Same.
18148 (vt_expand_loc_callback): Same.
18149 (resolve_expansions_pending_recursion): Same.
18150 (vt_expand_loc): Same.
18151 * varasm.c (const_hash_1): Same.
18152 (compare_constant): Same.
18153 (tree_output_constant_def): Same.
18154 (simplify_subtraction): Same.
18155 (get_pool_constant): Same.
18156 (output_constant_pool_2): Same.
18157 (output_constant_pool_1): Same.
18158 (mark_constants_in_pattern): Same.
18159 (mark_constant_pool): Same.
18160 (get_section_anchor): Same.
18161 * vr-values.c (compare_range_with_value): Same.
18162 (vr_values::extract_range_from_phi_node): Same.
18163 * vr-values.h: Same.
18164 * web.c (unionfind_union): Same.
18165 * wide-int.h: Same.
18167 2019-07-09 Martin Sebor <msebor@redhat.com>
18170 * align.h: Change class-key from class to struct and vice versa
18171 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
18172 * alloc-pool.h: Same.
18173 * asan.c (shadow_mem_size): Same.
18174 * auto-profile.c: Same.
18175 * basic-block.h: Same.
18177 * cfgexpand.c (set_rtl): Same.
18178 (expand_one_stack_var_at): Same.
18179 * cfghooks.h: Same.
18182 * config/i386/i386.h: Same.
18183 * df-problems.c (df_print_bb_index): Same.
18185 * df.h (df_single_use): Same.
18186 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
18187 (layout::annotation_line_showed_range_p): Same.
18188 (get_printed_columns): Same.
18189 (correction::ensure_terminated): Same.
18190 (line_corrections::~line_corrections): Same.
18193 * dump-context.h: Same.
18194 * dumpfile.h: Same.
18195 * dwarf2out.c: Same.
18196 * edit-context.c: Same.
18197 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
18199 * function.c (assign_stack_local): Same.
18200 * function.h: Same.
18202 * gcov.c (block_info::block_info): Same.
18203 * genattrtab.c: Same.
18204 * genextract.c: Same.
18205 * genmatch.c (comparison_code_p): Same.
18206 (id_base::id_base): Same.
18207 (decision_tree::print): Same.
18208 * genoutput.c: Same.
18209 * genpreds.c (write_one_predicate_function): Same.
18210 * genrecog.c (validate_pattern): Same.
18211 (find_operand_positions): Same.
18212 (optimize_subroutine_group): Same.
18213 (merge_pattern_transition::merge_pattern_transition): Same.
18214 (merge_pattern_info::merge_pattern_info): Same.
18215 (merge_state_result::merge_state_result): Same.
18216 (merge_into_state): Same.
18217 * gensupport.c: Same.
18218 * gensupport.h: Same.
18219 * ggc-common.c (init_ggc_heuristics): Same.
18220 * ggc-tests.c (test_union): Same.
18221 * gimple-loop-interchange.cc (dump_induction): Same.
18222 * gimple-loop-versioning.cc: Same.
18223 * gimple-match.h (gimple_match_cond::any_else): Same.
18224 * gimple-ssa-backprop.c: Same.
18225 * gimple-ssa-sprintf.c: Same.
18226 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
18228 (store_immediate_info::store_immediate_info): Same.
18229 (merged_store_group::apply_stores): Same.
18230 (get_location_for_stmts): Same.
18231 * gimple-ssa-strength-reduction.c: Same.
18232 * gimple-ssa-warn-alloca.c: Same.
18233 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
18234 * godump.c (go_type_decl): Same.
18235 * hash-map-tests.c (test_map_of_strings_to_int): Same.
18236 * hash-map.h: Same.
18237 * hash-set-tests.c (test_set_of_strings): Same.
18238 * hsa-brig.c: Same.
18239 * hsa-common.h: Same.
18240 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
18241 * input.c (assert_loceq): Same.
18244 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
18245 * ipa-fnsummary.h: Same.
18246 * ipa-inline.h: Same.
18247 * ipa-prop.h: Same.
18248 * ipa-split.c (visit_bb): Same.
18249 * ira-int.h (minmax_set_iter_next): Same.
18250 * loop-invariant.c: Same.
18252 * lra-eliminations.c: Same.
18254 * lra-lives.c (mark_regno_dead): Same.
18255 * lra-remat.c: Same.
18256 * lra-spills.c: Same.
18257 * lto-streamer.h: Same.
18258 * mem-stats.h: Same.
18259 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
18260 * omp-low.c (omp_clause_aligned_alignment): Same.
18261 * optabs-query.h (get_vcond_eq_icode): Same.
18263 * opts.c (wrap_help): Same.
18264 * poly-int.h: Same.
18265 * predict.c (predict_paths_leading_to_edge): Same.
18266 * pretty-print.h: Same.
18267 * profile-count.h: Same.
18269 * read-rtl-function.c: Same.
18272 * regrename.c: Same.
18273 * regrename.h: Same.
18275 * rtl-iter.h: Same.
18276 * rtl.h (costs_add_n_insns): Same.
18278 * sched-int.h: Same.
18279 * sel-sched-ir.h: Same.
18280 * selftest.h: Same.
18281 * sese.h (vec_find): Same.
18283 * target-globals.h: Same.
18284 * tree-affine.c (aff_combination_find_elt): Same.
18285 * tree-affine.h: Same.
18286 * tree-data-ref.h: Same.
18287 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
18288 * tree-predcom.c: Same.
18289 * tree-scalar-evolution.c (find_var_scev_info): Same.
18290 * tree-ssa-alias.h: Same.
18291 * tree-ssa-ccp.c: Same.
18292 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
18293 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
18294 (rewrite_mem_refs): Same.
18295 (execute_sm_if_changed): Same.
18296 (hoist_memory_references): Same.
18297 * tree-ssa-loop-ivopts.c (operator<=): Same.
18298 * tree-ssa-loop.h: Same.
18299 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
18300 * tree-ssa-structalias.c: Same.
18301 * tree-switch-conversion.h (cluster::cluster): Same.
18302 (simple_cluster::simple_cluster): Same.
18303 * tree-vect-patterns.c (type_conversion_p): Same.
18304 * tree-vectorizer.c (dump_stmt_cost): Same.
18305 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
18306 * tree.c (protected_set_expr_location): Same.
18307 * tree.h (desired_pro_or_demotion_p): Same.
18308 (fndecl_built_in_p): Same.
18309 * unique-ptr-tests.cc: Same.
18310 * var-tracking.c (delete_variable_part): Same.
18311 * varasm.c (assemble_real): Same.
18312 (tree_output_constant_def): Same.
18314 * wide-int-bitmask.h: Same.
18315 * wide-int.h (decompose): Same.
18317 2019-07-09 Richard Biener <rguenther@suse.de>
18319 PR tree-optimization/91114
18320 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
18321 find a vector type isn't fatal.
18323 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
18325 * config/aarch64/aarch64-simd.md
18326 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
18327 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
18328 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
18329 (*aarch64_crypto_aese_fused,
18330 *aarch64_crypto_aesd_fused): Update to new definition.
18331 * config/aarch64/aarch64.c
18332 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
18334 2019-07-09 Richard Biener <rguenther@suse.de>
18336 * gimple-match.h (gimple_match_op::resimplify): New.
18337 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
18338 gimple_resimplify4, gimple_resimplify5): Remove.
18339 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
18340 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
18342 (gimple_match_op::resimplify): New.
18343 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
18344 according to availability. Use gimple_match_op::resimplify.
18346 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
18348 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
18350 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
18352 * config/arm/crypto.md:
18353 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
18354 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
18355 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
18356 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
18358 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
18359 * config/arm/aarch-common-protos.h
18360 (aarch_crypto_can_dual_issue): Remove.
18361 * config/arm/aarch-common.c
18362 (aarch_crypto_can_dual_issue): Likewise.
18363 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
18364 * config/arm/cortex-a53.md: Likewise.
18365 * config/arm/cortex-a57.md: Likewise.
18366 * config/arm/iterators.md:
18367 (CRYPTO_BINARY): Redefine.
18368 (CRYPTO_UNARY): Removed.
18369 (CRYPTO_AES, CRYPTO_AESMC): New.
18371 2019-07-09 Richard Biener <rguenther@suse.de>
18373 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
18374 (vn_reference_lookup_3): If the main ref has no access path recorded
18375 but orig_ref has use it to do access-path based disambiguation.
18376 (vn_reference_lookup_pieces): Adjust.
18377 (vn_reference_lookup): Pass down original ref if we valueized.
18379 2019-07-09 Martin Liska <mliska@suse.cz>
18381 * doc/extend.texi: Document influence on loop
18384 2019-07-09 Martin Liska <mliska@suse.cz>
18386 * lto-compress.c (lto_normalized_zstd_level): Do not use
18387 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
18388 of libzstd. One can use 0 as a default compression level.
18390 2019-07-09 Martin Liska <mliska@suse.cz>
18392 * doc/invoke.texi: Add link from -fprofile-dir option.
18393 Use better wording for 'gcno filename'.
18395 2019-07-08 Martin Sebor <msebor@redhat.com>
18397 PR middle-end/71924
18398 PR middle-end/90549
18399 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
18401 (args_loc_t): New type.
18402 (args_loc_t, locmap_t): same.
18403 (diag_returned_locals): New function.
18404 (is_addr_local): Same.
18405 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
18406 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
18407 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
18409 2019-07-08 Jakub Jelinek <jakub@redhat.com>
18411 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
18412 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
18413 and casts in offset when different, both through gimple stmts
18414 and through trees. Rewritten using loops to minimize code duplication
18417 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
18419 * emit-rtl.c (set_insn_locations): New function moved from...
18420 * function.c (set_insn_locations): ...here.
18421 * ira-emit.c (emit_moves): Propagate location of the first instruction
18422 to the inserted move instructions.
18423 * reg-stack.c (compensate_edge): Set the location if the sequence is
18424 inserted on the edge.
18425 * rtl.h (set_insn_locations): Declare.
18427 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
18429 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
18430 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
18433 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
18435 PR rtl-optimization/88233
18436 * common.opt (fsplit-wide-types-early): New option.
18437 * common/config/rs6000/rs6000-common.c
18438 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
18440 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
18441 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
18442 flag_split_wide_types_early.
18443 (pass_data_lower_subreg3): New.
18444 (pass_lower_subreg3): New.
18445 (make_pass_lower_subreg3): New.
18446 * passes.def (pass_lower_subreg2): Move after the loop passes.
18447 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
18448 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
18449 the pass pipeline; its previous place is taken by ...
18450 (make_pass_lower_subreg3): ... this.
18452 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
18454 * config/s390/s390.c (s390_shift_truncation_mask): Define.
18455 (TARGET_SHIFT_TRUNCATION_MASK): Define.
18457 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
18459 * config/s390/constraints.md: Add new jsc constraint.
18460 * config/s390/predicates.md: New predicates.
18461 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
18462 * config/s390/s390.c (s390_valid_shift_count): New function.
18463 (print_shift_count_operand): Use s390_valid_shift_count.
18464 (print_operand): Likewise.
18465 * config/s390/s390.md: Use new predicate.
18466 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
18467 * config/s390/vector.md: Use new predicate.
18469 2019-07-08 Andrew Waterman <andrew@sifive.com>
18470 Jim Wilson <jimw@sifive.com>
18472 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
18473 bitsize instead of BITS_PER_WORD.
18475 2019-07-08 Martin Liska <mliska@suse.cz>
18477 * collect2.c (defined): Revert to before r254460.
18478 (scan_prog_file): Revert to before r254460.
18480 2019-07-08 Richard Biener <rguenther@suse.de>
18482 PR tree-optimization/83518
18483 * tree-ssa-sccvn.c: Include splay-tree.h.
18484 (struct pd_range, struct pd_data): New.
18485 (struct vn_walk_cb_data): Add data to track partial definitions.
18486 (vn_walk_cb_data::~vn_walk_cb_data): New.
18487 (vn_walk_cb_data::push_partial_def): New.
18488 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
18489 (vn_reference_lookup_2): When partial defs are registered give up.
18490 (vn_reference_lookup_3): Track partial defs for memset and
18491 constructor zeroing and for defs from constants.
18493 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
18495 * doc/install.texi (bootstrap-Og): Document.
18497 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
18499 * config/riscv/pic.md (*local_pic_load_s<mode>)
18500 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
18501 referenced by <mode>, giving...
18502 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
18503 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
18504 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
18505 use <X:MODE> for the mode attribute.
18507 2019-07-07 Jeff Law <law@redhat.com>
18509 PR tree-optimization/91090
18510 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
18511 in handling of ranges to simplify switch statements.
18513 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
18515 * config/darwin.c (darwin_override_options): Make a final check on PIC
18518 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
18520 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
18521 on for kernel code.
18523 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
18526 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
18527 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
18528 instead of matching them to "l" output operands.
18530 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
18532 * config/mips/mips.c (mips_split_move): Zero-initialize addr
18533 and check whether addr.reg is nonnull before using it.
18535 2019-07-06 Jakub Jelinek <jakub@redhat.com>
18537 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
18538 ctx->for_simd_scan_phase simd copy the outer var to the privatized
18539 variable(s). For conditional lastprivate look through outer
18540 GIMPLE_OMP_SCAN context.
18541 (lower_omp_1): For conditional lastprivate look through outer
18542 GIMPLE_OMP_SCAN context.
18544 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
18545 member to combined_into_simd_safelen1.
18546 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
18547 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
18548 clauses if ctx->combined_into_simd_safelen1 put statements after the
18549 predicate conditionalized block rather than into it.
18551 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18553 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
18555 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
18556 Make the choice of <mode> explicit, giving...
18557 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
18559 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18561 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
18562 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
18564 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
18565 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
18566 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
18567 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
18568 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
18569 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
18570 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
18571 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
18572 (*avx512f_scatterdi<mode>): Likewise.
18573 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
18575 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18577 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
18578 specify the mode iterator referenced by <mode>, giving...
18579 (*push1_h8300hs_<QHI:mode>): ...this.
18581 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18583 * config/gcn/gcn-valu.md
18584 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
18585 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
18586 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
18587 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
18588 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
18589 but using the _exec comparison patterns.
18590 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
18591 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
18592 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
18593 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
18594 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
18595 but using the _exec comparison patterns.
18597 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18599 * config/arm/sync.md
18600 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
18601 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
18602 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
18603 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
18604 <SIDI:cas_cmp_str>.
18606 2019-07-06 Jakub Jelinek <jakub@redhat.com>
18608 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
18609 (maybe_lookup_ctx): Add forward declaration.
18610 (omp_find_scan): Likewise. Walk into body of simd if composited
18611 with worksharing loop.
18612 (scan_omp_simd_scan): New function.
18613 (scan_omp_1_stmt): Call it.
18614 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
18615 ctx->for_simd_scan_phase.
18616 (lower_rec_input_clauses): Do much less work for inscan reductions
18617 in ctx->for_simd_scan_phase is_simd regions.
18618 (lower_omp_scan): Set is_simd also on simd constructs composited
18619 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
18620 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
18621 emit their body after in simd constructs composited with worksharing
18623 (lower_omp_for_scan): Handle worksharing loop composited with simd.
18625 * omp-low.c (omp_find_scan): Make static.
18626 (lower_omp_for_scan): Fix order of merge arguments in input phase of
18627 the second loop, var2 represents the first partial sum and so needs
18628 to go before rprivb[ivar].
18630 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
18632 * config/rs6000/rs6000-logue.c: Remove unused code.
18634 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
18636 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
18638 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
18641 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
18642 check with a frame laid out check.
18644 2019-07-05 Richard Biener <rguenther@suse.de>
18646 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
18647 when comparing against a store with possibly the same value.
18649 2019-07-05 Richard Biener <rguenther@suse.de>
18651 PR tree-optimization/91091
18652 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
18653 (walk_non_aliased_vuses): Likewise.
18654 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
18655 (get_continuation_for_phi): New tbaa_p parameter and pass
18657 (walk_non_aliased_vuses): Likewise.
18658 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
18659 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
18660 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
18662 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
18663 (adjust_offsets_for_equal_base_address): New function.
18664 (vn_reference_lookup_3): Use it to catch more base equivalences.
18665 Handle and pass down tbaa_p flag.
18666 (vn_reference_lookup_pieces): Adjust.
18667 (vn_reference_lookup): Remove alias-set altering, instead pass
18668 down false as tbaa_p.
18670 2019-07-05 Richard Biener <rguenther@suse.de>
18672 PR tree-optimization/91091
18673 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
18674 accesses can happen with -fno-strict-aliasing.
18676 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
18678 * tree-ssa-alias.c (alias_stats): Add
18679 nonoverlapping_component_refs_since_match_p_must_overlap.
18680 (dump_alias_stats): Print it.
18681 (nonoverlapping_component_refs_since_match_p): Add early exit.
18682 (nonoverlapping_component_refs_p): Do not account early exit.
18684 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
18686 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
18687 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
18688 (emit_eh_dispatch): Delete.
18689 (lower_catch): Emit the eh_dispatch manually and set the location of
18690 the first catch statement onto it.
18691 (lower_eh_filter): Emit the eh_dispatch manually and set location.
18692 (lower_eh_dispatch): Propagate location.
18693 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
18694 (eliminate_build): Likewise.
18696 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
18698 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
18699 phi nodes if possible.
18700 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
18701 location info on the newly created statement.
18702 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
18703 newly created increment if needed.
18705 2019-07-04 Jakub Jelinek <jakub@redhat.com>
18707 PR middle-end/78884
18708 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
18709 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
18710 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
18711 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
18712 ctx->add_safelen1 is set.
18714 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
18715 GOMP_loop_start at the start of second worksharing loop in a scan.
18716 For nowait, don't emit GOMP_loop_end_nowait at the end of first
18717 worksharing loop in a scan even if there are conditional lastprivates,
18718 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
18720 2019-07-04 Jan Hubicka <jh@suse.cz>
18722 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
18723 Fix check for match in the ref walk.
18725 2019-07-04 Martin Liska <mliska@suse.cz>
18727 * tree-ssa-loop-niter.c
18728 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
18729 (estimate_numbers_of_iterations):
18730 Support __builtin_expect_with_probability for analysis
18731 of # of loop iterations.
18733 2019-07-04 Alexandre Oliva <oliva@adacore.com>
18735 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
18736 * except.c: Likewise.
18737 * expr.c (expand_expr_real_1): Reject it.
18738 * gimplify.c (gimplify_expr): Gimplify it, within
18740 * tree-dump.c (dequeue_and_dump): Dump it.
18741 * tree-pretty-print.c (dump_generic_node): Likewise.
18742 * tree.c (block_may_fallthru): Handle it.
18743 * tree.def (EH_ELSE_EXPR): Introduce it.
18744 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
18745 with GIMPLE_EH_ELSE as try/finally/else.
18747 2019-07-04 Richard Biener <rguenther@suse.de>
18750 * tree-pass.h (execute_all_ipa_transforms): Add a flag
18751 parameter whether to disable GC collection.
18752 * passes.c (execute_one_ipa_transform_pass): Likewise, and
18754 (execute_all_ipa_transforms): Likewise and pass it down.
18755 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
18756 collection from applying IPA transforms.
18757 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
18758 from applying IPA transforms.
18760 2019-07-04 Richard Biener <rguenther@suse.de>
18762 PR tree-optimization/90911
18763 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
18764 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
18765 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18766 scalar_loop_scaling.
18767 (vect_transform_loop): Scale scalar loop profile if needed.
18768 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
18769 the loop copy from if-conversion adjust edge probabilities
18770 and scale the vectorized loop body profile, queue the scalar
18771 profile for updating after peeling.
18773 2019-07-04 Jan Hubicka <jh@suse.cz>
18775 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
18776 parameters; return early for must-alias.
18777 (indirect_ref_may_alias_decl_p): Likewise; when establishing
18778 outer types match, try nonoverlapping_component_refs
18779 if must-alias is not obvious.
18780 (indirect_refs_may_alias_p): Likewise.
18781 (refs_may_alias_p_2): Likewise.
18783 2019-07-04 Richard Biener <rguenther@suse.de>
18785 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
18787 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
18789 (struct vn_walk_cb_data): New callback data struct.
18790 (vn_reference_lookup_2): Adjust.
18791 (vn_reference_lookup_3): Likewise.
18792 (vn_reference_lookup_pieces): Likewise.
18793 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
18794 (visit_reference_op_load): Adjust.
18796 2019-07-04 Jakub Jelinek <jakub@redhat.com>
18798 PR tree-optimization/91063
18799 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
18800 stmt from stmts sequence before calling vect_init_vector_1.
18803 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18806 * fwprop.c (reg_single_def_p): New function.
18807 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
18808 (forward_propagate_into): New parameter reg_prop_only
18809 with default value false.
18810 Propagate def's src into loop only if SET_SRC and SET_DEST
18811 of def_set have single definitions.
18812 Likewise if reg_prop_only is set to true.
18813 (fwprop): New param fwprop_addr_p.
18814 Integrate fwprop_addr into fwprop.
18815 (fwprop_addr): Remove.
18816 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
18818 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
18819 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
18820 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
18822 2019-07-04 Jakub Jelinek <jakub@redhat.com>
18824 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
18825 in worksharing loop scans.
18827 PR tree-optimization/91074
18828 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
18831 PR rtl-optimization/90756
18832 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
18835 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
18837 * config/aarch64/aarch64.md: Remove redundant constraints from
18838 define_expand but keep some patterns untouched if they are
18839 specially selected by TARGET_SECONDARY_RELOAD hook.
18840 * config/aarch64/aarch64-sve.md: Likewise.
18841 * config/aarch64/atomics.md: Remove redundant constraints from
18843 * config/aarch64/aarch64-simd.md: Likewise.
18845 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
18847 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
18848 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
18849 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
18851 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
18854 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
18856 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
18857 (STARTFILE_SPEC): Split crt3 into a separate spec.
18858 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
18859 (DARWIN_CRT2_SPEC): New.
18860 (DARWIN_CRT3_SPEC): New.
18861 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
18862 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
18863 (DARWIN_CRT3_SPEC): New.
18865 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
18867 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
18868 Change the RTL attribute "length" from "4" to "*" to allow the
18869 length attribute to be adjusted automatically for prefixed load,
18870 store, and add immediate instructions.
18871 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
18873 (extendsi<mode>2, EXTSI iterator): Likewise.
18874 (movsi_internal1): Likewise.
18875 (movsi_from_sf): Likewise.
18876 (movdi_from_sf_zero_ext): Likewise.
18877 (mov<mode>_internal): Likewise.
18878 (movcc_internal1, QHI iterator): Likewise.
18879 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
18880 (movsf_from_si): Likewise.
18881 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
18882 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
18883 (mov<mode>, FMOVE128 iterator): Likewise.
18884 (movdi_internal64): Likewise.
18885 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
18887 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
18888 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
18889 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
18890 (vsx_splat_v4sf): Likewise.
18892 2019-07-03 Mark Wielaard <mark@klomp.org>
18895 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
18896 DW_AT_addr_base if there is actually a .debug_addr section with
18898 (output_addr_table): Add DWARF5 table header generation here after
18899 checking there are actually any addresses from...
18900 (dwarf2out_finish): ...here.
18902 2019-07-03 Richard Biener <rguenther@suse.de>
18904 PR middle-end/91069
18905 * match.pd (vec_perm -> bit_insert): Fix element read from
18908 2019-07-03 Martin Liska <mliska@suse.cz>
18910 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
18911 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
18913 * generic-match-head.c: Include dbgcnt.h.
18914 * gimple-match-head.c: Likewise.
18916 2019-07-03 Martin Liska <mliska@suse.cz>
18918 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
18919 (GCOV_COUNTER_V_TOPN): New.
18920 (GCOV_COUNTER_V_INDIR): Use _topn.
18921 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
18922 (GCOV_TOPN_VALUES): New.
18923 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
18924 (GCOV_TOPN_VALUES_COUNTERS): New.
18925 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
18927 (gimple_init_gcov_profiler): Rename variables from one_value
18929 (gimple_gen_one_value_profiler): Remove.
18930 (gimple_gen_topn_values_profiler): New function.
18931 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
18932 names instead of SINGLE_VALUE.
18933 (stream_out_histogram_value): Likewise.
18934 (stream_in_histogram_value): Likewise.
18935 (get_most_common_single_value): Likewise.
18936 (gimple_divmod_fixed_value_transform): Likewise.
18937 (gimple_stringops_transform): Likewise.
18938 (gimple_divmod_values_to_profile): Likewise.
18939 (gimple_stringops_values_to_profile): Likewise.
18940 (gimple_find_values_to_profile): Likewise.
18941 * value-prof.h (enum hist_type): Rename to TOPN.
18942 (gimple_gen_one_value_profiler): Remove.
18943 (gimple_gen_topn_values_profiler): New.
18945 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
18947 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
18948 if it has the DW_AT_data_member_location attribute.
18950 2019-07-03 Richard Biener <rguenther@suse.de>
18952 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
18955 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
18957 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
18958 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
18959 (tlsdesc_small_sve_<mode>): Likewise.
18961 2019-07-03 Martin Liska <mliska@suse.cz>
18963 * Makefile.in: Define ZSTD_LIB.
18964 * common.opt: Adjust compression level
18965 to support also zstd levels.
18966 * config.in: Regenerate.
18967 * configure: Likewise.
18968 * configure.ac: Add --with-zstd and --with-zstd-include options
18970 * doc/install.texi: Mention zstd dependency.
18971 * gcc.c: Print supported LTO compression algorithms.
18972 * lto-compress.c (lto_normalized_zstd_level): Likewise.
18973 (lto_compression_zstd): Likewise.
18974 (lto_uncompression_zstd): Likewise.
18975 (lto_end_compression): Dispatch in between zlib and zstd.
18976 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
18977 (lto_uncompression_zlib): Make it static.
18978 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
18979 * lto-section-in.c (lto_get_section_data): Pass info
18980 about used compression.
18981 * lto-streamer-out.c: By default use zstd when possible.
18982 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
18983 (TV_IPA_LTO_COMPRESS): Likewise for compression.
18985 2019-07-03 Martin Liska <mliska@suse.cz>
18987 * lto-section-in.c (lto_get_section_data): Add "lto" section.
18988 * lto-section-out.c (lto_destroy_simple_output_block): Never
18989 compress LTO_section_lto section.
18990 * lto-streamer-out.c (produce_asm): Do not set major_version
18992 (lto_output_toplevel_asms): Likewise.
18993 (produce_lto_section): New function.
18994 (lto_output): Call produce_lto_section.
18995 (lto_write_mode_table): Do not set major_version and
18997 (produce_asm_for_decls): Likewise.
18998 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
19000 (struct lto_header): Remove.
19001 (struct lto_section): New struct.
19002 (struct lto_simple_header): Do not inherit from lto_header.
19003 (struct lto_file_decl_data): Add lto_section_header field.
19005 2019-07-03 Martin Liska <mliska@suse.cz>
19007 * lra-eliminations.c (eliminate_regs_in_insn): Remove
19009 * reg-stack.c (check_asm_stack_operands): Likewise.
19010 * tree-ssa-structalias.c (create_function_info_for): Likewise.
19011 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
19012 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
19013 force_expand_binop.
19015 2019-07-03 Martin Liska <mliska@suse.cz>
19017 PR tree-optimization/90892
19018 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
19019 in string constants.
19021 2019-07-03 Martin Liska <mliska@suse.cz>
19023 PR middle-end/90899
19024 * multiple_target.c (create_dispatcher_calls): Add to comdat
19025 group only if set for ifunc.
19027 2019-07-03 Martin Liska <mliska@suse.cz>
19030 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
19031 Define local_object_name in outer scope in order to handle
19032 use-after-scope issue.
19034 2019-07-03 Martin Liska <mliska@suse.cz>
19036 * common.opt: Add fprofile-note.
19037 * coverage.c (coverage_init): Append the option
19039 * doc/invoke.texi: Document -fprofile-note.
19041 2019-07-03 Jakub Jelinek <jakub@redhat.com>
19043 PR tree-optimization/91033
19044 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
19045 vect_analyze_data_refs): Add bool * arguments.
19046 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
19047 if failure is due to scatter/gather, set *fatal to false if non-NULL.
19048 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
19049 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
19050 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
19051 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
19052 vect_analyze_data_refs caller.
19054 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
19056 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
19057 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
19058 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
19059 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19060 OMP_CLAUSE__SCANTEMP_ entry.
19061 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
19062 * tree-pretty-print.c (dump_omp_clause): Likewise.
19063 * tree-nested.c (convert_nonlocal_omp_clauses,
19064 convert_local_omp_clauses): Likewise.
19065 * omp-general.h (struct omp_for_data): Add have_scantemp and
19066 have_nonctrl_scantemp members.
19067 * omp-general.c (omp_extract_for_data): Initialize them.
19068 * omp-low.c (struct omp_context): Add scan_exclusive member.
19069 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
19070 result again with GF_OMP_FOR_KIND_MASK. Initialize also
19071 ctx->scan_exclusive.
19072 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
19073 of !ctx->scan_inclusive.
19074 (lower_rec_input_clauses): Simplify gimplification of dtors using
19075 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
19076 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
19077 loops. Don't add barrier for reduction_omp_orig_ref if
19078 ctx->scan_??xclusive.
19079 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
19080 (lower_omp_scan): Use ctx->scan_exclusive instead
19081 of !ctx->scan_inclusive. Handle worksharing loops with inscan
19082 reductions. Use new_vard != new_var instead of repeated
19083 omp_is_reference calls.
19084 (omp_find_scan, lower_omp_for_scan): New functions.
19085 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
19087 * omp-expand.c (expand_omp_scantemp_alloc): New function.
19088 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
19089 and fd->have_scantemp.
19091 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
19092 on worksharing loop propagate it as shared clause to containing
19095 * omp-expand.c (expand_omp_for_static_nochunk,
19096 expand_omp_for_static_chunk): For nowait worksharing loop with
19097 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
19100 2019-07-02 qing zhao <qing.zhao@oracle.com>
19102 PR preprocessor/90581
19103 * doc/cppopts.texi: Add document for -fmax-include-depth.
19104 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
19106 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
19108 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
19109 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
19110 (mmx_packssdw): Ditto.
19111 (mmx_punpckhbw): Ditto.
19112 (mmx_punpcklbw): Ditto.
19113 (mmx_punpckhwd): Ditto.
19114 (mmx_punpcklwd): Ditto.
19115 (mmx_punpckhdq): Ditto.
19116 (mmx_punpckldq): Ditto.
19117 (*vec_dupv4hi): Ditto.
19118 (*vec_dupv2si): Ditto.
19119 (mmx_pmovmskb): Ditto.
19120 * config/i386/sse.md (sse_cvtpi2ps): Use
19121 TARGET_SSE2 && SSE_REG_P in split condition.
19122 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
19123 TARGET_SSSE3 && SSE_REGNO_P in split condition.
19124 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
19125 (ssse3_pshufbv8qi3): Ditto.
19126 (ssse3_palignrdi): Ditto.
19128 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
19130 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
19131 with inlined save and restore.
19133 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
19135 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
19136 to be inserted on single successor edge of the entry block. Then call
19137 commit_edge_insertions instead of inserting the instructions manually.
19138 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
19139 RTL expansion and rebuild jump labels chain.
19141 2019-07-02 Richard Biener <rguenther@suse.de>
19143 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
19145 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
19147 * tree.c (build_common_tree_nodes): Initialize them.
19148 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
19149 Make declarations comments.
19150 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
19151 chrec_known): Remove definitions.
19152 (initialize_scalar_evolutions_analyzer): Remove.
19153 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
19154 * tree-streamer.c (preload_common_nodes): Do not preload
19155 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
19157 2019-07-02 Jan Hubicka <jh@suse.cz>
19159 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
19162 2019-07-02 Jan Hubicka <jh@suse.cz>
19164 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
19166 (nonoverlapping_component_refs_since_match_p): ... this one;
19167 handle also non-decl bases; return -1 if search gave up.
19168 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
19169 nonoverlapping_component_refs_of_decl_p_no_alias to
19170 nonoverlapping_component_refs_since_match_p_may_alias,
19171 nonoverlapping_component_refs_since_match_p_no_alias.
19172 (dump_alias_stats): Update dumping.
19173 (aliasing_matching_component_refs_p): Break out from ...;
19174 dispatch to nonoverlapping_component_refs_for_decl_p
19175 and nonoverlapping_component_refs_since_match_p.
19176 (aliasing_component_refs_p): ... here; call
19177 nonoverlapping_component_refs_p in scenarios where we can not
19178 precisely determine base match.
19179 (decl_refs_may_alias_p): Use
19180 nonoverlapping_component_refs_since_match_p.
19181 (indirect_ref_may_alias_decl_p): Do not call
19182 nonoverlapping_component_refs_p.
19183 (indirect_refs_may_alias_p): Likewise.
19185 2019-07-02 Jan Hubicka <jh@suse.cz>
19187 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
19188 to clobber of return value.
19190 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19192 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
19193 for is_neon_type instructions that have not already been categorized.
19195 2019-07-02 Richard Biener <rguenther@suse.de>
19197 PR tree-optimization/58483
19198 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
19199 for MEM_REF base hashing.
19200 (equal_mem_array_ref_p): Likewise for base comparison.
19202 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19204 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
19205 parameterized name.
19206 (signbit<mode>2): Use that name. Simplify.
19208 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
19210 PR middle-end/66726
19211 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
19212 Tune heuristic from PR71016 to allow MIN / MAX.
19214 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19216 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
19217 parameterized name.
19218 (abs<mode>2): Use that name. Simplify.
19220 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19222 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
19223 parameterized name.
19224 (neg<mode>2): Use that name. Simplify.
19226 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19228 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
19230 (abs<mode>2): Use that name. Simplify.
19232 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19234 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
19236 (neg<mode>2): Use that name. Simplify.
19238 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
19240 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
19241 ("enabled" attribute): Handle sse_noavx isa attribute.
19242 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
19243 Use TARGET_SSE && SSE_REGNO_P in split condition.
19244 (*vec_dupv2sf): Ditto.
19246 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19248 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
19250 (floatsi<mode>2): Use that name. Simplify.
19252 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19254 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
19255 parameterized name.
19256 (extenddf<mode>2_vsx): Make this a parameterized name.
19257 (extenddf<mode>2): Use those names. Simplify.
19259 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19261 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
19263 (eh_return): Use that name. Simplify.
19265 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19267 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
19268 (doloop_end): Use that name. Simplify.
19270 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19272 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
19273 parameterized name.
19274 (indirect_jump): Use that name. Simplify.
19276 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19278 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
19279 parameterized name.
19280 (abs<mode>2): Use that name. Simplify.
19282 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19284 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
19285 parameterized name.
19286 (fix_trunc<mode>si2): Use that name. Simplify.
19288 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19290 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
19291 (allocate_stack): Use that name. Simplify.
19293 2019-07-01 Martin Sebor <msebor@redhat.com>
19295 PR middle-end/90923
19296 * hash-map.h (hash_map::put): On insertion invoke element ctor.
19297 (hash_map::get_or_insert): Same. Reformat comment.
19298 * hash-set.h (hash_set::add): On insertion invoke element ctor.
19299 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
19300 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
19301 * hash-table.h (hash_table::operator=): Prevent copy assignment.
19302 (hash_table::hash_table (const hash_table&)): Use copy ctor
19303 instead of assignment to copy elements.
19305 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
19306 John David Anglin <danglin@gcc.gnu.org>
19309 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
19310 using saved frame pointer.
19312 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
19314 PR middle-end/64242
19315 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
19316 Add frame clobber and schedule blockage.
19318 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
19320 * doc/invoke.texi (Link Options): Further editorial changes to
19321 -flinker-output docs.
19323 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19325 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
19326 Load both operands of a PLUS into registers separately.
19328 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
19330 * config/s390/vector.md: Fix shift count operand printing.
19332 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19334 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
19336 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19338 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
19339 Use recog_data to test for an output operand.
19341 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19343 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
19344 exclude any others that are disparaged or that are bound to need
19346 (ira_get_dup_out_num): Expand comment.
19348 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19350 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
19351 constraint string for each operand/alternative combo. Only handle
19352 '%' at the start of constraint strings, and look for it outside
19355 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19357 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
19358 alternative_mask instead of HARD_REG_SET to represent a
19359 bitmask of alternatives.
19360 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
19361 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
19363 2019-07-01 Martin Liska <mliska@suse.cz>
19365 * edit-context.c (test_applying_fixits_unreadable_file): Do not
19366 use () for a constructor call.
19367 (test_applying_fixits_line_out_of_range): Likewise.
19368 * ggc-page.c (alloc_page): Use (void *) for %p printf format
19370 (free_page): Likewise.
19372 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
19374 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
19375 parameter names to match usage (no functional change).
19376 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
19378 2019-07-01 Richard Biener <rguenther@suse.de>
19380 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
19382 (pass_fre::execute): Honor it.
19383 * passes.def: Adjust pass_fre invocations to allow iterating,
19384 add non-iterating pass_fre before late threading/dom.
19386 2019-07-01 Richard Biener <rguenther@suse.de>
19388 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
19389 TARGET_MEM_REF handling to also handle address-taken ones.
19391 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
19393 * doc/sourcebuild.texi (Effective-Target Keywords, Other
19394 hardware attributes): Document avx512vp2intersect.
19396 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19398 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
19399 (abs<mode>2): New expander.
19400 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
19401 Use CODE_FOR_ssse3_absv8qi2.
19402 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
19403 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
19405 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19407 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
19408 to sse, sse_noavx and avx. Update all uses.
19410 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19412 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
19413 (*mmx_<plusminus_insn><mode>3): Ditto.
19414 (*mmx_mulv4hi3"): Ditto.
19415 (*mmx_smulv4hi3_highpart): Ditto.
19416 (*mmx_umulv4hi3_highpart): Ditto.
19417 (*mmx_pmaddwd): Ditto.
19418 (*sse2_umulv1siv1di3): Ditto.
19419 (*mmx_<code>v4hi3): Ditto.
19420 (*mmx_<code>v8qi3): Ditto.
19421 (mmx_ashr<mode>3): Ditto.
19422 ("mmx_<shift_insn><mode>3): Ditto.
19423 (*mmx_eq<mode>3): Ditto.
19424 (mmx_gt<mode>3): Ditto.
19425 (mmx_andnot<mode>3): Ditto.
19426 (*mmx_<code><mode>3): Ditto.
19427 (*mmx_pinsrw): Ditto.
19428 (*mmx_pextrw): Ditto.
19429 (mmx_pshufw_1): Ditto.
19430 (*mmx_uavgv8qi3): Ditto.
19431 (*mmx_uavgv4hi3): Ditto.
19432 ("mmx_psadbw): Ditto.
19433 * config/i386/sse.md (sse_cvtps2pi): Ditto.
19434 (sse_cvttps2pi): Ditto.
19435 (ssse3_pmaddubsw): Ditto.
19436 (*ssse3_pmulhrswv4hi3): Ditto.
19437 (ssse3_psign<mode>3): Ditto.
19439 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
19441 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
19442 adjustment for bit-fields to all aggregate types.
19444 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
19446 * config/rs6000/predicates.md (pcrel_address): Use
19447 SYMBOL_REF_LOCAL_P to determine if a label is local.
19448 (pcrel_external_address): New predicate.
19449 (non_prefixed_mem_operand): Delete, predicate not used.
19450 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
19451 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
19453 (SYMBOL_REF_PCREL_P): Likewise.
19456 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
19458 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
19459 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
19460 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
19462 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
19464 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
19465 override on extra_headers.
19467 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
19469 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
19470 * config/darwin-driver.c (darwin_default_min_version): Remove newline
19472 (darwin_driver_init): Likewise.
19474 2019-06-28 Jan Beulich <jbeulich@suse.com>
19476 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
19477 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
19478 Eliminate redundant alternative.
19480 2019-06-28 Jan Beulich <jbeulich@suse.com>
19482 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
19483 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
19484 Use vector_operand.
19486 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
19488 * config/arc/arc.c (arc_rtx_costs): All short instructions are
19489 having a lower cost regardless of the speed option.
19491 2019-06-28 Jan Beulich <jbeulich@suse.com>
19493 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
19494 vector_operand plus, on both alternatives, "Bm" constraint.
19496 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
19498 * config/arm/arm.md: Remove redundant constraints from
19499 define_expand but leave reload_inm and reload_outm patterns
19500 untouched since they need special constraints to work.
19501 * config/arm/arm-fixed.md: Remove redundant constraints from
19503 * config/arm/iwmmxt.md: Likewise.
19504 * config/arm/neon.md: Likewise.
19505 * config/arm/sync.md: Likewise.
19506 * config/arm/thumb1.md: Likewise.
19507 * config/arm/vec-common.md: Likewise.
19509 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
19511 * doc/install.texi: Document --disable-tm-clone-registry.
19513 2019-06-27 Jakub Jelinek <jakub@redhat.com>
19516 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
19519 PR tree-optimization/91010
19520 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
19521 return true. Otherwise, don't call operand_equal_p if offset1 or
19522 offset2 is NULL and just return false.
19524 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
19526 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
19527 user-specified float mode choice for kernel mode code.
19529 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
19531 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
19534 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
19536 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
19537 use longcall for 64b code.
19539 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
19541 * builtins.c (get_memory_rtx): Fix comment.
19542 * optabs.def (movmem_optab): Change to cpymem_optab.
19543 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
19544 (emit_block_move_hints): Change movmem to cpymem.
19545 * defaults.h: Change movmem to cpymem.
19546 * targhooks.c (get_move_ratio): Change movmem to cpymem.
19547 (default_use_by_pieces_infrastructure_p): Ditto.
19548 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
19549 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
19551 * config/aarch64/aarch64.h: Change movmem to cpymem.
19552 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
19553 * config/alpha/alpha.h: Change movmem to cpymem in comment.
19554 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
19556 * config/arc/arc-protos.h: Change movmem to cpymem.
19557 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
19558 * config/arc/arc.h: Change movmem to cpymem in comment.
19559 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
19560 * config/arm/arm-protos.h: Change movmem to cpymem in names.
19561 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
19562 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
19563 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
19564 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
19565 * config/avr/avr-protos.h: Change movmem to cpymem.
19566 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
19567 avr_out_movmem): Change movmem to cpymem.
19568 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
19569 Change movmem to cpymem.
19570 * config/bfin/bfin-protos.h: Change movmem to cpymem.
19571 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
19572 Change movmem to cpymem.
19573 * config/bfin/bfin.h: Change movmem to cpymem in comment.
19574 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
19575 * config/c6x/c6x-protos.h: Change movmem to cpymem.
19576 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
19577 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
19578 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
19579 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
19580 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
19581 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
19582 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
19583 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
19584 expand_small_cpymem_or_setmem,
19585 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
19586 expand_set_or_cpymem_constant_prologue,
19587 ix86_expand_set_or_cpymem): Change movmem to cpymem.
19588 * config/i386/i386-protos.h: Change movmem to cpymem.
19589 * config/i386/i386.h: Change movmem to cpymem in comment.
19590 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
19591 (setmem<mode>): Change expansion function name.
19592 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
19593 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
19594 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
19595 * config/m32c/m32c-protos.h: Change movmem to cpymem.
19596 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
19597 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
19598 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
19600 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
19601 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
19602 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
19603 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
19604 Change movmem to cpymem.
19605 * config/mips/mips.h: Change movmem to cpymem.
19606 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
19607 * config/nds32/nds32-memory-manipulation.c
19608 (nds32_expand_movmemsi_loop_unknown_size,
19609 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
19610 nds32_expand_movmemsi_unroll,
19611 nds32_expand_movmemsi): Change movmem to cpymem.
19612 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
19613 * config/nds32/nds32-protos.h: Change movmem to cpymem.
19614 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
19615 (pa_adjust_insn_length): Change call to compute_movmem_length.
19616 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
19617 movmemdi, movmemdi_prereload,
19618 movmemdi_postreload): Change movmem to cpymem.
19619 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
19620 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
19621 * config/riscv/riscv.c: Change movmem to cpymem in comment.
19622 * config/riscv/riscv.h: Change movmem to cpymem.
19623 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
19624 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
19625 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
19627 * config/s390/s390-protos.h: Change movmem to cpymem.
19628 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
19629 s390_expand_insv): Change movmem to cpymem.
19630 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
19631 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
19632 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
19633 * config/sparc/sparc.h: Change movmem to cpymem in comment.
19634 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
19635 for nonexistent function.
19636 * config/vax/vax.h: Change movmem to cpymem in comment.
19637 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
19638 * config/visium/visium.h: Change movmem to cpymem in comment.
19639 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
19640 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
19641 * doc/md.texi: Change movmem to cpymem and update description to match.
19642 * doc/rtl.texi: Change movmem to cpymem.
19643 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
19644 * doc/tm.texi: Regenerate.
19646 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
19648 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
19649 -fvariable-expansion-in-unroller by default.
19650 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
19653 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
19656 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
19657 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
19659 * config.gcc(rs6000-*-*): Define target_gtfiles.
19661 2019-06-27 Jan Hubicka <jh@suse.cz>
19663 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
19664 (add_type_duplicate): When odr hash is not allocated, to nothing.
19665 (odr_based_tbaa_p): New function.
19666 (set_type_canonical_for_odr_type): New function.
19667 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
19668 set_type_canonical_for_odr_type): New.
19669 * tree.c (gimple_canonical_types_compatible_p): ODR types with
19670 ODR based TBAA are not equivalent to non-ODR types.
19672 2019-06-27 Martin Liska <mliska@suse.cz>
19674 PR tree-optimization/90974
19675 PR rtl-optimization/90975
19676 PR rtl-optimization/90976
19678 PR tree-optimization/91017
19679 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
19681 * lra.c (lra_set_insn_recog_data): Remove a leftover from
19682 initial commit of IRA.
19683 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
19685 * tree-vect-loop.c (vect_create_epilog_for_reduction):
19686 Remove unused mode1.
19687 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
19690 2019-06-27 Jakub Jelinek <jakub@redhat.com>
19693 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
19694 instead of register_operand for operands[1], add m to its constraints
19695 if operands[2] uses "C" constraint. Ensure in condition that if
19696 operands[2] is not 0, then operands[1] is not a MEM. For last two
19697 alternatives, use unaligned loads instead of aligned if operands[1] is
19698 misaligned_operand.
19700 2019-06-27 Martin Liska <mliska@suse.cz>
19702 * asan.c (asan_emit_allocas_unpoison): Remove obviously
19704 * bt-load.c (move_btr_def): Likewise.
19705 * builtins.c (expand_builtin_apply_args_1): Likewise.
19706 (expand_builtin_apply): Likewise.
19707 * cfgexpand.c (expand_asm_stmt): Likewise.
19708 (construct_init_block): Likewise.
19709 * cfghooks.c (verify_flow_info): Likewise.
19710 * cfgloopmanip.c (remove_path): Likewise.
19711 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
19712 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
19713 * combine.c (simplify_if_then_else): Likewise.
19714 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
19715 (choose_basereg): Likewise.
19716 (ix86_expand_prologue): Likewise.
19717 (ix86_preferred_output_reload_class): Likewise.
19718 * cselib.c (cselib_record_sets): Likewise.
19719 * df-scan.c (df_scan_alloc): Likewise.
19720 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
19721 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
19722 * emit-rtl.c (try_split): Likewise.
19723 * graphite-scop-detection.c (assign_parameter_index_in_region):
19725 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
19726 * ira-color.c (setup_profitable_hard_regs): Likewise.
19727 * ira.c (rtx_moveable_p): Likewise.
19728 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
19729 * read-rtl.c (read_subst_mapping): Likewise.
19730 * regrename.c (scan_rtx): Likewise.
19731 * reorg.c (fill_slots_from_thread): Likewise.
19732 * tree-inline.c (tree_function_versioning): Likewise.
19733 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
19734 * tree-ssa-sink.c (statement_sink_location): Likewise.
19735 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
19736 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
19737 (vect_create_epilog_for_reduction): Likewise.
19738 * tree.c (build_nonstandard_integer_type): Likewise.
19740 2019-06-27 Richard Biener <rguenther@suse.de>
19742 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
19744 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
19746 PR tree-optimization/89772
19747 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
19748 out-of-bound accesses checking.
19750 2019-06-27 Martin Liska <mliska@suse.cz>
19752 PR tree-optimization/91014
19753 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
19754 when LHS is NULL_TREE.
19756 2019-06-27 Martin Liska <mliska@suse.cz>
19758 * symbol-summary.h (traverse): Pass
19759 argument a to the call of callback.
19760 (gt_ggc_mx): Mark arguments as unused.
19761 (gt_pch_nx): Likewise.
19763 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
19766 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
19769 2019-06-26 Jeff Law <law@redhat.com>
19771 PR tree-optimization/90883
19772 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
19773 (delete_dead_or_redundant_assignment): Likewise.
19775 PR tree-optimization/90883
19776 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
19777 * tree-ssa-dse.c: Update various comments to distinguish between
19778 dead and redundant stores.
19779 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
19780 (dse_optimize_redundant_stores): New function.
19781 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
19782 Distinguish between dead and redundant calls in dump output. All
19784 (delete_dead_or_redundant_assignment): Similarly for assignments.
19785 (dse_optimize_stmt): Handle _CHK variants. For statements which
19786 store 0 into multiple memory locations, try to prove a subsequent
19787 store is redundant.
19789 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
19792 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
19793 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
19795 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
19797 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
19798 (branch_islands): New extern.
19799 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
19800 * config/rs6000/rs6000.c: .. here.
19802 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
19804 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
19805 (powerpc*-*-*) ... to here.
19807 2019-06-26 Jeff Law <law@redhat.com>
19809 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
19810 memcpy, memmove and memset builtins.
19811 (maybe_trim_memstar_call): Likewise.
19813 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
19815 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
19817 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
19819 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
19821 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
19823 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
19825 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
19827 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
19830 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
19832 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
19834 2019-06-26 Richard Biener <rguenther@suse.de>
19837 * tree-inline.c (remap_ssa_name): Copy SSA range info.
19839 2019-06-26 Richard Biener <rguenther@suse.de>
19841 * lto-streamer.h (lto_bitmap_alloc): Remove.
19842 (lto_bitmap_free): Likewise.
19843 * lto-streamer.c (lto_bitmap_alloc): Remove.
19844 (lto_bitmap_free): Likewise.
19845 (lto_obstack): Likewise.
19846 (lto_obstack_initialized): Likewise.
19847 * lto-streamer-out.c (lto_output): Use own obstack for local
19848 bitmap, free it consistently.
19850 2019-06-26 Jakub Jelinek <jakub@redhat.com>
19853 * config/i386/sse.md
19854 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
19855 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
19856 insns if operands[2] is misaligned_operand.
19858 2019-06-26 Li Jia He <helijia@linux.ibm.com>
19860 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
19862 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
19865 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
19867 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
19869 2019-06-26 Martin Liska <mliska@suse.cz>
19871 PR tree-optimization/90973
19872 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
19873 epilogue_cost_vec instead of prologue_cost_vec for
19876 2019-06-26 Martin Liska <mliska@suse.cz>
19878 * bb-reorder.c (connect_better_edge_p): Add missing else
19879 statement in the middle of if-else statements.
19881 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
19882 H.J. Lu <hongjiu.lu@intel.com>
19883 Olga Makhotina <olga.makhotina@intel.com>
19885 * common/config/i386/i386-common.c
19886 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
19887 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
19888 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
19889 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
19890 (ix86_handle_option): Handle -mavx512vp2intersect.
19891 * config/i386/avx512vp2intersectintrin.h: New.
19892 * config/i386/avx512vp2intersectvlintrin.h: New.
19893 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
19894 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
19895 AVX512VP2INTERSECT.
19896 * config/i386/i386-builtin-types.def: Add new types.
19897 * config/i386/i386-builtin.def: Add new builtins.
19898 * config/i386/i386-builtins.c: (enum processor_features): Add
19899 F_AVX512VP2INTERSECT.
19900 (static const _isa_names_table isa_names_table): Ditto.
19901 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19902 __AVX512VP2INTERSECT__.
19903 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
19904 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
19905 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
19906 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
19907 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
19908 * config/i386/i386-options.c (ix86_target_string): Add
19909 -mavx512vp2intersect.
19910 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
19911 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
19912 P2HImode and P2QImode.
19913 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
19914 number for P2QImode and P2HImode.
19915 (ix86_regmode_natural_size): New function.
19916 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
19917 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
19918 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
19919 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
19920 * config/i386/i386.opt: Add -mavx512vp2intersect.
19921 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
19922 avx512vp2intersectvlintrin.h.
19923 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
19924 (define_mode_iterator VI48_AVX512VP2VL): New.
19925 (avx512vp2intersect_2intersect<mode>,
19926 avx512vp2intersect_2intersectv16si): New define_insn patterns.
19927 * config.gcc: Add avx512vp2intersectvlintrin.h and
19928 avx512vp2intersectintrin.h to extra_headers.
19929 * doc/invoke.texi: Document -mavx512vp2intersect.
19931 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
19933 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
19935 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
19937 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
19938 savres_routine_syms, savres_routine_name, morestack_ref,
19939 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
19940 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
19941 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
19942 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
19943 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
19944 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
19945 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
19946 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
19947 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
19948 get_stack_clash_protection_probe_interval,
19949 get_stack_clash_protection_guard_size,
19950 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
19951 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
19952 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
19953 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
19954 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
19955 gen_frame_mem_offset, rs6000_savres_routine_name,
19956 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
19957 ptr_regno_for_savres, rs6000_emit_savres_rtx,
19958 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
19959 rs6000_global_entry_point_prologue_needed_p,
19960 rs6000_get_separate_components, rs6000_components_for_bb,
19961 rs6000_disqualify_components, rs6000_emit_prologue_components,
19962 rs6000_emit_epilogue_components, rs6000_set_handled_components,
19963 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
19964 rs6000_output_savres_externs, rs6000_output_function_prologue,
19965 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
19966 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
19967 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
19968 rs6000_output_function_epilogue, gen_add3_const,
19969 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
19970 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
19972 (machine_function): Moved to rs6000.h.
19973 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
19975 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
19976 savres_routine_syms, savres_routine_name, morestack_ref,
19977 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
19978 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
19979 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
19980 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
19981 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
19982 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
19983 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
19984 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
19985 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
19986 get_stack_clash_protection_probe_interval,
19987 get_stack_clash_protection_guard_size,
19988 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
19989 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
19990 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
19991 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
19992 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
19993 gen_frame_mem_offset, rs6000_savres_routine_name,
19994 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
19995 ptr_regno_for_savres, rs6000_emit_savres_rtx,
19996 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
19997 rs6000_global_entry_point_prologue_needed_p,
19998 rs6000_get_separate_components, rs6000_components_for_bb,
19999 rs6000_disqualify_components, rs6000_emit_prologue_components,
20000 rs6000_emit_epilogue_components, rs6000_set_handled_components,
20001 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
20002 rs6000_output_savres_externs, rs6000_output_function_prologue,
20003 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
20004 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
20005 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
20006 rs6000_output_function_epilogue, gen_add3_const,
20007 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
20008 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
20009 to here from rs6000.c.
20010 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
20011 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
20012 quad_address_offset_p) Moved to here from rs6000.c.
20013 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
20014 * config/config.gcc: Add new source file rs6000-logue.c to garbage
20017 2019-06-25 Martin Liska <mliska@suse.cz>
20019 * hash-table.c (hashtab_chk_error): Move here from ...
20020 * hash-table.h (hashtab_chk_error): ... here.
20022 2019-06-25 Martin Liska <mliska@suse.cz>
20024 PR tree-optimization/90978
20025 * df-scan.c (df_update_entry_block_defs): Remove dead else
20027 (df_update_exit_block_uses): Likewise.
20029 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
20030 Andrew Stubbs <ams@codesourcery.com>
20032 * config.gcc (thread_file): Set to gcn for AMD GCN.
20033 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
20034 (TARGET_EMUTLS_VAR_INIT): New hook.
20036 2019-06-25 Martin Jambor <mjambor@suse.cz>
20039 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
20041 2019-06-25 Richard Biener <rguenther@suse.de>
20043 PR tree-optimization/90930
20044 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
20045 into parallel form in the last pass instance.
20047 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
20049 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
20050 (arc_legitimize_pic_address): Simplify and cleanup the function.
20051 (SYMBOLIC_CONST): Remove.
20052 (prepare_pic_move): Likewise.
20053 (prepare_move_operands): Handle complex mov cases here.
20054 (arc_legitimize_address_0): Remove call to
20055 arc_legitimize_pic_address.
20056 (arc_legitimize_address): Remove call to
20057 arc_legitimize_tls_address.
20058 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
20059 (movhi_insn): Likewise.
20061 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20063 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
20065 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
20066 format of "__intN" types for UINTMAX_TYPE.
20067 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
20068 format of "__intN" types for SIZETYPE.
20069 * tree.c (build_common_tree_nodes): Accept "__intN__"
20070 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
20071 * doc/invoke.texi: Document that __intN__ disables pedantic
20074 2019-06-25 Jan Hubicka <jh@suse.cz>
20076 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
20077 base2_alias_set is non-zero before doing TBAA based disambiguation.
20079 2019-06-25 Martin Liska <mliska@suse.cz>
20081 PR tree-optimization/90973
20082 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
20083 of prologue and epilogue.
20085 2019-06-24 Jan Hubicka <jh@suse.cz>
20087 * ipa-utils.h (type_with_linkage_p): Verify that type is
20089 (odr_type_p): Remove extra return.
20090 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
20091 hash STRING_FLAG only for arrays and integers.
20092 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
20093 Update analogously.
20094 * tree-streamer-out.c (pack_ts_type_common_value_fields):
20096 * print-tree.c (print_node): Print cxx-odr-p
20098 * tree.c (need_assembler_name_p): Also check that type
20100 (verify_type_variant): Update verification of SRING_FLAG;
20101 also check CXX_ODR_P.
20102 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
20103 (TYPE_STRING_FLAG): Use it.
20104 (TYPE_CXX_ODR_P): New macro.
20105 * dwarf2out.c (gen_array_type_die): First check that type
20106 is an array and then test string flag.
20108 2019-06-24 Richard Biener <rguenther@suse.de>
20110 PR tree-optimization/90972
20111 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
20112 in common code, dealing with STRING_CST properly.
20114 2019-06-24 Richard Biener <rguenther@suse.de>
20116 PR tree-optimization/90930
20117 PR tree-optimization/90316
20118 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
20119 decrement of limit.
20121 2019-06-24 Martin Sebor <msebor@redhat.com>
20123 * tree-pretty-print.h: Remove unnecessary punctuation characters
20125 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
20127 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
20129 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
20130 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
20131 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
20133 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
20135 * config/rs6000/darwin.h: Handle GCC target pragma.
20137 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
20139 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
20141 2019-06-22 Jeff Law <law@redhat.com>
20143 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20145 2019-06-22 Jan Hubicka <jh@suse.cz>
20147 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
20148 give up on bitfields; continue searching for different refs
20151 2019-06-21 Jakub Jelinek <jakub@redhat.com>
20153 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
20154 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
20155 containing the offset as possible simd lane access. Look through
20156 widening conversion. Move the
20157 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
20159 2019-06-21 Richard Biener <rguenther@suse.de>
20161 PR tree-optimization/90930
20162 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
20163 flag on new stmts to avoid re-processing them.
20165 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
20167 PR c++/90875 - added -Wswitch-outside-range option
20168 * doc/invoke.texi (Wswitch-outside-range): Document.
20170 2019-06-21 Jeff Law <law@redhat.com>
20172 PR tree-optimization/90949
20173 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
20174 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
20176 2019-06-21 Richard Biener <rguenther@suse.de>
20179 * dwarf2out.c (prune_unused_types_walk): Always consider
20180 function-local extern declarations as used.
20182 2019-06-21 Richard Biener <rguenther@suse.de>
20184 PR tree-optimization/90913
20185 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
20186 the scalar variant of if-conversion versioning.
20188 2019-06-21 Jakub Jelinek <jakub@redhat.com>
20190 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
20191 create another "omp scan inscan exclusive" array if
20192 !ctx->scan_inclusive.
20193 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
20194 (lower_omp_scan): Likewise.
20195 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
20196 2-bit bitfield for simd_lane_access_p member.
20197 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
20198 aux == (void *)-4 as simd lane access.
20199 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
20200 comment with permutations to show the canonical permutation order.
20201 (vectorizable_scan_store): Handle exclusive scan.
20202 (vectorizable_store): Call vectorizable_scan_store even for
20203 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
20205 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
20206 "omp simd array" arrays with one byte elements.
20208 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
20210 * config/alpha/alpha.md (@unaligned_store<mode>):
20211 Rename from unaligned_store<mode>.
20212 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
20213 * config/alpha/sync.md (@load_locked_<mode>): Rename
20214 from load_locked_<mode>.
20215 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
20216 (@atomic_compare_and_swap<mode>_1): Rename
20217 from atomic_compare_and_swap<mode>_1.
20218 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
20219 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
20220 Use gen_reload_in_aligned and gen_unaligned_store.
20221 (emit_load_locked): Remove.
20222 (emit_store_conditional): Ditto.
20223 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
20224 (alpha_split_compare_and_swap): Ditto.
20225 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
20226 (alpha_split_compare_and_swap_12): Use gen_load_locked
20227 and gen_store_conditional.
20228 (alpha_split_atomic_exchange): Ditto.
20229 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
20230 (alpha_split_atomic_exchange_12): Use gen_load_locked
20231 and gen_store_conditional.
20233 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
20235 * config/aarch64/aarch64-errata.h: New file.
20236 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
20237 (CA53_ERR_843419_SPEC): Delete.
20238 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
20239 * config/aarch64/aarch64-linux.h: Likewise.
20240 * config/aarch64/aarch64-netbsd.h: Likewise.
20241 * config/aarch64/aarch64-freebsd.h: Likewise.
20243 2019-06-20 Marek Polacek <polacek@redhat.com>
20245 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
20247 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
20249 * config/rs6000/rs6000.md (isa attribute): Add support for
20250 for a future processor.
20252 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
20255 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
20256 standard scalar operation pattern for V2DF.
20257 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
20258 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
20259 (*ieee_<ieee_maxmin><mode>3): Likewise.
20260 (vec_setv2df_0): Likewise.
20262 2019-06-20 Jan Hubicka <jh@suse.cz>
20264 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
20265 parameter; it has no use in gimple memory model.
20266 (indirect_ref_may_alias_decl_p): Update.
20268 2019-06-20 Martin Liska <mliska@suse.cz>
20270 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
20273 2019-06-20 Jakub Jelinek <jakub@redhat.com>
20275 * tree-vect-stmts.c (enum scan_store_kind): New type.
20276 (scan_store_can_perm_p): Change last argument from int * to
20277 vec<enum scan_store_kind> *, record precisely which permutations
20278 need whole vector left shift or that plus VEC_COND_EXPR.
20279 (vectorizable_scan_store): Adjust caller, use whole vector left shift
20280 and additional VEC_COND_EXPR only for those iterations that need it.
20282 2019-06-20 Alexandre Oliva <oliva@adacore.com>
20284 * config.gcc: Fix ARM --with-fpu checking and error message.
20286 2019-06-19 Marek Polacek <polacek@redhat.com>
20288 PR c++/60364 - noreturn after first decl not diagnosed.
20289 * attribs.c (get_attribute_namespace): No longer static.
20290 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
20292 (attr_noreturn_exclusions): Make it extern.
20293 * attribs.h (get_attribute_namespace): Declare.
20294 * tree-inline.c (function_attribute_inlinable_p): Use
20295 get_attribute_name.
20297 2019-06-19 Martin Sebor <msebor@redhat.com>
20299 PR tree-optimization/90626
20300 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
20302 PR tree-optimization/90626
20303 * tree-ssa-strlen.c (strxcmp_unequal): New function.
20304 (handle_builtin_string_cmp): Call it.
20306 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
20308 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
20309 and DARWIN_NOPIE_SPEC.
20310 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
20311 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
20312 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
20313 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
20314 (DARWIN_EXPORT_DYNAMIC): Delete.
20315 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
20316 and pie options processing to darwin.h.
20317 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
20319 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
20321 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
20322 in computing the number of options to be moved.
20324 2019-06-19 Maya Rashish <coypu@sdf.org>
20326 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
20327 (CLEAR_INSN_CACHE) Use it.
20329 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
20331 * config/i386/i386.md (cmpstrnsi): Remove dead code.
20333 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
20335 PR middle-end/84521
20336 * builtins.c (expand_builtin_setjmp_setup): Save
20337 hard_frame_pointer_rtx.
20338 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
20340 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
20342 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
20344 (remove_reg_equal_offset_note): Remove unused function.
20345 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
20347 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20348 (arc_builtin_setjmp_frame_value): Remove function.
20349 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20350 (avr_builtin_setjmp_frame_value): Remove function.
20351 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20352 (ix86_builtin_setjmp_frame_value): Remove function.
20353 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
20354 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20355 (sparc_builtin_setjmp_frame_value): Remove function.
20356 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20357 (vax_builtin_setjmp_frame_value): Remove function.
20358 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
20359 pointer if has_nonlocal_label.
20361 2019-06-19 Jakub Jelinek <jakub@redhat.com>
20363 * doc/md.texi: Document vec_shl_<mode> pattern.
20364 * optabs.def (vec_shl_optab): New optab.
20365 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
20366 argument, if == vec_shl_optab, check for left whole vector shift
20367 pattern rather than right shift.
20368 (expand_vec_perm_const): Add vec_shl_optab support.
20369 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
20371 * tree-vect-generic.c (lower_vec_perm): Support permutations which
20372 can be handled by vec_shl_optab.
20373 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
20374 (check_scan_store): Use it.
20375 (vectorizable_scan_store): If target can't do normal permutations,
20376 try to use whole vector left shifts and if needed a VEC_COND_EXPR
20378 * config/i386/sse.md (vec_shl_<mode>): New expander.
20380 * omp-low.c (lower_rec_input_clauses): Handle references properly
20382 (lower_omp_scan): Likewise.
20384 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20386 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
20387 mem_mode is BLKmode.
20389 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
20392 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
20393 pointer adjustment for the case of no callee-saved registers and
20394 stack frame bigger than 128 bytes.
20396 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
20398 PR middle-end/90862
20399 * omp-low.c (check_omp_nesting_restrictions): Handle
20400 GF_OMP_TARGET_KIND_OACC_DECLARE.
20402 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
20404 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
20405 (@add<mode>3_carry): Rename from add<mode>3_carry.
20406 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
20407 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
20408 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
20409 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
20410 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
20411 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
20412 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
20413 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
20414 (cmpstrnsi): Use gen_cmp_1.
20415 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
20416 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
20417 (@umonitor_<mode>): Rename from umonitor_<mode>.
20418 * config/i386/i386-expand.c (ix86_expand_copysign):
20419 Use gen_copysign3_const and gen_copysign3_var.
20420 (ix86_expand_xorsign): Use gen_xorsign3_1.
20421 (ix86_expand_branch): Use gen_sub3_carry_ccc,
20422 gen_sub3_carry_ccgz and gen_cmp1.
20423 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
20424 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
20425 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
20426 (ix86_split_lshr): Ditto.
20427 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
20429 2019-06-18 Jason Merrill <jason@redhat.com>
20431 * tree.c (build_constructor): Add MEM_STAT_DECL.
20433 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20435 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
20436 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
20437 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
20438 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
20439 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
20440 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
20441 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
20442 Use CC_NZC instead of CC.
20443 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
20444 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
20445 (aarch64_print_operand): Handle E_CC_NZCmode.
20446 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
20447 of gen_set_clobber_cc.
20449 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20451 * config/aarch64/aarch64-sve.md: Tabify file.
20453 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20455 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
20456 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
20457 * config/aarch64/aarch64-sve.md: Use it.
20459 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20461 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
20462 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
20463 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
20464 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
20465 (aarch64_expand_sve_vec_cmp_int): Use it.
20466 (aarch64_expand_sve_vec_cmp_float): Likewise.
20467 * config/aarch64/aarch64-sve.md: Likewise throughout.
20469 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20470 Kugan Vivekanandarajah <kuganv@linaro.org>
20472 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
20473 (*cond_<optab><mode>_z): Fold into...
20474 (*cond_<optab><mode>_any): ...here. Also handle cases in which
20475 operand 4 can be tied to operand 0 (either inherently or via RA).
20477 2019-06-18 Richard Biener <rguenther@suse.de>
20480 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
20481 as if optimized away.
20483 2019-06-18 Tom de Vries <tdevries@suse.de>
20485 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
20486 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
20487 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
20489 (define_insn "@set_softstack_<mode>"): ... this.
20490 (define_insn "omp_simt_enter_<mode>"): Rename to ...
20491 (define_insn "@omp_simt_enter_<mode>"): ... this.
20492 (define_insn "omp_simt_exit_<mode>"): Rename to ...
20493 (define_insn "@omp_simt_exit_<mode>"): ... this.
20495 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20497 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
20498 vf parameter. Restore the previous iv step of nscalars_step,
20499 but give it iv_type rather than compare_type. Tweak code order
20500 to match the comments.
20501 (vect_set_loop_condition_masked): Update accordingly.
20502 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
20503 for iv_precision. Tweak comment formatting.
20505 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
20507 * config/darwin.c: Strip trailing whitespace.
20509 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
20511 * config/darwin.c (darwin_emit_unwind_label): New default to false.
20512 (darwin_override_options): Set darwin_emit_unwind_label as needed.
20514 2019-06-18 Martin Jambor <mjambor@suse.cz>
20517 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
20518 caller does not have flag_ipa_cp set.
20520 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20522 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
20523 from "*fold_left_plus_<mode>", updated operands order.
20524 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
20525 * internal-fn.c (mask_fold_left_direct): New define.
20526 (expand_mask_fold_left_optab_fn): Likewise.
20527 (direct_mask_fold_left_optab_supported_p): Likewise.
20528 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
20529 * optabs.def (mask_fold_left_plus_optab): New optab.
20530 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
20531 masked internal_fn for a reduction ifn.
20532 (vectorize_fold_left_reduction): Add support for masking reductions.
20534 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
20536 PR middle-end/80791
20537 * target.def (predict_doloop_p): New hook.
20538 * targhooks.h (default_predict_doloop_p): New declaration.
20539 * targhooks.c (default_predict_doloop_p): New function.
20540 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
20541 * doc/tm.texi: Regenerate.
20542 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
20543 (TARGET_PREDICT_DOLOOP_P): New macro.
20544 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
20546 2019-06-17 Jakub Jelinek <jakub@redhat.com>
20548 * omp-low.c (struct omp_context): Add scan_inclusive field.
20549 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
20551 (struct omplow_simd_context): Add lastlane member.
20552 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
20553 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
20555 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
20556 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
20557 (lower_omp_scan): New function.
20558 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
20559 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
20560 check 3rd argument if present rather than 2nd.
20561 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
20562 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
20564 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
20565 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
20567 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
20568 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
20569 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
20571 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
20572 IFN_GOMP_SIMD_LANE argument.
20573 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
20574 encoded ->aux value.
20575 * tree-vect-stmts.c: Include attribs.h.
20576 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
20577 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
20579 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
20580 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
20582 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
20585 * config/i386/i386.md (*nabstf2_1): New insn pattern.
20586 (*nabs<mode>2_1): Ditto.
20587 (nabs sse-reg splitter): New splitter.
20588 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
20590 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
20592 PR bootstrap/90873.
20593 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
20596 2019-06-17 Tom de Vries <tdevries@suse.de>
20598 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
20599 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
20600 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
20602 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
20604 (define_insn "omp_simt_enter_insn"): Rename to ...
20605 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
20606 match_operand 0, 1 and 2, as well as the unspec_volatile result.
20607 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
20608 gen_omp_simt_enter_si.
20609 (define_expand "omp_simt_exit"): New.
20610 (define_insn "omp_simt_exit"): Rename to ...
20611 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
20614 2019-06-17 Matthew Green <mrg@eterna.com.au>
20615 Maya Rashish <coypu@sdf.org>
20617 * config.gcc (aarch64*-*-netbsd*): New target.
20618 * config/aarch64/aarch64-netbsd.h: New file.
20619 * config/aarch64/t-aarch64-netbsd: Likewise.
20621 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
20623 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
20624 the access path from base to first VIEW_CONVERT_EXPR or
20627 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
20629 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
20630 access path on BIT_FIELD_REFs.
20632 2019-06-17 Martin Liska <mliska@suse.cz>
20635 * ipa-utils.h (odr_type_p): Remove dead code.
20637 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20639 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
20640 alternative Solaris 11.4 format.
20641 * configure: Regenerate.
20643 2019-06-17 Tom de Vries <tdevries@suse.de>
20645 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
20646 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
20648 (define_insn "call_value_insn"): Rename to ...
20649 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
20651 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
20654 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
20656 PR middle-end/64242
20657 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
20658 frame clobbers and schedule block.
20659 (builtin_longjmp): Likewise.
20661 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20663 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
20664 describe how to perform MSPABI compliant 64-bit shift.
20665 * config/msp430/msp430.md (ashldi3): New define_expand.
20666 (ashrdi3): New define_expand.
20667 (lshrdi3): New define_expand.
20669 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20671 * doc/sourcebuild.texi: Document new effective target keyword
20674 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
20676 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
20677 indirect_refs_may_alias_p): Revert accidental commits.
20679 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
20680 at the end of structures.
20682 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
20684 * config/darwin.c (machopic_indirect_call_target): Use renamed
20685 darwin_picsymbol_stubs to decide on output.
20686 (darwin_override_options): Handle darwin_picsymbol_stubs.
20687 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
20688 (LD64_VERSION): Revise default.
20689 * config/darwin.opt: (mpic-symbol-stubs): New option.
20690 (darwin_picsymbol_stubs): New variable.
20691 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
20692 rename to TARGET_MACHO_PICSYM_STUBS.
20693 * config/i386/i386.c (output_pic_addr_const): Likewise.
20694 * config/i386/i386.h Likewise.
20695 * config/rs6000/darwin.h: Likewise.
20696 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
20697 darwin_picsymbol_stubs.
20699 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
20701 * config/darwin.opt (prebind, noprebind, seglinkedit,
20702 noseglinkedit): Add RejectNegative.
20704 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
20706 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
20707 in my previous patch.
20709 2019-06-16 Tom de Vries <tdevries@suse.de>
20711 PR tree-optimization/89376
20712 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
20714 2019-06-15 Maya Rashish <coypu@sdf.org>
20716 * doc/invoke.texi (Spec Files): Update location of the
20719 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
20721 * doc/extend.texi (Common Function Attributes): Clarify
20722 no_sanitize. Fix grammar.
20724 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
20726 * tree-ssa-alias.c (alias_stats): Add
20727 nonoverlapping_component_refs_p_may_alias,
20728 nonoverlapping_component_refs_p_no_alias,
20729 nonoverlapping_component_refs_of_decl_p_may_alias,
20730 nonoverlapping_component_refs_of_decl_p_no_alias.
20731 (dump_alias_stats): Dump them.
20732 (nonoverlapping_component_refs_of_decl_p): Add stats.
20733 (nonoverlapping_component_refs_p): Add stats; do not stop on first
20736 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
20738 * config/i386/i386.md (and<mode>3): Generate zero-extends for
20739 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
20741 (*anddi3_doubleword): Split before reload. Merge with
20742 anddi->zext pre-reload splitter.
20743 (*andndi3_doubleword): Split before reload.
20744 (*<code>di3_doubleword): Ditto.
20745 (*one_cmpldi2_doubleword): Ditto.
20747 2019-06-15 Jakub Jelinek <jakub@redhat.com>
20749 PR middle-end/90779
20750 * gimplify.c: Include omp-offload.h and context.h.
20751 (gimplify_bind_expr): Add "omp declare target" attributes
20752 to static block scope variables inside of target region or target
20755 2019-06-15 Tom de Vries <tdevries@suse.de>
20757 PR tree-optimization/90009
20758 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
20759 Return NULL if bb contains IFN_UNIQUE.
20761 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
20763 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
20764 (un): New define_mode_attr.
20765 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
20766 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
20767 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
20769 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
20771 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
20773 * config/darwin.opt: Add RejectNegative where needed, reorder
20774 and add minimal functional descriptions.
20776 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
20778 PR rtl-optimization/90765
20779 * calls.c (update_stack_alignment_for_call): New function.
20780 (expand_call): Call update_stack_alignment_for_call when
20781 outgoing parameter is passed in the stack.
20782 (emit_library_call_value_1): Likewise.
20783 * function.c (locate_and_pad_parm): Don't update
20784 stack_alignment_needed and preferred_stack_boundary.
20786 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
20789 * config/i386/i386-features.c
20790 (dimode_scalar_chain::compute_convert_gain): Replace
20791 mmxsse_to_integer with sse_to_integer.
20792 * config/i386/i386.c (ix86_register_move_cost): Verify that
20793 moves between MMX and non-MMX units require secondary memory.
20794 Correct costs of moves between SSE and integer units.
20795 * config/i386/i386.h (processor_costs): Rename cost of moving
20796 SSE register to integer to sse_to_integer. Rename cost of
20798 2019-06-14 Matt Thomas <matt@3am-software.com>
20799 Matthew Green <mrg@eterna.com.au>
20800 Nick Hudson <skrll@netbsd.org>
20801 Maya Rashish <coypu@sdf.org>
20802 Richard Earnshaw <rearnsha@arm.com>
20804 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
20805 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
20806 * config/arm/netbsd-eabi.h: New file.
20807 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
20809 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
20810 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
20811 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
20812 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
20814 2019-06-14 Richard Biener <rguenther@suse.de>
20816 * tree-loop-distribution.c (classify_partition): Return
20817 whether a reduction appeared in all partitions and do not
20818 stop builtin detection because of this.
20819 (distribute_loop): Sort a non-builtin partition last if
20820 there's a reduction in all partitions and make sure the
20821 partition prevailing as last is not a builtin.
20823 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
20826 * ipa-prop.c (add_to_agg_contents_list): New function.
20827 (clobber_by_agg_contents_list_p): Likewise.
20828 (extract_mem_content): Likewise.
20829 (get_place_in_agg_contents_list): Delete.
20830 (determine_known_aggregate_parts): Renamed from
20831 determine_locally_known_aggregate_parts. New parameter
20834 2019-06-13 Martin Sebor <msebor@redhat.com>
20836 PR tree-optimization/90662
20837 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
20840 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
20843 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
20844 dbase is not TARGET_MEM_REF.
20846 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
20848 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
20850 (and<mode>3): Use gen_extend_insn instead of indirect functions.
20851 Do not generate DImode extends for 32bit targets.
20852 (and->zext post-reload splitter): Use gen_extend_insn
20853 instead of indirect functions.
20854 (anddi->zext pre-reload splitter): New.
20855 (*zext<mode>_doubleword_and): Remove.
20856 (*zext<mode>_doubleword): Ditto.
20857 (*zextsi_doubleword): Dittto.
20859 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
20861 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
20862 Use gen_sub3_insn instead of indirect function.
20863 (ix86_expand_ashl_const): Use gen_add2_insn instead of
20865 (ix86_adjust_counter): Ditto.
20867 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
20868 Lijia He <helijia@linux.ibm.com>
20870 PR tree-optimization/77820
20871 * tree-ssa-threadedge.c
20872 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
20874 (thread_across_edge): Add call to
20875 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
20877 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
20879 * config/darwin-driver.c (validate_macosx_version_min): New.
20880 (darwin_default_min_version): Cleanup and validate supplied version.
20881 (darwin_driver_init): Likewise and push cleaned version into opts.
20883 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
20885 PR tree-optimization/90869
20886 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
20887 converts in MEM_REF referencing decl rather than view converts
20888 from decl type to MEM_REF type.
20890 2019-06-13 Richard Biener <rguenther@suse.de>
20892 PR tree-optimization/90856
20893 * tree-sra.c (build_ref_for_model): Only use
20894 build_reconstructed_reference when address-spaces are the same.
20896 2019-06-13 Jakub Jelinek <jakub@redhat.com>
20898 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
20899 wrap ei variable name in the declaration in ()s.
20900 (nvptx_single): Actually use mode_label variable. Formatting fix.
20902 2019-06-13 Richard Biener <rguenther@suse.de>
20904 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
20905 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
20906 also return the condition stmt.
20907 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
20908 loop we can version and version that, reusing the loop version
20909 created by if-conversion instead of versioning again.
20911 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
20913 * gimple-loop-versioning.cc (prune_loop_conditions): Use
20915 * tree-vrp (value_range_base::may_contain_p): Call into
20916 value_inside_range.
20917 (value_inside_range): Make private inside value_range_base class.
20918 Take min/max from *this.
20919 (range_includes_p): Remove.
20920 * tree-vrp.h (value_range_base): Add value_inside_range.
20921 (range_includes_p): Remove.
20922 (range_includes_zero_p): Call may_contain_p.
20923 * vr-values.c (compare_range_with_value): Same.
20925 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
20927 * doc/extend.texi (ARC Function Attributes): Update info.
20929 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
20931 PR tree-optimization/89713
20932 * doc/invoke.texi (-ffinite-loops): Document new option.
20933 * common.opt (-ffinite-loops): New option.
20934 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
20935 IFN_GOACC_LOOP calls as necessary.
20936 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
20938 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
20939 IFN_GOACC_LOOP call is not used.
20940 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
20942 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20945 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
20946 compare_type is not with Pmode size, we will create an IV with
20947 Pmode size with truncated use (i.e. converted to the correct type).
20948 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
20949 (vect_iv_limit_for_full_masking): New. Factored out of
20950 vect_set_loop_condition_masked.
20951 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
20952 (vect_iv_limit_for_full_masking): Declare.
20954 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20957 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
20958 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
20959 (get_alias_ptr_type_for_ptr_address): Likewise.
20960 (add_iv_candidate_for_use): Add scaled index candidate if useful.
20961 * tree-ssa-address.c (preferred_mem_scale_factor): New.
20962 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
20965 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20967 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
20969 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
20971 * common/config/pru/pru-common.c: New file.
20972 * config.gcc: Add PRU target.
20973 * config/pru/alu-zext.md: New file.
20974 * config/pru/constraints.md: New file.
20975 * config/pru/predicates.md: New file.
20976 * config/pru/pru-opts.h: New file.
20977 * config/pru/pru-passes.c: New file.
20978 * config/pru/pru-pragma.c: New file.
20979 * config/pru/pru-protos.h: New file.
20980 * config/pru/pru.c: New file.
20981 * config/pru/pru.h: New file.
20982 * config/pru/pru.md: New file.
20983 * config/pru/pru.opt: New file.
20984 * config/pru/t-pru: New file.
20985 * doc/extend.texi: Document PRU pragmas.
20986 * doc/invoke.texi: Document PRU-specific options.
20987 * doc/md.texi: Document PRU asm constraints.
20989 2019-06-12 Martin Sebor <msebor@redhat.com>
20991 PR middle-end/90676
20992 * tree-pretty-print.c (dump_mem_ref): New function. Include
20993 MEM_REF type in output when different size than operand.
20994 (dump_generic_node): Move code to dump_mem_ref and call it.
20996 2019-06-12 Martin Sebor <msebor@redhat.com>
20998 PR tree-optimization/90662
20999 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
21002 2019-06-12 Tom de Vries <tdevries@suse.de>
21004 PR tree-optimization/90009
21005 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
21007 2019-06-12 Martin Liska <mliska@suse.cz>
21009 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
21011 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
21012 * mem-stats.h (mem_alloc_description::mem_alloc_description):
21013 Do not sanitize created maps.
21015 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
21017 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
21018 value_range::singleton_p.
21019 * tree-vrp.c (value_range_constant_singleton): Remove.
21020 * tree-vrp.h (value_range_constant_singleton): Remove.
21021 * vr-values.c (vr_values::singleton): Use
21022 value_range::singleton_p.
21024 2019-06-12 Jakub Jelinek <jakub@redhat.com>
21027 * cfgexpand.c (align_local_variable): Add really_expand argument,
21028 don't SET_DECL_ALIGN if it is false.
21029 (add_stack_var): Add really_expand argument, pass it through to
21030 align_local_variable.
21031 (expand_one_stack_var_1): Pass true as really_expand to
21032 align_local_variable.
21033 (expand_one_ssa_partition): Pass true as really_expand to
21035 (expand_one_var): Pass really_expand through to add_stack_var.
21037 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
21039 * config/arm/iterators.md (VABAL): New int iterator.
21040 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
21041 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
21042 UNSPEC_VABAL_U values.
21044 2019-06-12 Martin Liska <mliska@suse.cz>
21046 * value-prof.c (stream_out_histogram_value): Only first value
21049 2019-06-12 Jakub Jelinek <jakub@redhat.com>
21052 * symtab.c (symtab_node::set_section): Allow being called on aliases
21053 as long as they aren't analyzed yet.
21055 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
21057 * config/mips/mips.c (mips_final_postscan_insn): Modify call
21058 to `mips_set_text_contents_type' to indicate whether a
21059 non-debug insn follows.
21061 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
21063 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
21064 enabling -mpcrel by default.
21065 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
21066 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
21067 that the test against -mcpu=future is done first. Then test if
21068 -mprefixed-addr is on for -mpcrel.
21069 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
21071 2019-06-11 Jakub Jelinek <jakub@redhat.com>
21074 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
21075 instead of and.u%d.
21077 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
21079 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
21081 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
21083 PR c++/90449 - add -Winaccessible-base option.
21084 * doc/invoke.texi (Winaccessible-base): Document.
21086 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
21088 PR tree-optimization/62041
21089 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
21091 2019-06-11 Jason Merrill <jason@redhat.com>
21093 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
21094 * tree.c (get_tree_code_name): Likewise.
21095 * print-tree.c (print_node): Only briefly print a node with an
21098 2019-06-11 Jakub Jelinek <jakub@redhat.com>
21101 * trans-mem.c (tm_memopt_compute_available): Add assertion
21102 that blocks is not empty. Formatting fix.
21104 2019-06-11 Martin Liska <mliska@suse.cz>
21107 * hash-table.h: Extend create_gcc, add one parameter
21108 that is passed into hash_table::hash_table.
21110 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
21112 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
21114 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
21115 Emit clobber also for non-sse operations.
21116 (ix86_split_fp_absneg_operator): New function.
21117 * config/i386/i386.md (SSEMODEF): New mode iterator.
21118 (ssevecmodef): New mode attribute.
21119 (<code>tf2): Use absneg code iterator.
21120 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
21121 Add three-operand AVX alternatives.
21122 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
21123 Use absneg code iterator and X87MODEF mode iterator.
21124 (absneg fp_reg non-sse splitter): Call absneg code iterator
21125 and X87MODEF mode iterator.
21126 (absneg general_reg non-sse splitter): Use absneg code iterator
21127 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
21128 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
21129 code iterator. Add three-operand AVX alternative.
21130 (absneg sse_reg splitter): Use absneg code iterator
21131 and SSEMODEF mode iterator. Handle AVX operands.
21132 (absneg fp_reg splitter): Use absneg code iterator
21133 and MODEF mode iterator.
21134 (absneg general_reg splitter): Merge splitters using MODEF mode
21135 iterator. Use absneg code iterator. Call
21136 ix86_split_fp_absneg_operator.
21137 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
21138 Do not enable for non-sse modes before reload.
21139 (CSGNMODE): Remove.
21140 (CSGNVMODE): Ditto.
21141 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
21142 ssevecmodef mode attribute instaed of CSGNVMODE.
21143 (copysign<mode>3_const): Ditto.
21144 (copysign<mode>3_var): Ditto.
21145 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
21146 Use absneg code iterator. Simplify code using std::swap.
21147 * config/i386/predicates.md (absneg_operator): Remove.
21149 2019-06-10 Martin Sebor <msebor@redhat.com>
21151 * gimple-fold.c (get_range_strlen): Update comment that didn't
21152 make it into r267503 or related commits.
21154 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
21156 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
21157 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
21159 2019-06-10 Jakub Jelinek <jakub@redhat.com>
21161 * tree.def (OMP_SCAN): New tree code.
21162 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
21163 OMP_CLAUSE_EXCLUSIVE.
21164 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
21165 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
21166 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
21167 OMP_CLAUSE_{IN,EX}CLUSIVE.
21168 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
21169 * tree-nested.c (convert_nonlocal_reference_stmt,
21170 convert_local_reference_stmt, convert_gimple_call): Handle
21172 * tree-pretty-print.c (dump_omp_clause): Handle
21173 OMP_CLAUSE_{IN,EX}CLUSIVE.
21174 (dump_generic_node): Handle OMP_SCAN.
21175 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
21176 * gimple.h (gomp_scan): New type.
21177 (is_a_helper <gomp_scan *>::test,
21178 is_a_helper <const gomp_scan *>::test): New templates.
21179 (gimple_build_omp_scan): Declare.
21180 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
21181 gimple_omp_scan_set_clauses): New inline functions.
21182 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
21183 * gimple.c (gimple_build_omp_scan): New function.
21184 (gimple_copy): Handle GIMPLE_OMP_SCAN.
21185 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
21186 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
21187 GIMPLE_OMP_TASKGROUP.
21188 (dump_gimple_omp_scan): New function.
21189 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
21190 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
21191 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
21192 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
21193 (is_gimple_stmt): Handle OMP_SCAN.
21194 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
21195 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
21196 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
21197 mentioned in nested #pragma omp scan. Handle
21198 OMP_CLAUSE_{IN,EX}CLUSIVE.
21199 (gimplify_expr): Handle OMP_SCAN.
21200 * omp-low.c (check_omp_nesting_restrictions): For parent context,
21201 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
21203 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
21206 2019-06-10 Martin Liska <mliska@suse.cz>
21208 * ipa-cp.c (ignore_edge_p): New function.
21209 (build_toporder_info): Use it.
21210 * ipa-inline.c (ignore_edge_p): New function.
21211 (inline_small_functions): Use it.
21212 * ipa-pure-const.c (ignore_edge_for_nothrow):
21213 Verify opt_for_fn for caller and callee.
21214 (ignore_edge_for_pure_const): Likewise.
21215 * ipa-reference.c (ignore_edge_p): Extend to check
21217 * ipa-utils.c (searchc): Refactor.
21218 * ipa-utils.h: Fix coding style.
21220 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
21222 * config/arc/arc.c (arc_rtx_costs): Update costs.
21224 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
21226 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
21227 (arc_split_ior): Likewise.
21228 (arc_check_mov_const): Likewise.
21229 (arc_split_mov_const): Likewise.
21230 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
21231 (arc_rtx_costs): Replace check Crr with Cax constraint.
21232 (prepare_move_operands): Cleanup, remove unused code.
21233 (arc_split_ior): New function.
21234 (arc_check_ior_const): Likewise.
21235 (arc_split_mov_const): Likewise.
21236 (arc_check_mov_const): Likewise.
21237 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
21238 in define_insn_and_split pattern.
21239 (iorsi3): Likewise.
21240 (mulsi3_v2): Add new matching variant.
21241 (andsi3_i): Cleanup pattern.
21242 (rotrsi3_cnt1): Update pattern.
21243 (rotrsi3_cnt8): New pattern.
21244 (ashlsi2_cnt8): Likewise.
21245 (ashlsi2_cnt16): Likewise.
21246 * config/arc/constraints.md (C0p): Update constraint.
21248 (C0x): New pattern.
21249 (Cax): New pattern.
21251 2019-06-10 Martin Liska <mliska@suse.cz>
21253 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
21254 Update coding style.
21255 (sem_item_optimizer::dump_cong_classes):
21256 Print how many items are in a non-singular class. Improve
21259 2019-06-10 Martin Liska <mliska@suse.cz>
21261 * value-prof.c (dump_histogram_value): Change dump format.
21262 (gimple_mod_subtract_transform): Remove legacy comment.
21264 2019-06-10 Martin Liska <mliska@suse.cz>
21266 * value-prof.c (dump_histogram_value): Print histogram values
21269 2019-06-10 Martin Liska <mliska@suse.cz>
21271 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
21272 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
21273 * ipa-profile.c (ipa_profile_generate_summary):
21274 Use get_most_common_single_value.
21275 * tree-profile.c (gimple_init_gcov_profiler):
21276 Instrument with __gcov_one_value_profiler_v2
21277 and __gcov_indirect_call_profiler_v4.
21278 * value-prof.c (dump_histogram_value):
21279 Print all values for HIST_TYPE_SINGLE_VALUE.
21280 (stream_out_histogram_value): Update assert for
21282 (stream_in_histogram_value): Set number of
21283 counters for HIST_TYPE_SINGLE_VALUE.
21284 (get_most_common_single_value): New.
21285 (gimple_divmod_fixed_value_transform):
21286 Use get_most_common_single_value.
21287 (gimple_ic_transform): Likewise.
21288 (gimple_stringops_transform): Likewise.
21289 (gimple_find_values_to_profile): Set number
21290 of counters for HIST_TYPE_SINGLE_VALUE.
21291 * value-prof.h (get_most_common_single_value): New.
21293 2019-06-10 Martin Liska <mliska@suse.cz>
21295 * hash-map.h: Pass default value to hash_table ctor.
21296 * hash-table.h: Add default value to call of a ctor.
21298 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
21300 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
21301 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
21303 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
21306 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
21307 Call pa_output_function_label.
21308 (TARGET_ASM_FUNCTION_PROLOGUE): define.
21309 * config/pa/pa-protos.h (pa_output_function_label): Declare.
21310 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
21312 (pa_linux_output_function_prologue): Declare.
21313 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
21314 (pa_output_function_label): New.
21315 (pa_output_function_prologue): Revise to use pa_output_function_label.
21316 (pa_linux_output_function_prologue): New.
21317 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
21319 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
21321 * tree-vrp.h (value_range_base::intersect): New.
21322 (value_range::intersect_helper): Move from here...
21323 (value_range_base::intersect_helper): ...to here.
21324 * tree-vrp.c (value_range::intersect_helper): Rename to...
21325 (value_range_base::intersect_helper): ...this, and rewrite to
21326 return a value instead of modifying THIS in place.
21327 Also, move equivalence handling...
21328 (value_range::intersect): ...here, while calling intersect_helper.
21329 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
21331 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
21333 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
21335 2019-06-07 Jakub Jelinek <jakub@redhat.com>
21337 * Makefile.in (genprogerr): Add condmd.
21338 (genprog): Remove it here.
21340 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
21342 * doc/invoke.texi (AMD GCN Options): Add gfx906.
21344 2019-06-07 Richard Biener <rguenther@suse.de>
21347 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
21348 that appear after user labels.
21350 2019-06-07 Martin Liska <mliska@suse.cz>
21352 * cselib.c (cselib_init): Disable hash table
21354 * hash-set.h: Pass new default argument to m_table.
21355 * hash-table.c: Add global variable with hash table
21356 sanitization limit.
21357 * hash-table.h (Allocator>::hash_table): Add new argument
21359 (hashtab_chk_error): New.
21360 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
21361 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
21362 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
21364 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
21366 * common.opt (flto-odr-type-merging): Ignore.
21367 * invoke.texi (-flto-odr-type-merging): Remove.
21368 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
21369 (can_be_vtable_hashed_p): Remove.
21370 (hash_odr_vtable): Remove.
21371 (odr_vtable_hasher::hash): Remove.
21372 (types_same_for_odr): Remove.
21373 (types_odr_comparable): Remove.
21374 (odr_vtable_hasher::equal): Remove.
21375 (odr_vtable_hash_type, odr_vtable_hash): Remove.
21376 (add_type_duplicate): Do not synchronize vtable and name hashtables.
21377 (get_odr_type): Do not use vtable hash.
21378 (dump_odr_type): Remove commented out code.
21379 (build_type_inheritance_graph): Do not allocate vtable hash.
21380 (rebuild_type_inheritance_graph): Do not delete vtable hash.
21381 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
21382 (odr_type_p): Likewise.
21383 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
21386 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
21388 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
21389 immediately after same_types_for_tbaa_p returns -1 and continue
21390 looking for possible exact match; if matching types are arrays
21391 watch for partial overlaps.
21392 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
21393 (indirect_refs_may_alias_p): Do type based disambiguation first;
21396 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
21398 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
21400 2019-06-07 Martin Liska <mliska@suse.cz>
21402 * doc/invoke.texi: Remove param.
21403 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
21405 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
21406 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
21407 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
21408 * profile.c (instrument_values): Remove
21409 HIST_TYPE_INDIR_CALL_TOPN.
21410 * tree-profile.c (init_ic_make_global_vars):
21411 Always build __gcov_indirect_call only.
21412 (gimple_init_gcov_profiler): Remove usage
21413 of PARAM_INDIR_CALL_TOPN_PROFILE.
21414 (gimple_gen_ic_profiler): Likewise.
21415 * value-prof.c (dump_histogram_value): Likewise.
21416 (stream_in_histogram_value): Likewise.
21417 (gimple_indirect_call_to_profile): Likewise.
21418 (gimple_find_values_to_profile): Likewise.
21419 * value-prof.h (enum hist_type): Likewise.
21421 2019-06-07 Martin Liska <mliska@suse.cz>
21423 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
21426 2019-06-07 Martin Liska <mliska@suse.cz>
21428 PR tree-optimization/78902
21429 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
21430 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
21431 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
21432 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
21433 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
21434 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
21435 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
21436 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
21437 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
21438 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
21439 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
21440 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
21441 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
21443 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
21444 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
21445 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
21446 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
21447 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
21448 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
21449 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
21450 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
21451 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
21452 warn_unused_result attribute.
21453 (BUILT_IN_STRDUP): Likewise.
21454 (BUILT_IN_STRNDUP): Likewise.
21455 (BUILT_IN_ALLOCA): Likewise.
21456 (BUILT_IN_CALLOC): Likewise.
21457 (BUILT_IN_MALLOC): Likewise.
21458 (BUILT_IN_REALLOC): Likewise.
21460 2019-06-06 Jim Wilson <jimw@sifive.com>
21463 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
21464 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
21465 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
21467 2019-06-06 Martin Sebor <msebor@redhat.com>
21469 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
21470 (handle_builtin_malloc): Remove trailing spaces.
21471 (handle_builtin_memset): Same.
21472 (handle_builtin_memcmp): Same.
21473 (compute_string_length): Same.
21474 (determine_min_objsize): Same.
21475 (handle_builtin_string_cmp): Same.
21476 (handle_char_store): Same. Break up excessively long line.
21478 2019-06-06 Martin Jambor <mjambor@suse.cz>
21480 * tree-sra.c (build_reconstructed_reference): Drop the alignment
21483 2019-06-06 Martin Jambor <mjambor@suse.cz>
21485 * tree-sra.c (struct access): New field grp_same_access_path.
21486 (dump_access): Dump it.
21487 (build_reconstructed_reference): New function.
21488 (build_ref_for_model): Use it if possible.
21489 (path_comparable_for_same_access): New function.
21490 (same_access_path_p): Likewise.
21491 (sort_and_splice_var_accesses): Set the new flag.
21492 (analyze_access_subtree): Likewise.
21493 (propagate_subaccesses_across_link): Propagate zero value of the new
21494 flag down the access tree.
21496 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
21498 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
21499 * config/gcn/gcn.opt (gpu_type): Add gfx906.
21500 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
21501 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
21504 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21506 PR tree-optimization/90332
21507 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
21508 Handle VALS containing two vectors.
21509 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
21511 (@aarch64_combinez<mode>): ... This.
21512 (*aarch64_combinez_be<mode>): Rename to...
21513 (@aarch64_combinez_be<mode>): ... This.
21514 (vec_init<mode><Vhalf>): New define_expand.
21515 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
21517 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21519 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
21520 library functions only when not optimizing for size.
21521 (ashlsi3): Likewise.
21522 (ashrhi3): Likewise.
21523 (ashrsi3): Likewise.
21524 (lshrhi3): Likewise.
21525 (lshrsi3): Likewise.
21527 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
21529 PR rtl-optimization/88751
21530 * ira.c (ira): Use the number of the actually referenced registers
21531 when calculating the threshold.
21533 2019-06-06 Jakub Jelinek <jakub@redhat.com>
21535 * configure: Regenerate.
21537 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21539 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
21540 register if it is in memory, so the shift can be emulated with a rotate
21542 (ashrhi3): Likewise.
21543 (lshrhi3): Likewise.
21545 2019-06-06 Martin Liska <mliska@suse.cz>
21547 PR tree-optimization/87954
21548 * match.pd: Simplify mult where both arguments are 0 or 1.
21550 2019-06-06 Richard Biener <rguenther@suse.de>
21552 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
21553 put equivalences on UNDEFINED ranges.
21554 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
21555 Make sure to drop defs of stmts added during simplification
21558 2019-06-06 Richard Biener <rguenther@suse.de>
21560 * tree-ssa-structalias.c: Include tree-cfg.h.
21561 (make_heapvar): Do not make heap vars artificial.
21562 (find_func_aliases_for_builtin_call): Handle stack allocation
21564 (find_func_aliases): Delay processing of simple enough returns
21566 (set_uids_in_ptset): Adjust.
21567 (find_what_var_points_to): Likewise.
21568 (solve_constraints): Do not dump points-to sets here.
21569 (compute_points_to_sets): Post-process return statements,
21570 amending the escaped solution. Dump points-to sets afterwards.
21571 (ipa_pta_execute): Dump points-to sets.
21573 2019-06-06 Martin Liska <mliska@suse.cz>
21576 * doc/install.texi: Fix HTML headers and
21577 titles for 'Installing GCC' pages.
21579 2019-06-06 Martin Liska <mliska@suse.cz>
21581 * ipa-icf-gimple.h (dump_message_1): Remove.
21582 (dump_message): Likewise.
21583 (return_false_with_message_1): Print also file.
21584 (return_false_with_msg): Likewise.
21585 (return_with_result): Likewise.
21586 (return_with_debug): Likewise.
21587 * ipa-icf.c (sem_function::equals_private): Remove call
21590 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
21592 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
21593 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
21594 memory operand for it.
21595 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
21597 2019-06-05 Martin Sebor <msebor@redhat.com>
21599 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
21600 Adjust quoting and hyphenation.
21601 * convert.c (convert_to_real_1): Same.
21602 * gcc.c (driver_wrong_lang_callback): Same.
21603 (driver::handle_unrecognized_options): Same.
21604 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
21605 * opts-common.c (cmdline_handle_error): Same.
21606 (read_cmdline_option): Same.
21607 * opts-global.c (complain_wrong_lang): Same.
21608 (print_ignored_options): Same.
21609 (handle_common_deferred_options): Same.
21610 * pretty-print.h: Same.
21611 * print-rtl.c (debug_bb_n_slim): Same.
21612 * sched-rgn.c (make_pass_sched_fusion): Same.
21613 * tree-cfg.c (verify_gimple_assign_unary): Same.
21614 (verify_gimple_label): Same.
21615 * tree-ssa-operands.c (verify_ssa_operands): Same.
21616 * varasm.c (do_assemble_alias): Same.
21617 (assemble_alias): Same.
21619 2019-06-05 Richard Henderson <rth@twiddle.net>
21621 * config/alpha/alpha.c (direct_return): Move down after
21622 struct machine_function definition; use saved frame_size;
21624 (struct machine_function): Add sa_mask, sa_size, frame_size.
21625 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
21626 (alpha_compute_frame_layout): ... new function.
21627 (TARGET_COMPUTE_FRAME_LAYOUT): New.
21628 (alpha_initial_elimination_offset): Use saved sa_size.
21629 (alpha_vms_initial_elimination_offset): Likewise.
21630 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
21631 (alpha_expand_prologue): Use saved frame data. Merge integer
21632 and fp register save loops.
21633 (alpha_expand_epilogue): Likewise.
21634 (alpha_start_function): Use saved frame data.
21635 * config/alpha/alpha-protos.h (direct_return): Update.
21636 (alpha_sa_size): Remove.
21638 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
21640 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
21641 multiplication by a power-of-two value.
21642 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
21643 and turn the modulo operation into a masking operation.
21645 2019-06-05 Jakub Jelinek <jakub@redhat.com>
21648 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
21649 with VOIDmode inner operands.
21651 2019-06-05 Richard Biener <rguenther@suse.de>
21653 PR middle-end/90726
21654 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
21655 turn an expression graph into a tree.
21657 2019-06-05 Jakub Jelinek <jakub@redhat.com>
21659 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
21661 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
21662 treat it like explicit monotonic schedule modifier.
21663 (expand_omp_for): Initialize has_lastprivate_conditional.
21664 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
21667 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
21668 references, lookup in in hash map MEM_REF operand instead of the
21670 (lower_omp_1): When looking for lastprivate conditional assignments,
21671 handle MEM_REFs with REFERENCE_TYPE operands.
21673 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
21674 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
21675 and references a VLA. Handle references to non-VLAs if is_simd
21676 all privatization clauses like reductions.
21677 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
21678 If omp_is_reference, use always omp simd arrays and set
21679 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
21680 fails, emit reference initialization.
21682 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
21685 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
21686 _mm_mask_fpclass_sd_mask): New intrinsics.
21687 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
21688 * config/i386/i386-builtin.def
21689 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
21691 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
21692 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
21693 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
21694 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
21695 case QI_FTYPE_V2SF_INT): Ditto.
21696 * config/i386/sse.md
21697 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
21698 Extended to insnstructions with mask operands.
21700 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21702 * config/rs6000/constraints.md (define_register_constraint "wp"):
21704 (define_register_constraint "wq"): Delete.
21705 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21706 (rs6000_init_hard_regno_mode_ok): Adjust.
21707 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21708 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
21709 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
21710 (define_mode_attr VSa): Delete.
21711 (define_mode_attr VSisa): New.
21712 (rest of file): Adjust.
21713 * doc/md.texi (Machine Constraints): Adjust.
21715 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21717 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
21718 (define_attr "enabled"): Handle those new isa values.
21720 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21722 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
21723 (define_mode_attr VSr5): Delete.
21724 (define_mode_attr VStype_sqrt): Delete.
21725 (define_mode_iterator VSX_SPDP): Delete.
21726 (define_mode_attr VS_spdp_res): Delete.
21727 (define_mode_attr VS_spdp_insn): Delete.
21728 (define_mode_attr VS_spdp_type): Delete.
21729 (*vsx_sqrt<mode>2): Adjust.
21730 (vsx_<VS_spdp_insn>): Delete, split to...
21731 (vsx_xscvdpsp): ... this. New. And...
21732 (vsx_xvcvspdp): ... this. New. And...
21733 (vsx_xvcvdpsp): ... this. New.
21735 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21737 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
21739 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
21740 (rest of file): Adjust.
21742 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21744 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
21745 (vsx_extract_<mode>_var): Ditto.
21747 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21749 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
21752 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21754 * config/rs6000/constraints.md (define_register_constraint "ww"):
21756 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21757 (rs6000_init_hard_regno_mode_ok): Adjust.
21758 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21759 RS6000_CONSTRAINT_ww.
21760 * config/rs6000/rs6000.md: Adjust.
21761 * config/rs6000/vsx.md: Adjust.
21762 * doc/md.texi (Machine Constraints): Adjust.
21764 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21766 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
21767 (define_mode_attr sd): New.
21768 (define_mode_attr s): New.
21769 (define_mode_attr Ftrad): Delete.
21770 (define_mode_attr Fvsx): Delete.
21771 (define_mode_attr Fs): Delete.
21772 (rest of file): Use the new mode attributes.
21773 * config.rs6000/vsx.md: Use the new mode attributes.
21775 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21777 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
21780 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21782 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
21783 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
21784 used with VSX_B, VSX_D, or VSX_F, with just "wa".
21786 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
21789 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
21790 C++ with strict ANSI requirements.
21792 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
21794 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
21795 computations when step is 1.
21797 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21799 * config/rs6000/constraints.md (define_register_constraint "wf"):
21801 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21802 (rs6000_init_hard_regno_mode_ok): Adjust.
21803 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21804 RS6000_CONSTRAINT_wf.
21805 * config/rs6000/rs6000.md: Adjust.
21806 * config/rs6000/vsx.md: Adjust.
21807 * doc/md.texi (Machine Constraints): Adjust.
21809 2019-06-04 Andrew Pinski <apinski@marvell.com>
21811 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
21814 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21816 * config/rs6000/constraints.md (define_register_constraint "wd"):
21818 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21819 (rs6000_init_hard_regno_mode_ok): Adjust.
21820 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21821 RS6000_CONSTRAINT_wd.
21822 * config/rs6000/rs6000.md: Adjust.
21823 * config/rs6000/vsx.md: Adjust.
21824 * doc/md.texi (Machine Constraints): Adjust.
21826 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21828 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
21829 (rest of file): Adjust.
21831 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21833 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
21834 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
21835 (vsx_splat_<mode>_reg): Adjust.
21837 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21839 * config/rs6000/constraints.md (define_register_constraint "ws"):
21841 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21842 (rs6000_init_hard_regno_mode_ok): Adjust.
21843 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21844 RS6000_CONSTRAINT_ws.
21845 * config/rs6000/rs6000.md: Adjust.
21846 * config/rs6000/vsx.md: Adjust.
21847 * doc/md.texi (Machine Constraints): Adjust.
21849 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21851 * config/rs6000/constraints.md (define_register_constraint "wv"):
21853 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21854 (rs6000_init_hard_regno_mode_ok): Adjust.
21855 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21856 RS6000_CONSTRAINT_wv.
21857 * config/rs6000/rs6000.md: Adjust.
21858 * config/rs6000/vsx.md: Adjust.
21859 * doc/md.texi (Machine Constraints): Adjust.
21861 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21863 * config/rs6000/constraints.md (define_register_constraint "wi"):
21865 (define_register_constraint "wt"): Delete.
21866 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21867 (rs6000_init_hard_regno_mode_ok): Adjust.
21868 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21869 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
21870 * config/rs6000/rs6000.md: Adjust.
21871 * config/rs6000/vsx.md: Adjust.
21872 * doc/md.texi (Machine Constraints): Adjust.
21874 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
21876 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
21878 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
21879 default_elf_asm_output_external.
21881 2019-06-04 Martin Liska <mliska@suse.cz>
21883 * ipa-icf.c (INCLUDE_LIST): Remove.
21884 (sem_item_optimizer::execute): Remove call to init_wpa.
21885 * ipa-icf.h (init_wpa): Remove.
21887 2019-06-04 Jakub Jelinek <jakub@redhat.com>
21889 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
21890 conditional on combined for simd.
21891 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
21893 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
21894 constructs, don't remove lastprivate_conditional_map, but instead set
21895 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
21896 to parent construct temporaries.
21897 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
21898 like !ctx->lastprivate_conditional_map.
21899 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
21900 use up->outer context instead of up.
21901 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
21902 gimple_omp_for_combined_p.
21903 (expand_omp_for_static_nochunk): Likewise.
21904 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
21905 probably moved over into expand_omp_for_generic rather than being copied
21908 2019-06-04 Martin Liska <mliska@suse.cz>
21910 * value-prof.c (dump_histogram_value): Fix typo.
21911 (gimple_mod_subtract_transform): Likewise.
21913 2019-06-04 Richard Biener <rguenther@suse.de>
21915 PR middle-end/90726
21916 * tree-chrec.c (chrec_contains_symbols): Add to visited.
21917 (tree_contains_chrecs): Likewise.
21918 (chrec_contains_symbols_defined_in_loop): Move here and avoid
21919 exponential behaivor from ...
21920 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
21922 (expression_expensive_p): Avoid exponential behavior and compute
21923 expanded size, rejecting any expansion.
21924 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
21925 (idx_contains_abnormal_ssa_name_p): Likewise.
21926 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
21927 (contains_abnormal_ssa_name_p): Simplify and use
21928 walk_tree_without_duplicates.
21930 2019-06-04 Richard Biener <rguenther@suse.de>
21932 PR tree-optimization/90738
21934 2019-06-03 Richard Biener <rguenther@suse.de>
21936 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
21937 full reference tree and record in ref->ref.
21938 (vn_reference_lookup_3): Pass in original ref to
21939 ao_ref_init_from_vn_reference.
21940 (vn_reference_lookup): Likewise.
21941 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
21942 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21943 Handle non-decl bases in the original reference.
21945 2019-06-04 Martin Liska <mliska@suse.cz>
21947 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
21948 number of references.
21949 (sem_item_optimizer::do_congruence_step):
21950 (sem_item_optimizer::worklist_push): Dump how references
21952 (sem_item_optimizer::worklist_pop): Use heap.
21953 (sem_item_optimizer::process_cong_reduction): Likewise.
21954 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
21956 2019-06-04 Martin Liska <mliska@suse.cz>
21958 * ipa-icf.h (struct sem_usage_pair_hash): New.
21959 (sem_usage_pair_hash::hash): Likewise.
21960 (sem_usage_pair_hash::equal): Likewise.
21961 (struct sem_usage_hash): Likewise.
21962 * ipa-icf.c (sem_item::sem_item): Initialize
21963 referenced_by_count.
21964 (sem_item::add_reference): Register a reference
21965 in ref_map and not in target->usages.
21966 (sem_item::setup): Remove initialization of
21968 (sem_item::~sem_item): Remove usage of dead vectors.
21969 (sem_item::dump): Remove dump of references.
21970 (sem_item_optimizer::sem_item_optimizer): Initialize
21972 (sem_item_optimizer::read_section): Remove useless
21974 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
21975 (sem_item_optimizer::build_graph): Pass m_references
21976 to ::add_reference.
21977 (sem_item_optimizer::verify_classes): Remove usage of dead
21979 (sem_item_optimizer::traverse_congruence_split): Return true
21980 when a class is split.
21981 (sem_item_optimizer::do_congruence_step_for_index): Use
21982 hash_map for look up of (sem_item *, index). That brings
21983 significant speed up.
21984 (sem_item_optimizer::do_congruence_step): Return true
21985 when a split is done.
21986 (congruence_class::is_class_used): Use referenced_by_count.
21988 2019-06-04 Alan Modra <amodra@gmail.com>
21991 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
21994 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
21996 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
21997 * config/rs6000/rs6000.c (direct_move_p): Adjust.
21998 (rs6000_secondary_reload_simple_move): Adjust.
21999 (rs6000_opt_masks): Neuter the "mfpgpr" option.
22000 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
22001 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
22004 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
22005 (floatunssi<mode>2_lfiwzx): Adjust.
22006 (fix_trunc<mode>si2_stfiwx): Adjust.
22007 (fixuns_trunc<mode>si2_stfiwx): Adjust.
22008 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
22009 (mfpgpr): Mark as deprecated.
22010 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
22011 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
22012 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
22014 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
22016 * config/rs6000/constraints.md (define_register_constraint "wg"):
22018 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22019 RS6000_CONSTRAINT_wg.
22020 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22021 (rs6000_init_hard_regno_mode_ok): Adjust.
22022 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
22023 Delete "wg" alternatives.
22024 * doc/md.texi (Machine Constraints): Adjust.
22026 2019-06-03 Alan Modra <amodra@gmail.com>
22028 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
22029 (get_uncond_jump_length): Assert length less than INT_MAX and
22032 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
22034 PR middle-end/64242
22035 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
22037 (expand_builtin_nonlocal_goto): Likewise.
22039 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22041 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
22042 (aarch64_asm_output_external): Declare.
22043 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
22044 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
22045 (aarch64_asm_output_alias): New.
22046 (aarch64_asm_output_external): New.
22047 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
22048 (ASM_OUTPUT_EXTERNAL): Define.
22050 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
22051 * tree-vrp.h (value_range_base::nonzero_p): New.
22052 (value_range_base::set_nonnull): Rename to...
22053 (value_range_base::set_nonzero): ...this.
22054 (value_range_base::set_null): Rename to...
22055 (value_range_base::set_zero): ...this.
22056 (value_range::set_nonnull): Remove.
22057 (value_range::set_null): Remove.
22058 * tree-vrp.c (range_is_null): Remove.
22059 (range_is_nonnull): Remove.
22060 (extract_range_from_binary_expr): Use value_range_base::*zero_p
22061 instead of range_is_*null.
22062 (extract_range_from_unary_expr): Same.
22063 (value_range_base::set_nonnull): Rename to...
22064 (value_range_base::set_nonzero): ...this.
22065 (value_range::set_nonnull): Remove.
22066 (value_range_base::set_null): Rename to...
22067 (value_range_base::set_zero): ...this.
22068 (value_range::set_null): Remove.
22069 (extract_range_from_binary_expr): Rename set_*null uses to
22071 (extract_range_from_unary_expr): Same.
22072 (union_helper): Same.
22073 * vr-values.c (get_value_range): Use set_*zero instead of
22075 (vr_values::extract_range_from_binary_expr): Same.
22076 (vr_values::extract_range_basic): Same.
22078 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
22081 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
22083 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22085 * config/aarch64/iterators.md (MAX_OPP): New code attr.
22086 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
22088 (aarch64_<su>abd<mode>_3): ... This.
22089 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
22091 2019-06-03 Richard Biener <rguenther@suse.de>
22093 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
22094 full reference tree and record in ref->ref.
22095 (vn_reference_lookup_3): Pass in original ref to
22096 ao_ref_init_from_vn_reference.
22097 (vn_reference_lookup): Likewise.
22098 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
22099 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
22100 Handle non-decl bases in the original reference.
22102 2019-06-03 Martin Liska <mliska@suse.cz>
22104 * doc/generic.texi: Remove Java Trees.
22106 2019-06-03 Martin Liska <mliska@suse.cz>
22108 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
22109 returns 0 when operands are equal.
22111 2019-06-03 Richard Biener <rguenther@suse.de>
22113 PR tree-optimization/90716
22114 * tree-loop-distribution.c (destroy_loop): Process blocks in
22117 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22120 * vector-builder.h (vector_builder::count_dups): New method.
22121 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
22123 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
22124 (vec_init<mode><Vel>): New pattern.
22125 * config/aarch64/aarch64.c (emit_insr): New function.
22126 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
22127 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
22128 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
22129 (aarch64_sve_expand_vector_init): Define two overloaded functions.
22131 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22133 PR tree-optimization/90681
22134 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
22135 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
22136 special case for SLP, but fail on non-groupped loads.
22138 2019-06-03 Martin Liska <mliska@suse.cz>
22140 * cfg.c (debug): Use TDF_DETAILS for debug and
22141 print edge info only once.
22143 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
22146 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
22148 2019-06-01 Martin Sebor <msebor@redhat.com>
22150 PR middle-end/90694
22151 * tree-pretty-print.c (dump_generic_node): Add parentheses.
22153 2019-05-31 Jan Hubicka <jh@suse.cz>
22155 * alias.c: Include ipa-utils.h.
22156 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
22157 * ipa-devirt.c (prevailing_odr_type): New.
22158 * ipa-utils.h (previaling_odr_type): Declare.
22160 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
22161 Hongtao Liu <hongtao.liu@intel.com>
22164 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
22165 NOTE_INSN_DELETED_LABEL check.
22167 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
22168 Robert Suchanek <robert.suchanek@mips.com>
22170 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
22171 and 3rd operands of the fmadd/fmsub/maddv builtin.
22173 2019-05-31 Jakub Jelinek <jakub@redhat.com>
22175 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
22176 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
22177 on OMP_SIMD if not nested inside of worksharing loop that also has
22178 lastprivate conditional clause for the same decl.
22179 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
22180 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
22182 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
22184 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
22186 (lower_lastprivate_clauses): Likewise.
22187 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
22188 calling lower_rec_input_clauses.
22189 (lower_omp_for): Likewise.
22190 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
22191 clause on simd construct.
22192 * omp-expand.c (expand_omp_simd): Initialize cond_var if
22193 OMP_CLAUSE__CONDTEMP_ clause is present.
22195 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
22198 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
22201 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
22202 TEX_D32, TEX_D64 or TEX_D128.
22204 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
22206 * match.pd (~(vec?cst1:cst2)): New transformation.
22208 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
22210 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
22211 ((size_t)(A /[ex] B) CMP C): New transformation.
22213 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
22215 * doc/md.texi: Document define_insn_and_rewrite.
22216 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
22217 * gensupport.c (queue_elem): Update comment.
22218 (replace_operands_with_dups): New function.
22219 (gen_rewrite_sequence): Likewise.
22220 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
22221 * read-rtl.c (apply_subst_iterator): Likewise.
22222 (add_condition_to_rtx, named_rtx_p): Likewise.
22223 (rtx_reader::read_rtx_operand): Likewise.
22224 * config/aarch64/aarch64-sve.md
22225 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
22226 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
22227 define_insn_and_rewrite.
22228 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
22229 Remove separate define_split.
22231 2019-05-31 Jan Hubicka <jh@suse.cz>
22233 * tree-ssa-alias.c (type_has_components_p): New function.
22234 (aliasing_component_refs_p): Use it.
22236 2019-05-31 Martin Liska <mliska@suse.cz>
22238 * gdbhooks.py: Add const_tree to TreePrinter.
22240 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
22243 * common.opt (feliminate-unused-debug-symbols): Enable by default.
22244 * doc/invoke.texi (Debugging Options): Document new default of
22245 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
22247 2019-05-31 Jakub Jelinek <jakub@redhat.com>
22249 PR tree-optimization/90671
22250 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
22251 template_block used to be empty on the first call, don't use
22252 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
22253 seq with bb_seq and set it with set_bb_seq.
22255 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
22257 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
22259 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22260 Michael Meissner <meissner@linux.ibm.com>
22262 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
22263 (prefixed_mem_operand): Likewise.
22264 (non_prefixed_mem_operand): Likewise.
22265 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
22267 * config/rs6000/rs6000.c (print_operand_address): Handle
22268 PC-relative addresses.
22269 (mode_supports_prefixed_address_p): New function.
22270 (rs6000_prefixed_address): New function.
22271 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
22272 (SYMBOL_REF_PCREL_P): Likewise.
22274 2019-05-30 Jakub Jelinek <jakub@redhat.com>
22276 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
22277 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
22278 (gimplify_omp_for): If worksharing loop with lastprivate conditional
22279 is nested inside of parallel region, add _condtemp_ clause to both.
22280 * tree-nested.c (convert_nonlocal_omp_clauses,
22281 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
22283 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
22285 * omp-general.c (omp_extract_for_data): Compute it.
22286 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
22287 (lower_rec_input_clauses): Likewise.
22288 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
22289 clause is already present, just add one further one after it.
22290 (lower_lastprivate_clauses): Handle cond_ptr with array type.
22291 (lower_send_shared_vars): Clear _condtemp_ vars.
22292 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
22293 or section or taskgroup.
22294 * omp-expand.c (determine_parallel_type): Disallow combining only if
22295 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
22296 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
22297 (expand_omp_for_generic, expand_omp_for_static_nochunk,
22298 expand_omp_for_static_chunk, expand_omp_for): Use
22299 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
22300 determine if a special set of API routines are needed and if condtemp
22301 needs to be initialized, while always initialize cond_var if
22302 fd->lastprivate_conditional is non-zero.
22304 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22305 Michael Meissner <meissner@linux.ibm.com>
22307 * config/rs6000/constraints.md (eI): New constraint.
22308 * config/rs6000/predicates.md (cint34_operand): New predicate.
22309 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
22310 (SIGNED_34BIT_OFFSET_P): Likewise.
22311 * doc/md.texi (eI): Document constraint.
22313 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
22315 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
22317 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22318 Michael Meissner <meissner@linux.ibm.com>
22320 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
22321 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
22322 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
22323 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
22324 (OTHER_FUTURE_MASKS): Likewise.
22325 (POWERPC_MASKS): Likewise.
22326 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
22327 specified without -mprefixed-addr or -mcpu=future. Error if
22328 -mprefixed-addr is specified without -mcpu=future.
22329 (rs6000_opt_masks): Add entry for prefixed-addr.
22330 * rs6000.opt (mprefixed-addr): New option.
22332 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
22334 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
22335 cfun->is_thunk check.
22337 2019-05-30 Jakub Jelinek <jakub@redhat.com>
22339 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
22342 2019-05-30 Martin Liska <mliska@suse.cz>
22344 * gdbinit.in: Fix 'ptc' command. Add trt
22345 that prints TREE_TYPE($).
22347 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
22348 Alan Modra <amodra@gmail.com>
22350 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
22352 (rs6000_indirect_call_template_1): ...and here.
22353 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
22354 plt16_ha, plt16_lo, mtctr indirect calls. Use
22355 rs6000_pltseq_enum.
22356 (rs6000_decl_ok_for_sibcall): New function.
22357 (rs6000_function_ok_for_sibcall): Refactor.
22358 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
22359 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
22360 when pcrel. Reorganize.
22361 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
22362 * rs6000.h (rs6000_pltseq_enum): New enum.
22363 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
22364 (*pltseq_tocsave): Use rs6000_pltseq_enum.
22365 (*pltseq_plt16_ha): Likewise.
22366 (*pltseq_plt16_lo): Likewise.
22367 (*pltseq_mtctr): Likewise.
22368 (*pltseq_plt_pcrel): New insn.
22369 (*call_local_aix): Handle @notoc calls.
22370 (*call_value_local_aix): Likewise.
22371 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
22372 (*call_value_nonlocal_aix): Likewise.
22373 (*call_indirect_pcrel): New insn.
22374 (*call_value_indirect_pcrel): Likewise.
22376 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
22378 * config/i386/sse.md (*save_multiple<mode>): Rename from
22379 save_multiple<mode>.
22380 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
22381 (*restore_multiple_and_return<mode>): Rename from
22382 restore_multiple_and_return<mode>.
22383 (*restore_multiple_leave_return<mode>): Rename from
22384 restore_multiple_leave_return<mode>.
22386 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
22388 * config.gcc (rx-*-linux*): New target.
22389 * config/rx/elf.opt: New file.
22390 * config/rx/linux.h: Likewise.
22391 * config/rx/t-linux: Likewise.
22392 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
22394 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
22395 (ASM_APP_OFF): Likewise.
22396 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
22399 2019-05-29 Jan Hubicka <jh@suse.cz>
22401 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
22402 variants are pointer equivalent.
22404 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22406 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
22407 * config/aarch64/aarch64-sve2.md: New file.
22408 (<u>avg<mode>3_floor): New pattern.
22409 (<u>avg<mode>3_ceil): Likewise.
22410 (*<sur>h<addsub><mode>): Likewise.
22411 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
22412 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
22414 2019-05-29 Jakub Jelinek <jakub@redhat.com>
22417 * optc-save-gen.awk: In cl_optimization_print, use correct condition
22418 for var_opt_string printing. In cl_optimization_print_diff, print
22419 (null) instead of invoking undefined behavior if one of the
22420 var_opt_string pointers is NULL and use && instead of first || in the
22421 guarding condition. For var_target_other options, handle const char *
22422 target variables similarly to const char * optimize node variables.
22424 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
22426 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
22427 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
22428 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
22429 Add autib1716 and pacib1716 initialisation.
22430 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
22431 for autib1716 and pacib1716.
22432 * config/aarch64/aarch64-protos.h (aarch64_key_type,
22433 aarch64_post_cfi_startproc): Define.
22434 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
22435 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
22436 aarch64_handle_pac_ret_protection): Set default sign key to A.
22437 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
22438 aarch64_expand_prologue): Add check for b-key.
22439 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
22440 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
22441 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
22442 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
22443 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
22444 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
22445 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
22446 * config/aarch64/aarch64.md (do_return): Add check for b-key.
22447 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
22448 pauth_hint_num_a with pauth_hint_num.
22449 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
22450 pauth_hint_num_a with pauth_hint_num.
22451 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
22452 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
22453 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
22454 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
22455 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
22456 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
22457 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
22458 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
22459 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
22460 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
22461 UNSPEC_AUTIA1716 respectively.
22462 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
22463 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
22464 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
22465 * doc/invoke.texi (-mbranch-protection): Add b-key type.
22466 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
22467 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
22469 2019-05-29 Jakub Jelinek <jakub@redhat.com>
22471 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
22472 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
22473 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
22474 explicit clause on combined parallel into implicit shared clause.
22475 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
22476 and firstprivate if the decl has one too from combined parallel to
22477 the worksharing construct.
22479 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
22480 Michael Meissner <meissner@linux.ibm.com>
22482 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
22484 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
22486 * rtl.h (LABEL_REF_P): New #define.
22488 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
22490 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
22492 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22494 * internal-fn.c: Marked mask_load_direct as vectorizable.
22495 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
22496 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
22497 combined even if masks different with allow_slp_p param.
22498 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
22499 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
22500 dissolve SLP-only vectorizable groups when SLP has been discarded.
22501 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
22502 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
22504 (vect_build_slp_tree_1): Fixed comment typo.
22505 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
22506 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
22507 loads for SLP only.
22508 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
22510 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
22512 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22514 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
22515 Remove obsolete use_thunk reference.
22516 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
22517 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
22518 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
22519 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
22520 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
22521 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
22522 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
22523 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
22524 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
22526 2019-05-28 Nathan Sidwell <nathan@acm.org>
22528 * tree.h (IDENTIFIER_ANON_P): New.
22529 (anon_aggrname_format, anon_aggname_p): Don't declare.
22530 (make_anon_name): Declare.
22531 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
22532 (hash_tree): Likewise.
22533 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
22534 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
22535 (anon_cnt, make_anon_name): New.
22537 2019-05-28 Martin Liska <mliska@suse.cz>
22540 * opts-global.c (decode_options): Print help for all
22541 help_option_arguments.
22542 * opts.c (print_help): Add new argument.
22543 (common_handle_option): Remember all values into
22544 help_option_arguments.
22545 * opts.h (print_help): Add new argument.
22547 2019-05-28 Martin Liska <mliska@suse.cz>
22550 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
22551 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
22552 (func_checker::compare_bb): Call compare_loops.
22554 2019-05-27 Jakub Jelinek <jakub@redhat.com>
22556 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
22557 on sections construct.
22558 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
22560 (lower_omp_sections): Handle lastprivate conditional.
22561 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
22562 lastprivate_conditional_map.
22563 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
22565 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
22566 critical, taskgroup and section regions when looking for a region
22567 with non-NULL lastprivate_conditional_map.
22569 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
22571 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
22572 (*ix86_gen_sub3): Ditto.
22573 (*ix86_gen_sub3_carry): Ditto.
22574 (*ix86_gen_one_cmpl2): Ditto.
22575 (*ix86_gen_andsp): Ditto.
22576 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
22577 (gen_and2_insn): New static function.
22578 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
22579 Use gen_add3_insn instead of ix86_gen_add3.
22580 (ix86_expand_split_stack_prologue): Use gen_add2_insn
22581 instead of ix86_gen_add3.
22582 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
22583 Use gen_sub3_insn instead of ix86_gen_sub3.
22584 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
22585 instead of ix86_gen_add3.
22586 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
22587 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
22588 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
22589 * config/i386/i386-options.c (ix86_option_override_internal):
22590 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
22591 ix86_gen_one_cmpl2 and ix86_gen_andsp.
22593 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
22595 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
22596 and DW_OP_GNU_const_index opcodes.
22598 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
22600 * config/i386/i386.h (STACK_SIZE_MODE): Define.
22602 2019-05-27 Richard Biener <rguenther@suse.de>
22604 PR tree-optimization/90637
22605 * tree-ssa-sink.c (statement_sink_location): Honor the
22606 computed sink location for single-uses.
22608 2019-05-27 Richard Biener <rguenther@suse.de>
22610 PR middle-end/90610
22611 * match.pd (vec_perm): Avoid clobbering op0 when not generating
22614 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
22616 * config/i386/i386.md (@sub<mode>3_carry): Rename
22617 from sub<mode>3_carry.
22618 (@leave_<mode>): New expander.
22619 (*leave): Rename from leave.
22620 (*leave_rex64): Rename from leave_rex64.
22621 (@monitorx_<mode>): Rename from monitorx_<mode>.
22622 (@clzero_<mode>): Rename from clzero_<mode>.
22623 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
22624 from sse3_monitor_<mode>.
22625 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
22626 (*ix86_gen_leave): Ditto.
22627 (*ix86_gen_monitor): Ditto.
22628 (*ix86_gen_monitorx): Ditto.
22629 (*ix86_gen_clzero): Ditto.
22630 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
22631 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
22632 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
22633 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
22634 Use gen_sse3_monitor instead of ix86_gen_monitor.
22635 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
22636 instead of ix86_gen_monitorx.
22637 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
22638 instead of ix86_gen_clzero.
22639 * config/i386/i386-options.c (ix86_option_override_internal):
22640 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
22641 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
22643 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
22645 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
22646 Rename from tls_global_dynamic_64_<mode>.
22647 (@tls_local_dynamic_base_64_<mode>): Rename from
22648 tls_local_dynamic_base_64_<mode>.
22649 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
22650 Remove indirect function.
22651 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
22652 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
22653 instead of ix86_gen_tls_global_dynamic_64.
22654 Use gen_tls_local_dynamic_base_64 instead of
22655 ix86_gen_tls_local_dynamic_base_64.
22656 * config/i386/i386-options.c (ix86_option_override_internal):
22657 Do not initialize ix86_gen_tls_global_dynamic_64 and
22658 ix86_gen_tls_local_dynamic_base_64.
22660 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
22662 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
22663 Rename from pro_epilogue_adjust_stack_<mode>_add.
22664 (@pro_epilogue_adjust_stack_sub_<mode>)
22665 Rename from pro_epilogue_adjust_stack_<mode>_sub.
22666 (@allocate_stack_worker_probe_<mode>):
22667 Rename from allocate_stack_worker_probe_<mode>.
22668 (allocate_stack): Use gen_allocate_stack_worker_probe.
22669 (probe_stack): Use gen_probe_stack_1.
22670 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
22671 (@adjust_stack_and_probe_<mode>): Rename from
22672 adjust_stack_and_probe<mode>.
22673 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
22674 (stack_protect_set): Use gen_stack_protect_set_1.
22675 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
22676 (stack_protect_test): Use gen_stack_protect_test_1.
22677 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
22678 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
22679 Remove indirect function.
22680 (*ix86_gen_adjust_stack_and_probe): Ditto.
22681 (*ix86_gen_probe_stack_range): Ditto.
22682 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
22683 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
22684 (ix86_adjust_stack_and_probe_stack_clash): Use
22685 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
22686 (ix86_adjust_stack_and_probe): Ditto.
22687 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
22688 of ix86_gen_probe_stack_range.
22689 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
22690 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
22691 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
22692 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
22693 CODE_FOR_stack_protect_test_{si,di}.
22694 * config/i386/i386-options.c (ix86_option_override_internal):
22695 Do not initialize ix86_gen_allocate_stack_worker,
22696 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
22698 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
22700 * doc/invoke.texi (Link Options): Many editorial changes around
22703 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22705 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
22706 pre-Solaris 11 referene and most Studio compiler details.
22708 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
22711 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
22712 DImode to SImode in floating-point registers on 64-bit target.
22713 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
22714 register_operand in xmpyu patterns.
22716 2019-05-24 Jakub Jelinek <jakub@redhat.com>
22718 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
22719 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
22720 OMP_CLAUSE__REDUCTEMP_.
22721 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22722 OMP_CLAUSE__CONDTEMP_.
22723 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
22724 * tree-pretty-print.c (dump_omp_clause): Likewise.
22725 * tree-nested.c (convert_nonlocal_omp_clauses,
22726 convert_local_omp_clauses): Likewise.
22727 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
22728 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
22729 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
22731 (gimplify_omp_for): Warn and disable conditional modifier from
22732 lastprivate on loop iterators.
22733 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
22735 * omp-general.c (omp_extract_for_data): Initialize it.
22736 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
22738 (delete_omp_context): Delete it.
22739 (lower_lastprivate_conditional_clauses): New function.
22740 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
22741 handle lastprivate conditional clauses.
22742 (lower_reduction_clauses): Add CLIST argument, emit it into
22743 the critical section if any.
22744 (lower_omp_sections): Adjust lower_lastprivate_clauses and
22745 lower_reduction_clauses callers.
22746 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
22747 to lower_lastprivate_clauses.
22748 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
22749 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
22750 clist into a critical section if not emitted there already by
22751 lower_reduction_clauses.
22752 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
22754 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
22755 conditional variables.
22756 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
22758 (expand_omp_for_generic, expand_omp_for_static_nochunk,
22759 expand_omp_for_static_chunk): Handle lastprivate conditional.
22760 (expand_omp_for): Handle fd.lastprivate_conditional like
22763 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
22765 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
22766 kernel does not exit cleanly.
22767 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
22769 2019-05-24 Jason Merrill <jason@redhat.com>
22772 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
22774 2019-05-24 Richard Biener <rguenther@suse.de>
22777 * tree-loop-distribution.c (struct partition): Add location
22779 (partition_alloc): Initialize all fields.
22780 (generate_memset_builtin): Use the location recorded in the
22781 partition for the generated call.
22782 (generate_memcpy_builtin): Likewise.
22783 (classify_partition): Record the location of a single store
22784 as location for the partition.
22786 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
22788 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
22791 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
22794 * common/config/aarch64/aarch64-common.c
22795 (aarch64_rewrite_selected_cpu): Change local temporary variable
22796 type from unsigned long to uint64_t.
22797 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
22798 aarch64_get_extension_string_for_isa_flags): Change declaration to
22799 match new definition by replacing unsigned long with uint64_t.
22801 2019-05-24 Jakub Jelinek <jakub@redhat.com>
22804 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
22805 gen_attr_type just once instead of 4-7 times. Formatting fixes.
22806 Handle stack_protect_test_<mode> codegen similarly to corresponding
22809 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
22811 * config/i386/darwin.h: Reject -mfentry*.
22812 * doc/sourcebuild.texi: Document mfentry target support.
22814 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
22816 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
22817 Rename to rs6000_global_entry_point_prologue_needed_p. Return
22818 false for PC-relative functions.
22819 (rs6000_output_function_prologue): Change called function name to
22820 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
22821 name,1" for PC-relative functions.
22822 (rs6000_elf_declare_function_name): Change called function name to
22823 rs6000_global_entry_point_prologue_needed_p.
22825 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
22828 * config/i386/i386.c (gen_rtx_cost):
22829 Use ix86_tune_cost instead of ix86_cost.
22831 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
22832 Michael Meissner <meissner@linux.ibm.com>
22833 Segher Boessenkool <segher@kernel.crashing.org>
22835 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
22837 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
22838 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
22839 (rs6000_fndecl_pcrel_p): Likewise.
22840 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
22841 error if -mpcrel is requested without -mcpu=future.
22842 (rs6000_opt_masks): Add entry for pcrel.
22843 (rs6000_fndecl_pcrel_p): New function.
22844 (rs6000_pcrel_p): Likewise.
22845 * config/rs6000/rs6000.opt (mpcrel): New option.
22846 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
22848 2019-05-23 Jan Hubicka <jh@suse.cz>
22849 Martin Liska <mliska@suse.cz>
22851 PR tree-optimization/90576
22852 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
22854 (aliasing_component_refs_p): Fix three way size compare conditional;
22855 give up earlier in case we can not decide on equivalence.
22857 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
22858 Michael Meissner <meissner@linux.ibm.com>
22859 Segher Boessenkool <segher@kernel.crashing.org>
22861 * config.gcc: Add future cpu.
22862 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
22863 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
22865 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
22866 (RS6000_CPU): New instantiation for future cpu.
22867 * config/rs6000/rs6000-opts.h (enum processor_type): Add
22869 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
22870 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
22871 * config/rs6000/rs6000-tables.opt: Regenerate.
22872 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
22873 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
22874 (rs6000_machine_from_flags): Handle future cpu.
22875 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
22876 PROCESSOR_POWER9 for now.
22877 (rs6000_adjust_cost): Likewise.
22878 (rs6000_issue_rate): Likewise.
22879 (rs6000_register_move_cost): Likewise.
22880 (rs6000_opt_masks): Add entry for future.
22881 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
22882 (MASK_FUTURE): New #define.
22883 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
22884 * config/rs6000/rs6000.opt (mfuture): New target option.
22885 * doc/invoke.texi (mcpu): Add future cpu.
22887 2019-05-23 Martin Liska <mliska@suse.cz>
22890 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
22891 operation points to a temporary (pointed via tree_to_wide_ref)
22892 that is out of scope after the &.
22894 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
22897 * doc/extend.texi (Function Names): Add missing word.
22899 2019-05-23 Richard Biener <rguenther@suse.de>
22901 PR tree-optimization/88440
22902 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
22904 * tree-loop-distribution.c (generate_memset_builtin): Fold the
22906 (generate_memcpy_builtin): Likewise.
22907 (distribute_loop): Pass in whether to only distribute patterns.
22908 (prepare_perfect_loop_nest): Also allow size optimization.
22909 (pass_loop_distribution::execute): When optimizing a loop
22910 nest for size allow pattern replacement.
22912 2019-05-23 Jakub Jelinek <jakub@redhat.com>
22915 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
22918 2019-05-23 Martin Liska <mliska@suse.cz>
22921 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
22922 expression similarly to gimplify_decl_expr.
22924 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22926 * cse.c (cse_dump_path): s/dump_file/f.
22928 2019-05-22 David Malcolm <dmalcolm@redhat.com>
22931 * diagnostic-format-json.cc: Include "selftest.h".
22932 (json_from_expanded_location): Only add "file" key for non-NULL
22934 (json_from_location_range): Don't add "start" and "finish"
22935 children if they are UNKNOWN_LOCATION.
22936 (selftest::test_unknown_location): New selftest.
22937 (selftest::test_bad_endpoints): New selftest.
22938 (selftest::diagnostic_format_json_cc_tests): New function.
22939 * json.cc (json::object::get): New function.
22940 (selftest::test_object_get): New selftest.
22941 (selftest::json_cc_tests): Call it.
22942 * json.h (json::object::get): New decl.
22943 * selftest-run-tests.c (selftest::run_tests): Call
22944 selftest::diagnostic_format_json_cc_tests.
22945 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
22948 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
22949 Andrew Stubbs <amd@codesourcery.com>
22951 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
22952 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
22953 (kernel): Rename to...
22954 (main_kernel): ... this.
22955 (load_image): Load _init_array and _fini_array kernels.
22956 (run): Add argument for kernel to run.
22957 (main): Run init_array_kernel before main_kernel, and
22958 fini_array_kernel after.
22959 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
22960 amdgpu_hsa_kernel attribute on functions.
22961 (gcn_disable_constructors): Delete.
22962 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
22963 * config/gcn/crt0.c (size_t): Define.
22964 (_init_array, _fini_array): New.
22965 (__preinit_array_start, __preinit_array_end,
22966 __init_array_start, __init_array_end,
22967 __fini_array_start, __fini_array_end): Declare weak references.
22969 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
22971 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
22973 2019-05-22 Jason Merrill <jason@redhat.com>
22975 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
22977 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
22980 * config/i386/i386-options.c (ix86_init_machine_status): Set
22981 stack_frame_required to true.
22982 * config/i386/i386.c (ix86_get_frame_size): New function.
22983 (ix86_frame_pointer_required): Replace get_frame_size with
22984 ix86_get_frame_size.
22985 (ix86_compute_frame_layout): Likewise.
22986 (ix86_find_max_used_stack_alignment): Changed to void. Set
22987 stack_frame_required.
22988 (ix86_finalize_stack_frame_flags): Always call
22989 ix86_find_max_used_stack_alignment. Replace get_frame_size with
22990 ix86_get_frame_size.
22991 * config/i386/i386.h (machine_function): Add stack_frame_required.
22993 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
22995 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
22997 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
22999 * common/config/aarch64/aarch64-common.c
23000 (struct aarch64_option_extension, struct processor_name_to_arch,
23001 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
23002 aarch64_contains_opt,
23003 aarch64_get_extension_string_for_isa_flags): Change type of
23004 variables storing flags to uint64_t.
23005 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
23006 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
23007 * config/aarch64/aarch64.c (struct processor,
23008 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
23009 aarch64_validate_march, aarch64_override_options,
23010 aarch64_option_print, aarch64_handle_attr_isa_flags,
23011 aarch64_declare_function_name, aarch64_start_file): Make flag
23012 variables uint64_t.
23013 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
23014 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
23015 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
23016 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
23017 * config/aarch64/driver-aarch64.c
23018 (struct aarch64_arch_extension, struct aarch64_core_data,
23019 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
23020 flag variables uint64_t.
23021 * doc/invoke.texi: Add documentation for new arguments.
23023 2019-05-22 Richard Biener <rguenther@suse.de>
23025 * alias.c (ao_ref_from_mem): Move stack-slot sharing
23027 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
23029 2019-05-22 Martin Liska <mliska@suse.cz>
23032 * doc/extend.texi: Document the change.
23034 2019-05-22 Richard Biener <rguenther@suse.de>
23036 PR tree-optimization/90450
23037 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
23038 (mem_ref_hasher::equal): Check it.
23039 (mem_ref_alloc): Initialize it.
23040 (gather_mem_refs_stmt): Set it.
23042 2019-05-22 Richard Biener <rguenther@suse.de>
23044 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
23046 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
23049 2019-05-22 Alan Modra <amodra@gmail.com>
23051 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
23052 (ASM_CPU_SPEC): Conditionally add -many.
23053 * config/rs6000/rs6000.c (rs6000_machine): New static var.
23054 (rs6000_machine_from_flags, emit_asm_machine): New functions..
23055 (rs6000_file_start): ..extracted from here, and modified to
23057 (rs6000_output_function_prologue): Emit .machine as necessary.
23059 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
23061 PR middle-end/90553
23062 * ira-lives.c (process_bb_node_lives): Consider defs
23063 for a call insn to be die before the call, not after.
23065 * function.c (assign_parm_setup_block): Raise alignment of
23066 stacked parameter only for STRICT_ALIGNMENT targets.
23068 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23070 * config/rs6000/constraints.md (define_register_constraint "wz"):
23072 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23073 RS6000_CONSTRAINT_wz.
23074 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23075 (rs6000_init_hard_regno_mode_ok): Adjust.
23076 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
23077 * doc/md.texi (Machine Constraints): Adjust.
23079 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23081 * config/rs6000/constraints.md (define_register_constraint "wl"):
23083 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23084 RS6000_CONSTRAINT_wl.
23085 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23086 (rs6000_init_hard_regno_mode_ok): Adjust.
23087 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
23088 * doc/md.texi (Machine Constraints): Adjust.
23090 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23092 * config/rs6000/constraints.md (define_register_constraint "wm"):
23094 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23095 RS6000_CONSTRAINT_wm.
23096 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23097 (rs6000_init_hard_regno_mode_ok): Adjust.
23098 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
23099 * doc/md.texi (Machine Constraints): Adjust.
23101 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23103 * config/rs6000/constraints.md (define_register_constraint "wk"):
23105 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23106 RS6000_CONSTRAINT_wk.
23107 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23108 (rs6000_init_hard_regno_mode_ok): Adjust.
23109 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
23110 * doc/md.texi (Machine Constraints): Adjust.
23112 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23114 * config/rs6000/constraints.md (define_register_constraint "wj"):
23116 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23117 RS6000_CONSTRAINT_wj.
23118 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23119 (rs6000_init_hard_regno_mode_ok): Adjust.
23120 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
23122 * config/rs6000/vsx.md: Ditto.
23123 * doc/md.texi (Machine Constraints): Adjust.
23125 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23127 * config/rs6000/constraints.md (define_register_constraint "wh"):
23129 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23130 RS6000_CONSTRAINT_wh.
23131 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23132 (rs6000_init_hard_regno_mode_ok): Adjust.
23133 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
23134 * doc/md.texi (Machine Constraints): Adjust.
23136 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23139 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
23140 Avoid calling gen_lowpart with CONST operand.
23142 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
23144 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
23145 field template_last_to_copy.
23146 (ssa_create_duplicates): Set it, and use it. Attempt to
23147 preserve more debug stmts.
23149 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23151 * config/i386/sse.md (VF1_AVX2): New mode iterator.
23152 (signbit<mode>2): New expander
23154 2019-05-21 James Clarke <jrtc27@jrtc27.com>
23157 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
23158 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
23160 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23162 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
23163 %ebx and %ecx bafore calling cpuid with leaf 1 or
23164 non-constant leaf argument.
23166 2019-05-21 Alan Modra <amodra@gmail.com>
23169 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
23170 power9 direct move cost.
23172 2019-05-21 Richard Biener <rguenther@suse.de>
23174 PR middle-end/90510
23175 * fold-const.c (fold_read_from_vector): New function.
23176 * fold-const.h (fold_read_from_vector): Declare.
23177 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
23178 single-element insert permutations. Canonicalize selector
23179 further and fix issue with last commit.
23181 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
23183 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
23184 parameter with default value false to declaration.
23185 (split_edges_for_insertion): New inline function. Wrapper for
23186 split_critical_edges with for_edge_insertion_p = true.
23187 * tree-cfg.c (split_critical_edges): Don't split non-critical
23188 edges if for_edge_insertion_p is false. Fix whitespace.
23189 * tree-ssa-pre.c (pass_pre::execute): Call
23190 split_edges_for_insertion instead of split_critical_edges.
23191 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
23192 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
23193 (pass_data_sink_code): Update function name in the comment.
23195 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
23197 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
23198 around is_value_included_in that knows how to handle BIT_AND_EXPR.
23199 (is_pred_expr_subset_of): Use the new function. Handle more cases where
23200 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
23203 2019-05-21 Martin Liska <mliska@suse.cz>
23205 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
23207 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
23208 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
23210 * config/rs6000/rs6000.c (rs6000_option_override_internal):
23212 (rs6000_function_arg): Likewise.
23213 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
23214 (rs6000_expand_ternop_builtin): Use interval syntax.
23215 (get_element_number): Likewise.
23216 (altivec_expand_builtin): Likewise.
23217 (rs6000_get_function_versions_dispatcher): Quote target_clones.
23219 2019-05-20 Jakub Jelinek <jakub@redhat.com>
23223 * function.h (struct function): Add calls_eh_return member.
23224 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
23225 gimplifying __builtin_eh_return call.
23226 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
23228 (expand_call_inline): Or in src_cfun->calls_eh_return into
23229 dst_cfun->calls_eh_return.
23230 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
23231 cfun->calls_eh_return.
23232 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
23233 * lto-streamer-out.c (output_struct_function_base): Write
23236 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
23238 PR rtl-optimization/43147
23239 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
23240 IX86_BUILTIN_SHUFPD.
23242 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
23244 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
23245 (refs_may_alias_p_1): ... here; update stats.
23246 (refs_may_alias_p): Do not update stats here.
23248 2019-05-20 Richard Biener <rguenther@suse.de>
23250 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
23251 doesn't produce pointers.
23252 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
23253 the first operand points to.
23255 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
23257 * tree-ssa-alias.c (compare_sizes): New function.
23258 (sompare_type_sizes): New function
23259 (aliasing_component_refs_p): Use it.
23260 (indirect_ref_may_alias_decl_p): Likewise.
23262 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23264 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
23266 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23268 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
23269 (LIBLSAN_EARLY_SPEC): Likewise.
23270 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
23272 2019-05-20 Martin Liska <mliska@suse.cz>
23274 * config/i386/i386.c (ix86_libc_has_fast_function):
23275 Add ATTRIBUTE_UNUSED for the argument.
23277 2019-05-20 Richard Biener <rguenther@suse.de>
23279 * gimple-match-head.c: Include vec-perm-indices.h.
23280 * generic-match-head.c: Likewise.
23281 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
23283 * fold-const.c (fold_vec_perm): Export.
23284 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
23285 (match.pd): ...here.
23287 2019-05-20 Jakub Jelinek <jakub@redhat.com>
23289 * cfgloop.h (struct loop): Add simdlen member.
23290 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
23291 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
23292 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
23293 as new argument to autovectorize_vector_sizes target hook. If
23294 loop->simdlen, pick up vector size where the vectorization factor
23295 is equal to loop->simd, and if there is none, fall back to the first
23297 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
23299 * omp-low.c (omp_clause_aligned_alignment): Likewise.
23300 * omp-general.c (omp_max_vf): Likewise.
23301 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
23302 * tree-vect-slp.c (vect_slp_bb): Likewise.
23303 * target.def (autovectorize_vector_sizes): Add ALL argument and
23305 * doc/tm.texi: Adjust documentation.
23306 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
23307 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
23308 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
23310 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
23311 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
23312 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
23313 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
23314 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
23315 preferred vector size is not 512-bit or 256-bit, just put those
23316 unpreferred ones last.
23318 2019-05-20 Martin Liska <mliska@suse.cz>
23320 * targhooks.c (default_libc_has_fast_function): New function.
23321 * targhooks.h (default_libc_has_fast_function): Likewise.
23323 2019-05-20 Martin Liska <mliska@suse.cz>
23325 PR middle-end/90263
23326 * builtins.c (expand_builtin_memory_copy_args): When having a
23327 target with fast mempcpy implementation do now use memcpy.
23328 * config/i386/i386.c (ix86_libc_has_fast_function): New.
23329 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
23330 * doc/tm.texi: Likewise.
23331 * doc/tm.texi.in: Likewise.
23333 * expr.c (emit_block_move_hints): Add 2 new arguments.
23334 * expr.h (emit_block_move_hints): Bail out when libcall
23335 to memcpy would be used.
23337 2019-05-20 Martin Liska <mliska@suse.cz>
23339 * profile-count.c: Add vertical spacing in order
23340 to separate functions.
23341 * profile-count.h: Likewise.
23343 2019-05-20 Martin Liska <mliska@suse.cz>
23345 * profile-count.h: Do not use full qualified
23347 * profile-count.c (profile_count::to_frequency): Likewise.
23349 2019-05-20 Martin Liska <mliska@suse.cz>
23351 * profile-count.h (enum profile_quality): Use capital letters
23352 for enum value names. Use the adjusted names.
23353 * profile-count.c: Use the adjusted names.
23355 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23357 * config/rs6000/constraints.md (define_register_constraint "wH"):
23359 (define_register_constraint "wI"): Delete.
23360 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23361 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
23362 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23363 (rs6000_init_hard_regno_mode_ok): Adjust.
23364 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
23365 resp. "d", or with "wa" as appropriate, all with "p8v".
23366 * config/rs6000/vsx.md: Ditto.
23367 * doc/md.texi (Machine Constraints): Adjust.
23369 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23371 * config/rs6000/constraints.md (define_register_constraint "wy"):
23373 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23374 RS6000_CONSTRAINT_wy.
23375 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23376 (rs6000_init_hard_regno_mode_ok): Adjust.
23377 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
23378 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
23379 (define_mode_attr Fisa): New.
23380 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
23381 * doc/md.texi (Machine Constraints): Adjust.
23383 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23385 * config/rs6000/constraints.md (define_register_constraint "wu"):
23387 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23388 RS6000_CONSTRAINT_wu.
23389 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23390 (rs6000_init_hard_regno_mode_ok): Adjust.
23391 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
23393 (define_mode_attr Fa): Delete.
23394 * config/rs6000/vsx.md: Ditto.
23395 * doc/md.texi (Machine Constraints): Adjust.
23397 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23399 * config/rs6000/constraints.md (define_register_constraint "wJ"):
23401 (define_register_constraint "wK"): Delete.
23402 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23403 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
23404 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23405 (rs6000_init_hard_regno_mode_ok): Adjust.
23406 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
23407 Replace "wK" constraint by "wH" with "p9v".
23408 * config/rs6000/vsx.md: Ditto.
23409 * doc/md.texi (Machine Constraints): Adjust.
23411 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23413 * config/rs6000/constraints.md (define_register_constraint "wb"):
23415 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23416 RS6000_CONSTRAINT_wb.
23417 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23418 (rs6000_init_hard_regno_mode_ok): Adjust.
23419 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
23420 * config/rs6000/vsx.md: Ditto.
23421 * doc/md.texi (Machine Constraints): Adjust.
23423 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23425 * config/rs6000/constraints.md (define_register_constraint "wo"):
23427 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23428 RS6000_CONSTRAINT_wo.
23429 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23430 (rs6000_init_hard_regno_mode_ok): Adjust.
23431 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
23432 * config/rs6000/altivec.md: Ditto.
23433 * doc/md.texi (Machine Constraints): Adjust.
23435 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
23437 * config/darwin-c.c (darwin_register_objc_includes): Do not
23438 prepend the sysroot when building gnu-runtime header search
23441 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
23443 * config/darwin.c (darwin_file_end): Use switch_to_section ()
23444 instead of direct output of the asm.
23446 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
23448 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
23449 argument to be type bool (was int before).
23450 (rs6000_emit_epilogue): Simplify some code. Declare some variables
23451 at first use. Use type bool for some variables. Fix a theoretical
23452 eh_return bug for svr4.
23454 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
23456 * config/rs6000/rs6000.md (isa): New attribute.
23457 (enabled): New attribute.
23459 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
23461 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
23462 assemble_start_function and assemble_end_function.
23464 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
23466 PR middle-end/89433
23467 * omp-general.c (oacc_verify_routine_clauses): Change formal
23468 parameters. Add checking if already marked with an OpenACC
23469 'routine' directive. Adjust all users.
23471 PR middle-end/89433
23472 * omp-general.c (oacc_build_routine_dims): Move some of its
23474 (oacc_verify_routine_clauses): ... this new function.
23475 * omp-general.h (oacc_verify_routine_clauses): New prototype.
23477 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
23479 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
23480 formating of picbase labels to match other ports.
23482 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
23484 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
23485 in the generated code.
23487 2019-05-16 Martin Sebor <msebor@redhat.com>
23489 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
23490 identifiers, keywords, operators, and types in diagnostics. Correct
23491 quoting, spelling, and sentence capitalization issues.
23492 (expand_builtin_atomic_is_lock_free): Same.
23493 (fold_builtin_next_arg): Same.
23494 * cfgexpand.c (expand_one_var): Same.
23495 (tree_conflicts_with_clobbers_p): Same.
23496 (expand_asm_stmt): Same.
23497 (verify_loop_structure): Same.
23498 * cgraphunit.c (process_function_and_variable_attributes): Same.
23499 * collect-utils.c (collect_execute): Same.
23500 * collect2.c (maybe_run_lto_and_relink): Same.
23501 (is_lto_object_file): Same.
23502 (scan_prog_file): Same.
23503 * convert.c (convert_to_real_1): Same.
23504 * dwarf2out.c (dwarf2out_begin_prologue): Same.
23505 * except.c (verify_eh_tree): Same.
23506 * gcc.c (execute): Same.
23507 (eval_spec_function): Same.
23508 (run_attempt): Same.
23509 (driver::set_up_specs): Same.
23510 (compare_debug_auxbase_opt_spec_function): Same.
23511 * gcov-tool.c (unlink_gcda_file): Same.
23513 (do_rewrite): Same.
23514 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
23515 * gimplify.c (gimplify_asm_expr): Same.
23516 (gimplify_adjust_omp_clauses): Same.
23517 * hsa-gen.c (gen_hsa_addr_insns): Same.
23518 (gen_hsa_insns_for_load): Same.
23519 (gen_hsa_cmp_insn_from_gimple): Same.
23520 (gen_hsa_insns_for_operation_assignment): Same.
23521 (gen_get_level): Same.
23522 (gen_hsa_alloca): Same.
23523 (omp_simple_builtin::generate): Same.
23524 (gen_hsa_atomic_for_builtin): Same.
23525 (gen_hsa_insns_for_call): Same.
23526 * input.c (dump_location_info): Same.
23527 * ipa-devirt.c (compare_virtual_tables): Same.
23528 * ira.c (ira_setup_eliminable_regset): Same.
23529 * lra-assigns.c (lra_assign): Same.
23530 * lra-constraints.c (lra_constraints): Same.
23531 * lto-streamer-in.c (lto_input_mode_table): Same.
23532 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
23533 (merge_and_complain): Same.
23534 (compile_offload_image): Same.
23535 (compile_images_for_offload_targets): Same.
23536 (debug_objcopy): Same.
23539 * opts.c (print_specific_help): Same.
23540 (parse_no_sanitize_attribute): Same.
23541 (print_help): Same.
23542 (handle_param): Same.
23543 * plugin.c (add_new_plugin): Same.
23544 (parse_plugin_arg_opt): Same.
23545 (try_init_one_plugin): Same.
23546 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
23547 operators, and types in diagnostics. Correct quoting and spelling
23549 * read-rtl-function.c (parse_edge_flag_token): Same.
23550 (function_reader::parse_enum_value): Same.
23551 * reg-stack.c (check_asm_stack_operands): Same.
23552 * regcprop.c (validate_value_data): Same.
23553 * sched-rgn.c (make_pass_sched_fusion): Same.
23554 * stmt.c (check_unique_operand_names): Same.
23555 * targhooks.c (default_target_option_pragma_parse): Same.
23556 * tlink.c (recompile_files): Same.
23557 * toplev.c (process_options): Same.
23558 (do_compile): Same.
23559 * trans-mem.c (diagnose_tm_1): Same.
23560 (ipa_tm_scan_irr_block): Same.
23561 (ipa_tm_diagnose_transaction): Same.
23562 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
23563 format a tree code name in a diagnostic.
23564 (verify_types_in_gimple_min_lval): Same.
23565 (verify_types_in_gimple_reference): Same.
23566 (verify_gimple_call): Same.
23567 (verify_gimple_assign_unary): Same.
23568 (verify_gimple_assign_binary): Same.
23569 (verify_gimple_assign_ternary): Same.
23570 (verify_gimple_assign_single): Same.
23571 (verify_gimple_switch): Same.
23572 (verify_gimple_label): Same.
23573 (verify_gimple_phi): Same.
23574 (verify_gimple_in_seq): Same.
23575 (verify_eh_throw_stmt_node): Same.
23576 (collect_subblocks): Same.
23577 (gimple_verify_flow_info): Same.
23578 (do_warn_unused_result): Same.
23579 * tree-inline.c (expand_call_inline): Same.
23580 * tree-into-ssa.c (update_ssa): Same.
23581 * tree.c (tree_int_cst_elt_check_failed): Same.
23582 (tree_vec_elt_check_failed): Same.
23583 (omp_clause_operand_check_failed): Same.
23584 (verify_type_variant): Same.
23585 (verify_type): Same.
23586 * value-prof.c (verify_histograms): Same.
23587 * varasm.c (assemble_start_function): Same.
23589 2019-05-16 Martin Sebor <msebor@redhat.com>
23591 * config/i386/i386-expand.c (get_element_number): Quote keywords
23592 and other internal names in diagnostics. Adjust other diagnostic
23593 formatting issues noted by -Wformat-diag.
23594 * config/i386/i386-features.c
23595 (ix86_mangle_function_version_assembler_name): Same.
23596 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
23597 * config/i386/i386.c (ix86_function_type_abi): Same.
23598 (ix86_function_ms_hook_prologue): Same.
23599 (classify_argument): Same.
23600 (ix86_expand_prologue): Same.
23601 (ix86_md_asm_adjust): Same.
23602 (ix86_memmodel_check): Same.
23604 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
23606 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
23607 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
23610 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
23613 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
23614 intrinsics without SSE/SSE2/SSSE3.
23615 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
23617 (*mmx_uavgv8qi3): Likewise.
23619 2019-05-17 Richard Biener <rguenther@suse.de>
23621 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
23622 VEC_PERM_EXPR as __VEC_PERM with -gimple.
23624 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
23626 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
23627 vec_sldw insn pattern.
23629 2019-05-17 Richard Biener <rguenther@suse.de>
23631 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
23633 2019-05-17 Martin Liska <mliska@suse.cz>
23636 * toplev.c (output_stack_usage): With LTO and sanitizer it
23637 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
23638 has no file location.
23640 2019-05-16 Jakub Jelinek <jakub@redhat.com>
23643 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
23644 sz0 is equal to sz1, instead return false in that case.
23646 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
23647 has non-constant expression, force sctx.lane and use two
23648 argument IFN_GOMP_SIMD_LANE instead of single argument.
23649 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
23650 two argument IFN_GOMP_SIMD_LANE without lhs.
23651 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
23653 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
23655 (LOOP_REQUIRES_VERSIONING): Or in
23656 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
23657 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23659 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
23660 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
23661 from simd if clause if needed.
23663 2019-05-16 Richard Biener <rguenther@suse.de>
23665 * tree-affine.c (expr_to_aff_combination): New function split
23667 (tree_to_aff_combination): ... here.
23668 (aff_combination_expand): Avoid building a GENERIC tree.
23670 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
23672 * cgraphunit.c (cgraph_node::expand_thunk): Remove
23673 assemble_start_function and assemble_end_function calls.
23674 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
23675 assemble_start_function and assemble_end_function.
23676 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
23677 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
23678 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
23679 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
23680 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
23681 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
23682 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
23683 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
23684 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
23685 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
23686 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
23687 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
23689 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
23690 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
23691 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
23692 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
23693 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
23694 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
23695 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
23696 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
23697 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
23698 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
23699 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
23700 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
23701 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
23702 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
23704 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
23705 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
23706 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
23708 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
23710 * tree-ssa-alias.c (alias_stats): Add
23711 aliasing_component_refs_p_may_alias and
23712 aliasing_component_refs_p_no_alias.
23713 (dump_alias_stats): Print aliasing_component_refs_p stats.
23714 (aliasing_component_refs_p): Update stats.
23716 2019-05-16 Martin Liska <mliska@suse.cz>
23719 * multiple_target.c (expand_target_clones): Do not allow
23720 target_clones being used with a symbol that is an alias.
23722 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
23724 PR tree-optimization/90394
23725 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
23726 positives rather than ICE for cases where (code2 == NE_EXPR
23727 && code1 == BIT_AND_EXPR).
23729 2019-05-16 Jakub Jelinek <jakub@redhat.com>
23732 * tree-core.h (struct tree_decl_common): Document
23733 decl_nonshareable_flag for PARM_DECLs.
23734 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
23735 * calls.c (expand_call): Don't try tail call if caller
23736 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
23737 passed on the stack and callee needs to pass any arguments on the
23739 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
23740 else if instead of series of mutually exclusive ifs. Handle
23741 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
23742 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
23744 * lto-streamer.h (LTO_major_version): Bump to 9.
23746 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
23748 PR tree-optimization/90106
23749 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
23750 new parameter as new internal function call, also move it to new
23752 (use_internal_fn): Pass internal function call to
23753 shrink_wrap_one_built_in_call_with_conds.
23755 2019-05-15 Jakub Jelinek <jakub@redhat.com>
23757 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
23759 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
23760 safelen_int and set loop->dont_vectorize.
23762 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23765 * config/i386/i386-builtin.def: Enable MMX intrinsics with
23767 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
23769 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
23770 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
23771 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
23774 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23777 * config/i386/mmx.md (*vec_dupv2sf): Changed to
23778 define_insn_and_split to support SSE emulation.
23779 (*vec_extractv2sf_0): Likewise.
23780 (*vec_extractv2sf_1): Likewise.
23781 (*vec_extractv2si_0): Likewise.
23782 (*vec_extractv2si_1): Likewise.
23783 (*vec_extractv2si_zext_mem): Likewise.
23784 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
23785 (vec_extractv2sf_1 splitter): Likewise.
23786 (vec_extractv2sfsf): Likewise.
23787 (vec_setv2si): Likewise.
23788 (vec_extractv2si_1 splitter): Likewise.
23789 (vec_extractv2sisi): Likewise.
23790 (vec_setv4hi): Likewise.
23791 (vec_extractv4hihi): Likewise.
23792 (vec_setv8qi): Likewise.
23793 (vec_extractv8qiqi): Likewise.
23794 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
23795 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
23796 (vec_extractv2sisi): Likewise.
23797 (vec_extractv4hihi): Likewise.
23798 (vec_extractv8qiqi): Likewise.
23799 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
23800 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
23801 (vec_initv2sisi): Likewise.
23802 (vec_initv4hihi): Likewise.
23803 (vec_initv8qiqi): Likewise.
23804 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
23805 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
23806 (vec_setv4hi): Likewise.
23807 (vec_setv8qi): Likewise.
23809 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23812 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
23813 TARGET_MMX_WITH_SSE.
23814 (MMXMODE:*mov<mode>_internal): Likewise.
23815 (MMXMODE:movmisalign<mode>): Likewise.
23817 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
23820 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
23821 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
23822 (sse2_cvtpd2pi): Ditto.
23823 (sse2_cvttpd2pi): Ditto.
23824 (*vec_concatv2sf_sse4_1): Ditto.
23825 (*vec_concatv2sf_sse): Ditto.
23826 (*vec_concatv2si_sse4_1): Ditto.
23827 (*vec_concatv2si): Ditto.
23828 (*vec_concatv4si_0): Ditto.
23829 (*vec_concatv2di_0): Ditto.
23831 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23834 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
23836 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23839 * config/i386/sse.md (ssse3_palignrdi): Changed to
23840 define_insn_and_split to support SSE emulation.
23842 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23845 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
23847 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23850 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
23851 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
23854 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23857 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
23858 or TARGET_MMX_WITH_SSE.
23859 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
23861 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23864 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
23866 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23869 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
23870 Changed to define_insn_and_split to support SSE emulation.
23872 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23875 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
23876 Changed to define_insn_and_split to support SSE emulation.
23878 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23881 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
23882 (*mmx_<emms>): This.
23883 (mmx_<emms>): New expander.
23885 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23888 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
23890 (*sse2_umulv1siv1di3): Add SSE2 emulation.
23892 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23895 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
23897 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23900 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
23902 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23905 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
23906 TARGET_MMX_WITH_SSE.
23907 (*mmx_uavgv4hi3): Add SSE emulation.
23909 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23912 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
23913 and TARGET_MMX_WITH_SSE.
23914 (*mmx_uavgv8qi3): Add SSE emulation.
23916 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23919 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
23920 maskmovdqu for __MMX_WITH_SSE__.
23922 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23925 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
23926 TARGET_MMX and TARGET_MMX_WITH_SSE.
23927 (*mmx_umulv4hi3_highpart): Add SSE emulation.
23929 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23932 * config/i386/mmx.md (mmx_pmovmskb): Changed to
23933 define_insn_and_split to support SSE emulation.
23935 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23938 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
23939 and TARGET_MMX_WITH_SSE.
23940 (mmx_<code>v8qi3): Likewise.
23941 (smaxmin:<code>v4hi3): New.
23942 (umaxmin:<code>v8qi3): Likewise.
23943 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
23944 (umaxmin:*mmx_<code>v8qi3): Likewise.
23946 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23949 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
23950 TARGET_MMX_WITH_SSE.
23951 (*mmx_pinsrw): Add SSE emulation.
23953 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23956 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
23958 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23961 * config/i386/sse.md (sse_cvtpi2ps): Changed to
23962 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
23965 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23968 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
23969 (sse_cvttps2pi): Likewise.
23971 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23974 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
23975 TARGET_MMX_WITH_SSE.
23976 (mmx_pshufw_1): Add SSE emulation.
23977 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
23978 TARGET_MMX_WITH_SSE to support SSE emulation.
23980 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23983 * config/i386/constraints.md (Yw): New constraint.
23984 * config/i386/mmx.md (*vec_dupv2si): Changed to
23985 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
23986 support SSE emulation.
23988 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23991 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
23992 TARGET_MMX_WITH_SSE.
23993 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
23995 (mmx_gt<mode>3): Likewise.
23997 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24000 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
24001 TARGET_MMX_WITH_SSE. Add SSE support.
24003 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24006 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
24007 TARGET_MMX_WITH_SSE.
24008 (any_logic:<code><mode>3): New.
24009 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
24012 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24015 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
24016 TARGET_MMX_WITH_SSE. Add SSE emulation.
24017 (mmx_<shift_insn><mode>3): Likewise.
24018 (ashr<mode>3): New.
24019 (<shift_insn><mode>3): Likewise.
24021 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24024 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
24025 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
24027 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24030 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
24031 TARGET_MMX_WITH_SSE.
24032 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
24035 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24038 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
24039 TARGET_MMX_WITH_SSE.
24041 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
24044 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24047 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
24048 (plusminus:mmx_<plusminus_insn><mode>3): Check
24049 TARGET_MMX_WITH_SSE.
24050 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
24051 (<plusminus_insn><mode>3): New.
24052 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
24053 (*mmx_<plusminus_insn><mode>3): Likewise.
24055 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24058 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
24059 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
24061 * config/i386/mmx.m (mmx_punpckhbw): Changed to
24062 define_insn_and_split to support SSE emulation.
24063 (mmx_punpcklbw): Likewise.
24064 (mmx_punpckhwd): Likewise.
24065 (mmx_punpcklwd): Likewise.
24066 (mmx_punpckhdq): Likewise.
24067 (mmx_punpckldq): Likewise.
24069 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24070 Uros Bizjak <ubizjak@gmail.com>
24073 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
24075 (ix86_split_mmx_pack): Likewise.
24076 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
24078 (ix86_split_mmx_pack): Likewise.
24079 * config/i386/i386.md (mmx_isa): New.
24080 (enabled): Also check mmx_isa.
24081 * config/i386/mmx.md (any_s_truncate): New code iterator.
24082 (s_trunsuffix): New code attr.
24083 (mmx_packsswb): Removed.
24084 (mmx_packssdw): Likewise.
24085 (mmx_packuswb): Likewise.
24086 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
24087 MMX packsswb/packuswb with SSE2.
24088 (mmx_packssdw): Likewise.
24089 * config/i386/predicates.md (register_mmxmem_operand): New.
24091 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24094 * config/i386/i386-c.c (ix86_target_macros_internal): Define
24095 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
24096 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
24097 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
24098 (ix86_vector_mode_supported_p): Likewise.
24099 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
24101 2019-05-15 Martin Liska <mliska@suse.cz>
24103 PR middle-end/90478
24104 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
24105 Check for overflow.
24107 2019-05-15 Richard Biener <rguenther@suse.de>
24109 * tree-into-ssa.c (pass_build_ssa::execute): Run
24110 update_address_taken before going into SSA.
24112 2019-05-15 Richard Biener <rguenther@suse.de>
24114 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
24115 as __BIT_FIELD_REF with type with -gimple.
24117 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
24119 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
24120 semantically equivalent branches (left over after prior refactorings).
24122 2019-05-15 Richard Biener <rguenther@suse.de>
24124 PR tree-optimization/88828
24125 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
24128 2019-05-14 Richard Biener <rguenther@suse.de>
24130 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
24131 as __VIEW_CONVERT with -gimple.
24133 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24136 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
24139 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
24141 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
24142 define_split to become a define_insn_and_split.
24144 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
24146 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
24148 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
24149 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
24150 (sibcall_epilogue): Adjust.
24151 (epilogue): Adjust.
24153 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24155 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
24156 to unsupported ones.
24157 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
24158 * config.host: Likewise.
24159 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
24160 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
24161 __svr4__]: Remove "brand" fallback.
24162 [!KSTAT_DATA_STRING]: Remove.
24163 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
24165 (comdat_group): Likewise.
24166 (set_have_as_tls): Likewise.
24167 (gcc_cv_target_dl_iterate_phdr): Likewise.
24168 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
24169 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
24170 * configure: Regenerate.
24171 * doc/install.texi: Simplify Solaris target triplets.
24172 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
24173 (Specific, *-*-solaris2*): Document Solaris 10 removal.
24174 Remove Solaris 10 references.
24175 Remove obsolete Solaris bug reference.
24176 (Specific, sparc-sun-solaris2.10): Remove.
24178 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
24180 * config/i386/i386.md (any_div): New code iterator.
24181 (paired_mod): New code attribute.
24182 (sgnprefix): Handle DIV and UDIV RTXes.
24184 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
24185 and udivmod<mode>4 patterns using any_div code iterator.
24186 (divmod splitters): Macroize splitters using any_div code iterator.
24187 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
24188 (*udivmodsi4_pow2_zext_2): Ditto.
24189 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
24190 and *udivmod<mode>4_noext patterns using any_div code iterator.
24191 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
24192 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
24193 patterns using any_div code iterator.
24194 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
24195 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
24196 patterns using any_div code iterator.
24197 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
24198 udivmodhiqi3 patterns using any_extend code iterator.
24200 2019-05-14 Richard Biener <rguenther@suse.de>
24201 H.J. Lu <hongjiu.lu@intel.com>
24203 PR tree-optimization/88828
24204 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
24205 permuting in a single non-constant element not extracted
24208 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24210 * internal-fn.def (SIGNBIT): New.
24211 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
24213 (signbitv4sf2): Likewise.
24215 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
24218 * config/mips/mips.c (mips_split_move): Skip forward SRC into
24219 next insn when the SRC reg is dead.
24221 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
24223 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
24224 (alloc_cand_and_find_basis): Ditto.
24225 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
24226 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
24227 (create_add_imm_cand, slsr_process_cast): Ditto.
24228 (slsr_process_copy, replace_mult_candidate): Ditto.
24229 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
24230 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
24231 (pass_strength_reduction::execute): Init the first NULL element.
24233 2019-05-13 Nathan Sidwell <nathan@acm.org>
24235 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
24236 (run_attempt): Reformat line break.
24238 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
24241 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
24242 data registers in sibcall epilogues.
24243 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
24245 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
24248 * configure.ac (--enable-frame-pointer):
24249 Disable by default for cygwin and mingw.
24250 * configure: Regenerate.
24252 2019-05-13 Nathan Sidwell <nathan@acm.org>
24254 * dwarf2out.c (breakout_comdat_types): Move comment to correct
24256 (const_ok_for_output_1): Balance parens around #if/#else/#endif
24257 (gen_member_die): Move abstract origin check earlier. Only VARs
24258 can be static_inline_p. Simplify splicing control flow.
24260 2019-05-13 Richard Biener <rguenther@suse.de>
24262 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
24264 (vect_build_slp_tree_1): Likewise.
24266 2019-05-13 Richard Biener <rguenther@suse.de>
24268 PR tree-optimization/90402
24269 * tree-if-conv.c (tree_if_conversion): Value number only
24270 the loop body by making the latch an exit of the region
24272 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
24274 (do_rpo_vn): Deal with multiple edges into the entry block
24275 that are not backedges inside the region by skipping PHIs
24276 of the entry block.
24278 2019-05-13 Richard Biener <rguenther@suse.de>
24280 PR tree-optimization/90316
24281 * tree-ssa-pre.c (insert_aux): Fold into ...
24282 (insert): ... this function. Use a RPO walk to reduce the
24283 number of required iterations.
24285 2019-05-13 Martin Liska <mliska@suse.cz>
24287 PR tree-optimization/90416
24288 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
24289 string instead of passing the second part as va_arg argument.
24291 2019-05-13 Martin Liska <mliska@suse.cz>
24293 PR gcov-profile/90380
24294 * gcov.c (handle_cycle): Do not support zero cycle count,
24295 it should not be possible.
24296 (path_contains_zero_cycle_arc): New function.
24297 (circuit): Ignore zero cycle arc counts.
24299 2019-05-13 Martin Liska <mliska@suse.cz>
24301 PR gcov-profile/90380
24302 * gcov.c (enum loop_type): Remove the enum and
24304 (handle_cycle): Assert that we should not reach
24306 (circuit): Use loop_found instead of a tri-state loop_type.
24307 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
24310 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24313 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
24314 (ix86_output_indirect_branch_via_reg): Use output mechanism
24315 accounting for __USER_LABEL_PREFIX__.
24316 (ix86_output_indirect_branch_via_push): Likewise.
24317 (ix86_output_function_return): Likewise.
24318 (ix86_output_indirect_function_return): Likewise.
24320 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
24322 * doc/md.texi: Document use of code attributes in rtx patterns.
24323 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
24324 * read-rtl.c (find_code): Split out search loops into...
24325 (maybe_find_code): ...this new function.
24326 (check_code_iterator): Make the error message more informative.
24327 (check_code_attribute): New function.
24328 (rtx_reader::rtx_alloc_for_name): Likewise.
24329 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
24330 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
24331 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
24332 <max_opp> directly as an rtx code instead of via a match_operator.
24333 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
24334 (<su>abd<mode>_3): Update accordingly.
24336 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24338 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
24339 is given, print the state of the EH "save world" computation for
24342 2019-05-11 Jakub Jelinek <jakub@redhat.com>
24345 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
24346 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
24348 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
24350 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
24351 Use pinsrd for TARGET_SSE4_1.
24352 * config/i386/sse.md (movdi_to_sse): Ditto.
24354 2019-05-10 Richard Biener <rguenther@suse.de>
24356 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
24357 (do_rpo_vn): Initialize next_value_id.
24359 2019-05-10 Martin Liska <mliska@suse.cz>
24361 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
24364 2019-05-10 Jakub Jelinek <jakub@redhat.com>
24366 PR tree-optimization/90385
24367 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
24368 arguments of the exit phis.
24371 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
24372 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
24374 (copy_tree_body_r): Likewise.
24375 (copy_fn): Set id.do_not_fold to true.
24377 2019-05-10 Martin Liska <mliska@suse.cz>
24379 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
24380 Reapply changes from r269790.
24382 2019-05-10 Martin Liska <mliska@suse.cz>
24384 PR middle-end/90340
24385 * doc/invoke.texi: New params.
24386 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
24387 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
24388 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
24390 * tree-switch-conversion.h (struct jump_table_cluster):
24393 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
24395 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
24397 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
24399 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
24401 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
24403 PR rtl-optimization/88879
24404 * sel-sched.c (sel_target_adjust_priority): Remove assert.
24406 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
24409 * config/arm/arm.c (callee_saved_reg_p): Move before
24410 thumb_find_work_register.
24411 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
24412 thumb_find_work_register. Only call df_get_live_out once.
24413 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
24414 (thumb_find_work_register): Use
24415 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
24416 algorithms to locate a spare call clobbered reg.
24418 2019-05-09 Martin Liska <mliska@suse.cz>
24420 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
24421 and MAX_EXPR in GIMPLE FE format.
24423 2019-05-09 Martin Liska <mliska@suse.cz>
24425 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
24426 * gimple-pretty-print.c (dump_gimple_bb_header):
24428 (pp_cfg_jump): Dump edge probability.
24429 * profile-count.c (profile_quality_as_string): Simplify
24430 with a static array.
24431 (parse_profile_quality): New function.
24432 (profile_count::dump): Simplify with a static array.
24433 (profile_count::from_gcov_type): Add new argument.
24434 * profile-count.h (parse_profile_quality): Likewise.
24435 * predict.h (set_hot_bb_threshold): New.
24436 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
24438 * predict.c (get_hot_bb_threshold): Set from the new param.
24439 (set_hot_bb_threshold): New.
24441 2019-05-09 Richard Biener <rguenther@suse.de>
24443 PR tree-optimization/90395
24444 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
24445 rewrite vector stores that throw internally.
24447 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
24449 * cif-code.def (CHKP): Remove.
24452 * configure.ac (--enable-frame-pointer): Disable by default for
24454 * configure: Regenerate.
24456 2019-05-09 Alan Modra <amodra@gmail.com>
24459 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
24460 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
24461 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
24462 cost for general <-> vsx when direct moves are available.
24463 Cost union classes at minimal cost for any reg in the class.
24464 Correct calculation for moves between vsx, float, and altivec.
24465 Don't return a low cost for moves between special regs. Don't
24466 use hard coded register numbers.
24467 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
24468 (rs6000_ira_change_pseudo_allocno_class): New function.
24469 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
24470 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
24472 (movsi_internal1): Don't disparage vector alternatives.
24473 (mov<mode>_internal): Likewise, excepting alternative that
24475 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
24476 we <- b alternative.
24478 2019-05-08 Jakub Jelinek <jakub@redhat.com>
24481 PR tree-optimization/89060
24482 * tree-ssa-live.h (live_vars_map): New typedef.
24483 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
24484 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
24485 (struct compute_live_vars_data): New type.
24486 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
24487 live_vars_at_stmt, destroy_live_vars): New functions.
24488 * tree-tailcall.c: Include tree-ssa-live.h.
24489 (live_vars, live_vars_vec): New global variables.
24490 (find_tail_calls): Perform variable life analysis before punting.
24491 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
24492 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
24494 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
24495 Perform variable life analysis to select variables that really need
24497 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
24498 instead set id->eh_landing_pad_dest and assert it is the same.
24499 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
24501 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
24502 Richard Earnshaw <rearnsha@arm.com>
24505 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
24507 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
24508 (thumb1_compute_save_core_reg_mask): Don't force a spare work
24509 register if both the epilogue and prologue can use call-clobbered
24511 (thumb1_unexpanded_epilogue): Use
24512 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
24513 picking temporaries for restoring high regs to match that of the
24514 prologue where possible.
24515 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
24516 the list of work registers. Detect if the return address is still live
24517 at the end of the prologue and avoid using it for a work register if so.
24518 If the return address is not live, add LR to the list of pushable regs
24519 after the first pass.
24521 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
24523 PR tree-optimization/90078
24524 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
24525 (INFTY): Increase the value for infinite cost.
24526 (struct comp_cost): Promote type of members to int64_t.
24527 (infinite_cost): Don't set complexity in initialization.
24528 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
24529 overflows to infinite_cost.
24530 (adjust_setup_cost): Promote type of parameter and cost computation
24532 (struct ainc_cost_data, struct iv_ca): Promote type of member to
24534 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
24535 cost computation to int64_t.
24536 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
24537 int64_t's format specifier in dump.
24539 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
24541 PR tree-optimization/90240
24542 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
24543 with respect to scaling factor pre-computed for each basic block.
24544 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
24545 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
24546 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
24547 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
24548 live range for array of loop's basic blocks. Cleanup aux field of
24549 loop's basic blocks.
24551 2019-05-08 Jakub Jelinek <jakub@redhat.com>
24553 PR tree-optimization/90356
24554 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
24556 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
24558 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
24559 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
24560 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
24561 (ix86_handle_option): Handle -mavx512bf16.
24562 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
24564 * config/i386/avx512bf16vlintrin.h: New.
24565 * config/i386/avx512bf16intrin.h: New.
24566 * config/i386/cpuid.h (bit_AVX512BF16): New.
24567 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
24568 * config/i386/i386-builtin-types.def: Add new types.
24569 * config/i386/i386-builtin.def: Add new builtins.
24570 * config/i386/i386-c.c (ix86_target_macros_internal): Define
24572 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
24573 (ix86_option_override_internal): Handle BF16.
24574 (ix86_valid_target_attribute_inner_p): Ditto.
24575 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
24576 * config/i386/i386-builtin.c (enum processor_features): Add
24578 (static const _isa_names_table isa_names_table): Ditto.
24579 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
24580 (PTA_AVX512BF16): Ditto.
24581 * config/i386/i386.opt: Add -mavx512bf16.
24582 * config/i386/immintrin.h: Include avx512bf16intrin.h
24583 and avx512bf16vlintrin.h.
24584 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
24585 avx512f_cvtneps2bf16_<mode><mask_name>,
24586 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
24587 * config/i386/subst.md (mask_half): Add new subst.
24588 * doc/invoke.texi: Document -mavx512bf16.
24590 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
24592 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
24593 Delete declaration.
24594 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
24595 (rs6000_debug_legitimize_reload_address): Delete.
24596 (rs6000_legitimize_reload_address_ptr): Delete.
24597 (rs6000_option_override_internal): Adjust.
24598 (mem_operand_gpr): Adjust comment.
24599 (legitimate_lo_sum_address_p): Ditto.
24600 (rs6000_legitimize_reload_address): Delete.
24601 (rs6000_debug_legitimize_reload_address): Delete.
24602 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
24604 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
24607 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24608 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
24609 to compute vector element selector for both constant and variable
24612 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
24614 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
24615 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
24616 ashrdi3_cvt using SWI48 mode iterator.
24618 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24620 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
24621 (aarch64_<su>abd<mode>_3): Likewise.
24622 (*aarch64_<su>abd<mode>_3): New define_insn.
24623 (<sur>sad<vsi2qi>): New define_expand.
24624 * config/aarch64/iterators.md: Added MAX_OPP attribute.
24625 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
24626 (build_vect_cond_expr): Likewise.
24628 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
24630 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
24631 clobbers outside of accessible_reg_set.
24632 * config/i386/i386.c (ix86_conditional_register_usage):
24633 Disable register sets by clearing corresponding bits in
24634 accessible_reg_set. Do not set corresponding bits in fixed_regs,
24635 call_used_regs and don't clear corresponding reg_names array members.
24637 2019-05-07 Richard Biener <rguenther@suse.de>
24639 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
24640 not specified still compute a comp_vectype for invariant
24643 2019-05-07 Richard Biener <rguenther@suse.de>
24645 PR tree-optimization/90316
24646 * tree-ssa-pre.c (translate_vuse_through_block): When
24647 same_valid is NULL do not bother to search for a virtual
24649 (phi_translate_1): When operands changed we cannot keep
24650 the same value-number so do not bother to ask whether
24651 that's possible from translate_vuse_through_block.
24653 2019-05-07 Martin Liska <mliska@suse.cz>
24655 * bitmap.c (bitmap_register): Come up with
24656 alloc_descriptor_max_uid and assign it for
24658 (register_overhead): Use get_descriptor as
24660 (release_overhead): New.
24661 (bitmap_elem_to_freelist): Call it.
24662 (bitmap_elt_clear_from): Likewise.
24663 (bitmap_obstack_free): Likewise.
24664 (bitmap_move): Sensitively release memory.
24665 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
24666 (bitmap_initialize): Initialize alloc_descriptor to zero.
24667 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
24669 2019-05-07 Richard Biener <rguenther@suse.de>
24671 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
24672 we build a SLP node. Remove max_size and limiting.
24673 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
24675 2019-05-07 Richard Biener <rguenther@suse.de>
24677 PR tree-optimization/90316
24678 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
24679 limit by reference.
24680 (walk_non_aliased_vuses): Take walking limit argument.
24681 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
24682 walking if it is reached instead of just counting.
24683 (get_continuation_for_phi): Likewise.
24684 (walk_non_aliased_vuses): Likewise, instead of leaving counter
24685 limiting to the callback.
24686 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
24687 (vn_reference_lookup_3): Likewise.
24688 (vn_reference_lookup_pieces): Likewise.
24689 (vn_reference_lookup): Likewise.
24690 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
24691 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
24692 (avail_exprs_stack::lookup_avail_expr): Likewise.
24694 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
24696 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
24697 for comparaible types in the second direction even if first one
24698 hits incomparable type.
24700 2019-05-07 Richard Biener <rguenther@suse.de>
24703 * lto-wrapper.c (debug_objcopy): Use the original filename
24704 including archive offset for the filename used for -save-temps.
24706 2019-05-07 Li Jia He <helijia@linux.ibm.com>
24708 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
24711 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
24712 Hongtao Liu <hongtao.liu@intel.com>
24716 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
24717 Modified, original implementation isn't correct.
24719 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24721 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
24722 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
24723 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
24724 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
24725 (FRAME_POINTER_REGNUM): Change numbering.
24726 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
24727 (alt_reg_names): Adjust.
24728 (rs6000_conditional_register_usage): Don't mark hard register 64 as
24730 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
24731 (DWARF_FRAME_REGISTERS): Delete.
24732 (DWARF2_FRAME_REG_OUT): Fix whitespace.
24733 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
24735 (REG_ALLOC_ORDER): Adjust.
24736 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
24737 (REG_CLASS_CONTENTS): Adjust.
24738 (RETURN_ADDR_RTX): Change comment.
24739 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
24741 (REGISTER_NAMES): Adjust.
24742 (ADDITIONAL_REGISTER_NAMES): Adjust.
24743 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
24745 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24747 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
24749 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
24750 (DWARF_FRAME_REGISTERS): Adjust.
24751 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
24753 (REG_ALLOC_ORDER): Adjust.
24754 (enum reg_class): Delete SPR_REGS.
24755 (REG_CLASS_NAMES): Delete SPR_REGS.
24756 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
24757 (REGISTER_NAMES): Adjust.
24758 (ADDITIONAL_REGISTER_NAMES): Adjust.
24759 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
24760 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
24761 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
24762 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
24763 (htm_spr_regno): Delete.
24764 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
24766 (rs6000_dbx_register_number): Adjust.
24768 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24770 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
24772 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24774 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
24775 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
24777 2019-05-06 Jakub Jelinek <jakub@redhat.com>
24779 PR tree-optimization/88709
24780 PR tree-optimization/90271
24781 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
24782 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
24783 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
24785 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
24786 of the store merging group is larger than
24787 PARAM_STORE_MERGING_MAX_SIZE parameter.
24788 (split_group): Add bzero_first argument. If set, always emit first
24789 the first store which must be = {} of the whole area and then for the
24790 rest of the stores consider all zero bytes as paddings.
24791 (imm_store_chain_info::output_merged_store): Check if first store
24792 is = {} of the whole area and if yes, determine which setting of
24793 bzero_first for split_group gives smaller number of stores. Adjust
24794 split_group callers.
24795 (lhs_valid_for_store_merging_p): Allow decls.
24796 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
24798 (pass_store_merging::process_store): Likewise.
24800 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
24803 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
24804 handling of V1TImode.
24806 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
24809 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
24810 and enable_frame_pointer ...
24811 * configure.ac: ... here. Update help strings for
24812 --enable-frame-pointer.
24813 * configure: Regenerate.
24814 * config/i386/i386-options.c (ix86_option_override_internal): Remove
24815 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
24816 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
24817 (USE_X86_64_FRAME_POINTER): Ditto.
24819 2019-05-06 Martin Liska <mliska@suse.cz>
24821 * config.gcc: Append to target_gtfiles and fix indentation.
24823 2019-05-06 Richard Biener <rguenther@suse.de>
24825 PR tree-optimization/90358
24826 * tree-vect-stmts.c (get_group_load_store_type): Properly
24827 detect unused upper half of load.
24828 (vectorizable_load): Likewise.
24830 2019-05-06 Richard Biener <rguenther@suse.de>
24832 PR tree-optimization/88828
24833 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
24834 (simplify_vector_constructor): ...here. Handle constants in
24837 2019-05-06 Richard Biener <rguenther@suse.de>
24839 PR tree-optimization/90328
24840 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
24841 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
24842 is valid in the loop nest before using it.
24843 (initialize_data_dependence_relation): Adjust.
24844 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
24845 loop as loop-nest to dr_may_alias_p.
24847 2019-05-06 Richard Biener <rguenther@suse.de>
24849 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
24851 2019-05-06 Richard Biener <rguenther@suse.de>
24853 PR tree-optimization/90316
24854 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
24855 compute target on demand.
24856 (get_continuation_for_phi): Remove code walking stmts to
24857 get to a target virtual operand which could end up being
24860 2019-05-06 Martin Liska <mliska@suse.cz>
24863 * config/i386/i386-options.c (ix86_option_override_internal): Error only
24864 when -mabi is selected to a non-default version.
24866 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
24867 Martin Liska <mliska@suse.cz>
24869 * Makefile.in: Add lto-dump.texi.
24870 * cgraph.h: Add new functions get_visibility_string and
24871 get_symtab_type_string.
24872 * doc/gcc.texi: Include lto-dump section.
24873 * doc/lto-dump.texi: New file.
24874 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
24875 (parse_dump_option): Factor out this function.
24876 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
24877 (parse_dump_option): Export the function.
24878 * symtab.c (symtab_node::get_visibility_string): New function.
24879 (symtab_node::get_symtab_type_string): Likewise.
24881 2019-05-06 Martin Liska <mliska@suse.cz>
24883 * config/i386/i386-builtins.c: New file.
24884 * config/i386/i386-builtins.h: New file.
24885 * config/i386/i386-expand.c: New file.
24886 * config/i386/i386-expand.h: New file.
24887 * config/i386/i386-features.c: New file.
24888 * config/i386/i386-features.h: New file.
24889 * config/i386/i386-options.c: New file.
24890 * config/i386/i386-options.h: New file.
24891 * config.gcc: Add new files into extra_objs and
24893 * config/i386/i386.c: Split content of the file
24894 into newly introduced files.
24895 * config/i386/i386.h: Declare common variables
24897 * config/i386/t-i386: Define dependencies for new files.
24899 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
24902 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
24903 Restrict 'all' variant to 32-bit configurations.
24904 (unaligned_loadhiu): Likewise.
24905 (unaligned_storehi): Likewise.
24906 (unaligned_storesi): Likewise.
24907 (unaligned_loadhis): Disable when compiling for thumb1.
24909 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
24911 PR tree-optimization/90269
24912 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
24915 2019-05-03 Martin Liska <mliska@suse.cz>
24917 * hash-map.h: Add is_empty function.
24918 * hash-set.h: Likewise.
24919 * hash-table.h: Likewise.
24920 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
24921 elements () == 0 (and similar usages).
24922 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
24923 * gimplify.c (gimplify_bind_expr): Likewise.
24924 (gimplify_switch_expr): Likewise.
24925 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
24926 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
24927 * postreload-gcse.c (dump_hash_table): Likewise.
24928 (gcse_after_reload_main): Likewise.
24929 * predict.c (combine_predictions_for_bb): Likewise.
24930 * tree-parloops.c (reduction_phi): Likewise.
24931 (separate_decls_in_region): Likewise.
24932 (transform_to_exit_first_loop): Likewise.
24933 (gen_parallel_loop): Likewise.
24934 (gather_scalar_reductions): Likewise.
24935 (try_create_reduction_list): Likewise.
24936 * var-tracking.c (dump_vars): Likewise.
24937 (emit_notes_for_changes): Likewise.
24938 (vt_emit_notes): Likewise.
24940 2019-05-03 Richard Biener <rguenther@suse.de>
24942 PR tree-optimization/90316
24943 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
24946 2019-05-03 Richard Biener <rguenther@suse.de>
24948 * tree-vect-stmts.c (get_group_load_store_type): Avoid
24949 peeling for gaps by loading only lower halves of vectors
24951 (vectorizable_load): Likewise.
24953 2019-05-03 Richard Biener <rguenther@suse.de>
24955 PR middle-end/89518
24956 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
24958 2019-05-03 Richard Biener <rguenther@suse.de>
24960 PR middle-end/87314
24961 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
24962 Handle STRING_CST vs DECL or STRING_CST.
24964 2019-05-03 Richard Biener <rguenther@suse.de>
24966 PR tree-optimization/88963
24967 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
24968 vector loads feeding only BIT_FIELD_REFs to component
24969 loads. Rewrite stores fed by CONSTRUCTORs to component
24972 2019-05-03 Jakub Jelinek <jakub@redhat.com>
24974 * opts.h (finish_options): Remove lang_mask argument.
24975 (print_help, help_option_argument): Declare.
24976 * opts.c (print_help): Remove forward declaration, no longer static.
24977 (finish_options): Remove lang_mask argument, don't call print_help
24979 * opts-global.c (decode_options): Adjust finish_option caller, call
24982 PR tree-optimization/90303
24983 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
24984 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
24986 2019-05-03 Richard Biener <rguenther@suse.de>
24988 PR tree-optimization/89698
24989 * gimple-fold.c (canonicalize_constructor_val): Early out
24990 for constants, handle unfolded INTEGER_CSTs as they appear in
24991 C++ virtual table ctors.
24993 2019-05-03 Richard Biener <rguenther@suse.de>
24995 * passes.c (execute_function_todo): Remove dead code.
24997 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
24999 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
25000 the internal register number, for any "real" register.
25002 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
25004 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
25005 correct numbers for TFHAR, TFIAR, TEXASR.
25007 2019-05-02 Richard Biener <rguenther@suse.de>
25009 PR tree-optimization/89653
25010 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
25011 update-address-taken before the pass.
25012 * passes.def (pass_tree_loop_init): Put comment before it.
25014 2019-05-02 Richard Biener <rguenther@suse.de>
25016 PR tree-optimization/89509
25017 * tree-ssa-structalias.c (compute_dependence_clique): Look
25018 at the first subvar when determining whether it is restrict.
25020 2019-05-02 Richard Biener <rguenther@suse.de>
25022 PR tree-optimization/90273
25023 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
25024 useless debug stmts.
25026 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25028 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
25030 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
25032 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
25033 VEC_COND_EXPR be inserted to emulate a conditional internal function.
25034 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
25035 (vectorizable_reduction): Use the functions above to vectorize in a
25036 fully masked loop codes that don't have a conditional internal
25039 2019-05-02 Martin Liska <mliska@suse.cz>
25041 * cgraphclones.c: Call valid_attribute_p with 1 for
25043 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
25044 it's for target attribute.
25045 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
25046 Add new boolean argument.
25047 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
25049 (ix86_valid_target_attribute_tree): Pass target_clone_attr
25050 to ix86_valid_target_attribute_inner_p.
25051 (ix86_valid_target_attribute_p): Pass flags argument to
25052 ix86_valid_target_attribute_inner_p.
25053 (get_builtin_code_for_version): Use 0 as it's target attribute.
25055 2019-05-02 Martin Liska <mliska@suse.cz>
25057 * gcc.c (process_command): Add dummy file only
25059 * opts-global.c (decode_options): Pass lang_mask.
25060 * opts.c (print_help): New function.
25061 (finish_options): Print --help if help_option_argument
25063 (common_handle_option): Factor out content of OPT__help_
25065 * opts.h (finish_options): Add new argument.
25067 2019-05-02 Martin Liska <mliska@suse.cz>
25070 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
25071 With -minline-all-stringops use inline expansion using 4B loop.
25072 * doc/invoke.texi: Document the change of
25073 -minline-all-stringops.
25075 2019-05-01 Jeff Law <law@redhat.com>
25077 PR tree-optimization/88797
25078 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
25079 PHI feeds a conditional on the RHS of an assignment.
25081 2019-04-30 Andrew Waterman <andrew@sifive.com>
25082 Jim Wilson <jimw@sifive.com>
25084 * config/riscv/constraints.md (L): New.
25085 * config/riscv/predicates.md (lui_operand): New.
25086 (sfb_alu_operand): New.
25087 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
25088 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
25089 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
25090 * config/riscv/risc.md (type): Add sfb_alu.
25091 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
25092 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
25093 (branch_zero<mode>): Delete.
25094 (mov<mode>cc): New.
25095 (mov<GPR:mode><X:mode>cc): Likewise.
25096 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
25098 2019-04-30 Nathan Sidwell <nathan@acm.org>
25100 * tree.h (MARK_TS_EXP): New.
25102 2019-04-30 Martin Liska <mliska@suse.cz>
25104 * opts.c (enable_warning_as_error): Provide hints
25105 for unknown options.
25107 2019-04-30 Martin Liska <mliska@suse.cz>
25110 * doc/invoke.texi: Add missing dash for gas-locview-support
25111 and gno-as-locview-support.
25113 2019-04-30 Jakub Jelinek <jakub@redhat.com>
25116 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
25117 whitespace at the start of target attribute string.
25119 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25122 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25123 Define __ARM_FEATURE_ATOMICS.
25125 2019-04-30 Martin Liska <mliska@suse.cz>
25127 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
25128 into built_in_function enum. Remove code for endp == 2 and
25129 use BUILT_IN_* constants.
25130 (gimple_fold_builtin): Call the function with fcode.
25132 2019-04-30 Martin Liska <mliska@suse.cz>
25134 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
25135 DECL_FUNCTION_CODE into ix86_builtins enum before
25136 the switch statement.
25138 2019-04-30 Jakub Jelinek <jakub@redhat.com>
25140 PR tree-optimization/89475
25141 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
25144 2019-04-30 Martin Liska <mliska@suse.cz>
25146 PR translation/90274
25147 * opts.c (print_filtered_help): Wrap string in _(...).
25149 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
25151 PR tree-optimization/90240
25153 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25155 PR tree-optimization/90078
25156 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
25157 checks for infinite_cost overflow.
25159 2019-04-29 Jeff Law <law@redhat.com>
25161 * passes.def: Move -Wrestrict pass after copy propagation.
25163 2019-04-29 Maya Rashish <coypu@sdf.org>
25165 * config.gcc (default_gnu_indirect_function): Default to yes
25166 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
25167 sparc*-*-netbsd*, x86_64-*-netbsd*.
25169 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
25171 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
25172 where cond2 is NE_EXPR.
25173 (is_value_included_in): Update comment.
25175 2019-04-29 Richard Biener <rguenther@suse.de>
25177 PR tree-optimization/90278
25178 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
25179 EH on comparison simplification.
25181 2019-04-29 Jason Merrill <jason@redhat.com>
25183 PR c++/82081 - tail call optimization breaks noexcept
25184 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
25185 nothrow function to a might-throw function into a tail call.
25187 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
25189 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
25190 (DDR_INNER_LOOP): Likewise.
25191 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
25192 (initialize_data_dependence_relation): Likewise.
25193 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
25195 2019-04-29 Jakub Jelinek <jakub@redhat.com>
25197 PR rtl-optimization/90257
25198 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
25202 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
25206 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
25209 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
25212 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
25214 * lra-spills.c (lra_final_code_change): Remove useless move insns.
25216 2019-04-29 Richard Biener <rguenther@suse.de>
25218 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
25221 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
25223 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
25224 varasm.h, and netbsd-protos.h.
25226 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
25229 * config/i386/i386-protos.h (ix86_data_alignment): Change
25230 the second argument type to unsigned int.
25231 * config/i386/i386.c (ix86_data_alignment): Change "align"
25232 argument type to unsigned int.
25234 2019-04-27 Martin Liska <mliska@suse.cz>
25236 PR middle-end/90258
25237 * opt-suggestions.c (option_proposer::build_option_suggestions):
25238 When get_valid_option_values returns empty values, add the
25239 misspelling candidate.
25241 2019-04-26 Jim Wilson <jimw@sifive.com>
25243 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
25245 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
25246 Pass orig_mode to riscv_build_integer.
25247 (riscv_split_integer): Pass mode to riscv_move_integer.
25248 (riscv_legitimize_const_move): Likewise.
25249 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
25250 promoted_mode. Replace force_reg call with code to load constant into
25251 promoted reg and then subreg it for the store.
25252 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
25253 riscv_move_integer.
25255 2018-04-26 Eugene Sharygin <eush@ispras.ru>
25257 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
25260 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
25262 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
25263 commentary about the encoding of precision.
25265 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
25267 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
25268 * config/i386/t-freebsd64: New file.
25269 * config.gcc: Add the t-freebsd64 for multilib support.
25271 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
25273 * doc/extend.texi (vector_size): Add missing comma after @xref.
25275 2019-04-25 Jakub Jelinek <jakub@redhat.com>
25277 * BASE-VER: Set to 10.0.0.
25279 2019-04-25 Richard Biener <rguenther@suse.de>
25281 PR middle-end/89765
25282 * gimplify.c (gimplify_expr): Avoid turning a lvalue
25283 VIEW_CONVERT_EXPR into one operating on an rvalue.
25285 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
25288 * config/i386/i386.c (feature_priority): Moved to file scope.
25289 (processor_features): Likewise.
25290 (processor_model): Likewise.
25291 (_arch_names_table): Likewise.
25292 (arch_names_table): Likewise.
25293 (_feature_list): Removed.
25294 (feature_list): Likewise.
25295 (_isa_names_table): Moved to file scope. Add priority.
25296 (isa_names_table): Likewise.
25297 (get_builtin_code_for_version): Replace feature_list with
25298 isa_names_table. Update error message for P_ZERO priority.
25300 2019-04-25 Richard Biener <rguenther@suse.de>
25302 * tree-pass.h (make_pass_phi_only_cprop): Remove.
25303 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
25305 2019-04-24 Jeff Law <law@redhat.com>
25307 PR tree-optimization/90037
25308 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
25309 * passes.def: Replace all instance of phi-only cprop with the
25310 lattice propagator. Move propagation pass from after erroneous
25311 path isolation to before erroneous path isolation.
25312 * tree-ssa-phionlycprop.c: Remove.
25314 2019-04-24 Richard Biener <rguenther@suse.de>
25316 PR middle-end/90213
25317 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
25318 by size and BITS_PER_UNIT on poly-wide-ints.
25320 2019-04-25 Richard Biener <rguenther@suse.de>
25322 PR middle-end/90194
25323 * match.pd: Add pattern to simplify view-conversion of an
25326 2019-04-24 Clement Chigot <clement.chigot@atos.net>
25328 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
25329 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
25330 for Go on 32 bit AIX.
25331 * config/rs6000/aix72.h: Likewise.
25333 2019-04-24 Jakub Jelinek <jakub@redhat.com>
25336 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
25337 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
25339 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
25342 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
25343 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
25344 for restored hard frame pointer.
25345 (s390_sched_dependencies_evaluation): Implement new target hook.
25346 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
25348 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
25350 * config/arc/arc-options.def: Fix typos and spelling mistakes.
25351 * config/arc/arc.c (arc_init): Cleanup warning message.
25352 (arc_override_options): Likewise.
25354 2019-04-24 Jakub Jelinek <jakub@redhat.com>
25357 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
25358 a register if both if_true and if_false are MEMs.
25360 PR tree-optimization/90208
25361 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
25362 after labels of new_bb, not before them.
25364 PR tree-optimization/90211
25365 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
25366 which are not SSA_NAMEs.
25368 2018-04-23 Sudakshina Das <sudi.das@arm.com>
25370 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
25372 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
25374 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
25376 PR rtl-optimization/87979
25377 * modulo-sched.c (sms_schedule): Start ii value "mii" should
25380 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
25382 PR rtl-optimization/84032
25383 * modulo-sched.c (ps_insn_find_column): Change condition so that
25384 branch will always be the last insn in a row inside partial
25387 2019-04-23 Richard Biener <rguenther@suse.de>
25390 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
25391 dest_single_pred_p argument.
25392 (remove_forwarder_block): Adjust.
25393 (remove_forwarder_block_with_phi): Likewise.
25395 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25396 Bernd Edlinger <bernd.edlinger@hotmail.de>
25397 Jakub Jelinek <jakub@redhat.com>
25400 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
25401 if used with general-regs-only.
25402 (arm_conditional_register_usage): Don't add non-general regs if
25404 (arm_valid_target_attribute_rec): Handle general-regs-only.
25405 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
25407 (TARGET_HARD_FLOAT_SUB): Define.
25408 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
25409 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
25410 (TARGET_REALLY_IWMMXT2): Likewise.
25411 * config/arm/arm.opt: Add -mgeneral-regs-only.
25412 * doc/extend.texi: Document ARM general-regs-only target.
25413 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
25415 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25417 PR tree-optimization/90078
25418 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
25419 checks for infinite_cost overflow.
25421 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25423 PR tree-optimization/90021
25424 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
25425 and check univariate against it.
25426 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
25427 * tree-data-ref.c (add_other_self_distances): Pass new argument.
25429 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
25433 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
25436 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
25439 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
25441 * lra-spills.c (lra_final_code_change): Remove useless move insns.
25443 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
25445 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
25446 names using operand format, rather than hard-wired.
25447 (speculation_barrier): Likewise.
25449 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
25451 PR tree-optimization/88055
25452 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
25453 (gen_one_condition): Use it if !HONOR_NANS.
25455 2019-04-19 Jakub Jelinek <jakub@redhat.com>
25457 PR middle-end/90139
25458 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
25459 assign_temp instead of gen_reg_rtx.
25461 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
25463 PR translation/90118
25464 * config/aarch64/aarch64.c (aarch64_override_options_internal):
25465 Add missing space before %<.
25467 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
25469 PR rtl-optimization/87871
25470 * ira-lives.c (make_object_dead): Don't add conflicts to
25471 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
25473 2019-04-18 Martin Sebor <msebor@redhat.com>
25475 PR middle-end/89797
25476 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
25477 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
25478 assuming type size fits in SHWI.
25480 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
25483 * ipa-inline.c (flatten_function): New parameter UPDATE.
25484 (ipa_inline, early_inliner): Use it.
25486 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
25488 * fold-const.c (int_const_binop): Return early on failure.
25490 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
25492 PR middle-end/85164
25493 * combine.c (force_int_to_mode): Cast the argument rather than
25494 the result of known_alignment.
25495 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
25497 2019-04-18 Richard Biener <rguenther@suse.de>
25500 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
25502 (remove_forwarder_block): ... here.
25503 (remove_forwarder_block_with_phi): Also move debug stmts here.
25505 2019-04-18 Jakub Jelinek <jakub@redhat.com>
25507 PR translation/79183
25508 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
25509 inform where appropriate.
25511 2019-04-18 Richard Biener <rguenther@suse.de>
25513 * tree.c (get_qualified_type): Put found type variants at the
25514 head of the variant list.
25516 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
25518 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
25520 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
25523 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
25524 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
25525 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
25526 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
25527 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
25529 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
25531 * ira-conflicts.c (print_allocno_conflicts): Always print something,
25532 even for allocno's with no conflicts.
25533 (print_conflicts): Print an extra newline.
25535 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
25537 * auto-inc-dec.c (attempt_change): Set the alignment of the
25538 temporary memory to that of the original.
25540 2019-04-17 Joao Moreira <jmoreira@suse.de>
25542 * targhooks.c (default_print_patchable_function_entry): Emit
25543 __patchable_function_entries section with writable flags to allow
25544 relocation resolution.
25546 2019-04-17 Jonny Grant <jg@jguk.org>
25548 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
25550 2019-04-17 Jakub Jelinek <jakub@redhat.com>
25552 PR middle-end/90095
25553 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
25554 on lowpart SUBREGs.
25556 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
25558 * config/arc/arc.c (arc_init): Format diagnostic string.
25559 (arc_override_options): Likewise.
25560 (check_if_valid_regno_const): Likewise.
25561 (arc_reorg): Likewise.
25563 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
25566 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
25568 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
25570 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
25571 (*movdi_update1): Use Pmode.
25572 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
25573 (movdi_<mode>_update_stack): Rename to ...
25574 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
25576 (*movsi_update1): Use Pmode.
25577 (*movsi_update2): Use Pmode.
25578 (movsi_update): Rename to ...
25579 (movsi_<mode>_update): ... this. Use Pmode.
25580 (movsi_update_stack): Fix condition.
25581 (*movhi_update1): Use Pmode. Fix argument to
25582 avoiding_indexed_address_p.
25583 (*movhi_update2): Ditto.
25584 (*movhi_update3): Ditto.
25585 (*movhi_update4): Ditto.
25586 (*movqi_update1): Ditto.
25587 (*movqi_update2): Ditto.
25588 (*movqi_update3): Ditto.
25589 (*movsf_update1, *movdf_update1): Merge, rename to...
25590 (*mov<mode>_update1): This. Use Pmode. Fix argument to
25591 avoiding_indexed_address_p. Add "size" attribute.
25592 (*movsf_update2, *movdf_update2): Merge, rename to...
25593 (*mov<mode>_update2): This. Ditto.
25594 (*movsf_update3): Use Pmode. Fix argument to
25595 avoiding_indexed_address_p.
25596 (*movsf_update4): Ditto.
25597 (allocate_stack): Simplify condition. Adjust pattern names.
25599 2019-04-17 Jakub Jelinek <jakub@redhat.com>
25602 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
25603 whitespace at the start of target attribute string.
25605 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
25608 * config/rs6000/power9.md: Add store forwarding bypass.
25610 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
25613 * valtrack.c (dead_debug_insert_temp): Reset debug references
25614 to the return value of a call being removed.
25616 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25618 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
25619 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
25620 implement target hook.
25621 (arc_memory_move_cost): New function.
25622 (TARGET_REGISTER_MOVE_COST): Define.
25623 (TARGET_MEMORY_MOVE_COST): Likewise.
25624 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
25625 (MEMORY_MOVE_COST): Likewise.
25627 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25629 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
25630 (sibcall_value_insn): Likewise.
25631 * config/arc/constraints.md (Rs5): Remove.
25633 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25635 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
25636 for last two fake registers.
25637 (arc_conditional_register_usage): Make sure fake frame and arg
25638 pointer regs are in general regs class.
25639 (FRAME_POINTER_MASK): Remove.
25640 (RETURN_ADDR_MASK): Remove.
25641 (arc_must_save_register): Use hard frame regnum.
25642 (frame_restore_reg): Use hard_frame_pointer_rtx.
25643 (arc_save_callee_saves): Likewise.
25644 (arc_restore_callee_saves): Likewise.
25645 (arc_save_callee_enter): Likewise.
25646 (arc_restore_callee_leave): Likewise.
25647 (arc_save_callee_milli): Likewise.
25648 (arc_eh_return_address_location): Likewise.
25649 (arc_check_multi): Use hard frame regnum.
25650 (arc_can_eliminate): Likewise.
25651 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
25652 for register allocator.
25653 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
25654 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
25655 (FRAME_POINTER_REGNUM): Change it to a fake register.
25656 (HARD_FRAME_POINTER_REGNUM): Defined.
25657 (ARG_POINTER_REGNUM): Change it to a new fake register.
25658 (ELIMINABLE_REGS): Update.
25659 (REGISTER_NAMES): Update names.
25660 * config/arc/arc.md (LP_START): Remove.
25661 (LP_END): Likewise.
25662 (shift_si3_loop): Update pattern.
25664 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25666 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
25667 to avoid delay slot scheduling.
25668 (arc_must_save_register): Don't save SP.
25669 * config/arc/arc.md (stack_tie): Remove.
25670 (UNSPEC_ARC_STKTIE): Likewise.
25672 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
25673 Shiva Chen <shiva0217@gmail.com>
25675 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
25676 code gen with large shift amount.
25678 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
25680 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
25683 2019-04-16 Jakub Jelinek <jakub@redhat.com>
25686 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
25687 print -m64/-mx32/-m32 if it is true.
25688 (ix86_debug_options, ix86_function_specific_print): Pass true as
25689 ADD_ABI_P to ix86_target_string.
25690 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
25691 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
25692 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
25694 PR rtl-optimization/90082
25695 * dce.c (can_delete_call): New function.
25696 (deletable_insn_p, mark_insn): Use it.
25698 PR tree-optimization/90090
25699 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
25701 (is_division_by_square): Likewise. Formatting fix.
25703 2019-04-16 Richard Biener <rguenther@suse.de>
25705 PR tree-optimization/56049
25706 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
25707 equality check if alias-set zero will prevail.
25709 2019-04-15 Jeff Law <law@redhat.com>
25711 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
25712 size and alignment as unsigned.
25714 2019-04-15 Richard Biener <rguenther@suse.de>
25717 * tree-loop-distribution.c (destroy_loop): Preserve correct
25720 2019-04-15 Richard Biener <rguenther@suse.de>
25722 PR tree-optimization/90071
25723 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
25724 abnormal operands from def stmts.
25726 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
25728 PR rtl-optimization/89794
25729 * combine.c (count_auto_inc): New function.
25730 (try_combine): Count how many auto_inc expressions there were in the
25731 original instructions. Ensure we have the same number in the new
25732 instructions. Remove the code that tried to ensure auto_inc side
25733 effects on i1 and i0 are not lost.
25735 2019-04-15 Richard Biener <rguenther@suse.de>
25738 * tree.h (auto_var_p): Declare.
25739 * tree.c (auto_var_p): New function, split out from ...
25740 (auto_var_in_fn_p): ... here.
25741 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
25743 (new_var_info): Initialize it.
25744 (set_uids_in_ptset): Also set the shadow variable uid if required.
25745 (ipa_pta_execute): Postprocess points-to solutions assigning
25746 shadow variable uids for locals that may reach their containing
25747 function recursively.
25748 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
25749 assert but instead check whether the points-to solution is
25752 2019-04-15 Martin Jambor <mjambor@suse.cz>
25755 * cgraph.c (clone_of_p): Loop over clone chain for each step in
25758 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
25760 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
25762 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
25763 Kito Cheng <kito.cheng@gmail.com>
25764 Shiva Chen <shiva0217@gmail.com>
25766 * config/nds32/nds32-md-auxiliary.c
25767 (nds32_legitimize_pic_address): Use new PIC pattern.
25768 (nds32_legitimize_tls_address): Use new TLS pattern.
25769 (nds32_output_symrel): New.
25770 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
25771 (nds32_alloc_relax_group_id): Ditto.
25772 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
25773 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
25775 (nds32_group_tls_insn): Ditto.
25776 (nds32_group_float_insns): Ditto.
25777 * config/nds32/nds32.md (tls_le): New.
25780 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
25782 * configure: Add nds32 target for dwarf2 debug_line checking.
25783 * configure.ac: Regenerated.
25785 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
25788 * ipa-devirt.c (skip_in_fields_list_p): New.
25789 (odr_types_equivalent_p): Use it.
25791 2019-04-13 Jakub Jelinek <jakub@redhat.com>
25794 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
25795 instead of strncmp when checking for thumb and arm. Formatting fixes.
25797 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
25799 * doc/install.texi: Document --with-target-system-zlib.
25801 2019-04-12 Martin Sebor <msebor@redhat.com>
25807 * targhooks.c (default_vector_alignment): Avoid assuming
25808 argument fits in SHWI.
25809 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
25810 a shift expression.
25811 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
25813 2019-04-12 Jakub Jelinek <jakub@redhat.com>
25815 PR rtl-optimization/89965
25816 * dce.c: Include rtl-iter.h.
25817 (struct check_argument_load_data): New type.
25818 (check_argument_load): New function.
25819 (find_call_stack_args): Check for loads from stack slots still tracked
25820 in sp_bytes and punt if any is found.
25822 * config/mips/loongson-mmiintrin.h: Fix up #error message.
25824 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
25826 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
25827 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
25829 2019-04-12 Martin Liska <mliska@suse.cz>
25831 PR middle-end/89970
25832 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
25834 (separate_attrs): Handle multiple 'default's.
25835 (expand_target_clones): Rework error handling code.
25837 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
25840 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
25841 mode of vector rather than mode of destination for move instruction.
25842 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
25843 Use QI inner mode with V16QI vector mode.
25845 2019-04-12 Jakub Jelinek <jakub@redhat.com>
25848 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
25849 "invalid %%t operand" in output_operand_lossage message.
25851 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
25853 * config/s390/predicates.md (permute_pattern_operand): New
25855 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
25856 operand for the permute pattern.
25857 ("*vec_perm<mode>"): New insn definition.
25858 ("bswap<mode>"): Generate the permute pattern operand in the
25859 expander and perform the operand reloads for pre arch13 level
25861 ("*bswap<mode>_emu"): Rename to ...
25862 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
25863 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
25864 Add the USE operand for the permute pattern.
25865 ("*vec_set_bswap_vec<mode>"): Likewise.
25867 2019-04-12 Jakub Jelinek <jakub@redhat.com>
25870 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
25871 and gcc_unreachable if it fails, just call tree_to_uhwi which
25872 verifies that too. Test TREE_CHAIN instead of list_length > 1.
25873 Start warning message with a lower-case letter. Formatting fixes.
25875 PR rtl-optimization/90026
25876 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
25877 successors, look for BARRIERs inside of the whole BB_FOOTER chain
25878 rather than just at the start of it. If e->src BB_FOOTER is not NULL
25879 in cfglayout mode, use emit_barrier_after_bb.
25881 2018-04-11 Steve Ellcey <sellcey@marvell.com>
25883 PR rtl-optimization/87763
25884 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
25887 2019-04-11 Tom de Vries <tdevries@suse.de>
25889 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
25890 max macro using statement expression.
25892 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
25894 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
25895 * xcoffout.c (xcoff_private_rodata_section_name): Define.
25896 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
25897 read_only_private_data_section using xcoff_private_rodata_section_name.
25898 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
25900 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
25903 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
25905 2019-04-11 Jakub Jelinek <jakub@redhat.com>
25907 PR rtl-optimization/89965
25908 * dce.c (sp_based_mem_offset): New function.
25909 (find_call_stack_args): Use sp_based_mem_offset.
25911 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
25913 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
25915 2019-04-11 Richard Biener <rguenther@suse.de>
25917 PR tree-optimization/90020
25918 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
25919 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
25920 * tree-ssa-pre.c (compute_avail): Use it to not put
25921 possibly trapping references after a call that might not
25922 return into EXP_GEN.
25923 * gcse.c (compute_hash_table_work): Do not elide
25924 marking a block containing a call if the call might not
25927 2019-04-11 Richard Biener <rguenther@suse.de>
25929 PR tree-optimization/90018
25930 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
25931 Test both SLP and interleaving variants.
25933 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
25935 * config/s390/8561.md: New file.
25936 * config/s390/driver-native.c (s390_host_detect_local_cpu):
25937 Add arch13 cpu model.
25938 * config/s390/s390-opts.h (enum processor_type): Likewise.
25939 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
25940 (s390_get_unit_mask): Likewise.
25941 (s390_is_fpd): Likewise.
25942 (s390_is_fxd): Likewise.
25943 * config/s390/s390.h (s390_tune_attr): Likewise.
25944 * config/s390/s390.md: Include arch13 pipeline description.
25945 * config/s390/s390.opt: Add arch13.
25947 2018-04-10 Steve Ellcey <sellcey@marvell.com>
25949 PR rtl-optimization/87763
25950 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
25952 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
25954 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
25956 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
25957 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
25958 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
25959 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
25961 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
25963 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
25964 "Although" in -fipa-icf documentation.
25966 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
25967 of using multiple -g options.
25969 2019-04-10 Martin Liska <mliska@suse.cz>
25971 PR gcov-profile/89959
25972 * doc/gcov.texi: Make documentation of -x option
25975 2019-04-10 Richard Biener <rguenther@suse.de>
25977 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
25979 (DR_GROUP_SAME_DR_STMT): Remove.
25980 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
25981 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
25982 replace with assert.
25983 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
25984 (vect_record_grouped_load_vectors): Remove unreachable code.
25986 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
25989 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
25990 obsolete reference to N.
25992 2019-04-10 Jakub Jelinek <jakub@redhat.com>
25994 PR middle-end/90025
25995 * expr.c (store_expr): Set properly size on the MEM passed to
25999 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
26000 with strlen in between hostsz-3 and hostsz-1 inclusive when no
26001 translation is needed, and when translation is needed, only append
26002 ... if the string length is hostsz or more bytes long. Avoid using
26005 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
26008 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
26009 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
26011 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
26012 differences directly.
26013 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
26015 2019-04-09 Jakub Jelinek <jakub@redhat.com>
26017 PR translation/90011
26018 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
26020 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
26022 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
26023 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
26024 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
26025 trailing space from -gsplit-dwarf diagnostics.
26027 PR tree-optimization/89998
26028 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
26029 instead of integer_type_node if possible, don't add ranges if return
26030 type is not compatible with int.
26031 * gimple-fold.c (gimple_fold_builtin_sprintf,
26032 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
26035 2019-04-09 Martin Liska <mliska@suse.cz>
26037 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
26038 * doc/install.texi: Document the new config.
26040 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
26042 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
26043 use gimple_expr_type for load and store calls. Skip over the
26044 condition argument in a conditional internal function.
26045 Protect use of TREE_INT_CST_LOW.
26047 2019-04-09 Jakub Jelinek <jakub@redhat.com>
26050 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
26051 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
26052 trailing period from it too.
26054 2019-04-08 wu yuan <wuyuan5@huawei.com>
26056 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
26057 * config/aarch64/aarch64.md: Add "tsv110.md".
26058 * config/aarch64/tsv110.md: New file.
26060 2019-04-08 Richard Biener <rguenther@suse.de>
26062 PR tree-optimization/90006
26063 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
26066 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
26069 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
26071 (fma_root_node): Likewise.
26072 (func_fma_steering): Likewise.
26074 2019-04-08 Jakub Jelinek <jakub@redhat.com>
26076 PR rtl-optimization/89865
26077 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
26079 PR rtl-optimization/89865
26080 * config/i386/i386.md
26081 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
26082 numbers not to clash with the additional operands[4].
26083 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
26084 with extra register copy in the middle.
26086 2019-04-08 Martin Liska <mliska@suse.cz>
26088 PR gcov-profile/89961
26089 * doc/gcov.texi: Document data_file.
26090 * gcov.c (generate_results): Add data_info into JSON output.
26092 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
26094 PR tree-optimization/89725
26095 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
26096 loop's chrec as invariant symbol.
26097 * tree-chrec.h (chrec_contains_symbols): New parameter.
26098 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
26099 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
26100 function of loops not in DDR's loop_nest.
26101 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
26103 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
26106 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
26109 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
26112 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26113 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
26115 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
26117 * sched-deps.c (sched_macro_fuse_insns): Check return value of
26118 targetm.fixed_condition_code_regs.
26120 2019-04-05 Richard Biener <rguenther@suse.de>
26124 * tree-cfgcleanup.c (remove_forwarder_block): Always move
26125 debug bind stmts but reset them if they are not valid at the
26128 2019-04-05 Martin Liska <mliska@suse.cz>
26130 PR translation/89936
26131 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
26132 order to wrap keywords or arguments.
26133 * collect2.c (main): Likewise.
26134 (scan_prog_file): Likewise.
26135 (scan_libraries): Likewise.
26136 * common/config/riscv/riscv-common.c
26137 (riscv_subset_list::parsing_subset_version): Likewise.
26138 (riscv_subset_list::parse_std_ext): Likewise.
26139 * config/aarch64/aarch64.c (aarch64_override_options_internal):
26141 * config/arm/arm.c (arm_option_override): Likewise.
26142 * config/cris/cris.c (cris_print_operand): Likewise.
26143 * config/darwin-c.c (darwin_pragma_options): Likewise.
26144 (darwin_pragma_unused): Likewise.
26145 (darwin_pragma_ms_struct): Likewise.
26146 * config/ft32/ft32.c (ft32_print_operand): Likewise.
26147 * config/i386/i386.c (print_reg): Likewise.
26148 (ix86_print_operand): Likewise.
26149 * config/i386/xm-djgpp.h: Likewise.
26150 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
26151 * config/m32c/m32c.c (m32c_option_override): Likewise.
26152 * config/msp430/msp430.c (msp430_option_override): Likewise.
26153 * config/nds32/nds32.c (nds32_option_override): Likewise.
26154 * config/nvptx/mkoffload.c (main): Likewise.
26155 * config/rx/rx.c (rx_print_operand): Likewise.
26156 (valid_psw_flag): Likewise.
26157 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
26158 (vms_pragma_nomember_alignment): Likewise.
26159 (vms_pragma_extern_model): Likewise.
26160 * lto-wrapper.c (compile_offload_image): Likewise.
26161 * omp-offload.c (oacc_parse_default_dims): Likewise.
26162 * symtab.c (symtab_node::verify_base): Likewise.
26163 * tlink.c (recompile_files): Likewise.
26164 (start_tweaking): Likewise.
26165 * tree-profile.c (parse_profile_filter): Likewise.
26167 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
26169 PR tree-optimization/89956
26170 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
26171 multiple negates of the same value.
26173 2019-04-04 Martin Sebor <msebor@redhat.com>
26175 PR middle-end/89957
26176 PR middle-end/89911
26177 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
26178 have the same precision since the function crashes otherwise.
26179 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
26180 has non-zero arguments.
26182 2019-04-04 Martin Sebor <msebor@redhat.com>
26184 PR middle-end/89934
26185 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
26186 out if the number of arguments is less than expected.
26188 2019-04-04 Jeff Law <law@redhat.com>
26190 PR rtl-optimization/89399
26191 * ree.c (combine_set_extension): Use single_set rather than
26192 digging into PATTERN for items on the candidate list.
26193 (combine_reaching_defs): Likewise.
26195 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
26197 PR rtl-optimization/46590
26198 * loop-invariant.c (find_defs): Move df_remove_problem and
26199 df_process_deferred_rescans to move_invariants.
26200 Move df_live_add_problem and df_live_set_all_dirty calls
26201 to move_invariants.
26202 (move_invariants): Likewise.
26203 (move_loop_invariants): Likewise, making the df_live calls
26204 conditional on -O. Remove the problem again if we added it
26207 2019-04-03 qing zhao <qing.zhao@oracle.com>
26209 PR tree-optimization/89730
26210 * ipa-inline.c (can_inline_edge_p): Delete the checking for
26211 -flive-patching=inline-only-static.
26212 (can_inline_edge_by_limits_p): Add the checking for
26213 -flive-patching=inline-only-static and grant always_inline
26214 even when -flive-patching=inline-only-static is specified.
26216 2019-04-03 Jeff Law <law@redhat.com>
26218 PR rtl-optimization/81025
26219 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
26221 2019-04-03 Richard Biener <rguenther@suse.de>
26223 PR tree-optimization/84101
26224 * tree-vect-stmts.c: Include explow.h for hard_function_value,
26225 regs.h for hard_regno_nregs.
26226 (cfun_returns): New helper.
26227 (vect_model_store_cost): When vectorizing a store to a decl
26228 we return and the function ABI returns in a multi-reg location
26229 account for the possible spilling that will happen.
26231 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
26233 * config/s390/s390.c (s390_legitimate_address_p): Reject long
26234 displacement addresses for vector mode operands.
26236 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
26238 * config/arc/arc.c (GMASK_LEN): Define.
26239 (arc_restore_callee_saves): Restore first blink when
26242 2019-04-03 Sudakshina Das <sudi.das@arm.com>
26244 * doc/extend.texi: Add deprecated comment on sign-return-address
26245 function attribute and add mbranch-protection.
26246 * doc/invoke.texi: Add bti to the options for mbranch-protection.
26248 2019-04-03 Richard Biener <rguenther@suse.de>
26251 * lto-wrapper.c (run_gcc): Avoid implicit rules making
26252 the all target phony.
26254 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
26258 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
26259 Return false for variable DImode shifts.
26260 (dimode_scalar_chain::compute_convert_gain): Do not handle
26261 register count operand in variable DImode shifts.
26262 (dimode_scalar_chain::make_vector_copies): Remove support to copy
26263 count argument of a variable shift instruction to a vector register.
26264 (dimode_scalar_chain::convert_reg): Remove support to convert
26265 count argument of a variable shift instruction.
26267 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
26269 PR rtl-optimization/84206
26270 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
26271 iterating over loop headers.
26273 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
26275 PR rtl-optimization/85876
26276 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
26277 beyond the original fence.
26279 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
26281 * config.gcc: Mark spu* targets as deprecated/obsolete.
26283 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26285 * config/s390/s390-builtin-types.def: New builtin function type
26286 definitions. Remove unused types.
26287 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
26288 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
26289 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
26290 overloaded builtins.
26291 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
26292 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
26293 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
26294 (vec_double, vec_signed, vec_unsigned): Define to use the new
26295 overloaded builtins.
26296 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
26299 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26301 * config/s390/s390-builtin-types.def: New builtin function type
26303 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
26304 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
26305 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
26306 (s390_vstrszh, s390_vstrszf): New low-level builtins.
26307 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
26308 constant definitions.
26309 * config/s390/vecintrin.h (vec_search_string_cc)
26310 (vec_search_string_until_zero_cc): New builtin name definitions.
26311 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
26313 ("vec_vstrs<mode>"): New insn definition.
26315 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26317 * config/s390/s390-builtin-types.def: Add new builtin function
26319 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
26320 New overloaded builtins.
26321 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
26323 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
26324 (UNSPEC_VEC_SLDBYTE): ... this.
26325 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
26326 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
26328 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
26329 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
26330 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
26332 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26334 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
26335 New insn definition.
26336 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
26337 * config/s390/vector.md (V_HW_HSD): ... here.
26339 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26341 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
26342 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
26343 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
26344 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
26345 New insn definitions.
26347 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26349 * config/s390/s390-builtin-types.def: Add new builtin function type.
26350 * config/s390/s390-builtins.def: Add overloaded builtin
26351 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
26352 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
26353 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
26354 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
26355 ("eltswap<mode>"): New expander.
26356 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
26359 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26361 * config/s390/s390-builtin-types.def: Add new builtin function types.
26362 * config/s390/s390-builtins.def: Add overloaded builtin
26363 s390_vec_revb. Add low-level builtins for vlbr and vstbr
26365 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
26366 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
26367 ("bswap<mode>"): New expander.
26368 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
26370 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26372 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
26373 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
26374 vector builtin version number in __VEC__.
26376 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26378 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
26380 (SFSI): New mode attribute.
26381 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
26382 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
26384 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
26385 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
26386 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
26387 ("floatsi<mode>2"): Add wcefb instruction.
26389 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26391 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
26392 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
26394 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
26395 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
26396 support 32 bit fp-int conversions. Rename to ...
26397 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
26398 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
26399 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
26400 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
26403 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26405 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
26406 if-then-else constructs if we can use the select instruction.
26407 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
26409 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26411 * config/s390/s390.md ("*popcountdi_arch13_cc")
26412 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
26414 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
26415 Append _z196 to make it ...
26416 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
26417 ("popcounthi2_z196"): ... this.
26418 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
26419 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
26421 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26423 * config/s390/s390.c (s390_canonicalize_comparison): Convert
26424 certain compares for arch13 in order to make use of the condition
26425 code result produced by the new instructions.
26426 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
26427 nxrk, and nxgrk instruction patterns.
26428 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
26429 (inv_no): Add new code iterator together with some attributes.
26430 ("*andc_split_<mode>"): Disable splitter for arch13.
26431 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
26432 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
26433 ("*<ANDOR:bitops_name>c<GPR:mode>")
26434 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
26435 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
26436 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
26437 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
26439 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26441 * common/config/s390/s390-common.c (processor_flags_table): New
26443 * config.gcc: Support arch13 with the --with-arch= configure flag.
26444 * config/s390/driver-native.c (s390_host_detect_local_cpu):
26445 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
26446 * config/s390/s390.c (s390_get_sched_attrmask)
26447 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
26448 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
26449 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
26450 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
26451 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
26453 * config/s390/s390.opt: Support arch13 as processor type in
26454 command line options.
26456 2019-04-02 Martin Liska <mliska@suse.cz>
26458 PR translation/89912
26459 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
26460 Fix param description of graphite-max-arrays-per-scop.
26462 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
26464 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
26465 (ASAN_CC1_SPEC): Use it in 64-bit mode.
26466 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
26468 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
26470 PR rtl-optimization/85412
26471 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
26472 sel_sched_region_1, not after.
26474 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
26476 PR rtl-optimization/86928
26477 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
26478 compute_live if necessary.
26479 (sel_redirect_edge_and_branch): Likewise.
26481 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
26483 PR rtl-optimization/89865
26484 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
26485 register if it is a part of small class.
26487 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
26489 PR rtl-optimization/87273
26490 * sel-sched-ir.c (merge_fences): Remove assert.
26492 2019-04-01 Richard Biener <rguenther@suse.de>
26494 PR tree-optimization/46590
26495 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
26496 (dom_walker::m_reachability): Add in place of...
26497 (dom_walker::m_skip_unreachable_blocks): ...this.
26498 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
26499 Move complex initialization ...
26500 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
26501 lazily and initialize edge flags on each invocation.
26502 (dom_walker::bb_reachable): Use m_reachability.
26504 2019-04-01 Martin Liska <mliska@suse.cz>
26507 * opt-suggestions.c (option_proposer::build_option_suggestions):
26508 Add variant without any argument in order to provide better
26511 2019-04-01 Richard Biener <rguenther@suse.de>
26514 * gimple.c: Include langhooks.h.
26515 (gimple_get_alias_set): Treat enumeral types as the underlying
26518 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
26519 Eric Botcazou <ebotcazou@adacore.com>
26521 PR rtl-optimization/89862
26522 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
26523 that operates on the full registers for WORD_REGISTER_OPERATIONS
26526 2019-03-29 Jim Wilson <jimw@sifive.com>
26528 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
26529 Clear MASK_RVC and then set if C subset supported.
26531 2019-03-29 Jakub Jelinek <jakub@redhat.com>
26534 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
26535 non-addressable complit into its initializer if it is volatile.
26537 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
26539 * opts-common.c (integral_argument): Set errno properly in one case.
26541 2019-03-29 Martin Liska <mliska@suse.cz>
26543 * doc/invoke.texi: Remove -Wchkp from documentation.
26545 2019-03-29 Martin Liska <mliska@suse.cz>
26547 * dbgcnt.c (print_limit_reach): New function.
26550 2019-03-29 Martin Liska <mliska@suse.cz>
26552 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
26553 (dbg_cnt_process_opt): Parse first tokens aas
26554 dbg_cnt_process_single_pair is also using strtok.
26556 2019-03-29 Jakub Jelinek <jakub@redhat.com>
26558 PR rtl-optimization/87485
26559 * function.c (expand_function_end): Move stack_protect_epilogue
26560 before loading of return value into hard register(s).
26562 2019-03-28 Jakub Jelinek <jakub@redhat.com>
26564 PR middle-end/89621
26565 * tree-inline.h (struct copy_body_data): Add
26566 dont_remap_vla_if_no_change flag.
26567 * tree-inline.c (remap_type_3, remap_type_2): New functions.
26568 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
26569 and remap_type_2 returns false.
26570 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
26571 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
26572 only from where it is copied to nested contexts.
26574 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
26577 * config/i386/i386.md (RMW operation with LEA peephole):
26578 Use LEAMODE mode attribute instead of SWI mode iterator for
26581 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
26584 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
26585 Also process XEXP (src, 0) of a shift insn.
26587 2019-03-28 David Malcolm <dmalcolm@redhat.com>
26589 PR middle-end/89725
26590 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
26591 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
26593 2019-03-28 Jakub Jelinek <jakub@redhat.com>
26595 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
26597 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
26598 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
26599 immediately after first one with df_analyze in between, but rather
26600 process all bbs, queueing ones that need second pass in a worklist,
26601 df_analyze, process queued debug insn changes and if second pass is
26602 needed, process bbs from worklist, df_analyze, process queued debug
26605 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
26606 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
26607 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
26609 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
26612 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
26615 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
26618 * config/i386/i386.c (ix86_function_value_1): Call the newly added
26619 function for 32-bit MS_ABI.
26620 (function_value_ms_32): New function.
26622 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
26624 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
26625 (movdi): Call gen_movdi_symbol_save_scc.
26626 (gen_movdi_symbol_save_scc): New insn and split.
26628 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
26630 PR rtl-optimization/89313
26631 * function.c (matching_constraint_num): New static function.
26632 (match_asm_constraints_1): Use it. Fixup white space and comment.
26633 Don't replace inputs with non-matching constraints which conflict
26634 with early clobber outputs.
26636 2019-03-27 Jeff Law <law@redhat.com>
26638 PR rtl-optimization/87761
26639 PR rtl-optimization/89826
26640 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
26642 (pass_cprop_hardreg::execute): Call df_analyze after adding the
26643 note problem to get REG_DEAD/REG_UNUSED notes updated.
26645 2019-03-27 Richard Biener <rguenther@suse.de>
26647 PR tree-optimization/89463
26648 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
26649 queue edges to remove.
26650 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
26651 dead stmts. Delay edge removal until PHIs are removed to
26652 make debug-stmt creation not confused by seemingly degenerate
26655 2019-03-27 Alan Modra <amodra@gmail.com>
26657 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
26659 * config/rs6000/darwin.h: Likewise.
26660 * config/rs6000/rs6000.c: Likewise.
26662 2019-03-27 Alan Modra <amodra@gmail.com>
26664 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
26665 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
26667 2019-03-26 Andrew Waterman <andrew@sifive.com>
26668 Jim Wilson <jimw@sifive.com>
26670 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
26671 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
26672 (generic_idivdi, generic_fmul_single, generic_fmul_double)
26673 (generic_fdiv, generic_fsqrt): Add check for generic tune.
26674 (generic_alu): Add auipc to type list.
26675 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
26676 (riscv_microarchitecture): Declare.
26677 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
26678 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
26680 (riscv_microarchitecture): New.
26681 (sifive_7_tune_info): New.
26682 (riscv_cpu_info_table): Add microarchitecture value for rocket and
26683 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
26685 (riscv_store_data_bypass_p): New.
26686 (riscv_option_override): Set riscv_microarchitecture from
26687 cpu->microarchitecture.
26688 * config/riscv/riscv.md: Include sifive-7.md.
26691 (auipc<mode>): Change type to auipc.
26692 (restore_stack_nonlocal): New.
26693 * config/riscv/sifive-7.md: New.
26694 * doc/invoke.texi (RISC-V Options): Update mtune docs.
26696 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
26699 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
26700 Also process XEXP (src, 0) of a shift insn.
26702 2019-03-26 Richard Biener <rguenther@suse.de>
26704 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
26705 (copy_debug_stmt): Likewise.
26706 (expand_call_inline): Likewise.
26707 (copy_bb): Avoid redundant lookup & set of gimple_block.
26708 * gimple-low.c (lower_gimple_return): Likewise.
26709 (lower_builtin_setjmp): Likewise.
26711 2019-03-26 Jakub Jelinek <jakub@redhat.com>
26713 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
26714 is constant 0, turn into static const data member initialized to false.
26715 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
26716 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
26718 2019-03-26 Jason Merrill <jason@redhat.com>
26719 Jakub Jelinek <jakub@redhat.com>
26721 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
26723 (mem_alloc_description::release_object_overhead): Fix comment typos.
26724 * hash-table.h (hash_table::~hash_table): Call
26725 release_instance_overhead only if m_entries is non-NULL, otherwise
26726 call unregister_descriptor.
26728 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
26730 PR tree-optimization/81740
26731 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
26732 In case of outer loop vectorization, check for backward dependence
26733 at the inner loop if outer loop dependence is reversed.
26735 2019-03-26 Alan Modra <amodra@gmail.com>
26737 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
26738 rs6000_vector_mem init. Correct wI and wJ comment.
26740 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
26742 PR rtl-optimization/88347
26743 PR rtl-optimization/88423
26744 * sched-deps.c (sched_analyze_insn): Take into account that for
26745 tablejumps the barrier appears after a label and a jump_table_data.
26747 2019-03-25 Martin Sebor <msebor@redhat.com>
26750 * c-common.c (check_user_alignment): Rename local. Correct maximum
26751 alignment in diagnostic. Avoid assuming argument fits in SHWI,
26752 convert it to UHWI when it fits.
26754 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
26757 * dwarf2out.c (premark_used_variables): New function.
26758 (prune_unused_types_walk): Do not mark not premarked external
26760 (prune_unused_types): Call premark_used_variables.
26762 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
26764 PR rtl-optimization/89676
26765 * lra-constraints.c (curr_insn_transform): Do match reload for
26766 early clobbers when the match was successful only for different
26769 2019-03-25 Martin Sebor <msebor@redhat.com>
26771 * doc/extend.texi (Common Type Attributes): Document vector_size.
26772 (Common Variable Attributes): Mention size constraint. Correct
26774 (Vector Extensions): Use @dfn when defining bas type. Clarify
26775 base type and size constraints.
26777 2019-03-25 Richard Biener <rguenther@suse.de>
26779 PR tree-optimization/89789
26780 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
26781 changes from non-undefined back to undefined.
26783 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
26785 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
26786 heap string and a gc string, but since this variable is unknown to
26787 ggc the gc string might get reused and corrupted. Fixed by always
26788 using a heap string.
26790 2019-03-25 Richard Biener <rguenther@suse.de>
26792 PR tree-optimization/89779
26793 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
26794 to remove IV defs, delay actual removal.
26795 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
26796 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
26797 very end, properly also reset loop control IV information.
26799 2019-03-25 Richard Biener <rguenther@suse.de>
26801 PR tree-optimization/89802
26802 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
26803 move EH data to folded stmt.
26805 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
26807 * config/s390/s390-builtin-types.def: Remove few unused types and
26808 fix sort order for others.
26810 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
26812 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
26813 expected and found types with -mdebug during builtin matching.
26815 2019-03-25 Richard Biener <rguenther@suse.de>
26817 PR middle-end/89790
26818 * fold-const.c (operand_equal_p): Revert last change with
26821 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
26823 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
26824 notes for the result of the __tls_get_addr calls.
26825 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
26827 2019-03-24 Jeff Law <law@redhat.com>
26829 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
26831 PR rtl-optimization/87761
26832 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
26833 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
26835 (pass_cprop_hardreg::execute): Add df note problem and defer insn
26836 rescans. Reprocess blocks as needed, calling df_analyze before
26837 reprocessing. Always call df_analyze before fixing up debug bind
26840 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
26842 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
26845 2019-03-22 Andrew Pinski <apinski@marvell.com>
26847 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
26848 attrribute for uxtw.
26850 2019-03-26 Jeff Law <law@redhat.com>
26852 PR rtl-optimization/87761
26853 * config/mips/mips-protos.h (mips_split_move): Add new argument.
26854 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
26855 (mips_split_move): Accept new INSN argument. Try to forward SRC
26856 into the next instruction.
26857 (mips_split_move_insn): Pass INSN through to mips_split_move.
26859 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
26861 PR rtl-optimization/89676
26862 * lra-constraints.c (curr_insn_transform): Do match reload for
26863 early clobbers even if the match was successful.
26865 2019-03-22 Jakub Jelinek <jakub@redhat.com>
26868 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
26870 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
26872 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
26874 2019-03-22 Jakub Jelinek <jakub@redhat.com>
26876 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
26877 <avx512>_fmsub_<mode>_mask3<round_name>,
26878 <avx512>_fnmadd_<mode>_mask3<round_name>,
26879 <avx512>_fnmsub_<mode>_mask3<round_name>,
26880 avx512f_vmfmadd_<mode>_mask3<round_name>,
26881 avx512f_vmfmsub_<mode>_mask3<round_name>,
26882 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
26883 instead of register_operand and %v instead of v for match_operand 1.
26884 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
26885 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
26886 <round_nimm_predicate> instead of register_operand and %v instead of v
26887 for match_operand 1.
26889 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
26890 <avx512>_fmadd_<mode>_mask3<round_name>,
26891 <avx512>_fmsub_<mode>_mask<round_name>,
26892 <avx512>_fmsub_<mode>_mask3<round_name>,
26893 <avx512>_fnmadd_<mode>_mask<round_name>,
26894 <avx512>_fnmadd_<mode>_mask3<round_name>,
26895 <avx512>_fnmsub_<mode>_mask<round_name>,
26896 <avx512>_fnmsub_<mode>_mask3<round_name>,
26897 <avx512>_fmaddsub_<mode>_mask<round_name>,
26898 <avx512>_fmaddsub_<mode>_mask3<round_name>,
26899 <avx512>_fmsubadd_<mode>_mask<round_name>,
26900 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
26901 <round_nimm_predicate> instead of nonimmediate_operand.
26902 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
26903 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
26904 Use register_operand instead of <round_nimm_predicate> for the
26905 operand that needs to match output.
26906 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
26907 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
26908 Likewise. Formatting fixes.
26911 * config/i386/i386.c (enum ix86_builtins): Remove
26912 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
26913 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
26914 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
26915 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
26916 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
26917 __builtin_ia32_vfmsubss3_mask3): New builtins.
26918 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
26919 avx512f_vmfmadd_<mode>_mask3<round_name>,
26920 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
26921 *avx512f_vmfmsub_<mode>_mask<round_name>,
26922 avx512f_vmfmsub_<mode>_mask3<round_name>,
26923 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
26924 *avx512f_vmfnmadd_<mode>_mask<round_name>,
26925 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
26926 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
26927 *avx512f_vmfnmsub_<mode>_mask<round_name>,
26928 avx512f_vmfnmsub_<mode>_mask3<round_name>,
26929 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
26930 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
26931 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
26932 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
26933 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
26934 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
26935 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
26936 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
26937 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
26938 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
26939 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
26940 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
26941 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
26942 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
26943 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
26944 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
26945 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
26946 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
26947 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
26948 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
26949 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
26950 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
26952 2019-03-21 Martin Sebor <msebor@redhat.com>
26954 PR tree-optimization/89350
26955 * builtins.c (compute_objsize): Also ignore offsets whose upper
26957 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
26958 (builtin_memref::builtin_memref): Initialize new member.
26959 Allow EXPR to be null.
26960 (builtin_memref::extend_offset_range): Replace local with a member.
26961 Avoid assuming pointer offsets are unsigned.
26962 (builtin_memref::set_base_and_offset): Determine base object
26963 before computing offset range.
26964 (builtin_access::builtin_access): Handle memset.
26965 (builtin_access::generic_overlap): Replace local with a member.
26966 (builtin_access::strcat_overlap): Same.
26967 (builtin_access::overlap): Same.
26968 (maybe_diag_overlap): Same.
26969 (maybe_diag_access_bounds): Same.
26970 (wrestrict_dom_walker::check_call): Handle memset.
26971 (check_bounds_or_overlap): Same.
26973 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
26974 Jakub Jelinek <jakub@redhat.com>
26977 * tree.c (fld_type_variant, fld_incomplete_type_of,
26978 fld_process_array_type): Call fld->pset.add and don't call
26979 add_tree_to_fld_list if it returns true.
26980 (free_lang_data_in_type): Similarly with self-recursive call. Purge
26981 non-marked types from TYPE_NEXT_VARIANT list.
26982 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
26984 2019-03-21 Jakub Jelinek <jakub@redhat.com>
26986 * hash-table.h (hash_table): Add Lazy template parameter defaulted
26987 to false, if true, don't alloc_entries during construction, but defer
26988 it to the first method that needs m_entries allocated.
26989 (hash_table::hash_table, hash_table::~hash_table,
26990 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
26991 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
26992 hash_table::clear_slot, hash_table::traverse_noresize,
26993 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
26994 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
26996 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
26997 NO_INSERT instead of find_with_hash.
26998 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
26999 hash_set::m_table): Add Lazy to template params of hash_table.
27000 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
27001 * attribs.c (test_attribute_exclusions): Likewise.
27002 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
27003 hash_set. Add tests for hash_set with Lazy = true.
27005 2019-03-21 Richard Biener <rguenther@suse.de>
27007 PR tree-optimization/89779
27008 * tree.c (tree_nop_conversion): Consolidate and fix defensive
27009 checks with respect to released SSA names now having error_mark_node
27011 * fold-const.c (operand_equal_p): Likewise.
27013 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
27016 * config/s390/s390.c (global_not_special_regno_p): Move to make it
27018 (s390_optimize_register_info): Use global_not_special_regno_p to
27019 check for global regs.
27021 2019-03-20 Jakub Jelinek <jakub@redhat.com>
27024 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
27025 update this_alternative nor this_alternative_set.
27027 2019-03-19 Jim Wilson <jimw@sifive.com>
27030 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
27031 align, size, offset. Use them to handle a BLKmode reference. Update
27033 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
27035 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27037 PR rtl-optimization/89768
27038 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
27039 instead of GEN_INT.
27040 (unroll_loop_runtime_iterations): Likewise.
27042 2019-03-19 Martin Sebor <msebor@redhat.com>
27044 PR tree-optimization/89644
27045 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
27046 rather than endptr as an indicator of nul-termination.
27048 PR tree-optimization/89644
27049 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
27050 arrays in determining sequence sizes in strncpy and stpncpy.
27052 2019-03-19 Martin Liska <mliska@suse.cz>
27054 PR middle-end/89737
27055 * predict.c (combine_predictions_for_bb): Empty likely_edges and
27056 unlikely_edges if there's an edge that belongs to both these sets.
27058 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
27061 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
27062 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
27063 go via a stack temporary.
27065 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27068 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
27069 instead of gen_rtx_SUBREG.
27070 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
27072 2019-03-19 Richard Biener <rguenther@suse.de>
27075 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
27077 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
27081 * tree.c (free_lang_data_in_decl): Do not free context of C++
27084 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27087 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
27088 subs for the first alternative except when operands[3] is 1.
27091 * gimplify.c (gimplify_asm_expr): For output argument with
27092 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
27095 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
27097 PR rtl-optimization/89753
27098 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
27099 explicit unrolling factor even more robust.
27101 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27104 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
27105 compensation use x2 += 1 instead of x2 -= -1 and when honoring
27106 signed zeros, do another copysign after the compensation.
27108 2019-03-18 Martin Sebor <msebor@redhat.com>
27110 PR tree-optimization/89720
27111 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
27112 more conservatively, the same as anti-range.
27114 2019-03-18 Richard Biener <rguenther@suse.de>
27116 PR middle-end/88945
27117 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
27118 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
27119 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
27120 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
27122 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
27124 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
27125 Extend queue to 1024 entries.
27126 Add "consumed" field.
27127 (gomp_print_output): Remove print_index parameter.
27128 Add final parameter.
27129 Change limit to unsigned.
27130 Use consumed field to implement circular buffer.
27131 Detect interrupted print in final pass.
27132 Flush output at the end.
27133 (run): Update gomp_print_output usage.
27134 (main): Initialize kernargs->output_data.consumed.
27136 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
27138 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
27139 calculation of the minimum number of scalar iterations for
27140 fully-predicated loops.
27142 2019-03-18 Martin Jambor <mjambor@suse.cz>
27144 PR tree-optimization/89546
27145 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
27146 any propagation to its children took place.
27148 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
27151 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
27152 parameter, and make use of it.
27153 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
27155 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27157 * config/arc/arc.opt (mcode-density-frame): Get the inital value
27158 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
27159 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
27160 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
27161 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
27162 match what the ops is doing.
27163 (push_multi_fp_blink): Likewise.
27164 * config/arc/arc.c (arc_override_options): Enable enter/leave when
27165 compiling for size and elf target.
27166 (arc_save_callee_enter): Adjust note to match what enter/leave
27169 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27171 * config/arc/arc.md (tst_movb): Fix constraint.
27173 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27175 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
27177 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27179 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
27180 * config/arc/arc.c (arc_conditional_register_usage): Remove all
27181 reg_alloc_order references.
27182 (size_alloc_order): Define.
27183 (arc_adjust_reg_alloc_order): New function.
27184 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
27186 (ADJUST_REG_ALLOC_ORDER): Define.
27187 (HONOR_REG_ALLOC_ORDER): Likewise.
27189 2019-03-18 Richard Biener <rguenther@suse.de>
27192 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
27193 loads and stores a bit more.
27195 2019-03-18 Richard Biener <rguenther@suse.de>
27198 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
27199 load pessimization to stores as well.
27201 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
27203 PR middle-end/86979
27204 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
27205 successor, use NULL as its av set.
27207 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
27209 PR rtl-optimization/89721
27210 * lra-constraints (invariant_p): Return false if side_effects_p holds.
27212 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
27215 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27216 When handling vec_extract, use modular arithmetic to allow
27217 constant selectors greater than vector length.
27218 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
27219 V1TImode vectors to have constant selector values greater than 0.
27220 Use modular arithmetic to compute vector index.
27221 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
27222 index for in-memory vectors. Correct code generation for
27223 in-register vectors.
27224 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
27227 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
27231 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
27234 2019-03-15 Jakub Jelinek <jakub@redhat.com>
27237 * tree.c (inchash::add_expr): Strip any location wrappers.
27238 * fold-const.c (operand_equal_p): Move stripping of location wrapper
27239 after hash verification.
27242 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
27243 SIGN_EXTEND and ZERO_EXTEND.
27245 2019-03-14 Jason Merrill <jason@redhat.com>
27246 Jakub Jelinek <jakub@redhat.com>
27248 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
27249 than if is_empty (*slot).
27250 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
27251 existing elt and for elt removal.
27252 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
27253 of already removed elt.
27255 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
27258 * config/i386/i386.c (remove_partial_avx_dependency): Handle
27259 REG_EH_REGION note.
27261 2019-03-14 Martin Liska <mliska@suse.cz>
27264 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
27266 2019-03-14 Richard Biener <rguenther@suse.de>
27269 * config/i386/i386.c (make_resolver_func): Properly set
27270 DECL_CONTEXT on the RESULT_DECL.
27271 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
27273 2019-03-14 Richard Biener <rguenther@suse.de>
27275 * gimple-pretty-print.c: Include cfgloop.h.
27276 (dump_gimple_phi): Adjust.
27277 (dump_gimple_bb_header): Dump loop header for GIMPLE.
27278 (pp_cfg_jump): Adjust.
27279 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
27280 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
27281 (lower_phi_internal_fn): Remove.
27282 (verify_gimple_call): Remove IFN_PHI special-casing.
27283 (dump_function_to_file): Dump IL state.
27284 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
27285 done to deal with PHI nodes being present in non-SSA state.
27287 2019-03-14 Jakub Jelinek <jakub@redhat.com>
27290 * multiple_target.c (create_dispatcher_calls): Change
27291 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
27292 In the node->iterate_referring loop, push *ref rather than ref, call
27293 ref->remove_reference () and always pass 0 to iterate_referring.
27295 PR rtl-optimization/89679
27296 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
27297 would contain a paradoxical SUBREG.
27299 2019-03-14 Richard Biener <rguenther@suse.de>
27301 PR tree-optimization/89710
27302 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
27305 2019-03-14 Martin Liska <mliska@suse.cz>
27307 * coverage.c (coverage_begin_function): Stream also
27309 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
27310 documentation about function declaration location.
27311 * gcov-dump.c (tag_function): Print whole range
27312 of function declaration.
27313 * gcov.c (struct function_info): Add end_column field.
27314 (function_info::function_info): Initialize it.
27315 (output_json_intermediate_file): Output {start,end}_column
27317 (read_graph_file): Read end_column.
27319 2019-03-14 Richard Biener <rguenther@suse.de>
27321 PR middle-end/89698
27322 * fold-const.c (operand_equal_p): For INDIRECT_REF check
27323 that the access types are similar.
27325 2019-03-14 Jakub Jelinek <jakub@redhat.com>
27327 PR tree-optimization/89703
27328 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
27329 aren't compatible also with builtin_decl_explicit. Check pure
27330 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
27331 and BUILT_IN_STPNCPY{,_CHK}.
27333 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
27336 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
27337 addr32 prefix to VSIB address for X32.
27338 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
27340 (*avx512pf_gatherpf<mode>df_mask): Likewise.
27341 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
27342 (*avx512pf_scatterpf<mode>df_mask): Likewise.
27343 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
27344 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
27345 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
27346 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
27347 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
27348 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
27349 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
27350 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
27351 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
27352 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
27353 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
27354 (*avx512f_scatterdi<mode>): Likewise.
27356 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
27359 * lra-constraints.c (inherit_in_ebb): Update
27360 potential_reload_hard_regs along with live_hard_regs.
27362 2019-03-13 Jakub Jelinek <jakub@redhat.com>
27365 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
27367 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
27369 2019-03-13 Martin Sebor <msebor@redhat.com>
27371 PR tree-optimization/89662
27372 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
27375 2019-03-13 Richard Biener <rguenther@suse.de>
27377 PR middle-end/89677
27378 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
27379 throw FP expressions at tree-affine.
27381 2019-03-14 Richard Biener <rguenther@suse.de>
27383 * tree-pretty-print.c (dump_generic_node): For -gimple properly
27384 dump negative integer constants using _Literal (type) -num.
27386 2019-03-13 Jakub Jelinek <jakub@redhat.com>
27388 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
27389 nonlocal_value member.
27391 PR middle-end/88588
27392 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
27393 (ipa_simd_modify_function_body): Handle PHIs.
27395 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27397 * config/s390/s390.c (s390_option_override_internal): Use more
27398 aggressive inlining parameters.
27400 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27402 * config/s390/3906.md: New file.
27403 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
27404 (LONGRUNNING_THRESHOLD): Remove.
27405 (MAX_SCHED_MIX_SCORE): Decrease.
27406 (MAX_SCHED_MIX_DISTANCE): Decrease.
27407 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
27408 (struct s390_sched_state): New struct to hold scheduling state.
27409 (S390_SCHED_STATE_NORMAL): Remove.
27410 (S390_SCHED_STATE_CRACKED): Remove.
27411 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
27412 (s390_get_sched_attrmask): Use new attribute.
27413 (s390_get_unit_mask): Use new units.
27414 (s390_is_fpd): New function.
27415 (s390_is_fxd): New function.
27416 (s390_is_longrunning): New function.
27417 (s390_sched_score): Use new functions.
27418 (s390_sched_reorder): Likewise.
27419 (s390_sched_variable_issue): Rework and use new functions.
27420 (s390_sched_init): Use new functions.
27421 * config/s390/s390.h (s390_tune_attr): Add z14.
27422 * config/s390/s390.md: Add z14.
27424 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27426 * config/s390/2964.md: Update pipeline description.
27427 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
27428 (LONGRUNNING_THRESHOLD): Remove.
27429 (LATENCY_FACTOR): Remove.
27430 (s390_get_unit_mask): Add unit.
27431 (s390_sched_score): Use fxd/fpd.
27432 (s390_sched_variable_issue): Use fxd/fpd.
27434 2019-03-12 Martin Liska <mliska@suse.cz>
27436 * config/i386/i386.c: Reword an error message.
27438 2019-03-12 Martin Jambor <mjambor@suse.cz>
27440 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
27441 terminate with newline.
27443 2019-03-12 Jakub Jelinek <jakub@redhat.com>
27446 * config/s390/s390.md (tabort): Use %wd instead of
27447 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
27448 letters and periods.
27449 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
27450 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
27453 PR middle-end/89663
27454 * builtins.c (expand_builtin_int_roundingfn,
27455 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
27456 gcc_unreachable if validate_arglist fails.
27458 2019-03-12 Richard Biener <rguenther@suse.de>
27460 PR tree-optimization/89664
27461 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
27462 free the occurance tree after the early out.
27464 2019-03-11 Jakub Jelinek <jakub@redhat.com>
27466 PR middle-end/89655
27468 * vr-values.c (vr_values::update_value_range): If
27469 old_vr->varying_p (), don't update it, make new_vr also VARYING
27472 2019-03-11 Martin Liska <mliska@suse.cz>
27474 * config/aarch64/aarch64.c (aarch64_override_options_internal):
27475 Fix double string quoting.
27477 2019-03-11 Martin Liska <mliska@suse.cz>
27479 * collect-utils.c (collect_wait): Wrap apostrophes
27480 in gcc internal format with %'.
27481 * collect2.c (main): Likewise.
27482 (scan_prog_file): Likewise.
27483 (scan_libraries): Likewise.
27484 * config/i386/i386.c (ix86_expand_call): Likewise.
27485 (ix86_handle_interrupt_attribute): Likewise.
27486 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
27487 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
27488 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
27489 * lto-wrapper.c (find_crtoffloadtable): Likewise.
27490 * symtab.c (symtab_node::verify_base): Likewise.
27491 * tree-cfg.c (verify_gimple_label): Likewise.
27492 * tree.c (verify_type_variant): Likewise.
27494 2019-03-11 Martin Liska <mliska@suse.cz>
27496 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
27497 in a string format message and fix GNU coding style.
27498 (expand_builtin_set_thread_pointer): Likewise.
27499 * common/config/aarch64/aarch64-common.c
27500 (aarch64_rewrite_selected_cpu): Likewise.
27501 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
27502 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
27503 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
27504 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
27505 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
27506 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
27507 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
27508 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
27509 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
27510 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
27512 * common/config/riscv/riscv-common.c
27513 (riscv_subset_list::parsing_subset_version): Likewise.
27514 (riscv_subset_list::parse_std_ext): Likewise.
27515 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
27516 (riscv_subset_list::parse): Likewise.
27517 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
27518 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
27519 (aarch64_override_options_internal): Likewise.
27520 (aarch64_validate_mcpu): Likewise.
27521 (aarch64_validate_march): Likewise.
27522 (aarch64_validate_mtune): Likewise.
27523 (aarch64_override_options): Likewise.
27524 * config/alpha/alpha.c (alpha_option_override): Likewise.
27525 * config/arc/arc.c (arc_init): Likewise.
27526 (parse_mrgf_banked_regs_option): Likewise.
27527 (arc_override_options): Likewise.
27528 (arc_expand_builtin_aligned): Likewise.
27529 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
27530 (arm_expand_builtin): Likewise.
27531 * config/arm/arm.c (arm_option_check_internal): Likewise.
27532 (arm_configure_build_target): Likewise.
27533 (arm_option_override): Likewise.
27534 (arm_options_perform_arch_sanity_checks): Likewise.
27535 (arm_handle_cmse_nonsecure_entry): Likewise.
27536 (arm_handle_cmse_nonsecure_call): Likewise.
27537 (arm_tls_referenced_p): Likewise.
27538 (thumb1_expand_prologue): Likewise.
27539 * config/avr/avr.c (avr_option_override): Likewise.
27540 * config/bfin/bfin.c (bfin_option_override): Likewise.
27541 * config/c6x/c6x.c (c6x_option_override): Likewise.
27542 * config/cr16/cr16.c (cr16_override_options): Likewise.
27543 * config/cris/cris.c (cris_option_override): Likewise.
27544 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
27545 * config/darwin-c.c (macosx_version_as_macro): Likewise.
27546 * config/darwin.c (darwin_override_options): Likewise.
27547 * config/frv/frv.c (frv_expand_builtin): Likewise.
27548 * config/h8300/h8300.c (h8300_option_override): Likewise.
27549 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
27550 (ix86_option_override_internal): Likewise.
27551 (warn_once_call_ms2sysv_xlogues): Likewise.
27552 (ix86_expand_prologue): Likewise.
27553 (split_stack_prologue_scratch_regno): Likewise.
27554 (ix86_warn_parameter_passing_abi): Likewise.
27555 * config/ia64/ia64.c (fix_range): Likewise.
27556 * config/m68k/m68k.c (m68k_option_override): Likewise.
27557 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
27558 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
27559 (mips_set_compression_mode): Likewise.
27560 * config/mmix/mmix.c (mmix_option_override): Likewise.
27561 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
27562 * config/msp430/msp430.c (msp430_option_override): Likewise.
27563 * config/nds32/nds32.c (nds32_option_override): Likewise.
27564 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
27565 (nios2_option_override): Likewise.
27566 (nios2_expand_custom_builtin): Likewise.
27567 * config/nvptx/mkoffload.c (main): Likewise.
27568 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
27569 * config/pa/pa.c (fix_range): Likewise.
27570 (pa_option_override): Likewise.
27571 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
27572 (riscv_option_override): Likewise.
27573 * config/rl78/rl78.c (rl78_option_override): Likewise.
27574 * config/rs6000/aix61.h: Likewise.
27575 * config/rs6000/aix71.h: Likewise.
27576 * config/rs6000/aix72.h: Likewise.
27577 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
27578 * config/rs6000/freebsd64.h: Likewise.
27579 * config/rs6000/linux64.h: Likewise.
27580 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
27581 (rs6000_expand_zeroop_builtin): Likewise.
27582 (rs6000_expand_mtfsb_builtin): Likewise.
27583 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
27584 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
27585 (rs6000_invalid_builtin): Likewise.
27586 (rs6000_expand_split_stack_prologue): Likewise.
27587 * config/rs6000/rtems.h: Likewise.
27588 * config/rx/rx.c (valid_psw_flag): Likewise.
27589 (rx_expand_builtin): Likewise.
27590 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
27591 * config/s390/s390.c (s390_expand_builtin): Likewise.
27592 (s390_function_profiler): Likewise.
27593 (s390_option_override_internal): Likewise.
27594 (s390_option_override): Likewise.
27595 * config/sh/sh.c (sh_option_override): Likewise.
27596 (sh_builtin_saveregs): Likewise.
27597 (sh_fix_range): Likewise.
27598 * config/sh/vxworks.h: Likewise.
27599 * config/sparc/sparc.c (sparc_option_override): Likewise.
27600 * config/spu/spu.c (spu_option_override): Likewise.
27601 (fix_range): Likewise.
27602 * config/visium/visium.c (visium_option_override): Likewise.
27603 (visium_handle_interrupt_attr): Likewise.
27604 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
27605 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
27606 (dbg_cnt_process_opt): Likewise.
27607 * dwarf2out.c (output_dwarf_version): Likewise.
27608 * except.c (expand_eh_return): Likewise.
27609 * gcc.c (defined): Likewise.
27610 (driver_handle_option): Likewise.
27611 (process_command): Likewise.
27612 (compare_files): Likewise.
27613 (driver::prepare_infiles): Likewise.
27614 (driver::do_spec_on_infiles): Likewise.
27615 (driver::maybe_run_linker): Likewise.
27616 * omp-offload.c (oacc_parse_default_dims): Likewise.
27617 * opts-global.c (handle_common_deferred_options): Likewise.
27618 * opts.c (parse_sanitizer_options): Likewise.
27619 (common_handle_option): Likewise.
27620 (enable_warning_as_error): Likewise.
27621 * passes.c (enable_disable_pass): Likewise.
27622 * plugin.c (parse_plugin_arg_opt): Likewise.
27623 (default_plugin_dir_name): Likewise.
27624 * targhooks.c (default_expand_builtin_saveregs): Likewise.
27625 (default_pch_valid_p): Likewise.
27626 * toplev.c (init_asm_output): Likewise.
27627 (process_options): Likewise.
27628 (toplev::run_self_tests): Likewise.
27629 * tree-cfg.c (verify_gimple_call): Likewise.
27630 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
27631 (tree_inlinable_function_p): Likewise.
27632 * var-tracking.c (vt_find_locations): Likewise.
27634 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
27636 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
27637 only on the else branch.
27639 2019-03-11 Martin Liska <mliska@suse.cz>
27641 * gcov.c (output_intermediate_json_line): Print function
27643 (output_json_intermediate_file): Add new argument.
27644 * doc/gcov.texi: Document the change.
27646 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
27648 PR rtl-optimization/89588
27649 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
27650 explicit unrolling factor more robust.
27652 2019-03-11 Richard Biener <rguenther@suse.de>
27654 PR tree-optimization/89649
27655 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
27656 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
27657 on the prolog and epilog loops.
27658 (vect_loop_versioning): Return copy of loop.
27659 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
27660 on the non-vectorized version of the loop.
27662 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
27665 * config/i386/sse.md (*vec_extractv2di_0_sse):
27666 Add (=r,x) alternative and corresponding splitter.
27668 2019-03-10 Martin Jambor <mjambor@suse.cz>
27670 PR tree-optimization/85762
27671 PR tree-optimization/87008
27672 PR tree-optimization/85459
27673 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
27674 it points to if there is a type changing MEM_REF. Adjust all callers.
27675 (build_accesses_from_assign): Disable total scalarization if
27676 contains_vce_or_bfcref_p returns true through the new parameter, for
27679 2019-03-09 Jakub Jelinek <jakub@redhat.com>
27682 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
27683 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
27686 * common.opt (fdiagnostics-show-labels,
27687 fdiagnostics-show-line-numbers, fdiagnostics-format=,
27688 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
27689 gas-locview-support, ginline-points, ginternal-reset-location-views):
27690 Terminate description text with a dot.
27691 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
27692 * config/mcore/mcore.opt (m210, m340): Likewise.
27693 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
27694 mnops=): Start description text with a capital letter.
27695 * config/arc/arc.opt (msize-level=): Likewise.
27696 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
27697 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
27698 mnewlib): Likewise.
27699 * config/ft32/ft32.opt (msim): Likewise.
27700 (mft32b, mcompress): Likewise. Terminate description text with a dot.
27701 (mnodiv, mnopm): Terminate description text with a dot.
27702 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
27704 * config/i386/i386.opt (prefer_vector_width, instrument_return):
27706 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
27709 PR rtl-optimization/89634
27710 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
27711 are modified in BB_END (e->src) instruction.
27713 2019-03-08 David Malcolm <dmalcolm@redhat.com>
27716 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
27717 messages more amenable to translation, and improve wording.
27719 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
27721 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
27722 ud- and du-chains between phases.
27724 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
27727 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
27728 instead of POLY_INT_CST.
27730 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
27732 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
27735 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
27740 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
27741 (_mm_storeu_si64): Ditto.
27743 2019-03-08 Martin Liska <mliska@suse.cz>
27746 * config/i386/i386.c (ix86_option_override_internal): Disable
27747 jump tables when retpolines are used.
27749 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
27752 * ipa-split.c (execute_split_functions): Do not split
27753 'noinline' or 'section' function.
27755 2019-03-08 Jakub Jelinek <jakub@redhat.com>
27758 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
27759 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
27760 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
27763 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
27764 from diagnostics. Formatting fixes.
27767 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
27768 warn_odr diagnostics.
27771 * lra-constraints.c (process_alt_operands): Avoid one space before
27772 " at the end of line and another after " on another line in a string
27774 * attribs.c (handle_dll_attribute): Likewise.
27775 * config/avr/avr-devices.c (avr_texinfo): Likewise.
27777 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
27778 warning_at or inform messages in G_() if there is no ?:.
27780 PR tree-optimization/89550
27781 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
27782 returned true. Formatting fixes.
27783 (expand_builtin_strnlen): Formatting fixes.
27784 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
27785 if warning_at returned true.
27786 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
27788 2019-03-08 Richard Biener <rguenther@suse.de>
27790 PR middle-end/89578
27791 * cfgloop.h (struct loop): Add owned_clique field.
27792 * cfgloopmanip.c (copy_loop_info): Copy it.
27793 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
27795 * tree-inline.c (copy_loops): Remap owned_clique.
27796 * lto-streamer-in.c (input_cfg): Stream owned_clique.
27797 * lto-streamer-out.c (output_cfg): Likewise.
27799 2019-03-08 Jakub Jelinek <jakub@redhat.com>
27802 * config/darwin.c: Include intl.h.
27803 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
27804 composing the message out of two separate parts.
27806 2019-03-07 Jakub Jelinek <jakub@redhat.com>
27809 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
27810 doesn't start with a capital letter and doesn't end with a dot.
27811 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
27812 with a capital letter.
27813 (ix86_mangle_function_version_assembler_name): Likewise.
27814 (ix86_generate_version_dispatcher_body): Likewise.
27815 (fold_builtin_cpu): Likewise.
27816 (get_builtin_code_for_version): Likewise. Remove extraneous space.
27817 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
27818 translators, wrap full type name in %qs.
27820 PR translation/79999
27821 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
27822 depend clause with source (or sink) modifier.
27823 * omp-expand.c (expand_omp_ordered_sink): Likewise.
27826 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
27827 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
27828 (avx512f_load<mode>_mask): New define_expand.
27829 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
27830 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
27831 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
27832 __builtin_ia32_movess_mask): New builtins.
27833 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
27834 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
27835 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
27836 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
27838 2019-03-07 Martin Jambor <mjambor@suse.cz>
27841 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
27842 for extern inline functions.
27844 2019-03-07 Martin Jambor <mjambor@suse.cz>
27847 * cgraph.h (cgraph_node): New inline method former_thunk_p.
27848 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
27849 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
27850 have multiple callees. At the end check if declarations match as
27851 opposed to cgraph_nodes.
27853 2019-03-07 Martin Liska <mliska@suse.cz>
27855 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
27856 which is equivalent to searching for this in clones chain.
27857 * symtab.c (symtab_node::verify_base): Similarly compare ASM
27858 names with a neighbour and special case first node in a chain.
27860 2019-01-25 Jason Merrill <jason@redhat.com>
27862 PR c++/80916 - spurious "static but not defined" warning.
27863 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
27864 for an internal symbol with DECL_EXTERNAL.
27866 2019-04-07 Richard Biener <rguenther@suse.de>
27868 PR middle-end/89618
27869 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
27870 * tree-inline.c (copy_loops): Simplify.
27872 2019-03-07 Martin Liska <mliska@suse.cz>
27874 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
27876 2019-03-07 Richard Biener <rguenther@suse.de>
27878 PR tree-optimization/89595
27879 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
27880 stmt iterator as reference, take boolean output parameter to
27881 indicate whether the stmt was removed and thus the iterator
27883 (dom_opt_dom_walker::before_dom_children): Re-iterate over
27884 stmts created by folding.
27886 2019-03-07 Jakub Jelinek <jakub@redhat.com>
27889 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
27892 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
27894 PR rtl-optimization/88845
27895 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
27897 * lra.c (remove_scratches_1): New function.
27898 (remove_scratches): Use it.
27899 (lra_emit_move): Likewise.
27901 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
27903 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
27904 unaligned_access variable.
27905 * config/arc/arc.c (arc_override_options): Set unaligned access
27906 default on for HS CPUs.
27907 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
27909 2019-03-06 Martin Liska <mliska@suse.cz>
27911 PR gcov-profile/89577
27912 * doc/gcov.texi: Prefer to use --coverage.
27913 * doc/sourcebuild.texi: Likewise.
27915 2019-03-02 Jason Merrill <jason@redhat.com>
27917 PR c++/86485 - -Wmaybe-unused with empty class ?:
27918 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
27920 2019-03-05 Jakub Jelinek <jakub@redhat.com>
27923 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
27926 PR middle-end/89590
27927 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
27928 exactly one argument.
27930 2019-03-05 Jakub Jelinek <jakub@redhat.com>
27931 Richard Sandiford <richard.sandiford@arm.com>
27933 PR tree-optimization/89570
27934 * match.pd (vec_cond into cond_op simplification): Don't use
27935 get_conditional_internal_fn, use as_internal_fn (cond_op).
27937 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
27940 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
27941 to decide when to split off a non-zero offset from a symbol.
27942 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
27943 in function symbols.
27945 2019-03-05 Richard Biener <rguenther@suse.de>
27947 PR tree-optimization/89594
27948 * tree-if-conv.c (pass_if_conversion::execute): Handle
27949 case where .LOOP_VECTORIZED_FUNCTION was removed.
27951 2019-03-05 Jakub Jelinek <jakub@redhat.com>
27954 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
27955 instead alloca it only when needed with the needed size.
27957 PR tree-optimization/89570
27958 * match.pd (vec_cond into cond_op simplification): Guard with
27959 vectorized_internal_fn_supported_p test and #if GIMPLE.
27961 PR tree-optimization/89566
27962 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
27963 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
27964 Punt if get_user_idx_format succeeds, but idx_format argument is
27965 not provided or doesn't have pointer type, or if idx_args is above
27966 number of provided arguments.
27968 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
27970 PR tree-optimization/89437
27971 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
27973 2019-03-04 Richard Biener <rguenther@suse.de>
27975 PR middle-end/89572
27976 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
27979 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
27981 PR tree-optimization/89487
27982 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
27983 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
27984 (distribute_loop): Don't do runtime alias check if there is non-
27985 addressable data reference.
27986 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
27987 is a register variable.
27989 2019-03-02 Jakub Jelinek <jakub@redhat.com>
27992 * config/arm/arm.md (cmpsi2_addneg): Use
27993 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
27994 If operands[2] is 0 or INT_MIN, force use of subs.
27995 (*compare_scc splitter): Use gen_int_mode.
27996 (*negscc): Likewise.
27997 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
27999 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
28000 Monk Chiang <sh.chiang04@gmail.com>
28002 * common/config/riscv/riscv-common.c: Include sstream.
28003 (riscv_subset_list::to_string): New.
28004 (riscv_arch_str): Likewise.
28005 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
28006 * config.in: Regen.
28007 * config/riscv/riscv-protos.h (riscv_arch_str): New.
28008 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
28009 (riscv_emit_attribute): New.
28010 (riscv_file_start): Emit attribute if needed.
28011 (riscv_option_override): Init riscv_emit_attribute_p.
28012 * config/riscv/riscv.opt (mriscv-attribute): New option.
28013 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
28014 * configure: Regen.
28015 * doc/install.texi: Document --with-riscv-attribute.
28016 * doc/invoke.texi: Document -mriscv-attribute.
28018 * common/config/riscv/riscv-common.c:
28019 Include config/riscv/riscv-protos.h.
28020 (INCLUDE_STRING): Defined.
28021 (RISCV_DONT_CARE_VERSION): Defined.
28022 (riscv_subset_t): Declare.
28023 (riscv_subset_t::riscv_subset_t): New.
28024 (riscv_subset_list): Declare.
28025 (riscv_subset_list::riscv_subset_list): New.
28026 (riscv_subset_list::~riscv_subset_list): Likewise.
28027 (riscv_subset_list::parsing_subset_version): Likewise.
28028 (riscv_subset_list::parse_std_ext): Likewise.
28029 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
28030 (riscv_subset_list::add): Likewise.
28031 (riscv_subset_list::lookup): Likewise.
28032 (riscv_subset_list::xlen): Likewise.
28033 (riscv_subset_list::parse): Likewise.
28034 (riscv_supported_std_ext): Likewise.
28035 (current_subset_list): Likewise.
28036 (riscv_parse_arch_string): Using riscv_subset_list::parse to
28039 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
28041 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
28042 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
28043 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
28045 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
28047 PR rtl-optimization/85899
28048 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
28049 fallthru edges leading to the exit block.
28051 2019-03-01 Tamar Christina <tamar.christina@arm.com>
28054 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
28055 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
28057 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
28059 PR tree-optimization/89535
28060 * tree-vect-stmts.c (vectorizable_call): Record the vector types
28061 for each operand. Calculate the fallback choice for mask operands
28062 and pass it to vect_get_vec_def_for_operand.
28064 2019-03-01 Richard Biener <rguenther@suse.de>
28066 PR middle-end/89541
28067 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
28068 get virtual operands.
28069 (get_expr_operands): Handle CONST_DECL like other decls.
28071 2019-03-01 Jakub Jelinek <jakub@redhat.com>
28073 PR middle-end/89503
28074 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
28075 on DECL_P and EXPR_P.
28077 2019-03-01 Richard Biener <rguenther@suse.de>
28079 PR middle-end/89497
28080 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
28081 argument, defaulted to zero.
28082 * passes.c (execute_function_todo): Pass down SSA update flags
28083 to cleanup_tree_cfg.
28084 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
28085 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
28087 (cleanup_tree_cfg): Get and pass down SSA update flags.
28089 2019-03-01 Jakub Jelinek <jakub@redhat.com>
28092 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
28093 early_lto_debug argument.
28095 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
28097 PR tree-optimization/89536
28098 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
28099 only whether bit #0 of the value is 0 instead of the entire value.
28101 2019-02-28 Marek Polacek <polacek@redhat.com>
28103 PR c++/87068 - missing diagnostic with fallthrough statement.
28104 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
28105 at the end of a seq, save its location to walk_stmt_info.
28106 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
28109 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
28112 * tree.c (find_atomic_core_type): Move ahead in file.
28113 (check_base_type): Correctly compare alignments of atomic types.
28115 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
28118 * config/i386/i386.c (get_builtin_code_for_version): Identify
28119 Westmere from PCLMUL, instead of AES.
28121 2019-02-28 Jakub Jelinek <jakub@redhat.com>
28124 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
28125 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
28128 2019-02-28 Tamar Christina <tamar.christina@arm.com>
28131 * config/aarch64/aarch64-option-extensions.def: Document it.
28132 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
28135 2019-02-28 Jakub Jelinek <jakub@redhat.com>
28138 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
28139 builtins if they don't have a single scalar floating point argument.
28142 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
28144 PR rtl-optimization/89490
28145 * varasm.c (get_block_for_section): Bail out for mergeable sections.
28146 (default_use_anchors_for_symbol_p, output_object_block): Assert the
28147 block section is not mergeable.
28149 2019-02-27 Jakub Jelinek <jakub@redhat.com>
28152 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
28153 old define_insn to ...
28154 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
28155 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
28156 Rename old define_insn to ...
28157 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
28158 (thumb2_casesi_internal_pic): New define_expand. Rename old
28160 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
28161 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
28162 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
28164 2019-02-27 Richard Biener <rguenther@suse.de>
28167 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
28169 2019-02-27 Richard Biener <rguenther@suse.de>
28171 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
28174 2019-02-27 Richard Biener <rguenther@suse.de>
28177 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
28178 parameter, prefix section name with .gnu.debuglto_ if true.
28179 (dwarf2out_finish): Pass false to output_comdat_type_unit.
28180 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
28182 2019-02-27 Richard Biener <rguenther@suse.de>
28185 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
28186 rather than on use_debug_types, doing what output_die does.
28187 (value_format): Likewise.
28189 2019-02-27 Martin Jambor <mjambor@suse.cz>
28190 Martin Sebor <msebor@redhat.com>
28192 * doc/invoke.texi (Warning Options): Reword description of
28193 -Wno-absolute-value.
28195 2019-02-27 Jakub Jelinek <jakub@redhat.com>
28197 PR tree-optimization/89280
28198 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
28199 builtin_setjmp_setup_bb): New functions.
28200 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
28201 When visiting __builtin_setjmp_setup block, queue in special
28202 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
28203 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
28204 from visited after the loop if they don't have any visited successor
28207 2018-02-26 Steve Ellcey <sellcey@marvell.com>
28209 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
28211 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
28213 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28216 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
28217 with types other than sizetype/ssizetype.
28219 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
28221 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
28222 (enum sparc_processor_type): ...this.
28223 (enum sparc_code_model_type): New enumeration type.
28224 (enum sparc_memory_model_type): Tweak comments.
28225 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
28227 (mcmodel): Use sparc_code_model enumeration and variable.
28228 (sparc_code_model): New enumeration.
28229 (mdebug): Add Undocumented marker.
28230 * config/sparc/sparc.h (enum cmodel): Delete.
28231 (sparc_cmodel): Likewise.
28232 (TARGET_CM_MEDLOW): Adjust to above renaming.
28233 (TARGET_CM_MEDMID): Likewise.
28234 (TARGET_CM_MEDANY): Likewise.
28235 (TARGET_CM_EMBMEDANY): Likewise.
28236 * config/sparc/sparc.c (sparc_cmodel): Delete.
28237 (sparc_option_override): Remove string/value mapping support for the
28238 code model. Move code and memory model support to after the handling
28239 of target flags. Do private machine setup last.
28240 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
28241 (sparc_legitimize_reload_address): Likewise.
28242 (sparc_output_mi_thunk): Likewise.
28243 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
28245 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28247 PR tree-optimization/89500
28248 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
28249 (handle_builtin_strlen): Remove noncst_bound variable. Always
28250 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
28251 cst if the first cst bytes starting at x are known to be non-zero,
28252 even if the string is not zero terminated. Don't try to modify
28253 *si for strnlen. Update strlen_to_stridx only for strlen or if
28254 we can prove strnlen returns the same value as strlen would.
28256 2019-02-26 Martin Liska <mliska@suse.cz>
28258 * alloc-pool.h (struct pool_usage): Remove extra
28260 * bitmap.h (struct bitmap_usage): Likewise.
28261 * ggc-common.c (struct ggc_usage): Likewise.
28262 * mem-stats.h (struct mem_usage): Likewise.
28263 (mem_alloc_description::dump): Print dash lines
28264 here and repeat header at the end of a table report.
28265 It's then more readable.
28266 * tree-phinodes.c (phinodes_print_statistics): Make
28267 horizontal alignment.
28268 * tree-ssanames.c (ssanames_print_statistics): Likewise.
28269 * vec.c (struct vec_usage): Remove extra print_dash_line.
28270 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
28272 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
28274 * doc/extend.texi (__builtin_object_size):
28275 Use @pxref instead of @xref inside parenthesis.
28276 (__builtin_has_attribute): Add missing comma after @xref.
28277 (__builtin_object_size): Ditto.
28278 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
28280 2019-02-26 Jeff Law <law@redhat.com>
28282 PR rtl-optimization/87761
28283 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
28284 detect obviously dead insns and delete them.
28286 2019-02-26 Richard Biener <rguenther@suse.de>
28288 PR tree-optimization/89505
28289 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
28290 to handle restrict pointed-to vars with multiple subvars
28293 2019-02-26 Richard Biener <rguenther@suse.de>
28295 PR tree-optimization/89489
28296 * tree-parloops.c (create_loop_fn): Copy over last_clique.
28298 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
28300 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
28301 and move around comment.
28302 <BIT_AND_EXPR>: Likewise.
28303 <BIT_NOT_EXPR>: Add specific handling for boolean types.
28305 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28308 * config/i386/i386.c (remove_partial_avx_dependency): Call
28309 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
28310 after changing possibly many instructions to use that pseudo. Fix up
28311 insertion of v4sf_const0 setter at the start of bb.
28313 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
28316 * doc/extend.texi (Variadic Pointer Args): New section.
28318 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
28319 Martin Sebor <msebor@gmail.com>
28321 * common.opt (Wattribute-alias): Likewise.
28322 * doc/invoke.texi (Option Summary): List general form of
28323 -Wattribute-alias=. List positive form of -Wmissing-attributes.
28324 (-Wmissing-attributes): Invert entry, rewrite and correct default.
28325 Add cross-references.
28326 (-Wattribute-alias): Rewrite and correct default. Mention
28327 considered attributes (same as for -Wmissing-attributes).
28329 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
28331 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
28332 (_mm_cvtpd_ps): Likewise.
28333 (_mm_cvttpd_epi32): Likewise.
28336 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
28337 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
28340 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
28342 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28345 * common/config/aarch64/aarch64-common.c
28346 (struct aarch64_option_extension): Add is_synthetic.
28347 (all_extensions): Use it.
28348 (TARGET_OPTION_INIT_STRUCT): Define hook.
28349 (struct gcc_targetm_common): Moved to end.
28350 (all_extensions_by_on): New.
28351 (opt_ext_cmp, typedef opt_ext): New.
28352 (aarch64_option_init_struct): New.
28353 (aarch64_contains_opt): New.
28354 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
28355 * config/aarch64/aarch64-option-extensions.def
28356 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
28357 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
28358 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
28359 Set is_synthetic to false.
28360 (crypto): Set is_synthetic to true.
28361 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
28364 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28366 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
28367 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
28368 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
28369 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
28370 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
28371 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
28372 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
28373 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
28375 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
28376 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
28377 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
28378 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
28379 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
28380 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
28381 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
28382 vfmlsl_laneq_high_f16): ... To this.
28383 * config/arm/neon.md: Update comments.
28385 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28387 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
28388 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
28389 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
28390 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
28391 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
28392 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
28393 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
28394 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
28396 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
28397 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
28398 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
28399 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
28400 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
28401 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
28402 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
28403 vfmlslq_laneq_high_f16): ... To this.
28405 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
28407 PR rtl-optimization/86096
28408 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
28409 comparing mw_order values.
28411 2019-02-25 Jakub Jelinek <jakub@redhat.com>
28414 * config/arm/arm.md (*subsi3_carryin_const): Use
28415 arm_neg_immediate_operand predicate instead of
28416 arm_not_immediate_operand, "L" constraint instead of "K" and
28417 print it using %n2 instead of %B2.
28418 (*subsi3_carryin_const0): New define_insn.
28419 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
28420 instead of arm_not_operand and "I" constraint instead of "K" and
28421 print it using %n3 instead of %B2. Instead of using match_dup 2 add
28422 another match_operand and in the condition check that it is negation
28424 (*subsi3_carryin_compare_const0): New define_ins.
28425 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
28426 *subsi3_carryin_const.
28427 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
28428 split into *subsi3_carryin_compare_const0 if the highpart is zero.
28431 * config/arm.vfp.md (*negdf2_vfp): Use
28432 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
28433 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
28435 2019-02-24 Jakub Jelinek <jakub@redhat.com>
28437 PR rtl-optimization/89445
28438 * simplify-rtx.c (simplify_ternary_operation): Don't use
28439 simplify_merge_mask on operands that may trap.
28440 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
28441 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
28442 second operand is CONST_VECTOR, check if any element could be zero.
28443 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
28444 their operands can trap.
28446 2019-02-23 Martin Sebor <msebor@redhat.com>
28448 * gimple-ssa-sprintf.c (target_strtol): Rename...
28449 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
28450 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
28451 check for range error.
28453 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
28456 * opts-common.c (prune_options): Also prune joined switches
28457 with Negative and RejectNegative.
28458 * config/i386/i386.opt (march=): Add Negative(march=).
28459 (mtune=): Add Negative(mtune=).
28460 * doc/options.texi: Document Negative used together with Joined
28461 and RejectNegative.
28463 2019-02-22 Martin Sebor <msebor@redhat.com>
28465 * doc/extend.texi (Other Builtins): Add
28466 __builtin_is_constant_evaluated.
28468 2019-02-22 Richard Biener <rguenther@suse.de>
28470 PR tree-optimization/87609
28471 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
28473 2019-02-22 Jeff Law <law@redhat.com>
28475 PR rtl-optimization/87761
28476 * config/mips/mips.md: Add new combiner pattern to recognize
28477 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
28479 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
28482 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
28483 destination register in peepholes generating patterns for ADDS/SUBS.
28484 (add<mode>3_compare0,
28485 *addsi3_compare0_uxtw, add<mode>3_compareC,
28486 add<mode>3_compareV_imm, add<mode>3_compareV,
28487 *adds_<optab><ALLX:mode>_<GPI:mode>,
28488 *subs_<optab><ALLX:mode>_<GPI:mode>,
28489 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
28490 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
28491 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
28492 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
28493 sub<mode>3_compare1): Allow stack pointer for source register.
28494 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
28496 2019-02-22 Martin Sebor <msebor@redhat.com>
28498 PR tree-optimization/88993
28499 PR tree-optimization/88853
28500 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
28502 (sprintf_dom_walker::call_info::is_string_func): New helper.
28503 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
28504 for formatted string functions.
28505 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
28507 2019-02-22 Martin Sebor <msebor@redhat.com>
28510 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
28511 unreachable subexpressions.
28513 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
28514 Hongtao Liu <hongtao.liu@intel.com>
28515 Sunil K Pandey <sunil.k.pandey@intel.com>
28518 * config/i386/i386-passes.def: Add
28519 pass_remove_partial_avx_dependency.
28520 * config/i386/i386-protos.h
28521 (make_pass_remove_partial_avx_dependency): New.
28522 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
28524 (pass_data_remove_partial_avx_dependency): New.
28525 (pass_remove_partial_avx_dependency): Likewise.
28526 (make_pass_remove_partial_avx_dependency): Likewise.
28527 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
28528 (*extendsfdf2): Add avx_partial_xmm_update.
28529 (truncdfsf2): Likewise.
28530 (*float<SWI48:mode><MODEF:mode>2): Likewise.
28531 (SF/DF conversion splitters): Disabled for TARGET_AVX.
28533 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
28535 PR middle-end/85598
28536 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
28539 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
28542 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
28543 (PTA_SKYLAKE): Add PTA_AES.
28544 (PTA_GOLDMONT): Likewise.
28546 2019-02-22 Sudakshina Das <sudi.das@arm.com>
28548 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
28549 instruction if enabled.
28550 (aarch64_override_options): Remove reference to return address key.
28552 2019-02-22 Richard Biener <rguenther@suse.de>
28554 PR tree-optimization/89440
28555 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
28556 not necessary assert.
28558 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
28561 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
28562 (oacc_replace_fn_attrib_attr): ... this new function.
28563 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
28564 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
28566 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28568 * config/arm/arm-cpus.in (ares): Rename to...
28569 (neoverse-n1): ... This. Add ares as alias.
28570 * config/arm/arm-tables.opt: Regenerate.
28571 * config/arm/arm-tune.md: Likewise.
28572 * doc/invoke.txt (ARM Options): Document neoverse-n1.
28574 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28576 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
28577 * config/aarch64/aarch64-tune.md: Regenerate.
28578 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
28580 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28582 * config/aarch64/aarch64.c (ares_tunings): Rename to...
28583 (neoversen1_tunings): ... This.
28584 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
28585 (neoverse-n1): New CPU.
28586 * config/aarch64/aarch64-tune.md: Regenerate.
28587 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
28589 2019-02-22 Richard Biener <rguenther@suse.de>
28591 PR middle-end/87609
28592 * cfghooks.h (dependence_hash): New typedef.
28593 (struct copy_bb_data): New type.
28594 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
28595 (duplicate_block): Likewise.
28596 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
28597 (copy_bbs): Create and pass down copy_bb_data.
28598 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
28599 (rtl_duplicate_bb): Likewise.
28600 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
28601 remap dependence info.
28603 2019-02-22 Richard Biener <rguenther@suse.de>
28605 PR tree-optimization/87609
28606 * tree-core.h (tree_base): Document special clique values.
28607 * tree-inline.c (remap_dependence_clique): Do not use the
28608 special clique value of one.
28609 (maybe_set_dependence_info): Use clique one.
28610 (clear_dependence_clique): New callback.
28611 (compute_dependence_clique): Clear clique one from all refs
28612 before assigning it (again).
28614 2019-02-21 Martin Sebor <msebor@redhat.com>
28616 * doc/extend.texi (__clear_cache): Correct signature.
28618 2019-02-21 Ian Lance Taylor <iant@golang.org>
28621 * varasm.c (decode_addr_const): Call lookup_constant_def rather
28622 than output_constant_def.
28623 (add_constant_to_table): New static function.
28624 (output_constant_def): Call add_constant_to_table.
28625 (tree_output_constant_def): Likewise.
28627 2019-02-21 Jakub Jelinek <jakub@redhat.com>
28630 * builtins.c (fold_builtin_arith_overflow): If first two args are
28631 INTEGER_CSTs, set intres and ovfres to constants rather than calls
28634 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
28637 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
28638 error for -mindirect-branch/-mfunction-return with incompatible
28641 2019-02-21 Jakub Jelinek <jakub@redhat.com>
28644 * constraints.md (q): Remove.
28645 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
28648 2019-02-21 Martin Jambor <mjambor@suse.cz>
28651 * omp-general.c (omp_extract_for_data): Removed a duplicate call
28652 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
28653 (omp_adjust_for_condition): ...here. Added necessary parameters.
28654 * omp-general.h (omp_adjust_for_condition): Updated declaration.
28655 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
28656 proper values to new parameters of omp_adjust_for_condition.
28658 2019-02-20 Jakub Jelinek <jakub@redhat.com>
28660 PR middle-end/89412
28661 * expr.c (expand_assignment): If result is a MEM, use change_address
28662 instead of simplify_gen_subreg.
28664 2019-02-20 Jakub Jelinek <jakub@redhat.com>
28665 David Malcolm <dmalcolm@redhat.com>
28667 PR middle-end/89091
28668 * fold-const.c (decode_field_reference): Return NULL_TREE if
28669 lang_hooks.types.type_for_size returns NULL. Check it before
28670 overwriting *exp_. Use return NULL_TREE instead of return 0.
28672 2019-02-20 Jakub Jelinek <jakub@redhat.com>
28674 PR middle-end/88074
28675 PR middle-end/89415
28676 * toplev.c (do_compile): Double the emin/emax exponents to workaround
28679 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
28682 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
28683 TARGET_SSE in addition to TARGET_SSE_MATH.
28685 (ix86_excess_precision): Ditto.
28686 (ix86_float_exceptions_rounding_supported_p): Ditto.
28687 (use_rsqrt_p): Ditto.
28688 * config/i386/sse.md (rsqrt<mode>2): Ditto.
28690 2019-02-20 David Malcolm <dmalcolm@redhat.com>
28693 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
28694 linenum_arith_t when determining if two adjacent line spans are
28695 close enough to merge.
28696 (diagnostic_show_locus): Use linenum_arith_t when iterating over
28697 lines within each line_span.
28699 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
28702 * lra-constraints.c(uses_hard_regs_p): Fix handling of
28703 paradoxical SUBREGS.
28705 2019-02-20 Li Jia He <helijia@linux.ibm.com>
28708 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
28709 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
28710 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
28713 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
28715 * config/gcn/gcn.c (print_operand): Fix typo.
28717 2019-02-19 Richard Biener <rguenther@suse.de>
28719 PR middle-end/88074
28720 * toplev.c (do_compile): Initialize mpfr's exponent range
28721 based on available float modes.
28723 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
28725 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
28726 as long as the epilogue isn't completed.
28728 2019-02-18 Martin Sebor <msebor@redhat.com>
28730 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
28731 __has_cpp_attribute, and __has_include.
28733 2019-02-18 Martin Sebor <msebor@redhat.com>
28735 * doc/invoke.texi (-Wreturn-type): Correct and expand.
28737 2019-02-18 Martin Sebor <msebor@redhat.com>
28739 PR middle-end/89294
28740 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
28742 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
28744 2019-02-18 Richard Biener <rguenther@suse.de>
28746 PR tree-optimization/89296
28747 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
28748 of no-warning flag to cases that might emit the bogus warning.
28750 2019-02-18 Jakub Jelinek <jakub@redhat.com>
28753 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
28755 * config/arm/vfp.md (*movdi_vfp): Likewise.
28756 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
28757 "q" constraint for operands[0].
28760 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
28761 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
28762 pattern in a temporary buffer.
28763 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
28764 than 64-operands[2].
28767 * config/s390/s390.c (s390_indirect_branch_attrvalue,
28768 s390_indirect_branch_settings): Define unconditionally.
28769 (s390_set_current_function): Likewise, but guard the whole body except
28770 the s390_indirect_branch_settings call with
28771 #if S390_USE_TARGET_ATTRIBUTE.
28772 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
28774 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
28775 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
28776 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
28777 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
28778 HOST_WIDE_INT_1U instead of 1ULL.
28779 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
28780 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
28781 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
28782 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
28784 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
28787 2019-02-18 Martin Jambor <mjambor@suse.cz>
28789 PR tree-optimization/89209
28790 * tree-sra.c (create_access_replacement): New optional parameter
28791 reg_tree. Use it as a type if non-NULL and access type is not of
28793 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
28794 to create_access_replacement.
28795 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
28796 Check lacc is non-NULL before attempting to re-create it on the RHS.
28798 2019-02-18 Martin Liska <mliska@suse.cz>
28801 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
28803 (symbol_table::free_edge): Recycle m_summary_id.
28804 * cgraph.h (get_summary_id): New.
28805 (symbol_table::release_symbol): Set m_summary_id to -1
28807 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
28808 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
28809 function_summary to fast_function_summary.
28810 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
28811 * ipa-pure-const.c (class funct_state_summary_t):
28812 Switch from function_summary to fast_function_summary.
28813 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
28814 (class ipa_ref_opt_summary_t): Switch from function_summary
28815 to fast_function_summary.
28816 * symbol-summary.h (class function_summary_base): New class
28817 that is created from base of former function_summary.
28818 (function_summary_base::unregister_hooks): New.
28819 (class function_summary): Inherit from function_summary_base.
28820 (class call_summary_base): New class
28821 that is created from base of former call_summary.
28822 (class call_summary): Inherit from call_summary_base.
28823 (struct is_same): New.
28824 (class fast_function_summary): New summary class.
28825 (class fast_call_summary): New summary class.
28826 * vec.h (vec_safe_grow_cleared): New function.
28828 2019-02-18 Martin Liska <mliska@suse.cz>
28830 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
28831 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
28832 * doc/tm.texi: Document new target hook.
28833 * doc/tm.texi.in: Likewise.
28834 * target.def: Add new target macro.
28835 * gcc.c (find_fortran_preinclude_file): Do not search multilib
28838 2019-02-17 Alan Modra <amodra@gmail.com>
28841 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
28842 output reg on add insn.
28843 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
28845 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
28848 * config/i386/sse.md (ssedoublemode): Remove V4HI.
28849 (PMULHRSW): Likewise.
28850 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
28852 (ssse3_pmulhrswv4hi3): New expander.
28854 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
28856 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
28857 MMX. Add isa attribute.
28859 2019-02-16 Jakub Jelinek <jakub@redhat.com>
28861 PR rtl-optimization/66152
28862 * builtins.h (c_readstr): Declare.
28863 * builtins.c (c_readstr): Remove forward declaration. Add
28864 null_terminated_p argument, if false, read all bytes from the
28865 string instead of stopping after '\0'.
28866 * expr.c (string_cst_read_str): New function.
28867 (store_expr): Use string_cst_read_str instead of
28868 builtin_strncpy_read_str. Try to store by pieces the whole
28869 exp_len first, and only if that fails, split it up into
28870 store by pieces followed by clear_storage. Formatting fix.
28872 * config/i386/i386.md (*movqi_internal): Remove static from
28873 buf variable. Use output_asm_insn (buf, operands); return "";
28874 instead of return buf;.
28875 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
28876 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
28877 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
28879 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
28881 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
28882 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
28883 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
28884 (CC1_SPEC): Likewise.
28885 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
28887 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
28889 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
28890 the base address on 64-bit strict-alignment platforms.
28892 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
28894 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
28896 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
28898 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
28900 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
28902 PR rtl-optimization/88308
28903 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
28904 on copied instruction.
28906 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
28908 * final.c (insn_current_reference_address): Replace test on JUMP_P
28909 with test on jump_to_label_p.
28910 * config/visium/visium-passes.def: New file.
28911 * config/visium/t-visium (PASSES_EXTRA): Define.
28912 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
28913 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
28914 (TRAMPOLINE_ALIGNMENT): Define.
28915 * config/visium/visium.c (visium_option_override): Do not register
28916 the machine-specific reorg pass here.
28917 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
28919 (output_branch): Adjust threshold for long branch instruction.
28920 * config/visium/visium.md (cpu): Move around.
28921 (length): Adjust for the GR6.
28923 2019-02-15 Richard Biener <rguenther@suse.de>
28924 Jakub Jelinek <jakub@redhat.com>
28926 PR tree-optimization/89278
28927 * tree-loop-distribution.c: Include tree-eh.h.
28928 (generate_memset_builtin, generate_memcpy_builtin): Call
28929 rewrite_to_non_trapping_overflow on builtin->size before passing it
28930 to force_gimple_operand_gsi.
28932 2019-02-15 Jakub Jelinek <jakub@redhat.com>
28935 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
28937 * opth-gen.awk: Likewise.
28939 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
28941 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
28942 Enable MMX, SSE and SSE2 by default.
28943 * config/i386/i386.c (ix86_option_override_internal): Do not
28944 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
28946 2019-02-14 Jakub Jelinek <jakub@redhat.com>
28948 PR rtl-optimization/89354
28949 * combine.c (make_extraction): Punt if extraction_mode is narrower
28952 2019-02-14 Maya Rashish <coypu@sdf.org>
28954 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
28955 * config/netbsd-d.c: New file.
28956 * config/t-netbsd: Add netbsd-d.o
28958 2018-02-14 Steve Ellcey <sellcey@marvell.com>
28960 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
28961 affects_type_identity to true for aarch64_vector_pcs.
28962 (aarch64_comp_type_attributes): New function.
28963 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
28965 2019-02-14 Tamar Christina <tamar.christina@arm.com>
28968 * config/arm/iterators.md (ANY64): Add V4HF.
28970 2019-02-14 Martin Liska <mliska@suse.cz>
28972 PR rtl-optimization/89242
28973 * dce.c (delete_unmarked_insns): Call free_dominance_info we
28974 process a transformation.
28976 2019-02-14 Jakub Jelinek <jakub@redhat.com>
28978 PR tree-optimization/89314
28979 * fold-const.c (fold_binary_loc): Cast strlen argument to
28980 const char * before dereferencing it. Formatting fixes.
28982 PR middle-end/89284
28983 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
28985 2019-02-13 Ian Lance Taylor <iant@golang.org>
28987 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
28988 and set current index for other optimizations.
28990 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
28992 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
28993 nonimmediate_operand as operand 2 predicate.
28994 (vec_set<VF2_512_256:mode>_0): Ditto.
28995 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
28996 (*vec_concatv2si): Remove alternative 2.
28997 (*vec_concatv4si_0): Use vm constraint for alternative 0.
28998 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
28999 (vec_concatv2di): Split alternatives 4,5,6 to ...
29000 (*vec_concatv2di_0) ... new pattern.
29002 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
29005 * config/arm/arm.c (ldm_stm_operation_p) Set
29006 addr_reg_in_reglist correctly for first register.
29007 (load_multiple_sequence): Remove dead base check.
29008 (gen_ldm_seq): Correctly set write_back for Thumb-1.
29010 2019-02-13 Tamar Christina <tamar.christina@arm.com>
29013 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
29014 Expose as @aarch64_pred_mov.
29015 * config/aarch64/aarch64.c (aarch64_classify_address):
29016 Use expand_insn which legitimizes operands.
29018 2019-02-13 Martin Liska <mliska@suse.cz>
29020 * builtins.h (expand_builtin_with_bounds): Remove declaration.
29021 * calls.c (struct arg_data): Remove special_slot, pointer_arg
29022 and pointer_offset fields.
29023 (initialize_argument_information): Remove usage of dead
29025 * cgraph.h (struct cgraph_thunk_info): Remove
29026 add_pointer_bounds_args.
29027 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
29029 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
29031 * config/i386/i386.c (ix86_function_arg_advance): Remove
29033 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
29034 (def_builtin): Remove usage of dead fields.
29035 (ix86_add_new_builtins): Likewise.
29036 * ipa-fnsummary.c (compute_fn_summary): Likewise.
29037 * ipa-icf.c (sem_function::equals_wpa): Likewise.
29038 (sem_function::init): Likewise.
29039 (sem_variable::merge): Likewise.
29040 * ipa-visibility.c (function_and_variable_visibility): Likewise.
29041 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
29042 * lto-cgraph.c (lto_output_node): Likewise.
29043 (lto_output_varpool_node): Likewise.
29044 (input_node): Likewise.
29045 (input_varpool_node): Likewise.
29046 * lto-streamer-out.c (lto_output): Likewise.
29047 * tree-inline.c (expand_call_inline): Remove usage of
29049 * tree-inline.h (struct copy_body_data): Likewise.
29050 * varpool.c (varpool_node::dump): Likewise.
29052 2019-02-13 Jakub Jelinek <jakub@redhat.com>
29054 PR middle-end/89303
29055 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
29056 into pt->vars_contains_escaped_heap instead of setting
29057 pt->vars_contains_escaped_heap to it.
29059 PR middle-end/89281
29060 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
29061 INTVAL (size), compare it to GET_MODE_MASK instead of
29062 1 << GET_MODE_BITSIZE.
29065 * config/i386/predicates.md (x86_64_immediate_operand): Allow
29066 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
29069 2019-02-13 Martin Liska <mliska@suse.cz>
29072 * cfgrtl.c (remove_barriers_from_footer): New function.
29073 (try_redirect_by_replacing_jump): Use it.
29074 (cfg_layout_redirect_edge_and_branch): Likewise.
29076 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
29078 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
29079 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
29080 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
29081 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
29082 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
29083 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
29085 * config/rs6000/rs6000.c (builtin_function_type)
29086 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
29087 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
29088 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
29089 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
29090 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
29092 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
29094 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
29095 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
29097 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
29100 * config/i386/i386.md (*movoi_internal_avx): Revert revision
29101 268678 and revision 268657.
29102 (*movti_internal): Likewise.
29104 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
29107 * config/s390/s390.c (s390_decompose_address): Update comment.
29108 (s390_check_qrst_address): Reject invalid address forms after
29111 2019-02-12 Martin Liska <mliska@suse.cz>
29114 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
29115 we need default values of funct_state for a function that
29118 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
29120 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
29121 the object to pick the size of stores on strict-alignment platforms.
29123 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
29124 (*movdi_insn_sp32): Likewise.
29125 (*movdi_insn_sp64): Likewise.
29127 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
29130 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
29131 types that needs constructiong.
29132 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
29134 2019-02-12 Richard Biener <rguenther@suse.de>
29136 PR tree-optimization/89253
29137 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
29138 duplicate the loop.
29140 2019-02-11 David Malcolm <dmalcolm@redhat.com>
29143 * input.c (selftest::test_line_offset_overflow): New selftest.
29144 (selftest::input_c_tests): Call it.
29146 2019-02-11 Martin Sebor <msebor@redhat.com>
29148 PR tree-optimization/88771
29149 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
29150 when -Wstringop-overflow is set.
29151 (builtin_memref::builtin_memref): Adjust excessive upper bound
29152 only when lower bound is not excessive.
29153 (maybe_diag_overlap): Detect and diagnose excessive bounds via
29154 -Wstringop-ovefflow.
29155 (maybe_diag_offset_bounds): Rename...
29156 (maybe_diag_access_bounds): ...to this.
29157 (check_bounds_or_overlap): Adjust for name change above.
29159 2019-02-11 Martin Sebor <msebor@redhat.com>
29162 * builtins.c (max_object_size): Move from here...
29163 * builtins.h (max_object_size): ...and here...
29164 * tree.c (max_object_size): ...to here...
29165 * tree.h (max_object_size): ...and here.
29167 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
29169 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
29170 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
29171 for correct semantics.
29173 2019-02-11 Alan Modra <amodra@gmail.com>
29175 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
29176 -mlongcall and -mpltseq.
29177 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
29178 (RS/6000 and PowerPC Options <-mpltseq>): Document.
29179 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
29180 * config/rs6000/sysv4.opt (mpltseq): New option.
29181 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
29182 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
29183 support is lacking. Don't allow -mpltseq with -mbss-plt.
29184 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
29185 -mpltseq given for ELFv1.
29186 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
29187 Only use UNSPEC_PLTSEQ for inline PLT calls.
29188 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
29189 use UNSPEC_PLTSEQ for inline PLT calls.
29190 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
29191 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
29192 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
29193 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
29194 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
29195 (pltseq_mtctr_<mode>): Likewise.
29197 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29199 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
29201 * configure: Regenerate.
29203 2019-02-11 Jakub Jelinek <jakub@redhat.com>
29206 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
29209 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
29211 * function.c (assign_parm_setup_block): Use the stored
29212 size, not the passed size, when allocating stack-space,
29213 also for a parameter with alignment larger than
29214 MAX_SUPPORTED_STACK_ALIGNMENT.
29216 2019-02-11 Martin Liska <mliska@suse.cz>
29219 * ipa-cp.c (build_toporder_info): Remove usage of a param.
29220 * ipa-inline.c (inline_small_functions): Likewise.
29221 * ipa-pure-const.c (propagate_pure_const): Likewise.
29222 (propagate_nothrow): Likewise.
29223 * ipa-reference.c (propagate): Likewise.
29224 * ipa-utils.c (struct searchc_env): Remove unused field.
29225 (searchc): Always search across AVAIL_INTERPOSABLE.
29226 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
29227 the only called IPA pure const can properly not propagate
29228 across interposable boundary.
29229 * ipa-utils.h (ipa_reduced_postorder): Remove param.
29231 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
29233 * config/nds32/nds32.md (call_internal, call_value_internal,
29234 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
29236 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
29238 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
29241 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
29243 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
29246 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
29248 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
29250 2019-02-10 Jakub Jelinek <jakub@redhat.com>
29252 PR tree-optimization/89268
29253 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
29254 if preds is non-NULL.
29256 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29259 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
29262 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
29264 * config/nds32/nds32.md (trap): New pattern.
29266 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
29268 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
29271 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
29273 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
29276 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29278 * ipa-visibility.c (localize_node): Also do not localize
29279 LDPR_PREVAILING_DEF_IRONLY_EXP.
29281 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29284 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
29285 instead of type_with_linkage.
29287 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29290 * params.def (uninlined-function-insns, uninlined-function-time,
29291 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
29292 bound so we don't get overflows.
29294 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
29296 * config/rs6000/rs6000-string.c (expand_compare_loop,
29297 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
29300 2019-02-09 Jakub Jelinek <jakub@redhat.com>
29302 PR middle-end/89246
29303 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
29304 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
29305 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
29307 2019-02-09 Alan Modra <amodra@gmail.com>
29310 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
29311 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
29314 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
29316 PR middle-end/88560
29317 * lra-constraints.c (process_alt_operands): Don't increase reject
29318 for memory when offset memory is required.
29320 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
29322 * config/s390/vector.md: Implement vector copysign.
29324 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
29326 * expr.c (expand_constructor): Correct indentations.
29328 2019-02-08 Richard Biener <rguenther@suse.de>
29330 PR tree-optimization/89247
29331 * tree-if-conv.c: Include tree-cfgcleanup.h.
29332 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
29333 (tree_if_conversion): Pass through predicate vector.
29334 (pass_if_conversion::execute): Do CFG cleanup and SSA update
29335 inline, see if any if-converted loops we refrece in
29336 LOOP_VECTORIZED calls vanished and fixup.
29337 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
29339 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
29341 * config/s390/constraints.md (jdd): New constraint.
29343 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
29346 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
29347 upper 16 vector registers without TARGET_AVX512VL.
29348 (*movti_internal): Likewise.
29350 2019-02-08 Jakub Jelinek <jakub@redhat.com>
29352 PR rtl-optimization/89234
29353 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
29354 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
29355 (copy_reg_eh_region_note_backward): Likewise.
29357 2019-02-08 Richard Biener <rguenther@suse.de>
29359 PR middle-end/89223
29360 * tree-data-ref.c (initialize_matrix_A): Fail if constant
29361 doesn't fit in HWI.
29362 (analyze_subscript_affine_affine): Handle failure from
29363 initialize_matrix_A.
29365 2019-02-08 Jakub Jelinek <jakub@redhat.com>
29367 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
29370 2019-02-07 David Malcolm <dmalcolm@redhat.com>
29372 PR tree-optimization/86637
29373 PR tree-optimization/89235
29374 * tree-vect-loop.c (optimize_mask_stores): Add an
29375 auto_purge_vect_location sentinel to ensure that vect_location is
29377 * tree-vectorizer.c
29378 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
29379 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
29380 to ensure that vect_location is purged on exit.
29381 (pass_slp_vectorize::execute): Likewise, replacing the manual
29383 * tree-vectorizer.h (class auto_purge_vect_location): New class.
29385 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29387 * config/aarch64/iterators.md (max_opp): New code_attr.
29388 (USMAX): New code iterator.
29389 * config/aarch64/predicates.md (aarch64_smin): New predicate.
29390 (aarch64_smax): Likewise.
29391 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
29392 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
29395 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
29398 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
29399 for TARGET_AVX512VL.
29400 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
29402 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
29404 * config/s390/s390-builtin-types.def: Add new types.
29405 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
29406 (s390_vec_xlw4): Make the memory operand into a const pointer.
29407 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
29409 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
29410 a new vector type with the alignment of the scalar memory operand.
29412 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
29413 Jakub Jelinek <jakub@redhat.com>
29416 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
29417 arm_count_ldrdstrd_insns): New declarations.
29418 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
29420 (valid_operands_ldrd_strd): New function.
29421 (arm_count_ldrdstrd_insns): New function.
29422 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
29423 sets instead of single DImode set and define new insns to match this.
29425 2019-02-07 Tamar Christina <tamar.christina@arm.com>
29427 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
29428 Make it a C initializer.
29430 2019-02-07 Tamar Christina <tamar.christina@arm.com>
29433 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
29435 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29437 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
29438 Use neon_dot<q> for type.
29439 (neon_<sup>dot_lane<vsi2qi>): Likewise.
29441 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29443 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
29444 Use neon_dot<q> for type.
29445 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
29446 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
29448 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
29450 PR rtl-optimization/89225
29451 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
29454 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
29456 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
29457 after restoring registers saved to allocate the frame on Windows.
29459 2019-02-06 Richard Biener <rguenther@suse.de>
29461 PR tree-optimization/89182
29462 * graphite.h (cached_scalar_evolution_in_region): Declare.
29463 * graphite.c (struct seir_cache_key): New.
29464 (struct sese_scev_hash): Likewise.
29465 (seir_cache): New global.
29466 (cached_scalar_evolution_in_region): New function.
29467 (graphite_transform_loops): Allocate and release seir_cache.
29468 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
29469 cached_scalar_evolution_in_region.
29470 * graphite-scop-detection.c (scop_detection::can_represent_loop):
29472 (scop_detection::graphite_can_represent_expr: Use
29473 cached_scalar_evolution_in_region.
29474 (scop_detection::stmt_simple_for_scop_p): Likewise.
29475 (find_params_in_bb): Likewise.
29476 (gather_bbs::before_dom_children): Likewise.
29477 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
29478 (add_loop_constraints): Likewise.
29480 2019-02-06 Jakub Jelinek <jakub@redhat.com>
29482 PR middle-end/89210
29483 * fold-const-call.c (fold_const_vec_convert): Pass true as last
29484 operand to new_unary_operation only if both element types are integral
29485 and it isn't a widening conversion. Return NULL_TREE if
29486 new_unary_operation failed.
29488 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
29491 * config/s390/s390.md: Remove load and test FP splitter.
29493 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
29496 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
29497 expand_compare_loop, expand_block_compare_gpr,
29498 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
29499 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
29500 #include "profile-count.h" and "predict.h" for types and functions
29501 needed to work with REG_BR_PROB notes.
29503 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
29506 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
29507 for the long branch case.
29509 2019-02-05 Jakub Jelinek <jakub@redhat.com>
29512 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
29513 can throw, non-call exceptions are enabled and we can't delete
29514 dead exceptions or alter cfg. Set must_clean if
29515 delete_insn_and_edges returns true, don't set it blindly for calls.
29516 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
29518 PR rtl-optimization/89195
29519 * combine.c (make_extraction): For MEMs, don't extract bytes outside
29520 of the original MEM.
29522 2019-02-05 Martin Liska <mliska@suse.cz>
29524 PR gcov-profile/89000
29525 * gcov.c (function_summary): Remove argument.
29526 (file_summary): New function.
29527 (print_usage): Replace tabs with spaces.
29528 (generate_results): Use new function file_summary.
29530 2019-02-05 Jakub Jelinek <jakub@redhat.com>
29533 * optabs.c (prepare_cmp_insn): Pass x and y to
29534 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
29536 2019-02-05 Richard Biener <rguenther@suse.de>
29538 PR middle-end/89150
29539 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
29540 (struct bitmap_element): Drop chain_prev so we properly recurse on
29541 the prev member, supporting tree views.
29542 (struct bitmap_head): GTY skip the obstack member.
29544 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
29547 * doc/extend.texi (Vector Extensions): Add an example of using vector
29548 types together with x86 intrinsics.
29550 2019-02-04 Alan Modra <amodra@gmail.com>
29552 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
29553 str[] size to 160, and comment.
29555 2019-02-04 Alan Modra <amodra@gmail.com>
29557 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
29558 (rs6000_pltseq_template): Guard output of TLS markers with
29559 TARGET_TLS_MARKERS.
29560 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
29561 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
29562 to use inline PLT sequences.
29563 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
29564 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
29565 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
29567 2019-02-04 Martin Liska <mliska@suse.cz>
29570 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
29571 out when ipa_fn_summaries does not contain entry for callee.
29573 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
29575 * config/sparc/sparc.h: Remove superfluous blank lines.
29576 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
29577 (got_register_rtx): ...this.
29578 (sparc_got): Adjust to above renaming.
29579 (sparc_tls_got): Likewise.
29580 (sparc_delegitimize_address): Likewise.
29581 (sparc_output_mi_thunk): Likewise.
29582 (sparc_init_pic_reg): Likewise.
29583 (save_local_or_in_reg_p): Fix test on the GOT register.
29584 (USE_HIDDEN_LINKONCE): Move around.
29585 (get_pc_thunk_name): Likewise.
29586 (gen_load_pcrel_sym): Likewise.
29587 (load_got_register): Likewise.
29589 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
29591 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
29592 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
29594 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
29596 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
29597 into consideration.
29599 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
29601 * config.gcc (with_nds32_lib, glibc):
29602 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
29603 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
29604 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
29606 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
29609 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
29610 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
29611 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
29612 (*rcpsf2_sse): Ditto.
29613 (*rsqrtsf2_sse): Ditto.
29614 (sse4_1_round<mode<2): Ditto.
29616 2019-02-03 Richard Biener <rguenther@suse.de>
29619 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
29622 2019-02-02 Jakub Jelinek <jakub@redhat.com>
29624 PR middle-end/87887
29625 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
29626 Punt with warning on aggregate return or argument types. Ignore
29627 type/mode checking for uniform arguments.
29629 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
29631 * combine.c (try_combine): Do not print "Can't combine" messages unless
29632 printing failed combination attempts.
29634 2019-02-01 Martin Jambor <mjambor@suse.cz>
29637 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
29638 segment and global segment variables before making them static.
29640 2019-02-01 Martin Jambor <mjambor@suse.cz>
29642 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
29643 missed optimization dump with dump_enabled_p.
29645 2019-02-01 Richard Biener <rguenther@suse.de>
29647 PR middle-end/88597
29648 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
29649 the instantiate cache.
29650 (instantiate_scev_binary): Elide second operand procesing
29651 if equal to the first.
29652 * tree-chrec.c (chrec_contains_symbols): Add visited set.
29653 (chrec_contains_undetermined): Likewise.
29654 (tree_contains_chrecs): Likewise.
29656 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
29658 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
29660 2019-02-01 Jakub Jelinek <jakub@redhat.com>
29662 PR tree-optimization/89143
29663 * wide-int-range.h (wide_int_range_absu): Declare.
29664 * wide-int-range.cc (wide_int_range_absu): New function.
29665 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
29667 PR tree-optimization/88107
29668 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
29669 instead of assertion that eh_region_outermost is non-NULL, if it
29670 is NULL, set *ALL to true and return NULL.
29671 (move_sese_region_to_fn): Adjust caller, if all is set, call
29672 duplicate_eh_regions with NULL region.
29674 2019-02-01 Richard Biener <rguenth@suse.de>
29676 PR rtl-optimization/88593
29677 * mode-switching.c (optimize_mode_switching): Free dominators before
29678 calling cleanup_cfg.
29680 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29682 PR tree-optimization/88932
29683 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
29685 2019-01-31 Jakub Jelinek <jakub@redhat.com>
29687 PR middle-end/89137
29688 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
29689 bogus clang warning.
29691 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
29694 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
29695 alternative to avoid partial SSE register stall for TARGET_AVX.
29696 (truncdfsf2): Ditto.
29697 (sse4_1_round<mode>2): Ditto.
29699 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
29701 PR tree-optimization/89008
29702 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
29703 process anything of the form X * 0.
29705 2019-01-31 Richard Biener <rguenther@suse.de>
29707 PR tree-optimization/89135
29708 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
29709 with abnormal preds.
29711 2019-01-31 Jakub Jelinek <jakub@redhat.com>
29714 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
29715 always_inline callees into no_sanitize_address callers.
29717 2019-01-31 Richard Biener <rguenther@suse.de>
29719 PR rtl-optimization/89115
29720 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
29722 2019-01-30 Martin Sebor <msebor@redhat.com>
29725 * doc/extend.texi (cast to a union): Correct and expand.
29727 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
29729 PR rtl-optimization/87246
29730 * lra-constraints.c (simplify_operand_subreg): Reload memory
29731 in subreg if the address became invalid.
29733 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
29736 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
29737 Disable for little-endian.
29739 2019-01-30 Richard Biener <rguenther@suse.de>
29741 PR rtl-optimization/89115
29742 * opts.c (default_options_optimization): Reduce
29743 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
29744 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
29747 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
29749 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
29750 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
29751 type of vector element when vec_extract is implemented by direct
29754 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
29756 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
29758 2019-01-30 Richard Biener <rguenther@suse.de>
29760 PR tree-optimization/89111
29761 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
29762 canonicalization to appropriately sized access types.
29764 2019-01-30 Jakub Jelinek <jakub@redhat.com>
29767 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
29768 for arguments to functions that are TU-local and shouldn't be
29769 referenced by assembly.
29771 2019-01-30 Ulrich Drepper <drepper@redhat.com>
29773 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
29776 2019-01-29 Martin Sebor <msebor@redhat.com>
29779 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
29781 2019-01-29 Jakub Jelinek <jakub@redhat.com>
29785 * omp-simd-clone.c (simd_clone_clauses_extract)
29786 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
29787 OMP_CLAUSE_ALIGNED_ALIGNMENT.
29789 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
29791 * config.gcc: Force .init_array for ARC.
29793 2019-01-29 Richard Biener <rguenther@suse.de>
29796 * dwarf2out.c (collect_skeleton_dies): New helper.
29797 (copy_decls_for_unworthy_types): Call it.
29798 (build_abbrev_table): Assert we do not try to replace
29799 DW_AT_signature refs with local refs.
29801 2019-01-28 Jakub Jelinek <jakub@redhat.com>
29803 PR middle-end/89002
29804 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
29805 for lastprivate/linear IV, push gimplify context around gimplify_assign
29806 and, if it needed any temporaries, pop it into a gimple bind around the
29809 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
29811 * common.opt (-Wattribute-alias): Remove "no-" from name.
29812 Make -Wattribute-alias command line option and
29813 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
29815 2019-01-28 Jakub Jelinek <jakub@redhat.com>
29818 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
29819 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
29821 (bmi2): Add missing @opindex.
29822 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
29823 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
29824 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
29825 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
29826 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
29827 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
29828 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
29829 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
29830 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
29831 xsavec, xsaveopt and xsaves options.
29833 2019-01-28 Richard Biener <rguenther@suse.de>
29836 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
29839 2019-01-28 Richard Biener <rguenther@suse.de>
29841 PR tree-optimization/88739
29842 * tree-cfg.c (verify_types_in_gimple_reference): Verify
29843 BIT_FIELD_REFs only are applied to mode-precision operands
29844 when they are integral.
29845 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
29846 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
29847 BIT_FIELD_REFs of non-mode-precision integral operands.
29849 2019-01-27 Jakub Jelinek <jakub@redhat.com>
29852 * config/i386/sse.md
29853 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
29854 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
29855 first constants in pairs are multiples of 2. Formatting fixes.
29856 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
29857 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
29858 first constants in each quadruple are multiples of 4. Formatting fixes.
29860 2019-01-26 Martin Jambor <mjambor@suse.cz>
29863 * tree-inline.c: Include tree-cfgcleanup.h.
29864 (delete_unreachable_blocks_update_callgraph): Move...
29865 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
29866 ...here, make externally visible, make second argument bool, adjust
29868 * tree-cfgcleanup.c: Include cgraph.h.
29869 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
29871 * ipa-prop.c: Include tree-cfgcleanup.h.
29872 (ipcp_transform_function): Call
29873 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
29875 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
29877 PR rtl-optimization/88846
29878 * ira.c (process_set_for_memref_referenced_p): New.
29879 (memref_referenced_p): Add new param. Use
29880 process_set_for_memref_referenced_p. Add new switch cases.
29881 (memref_used_between_p): Pass new arg to memref_referenced_p.
29883 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
29886 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
29887 argument ABI_BREAK. Set to true if the calculated alignment has
29888 changed in gcc-9. Check bit-fields for their base type alignment.
29889 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
29890 (aarch64_function_arg_boundary): Likewise.
29891 (aarch64_gimplify_va_arg_expr): Likewise.
29893 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
29895 PR middle-end/89037
29896 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
29897 instead of accessing TREE_INT_CST_ELT directly.
29899 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
29901 * doc/sourcebuild.texi (Environment attributes): Add fenv and
29902 fenv_exceptions description.
29904 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
29906 PR rtl-optimization/87763
29907 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
29908 Allow SUBREG when matching CC_NZmode compare.
29910 2019-01-25 Richard Biener <rguenther@suse.de>
29912 PR tree-optimization/89049
29913 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
29914 Look at the pattern stmt to determine if the stmt is vectorized.
29916 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
29918 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
29919 (pred_mov<mode>): Handle all-register forms using both a new
29920 alternative and a split.
29922 2019-01-25 Richard Biener <rguenther@suse.de>
29924 PR tree-optimization/86865
29925 * graphite-scop-detection.c (scop_detection::can_represent_loop):
29926 Reject non-do-while loops.
29928 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
29930 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
29931 * config/rs6000/constraints.md (Q constraint): Use REG_P.
29932 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
29933 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
29934 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
29935 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
29936 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
29937 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
29938 vlogical_operand, gpc_reg_operand, int_reg_operand,
29939 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
29940 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
29941 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
29942 (save_world_operation, restore_world_operation, lmw_operation,
29943 stmw_operation): Use MEM_P and REG_P.
29944 (tie_operand): Use MEM_P.
29945 (vrsave_operation, crsave_operation): Use REG_P.
29946 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
29947 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
29948 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
29949 (call_operand): Use HARD_REGISTER_P.
29950 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
29952 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
29953 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
29954 quad_aligned_load_p, replace_swapped_aligned_store,
29955 recombine_lvx_pattern, replace_swapped_aligned_load,
29956 recombine_stvx_pattern): Use MEM_P.
29957 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
29958 Use MEM_P and SYMBOL_REF_P.
29959 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
29960 (insn_is_swappable_p): Use REG_P and MEM_P.
29961 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
29962 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
29964 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
29965 Use CONST_DOUBLE_P.
29966 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
29968 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
29969 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
29970 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
29971 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
29973 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
29974 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
29975 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
29976 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
29977 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
29978 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
29979 rs6000_split_logical_di): Use CONST_INT_P.
29980 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
29981 REG_P and SYMBOL_REF_P.
29982 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
29983 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
29984 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
29985 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
29986 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
29987 (small_data_operand, print_operand_address): Use CONST_INT_P and
29989 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
29990 (rs6000_init_hard_regno_mode_ok, direct_move_p):
29991 Use HARD_REGISTER_NUM_P.
29992 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
29993 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
29994 SUBREG_P and SYMBOL_REF_P.
29995 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
29996 and HARD_REGISTER_NUM_P.
29997 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
29999 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
30000 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
30002 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
30003 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
30004 find_addr_reg): Use REG_P.
30005 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
30006 (rs6000_emit_le_vsx_move): Use SUBREG_P.
30007 (offsettable_ok_by_alignment, constant_pool_expr_p,
30008 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
30009 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
30010 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
30011 rs6000_assemble_integer, create_TOC_reference,
30012 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
30013 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
30014 (rs6000_split_vec_extract_var): Use reg_or_subregno.
30015 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
30016 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
30017 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
30018 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
30019 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
30020 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
30021 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
30022 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
30023 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
30024 and cbranch<mode>4): Use CONST_INT_P.
30025 (multiple define_splits): Use REG_P and SUBREG_P.
30026 (define_expands call, call_value): Use MEM_P.
30027 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
30028 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
30029 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
30030 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
30031 and HARD_REGISTER_NUM_P.
30032 (multiple define_splits): Use HARD_REGISTER_NUM_P.
30034 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
30036 PR rtl-optimization/88948
30037 * rtl.h (prepare_copy_insn): New prototype.
30038 * gcse.c (prepare_copy_insn): New function, split out from
30039 process_insert_insn.
30040 (process_insert_insn): Use prepare_copy_insn.
30041 * store-motion.c (replace_store_insn): Use prepare_copy_insn
30042 instead of gen_move_insn.
30044 2019-01-24 Jakub Jelinek <jakub@redhat.com>
30047 * config/i386/i386.c (ix86_pic_register_p): Return true for
30048 UNSPEC_SET_GOT too.
30050 PR tree-optimization/88964
30051 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
30052 punt if HONOR_SNANS (chrec).
30054 PR middle-end/89015
30055 * tree-nested.c (convert_nonlocal_reference_stmt,
30056 convert_local_reference_stmt, convert_tramp_reference_stmt,
30057 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
30058 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
30059 or GIMPLE_OMP_TASK.
30061 PR tree-optimization/89027
30062 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
30063 for "omp simd array" variables.
30065 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
30068 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
30069 force the alignment of m_val.
30071 2019-01-24 Richard Biener <rguenther@suse.de>
30074 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
30075 When in "legacy" debug mode make sure to reset self-origins.
30077 2019-01-24 Martin Liska <mliska@suse.cz>
30079 PR gcov-profile/88994
30080 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
30081 result will be always smaller or equal to the original.
30082 * gcov.c (mangle_name): Fix else branch where we should
30083 also copy to PTR and shift the pointer.
30085 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
30087 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
30088 * vr-values.c (find_case_label_ranges): Fix a comment typo.
30090 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
30092 * common/config/i386/i386-common.c
30093 (OPTION_MASK_ISA_ENQCMD_SET,
30094 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
30095 (ix86_handle_option): Handle -menqcmd.
30096 * config.gcc (enqcmdintrin.h): New header file.
30097 * config/i386/cpuid.h (bit_ENQCMD): New bit.
30098 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
30100 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
30102 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
30103 __builtin_ia32_enqcmds): New builtins.
30104 * config/i386/i386-c.c (__ENQCMD__): New macro.
30105 * config/i386/i386-option.c (ix86_target_string): Add
30107 (ix86_valid_target_attribute_inner_p): Likewise.
30108 * config/i386/i386-expand.c
30109 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
30110 IX86_BUILTIN_ENQCMDS.
30111 * config/i386/i386.h (TARGET_ENQCMD): New.
30112 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
30113 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
30114 (movdir64b_<mode>): Parameterize to enable share expansion code
30115 with ENQCMD in function ix86_expand_builtin.
30116 * config/i386/i386.opt: Add -menqcmd.
30117 * config/i386/immintrin.h: Include enqcmdintrin.h.
30118 * config/i386/enqcmdintrin.h: New intrinsic file.
30119 * doc/invoke.texi: Add -menqcmd.
30121 2019-01-23 Bin Cheng <bin.cheng@arm.com>
30122 Steve Ellcey <sellcey@marvell.com>
30125 * recog.c (address_operand): Return false on wrong mode for address.
30126 (constrain_operands): Check for mode with 'p' constraint.
30128 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
30131 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
30132 Disparage MMX alternative.
30133 (sse2_cvtpd2pi): Ditto.
30134 (sse2_cvttpd2pi): Ditto.
30136 2019-01-23 David Malcolm <dmalcolm@redhat.com>
30139 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
30140 use-after-free of the result of
30141 aarch64_get_extension_string_for_isa_flags.
30143 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30146 * doc/extend.texi: Document break and continue behavior in
30147 statement expressions.
30149 2019-01-23 Richard Biener <rguenther@suse.de>
30151 PR tree-optimization/89008
30152 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
30153 not leave another stray operand.
30155 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30157 * BASE-VER: Bump to 9.0.1.
30159 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
30161 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
30162 thunk that returns by reference, use the type of the return object
30163 of the thunk instead of that of the alias to build the dereference.
30165 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
30167 * config/arc/atomic.md: Add operand to DMB instruction.
30169 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30171 PR tree-optimization/88964
30172 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
30173 build_zero_cst instead of build_int_cst. Return false for loop
30174 invariants which honor signed zeros.
30176 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
30178 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
30180 2019-01-22 Jakub Jelinek <jakub@redhat.com>
30183 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
30184 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
30185 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
30187 PR middle-end/88968
30188 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
30189 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
30192 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
30193 Disable for little endian.
30195 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
30198 * config/arm/arm.c (arm_needs_double_word_align): Check
30199 DECL_BIT_FIELD_TYPE.
30201 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
30202 H.J. Lu <hongjiu.lu@intel.com>
30205 * config/i386/i386-builtin.def: Add mask2 to all builtin
30206 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
30208 * config/i386/i386.c (BDESC): Add mask2 to the definition.
30209 (BDESC_FIRST): Likewise.
30210 (define_builtin): Add an argument for mask2. Updated to handle
30211 both ix86_isa_flags and ix86_isa_flags2.
30212 (define_builtin_const): Likewise.
30213 (define_builtin_pure): Likewise.
30214 (define_builtin2): Deleted.
30215 (define_builtin_const2): Likewise.
30216 (builtin_description): Add a member, mask2.
30217 (bdesc_*): Add mask2 to builtin initializations.
30218 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
30219 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
30221 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
30223 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
30226 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
30229 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
30232 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
30233 alignment is dominated by a bitfield with 64-bit aligned base type.
30234 (arm_function_arg): Emit a warning if the alignment has changed since
30235 earlier GCC releases.
30236 (arm_function_arg_boundary): Likewise.
30237 (arm_setup_incoming_varargs): Likewise.
30239 2019-01-22 Richard Biener <rguenther@suse.de>
30241 PR tree-optimization/88862
30242 * graphite-scop-detection.c
30243 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
30245 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
30247 * doc/extend.tex (AMD GCN Function Attributes): New section.
30248 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
30249 * doc/invoke.texi (AMD GCN Options): New section.
30250 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
30252 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
30254 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
30255 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
30257 2019-01-22 Jakub Jelinek <jakub@redhat.com>
30259 PR tree-optimization/88044
30260 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
30261 is false in the first iteration, but !every_iteration, return false
30262 instead of true with niter->niter zero.
30264 PR rtl-optimization/88904
30265 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
30266 any nonequal registers before processing BB_END (b).
30269 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
30271 (expand_binop_directly, expand_doubleword_clz,
30272 expand_doubleword_popcount, expand_ctz, expand_ffs,
30273 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
30275 PR rtl-optimization/49429
30277 PR rtl-optimization/86334
30279 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
30280 addressable from here...
30281 (emit_block_op_via_libcall): ... to here.
30283 2019-01-22 Richard Biener <rguenther@suse.de>
30285 * tree-vect-loop.c (vect_analyze_loop_operations): Use
30286 auto_vec for cost vector to fix memleak.
30287 (vectorize_fold_left_reduction): Properly gather SLP defs.
30288 (vectorizable_comparison): Do not swap operands to properly
30291 2019-01-22 Alan Modra <amodra@gmail.com>
30294 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
30295 stays a reg. Allow a const_int.
30296 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
30297 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
30298 (IS_NOMARK_TLSGETADDR): Define.
30299 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
30300 (rs6000_output_tlsargs): New function.
30301 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
30302 __tls_get_addr call takes an arg.
30303 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
30304 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
30306 (call_value_nonlocal_sysv): ..or here, delete split.
30307 (tls_gdld_nomark): Delete.
30308 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
30309 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
30310 (call_value_nonlocal_sysv): Likewise.
30311 (call_value_nonlocal_sysv_secure): Likewise.
30312 (call_value_nonlocal_aix): Likewise.
30313 (call_value_indirect_aix): Likewise.
30314 (call_value_indirect_elfv2): Likewise.
30315 (call_value_local32, call_value_local64): Disable for no-mark tls.
30316 (call_value_local_aix): Likewise.
30318 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
30321 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
30322 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
30324 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
30326 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
30327 string contents as hash_map keys.
30329 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
30332 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
30333 for rvalue context. Handle rvalues correctly. Use min_align_of_type
30334 instead of TYPE_ALIGN.
30335 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
30336 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
30337 pointer from TYPE_STUB_DECL.
30339 2019-01-21 Richard Biener <rguenther@suse.de>
30341 PR tree-optimization/88934
30342 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
30343 at the possibly non-constant operand.
30344 (vect_get_constant_vectors): Adjust.
30346 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
30349 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
30350 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
30351 instead of _X86INTRIN_H_INCLUDED.
30352 * onfig/i386/clwbintrin.h: Likewise.
30353 * config/i386/pkuintrin.h: Likewise.
30354 * config/i386/prfchwintrin.h: Likewise.
30355 * config/i386/rdseedintrin.h: Likewise.
30356 * config/i386/wbnoinvdintrin.h: Likewise.
30357 * config/i386/xsavecintrin.h: Likewise.
30358 * config/i386/xsavesintrin.h: Likewise.
30359 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
30360 * config/i386/xsaveintrin.h: Likewise.
30361 * config/i386/xsaveoptintrin.h: Likewise.
30362 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
30363 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
30364 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
30365 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
30366 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
30367 * config/i386/immintrin.h: Here.
30369 2019-01-20 Martin Jambor <mjambor@suse.cz>
30372 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
30373 with aa_walk_budget.
30374 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
30375 aa_walk_budget_p parameter.
30376 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
30377 walk. Updated all callers.
30378 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
30379 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
30381 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
30382 parameter info. Extract info from fbi. Pass fbi to recursive calls
30383 and to unmodified_parm.
30384 (phi_result_unknown_predicate): New parameter fbi, removed parameter
30385 info, updated call to will_be_nonconstant_expr_predicate.
30386 (param_change_prob): New parameter fbi, limit AA walking.
30387 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
30388 calls to various above functions.
30389 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
30390 parameter. Use it to limit AA walking.
30391 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
30392 fbi, limit AA walk.
30393 (detect_type_change): New parameter fbi, pass it on to
30394 detect_type_change_from_memory_writes.
30395 (detect_type_change_ssa): Likewise.
30396 (aa_overwalked): Removed.
30397 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
30398 accordingly, adjust to the neew AA limiting scheme.
30399 (parm_ref_data_preserved_p): Likewise.
30400 (ipa_compute_jump_functions_for_edge): Adjust call to
30402 (ipa_analyze_call_uses): Likewise.
30403 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
30404 (ipa_analyze_node): Initialize aa_walk_budget.
30405 (ipcp_transform_function): Likewise.
30406 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
30407 to get_dynamic_type.
30409 2019-01-19 Jakub Jelinek <jakub@redhat.com>
30411 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
30412 outside of #if CHECKING_P code.
30414 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
30416 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
30417 New function, split out from...
30418 (loop_versioning::analyze_stride): ...here.
30419 (loop_versioning::find_per_loop_multiplication): Use gassign.
30420 (loop_versioning::analyze_term_using_scevs): Return a success code.
30421 (loop_versioning::analyze_arbitrary_term): New function.
30422 (loop_versioning::analyze_address_fragment): Use
30423 analyze_arbitrary_term if all else fails.
30425 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
30428 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
30431 2019-01-18 Richard Biener <rguenther@suse.de>
30433 PR tree-optimization/88903
30434 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
30435 scalar stmts a SLP shift amount is composed of when detecting
30438 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
30441 * config/arm/arm-cpus.in (mp): New feature.
30442 (sec): New feature.
30443 (fgroup ARMv7ve): Add mp and sec features.
30444 (arch armv7-a): Add options to allow mp and sec extensions.
30445 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
30446 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
30447 extenstions to the base architecture.
30448 (cpu cortex-a8): Add sec extension to the base architecture.
30449 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
30450 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
30451 variants down to the base v7-a varaint.
30452 * config/arm/t-multilib (v7_a_arch_variants): New variable.
30453 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
30454 of permitted extensions for -march=armv7-a and for
30455 -mcpu=generic-armv7-a.
30457 2019-01-18 Martin Liska <mliska@suse.cz>
30459 * params.def: Fix comment.
30460 * tree-profile.c (gimple_init_gcov_profiler): Bump function
30462 (gimple_gen_ic_func_profiler): Likewise.
30464 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30466 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
30467 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
30468 and put in error checks for stack protector guard options.
30469 (aarch64_stack_protect_guard): New.
30470 (TARGET_STACK_PROTECT_GUARD): Define.
30471 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
30472 (reg_stack_protect_address<mode>): New.
30473 (stack_protect_set): Adjust for SSP_GLOBAL.
30474 (stack_protect_test): Likewise.
30475 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
30476 (-mstack-protector-guard): Likewise.
30477 (-mstack-protector-guard-offset): Likewise.
30479 2019-01-18 Jakub Jelinek <jakub@redhat.com>
30481 PR tree-optimization/86214
30482 * tree-inline.h (struct copy_body_data): Add
30483 add_clobbers_to_eh_landing_pads member.
30484 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
30485 (copy_edges_for_bb): Call it if EH edge destination is <
30486 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
30487 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
30488 if flag_stack_reuse != SR_NONE and clear it afterwards.
30490 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
30493 * doc/install.texi (with-multilib-list): Document for aarch64.
30495 2019-01-18 Jakub Jelinek <jakub@redhat.com>
30498 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
30499 (("..."))) with ("...").
30501 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
30503 * doc/extend.texi (Built-in Functions for Memory Model Aware
30504 Atomic Operations): Document atomic fetch and nand.
30506 2019-01-18 Martin Liska <mliska@suse.cz>
30507 Richard Biener <rguenther@suse.de>
30509 PR middle-end/88587
30510 * cgraph.h (create_version_clone_with_body): Add new argument
30512 * cgraphclones.c (cgraph_node::create_version_clone): Add
30513 DECL_ATTRIBUTES to a newly created decl. And call
30514 valid_attribute_p so that proper cl_target_optimization_node
30515 is set for the newly created declaration.
30516 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
30518 (expand_target_clones): Do not call valid_attribute_p, it must
30520 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
30523 2019-01-17 Jakub Jelinek <jakub@redhat.com>
30526 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
30527 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
30528 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
30530 2019-01-17 Martin Sebor <msebor@redhat.com>
30532 PR middle-end/88273
30533 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
30534 Handle anti-ranges the same as no range at all.
30536 2018-01-17 Steve Ellcey <sellcey@cavium.com>
30538 * config/aarch64/aarch64.c (cgraph.h): New include.
30539 (intl.h): New include.
30540 (supported_simd_type): New function.
30541 (currently_supported_simd_type): Ditto.
30542 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
30543 (aarch64_simd_clone_adjust): Ditto.
30544 (aarch64_simd_clone_usable): Ditto.
30545 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
30546 (TARGET_SIMD_CLONE_ADJUST): Ditto.
30547 (TARGET_SIMD_CLONE_USABLE): Ditto.
30548 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
30549 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
30552 2019-01-17 Martin Sebor <msebor@redhat.com>
30554 PR tree-optimization/88800
30555 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
30556 NO_WARNING bit here. Avoid folding out-of-bounds calls.
30557 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
30558 redundant argument. Add new argument and issue diagnostics under
30559 its control. Detect out-of-bounds access even with warnings
30561 (check_bounds_or_overlap): Change return type. Add argument.
30562 (wrestrict_dom_walker::check_call): Adjust.
30563 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
30564 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
30565 check_bounds_or_overlap's return value.
30566 (handle_builtin_stxncpy): Same.
30567 (handle_builtin_strcat): Same.
30569 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30570 Kwok Cheung Yeung <kcy@codesourcery.com>
30571 Julian Brown <julian@codesourcery.com>
30572 Tom de Vries <tom@codesourcery.com>
30574 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
30576 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30578 * doc/sourcebuild.texi: Document dg-require-effective-target
30579 llvm_binutils and offload_gcn.
30581 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30582 Kwok Cheung Yeung <kcy@codesourcery.com>
30583 Julian Brown <julian@codesourcery.com>
30584 Tom de Vries <tom@codesourcery.com>
30586 * doc/sourcebuild.texi: Document dg-required-effective-target
30589 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30590 Kwok Cheung Yeung <kcy@codesourcery.com>
30591 Julian Brown <julian@codesourcery.com>
30592 Tom de Vries <tom@codesourcery.com>
30593 Jan Hubicka <hubicka@ucw.cz>
30594 Martin Jambor <mjambor@suse.cz>
30596 * config.gcc: Add amdgcn*-*-amdhsa configuration.
30597 * configure.ac: Check for dlopen.
30598 * configure: Regenerate.
30600 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30601 Kwok Cheung Yeung <kcy@codesourcery.com>
30602 Julian Brown <julian@codesourcery.com>
30603 Tom de Vries <tom@codesourcery.com>
30604 Jan Hubicka <hubicka@ucw.cz>
30605 Martin Jambor <mjambor@suse.cz>
30607 * common/config/gcn/gcn-common.c: New file.
30608 * config/gcn/driver-gcn.c: New file.
30609 * config/gcn/gcn-builtins.def: New file.
30610 * config/gcn/gcn-hsa.h: New file.
30611 * config/gcn/gcn-modes.def: New file.
30612 * config/gcn/gcn-opts.h: New file.
30613 * config/gcn/gcn-passes.def: New file.
30614 * config/gcn/gcn-protos.h: New file.
30615 * config/gcn/gcn-run.c: New file.
30616 * config/gcn/gcn-tree.c: New file.
30617 * config/gcn/gcn.c: New file.
30618 * config/gcn/gcn.h: New file.
30619 * config/gcn/gcn.opt: New file.
30620 * config/gcn/t-gcn-hsa: New file.
30622 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30623 Kwok Cheung Yeung <kcy@codesourcery.com>
30624 Julian Brown <julian@codesourcery.com>
30625 Tom de Vries <tom@codesourcery.com>
30626 Jan Hubicka <hubicka@ucw.cz>
30627 Martin Jambor <mjambor@suse.cz>
30629 * config/gcn/constraints.md: New file.
30630 * config/gcn/gcn-valu.md: New file.
30631 * config/gcn/gcn.md: New file.
30632 * config/gcn/predicates.md: New file.
30634 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
30636 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
30637 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
30638 (stmt_uses_0_or_null_in_undefined_way): Likewise.
30639 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
30641 2019-01-17 Tamar Christina <tamar.christina@arm.com>
30644 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
30645 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
30646 it and document registers.
30648 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30650 * config/aarch64/aarch64.c (ares_tunings): Define.
30651 * config/aarch64/aarch64-cores.def (ares): Use the above.
30653 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
30657 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
30659 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
30660 (_mm512_fixupimm_round_pd): Update parameters and builtin.
30661 (_mm512_maskz_fixupimm_round_pd): Ditto.
30662 (_mm512_fixupimm_round_ps): Ditto.
30663 (_mm512_maskz_fixupimm_round_ps): Ditto.
30664 (_mm_fixupimm_round_sd): Ditto.
30665 (_mm_maskz_fixupimm_round_sd): Ditto.
30666 (_mm_fixupimm_round_ss): Ditto.
30667 (_mm_maskz_fixupimm_round_ss): Ditto.
30668 (_mm512_fixupimm_pd): Ditto.
30669 (_mm512_maskz_fixupimm_pd): Ditto.
30670 (_mm512_fixupimm_ps): Ditto.
30671 (_mm512_maskz_fixupimm_ps): Ditto.
30672 (_mm_fixupimm_sd): Ditto.
30673 (_mm_maskz_fixupimm_sd): Ditto.
30674 (_mm_fixupimm_ss): Ditto.
30675 (_mm_maskz_fixupimm_ss): Ditto.
30676 (_mm512_mask_fixupimm_round_pd): Update builtin.
30677 (_mm512_mask_fixupimm_round_ps): Ditto.
30678 (_mm_mask_fixupimm_round_sd): Ditto.
30679 (_mm_mask_fixupimm_round_ss): Ditto.
30680 (_mm512_mask_fixupimm_pd): Ditto.
30681 (_mm512_mask_fixupimm_ps): Ditto.
30682 (_mm_mask_fixupimm_sd): Ditto.
30683 (_mm_mask_fixupimm_ss): Ditto.
30684 * config/i386/avx512vlintrin.h:
30685 (_mm256_fixupimm_pd): Update parameters and builtin.
30686 (_mm256_maskz_fixupimm_pd): Ditto.
30687 (_mm256_fixupimm_ps): Ditto.
30688 (_mm256_maskz_fixupimm_ps): Ditto.
30689 (_mm_fixupimm_pd): Ditto.
30690 (_mm_maskz_fixupimm_pd): Ditto.
30691 (_mm_fixupimm_ps): Ditto.
30692 (_mm_maskz_fixupimm_ps): Ditto.
30693 (_mm256_mask_fixupimm_pd): Update builtin.
30694 (_mm256_mask_fixupimm_ps): Ditto.
30695 (_mm_mask_fixupimm_pd): Ditto.
30696 (_mm_mask_fixupimm_ps): Ditto.
30697 * config/i386/i386-builtin-types.def: Add new types and remove
30699 * config/i386/i386-builtin.def: Update builtin definitions.
30700 * config/i386/i386.c: Handle new builtin types and remove useless ones.
30701 * config/i386/sse.md: Update VFIXUPIMM* patterns.
30702 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30703 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30704 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
30705 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30706 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30707 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
30708 * config/i386/subst.md:
30709 (round_saeonly_sd_mask_operand4): Add new subst_attr.
30710 (round_saeonly_sd_mask_op4): Ditto.
30711 (round_saeonly_expand_operand5): Ditto.
30712 (round_saeonly_expand): Update.
30714 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
30718 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
30720 * config/i386/sse.md: Combine VFIXUPIMM* patterns
30721 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30722 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30723 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
30724 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30725 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30726 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
30728 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
30732 2018-12-15 Jakub Jelinek <jakub@redhat.com>
30735 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
30736 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
30737 instead of UNSPEC_FIXUPIMM.
30739 2019-01-17 Richard Biener <rguenther@suse.de>
30742 * dwarf2out.c (want_pubnames): Never generate pubnames sections
30743 and friends for the LTO part of debug info.
30745 2019-01-17 Jakub Jelinek <jakub@redhat.com>
30747 PR tree-optimization/86214
30748 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
30751 PR rtl-optimization/88870
30752 * dce.c (deletable_insn_p): Never delete const/pure calls that can
30753 throw if we can't alter the cfg or delete dead exceptions.
30754 (mark_insn): Don't call find_call_stack_args for such calls.
30756 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
30758 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
30759 prototypes for vec_st.
30760 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
30761 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
30762 mainly on signed/unsigned long long and double.
30764 2019-01-16 David Malcolm <dmalcolm@redhat.com>
30767 * combine.c (delete_noop_moves): Convert to "bool" return,
30768 returning true if any edges are eliminated.
30769 (combine_instructions): Also return true if delete_noop_moves
30772 2019-01-16 Tamar Christina <tamar.christina@arm.com>
30774 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
30775 correct max nunits for endian swap.
30776 (aarch64_expand_fcmla_builtin): Correct subreg code.
30777 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
30778 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
30781 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
30783 * config/alpha/alpha.c (alpha_gimplify_va_arg):
30784 Handle split indirect COMPLEX_TYPE arguments.
30786 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
30789 * config/aarch64/aarch64-modes.def: Add comment about how the carry
30790 bit is set by add and compare.
30791 (CC_ADC): New CC_MODE.
30792 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
30793 to cache the code and mode of X. Adjust the shape of a CC_Cmode
30794 comparison. Add detection for CC_ADCmode.
30795 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
30797 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
30798 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
30799 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
30800 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
30801 to eliminate the need for zero-extending the operands.
30802 (add<mode>3_compareC_imm): Delete. Merge into ...
30803 (add<mode>3_compareC): ... this. Restructure the comparison to
30804 eliminate the need for zero-extending the operands.
30805 (add<mode>3_carryin): Use LTU for the overflow detection.
30806 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
30807 Reexpress comparison for overflow.
30808 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
30809 (add<mode>3_carryinC): Likewise.
30810 (add<mode>3_carryinV): Use LTU for carry between partials.
30811 * config/aarch64/predicates.md (aarch64_carry_operation): Update
30812 handling of CC_Cmode and add CC_ADCmode.
30813 (aarch64_borrow_operation): Likewise.
30815 2019-01-16 Tamar Christina <tamar.christina@arm.com>
30817 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
30818 Remove patternmode.
30819 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
30820 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
30821 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
30822 Remove endianness conversion.
30824 2019-01-16 Martin Liska <mliska@suse.cz>
30826 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
30828 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
30830 * gcc.c (add_sysrooted_hdrs_prefix): New function.
30831 (path_prefix_reset): Move up in the source file.
30832 (find_fortran_preinclude_file): Make complex search for the
30833 fortran header files.
30835 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
30837 * godump.c (go_output_typedef): When outputting a typedef, refer
30838 to the underlying type by its name and not its structure.
30840 2019-01-15 David Malcolm <dmalcolm@redhat.com>
30843 * tree.c (build_function_type): Assert that arg_types is not
30846 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
30848 PR inline-asm/52813
30849 * doc/extend.texi: Document that listing the stack pointer in the
30850 clobber list of an asm is a deprecated feature.
30851 * common.opt (Wdeprecated): Moved from c-family/c.opt.
30852 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
30853 warning instead of an error for clobbers of the stack pointer.
30854 Add a note explaining why.
30856 2019-01-15 Richard Biener <rguenther@suse.de>
30859 * dwarf2out.c (gen_member_die): Do not generate inheritance
30862 2019-01-15 Richard Biener <rguenther@suse.de>
30864 PR tree-optimization/88855
30865 * tree-if-conv.c (combine_blocks): Collect
30866 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
30868 2019-01-15 Tom de Vries <tdevries@suse.de>
30871 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
30872 lhs == NULL_TREE for gang-level reduction.
30874 2019-01-15 Richard Biener <rguenther@suse.de>
30875 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30878 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
30879 return true if SSA_NAME is already marked in visited bitmap.
30880 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
30882 2019-01-15 Jakub Jelinek <jakub@redhat.com>
30884 PR tree-optimization/88775
30885 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
30886 equal == 0 equality pointer comparisons some more if compared in
30887 integral types and either one points to an automatic var and the
30888 other to a global, or we can prove at least one points to the middle
30889 or both point to start or both point to end.
30891 2019-01-14 Andi Kleen <ak@linux.intel.com>
30893 * Makefile.in: Lower autofdo sampling rate by 10x.
30894 * Makefile.tpl: Dito.
30896 2019-01-14 Tom Honermann <tom@honermann.net>
30898 * defaults.h: Define CHAR8_TYPE.
30900 2019-01-14 Martin Sebor <msebor@redhat.com>
30903 * doc/extend.texi (Darwin Format Checks): Clarify.
30905 2019-01-14 Richard Biener <rguenther@suse.de>
30907 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
30908 whether we are in (simplify ...) or (match ...) context.
30910 2019-01-14 Jakub Jelinek <jakub@redhat.com>
30912 PR rtl-optimization/88796
30913 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
30914 * cfgexpand.c (stack_protect_prologue): Initialize
30915 crtl->stack_protect_guard_decl.
30916 * function.c (stack_protect_epilogue): Use it instead of calling
30917 targetm.stack_protect_guard again.
30918 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
30919 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
30920 crtl->stack_protect_guard_decl.
30921 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
30922 on the returned MEM_EXPR.
30924 2019-01-12 Tom de Vries <tdevries@suse.de>
30926 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
30927 vector length using -fopenacc-dim.
30929 2019-01-12 Tom de Vries <tdevries@suse.de>
30931 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
30932 lengths into account.
30934 2019-01-12 Svante Signell <svante.signell@gmail.com>
30936 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
30937 (TARGET_CAN_SPLIT_STACK): Define.
30938 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
30940 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
30942 * params.def (inline-unit-growth): Set to 40.
30944 2019-01-12 Jakub Jelinek <jakub@redhat.com>
30946 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
30948 2019-01-12 Tom de Vries <tdevries@suse.de>
30950 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
30951 region calling vector-partitionable routine, set default_vector_length
30954 2019-01-12 Tom de Vries <tdevries@suse.de>
30956 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
30957 variable default_vector_length.
30959 2019-01-12 Tom de Vries <tdevries@suse.de>
30961 PR middle-end/88703
30962 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
30963 from oacc_default_dims, as oacc_validate_dims would do it, and apply
30966 2019-01-12 Tom de Vries <tdevries@suse.de>
30968 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
30969 (nvptx_goacc_validate_dims): Add used parameter.
30970 * doc/tm.texi: Regenerate.
30971 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
30972 argument to call to targetm.goacc.validate_dims.
30973 (default_goacc_validate_dims): Add used
30975 * target.def (validate_dims): Add used parameter in DEFHOOK.
30976 * targhooks.h (default_goacc_validate_dims): Add used parameter.
30978 2019-01-11 Jakub Jelinek <jakub@redhat.com>
30980 PR middle-end/85956
30982 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
30984 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
30985 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
30986 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
30987 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
30989 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
30991 PR rtl-optimization/87305
30993 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
30994 for little endian pseudos used as paradoxical subreg.
30996 2019-01-11 Jakub Jelinek <jakub@redhat.com>
30998 PR tree-optimization/88693
30999 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
31000 for STRING_CSTs that don't contain any NUL characters in the first
31001 TREE_STRING_LENGTH bytes.
31003 2019-01-11 Alan Modra <amodra@gmail.com>
31007 * genattrtab.c (min_fn): Don't translate values.
31008 (min_attr_value): Return INT_MAX when the value can't be calculated.
31009 Return minimum among any values that can be calculated.
31010 (max_attr_value): Adjust.
31012 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31014 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
31016 2019-01-11 Steve Ellcey <sellcey@marvell.com>
31018 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
31019 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
31020 (aarch64_return_call_with_max_clobbers): New function.
31021 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
31022 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
31024 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
31025 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
31026 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
31027 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
31028 * cselib.c (cselib_process_insn): Add argument to
31029 targetm.hard_regno_call_part_clobbered call.
31030 * ira-conflicts.c (ira_build_conflicts): Ditto.
31031 * ira-costs.c (ira_tune_allocno_costs): Ditto.
31032 * lra-constraints.c (inherit_reload_reg): Ditto.
31033 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
31034 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
31035 argument. Call targetm.return_call_with_max_clobbers.
31036 Add argument to targetm.hard_regno_call_part_clobbered call.
31037 (calls_have_same_clobbers_p): New function.
31038 (process_bb_lives): Add call_insn and last_call_insn variables.
31039 Pass call_insn to check_pseudos_live_through_calls.
31040 Modify if stmt to check targetm.return_call_with_max_clobbers.
31041 Update setting of flush variable.
31042 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
31044 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
31045 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
31046 targetm.hard_regno_call_part_clobbered call.
31047 * reginfo.c (choose_hard_reg_mode): Ditto.
31048 * regrename.c (check_new_reg_p): Ditto.
31049 * reload.c (find_equiv_reg): Ditto.
31050 * reload1.c (emit_reload_insns): Ditto.
31051 * sched-deps.c (deps_analyze_insn): Ditto.
31052 * sel-sched.c (init_regs_for_mode): Ditto.
31053 (mark_unavailable_hard_regs): Ditto.
31054 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
31055 * target.def (hard_regno_call_part_clobbered): Add insn argument.
31056 (return_call_with_max_clobbers): New target function.
31057 * doc/tm.texi: Regenerate.
31058 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
31059 * hooks.c (hook_bool_uint_mode_false): Change to
31060 hook_bool_insn_uint_mode_false.
31061 * hooks.h (hook_bool_uint_mode_false): Ditto.
31063 2019-01-11 Steve Ellcey <sellcey@marvell.com>
31065 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
31066 (aarch64_remove_extra_call_preserved_regs): New function.
31067 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
31068 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
31069 * doc/tm.texi: Regenerate.
31070 * final.c (get_call_reg_set_usage): Call new hook.
31071 * target.def (remove_extra_call_preserved_regs): New hook.
31072 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
31073 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
31075 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31078 * passes.c (finish_optimization_passes): Call print_combine_total_stats
31079 inside of pass_combine_1 dump rather than pass_profile_1.
31081 2019-01-11 Tom de Vries <tdevries@suse.de>
31083 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
31084 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
31085 (PTX_NUM_PER_WORKER_BARRIERS): Define.
31086 (nvptx_apply_dim_limits): Prevent vector_length 64 and
31089 2019-01-11 Tom de Vries <tdevries@suse.de>
31091 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
31093 2019-01-11 Jan Beulich <jbeulich@suse.com>
31095 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
31096 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
31097 sse2_cvtsi2sd): Add {l}.
31098 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
31101 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31104 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
31106 (*float<floatunssuffix>v2div2sf2): New define_insn.
31107 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
31108 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
31109 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
31110 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
31111 match_operands with "const0_operand" "C".
31113 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31115 * config/aarch64/aarch64-builtins.c
31116 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
31117 (aarch64_init_simd_builtins): ...Here
31119 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
31121 PR rtl-optimization/87305
31123 (setup_live_pseudos_and_spill_after_risky_transforms): Check
31124 allocation for big endian pseudos used as paradoxical subregs and
31125 spill them if it is wrong.
31126 * lra-constraints.c (lra_constraints): Add a comment.
31128 2019-01-10 Richard Biener <rguenther@suse.de>
31130 PR tree-optimization/88792
31131 * tree-ssa-pre.c (get_representative_for): Do not return a
31134 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31136 PR middle-end/84877
31138 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
31139 (assign_parm_setup_block): Do the argument slot realignment here
31142 2019-01-10 Stefan Agner <stefan@agner.ch>
31145 * config/arm/arm.c (arm_option_override_internal): Force
31146 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
31148 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31151 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
31154 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31156 * config/arm/arm-builtins.c
31157 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
31158 (MAC_LANE_PAIR_QUALIFIERS): New.
31159 (arm_expand_builtin_args): Use it.
31160 (arm_expand_builtin_1): Likewise.
31161 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
31162 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
31163 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
31164 * config/arm/arm_neon.h:
31165 (vcadd_rot90_f16): New.
31166 (vcaddq_rot90_f16): New.
31167 (vcadd_rot270_f16): New.
31168 (vcaddq_rot270_f16): New.
31171 (vcmla_lane_f16): New.
31172 (vcmla_laneq_f16): New.
31173 (vcmlaq_lane_f16): New.
31174 (vcmlaq_laneq_f16): New.
31175 (vcmla_rot90_f16): New.
31176 (vcmlaq_rot90_f16): New.
31177 (vcmla_rot90_lane_f16): New.
31178 (vcmla_rot90_laneq_f16): New.
31179 (vcmlaq_rot90_lane_f16): New.
31180 (vcmlaq_rot90_laneq_f16): New.
31181 (vcmla_rot180_f16): New.
31182 (vcmlaq_rot180_f16): New.
31183 (vcmla_rot180_lane_f16): New.
31184 (vcmla_rot180_laneq_f16): New.
31185 (vcmlaq_rot180_lane_f16): New.
31186 (vcmlaq_rot180_laneq_f16): New.
31187 (vcmla_rot270_f16): New.
31188 (vcmlaq_rot270_f16): New.
31189 (vcmla_rot270_lane_f16): New.
31190 (vcmla_rot270_laneq_f16): New.
31191 (vcmlaq_rot270_lane_f16): New.
31192 (vcmlaq_rot270_laneq_f16): New.
31193 (vcadd_rot90_f32): New.
31194 (vcaddq_rot90_f32): New.
31195 (vcadd_rot270_f32): New.
31196 (vcaddq_rot270_f32): New.
31199 (vcmla_lane_f32): New.
31200 (vcmla_laneq_f32): New.
31201 (vcmlaq_lane_f32): New.
31202 (vcmlaq_laneq_f32): New.
31203 (vcmla_rot90_f32): New.
31204 (vcmlaq_rot90_f32): New.
31205 (vcmla_rot90_lane_f32): New.
31206 (vcmla_rot90_laneq_f32): New.
31207 (vcmlaq_rot90_lane_f32): New.
31208 (vcmlaq_rot90_laneq_f32): New.
31209 (vcmla_rot180_f32): New.
31210 (vcmlaq_rot180_f32): New.
31211 (vcmla_rot180_lane_f32): New.
31212 (vcmla_rot180_laneq_f32): New.
31213 (vcmlaq_rot180_lane_f32): New.
31214 (vcmlaq_rot180_laneq_f32): New.
31215 (vcmla_rot270_f32): New.
31216 (vcmlaq_rot270_f32): New.
31217 (vcmla_rot270_lane_f32): New.
31218 (vcmla_rot270_laneq_f32): New.
31219 (vcmlaq_rot270_lane_f32): New.
31220 (vcmlaq_rot270_laneq_f32): New.
31221 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
31222 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
31223 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
31224 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
31225 vcmlaq_lane270): New.
31226 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
31227 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
31228 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
31229 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
31230 (arm_option_reconfigure_globals): Use them.
31231 * config/arm/iterators.md (VDF, VQ_HSF): New.
31232 (VCADD, VCMLA): New.
31233 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
31234 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
31236 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
31237 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
31239 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31241 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
31242 Add qualifier_lane_pair_index.
31243 (emit-rtl.h): Include.
31244 (TYPES_QUADOP_LANE_PAIR): New.
31245 (aarch64_simd_expand_args): Use it.
31246 (aarch64_simd_expand_builtin): Likewise.
31247 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
31249 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
31250 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
31251 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
31252 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
31253 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
31254 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
31255 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
31256 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
31257 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
31258 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
31259 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
31260 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
31261 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
31262 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
31263 Add __ARM_FEATURE_COMPLEX.
31264 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
31265 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
31266 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
31267 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
31268 fcmlaq_lane270): New.
31269 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
31270 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
31271 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
31272 * config/aarch64/arm_neon.h:
31273 (vcadd_rot90_f16): New.
31274 (vcaddq_rot90_f16): New.
31275 (vcadd_rot270_f16): New.
31276 (vcaddq_rot270_f16): New.
31279 (vcmla_lane_f16): New.
31280 (vcmla_laneq_f16): New.
31281 (vcmlaq_lane_f16): New.
31282 (vcmlaq_rot90_lane_f16): New.
31283 (vcmla_rot90_laneq_f16): New.
31284 (vcmla_rot90_lane_f16): New.
31285 (vcmlaq_rot90_f16): New.
31286 (vcmla_rot90_f16): New.
31287 (vcmlaq_laneq_f16): New.
31288 (vcmla_rot180_laneq_f16): New.
31289 (vcmla_rot180_lane_f16): New.
31290 (vcmlaq_rot180_f16): New.
31291 (vcmla_rot180_f16): New.
31292 (vcmlaq_rot90_laneq_f16): New.
31293 (vcmlaq_rot270_laneq_f16): New.
31294 (vcmlaq_rot270_lane_f16): New.
31295 (vcmla_rot270_laneq_f16): New.
31296 (vcmlaq_rot270_f16): New.
31297 (vcmla_rot270_f16): New.
31298 (vcmlaq_rot180_laneq_f16): New.
31299 (vcmlaq_rot180_lane_f16): New.
31300 (vcmla_rot270_lane_f16): New.
31301 (vcadd_rot90_f32): New.
31302 (vcaddq_rot90_f32): New.
31303 (vcaddq_rot90_f64): New.
31304 (vcadd_rot270_f32): New.
31305 (vcaddq_rot270_f32): New.
31306 (vcaddq_rot270_f64): New.
31310 (vcmla_lane_f32): New.
31311 (vcmla_laneq_f32): New.
31312 (vcmlaq_lane_f32): New.
31313 (vcmlaq_laneq_f32): New.
31314 (vcmla_rot90_f32): New.
31315 (vcmlaq_rot90_f32): New.
31316 (vcmlaq_rot90_f64): New.
31317 (vcmla_rot90_lane_f32): New.
31318 (vcmla_rot90_laneq_f32): New.
31319 (vcmlaq_rot90_lane_f32): New.
31320 (vcmlaq_rot90_laneq_f32): New.
31321 (vcmla_rot180_f32): New.
31322 (vcmlaq_rot180_f32): New.
31323 (vcmlaq_rot180_f64): New.
31324 (vcmla_rot180_lane_f32): New.
31325 (vcmla_rot180_laneq_f32): New.
31326 (vcmlaq_rot180_lane_f32): New.
31327 (vcmlaq_rot180_laneq_f32): New.
31328 (vcmla_rot270_f32): New.
31329 (vcmlaq_rot270_f32): New.
31330 (vcmlaq_rot270_f64): New.
31331 (vcmla_rot270_lane_f32): New.
31332 (vcmla_rot270_laneq_f32): New.
31333 (vcmlaq_rot270_lane_f32): New.
31334 (vcmlaq_rot270_laneq_f32): New.
31335 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
31336 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
31337 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
31338 (FCADD, FCMLA): New.
31340 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
31342 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
31346 * config/pa/pa.c: Change "can not" to "cannot".
31347 * gimple-ssa-evrp-analyze.c: Likewise.
31348 * ipa-icf.c: Likewise.
31349 * ipa-polymorphic-call.c: Likewise.
31350 * ipa-pure-const.c: Likewise.
31351 * lra-constraints.c: Likewise.
31352 * lra-remat.c: Likewise.
31353 * reload1.c: Likewise.
31354 * reorg.c: Likewise.
31355 * tree-ssa-uninit.c: Likewise.
31357 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
31361 * Makefile.in: Mechanically replace "can not" with "cannot".
31362 * alias.c: Likewise.
31363 * builtins.c: Likewise.
31364 * calls.c: Likewise.
31365 * cgraph.c: Likewise.
31366 * cgraph.h: Likewise.
31367 * cgraphclones.c: Likewise.
31368 * cgraphunit.c: Likewise.
31369 * combine-stack-adj.c: Likewise.
31370 * combine.c: Likewise.
31371 * common/config/i386/i386-common.c: Likewise.
31372 * config/aarch64/aarch64.c: Likewise.
31373 * config/alpha/sync.md: Likewise.
31374 * config/arc/arc.c: Likewise.
31375 * config/arc/predicates.md: Likewise.
31376 * config/arm/arm-c.c: Likewise.
31377 * config/arm/arm.c: Likewise.
31378 * config/arm/arm.h: Likewise.
31379 * config/arm/arm.md: Likewise.
31380 * config/arm/cortex-r4f.md: Likewise.
31381 * config/csky/csky.c: Likewise.
31382 * config/csky/csky.h: Likewise.
31383 * config/darwin-f.c: Likewise.
31384 * config/epiphany/epiphany.md: Likewise.
31385 * config/i386/i386.c: Likewise.
31386 * config/i386/sol2.h: Likewise.
31387 * config/m68k/m68k.c: Likewise.
31388 * config/mcore/mcore.h: Likewise.
31389 * config/microblaze/microblaze.md: Likewise.
31390 * config/mips/20kc.md: Likewise.
31391 * config/mips/sb1.md: Likewise.
31392 * config/nds32/nds32.c: Likewise.
31393 * config/nds32/predicates.md: Likewise.
31394 * config/pa/pa.c: Likewise.
31395 * config/rs6000/e300c2c3.md: Likewise.
31396 * config/rs6000/rs6000.c: Likewise.
31397 * config/s390/s390.h: Likewise.
31398 * config/sh/sh.c: Likewise.
31399 * config/sh/sh.md: Likewise.
31400 * config/spu/vmx2spu.h: Likewise.
31401 * cprop.c: Likewise.
31402 * dbxout.c: Likewise.
31403 * df-scan.c: Likewise.
31404 * doc/cfg.texi: Likewise.
31405 * doc/extend.texi: Likewise.
31406 * doc/fragments.texi: Likewise.
31407 * doc/gty.texi: Likewise.
31408 * doc/invoke.texi: Likewise.
31409 * doc/lto.texi: Likewise.
31410 * doc/md.texi: Likewise.
31411 * doc/objc.texi: Likewise.
31412 * doc/rtl.texi: Likewise.
31413 * doc/tm.texi: Likewise.
31415 * emit-rtl.c: Likewise.
31416 * emit-rtl.h: Likewise.
31417 * except.c: Likewise.
31418 * expmed.c: Likewise.
31419 * expr.c: Likewise.
31420 * fold-const.c: Likewise.
31421 * genautomata.c: Likewise.
31422 * gimple-fold.c: Likewise.
31423 * hard-reg-set.h: Likewise.
31424 * ifcvt.c: Likewise.
31425 * ipa-comdats.c: Likewise.
31426 * ipa-cp.c: Likewise.
31427 * ipa-devirt.c: Likewise.
31428 * ipa-fnsummary.c: Likewise.
31429 * ipa-icf.c: Likewise.
31430 * ipa-inline-transform.c: Likewise.
31431 * ipa-inline.c: Likewise.
31432 * ipa-polymorphic-call.c: Likewise.
31433 * ipa-profile.c: Likewise.
31434 * ipa-prop.c: Likewise.
31435 * ipa-pure-const.c: Likewise.
31436 * ipa-reference.c: Likewise.
31437 * ipa-split.c: Likewise.
31438 * ipa-visibility.c: Likewise.
31440 * ira-build.c: Likewise.
31441 * ira-color.c: Likewise.
31442 * ira-conflicts.c: Likewise.
31443 * ira-costs.c: Likewise.
31444 * ira-int.h: Likewise.
31445 * ira-lives.c: Likewise.
31448 * loop-invariant.c: Likewise.
31449 * loop-unroll.c: Likewise.
31450 * lower-subreg.c: Likewise.
31451 * lra-assigns.c: Likewise.
31452 * lra-constraints.c: Likewise.
31453 * lra-eliminations.c: Likewise.
31454 * lra-lives.c: Likewise.
31455 * lra-remat.c: Likewise.
31456 * lra-spills.c: Likewise.
31458 * lto-cgraph.c: Likewise.
31459 * lto-streamer-out.c: Likewise.
31460 * postreload-gcse.c: Likewise.
31461 * predict.c: Likewise.
31462 * profile-count.h: Likewise.
31463 * profile.c: Likewise.
31464 * recog.c: Likewise.
31466 * reload.c: Likewise.
31467 * reload1.c: Likewise.
31468 * reorg.c: Likewise.
31469 * resource.c: Likewise.
31470 * rtl.def: Likewise.
31472 * rtlanal.c: Likewise.
31473 * sched-deps.c: Likewise.
31474 * sched-ebb.c: Likewise.
31475 * sched-rgn.c: Likewise.
31476 * sel-sched-ir.c: Likewise.
31477 * sel-sched.c: Likewise.
31478 * shrink-wrap.c: Likewise.
31479 * simplify-rtx.c: Likewise.
31480 * symtab.c: Likewise.
31481 * target.def: Likewise.
31482 * toplev.c: Likewise.
31483 * tree-call-cdce.c: Likewise.
31484 * tree-cfg.c: Likewise.
31485 * tree-complex.c: Likewise.
31486 * tree-core.h: Likewise.
31487 * tree-eh.c: Likewise.
31488 * tree-inline.c: Likewise.
31489 * tree-loop-distribution.c: Likewise.
31490 * tree-nrv.c: Likewise.
31491 * tree-profile.c: Likewise.
31492 * tree-sra.c: Likewise.
31493 * tree-ssa-alias.c: Likewise.
31494 * tree-ssa-dce.c: Likewise.
31495 * tree-ssa-dom.c: Likewise.
31496 * tree-ssa-forwprop.c: Likewise.
31497 * tree-ssa-loop-im.c: Likewise.
31498 * tree-ssa-loop-ivcanon.c: Likewise.
31499 * tree-ssa-loop-ivopts.c: Likewise.
31500 * tree-ssa-loop-niter.c: Likewise.
31501 * tree-ssa-phionlycprop.c: Likewise.
31502 * tree-ssa-phiopt.c: Likewise.
31503 * tree-ssa-propagate.c: Likewise.
31504 * tree-ssa-threadedge.c: Likewise.
31505 * tree-ssa-threadupdate.c: Likewise.
31506 * tree-ssa-uninit.c: Likewise.
31507 * tree-ssanames.c: Likewise.
31508 * tree-streamer-out.c: Likewise.
31509 * tree.c: Likewise.
31510 * tree.h: Likewise.
31511 * vr-values.c: Likewise.
31513 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
31515 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
31516 (ix86_split_xorsign): Ditto.
31517 * config/i386/i386.c (ix86_expand_xorsign): New function.
31518 (ix86_split_xorsign): Ditto.
31519 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
31520 (xorsign<mode>3): New expander.
31521 (xorsign<mode>3_1): New insn_and_split pattern.
31522 * config/i386/sse.md (xorsign<mode>3): New expander.
31524 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
31526 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
31527 (*tablejump_sp64): Likewise.
31528 (*tablejump<P:mode>): ...this.
31529 (*call_address_sp32): Merge into...
31530 (*call_address_sp64): Likewise.
31531 (*call_address<P:mode>): ...this.
31532 (*call_symbolic_sp32): Merge into...
31533 (*call_symbolic_sp64): Likewise.
31534 (*call_symbolic<P:mode>): ...this.
31535 (call_value): Remove constraint and add predicate.
31536 (*call_value_address_sp32): Merge into...
31537 (*call_value_address_sp64): Likewise.
31538 (*call_value_address<P:mode>): ...this.
31539 (*call_value_symbolic_sp32): Merge into...
31540 (*call_value_symbolic_sp64): Likewise.
31541 (*call_value_symbolic<P:mode>): ...this.
31542 (*sibcall_symbolic_sp32): Merge into...
31543 (*sibcall_symbolic_sp64): Likewise.
31544 (*sibcall_symbolic<P:mode>): ...this.
31545 (sibcall_value): Remove constraint and add predicate.
31546 (*sibcall_value_symbolic_sp32): Merge into...
31547 (*sibcall_value_symbolic_sp64): Likewise.
31548 (*sibcall_value_symbolic<P:mode>): ...this.
31549 (window_save): Minor tweak.
31550 (*branch_sp32): Merge into...
31551 (*branch_sp64): Likewise.
31552 (*branch<P:mode>): ...this.
31554 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
31555 James Clarke <jrtc27@jrtc27.com>
31558 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
31559 consistently in TLS address generation and adjust code to the renaming
31560 of patterns. Mark calls to __tls_get_addr as const.
31561 * config/sparc/sparc.md (tgd_hi22): Turn into...
31562 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
31563 (tgd_lo10): Turn into...
31564 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
31565 (tgd_add32): Merge into...
31566 (tgd_add64): Likewise.
31567 (tgd_add<P:mode>): ...this and use Pmode throughout.
31568 (tldm_hi22): Turn into...
31569 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
31570 (tldm_lo10): Turn into...
31571 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
31572 (tldm_add32): Merge into...
31573 (tldm_add64): Likewise.
31574 (tldm_add<P:mode>): ...this and use Pmode throughout.
31575 (tldm_call32): Merge into...
31576 (tldm_call64): Likewise.
31577 (tldm_call<P:mode>): ...this and use Pmode throughout.
31578 (tldo_hix22): Turn into...
31579 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
31580 (tldo_lox10): Turn into...
31581 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
31582 (tldo_add32): Merge into...
31583 (tldo_add64): Likewise.
31584 (tldo_add<P:mode>): ...this and use Pmode throughout.
31585 (tie_hi22): Turn into...
31586 (tie_hi22<P:mode>): ...this and use Pmode throughout.
31587 (tie_lo10): Turn into...
31588 (tie_lo10<P:mode>): ...this and use Pmode throughout.
31589 (tie_ld64): Use DImode throughout.
31590 (tie_add32): Merge into...
31591 (tie_add64): Likewise.
31592 (tie_add<P:mode>): ...this and use Pmode throughout.
31593 (tle_hix22_sp32): Merge into...
31594 (tle_hix22_sp64): Likewise.
31595 (tle_hix22<P:mode>): ...this and use Pmode throughout.
31596 (tle_lox22_sp32): Merge into...
31597 (tle_lox22_sp64): Likewise.
31598 (tle_lox22<P:mode>): ...this and use Pmode throughout.
31599 (*tldo_ldub_sp32): Merge into...
31600 (*tldo_ldub_sp64): Likewise.
31601 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
31602 (*tldo_ldub1_sp32): Merge into...
31603 (*tldo_ldub1_sp64): Likewise.
31604 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
31605 (*tldo_ldub2_sp32): Merge into...
31606 (*tldo_ldub2_sp64): Likewise.
31607 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
31608 (*tldo_ldsb1_sp32): Merge into...
31609 (*tldo_ldsb1_sp64): Likewise.
31610 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
31611 (*tldo_ldsb2_sp32): Merge into...
31612 (*tldo_ldsb2_sp64): Likewise.
31613 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
31614 (*tldo_ldub3_sp64): Use DImode throughout.
31615 (*tldo_ldsb3_sp64): Likewise.
31616 (*tldo_lduh_sp32): Merge into...
31617 (*tldo_lduh_sp64): Likewise.
31618 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
31619 (*tldo_lduh1_sp32): Merge into...
31620 (*tldo_lduh1_sp64): Likewise.
31621 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
31622 (*tldo_ldsh1_sp32): Merge into...
31623 (*tldo_ldsh1_sp64): Likewise.
31624 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
31625 (*tldo_lduh2_sp64): Use DImode throughout.
31626 (*tldo_ldsh2_sp64): Likewise.
31627 (*tldo_lduw_sp32): Merge into...
31628 (*tldo_lduw_sp64): Likewise.
31629 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
31630 (*tldo_lduw1_sp64): Use DImode throughout.
31631 (*tldo_ldsw1_sp64): Likewise.
31632 (*tldo_ldx_sp64): Likewise.
31633 (*tldo_stb_sp32): Merge into...
31634 (*tldo_stb_sp64): Likewise.
31635 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
31636 (*tldo_sth_sp32): Merge into...
31637 (*tldo_sth_sp64): Likewise.
31638 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
31639 (*tldo_stw_sp32): Merge into...
31640 (*tldo_stw_sp64): Likewise.
31641 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
31642 (*tldo_stx_sp64): Use DImode throughout.
31644 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31646 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
31647 check configure option to set BTI and Return Address Signing.
31648 * configure.ac: Add --enable-standard-branch-protection and
31649 --disable-standard-branch-protection.
31650 * configure: Regenerated.
31651 * doc/install.texi: Document the same.
31653 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31654 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31656 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
31657 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
31658 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
31660 * config/aarch64/aarch64-bti-insert.c: New file.
31661 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
31663 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
31665 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
31666 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
31667 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
31668 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
31670 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31672 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
31673 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
31674 Disable bti for -mbranch-protection=none.
31675 (aarch64_handle_standard_branch_protection): Enable bti for
31676 -mbranch-protection=standard.
31677 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
31678 -mbranch-protection.
31679 (aarch64_bti_enabled): Check if bti is enabled.
31680 * config/aarch64/aarch64.opt: Declare target variable.
31681 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
31683 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31685 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
31686 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
31687 (aarch64_expand_epilogue): Likewise.
31688 (aarch64_output_mi_thunk): Likewise.
31689 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
31690 TAILCALL_ADDR_REGS to x16 and x17.
31691 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
31693 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31695 * config/aarch64/aarch64-option-extensions.def: Define
31696 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
31697 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
31698 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
31699 (AARCH64_FL_PREDRES): New.
31700 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
31701 AARCH64_FL_PREDRES by default.
31702 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
31704 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31706 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
31708 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
31709 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
31710 * doc/invoke.texi: Document ARMv8.5-A.
31712 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
31714 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
31715 (xorsign<mode>3): Likewise.
31717 2019-01-09 Jelinek <jakub@redhat.com>
31719 PR middle-end/88758
31720 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
31721 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
31723 PR rtl-optimization/88331
31724 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
31725 not currently_expanding_to_rtl.
31727 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
31729 * doc/invoke.texi (-Os): Remove trailing spaces.
31730 (-finline-functions): Remove reference to -O2.
31732 2019-01-08 Jakub Jelinek <jakub@redhat.com>
31734 PR rtl-optimization/79593
31735 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
31737 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
31738 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
31740 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
31743 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
31747 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
31748 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
31750 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
31753 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
31754 ix86_avx_u128_mode_entry.
31756 2019-01-08 Martin Liska <mliska@suse.cz>
31758 PR tree-optimization/88753
31759 * tree-switch-conversion.c (switch_conversion::build_one_array):
31760 Come up with local variable constructor. Convert first to
31761 type of constructor values.
31763 2019-01-08 Richard Biener <rguenther@suse.de>
31765 PR tree-optimization/86554
31766 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
31767 rpo_avail): Move earlier.
31768 (visit_nary_op): When value-numbering to expressions
31769 with different overflow behavior make sure there's an
31770 available expression on the path.
31772 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
31774 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
31775 aarch64_parse_branch_protection,
31776 struct aarch64_branch_protect_type,
31777 aarch64_handle_no_branch_protection,
31778 aarch64_handle_standard_branch_protection,
31779 aarch64_validate_mbranch_protection,
31780 aarch64_handle_pac_ret_protection,
31781 aarch64_handle_attr_branch_protection,
31782 accepted_branch_protection_string,
31783 aarch64_pac_ret_subtypes,
31784 aarch64_branch_protect_types,
31785 aarch64_handle_pac_ret_leaf): Define.
31786 (aarch64_override_options_after_change_1, aarch64_override_options):
31787 Add check for accepted_branch_protection_string.
31788 (aarch64_option_save): Save accepted_branch_protection_string.
31789 (aarch64_option_restore): Save accepted_branch_protection_string.
31790 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
31791 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
31792 msign-return-address.
31793 * doc/invoke.texi: Add mbranch-protection.
31795 2019-01-08 Alan Modra <amodra@gmail.com>
31798 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
31799 Delete "unknownp" parameter. Adjust callers. Handle
31800 CONST_INT, PLUS, MINUS, and MULT.
31801 (attr_value_aligned): Renamed from or_attr_value.
31802 (min_attr_value): Return INT_MIN for unhandled rtl case..
31803 (min_fn): ..and translate to INT_MAX here.
31804 (write_length_unit_log): Modify to cope without "unknown".
31805 (write_attr_value): Handle IF_THEN_ELSE.
31807 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
31809 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
31810 optimization for masked stores.
31812 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
31814 PR middle-end/88567
31815 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
31816 output vector directly to duplicate_and_interleave instead of
31817 going through a temporary. Postpone insertion of ctor_seq to
31818 the end of the loop.
31820 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
31823 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
31824 unsigned_p. Handle signed and unsigned overflow correction as
31826 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
31828 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
31830 (add<mode>3_compareV_imm): Make this callable for expanding.
31831 (subv<GPI:mode>4): Use register_operand for operand 1. Use
31832 aarch64_plus_operand for operand 2.
31833 (subv<GPI:mode>_insn): New insn pattern.
31834 (subv<GPI:mode>_imm): Likewise.
31835 (negv<GPI:mode>3): New expand pattern.
31836 (negv<GPI:mode>_insn): New insn pattern.
31837 (negv<GPI:mode>_cmp_only): Likewise.
31838 (cmpv<GPI:mode>_insn): Likewise.
31839 (subvti4): Use register_operand for operand 1. Update call to
31840 aarch64_expand_subvti.
31841 (usubvti4): Likewise.
31842 (negvti3): New expand pattern.
31843 (negdi_carryout): New insn pattern.
31844 (negvdi_carryinV): New insn pattern.
31845 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
31846 version the named version.
31847 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
31849 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
31851 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
31853 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
31854 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
31855 (sub<mode>3_carryinCV): Delete.
31856 (sub<GPI:mode>3_carryinV): New expand pattern.
31857 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
31859 2019-01-07 Richard Biener <rguenther@suse.de>
31861 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
31862 of tree_operand_hash.
31864 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
31866 PR tree-optimization/88598
31867 * tree.h (single_nonzero_element): Declare.
31868 * tree.c (single_nonzero_element): New function.
31869 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
31870 if I is the only nonzero element of CST.
31872 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
31874 PR tree-optimization/88598
31875 * tree.h (initializer_each_zero_or_onep): Declare.
31876 * tree.c (initializer_each_zero_or_onep): New function.
31877 (signed_or_unsigned_type_for): Handle float types too.
31878 (unsigned_type_for, signed_type_for): Update comments accordingly.
31879 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
31880 x & { 0 or -1, 0 or -1, ... }.
31882 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
31884 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
31885 with x86_64-pc-linux-gnu.
31887 2019-01-07 Tom de Vries <tdevries@suse.de>
31890 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
31892 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
31895 2019-01-07 Jakub Jelinek <jakub@redhat.com>
31897 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
31898 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
31899 TARGET_AVX512F as condition.
31902 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
31903 const_not_ok_for_debug_p target hook.
31904 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
31905 on UNSPEC and subexpressions thereof if all subexpressions of the
31906 UNSPEC are CONSTANT_P.
31908 PR tree-optimization/88676
31909 * tree-ssa-phiopt.c (two_value_replacement): New function.
31910 (tree_ssa_phiopt_worker): Call it.
31913 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
31914 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
31917 * tree-vect-generic.c: Include insn-config.h and recog.h.
31918 (expand_vector_piecewise): Add defaulted ret_type argument,
31919 if non-NULL, use that in preference to type for the result type.
31920 (expand_vector_parallel): Formatting fix.
31921 (do_vec_conversion, do_vec_narrowing_conversion,
31922 expand_vector_conversion): New functions.
31923 (expand_vector_operations_1): Call expand_vector_conversion
31924 for VEC_CONVERT ifn calls.
31925 * internal-fn.def (VEC_CONVERT): New internal function.
31926 * internal-fn.c (expand_VEC_CONVERT): New function.
31927 * fold-const-call.c (fold_const_vec_convert): New function.
31928 (fold_const_call): Use it for CFN_VEC_CONVERT.
31929 * doc/extend.texi (__builtin_convertvector): Document.
31931 2019-01-07 Tom de Vries <tdevries@suse.de>
31933 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
31934 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
31935 vector_red_partition, vector_red_sym): New global variables.
31936 (nvptx_option_override): Initialize vector_red_sym.
31937 (nvptx_declare_function_name): Restore red_partition register.
31938 (nvptx_file_end): Emit code to declare the vector reduction variables.
31939 (nvptx_output_red_partition): New function.
31940 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
31941 large vector reductions.
31942 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
31943 (nvptx_init_builtins): Add VECTOR_ADDR.
31944 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
31945 Handle nvptx_expand_shared_addr.
31946 (nvptx_get_shared_red_addr): Add vector argument and handle large
31948 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
31950 (nvptx_goacc_reduction_init): Likewise.
31951 (nvptx_goacc_reduction_fini): Likewise.
31952 (nvptx_goacc_reduction_teardown): Likewise.
31953 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
31954 init,fini,teardown}.
31955 (nvptx_init_axis_predicate): Initialize vector_red_partition.
31956 (nvptx_set_current_function): Init vector_red_partition.
31957 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
31958 (nvptx_red_partition): New insn.
31959 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
31961 2019-01-07 Tom de Vries <tdevries@suse.de>
31964 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
31967 2019-01-07 Tom de Vries <tdevries@suse.de>
31969 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
31970 (nvptx_option_override): Init oacc_bcast_partition.
31971 (nvptx_init_oacc_workers): New function.
31972 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
31973 (nvptx_needs_shared_bcast): New function.
31974 (nvptx_find_par): Generalize to enable vectors to use shared-memory
31975 to propagate state.
31976 (nvptx_shared_propagate): Initialize vector bcast partition and
31977 synchronization state.
31978 (nvptx_single): Generalize to enable vectors to use shared-memory
31979 to propagate state.
31980 (nvptx_process_pars): Likewise.
31981 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
31982 * config/nvptx/nvptx.h (struct machine_function): Add
31983 bcast_partition and sync_bar members.
31985 2019-01-07 Tom de Vries <tdevries@suse.de>
31987 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
31988 (nvptx_apply_dim_limits): New function.
31989 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
31992 2019-01-07 Tom de Vries <tdevries@suse.de>
31994 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
31995 as late as possible.
31997 2019-01-07 Tom de Vries <tdevries@suse.de>
31999 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
32000 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
32001 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
32002 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
32003 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
32005 2019-01-07 Tom de Vries <tdevries@suse.de>
32007 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
32009 2019-01-07 Tom de Vries <tdevries@suse.de>
32011 * omp-offload.c (oacc_get_min_dim): New function.
32012 * omp-offload.h (oacc_get_min_dim): Declare.
32014 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
32017 * config/i386/i386.c (function_value_ms_64): Return small sturct in
32018 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
32020 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32024 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
32026 * ipa-inline.c (edge_badness): Use inlined_time instead of
32027 inline_summaries->get.
32029 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32031 * opts.c (enable_fdo_optimizations): Enable
32032 version-loops-for-strides, loop-interchange, unrol-and-jam
32033 and tree-loop-distribution.
32034 * invoke.texi: Document newly enabled options.
32036 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32038 * doc/invoke.texi (max-inline-insns-small): New parameters.
32039 * ipa-inline.c (want_early_inline_function_p): simplify.
32040 (want_inline_small_function_p): Fix pasto from previous patch;
32041 use max-inline-insns-small bound.
32042 * params.def (max-inline-insns-small): New param.
32043 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
32044 variables correctly.
32046 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32048 * doc/invoke.texi: Document max-inline-insns-size,
32049 uninlined-function-insns, uninlined-function-time,
32050 uninlined-thunk-insns and uninlined-thunk-time.
32051 * params.def: Add max-inline-insns-size,
32052 uninlined-function-insns, uninlined-function-time,
32053 uninlined-thunk-insns and uninlined-thunk-time.
32054 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
32056 * ipa-inline.c (can_inline_edge_by_limits_p,
32057 want_inline_small_function_p): Use new parameters.
32059 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32061 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
32063 2019-01-05 Jakub Jelinek <jakub@redhat.com>
32065 PR middle-end/82564
32067 * expr.c (expand_assignment): For calls returning VLA structures
32068 if to_rtx is not a MEM, force it into a stack temporary.
32071 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
32072 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
32073 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
32074 subexpressions of both operands.
32075 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
32076 subrtxes are CONSTANT_P.
32077 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
32078 2018-11-09 changes.
32080 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
32082 * params.def (hot-bb-count-ws-permille): Set to 990.
32084 2019-01-04 Martin Sebor <msebor@redhat.com>
32087 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
32090 2019-01-04 Martin Sebor <msebor@redhat.com>
32093 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
32095 2019-01-04 Jakub Jelinek <jakub@redhat.com>
32097 * gdbinit.in: Turn off pagination for the skip commands, restore
32098 it to previous state afterwards.
32100 2019-01-04 Jakub Jelinek <jakub@redhat.com>
32103 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
32104 of GET_MODE (opN) as modes of the libcall arguments.
32106 2019-01-04 Jan Beulich <jbeulich@suse.com>
32108 * config/i386/sse.md
32109 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
32110 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
32111 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
32112 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
32113 avx512f_vmcmp<mode>3<round_saeonly_name>,
32114 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
32115 avx512f_maskcmp<mode>3,
32116 <avx512>_cvt<ssemodesuffix>2mask<mode>,
32117 <avx512>_cvt<ssemodesuffix>2mask<mode>,
32118 *<avx512>_cvtmask2<ssemodesuffix><mode>,
32119 *<avx512>_cvtmask2<ssemodesuffix><mode>,
32120 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
32121 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
32122 <avx512>_gt<mode>3<mask_scalar_merge_name>,
32123 <avx512>_gt<mode>3<mask_scalar_merge_name>,
32124 <avx512>_testm<mode>3<mask_scalar_merge_name>,
32125 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
32126 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
32127 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
32128 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
32129 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
32130 avx512cd_maskb_vec_dup<mode>,
32131 avx512cd_maskw_vec_dup<mode>,
32132 avx512dq_fpclass<mode><mask_scalar_merge_name>,
32133 avx512dq_vmfpclass<mode>,
32134 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
32137 2019-01-03 Martin Sebor <msebor@redhat.com>
32139 PR tree-optimization/88659
32140 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
32142 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
32144 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
32145 unaligned vsx and avoid lxvd2x/stxvd2x.
32146 (gen_lvx_v4si_move): New function.
32148 2019-01-03 Tom de Vries <tdevries@suse.de>
32150 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
32151 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
32153 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
32155 2019-01-03 Tom de Vries <tdevries@suse.de>
32157 * config/nvptx/nvptx.c (struct offload_attrs): New.
32158 (populate_offload_attrs): New function. Factor mask extraction out of
32159 nvptx_reorg. Add extraction of dimensions.
32160 (nvptx_reorg): Use populate_offload_attrs.
32162 2019-01-03 Tom de Vries <tdevries@suse.de>
32164 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
32165 cases for oacc_min_dims_p and routine_p. Add asserts for
32166 oacc_default_dims_p and offload_region_p.
32168 2019-01-03 Tom de Vries <tdevries@suse.de>
32170 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
32171 factored out of ...
32172 (nvptx_goacc_validate_dims): ... here.
32174 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
32176 PR tree-optimization/85574
32177 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
32179 (struct ssa_equip_hash_traits): Declare.
32180 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
32182 2019-01-03 Jakub Jelinek <jakub@redhat.com>
32185 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
32186 change it to qualified_type.
32188 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
32190 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
32191 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
32193 2019-01-02 Martin Sebor <msebor@redhat.com>
32194 Jeff Law <law@redhat.com>
32196 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
32197 (get_range_strlen_tree): Update appropriately.
32199 * gimple-fold.h (get_range_strlen): Drop unused last argument.
32201 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
32202 rather than set_range_info.
32203 * tree-ssa-strlen.c (set_strlen_range): Extracted from
32204 maybe_set_strlen_range. Handle potentially boundary crossing
32205 cases more conservatively.
32206 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
32207 Call set_strlen_range.
32208 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
32210 PR middle-end/88663
32211 * gimple-fold.c (get_range_strlen): Update prototype to no longer
32212 need the flexp argument.
32213 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
32214 from calls to get_range_strlen. Update comments. Just update
32215 VAL for an unterminated const char array and let the reset of the
32216 code handle it normally. No longer try to set *flexp. Adjust
32218 (get_range_strlen): Update for the new get_range_strlen API.
32219 (get_maxval_strlen): Similarly.
32220 (gimple_fold_builtin_strlen): Handle update meaning of return value
32221 from get_range_strlen.
32222 * gimple-ssa-sprintf.c (get_string_length): Update for the new
32223 get_range_strlen API.
32225 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
32228 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
32229 false at WPA time when body was removed.
32231 2019-01-02 Martin Liska <mliska@suse.cz>
32233 PR tree-optimization/88650
32234 * predict.c (set_even_probabilities): Calculate probability
32235 remainer only when really used.
32237 2019-01-02 Richard Biener <rguenther@suse.de>
32239 PR middle-end/88651
32240 * tree-data-ref.c (analyze_subscript_affine_affine): Use
32241 widest_ints when mangling max_stmt_execution results.
32243 2019-01-02 Richard Biener <rguenther@suse.de>
32245 PR tree-optimization/88621
32246 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
32247 bitfields when canoncalizing.
32249 2019-01-02 Richard Biener <rguenther@suse.de>
32252 * config/i386/x86-tune-costs.h (intel_cost): Adjust
32253 cost of cheap SSE instruction.
32255 2019-01-02 Richard Biener <rguenther@suse.de>
32258 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
32259 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
32261 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
32262 set after UIDs before splitting them.
32264 2019-01-01 Martin Sebor <msebor@redhat.com>
32265 Jeff Law <law@redhat.com>
32267 * gimple-fold.c (get_range_strlen_tree): Record if the computed
32268 length is optimistic. If it is, then arrange to compute the
32269 conservative length as well.
32271 * gimple-fold.h (get_range_strlen): Update prototype.
32272 * builtins.c (check_access): Update call to get_range_strlen to use
32273 c_strlen_data pointer. Change various variable accesses to instead
32274 pull data from the c_strlen_data structure.
32275 (check_strncat_sizes, expand_builtin_strncat): Likewise.
32276 * calls.c (maybe_warn_nonstring_arg): Likewise.
32277 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
32278 minimum length if maximum lengh is unknown.
32279 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
32280 that used c_strlen, it's no longer needed. Restructure slightly.
32281 (format_string): Set unlikely range appropriately.
32282 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
32284 (get_range_strlen): Accept c_strlen_data pointer for external
32285 call sites as well. Pass through to call to internal get_range_strlen.
32286 Adjust minlen, maxlen and maxbound as needed.
32287 (get_maxval_strlen): Update comments.
32288 (gimple_fold_builtin_strlen): Update call to get_range_strlen
32289 to use c_strlen_data pointer. Change variable accesses to instead
32290 use c_strlen_data data members.
32292 * gimple-fold.c (get_range_strlen): Update prototype.
32293 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
32294 local variables. Use pdata to return information to caller.
32295 Update calls to get_range_strlen. Update pdata->maxbound.
32296 (get_range_strlen -- static version): Similarly.
32297 (get_range_strlen -- extern version): Update for internal
32298 get_range_strlen API change. Convert to external data format.
32299 (get_maxval_strlen): Similarly.
32301 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
32303 * coverage.c (get_coverage_counts): Use current_function_decl.
32304 * profile.c (read_thunk_profile): New function.
32305 (branch_prob): Add THUNK parameter.
32306 * tree-profile.c (tree_profiling): Handle thunks.
32307 * value-prof.c (init_node_map): Handle thunks.
32308 * value-prof.h (branch_prob): Upate prototype.
32309 (read_thunk_profile): Declare.
32311 2019-01-01 Jakub Jelinek <jakub@redhat.com>
32313 Update copyright years.
32315 * gcc.c (process_command): Update copyright notice dates.
32316 * gcov-dump.c (print_version): Ditto.
32317 * gcov.c (print_version): Ditto.
32318 * gcov-tool.c (print_version): Ditto.
32319 * gengtype.c (create_file): Ditto.
32320 * doc/cpp.texi: Bump @copying's copyright year.
32321 * doc/cppinternals.texi: Ditto.
32322 * doc/gcc.texi: Ditto.
32323 * doc/gccint.texi: Ditto.
32324 * doc/gcov.texi: Ditto.
32325 * doc/install.texi: Ditto.
32326 * doc/invoke.texi: Ditto.
32328 Copyright (C) 2019 Free Software Foundation, Inc.
32330 Copying and distribution of this file, with or without modification,
32331 are permitted in any medium without royalty provided the copyright
32332 notice and this notice are preserved.